[03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39: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:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:30]ConnectInit Can't connect to host [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45: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:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:47]accept exits with 8 [05:00:47]New connection [05:00:47]New thread 3066817892 created [05:00:47]Thread 3066961252 joined [05:00:47]Waiting for new connection... [05:00:47] Sock 8.Parse request [05:00:47]Sock 8.Check first char [05:00:47]Sock 8.First char is OK [05:00:47]request: POST /json_proto HTTP/1.0 [05:00:47]Method: POST [05:00:47]URL: /json_proto [05:00:47]Method is POST - this is cgi request [05:00:47]url: /json_proto [05:00:47]query_string will be loaded in cgi processing [05:00:47]execute_cgi json_proto POST (null) [05:00:47]execute_cgi path=json_proto method=POST [05:00:47]POST find Content-Length [05:00:47]Host: 172.17.63.131:8080 [05:00:47]Content-Length: 678 [05:00:47]Content-Type: application/json [05:00:47] [05:00:47]POST finish read [05:00:47]Found Content-Length = 678 [05:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31290", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:47]execute_script... [05:00: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)31290", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:47]POST & json_proto [05:00:47]process_json_proto [05:00:47]json parsed OK: [05:00:47]protocol is kg_v1.0 [05:00:47]action value=close_receipt [05:00:47]process_action close_receipt [05:00:47]cmd_close_receipt [05:00:47]MH_GetDate [05:00:47]Write to MH i2c: F0 00 00 1C 42 4D [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 09 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 09 00 1C 42 00 12 C9 1D 67 22 05 6E 64 AE [05:00:47]GetLastDocTimeStamp 1729993551 [05:00:47]current date 1730005266 [05:00:47]FM_GetShiftState [05:00:47]SAM_PROTO_GetShiftState [05:00:47]wFMCommunicate request_size=4 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 13 01 00 [05:00:47]Write to MH i2c: E2 08 00 1D 42 80 13 01 00 00 00 00 00 DC [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 1D 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [05:00:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [05:00:47]wFMCommunicate OK [05:00:47]SAM_PROTO_GetShiftState done [05:00:47]FM_GetShiftState done [05:00:47]opened in 1729989159 [05:00:47]opened+sec_in_day 1730075559 [05:00:47]quantity*price = 200025 [05:00:47]sum+1 = 200026 [05:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 12 27.10.2024 05:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191980 ФПД: 71537789930060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191980&fm=71537789930060&tin=02508201610067®Number=0000000000091776&sum=200000 [05:00:49]StoreToDocumentArchive [05:00:49]shift 542 fd 191980 [05:00:49]save to /storage/0542/doc_00191980 [05:00:49]save last doc name /storage/0542/doc_00191980 to /storage/kkm_last_doc_name [05:00:49]save OK [05:00:49]Clear old archive folders... [05:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:00:49]tlvbuf is 015CADF0 [05:00:49]SAM_PROTO_ClearQueue [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 09 00 00 [05:00:49]Write to MH i2c: E2 08 00 2A 42 80 09 00 00 00 00 00 00 DE [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 2A 42 00 90 00 E0 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]SAM_PROTO_ClearQueue done [05:00:49]KKMCreateOFDPacket [05:00:49]OFDProtocolAddRootSTLVToBuf [05:00:49]FM_MakeSignedData [05:00:49]FM_MakeSignedData [05:00:49]SAM_PROTO_SignData [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 0D 01 02 [05:00:49]Write to MH i2c: E2 08 00 2B 42 80 0D 01 02 00 00 00 00 E6 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 2B 42 00 90 00 E1 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]wFMCommunicate request_size=255 [05:00:49]MH_SAM_APDU [05:00: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 12 C9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC ED 02 00 35 04 06 00 41 10 30 8E [05:00:49]Write to MH i2c: E2 02 01 2C 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 12 C9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC ED 02 00 35 04 06 00 41 10 30 8E 00 00 D3 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 2C 42 00 90 00 E2 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]wFMCommunicate request_size=7 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 0D 02 02 02 8A 4C [05:00:49]Write to MH i2c: E2 0A 00 2D 42 80 0D 02 02 02 00 8A 4C 00 00 C3 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 2D 42 00 90 00 E3 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 0D 03 02 [05:00:49]Write to MH i2c: E2 08 00 2E 42 80 0D 03 02 00 00 00 00 EB [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 0B 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 0B 00 2E 42 00 86 0B C3 C0 E9 1F 77 24 90 00 A3 [05:00:49]RAPDU: 86 0B C3 C0 E9 1F 77 24 90 00 [05:00:49]wFMCommunicate OK [05:00:49]SAM_PROTO_SignData done [05:00:49]FM_MakeSignedData done [05:00:49]CreateOFDProtocolMessage [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 11 00 00 [05:00:49]Write to MH i2c: E2 08 00 2F 42 80 11 00 00 00 00 00 00 EB [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 17 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 17 00 2F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [05:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:00:49]wFMCommunicate OK [05:00:49]CreateOFDProtocolMessage done [05:00:49]OFDSenderStorePacket 191980 [05:00:49]StoreOFDPacket docnum=191980 [05:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 94 2D 04 01 B3 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 12 C9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC ED 02 00 35 04 06 00 41 10 30 8E 8A 4C 86 0B C3 C0 E9 1F 77 24 [05:00:49]CheckFolder [05:00:49]dirname=/storage/ofd_packets [05:00:49]CheckFolder done [05:00:49]ProducePacketName [05:00:49]name=ofd_packets/00191980 [05:00:49]NVStorageSaveData ofd_packets/00191980 [05:00:49]File name is /storage/ofd_packets/00191980 [05:00:49]Write 298 bytes [05:00:49]NVStorageSaveData done [05:00:49]OFDSenderStorePacket done [05:00:49]KKMCreateOFDPacket done [05:00:49]NVStorageSaveData kkm_last_timestamp [05:00:49]File name is /storage/kkm_last_timestamp [05:00:49]Write 4 bytes [05:00:49]NVStorageSaveData done [05:00:49]ExternCall_PrintAddStr [05:00:49]wPrintStart [05:00:49]Write to MH i2c: 01 00 00 30 42 72 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 30 42 00 00 00 00 00 FF 0F 87 [05:00:49]RasterBufferAndPrint [05:00:49]line Счет N : (1)31290 [05:00:49]line ИНН: 02508201610067 [05:00:49]line Контрольно-Кассовый Чек [05:00:49]line ПРОДАЖА [05:00:49]line ТРК (МРК, ГНК) : 11 [05:00:49]line Товар: 2710194210 [05:00:49]line ДТ-К-5 [05:00:49]line 26.250 * 76.20 [05:00:49]line = 2000.25 [05:00:49]line НДС 12% НСП 1% [05:00:49]line > о реализуемом товаре [05:00:49]line ОКРУГЛЕНИЕ: -0.25 [05:00:49]line ИТОГО: 2000.00 [05:00:49]line Внесено: 2000.00 [05:00:49]line СДАЧА: 0.00 [05:00:49]line НСП 1% : 17.70 [05:00:49]line НДС 12% : 212.42 [05:00:49]line Наличными: 2000.00 [05:00:49]line Безнал.: 0.00 [05:00:49]line Место: АЗС № 170 "Партнер Нефть" [05:00:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [05:00:49]line СНО: Общий режим [05:00:49]line Чек 12 27.10.2024 05:01 [05:00:49]line Смена: 542 ФФД: 1.0 [05:00:49]line ЗНМ: 0300000110 [05:00:49]line РНМ: 0000000000091776 [05:00:49]line Версия ККМ: 001 [05:00:49]line ФМ: 0000000000871754 [05:00:49]line ФД: 191980 [05:00:49]line ФПД: 71537789930060 [05:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191980&fm=71537789930060&tin=02508201610067®Number=0000000000091776&sum=200000 [05:00:49]OFD Sender: Processing packet 191980 [packets to send 75, broken 74] [05:00:49]ProducePacketName [05:00:49]name=ofd_packets/00191980 [05:00:49]OFD Sender: To server: pG, [05:00:49]CommunicateWithHost lk.salyk.kg:30040 [05:00:49]ConnectInit lk.salyk.kg [05:00:49]written 0, free lines is 4095 [05:00:50]Connected sock=6 [05:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 94 2D 04 01 B3 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 12 C9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC ED 02 00 35 04 06 00 41 10 30 8E 8A 4C 86 0B C3 C0 E9 1F 77 24 [05:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 21 75 47 00 6F D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC ED 02 00 F4 03 04 00 DB 6D 1D 67 B6 04 01 00 00 72 BE 67 43 0C 30 3E 74 [05:00:50]CommunicateWithHost err = 0 [05:00:50]CheckOFDResponse [05:00:50]1017 (14) - 77093643461234 [05:00:50]1041 (16) - 0000000000871754 [05:00:50]1040 (4) - 191980 [05:00:50]1012 (4) - 26.10.2024 22:31 [05:00:50]1206 (1) - 0 [05:00:50]OFD Sender: Remove packet 191980 [05:00:50]ProducePacketName [05:00:50]name=ofd_packets/00191980 [05:00:50]NVStorageDeleteData [05:00:50]Write to MH i2c: 01 00 00 5B 42 9D [05:00:50]Write i2c OK [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: 01 [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: 01 07 00 [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: 01 07 00 5B 42 00 00 00 00 00 B7 0C 67 [05:00:50]RasterBufferAndPrint [05:00:50]line [05:00:50]line [05:00:50]line [05:00:50]line [05:00:50]line [05:00:50]written 0, free lines is 3260 [05:00:50]MH_Cut [05:00:50]Write to MH i2c: D1 01 00 62 42 01 76 [05:00:50]Write i2c OK [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: D1 [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: D1 01 00 [05:00:50]MH_I2C_Read... [05:00:50]Read from MH i2c: D1 01 00 62 42 00 75 [05:00:50]Write to MH i2c: 01 00 00 63 42 A5 [05:00:50]Write i2c OK [05:00:50]MH_I2C_Read... [05:00:50]OFD Sender: No OFD packet to send [05:00:51]*** Cut start [05:00:51]*** Partial cut [05:00:51]*** CUTSNS_PIN = 1 [05:00:51]*** CUTSNS_PIN = 0 [05:00:51]*** Brake cut motor [05:00:51]Read from MH i2c: 01 [05:00:51]MH_I2C_Read... [05:00:51]*** Stop cut motor [05:00:51]*** Cut end [05:00:51]Read from MH i2c: 01 07 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: 01 07 00 63 42 00 00 00 00 00 FF 0F BA [05:00:51]process_action close_receipt done [05:00:51]requested_data is exist [05:00:51]produce_requested_data [05:00:51]requested_item fm.sn is exist - process it [05:00:51]wFMCommunicate request_size=4 [05:00:51]MH_SAM_APDU [05:00:51]CAPDU: 80 11 00 00 [05:00:51]Write to MH i2c: E2 08 00 64 42 80 11 00 00 00 00 00 00 20 [05:00:51]Write i2c OK [05:00:51]MH_I2C_Read... [05:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:51]Read from MH i2c: E2 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 17 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 17 00 64 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [05:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:00:51]wFMCommunicate OK [05:00:51]requested_item fd.num is exist - process it [05:00:51]SAM_PROTO_GetFieldsCounters [05:00:51]wFMCommunicate request_size=4 [05:00:51]MH_SAM_APDU [05:00:51]CAPDU: 80 13 00 00 [05:00:51]Write to MH i2c: E2 08 00 65 42 80 13 00 00 00 00 00 00 23 [05:00:51]Write i2c OK [05:00:51]MH_I2C_Read... [05:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:52]Read from MH i2c: E2 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 62 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 62 00 65 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [05:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:00:52]wFMCommunicate OK [05:00:52]SAM_PROTO_GetFieldsCounters done [05:00:52]requested_item shift.num is exist - process it [05:00:52]requested_item shift.opened is exist - process it [05:00:52]req_shift_opened [05:00:52]FM_GetShiftState [05:00:52]SAM_PROTO_GetShiftState [05:00:52]wFMCommunicate request_size=4 [05:00:52]MH_SAM_APDU [05:00:52]CAPDU: 80 13 01 00 [05:00:52]Write to MH i2c: E2 08 00 66 42 80 13 01 00 00 00 00 00 25 [05:00:52]Write i2c OK [05:00:52]MH_I2C_Read... [05:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:52]Read from MH i2c: E2 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 0E 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 0E 00 66 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [05:00:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [05:00:52]wFMCommunicate OK [05:00:52]SAM_PROTO_GetShiftState done [05:00:52]FM_GetShiftState done [05:00:52]req_shift_opened done [05:00:52]requested_item shift.open_date is exist - process it [05:00:52]req_shift_open_date [05:00:52]req_shift_open_date done [05:00:52]produce_requested_data done [05:00:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191980,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [05:00:52]process_action_free close_receipt [05:00:52]json_value_free [05:00:52]json_value_free done [05:00:52]process_json_proto returns [05:00:52]Send response to host [05:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191980,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [05:00:52]free response buf [05:00:52]execute_script done [05:00:52]execute_script returns [05:00:52]free content buf [05:00:52]Sock 8.Close socket [05:00:52]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]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: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:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:14]ConnectInit Can't connect to host [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]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:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]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:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]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:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:33]accept exits with 5 [05:59:33]New connection [05:59:33]New thread 3066961252 created [05:59:33]Thread 3066817892 joined [05:59:33]Waiting for new connection... [05:59:33] Sock 5.Parse request [05:59:33]Sock 5.Check first char [05:59:33]Sock 5.First char is OK [05:59:33]request: POST /json_proto HTTP/1.0 [05:59:33]Method: POST [05:59:33]URL: /json_proto [05:59:33]Method is POST - this is cgi request [05:59:33]url: /json_proto [05:59:33]query_string will be loaded in cgi processing [05:59:33]execute_cgi json_proto POST (null) [05:59:33]execute_cgi path=json_proto method=POST [05:59:33]POST find Content-Length [05:59:33]Host: 172.17.63.131:8080 [05:59:33]Content-Length: 676 [05:59:33]Content-Type: application/json [05:59:33] [05:59:33]POST finish read [05:59:33]Found Content-Length = 676 [05:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:33]execute_script... [05:59: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)31291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:33]POST & json_proto [05:59:33]process_json_proto [05:59:33]json parsed OK: [05:59:33]protocol is kg_v1.0 [05:59:33]action value=close_receipt [05:59:33]process_action close_receipt [05:59:33]cmd_close_receipt [05:59:33]MH_GetDate [05:59:33]Write to MH i2c: F0 00 00 67 42 98 [05:59:33]Write i2c OK [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: F0 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: F0 09 00 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: F0 09 00 67 42 00 D7 D6 1D 67 22 05 6E 64 CB [05:59:33]GetLastDocTimeStamp 1730005266 [05:59:33]current date 1730008791 [05:59:33]FM_GetShiftState [05:59:33]SAM_PROTO_GetShiftState [05:59:33]wFMCommunicate request_size=4 [05:59:33]MH_SAM_APDU [05:59:33]CAPDU: 80 13 01 00 [05:59:33]Write to MH i2c: E2 08 00 68 42 80 13 01 00 00 00 00 00 27 [05:59:33]Write i2c OK [05:59:33]MH_I2C_Read... [05:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:33]Read from MH i2c: E2 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 0E 00 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 0E 00 68 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [05:59:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [05:59:33]wFMCommunicate OK [05:59:33]SAM_PROTO_GetShiftState done [05:59:33]FM_GetShiftState done [05:59:33]opened in 1729989159 [05:59:33]opened+sec_in_day 1730075559 [05:59:33]quantity*price = 50041 [05:59:33]sum+1 = 50042 [05:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 13 27.10.2024 05:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191981 ФПД: 25644221203561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T055951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191981&fm=25644221203561&tin=02508201610067®Number=0000000000091776&sum=50000 [05:59:34]StoreToDocumentArchive [05:59:34]shift 542 fd 191981 [05:59:34]save to /storage/0542/doc_00191981 [05:59:34]save last doc name /storage/0542/doc_00191981 to /storage/kkm_last_doc_name [05:59:34]save OK [05:59:34]Clear old archive folders... [05:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:59:34]tlvbuf is 015C8830 [05:59:34]SAM_PROTO_ClearQueue [05:59:34]wFMCommunicate request_size=4 [05:59:34]MH_SAM_APDU [05:59:34]CAPDU: 80 09 00 00 [05:59:34]Write to MH i2c: E2 08 00 75 42 80 09 00 00 00 00 00 00 29 [05:59:34]Write i2c OK [05:59:34]MH_I2C_Read... [05:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:34]Read from MH i2c: E2 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 75 42 00 90 00 2B [05:59:34]RAPDU: 90 00 [05:59:34]wFMCommunicate OK [05:59:34]SAM_PROTO_ClearQueue done [05:59:34]KKMCreateOFDPacket [05:59:34]OFDProtocolAddRootSTLVToBuf [05:59:34]FM_MakeSignedData [05:59:34]FM_MakeSignedData [05:59:34]SAM_PROTO_SignData [05:59:34]wFMCommunicate request_size=4 [05:59:34]MH_SAM_APDU [05:59:34]CAPDU: 80 0D 01 02 [05:59:34]Write to MH i2c: E2 08 00 76 42 80 0D 01 02 00 00 00 00 31 [05:59:34]Write i2c OK [05:59:34]MH_I2C_Read... [05:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:34]Read from MH i2c: E2 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 76 42 00 90 00 2C [05:59:34]RAPDU: 90 00 [05:59:34]wFMCommunicate OK [05:59:34]wFMCommunicate request_size=255 [05:59:34]MH_SAM_APDU [05:59:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D7 D6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED ED 02 00 35 04 06 00 17 [05:59:34]Write to MH i2c: E2 02 01 77 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D7 D6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED ED 02 00 35 04 06 00 17 00 00 16 [05:59:34]Write i2c OK [05:59:34]MH_I2C_Read... [05:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:34]Read from MH i2c: E2 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 77 42 00 90 00 2D [05:59:34]RAPDU: 90 00 [05:59:34]wFMCommunicate OK [05:59:34]wFMCommunicate request_size=10 [05:59:34]MH_SAM_APDU [05:59:34]CAPDU: 80 0D 02 02 05 52 C2 B2 04 69 [05:59:34]Write to MH i2c: E2 0D 00 78 42 80 0D 02 02 05 00 52 C2 B2 04 69 00 00 71 [05:59:34]Write i2c OK [05:59:34]MH_I2C_Read... [05:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:34]Read from MH i2c: E2 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 03 00 78 42 00 90 00 2E [05:59:34]RAPDU: 90 00 [05:59:34]wFMCommunicate OK [05:59:34]wFMCommunicate request_size=4 [05:59:34]MH_SAM_APDU [05:59:34]CAPDU: 80 0D 03 02 [05:59:34]Write to MH i2c: E2 08 00 79 42 80 0D 03 02 00 00 00 00 36 [05:59:34]Write i2c OK [05:59:34]MH_I2C_Read... [05:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:34]Read from MH i2c: E2 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 0B 00 [05:59:34]MH_I2C_Read... [05:59:34]Read from MH i2c: E2 0B 00 79 42 00 61 9D 03 18 34 AA 6A 01 90 00 99 [05:59:34]RAPDU: 61 9D 03 18 34 AA 6A 01 90 00 [05:59:34]wFMCommunicate OK [05:59:34]SAM_PROTO_SignData done [05:59:35]FM_MakeSignedData done [05:59:35]CreateOFDProtocolMessage [05:59:35]wFMCommunicate request_size=4 [05:59:35]MH_SAM_APDU [05:59:35]CAPDU: 80 11 00 00 [05:59:35]Write to MH i2c: E2 08 00 7A 42 80 11 00 00 00 00 00 00 36 [05:59:35]Write i2c OK [05:59:35]MH_I2C_Read... [05:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:35]Read from MH i2c: E2 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: E2 17 00 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: E2 17 00 7A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [05:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:59:35]wFMCommunicate OK [05:59:35]CreateOFDProtocolMessage done [05:59:35]OFDSenderStorePacket 191981 [05:59:35]StoreOFDPacket docnum=191981 [05:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 45 07 01 2B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D7 D6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED ED 02 00 35 04 06 00 17 52 C2 B2 04 69 61 9D 03 18 34 AA 6A 01 [05:59:35]CheckFolder [05:59:35]dirname=/storage/ofd_packets [05:59:35]CheckFolder done [05:59:35]ProducePacketName [05:59:35]name=ofd_packets/00191981 [05:59:35]NVStorageSaveData ofd_packets/00191981 [05:59:35]File name is /storage/ofd_packets/00191981 [05:59:35]Write 301 bytes [05:59:35]NVStorageSaveData done [05:59:35]OFDSenderStorePacket done [05:59:35]KKMCreateOFDPacket done [05:59:35]NVStorageSaveData kkm_last_timestamp [05:59:35]File name is /storage/kkm_last_timestamp [05:59:35]Write 4 bytes [05:59:35]NVStorageSaveData done [05:59:35]ExternCall_PrintAddStr [05:59:35]wPrintStart [05:59:35]Write to MH i2c: 01 00 00 7B 42 BD [05:59:35]Write i2c OK [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 07 00 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 07 00 7B 42 00 00 00 00 00 FF 0F D2 [05:59:35]RasterBufferAndPrint [05:59:35]line Счет N : (1)31291 [05:59:35]line ИНН: 02508201610067 [05:59:35]line Контрольно-Кассовый Чек [05:59:35]line ПРОДАЖА [05:59:35]line ТРК (МРК, ГНК) : 12 [05:59:35]line Товар: 2710124130 [05:59:35]line Аи-92-К-5 [05:59:35]line 7.480 * 66.90 [05:59:35]line = 500.41 [05:59:35]line НДС 12% НСП 1% [05:59:35]line > о реализуемом товаре [05:59:35]line ОКРУГЛЕНИЕ: -0.41 [05:59:35]line ИТОГО: 500.00 [05:59:35]line Внесено: 500.00 [05:59:35]line СДАЧА: 0.00 [05:59:35]line НСП 1% : 4.43 [05:59:35]line НДС 12% : 53.14 [05:59:35]line Наличными: 500.00 [05:59:35]line Безнал.: 0.00 [05:59:35]line Место: АЗС № 170 "Партнер Нефть" [05:59:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [05:59:35]line СНО: Общий режим [05:59:35]line Чек 13 27.10.2024 05:59 [05:59:35]line Смена: 542 ФФД: 1.0 [05:59:35]line ЗНМ: 0300000110 [05:59:35]line РНМ: 0000000000091776 [05:59:35]line Версия ККМ: 001 [05:59:35]line ФМ: 0000000000871754 [05:59:35]line ФД: 191981 [05:59:35]line ФПД: 25644221203561 [05:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T055951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191981&fm=25644221203561&tin=02508201610067®Number=0000000000091776&sum=50000 [05:59:35]OFD Sender: Processing packet 191981 [packets to send 75, broken 74] [05:59:35]ProducePacketName [05:59:35]name=ofd_packets/00191981 [05:59:35]OFD Sender: To server: pG, [05:59:35]CommunicateWithHost lk.salyk.kg:30040 [05:59:35]ConnectInit lk.salyk.kg [05:59:35]written 0, free lines is 4095 [05:59:35]Connected sock=8 [05:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 45 07 01 2B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D7 D6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED ED 02 00 35 04 06 00 17 52 C2 B2 04 69 61 9D 03 18 34 AA 6A 01 [05:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 5C 47 00 E3 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED ED 02 00 F4 03 04 00 A0 7B 1D 67 B6 04 01 00 00 8C F6 08 C1 D3 29 2F 03 [05:59:35]CommunicateWithHost err = 0 [05:59:35]CheckOFDResponse [05:59:35]1017 (14) - 77093643461234 [05:59:35]1041 (16) - 0000000000871754 [05:59:35]1040 (4) - 191981 [05:59:35]1012 (4) - 26.10.2024 23:30 [05:59:35]1206 (1) - 0 [05:59:35]OFD Sender: Remove packet 191981 [05:59:35]ProducePacketName [05:59:35]name=ofd_packets/00191981 [05:59:35]NVStorageDeleteData [05:59:35]Write to MH i2c: 01 00 00 A6 42 E8 [05:59:35]Write i2c OK [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 07 00 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: 01 07 00 A6 42 00 00 00 00 00 D0 0C CB [05:59:35]RasterBufferAndPrint [05:59:35]line [05:59:35]line [05:59:35]line [05:59:35]line [05:59:35]line [05:59:35]written 0, free lines is 3288 [05:59:35]MH_Cut [05:59:35]Write to MH i2c: D1 01 00 AD 42 01 C1 [05:59:35]Write i2c OK [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: D1 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: D1 01 00 [05:59:35]MH_I2C_Read... [05:59:35]Read from MH i2c: D1 01 00 AD 42 00 C0 [05:59:35]Write to MH i2c: 01 00 00 AE 42 F0 [05:59:35]Write i2c OK [05:59:35]MH_I2C_Read... [05:59:36]OFD Sender: No OFD packet to send [05:59:36]*** Cut start [05:59:36]*** Partial cut [05:59:36]*** CUTSNS_PIN = 1 [05:59:36]*** CUTSNS_PIN = 0 [05:59:36]*** Brake cut motor [05:59:37]Read from MH i2c: 01 [05:59:37]MH_I2C_Read... [05:59:37]*** Stop cut motor [05:59:37]*** Cut end [05:59:37]Read from MH i2c: 01 07 00 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: 01 07 00 AE 42 00 00 00 00 00 FF 0F 05 [05:59:37]process_action close_receipt done [05:59:37]requested_data is exist [05:59:37]produce_requested_data [05:59:37]requested_item fm.sn is exist - process it [05:59:37]wFMCommunicate request_size=4 [05:59:37]MH_SAM_APDU [05:59:37]CAPDU: 80 11 00 00 [05:59:37]Write to MH i2c: E2 08 00 AF 42 80 11 00 00 00 00 00 00 6B [05:59:37]Write i2c OK [05:59:37]MH_I2C_Read... [05:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:37]Read from MH i2c: E2 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 17 00 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 17 00 AF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [05:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:59:37]wFMCommunicate OK [05:59:37]requested_item fd.num is exist - process it [05:59:37]SAM_PROTO_GetFieldsCounters [05:59:37]wFMCommunicate request_size=4 [05:59:37]MH_SAM_APDU [05:59:37]CAPDU: 80 13 00 00 [05:59:37]Write to MH i2c: E2 08 00 B0 42 80 13 00 00 00 00 00 00 6E [05:59:37]Write i2c OK [05:59:37]MH_I2C_Read... [05:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:37]Read from MH i2c: E2 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 62 00 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 62 00 B0 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [05:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:37]wFMCommunicate OK [05:59:37]SAM_PROTO_GetFieldsCounters done [05:59:37]requested_item shift.num is exist - process it [05:59:37]requested_item shift.opened is exist - process it [05:59:37]req_shift_opened [05:59:37]FM_GetShiftState [05:59:37]SAM_PROTO_GetShiftState [05:59:37]wFMCommunicate request_size=4 [05:59:37]MH_SAM_APDU [05:59:37]CAPDU: 80 13 01 00 [05:59:37]Write to MH i2c: E2 08 00 B1 42 80 13 01 00 00 00 00 00 70 [05:59:37]Write i2c OK [05:59:37]MH_I2C_Read... [05:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:37]Read from MH i2c: E2 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 0E 00 [05:59:37]MH_I2C_Read... [05:59:37]Read from MH i2c: E2 0E 00 B1 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [05:59:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [05:59:37]wFMCommunicate OK [05:59:37]SAM_PROTO_GetShiftState done [05:59:37]FM_GetShiftState done [05:59:37]req_shift_opened done [05:59:37]requested_item shift.open_date is exist - process it [05:59:37]req_shift_open_date [05:59:37]req_shift_open_date done [05:59:37]produce_requested_data done [05:59:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191981,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [05:59:37]process_action_free close_receipt [05:59:37]json_value_free [05:59:37]json_value_free done [05:59:37]process_json_proto returns [05:59:37]Send response to host [05:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191981,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [05:59:37]free response buf [05:59:37]execute_script done [05:59:37]execute_script returns [05:59:37]free content buf [05:59:37]Sock 5.Close socket [05:59:37]Sock 5.Thread stoped [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]accept exits with 6 [06:23:07]New connection [06:23:07]New thread 3066817892 created [06:23:07]Thread 3066961252 joined [06:23:07]Waiting for new connection... [06:23:07] Sock 6.Parse request [06:23:07]Sock 6.Check first char [06:23:07]Sock 6.First char is OK [06:23:07]request: POST /json_proto HTTP/1.0 [06:23:07]Method: POST [06:23:07]URL: /json_proto [06:23:07]Method is POST - this is cgi request [06:23:07]url: /json_proto [06:23:07]query_string will be loaded in cgi processing [06:23:07]execute_cgi json_proto POST (null) [06:23:07]execute_cgi path=json_proto method=POST [06:23:07]POST find Content-Length [06:23:07]Host: 172.17.63.131:8080 [06:23:07]Content-Length: 677 [06:23:07]Content-Type: application/json [06:23:07] [06:23:07]POST finish read [06:23:07]Found Content-Length = 677 [06:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:07]execute_script... [06:23:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:07]POST & json_proto [06:23:07]process_json_proto [06:23:07]json parsed OK: [06:23:07]protocol is kg_v1.0 [06:23:07]action value=close_receipt [06:23:07]process_action close_receipt [06:23:07]cmd_close_receipt [06:23:07]MH_GetDate [06:23:07]Write to MH i2c: F0 00 00 B2 42 E3 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: F0 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: F0 09 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: F0 09 00 B2 42 00 5E DC 1D 67 22 05 6E 64 A3 [06:23:07]GetLastDocTimeStamp 1730008791 [06:23:07]current date 1730010206 [06:23:07]FM_GetShiftState [06:23:07]SAM_PROTO_GetShiftState [06:23:07]wFMCommunicate request_size=4 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 13 01 00 [06:23:07]Write to MH i2c: E2 08 00 B3 42 80 13 01 00 00 00 00 00 72 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 0E 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 0E 00 B3 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [06:23:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:23:07]wFMCommunicate OK [06:23:07]SAM_PROTO_GetShiftState done [06:23:07]FM_GetShiftState done [06:23:07]opened in 1729989159 [06:23:07]opened+sec_in_day 1730075559 [06:23:07]quantity*price = 70044 [06:23:07]sum+1 = 70045 [06:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 14 27.10.2024 06:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191982 ФПД: 139655591226352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191982&fm=139655591226352&tin=02508201610067®Number=0000000000091776&sum=70000 [06:23:08]StoreToDocumentArchive [06:23:08]shift 542 fd 191982 [06:23:08]save to /storage/0542/doc_00191982 [06:23:08]save last doc name /storage/0542/doc_00191982 to /storage/kkm_last_doc_name [06:23:08]save OK [06:23:08]Clear old archive folders... [06:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:23:08]tlvbuf is 01D13810 [06:23:08]SAM_PROTO_ClearQueue [06:23:08]wFMCommunicate request_size=4 [06:23:08]MH_SAM_APDU [06:23:08]CAPDU: 80 09 00 00 [06:23:08]Write to MH i2c: E2 08 00 C0 42 80 09 00 00 00 00 00 00 74 [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:08]Read from MH i2c: E2 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 C0 42 00 90 00 76 [06:23:08]RAPDU: 90 00 [06:23:08]wFMCommunicate OK [06:23:08]SAM_PROTO_ClearQueue done [06:23:08]KKMCreateOFDPacket [06:23:08]OFDProtocolAddRootSTLVToBuf [06:23:08]FM_MakeSignedData [06:23:08]FM_MakeSignedData [06:23:08]SAM_PROTO_SignData [06:23:08]wFMCommunicate request_size=4 [06:23:08]MH_SAM_APDU [06:23:08]CAPDU: 80 0D 01 02 [06:23:08]Write to MH i2c: E2 08 00 C1 42 80 0D 01 02 00 00 00 00 7C [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:08]Read from MH i2c: E2 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 C1 42 00 90 00 77 [06:23:08]RAPDU: 90 00 [06:23:08]wFMCommunicate OK [06:23:08]wFMCommunicate request_size=255 [06:23:08]MH_SAM_APDU [06:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 5E DC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE ED 02 00 35 04 06 00 7F [06:23:08]Write to MH i2c: E2 02 01 C2 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 5E DC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE ED 02 00 35 04 06 00 7F 00 00 68 [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:08]Read from MH i2c: E2 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: E2 03 00 C2 42 00 90 00 78 [06:23:08]RAPDU: 90 00 [06:23:08]wFMCommunicate OK [06:23:08]wFMCommunicate request_size=10 [06:23:08]MH_SAM_APDU [06:23:08]CAPDU: 80 0D 02 02 05 04 19 E7 EB F0 [06:23:08]Write to MH i2c: E2 0D 00 C3 42 80 0D 02 02 05 00 04 19 E7 EB F0 00 00 68 [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:09]Read from MH i2c: E2 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 03 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 03 00 C3 42 00 90 00 79 [06:23:09]RAPDU: 90 00 [06:23:09]wFMCommunicate OK [06:23:09]wFMCommunicate request_size=4 [06:23:09]MH_SAM_APDU [06:23:09]CAPDU: 80 0D 03 02 [06:23:09]Write to MH i2c: E2 08 00 C4 42 80 0D 03 02 00 00 00 00 81 [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:09]Read from MH i2c: E2 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 0B 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 0B 00 C4 42 00 91 EB BA 39 3E B9 2E 42 90 00 58 [06:23:09]RAPDU: 91 EB BA 39 3E B9 2E 42 90 00 [06:23:09]wFMCommunicate OK [06:23:09]SAM_PROTO_SignData done [06:23:09]FM_MakeSignedData done [06:23:09]CreateOFDProtocolMessage [06:23:09]wFMCommunicate request_size=4 [06:23:09]MH_SAM_APDU [06:23:09]CAPDU: 80 11 00 00 [06:23:09]Write to MH i2c: E2 08 00 C5 42 80 11 00 00 00 00 00 00 81 [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:09]Read from MH i2c: E2 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 17 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: E2 17 00 C5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [06:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:23:09]wFMCommunicate OK [06:23:09]CreateOFDProtocolMessage done [06:23:09]OFDSenderStorePacket 191982 [06:23:09]StoreOFDPacket docnum=191982 [06:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 83 07 01 E5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 5E DC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE ED 02 00 35 04 06 00 7F 04 19 E7 EB F0 91 EB BA 39 3E B9 2E 42 [06:23:09]CheckFolder [06:23:09]dirname=/storage/ofd_packets [06:23:09]CheckFolder done [06:23:09]ProducePacketName [06:23:09]name=ofd_packets/00191982 [06:23:09]NVStorageSaveData ofd_packets/00191982 [06:23:09]File name is /storage/ofd_packets/00191982 [06:23:09]Write 301 bytes [06:23:09]NVStorageSaveData done [06:23:09]OFDSenderStorePacket done [06:23:09]KKMCreateOFDPacket done [06:23:09]NVStorageSaveData kkm_last_timestamp [06:23:09]File name is /storage/kkm_last_timestamp [06:23:09]Write 4 bytes [06:23:09]NVStorageSaveData done [06:23:09]ExternCall_PrintAddStr [06:23:09]wPrintStart [06:23:09]Write to MH i2c: 01 00 00 C6 42 08 [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 07 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 07 00 C6 42 00 00 00 00 00 FF 0F 1D [06:23:09]RasterBufferAndPrint [06:23:09]line Счет N : (1)31292 [06:23:09]line ИНН: 02508201610067 [06:23:09]line Контрольно-Кассовый Чек [06:23:09]line ПРОДАЖА [06:23:09]line ТРК (МРК, ГНК) : 12 [06:23:09]line Товар: 2710124130 [06:23:09]line Аи-92-К-5 [06:23:09]line 10.470 * 66.90 [06:23:09]line = 700.44 [06:23:09]line НДС 12% НСП 1% [06:23:09]line > о реализуемом товаре [06:23:09]line ОКРУГЛЕНИЕ: -0.44 [06:23:09]line ИТОГО: 700.00 [06:23:09]line Внесено: 700.00 [06:23:09]line СДАЧА: 0.00 [06:23:09]line НСП 1% : 6.20 [06:23:09]line НДС 12% : 74.38 [06:23:09]line Наличными: 700.00 [06:23:09]line Безнал.: 0.00 [06:23:09]line Место: АЗС № 170 "Партнер Нефть" [06:23:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:23:09]line СНО: Общий режим [06:23:09]line Чек 14 27.10.2024 06:23 [06:23:09]line Смена: 542 ФФД: 1.0 [06:23:09]line ЗНМ: 0300000110 [06:23:09]line РНМ: 0000000000091776 [06:23:09]line Версия ККМ: 001 [06:23:09]line ФМ: 0000000000871754 [06:23:09]line ФД: 191982 [06:23:09]line ФПД: 139655591226352 [06:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191982&fm=139655591226352&tin=02508201610067®Number=0000000000091776&sum=70000 [06:23:09]OFD Sender: Processing packet 191982 [packets to send 75, broken 74] [06:23:09]ProducePacketName [06:23:09]name=ofd_packets/00191982 [06:23:09]OFD Sender: To server: pG, [06:23:09]CommunicateWithHost lk.salyk.kg:30040 [06:23:09]ConnectInit lk.salyk.kg [06:23:09]written 0, free lines is 4095 [06:23:09]Connected sock=8 [06:23:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 83 07 01 E5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 5E DC 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE ED 02 00 35 04 06 00 7F 04 19 E7 EB F0 91 EB BA 39 3E B9 2E 42 [06:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 73 47 00 75 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE ED 02 00 F4 03 04 00 26 81 1D 67 B6 04 01 00 00 52 5A EE DF A2 75 2C 44 [06:23:09]CommunicateWithHost err = 0 [06:23:09]CheckOFDResponse [06:23:09]1017 (14) - 77093643461234 [06:23:09]1041 (16) - 0000000000871754 [06:23:09]1040 (4) - 191982 [06:23:09]1012 (4) - 26.10.2024 23:54 [06:23:09]1206 (1) - 0 [06:23:09]OFD Sender: Remove packet 191982 [06:23:09]ProducePacketName [06:23:09]name=ofd_packets/00191982 [06:23:09]NVStorageDeleteData [06:23:09]Write to MH i2c: 01 00 00 F1 42 33 [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 07 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 07 00 F1 42 00 00 00 00 00 A3 0C E9 [06:23:09]RasterBufferAndPrint [06:23:09]line [06:23:09]line [06:23:09]line [06:23:09]line [06:23:09]line [06:23:09]written 0, free lines is 3242 [06:23:09]MH_Cut [06:23:09]Write to MH i2c: D1 01 00 F8 42 01 0C [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: D1 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: D1 01 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: D1 01 00 F8 42 00 0B [06:23:09]Write to MH i2c: 01 00 00 F9 42 3B [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:10]OFD Sender: No OFD packet to send [06:23:10]*** Cut start [06:23:10]*** Partial cut [06:23:10]*** CUTSNS_PIN = 1 [06:23:10]*** CUTSNS_PIN = 0 [06:23:11]*** Brake cut motor [06:23:11]Read from MH i2c: 01 [06:23:11]MH_I2C_Read... [06:23:11]*** Stop cut motor [06:23:11]*** Cut end [06:23:11]Read from MH i2c: 01 07 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: 01 07 00 F9 42 00 00 00 00 00 FF 0F 50 [06:23:11]process_action close_receipt done [06:23:11]requested_data is exist [06:23:11]produce_requested_data [06:23:11]requested_item fm.sn is exist - process it [06:23:11]wFMCommunicate request_size=4 [06:23:11]MH_SAM_APDU [06:23:11]CAPDU: 80 11 00 00 [06:23:11]Write to MH i2c: E2 08 00 FA 42 80 11 00 00 00 00 00 00 B6 [06:23:11]Write i2c OK [06:23:11]MH_I2C_Read... [06:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:11]Read from MH i2c: E2 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 17 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 17 00 FA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [06:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:23:11]wFMCommunicate OK [06:23:11]requested_item fd.num is exist - process it [06:23:11]SAM_PROTO_GetFieldsCounters [06:23:11]wFMCommunicate request_size=4 [06:23:11]MH_SAM_APDU [06:23:11]CAPDU: 80 13 00 00 [06:23:11]Write to MH i2c: E2 08 00 FB 42 80 13 00 00 00 00 00 00 B9 [06:23:11]Write i2c OK [06:23:11]MH_I2C_Read... [06:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:11]Read from MH i2c: E2 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 62 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 62 00 FB 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [06:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:11]wFMCommunicate OK [06:23:11]SAM_PROTO_GetFieldsCounters done [06:23:11]requested_item shift.num is exist - process it [06:23:11]requested_item shift.opened is exist - process it [06:23:11]req_shift_opened [06:23:11]FM_GetShiftState [06:23:11]SAM_PROTO_GetShiftState [06:23:11]wFMCommunicate request_size=4 [06:23:11]MH_SAM_APDU [06:23:11]CAPDU: 80 13 01 00 [06:23:11]Write to MH i2c: E2 08 00 FC 42 80 13 01 00 00 00 00 00 BB [06:23:11]Write i2c OK [06:23:11]MH_I2C_Read... [06:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:11]Read from MH i2c: E2 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 0E 00 [06:23:11]MH_I2C_Read... [06:23:11]Read from MH i2c: E2 0E 00 FC 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [06:23:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:23:11]wFMCommunicate OK [06:23:11]SAM_PROTO_GetShiftState done [06:23:11]FM_GetShiftState done [06:23:11]req_shift_opened done [06:23:11]requested_item shift.open_date is exist - process it [06:23:11]req_shift_open_date [06:23:11]req_shift_open_date done [06:23:11]produce_requested_data done [06:23:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191982,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [06:23:11]process_action_free close_receipt [06:23:11]json_value_free [06:23:11]json_value_free done [06:23:11]process_json_proto returns [06:23:11]Send response to host [06:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191982,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [06:23:11]free response buf [06:23:11]execute_script done [06:23:11]execute_script returns [06:23:11]free content buf [06:23:11]Sock 6.Close socket [06:23:11]Sock 6.Thread stoped [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]accept exits with 5 [06:31:00]New connection [06:31:00]New thread 3066961252 created [06:31:00]Thread 3066817892 joined [06:31:00]Waiting for new connection... [06:31:00] Sock 5.Parse request [06:31:00]Sock 5.Check first char [06:31:00]Sock 5.First char is OK [06:31:00]request: POST /json_proto HTTP/1.0 [06:31:00]Method: POST [06:31:00]URL: /json_proto [06:31:00]Method is POST - this is cgi request [06:31:00]url: /json_proto [06:31:00]query_string will be loaded in cgi processing [06:31:00]execute_cgi json_proto POST (null) [06:31:00]execute_cgi path=json_proto method=POST [06:31:00]POST find Content-Length [06:31:00]Host: 172.17.63.131:8080 [06:31:00]Content-Length: 676 [06:31:00]Content-Type: application/json [06:31:00] [06:31:00]POST finish read [06:31:00]Found Content-Length = 676 [06:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:00]execute_script... [06:31: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)31293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:00]POST & json_proto [06:31:00]process_json_proto [06:31:00]json parsed OK: [06:31:00]protocol is kg_v1.0 [06:31:00]action value=close_receipt [06:31:00]process_action close_receipt [06:31:00]cmd_close_receipt [06:31:00]MH_GetDate [06:31:00]Write to MH i2c: F0 00 00 FD 42 2E [06:31:00]Write i2c OK [06:31:00]MH_I2C_Read... [06:31:00]Read from MH i2c: F0 [06:31:00]MH_I2C_Read... [06:31:00]Read from MH i2c: F0 09 00 [06:31:00]MH_I2C_Read... [06:31:00]Read from MH i2c: F0 09 00 FD 42 00 36 DE 1D 67 22 05 6E 64 C8 [06:31:00]GetLastDocTimeStamp 1730010206 [06:31:00]current date 1730010678 [06:31:00]FM_GetShiftState [06:31:00]SAM_PROTO_GetShiftState [06:31:00]wFMCommunicate request_size=4 [06:31:00]MH_SAM_APDU [06:31:00]CAPDU: 80 13 01 00 [06:31:00]Write to MH i2c: E2 08 00 FE 42 80 13 01 00 00 00 00 00 BD [06:31:00]Write i2c OK [06:31:00]MH_I2C_Read... [06:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:00]Read from MH i2c: E2 [06:31:00]MH_I2C_Read... [06:31:00]Read from MH i2c: E2 0E 00 [06:31:00]MH_I2C_Read... [06:31:00]Read from MH i2c: E2 0E 00 FE 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [06:31:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:31:00]wFMCommunicate OK [06:31:00]SAM_PROTO_GetShiftState done [06:31:00]FM_GetShiftState done [06:31:00]opened in 1729989159 [06:31:00]opened+sec_in_day 1730075559 [06:31:00]quantity*price = 40006 [06:31:00]sum+1 = 40007 [06:31:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 15 27.10.2024 06:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191983 ФПД: 98515120817382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063118&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191983&fm=98515120817382&tin=02508201610067®Number=0000000000091776&sum=40000 [06:31:01]StoreToDocumentArchive [06:31:01]shift 542 fd 191983 [06:31:01]save to /storage/0542/doc_00191983 [06:31:01]save last doc name /storage/0542/doc_00191983 to /storage/kkm_last_doc_name [06:31:01]save OK [06:31:01]Clear old archive folders... [06:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:01]tlvbuf is 01D13740 [06:31:01]SAM_PROTO_ClearQueue [06:31:01]wFMCommunicate request_size=4 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 09 00 00 [06:31:01]Write to MH i2c: E2 08 00 0B 43 80 09 00 00 00 00 00 00 C0 [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 0B 43 00 90 00 C2 [06:31:01]RAPDU: 90 00 [06:31:01]wFMCommunicate OK [06:31:01]SAM_PROTO_ClearQueue done [06:31:01]KKMCreateOFDPacket [06:31:01]OFDProtocolAddRootSTLVToBuf [06:31:01]FM_MakeSignedData [06:31:01]FM_MakeSignedData [06:31:01]SAM_PROTO_SignData [06:31:01]wFMCommunicate request_size=4 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 0D 01 02 [06:31:01]Write to MH i2c: E2 08 00 0C 43 80 0D 01 02 00 00 00 00 C8 [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 0C 43 00 90 00 C3 [06:31:01]RAPDU: 90 00 [06:31:01]wFMCommunicate OK [06:31:01]wFMCommunicate request_size=255 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 36 DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF ED 02 00 35 04 06 00 59 [06:31:01]Write to MH i2c: E2 02 01 0D 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 36 DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF ED 02 00 35 04 06 00 59 00 00 29 [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 0D 43 00 90 00 C4 [06:31:01]RAPDU: 90 00 [06:31:01]wFMCommunicate OK [06:31:01]wFMCommunicate request_size=10 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 0D 02 02 05 99 56 C8 04 E6 [06:31:01]Write to MH i2c: E2 0D 00 0E 43 80 0D 02 02 05 00 99 56 C8 04 E6 00 00 76 [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 03 00 0E 43 00 90 00 C5 [06:31:01]RAPDU: 90 00 [06:31:01]wFMCommunicate OK [06:31:01]wFMCommunicate request_size=4 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 0D 03 02 [06:31:01]Write to MH i2c: E2 08 00 0F 43 80 0D 03 02 00 00 00 00 CD [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 0B 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 0B 00 0F 43 00 B8 CA AD 0B 19 65 62 08 90 00 F0 [06:31:01]RAPDU: B8 CA AD 0B 19 65 62 08 90 00 [06:31:01]wFMCommunicate OK [06:31:01]SAM_PROTO_SignData done [06:31:01]FM_MakeSignedData done [06:31:01]CreateOFDProtocolMessage [06:31:01]wFMCommunicate request_size=4 [06:31:01]MH_SAM_APDU [06:31:01]CAPDU: 80 11 00 00 [06:31:01]Write to MH i2c: E2 08 00 10 43 80 11 00 00 00 00 00 00 CD [06:31:01]Write i2c OK [06:31:01]MH_I2C_Read... [06:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:01]Read from MH i2c: E2 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 17 00 [06:31:01]MH_I2C_Read... [06:31:01]Read from MH i2c: E2 17 00 10 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [06:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:31:01]wFMCommunicate OK [06:31:01]CreateOFDProtocolMessage done [06:31:01]OFDSenderStorePacket 191983 [06:31:01]StoreOFDPacket docnum=191983 [06:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F 19 07 01 51 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 36 DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF ED 02 00 35 04 06 00 59 99 56 C8 04 E6 B8 CA AD 0B 19 65 62 08 [06:31:01]CheckFolder [06:31:01]dirname=/storage/ofd_packets [06:31:01]CheckFolder done [06:31:01]ProducePacketName [06:31:01]name=ofd_packets/00191983 [06:31:01]NVStorageSaveData ofd_packets/00191983 [06:31:02]File name is /storage/ofd_packets/00191983 [06:31:02]Write 301 bytes [06:31:02]NVStorageSaveData done [06:31:02]OFDSenderStorePacket done [06:31:02]KKMCreateOFDPacket done [06:31:02]NVStorageSaveData kkm_last_timestamp [06:31:02]File name is /storage/kkm_last_timestamp [06:31:02]Write 4 bytes [06:31:02]NVStorageSaveData done [06:31:02]ExternCall_PrintAddStr [06:31:02]wPrintStart [06:31:02]Write to MH i2c: 01 00 00 11 43 54 [06:31:02]Write i2c OK [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 07 00 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 07 00 11 43 00 00 00 00 00 FF 0F 69 [06:31:02]RasterBufferAndPrint [06:31:02]line Счет N : (1)31293 [06:31:02]line ИНН: 02508201610067 [06:31:02]line Контрольно-Кассовый Чек [06:31:02]line ПРОДАЖА [06:31:02]line ТРК (МРК, ГНК) : 12 [06:31:02]line Товар: 2710124130 [06:31:02]line Аи-92-К-5 [06:31:02]line 5.980 * 66.90 [06:31:02]line = 400.06 [06:31:02]line НДС 12% НСП 1% [06:31:02]line > о реализуемом товаре [06:31:02]line ОКРУГЛЕНИЕ: -0.06 [06:31:02]line ИТОГО: 400.00 [06:31:02]line Внесено: 400.00 [06:31:02]line СДАЧА: 0.00 [06:31:02]line НСП 1% : 3.54 [06:31:02]line НДС 12% : 42.48 [06:31:02]line Наличными: 400.00 [06:31:02]line Безнал.: 0.00 [06:31:02]line Место: АЗС № 170 "Партнер Нефть" [06:31:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:31:02]line СНО: Общий режим [06:31:02]line Чек 15 27.10.2024 06:31 [06:31:02]line Смена: 542 ФФД: 1.0 [06:31:02]line ЗНМ: 0300000110 [06:31:02]line РНМ: 0000000000091776 [06:31:02]line Версия ККМ: 001 [06:31:02]line ФМ: 0000000000871754 [06:31:02]line ФД: 191983 [06:31:02]line ФПД: 98515120817382 [06:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063118&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191983&fm=98515120817382&tin=02508201610067®Number=0000000000091776&sum=40000 [06:31:02]OFD Sender: Processing packet 191983 [packets to send 75, broken 74] [06:31:02]ProducePacketName [06:31:02]name=ofd_packets/00191983 [06:31:02]OFD Sender: To server: pG, [06:31:02]CommunicateWithHost lk.salyk.kg:30040 [06:31:02]ConnectInit lk.salyk.kg [06:31:02]written 0, free lines is 4095 [06:31:02]Connected sock=8 [06:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F 19 07 01 51 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 36 DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF ED 02 00 35 04 06 00 59 99 56 C8 04 E6 B8 CA AD 0B 19 65 62 08 [06:31:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 4B 47 00 34 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF ED 02 00 F4 03 04 00 FF 82 1D 67 B6 04 01 00 00 E9 9B 01 E5 2E 3D E4 23 [06:31:02]CommunicateWithHost err = 0 [06:31:02]CheckOFDResponse [06:31:02]1017 (14) - 77093643461234 [06:31:02]1041 (16) - 0000000000871754 [06:31:02]1040 (4) - 191983 [06:31:02]1012 (4) - 27.10.2024 00:02 [06:31:02]1206 (1) - 0 [06:31:02]OFD Sender: Remove packet 191983 [06:31:02]ProducePacketName [06:31:02]name=ofd_packets/00191983 [06:31:02]NVStorageDeleteData [06:31:02]Write to MH i2c: 01 00 00 3C 43 7F [06:31:02]Write i2c OK [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 07 00 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: 01 07 00 3C 43 00 00 00 00 00 AA 0C 3C [06:31:02]RasterBufferAndPrint [06:31:02]line [06:31:02]line [06:31:02]line [06:31:02]line [06:31:02]line [06:31:02]written 0, free lines is 3248 [06:31:02]MH_Cut [06:31:02]Write to MH i2c: D1 01 00 43 43 01 58 [06:31:02]Write i2c OK [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: D1 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: D1 01 00 [06:31:02]MH_I2C_Read... [06:31:02]Read from MH i2c: D1 01 00 43 43 00 57 [06:31:02]Write to MH i2c: 01 00 00 44 43 87 [06:31:02]Write i2c OK [06:31:02]MH_I2C_Read... [06:31:03]OFD Sender: No OFD packet to send [06:31:03]*** Cut start [06:31:03]*** Partial cut [06:31:03]*** CUTSNS_PIN = 1 [06:31:03]*** CUTSNS_PIN = 0 [06:31:03]*** Brake cut motor [06:31:04]Read from MH i2c: 01 [06:31:04]MH_I2C_Read... [06:31:04]*** Stop cut motor [06:31:04]*** Cut end [06:31:04]Read from MH i2c: 01 07 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: 01 07 00 44 43 00 00 00 00 00 FF 0F 9C [06:31:04]process_action close_receipt done [06:31:04]requested_data is exist [06:31:04]produce_requested_data [06:31:04]requested_item fm.sn is exist - process it [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 11 00 00 [06:31:04]Write to MH i2c: E2 08 00 45 43 80 11 00 00 00 00 00 00 02 [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 17 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 17 00 45 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [06:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:31:04]wFMCommunicate OK [06:31:04]requested_item fd.num is exist - process it [06:31:04]SAM_PROTO_GetFieldsCounters [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 13 00 00 [06:31:04]Write to MH i2c: E2 08 00 46 43 80 13 00 00 00 00 00 00 05 [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 62 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 62 00 46 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [06:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:04]wFMCommunicate OK [06:31:04]SAM_PROTO_GetFieldsCounters done [06:31:04]requested_item shift.num is exist - process it [06:31:04]requested_item shift.opened is exist - process it [06:31:04]req_shift_opened [06:31:04]FM_GetShiftState [06:31:04]SAM_PROTO_GetShiftState [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 13 01 00 [06:31:04]Write to MH i2c: E2 08 00 47 43 80 13 01 00 00 00 00 00 07 [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 0E 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 0E 00 47 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [06:31:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:31:04]wFMCommunicate OK [06:31:04]SAM_PROTO_GetShiftState done [06:31:04]FM_GetShiftState done [06:31:04]req_shift_opened done [06:31:04]requested_item shift.open_date is exist - process it [06:31:04]req_shift_open_date [06:31:04]req_shift_open_date done [06:31:04]produce_requested_data done [06:31:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191983,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [06:31:04]process_action_free close_receipt [06:31:04]json_value_free [06:31:04]json_value_free done [06:31:04]process_json_proto returns [06:31:04]Send response to host [06:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191983,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [06:31:04]free response buf [06:31:04]execute_script done [06:31:04]execute_script returns [06:31:04]free content buf [06:31:04]Sock 5.Close socket [06:31:04]Sock 5.Thread stoped [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:57]accept exits with 6 [06:31:57]New connection [06:31:57]New thread 3066817892 created [06:31:57]Thread 3066961252 joined [06:31:57]Waiting for new connection... [06:31:57] Sock 6.Parse request [06:31:57]Sock 6.Check first char [06:31:57]Sock 6.First char is OK [06:31:57]request: POST /json_proto HTTP/1.0 [06:31:57]Method: POST [06:31:57]URL: /json_proto [06:31:57]Method is POST - this is cgi request [06:31:57]url: /json_proto [06:31:57]query_string will be loaded in cgi processing [06:31:57]execute_cgi json_proto POST (null) [06:31:57]execute_cgi path=json_proto method=POST [06:31:57]POST find Content-Length [06:31:57]Host: 172.17.63.131:8080 [06:31:57]Content-Length: 676 [06:31:57]Content-Type: application/json [06:31:57] [06:31:57]POST finish read [06:31:57]Found Content-Length = 676 [06:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:57]execute_script... [06:31: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)31294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:57]POST & json_proto [06:31:57]process_json_proto [06:31:57]json parsed OK: [06:31:57]protocol is kg_v1.0 [06:31:57]action value=close_receipt [06:31:57]process_action close_receipt [06:31:57]cmd_close_receipt [06:31:57]MH_GetDate [06:31:57]Write to MH i2c: F0 00 00 48 43 7A [06:31:57]Write i2c OK [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: F0 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: F0 09 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: F0 09 00 48 43 00 6F DE 1D 67 22 05 6E 64 4D [06:31:57]GetLastDocTimeStamp 1730010678 [06:31:57]current date 1730010735 [06:31:57]FM_GetShiftState [06:31:57]SAM_PROTO_GetShiftState [06:31:57]wFMCommunicate request_size=4 [06:31:57]MH_SAM_APDU [06:31:57]CAPDU: 80 13 01 00 [06:31:57]Write to MH i2c: E2 08 00 49 43 80 13 01 00 00 00 00 00 09 [06:31:57]Write i2c OK [06:31:57]MH_I2C_Read... [06:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:57]Read from MH i2c: E2 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 0E 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 0E 00 49 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4A [06:31:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:31:57]wFMCommunicate OK [06:31:57]SAM_PROTO_GetShiftState done [06:31:57]FM_GetShiftState done [06:31:57]opened in 1729989159 [06:31:57]opened+sec_in_day 1730075559 [06:31:57]quantity*price = 20003 [06:31:57]sum+1 = 20004 [06:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 16 27.10.2024 06:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191984 ФПД: 280832582530428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063215&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191984&fm=280832582530428&tin=02508201610067®Number=0000000000091776&sum=20000 [06:31:58]StoreToDocumentArchive [06:31:58]shift 542 fd 191984 [06:31:58]save to /storage/0542/doc_00191984 [06:31:58]save last doc name /storage/0542/doc_00191984 to /storage/kkm_last_doc_name [06:31:58]save OK [06:31:58]Clear old archive folders... [06:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:58]tlvbuf is 01D133C0 [06:31:58]SAM_PROTO_ClearQueue [06:31:58]wFMCommunicate request_size=4 [06:31:58]MH_SAM_APDU [06:31:58]CAPDU: 80 09 00 00 [06:31:58]Write to MH i2c: E2 08 00 56 43 80 09 00 00 00 00 00 00 0B [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 56 43 00 90 00 0D [06:31:58]RAPDU: 90 00 [06:31:58]wFMCommunicate OK [06:31:58]SAM_PROTO_ClearQueue done [06:31:58]KKMCreateOFDPacket [06:31:58]OFDProtocolAddRootSTLVToBuf [06:31:58]FM_MakeSignedData [06:31:58]FM_MakeSignedData [06:31:58]SAM_PROTO_SignData [06:31:58]wFMCommunicate request_size=4 [06:31:58]MH_SAM_APDU [06:31:58]CAPDU: 80 0D 01 02 [06:31:58]Write to MH i2c: E2 08 00 57 43 80 0D 01 02 00 00 00 00 13 [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 57 43 00 90 00 0E [06:31:58]RAPDU: 90 00 [06:31:58]wFMCommunicate OK [06:31:58]wFMCommunicate request_size=255 [06:31:58]MH_SAM_APDU [06:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6F DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 ED 02 00 35 04 06 00 FF [06:31:58]Write to MH i2c: E2 02 01 58 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6F DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 ED 02 00 35 04 06 00 FF 00 00 48 [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 58 43 00 90 00 0F [06:31:58]RAPDU: 90 00 [06:31:58]wFMCommunicate OK [06:31:58]wFMCommunicate request_size=10 [06:31:58]MH_SAM_APDU [06:31:58]CAPDU: 80 0D 02 02 05 6A 6E 52 B5 7C [06:31:58]Write to MH i2c: E2 0D 00 59 43 80 0D 02 02 05 00 6A 6E 52 B5 7C 00 00 7B [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 03 00 59 43 00 90 00 10 [06:31:58]RAPDU: 90 00 [06:31:58]wFMCommunicate OK [06:31:58]wFMCommunicate request_size=4 [06:31:58]MH_SAM_APDU [06:31:58]CAPDU: 80 0D 03 02 [06:31:58]Write to MH i2c: E2 08 00 5A 43 80 0D 03 02 00 00 00 00 18 [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 0B 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 0B 00 5A 43 00 74 ED A8 19 9E 7F 54 2C 90 00 D8 [06:31:58]RAPDU: 74 ED A8 19 9E 7F 54 2C 90 00 [06:31:58]wFMCommunicate OK [06:31:58]SAM_PROTO_SignData done [06:31:58]FM_MakeSignedData done [06:31:58]CreateOFDProtocolMessage [06:31:58]wFMCommunicate request_size=4 [06:31:58]MH_SAM_APDU [06:31:58]CAPDU: 80 11 00 00 [06:31:58]Write to MH i2c: E2 08 00 5B 43 80 11 00 00 00 00 00 00 18 [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:58]Read from MH i2c: E2 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 17 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: E2 17 00 5B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [06:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:31:58]wFMCommunicate OK [06:31:58]CreateOFDProtocolMessage done [06:31:58]OFDSenderStorePacket 191984 [06:31:58]StoreOFDPacket docnum=191984 [06:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 65 07 01 30 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6F DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 ED 02 00 35 04 06 00 FF 6A 6E 52 B5 7C 74 ED A8 19 9E 7F 54 2C [06:31:58]CheckFolder [06:31:58]dirname=/storage/ofd_packets [06:31:58]CheckFolder done [06:31:58]ProducePacketName [06:31:58]name=ofd_packets/00191984 [06:31:58]NVStorageSaveData ofd_packets/00191984 [06:31:58]File name is /storage/ofd_packets/00191984 [06:31:58]Write 301 bytes [06:31:58]NVStorageSaveData done [06:31:58]OFDSenderStorePacket done [06:31:58]KKMCreateOFDPacket done [06:31:58]NVStorageSaveData kkm_last_timestamp [06:31:58]File name is /storage/kkm_last_timestamp [06:31:58]Write 4 bytes [06:31:58]NVStorageSaveData done [06:31:58]ExternCall_PrintAddStr [06:31:58]wPrintStart [06:31:58]Write to MH i2c: 01 00 00 5C 43 9F [06:31:58]Write i2c OK [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: 01 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: 01 07 00 [06:31:58]MH_I2C_Read... [06:31:58]Read from MH i2c: 01 07 00 5C 43 00 00 00 00 00 FF 0F B4 [06:31:58]RasterBufferAndPrint [06:31:58]line Счет N : (1)31294 [06:31:58]line ИНН: 02508201610067 [06:31:58]line Контрольно-Кассовый Чек [06:31:58]line ПРОДАЖА [06:31:58]line ТРК (МРК, ГНК) : 21 [06:31:58]line Товар: 2710124130 [06:31:58]line Аи-92-К-5 [06:31:58]line 2.990 * 66.90 [06:31:58]line = 200.03 [06:31:58]line НДС 12% НСП 1% [06:31:58]line > о реализуемом товаре [06:31:58]line ОКРУГЛЕНИЕ: -0.03 [06:31:58]line ИТОГО: 200.00 [06:31:58]line Внесено: 200.00 [06:31:58]line СДАЧА: 0.00 [06:31:58]line НСП 1% : 1.77 [06:31:58]line НДС 12% : 21.24 [06:31:58]line Наличными: 200.00 [06:31:58]line Безнал.: 0.00 [06:31:58]line Место: АЗС № 170 "Партнер Нефть" [06:31:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:31:58]line СНО: Общий режим [06:31:58]line Чек 16 27.10.2024 06:32 [06:31:58]line Смена: 542 ФФД: 1.0 [06:31:58]line ЗНМ: 0300000110 [06:31:58]line РНМ: 0000000000091776 [06:31:58]line Версия ККМ: 001 [06:31:58]line ФМ: 0000000000871754 [06:31:58]line ФД: 191984 [06:31:58]line ФПД: 280832582530428 [06:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063215&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191984&fm=280832582530428&tin=02508201610067®Number=0000000000091776&sum=20000 [06:31:59]OFD Sender: Processing packet 191984 [packets to send 75, broken 74] [06:31:59]ProducePacketName [06:31:59]name=ofd_packets/00191984 [06:31:59]OFD Sender: To server: pG, [06:31:59]CommunicateWithHost lk.salyk.kg:30040 [06:31:59]ConnectInit lk.salyk.kg [06:31:59]written 0, free lines is 4095 [06:31:59]Connected sock=8 [06:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 65 07 01 30 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6F DE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 ED 02 00 35 04 06 00 FF 6A 6E 52 B5 7C 74 ED A8 19 9E 7F 54 2C [06:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 6C 47 00 AE A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 ED 02 00 F4 03 04 00 38 83 1D 67 B6 04 01 00 00 83 34 35 2B 42 A3 EF 4F [06:31:59]CommunicateWithHost err = 0 [06:31:59]CheckOFDResponse [06:31:59]1017 (14) - 77093643461234 [06:31:59]1041 (16) - 0000000000871754 [06:31:59]1040 (4) - 191984 [06:31:59]1012 (4) - 27.10.2024 00:03 [06:31:59]1206 (1) - 0 [06:31:59]OFD Sender: Remove packet 191984 [06:31:59]ProducePacketName [06:31:59]name=ofd_packets/00191984 [06:31:59]NVStorageDeleteData [06:31:59]Write to MH i2c: 01 00 00 87 43 CA [06:31:59]Write i2c OK [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: 01 [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: 01 07 00 [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: 01 07 00 87 43 00 00 00 00 00 A8 0C 85 [06:31:59]RasterBufferAndPrint [06:31:59]line [06:31:59]line [06:31:59]line [06:31:59]line [06:31:59]line [06:31:59]written 0, free lines is 3248 [06:31:59]MH_Cut [06:31:59]Write to MH i2c: D1 01 00 8E 43 01 A3 [06:31:59]Write i2c OK [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: D1 [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: D1 01 00 [06:31:59]MH_I2C_Read... [06:31:59]Read from MH i2c: D1 01 00 8E 43 00 A2 [06:31:59]Write to MH i2c: 01 00 00 8F 43 D2 [06:31:59]Write i2c OK [06:31:59]MH_I2C_Read... [06:32:00]OFD Sender: No OFD packet to send [06:32:00]*** Cut start [06:32:00]*** Partial cut [06:32:00]*** CUTSNS_PIN = 1 [06:32:00]*** CUTSNS_PIN = 0 [06:32:00]*** Brake cut motor [06:32:01]Read from MH i2c: 01 [06:32:01]MH_I2C_Read... [06:32:01]*** Stop cut motor [06:32:01]*** Cut end [06:32:01]Read from MH i2c: 01 07 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: 01 07 00 8F 43 00 00 00 00 00 FF 0F E7 [06:32:01]process_action close_receipt done [06:32:01]requested_data is exist [06:32:01]produce_requested_data [06:32:01]requested_item fm.sn is exist - process it [06:32:01]wFMCommunicate request_size=4 [06:32:01]MH_SAM_APDU [06:32:01]CAPDU: 80 11 00 00 [06:32:01]Write to MH i2c: E2 08 00 90 43 80 11 00 00 00 00 00 00 4D [06:32:01]Write i2c OK [06:32:01]MH_I2C_Read... [06:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:01]Read from MH i2c: E2 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 17 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 17 00 90 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [06:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:32:01]wFMCommunicate OK [06:32:01]requested_item fd.num is exist - process it [06:32:01]SAM_PROTO_GetFieldsCounters [06:32:01]wFMCommunicate request_size=4 [06:32:01]MH_SAM_APDU [06:32:01]CAPDU: 80 13 00 00 [06:32:01]Write to MH i2c: E2 08 00 91 43 80 13 00 00 00 00 00 00 50 [06:32:01]Write i2c OK [06:32:01]MH_I2C_Read... [06:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:01]Read from MH i2c: E2 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 62 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 62 00 91 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [06:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:32:01]wFMCommunicate OK [06:32:01]SAM_PROTO_GetFieldsCounters done [06:32:01]requested_item shift.num is exist - process it [06:32:01]requested_item shift.opened is exist - process it [06:32:01]req_shift_opened [06:32:01]FM_GetShiftState [06:32:01]SAM_PROTO_GetShiftState [06:32:01]wFMCommunicate request_size=4 [06:32:01]MH_SAM_APDU [06:32:01]CAPDU: 80 13 01 00 [06:32:01]Write to MH i2c: E2 08 00 92 43 80 13 01 00 00 00 00 00 52 [06:32:01]Write i2c OK [06:32:01]MH_I2C_Read... [06:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:01]Read from MH i2c: E2 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 0E 00 [06:32:01]MH_I2C_Read... [06:32:01]Read from MH i2c: E2 0E 00 92 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [06:32:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:32:01]wFMCommunicate OK [06:32:01]SAM_PROTO_GetShiftState done [06:32:01]FM_GetShiftState done [06:32:01]req_shift_opened done [06:32:01]requested_item shift.open_date is exist - process it [06:32:01]req_shift_open_date [06:32:01]req_shift_open_date done [06:32:01]produce_requested_data done [06:32:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191984,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [06:32:01]process_action_free close_receipt [06:32:01]json_value_free [06:32:01]json_value_free done [06:32:01]process_json_proto returns [06:32:01]Send response to host [06:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191984,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [06:32:01]free response buf [06:32:01]execute_script done [06:32:01]execute_script returns [06:32:01]free content buf [06:32:01]Sock 6.Close socket [06:32:01]Sock 6.Thread stoped [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:18]accept exits with 5 [06:45:18]New connection [06:45:18]New thread 3066961252 created [06:45:18]Thread 3066817892 joined [06:45:18]Waiting for new connection... [06:45:18] Sock 5.Parse request [06:45:18]Sock 5.Check first char [06:45:18]Sock 5.First char is OK [06:45:18]request: POST /json_proto HTTP/1.0 [06:45:18]Method: POST [06:45:18]URL: /json_proto [06:45:18]Method is POST - this is cgi request [06:45:18]url: /json_proto [06:45:18]query_string will be loaded in cgi processing [06:45:18]execute_cgi json_proto POST (null) [06:45:18]execute_cgi path=json_proto method=POST [06:45:18]POST find Content-Length [06:45:18]Host: 172.17.63.131:8080 [06:45:18]Content-Length: 676 [06:45:18]Content-Type: application/json [06:45:18] [06:45:18]POST finish read [06:45:18]Found Content-Length = 676 [06:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:18]execute_script... [06:45: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)31295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:18]POST & json_proto [06:45:18]process_json_proto [06:45:18]json parsed OK: [06:45:18]protocol is kg_v1.0 [06:45:18]action value=close_receipt [06:45:18]process_action close_receipt [06:45:18]cmd_close_receipt [06:45:18]MH_GetDate [06:45:18]Write to MH i2c: F0 00 00 93 43 C5 [06:45:18]Write i2c OK [06:45:18]MH_I2C_Read... [06:45:18]Read from MH i2c: F0 [06:45:18]MH_I2C_Read... [06:45:18]Read from MH i2c: F0 09 00 [06:45:18]MH_I2C_Read... [06:45:18]Read from MH i2c: F0 09 00 93 43 00 91 E1 1D 67 22 05 6E 64 BD [06:45:18]GetLastDocTimeStamp 1730010735 [06:45:18]current date 1730011537 [06:45:18]FM_GetShiftState [06:45:18]SAM_PROTO_GetShiftState [06:45:18]wFMCommunicate request_size=4 [06:45:18]MH_SAM_APDU [06:45:18]CAPDU: 80 13 01 00 [06:45:18]Write to MH i2c: E2 08 00 94 43 80 13 01 00 00 00 00 00 54 [06:45:18]Write i2c OK [06:45:18]MH_I2C_Read... [06:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:18]Read from MH i2c: E2 [06:45:18]MH_I2C_Read... [06:45:18]Read from MH i2c: E2 0E 00 [06:45:18]MH_I2C_Read... [06:45:18]Read from MH i2c: E2 0E 00 94 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 95 [06:45:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:45:18]wFMCommunicate OK [06:45:18]SAM_PROTO_GetShiftState done [06:45:18]FM_GetShiftState done [06:45:18]opened in 1729989159 [06:45:18]opened+sec_in_day 1730075559 [06:45:18]quantity*price = 40006 [06:45:18]sum+1 = 40007 [06:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 17 27.10.2024 06:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191985 ФПД: 91115467354679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064537&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191985&fm=91115467354679&tin=02508201610067®Number=0000000000091776&sum=40000 [06:45:19]StoreToDocumentArchive [06:45:19]shift 542 fd 191985 [06:45:19]save to /storage/0542/doc_00191985 [06:45:19]save last doc name /storage/0542/doc_00191985 to /storage/kkm_last_doc_name [06:45:19]save OK [06:45:19]Clear old archive folders... [06:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:19]tlvbuf is 01D13690 [06:45:19]SAM_PROTO_ClearQueue [06:45:19]wFMCommunicate request_size=4 [06:45:19]MH_SAM_APDU [06:45:19]CAPDU: 80 09 00 00 [06:45:19]Write to MH i2c: E2 08 00 A1 43 80 09 00 00 00 00 00 00 56 [06:45:19]Write i2c OK [06:45:19]MH_I2C_Read... [06:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:19]Read from MH i2c: E2 [06:45:19]MH_I2C_Read... [06:45:19]Read from MH i2c: E2 03 00 [06:45:19]MH_I2C_Read... [06:45:19]Read from MH i2c: E2 03 00 A1 43 00 90 00 58 [06:45:19]RAPDU: 90 00 [06:45:19]wFMCommunicate OK [06:45:19]SAM_PROTO_ClearQueue done [06:45:19]KKMCreateOFDPacket [06:45:19]OFDProtocolAddRootSTLVToBuf [06:45:19]FM_MakeSignedData [06:45:19]FM_MakeSignedData [06:45:19]SAM_PROTO_SignData [06:45:19]wFMCommunicate request_size=4 [06:45:19]MH_SAM_APDU [06:45:19]CAPDU: 80 0D 01 02 [06:45:19]Write to MH i2c: E2 08 00 A2 43 80 0D 01 02 00 00 00 00 5E [06:45:19]Write i2c OK [06:45:19]MH_I2C_Read... [06:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:19]Read from MH i2c: E2 [06:45:19]MH_I2C_Read... [06:45:19]Read from MH i2c: E2 03 00 [06:45:19]MH_I2C_Read... [06:45:19]Read from MH i2c: E2 03 00 A2 43 00 90 00 59 [06:45:19]RAPDU: 90 00 [06:45:19]wFMCommunicate OK [06:45:19]wFMCommunicate request_size=255 [06:45:19]MH_SAM_APDU [06:45:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 91 E1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 ED 02 00 35 04 06 00 52 [06:45:19]Write to MH i2c: E2 02 01 A3 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 91 E1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 ED 02 00 35 04 06 00 52 00 00 1A [06:45:19]Write i2c OK [06:45:19]MH_I2C_Read... [06:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:20]Read from MH i2c: E2 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 03 00 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 03 00 A3 43 00 90 00 5A [06:45:20]RAPDU: 90 00 [06:45:20]wFMCommunicate OK [06:45:20]wFMCommunicate request_size=10 [06:45:20]MH_SAM_APDU [06:45:20]CAPDU: 80 0D 02 02 05 DE 79 10 B2 37 [06:45:20]Write to MH i2c: E2 0D 00 A4 43 80 0D 02 02 05 00 DE 79 10 B2 37 00 00 BB [06:45:20]Write i2c OK [06:45:20]MH_I2C_Read... [06:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:20]Read from MH i2c: E2 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 03 00 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 03 00 A4 43 00 90 00 5B [06:45:20]RAPDU: 90 00 [06:45:20]wFMCommunicate OK [06:45:20]wFMCommunicate request_size=4 [06:45:20]MH_SAM_APDU [06:45:20]CAPDU: 80 0D 03 02 [06:45:20]Write to MH i2c: E2 08 00 A5 43 80 0D 03 02 00 00 00 00 63 [06:45:20]Write i2c OK [06:45:20]MH_I2C_Read... [06:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:20]Read from MH i2c: E2 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 0B 00 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 0B 00 A5 43 00 25 5F 52 75 E5 45 5C 91 90 00 C6 [06:45:20]RAPDU: 25 5F 52 75 E5 45 5C 91 90 00 [06:45:20]wFMCommunicate OK [06:45:20]SAM_PROTO_SignData done [06:45:20]FM_MakeSignedData done [06:45:20]CreateOFDProtocolMessage [06:45:20]wFMCommunicate request_size=4 [06:45:20]MH_SAM_APDU [06:45:20]CAPDU: 80 11 00 00 [06:45:20]Write to MH i2c: E2 08 00 A6 43 80 11 00 00 00 00 00 00 63 [06:45:20]Write i2c OK [06:45:20]MH_I2C_Read... [06:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:20]Read from MH i2c: E2 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 17 00 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: E2 17 00 A6 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [06:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:45:20]wFMCommunicate OK [06:45:20]CreateOFDProtocolMessage done [06:45:20]OFDSenderStorePacket 191985 [06:45:20]StoreOFDPacket docnum=191985 [06:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 5A 07 01 A6 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 91 E1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 ED 02 00 35 04 06 00 52 DE 79 10 B2 37 25 5F 52 75 E5 45 5C 91 [06:45:20]CheckFolder [06:45:20]dirname=/storage/ofd_packets [06:45:20]CheckFolder done [06:45:20]ProducePacketName [06:45:20]name=ofd_packets/00191985 [06:45:20]NVStorageSaveData ofd_packets/00191985 [06:45:20]File name is /storage/ofd_packets/00191985 [06:45:20]Write 301 bytes [06:45:20]NVStorageSaveData done [06:45:20]OFDSenderStorePacket done [06:45:20]KKMCreateOFDPacket done [06:45:20]NVStorageSaveData kkm_last_timestamp [06:45:20]File name is /storage/kkm_last_timestamp [06:45:20]Write 4 bytes [06:45:20]NVStorageSaveData done [06:45:20]ExternCall_PrintAddStr [06:45:20]wPrintStart [06:45:20]Write to MH i2c: 01 00 00 A7 43 EA [06:45:20]Write i2c OK [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: 01 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: 01 07 00 [06:45:20]MH_I2C_Read... [06:45:20]Read from MH i2c: 01 07 00 A7 43 00 00 00 00 00 FF 0F FF [06:45:20]RasterBufferAndPrint [06:45:20]line Счет N : (1)31295 [06:45:20]line ИНН: 02508201610067 [06:45:20]line Контрольно-Кассовый Чек [06:45:20]line ПРОДАЖА [06:45:20]line ТРК (МРК, ГНК) : 12 [06:45:20]line Товар: 2710124130 [06:45:20]line Аи-92-К-5 [06:45:20]line 5.980 * 66.90 [06:45:20]line = 400.06 [06:45:20]line НДС 12% НСП 1% [06:45:20]line > о реализуемом товаре [06:45:20]line ОКРУГЛЕНИЕ: -0.06 [06:45:20]line ИТОГО: 400.00 [06:45:20]line Внесено: 400.00 [06:45:20]line СДАЧА: 0.00 [06:45:20]line НСП 1% : 3.54 [06:45:20]line НДС 12% : 42.48 [06:45:20]line Наличными: 400.00 [06:45:20]line Безнал.: 0.00 [06:45:20]line Место: АЗС № 170 "Партнер Нефть" [06:45:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:45:20]line СНО: Общий режим [06:45:20]line Чек 17 27.10.2024 06:45 [06:45:20]line Смена: 542 ФФД: 1.0 [06:45:20]line ЗНМ: 0300000110 [06:45:20]line РНМ: 0000000000091776 [06:45:20]line Версия ККМ: 001 [06:45:20]line ФМ: 0000000000871754 [06:45:20]line ФД: 191985 [06:45:20]line ФПД: 91115467354679 [06:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064537&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191985&fm=91115467354679&tin=02508201610067®Number=0000000000091776&sum=40000 [06:45:20]OFD Sender: Processing packet 191985 [packets to send 75, broken 74] [06:45:20]ProducePacketName [06:45:20]name=ofd_packets/00191985 [06:45:20]OFD Sender: To server: pG, [06:45:20]CommunicateWithHost lk.salyk.kg:30040 [06:45:20]ConnectInit lk.salyk.kg [06:45:20]written 0, free lines is 4095 [06:45:20]Connected sock=8 [06:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 5A 07 01 A6 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 91 E1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 ED 02 00 35 04 06 00 52 DE 79 10 B2 37 25 5F 52 75 E5 45 5C 91 [06:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 52 D7 47 00 6D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 ED 02 00 F4 03 04 00 5A 86 1D 67 B6 04 01 00 00 91 3D 84 53 B2 84 61 3E [06:45:21]CommunicateWithHost err = 0 [06:45:21]CheckOFDResponse [06:45:21]1017 (14) - 77093643461234 [06:45:21]1041 (16) - 0000000000871754 [06:45:21]1040 (4) - 191985 [06:45:21]1012 (4) - 27.10.2024 00:16 [06:45:21]1206 (1) - 0 [06:45:21]OFD Sender: Remove packet 191985 [06:45:21]ProducePacketName [06:45:21]name=ofd_packets/00191985 [06:45:21]NVStorageDeleteData [06:45:21]Write to MH i2c: 01 00 00 D2 43 15 [06:45:21]Write i2c OK [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: 01 [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: 01 07 00 [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: 01 07 00 D2 43 00 00 00 00 00 A9 0C D1 [06:45:21]RasterBufferAndPrint [06:45:21]line [06:45:21]line [06:45:21]line [06:45:21]line [06:45:21]line [06:45:21]written 0, free lines is 3249 [06:45:21]MH_Cut [06:45:21]Write to MH i2c: D1 01 00 D9 43 01 EE [06:45:21]Write i2c OK [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: D1 [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: D1 01 00 [06:45:21]MH_I2C_Read... [06:45:21]Read from MH i2c: D1 01 00 D9 43 00 ED [06:45:21]Write to MH i2c: 01 00 00 DA 43 1D [06:45:21]Write i2c OK [06:45:21]MH_I2C_Read... [06:45:21]OFD Sender: No OFD packet to send [06:45:22]*** Cut start [06:45:22]*** Partial cut [06:45:22]*** CUTSNS_PIN = 1 [06:45:22]*** CUTSNS_PIN = 0 [06:45:22]*** Brake cut motor [06:45:22]Read from MH i2c: 01 [06:45:22]MH_I2C_Read... [06:45:22]*** Stop cut motor [06:45:22]*** Cut end [06:45:22]Read from MH i2c: 01 07 00 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: 01 07 00 DA 43 00 00 00 00 00 FF 0F 32 [06:45:22]process_action close_receipt done [06:45:22]requested_data is exist [06:45:22]produce_requested_data [06:45:22]requested_item fm.sn is exist - process it [06:45:22]wFMCommunicate request_size=4 [06:45:22]MH_SAM_APDU [06:45:22]CAPDU: 80 11 00 00 [06:45:22]Write to MH i2c: E2 08 00 DB 43 80 11 00 00 00 00 00 00 98 [06:45:22]Write i2c OK [06:45:22]MH_I2C_Read... [06:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:22]Read from MH i2c: E2 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 17 00 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 17 00 DB 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [06:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:45:22]wFMCommunicate OK [06:45:22]requested_item fd.num is exist - process it [06:45:22]SAM_PROTO_GetFieldsCounters [06:45:22]wFMCommunicate request_size=4 [06:45:22]MH_SAM_APDU [06:45:22]CAPDU: 80 13 00 00 [06:45:22]Write to MH i2c: E2 08 00 DC 43 80 13 00 00 00 00 00 00 9B [06:45:22]Write i2c OK [06:45:22]MH_I2C_Read... [06:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:22]Read from MH i2c: E2 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 62 00 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 62 00 DC 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [06:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:22]wFMCommunicate OK [06:45:22]SAM_PROTO_GetFieldsCounters done [06:45:22]requested_item shift.num is exist - process it [06:45:22]requested_item shift.opened is exist - process it [06:45:22]req_shift_opened [06:45:22]FM_GetShiftState [06:45:22]SAM_PROTO_GetShiftState [06:45:22]wFMCommunicate request_size=4 [06:45:22]MH_SAM_APDU [06:45:22]CAPDU: 80 13 01 00 [06:45:22]Write to MH i2c: E2 08 00 DD 43 80 13 01 00 00 00 00 00 9D [06:45:22]Write i2c OK [06:45:22]MH_I2C_Read... [06:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:22]Read from MH i2c: E2 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 0E 00 [06:45:22]MH_I2C_Read... [06:45:22]Read from MH i2c: E2 0E 00 DD 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [06:45:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [06:45:22]wFMCommunicate OK [06:45:22]SAM_PROTO_GetShiftState done [06:45:22]FM_GetShiftState done [06:45:22]req_shift_opened done [06:45:22]requested_item shift.open_date is exist - process it [06:45:22]req_shift_open_date [06:45:22]req_shift_open_date done [06:45:22]produce_requested_data done [06:45:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191985,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [06:45:22]process_action_free close_receipt [06:45:22]json_value_free [06:45:22]json_value_free done [06:45:22]process_json_proto returns [06:45:22]Send response to host [06:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191985,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [06:45:22]free response buf [06:45:22]execute_script done [06:45:22]execute_script returns [06:45:22]free content buf [06:45:22]Sock 5.Close socket [06:45:22]Sock 5.Thread stoped [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49: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:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:37]accept exits with 6 [07:12:37]New connection [07:12:37]New thread 3066817892 created [07:12:37]Thread 3066961252 joined [07:12:37]Waiting for new connection... [07:12:37] Sock 6.Parse request [07:12:37]Sock 6.Check first char [07:12:37]Sock 6.First char is OK [07:12:37]request: POST /json_proto HTTP/1.0 [07:12:37]Method: POST [07:12:37]URL: /json_proto [07:12:37]Method is POST - this is cgi request [07:12:37]url: /json_proto [07:12:37]query_string will be loaded in cgi processing [07:12:37]execute_cgi json_proto POST (null) [07:12:37]execute_cgi path=json_proto method=POST [07:12:37]POST find Content-Length [07:12:37]Host: 172.17.63.131:8080 [07:12:37]Content-Length: 681 [07:12:37]Content-Type: application/json [07:12:37] [07:12:37]POST finish read [07:12:37]Found Content-Length = 681 [07:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:37]execute_script... [07:12: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)31296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:37]POST & json_proto [07:12:37]process_json_proto [07:12:37]json parsed OK: [07:12:37]protocol is kg_v1.0 [07:12:37]action value=close_receipt [07:12:37]process_action close_receipt [07:12:37]cmd_close_receipt [07:12:37]MH_GetDate [07:12:37]Write to MH i2c: F0 00 00 DE 43 10 [07:12:37]Write i2c OK [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 09 00 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 09 00 DE 43 00 F8 E7 1D 67 22 05 6E 64 75 [07:12:37]GetLastDocTimeStamp 1730011537 [07:12:37]current date 1730013176 [07:12:37]FM_GetShiftState [07:12:37]SAM_PROTO_GetShiftState [07:12:37]wFMCommunicate request_size=4 [07:12:37]MH_SAM_APDU [07:12:37]CAPDU: 80 13 01 00 [07:12:37]Write to MH i2c: E2 08 00 DF 43 80 13 01 00 00 00 00 00 9F [07:12:37]Write i2c OK [07:12:37]MH_I2C_Read... [07:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:37]Read from MH i2c: E2 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: E2 0E 00 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: E2 0E 00 DF 43 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [07:12:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:12:37]wFMCommunicate OK [07:12:37]SAM_PROTO_GetShiftState done [07:12:37]FM_GetShiftState done [07:12:37]opened in 1729989159 [07:12:37]opened+sec_in_day 1730075559 [07:12:37]quantity*price = 100015 [07:12:37]sum+1 = 100017 [07:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 18 27.10.2024 07:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191986 ФПД: 161070495553858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191986&fm=161070495553858&tin=02508201610067®Number=0000000000091776&sum=100000 [07:12:38]StoreToDocumentArchive [07:12:38]shift 542 fd 191986 [07:12:38]save to /storage/0542/doc_00191986 [07:12:38]save last doc name /storage/0542/doc_00191986 to /storage/kkm_last_doc_name [07:12:38]save OK [07:12:38]Clear old archive folders... [07:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:38]tlvbuf is 01B4D1B0 [07:12:38]SAM_PROTO_ClearQueue [07:12:38]wFMCommunicate request_size=4 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 09 00 00 [07:12:38]Write to MH i2c: E2 08 00 EC 43 80 09 00 00 00 00 00 00 A1 [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:38]Read from MH i2c: E2 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 EC 43 00 90 00 A3 [07:12:38]RAPDU: 90 00 [07:12:38]wFMCommunicate OK [07:12:38]SAM_PROTO_ClearQueue done [07:12:38]KKMCreateOFDPacket [07:12:38]OFDProtocolAddRootSTLVToBuf [07:12:38]FM_MakeSignedData [07:12:38]FM_MakeSignedData [07:12:38]SAM_PROTO_SignData [07:12:38]wFMCommunicate request_size=4 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 0D 01 02 [07:12:38]Write to MH i2c: E2 08 00 ED 43 80 0D 01 02 00 00 00 00 A9 [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:38]Read from MH i2c: E2 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 ED 43 00 90 00 A4 [07:12:38]RAPDU: 90 00 [07:12:38]wFMCommunicate OK [07:12:38]wFMCommunicate request_size=255 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F8 E7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 ED 02 00 35 04 06 00 92 [07:12:38]Write to MH i2c: E2 02 01 EE 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 F8 E7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 ED 02 00 35 04 06 00 92 00 00 3F [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:38]Read from MH i2c: E2 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 EE 43 00 90 00 A5 [07:12:38]RAPDU: 90 00 [07:12:38]wFMCommunicate OK [07:12:38]wFMCommunicate request_size=10 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 0D 02 02 05 7E 25 AB D9 42 [07:12:38]Write to MH i2c: E2 0D 00 EF 43 80 0D 02 02 05 00 7E 25 AB D9 42 00 00 1F [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 EF 43 00 90 00 A6 [07:12:39]RAPDU: 90 00 [07:12:39]wFMCommunicate OK [07:12:39]wFMCommunicate request_size=4 [07:12:39]MH_SAM_APDU [07:12:39]CAPDU: 80 0D 03 02 [07:12:39]Write to MH i2c: E2 08 00 F0 43 80 0D 03 02 00 00 00 00 AE [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 0B 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 0B 00 F0 43 00 3F DC 50 B2 CF 0F 48 19 90 00 0B [07:12:39]RAPDU: 3F DC 50 B2 CF 0F 48 19 90 00 [07:12:39]wFMCommunicate OK [07:12:39]SAM_PROTO_SignData done [07:12:39]FM_MakeSignedData done [07:12:39]CreateOFDProtocolMessage [07:12:39]wFMCommunicate request_size=4 [07:12:39]MH_SAM_APDU [07:12:39]CAPDU: 80 11 00 00 [07:12:39]Write to MH i2c: E2 08 00 F1 43 80 11 00 00 00 00 00 00 AE [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 17 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 17 00 F1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [07:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:12:39]wFMCommunicate OK [07:12:39]CreateOFDProtocolMessage done [07:12:39]OFDSenderStorePacket 191986 [07:12:39]StoreOFDPacket docnum=191986 [07:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 AB 07 01 30 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 F8 E7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 ED 02 00 35 04 06 00 92 7E 25 AB D9 42 3F DC 50 B2 CF 0F 48 19 [07:12:39]CheckFolder [07:12:39]dirname=/storage/ofd_packets [07:12:39]CheckFolder done [07:12:39]ProducePacketName [07:12:39]name=ofd_packets/00191986 [07:12:39]NVStorageSaveData ofd_packets/00191986 [07:12:39]File name is /storage/ofd_packets/00191986 [07:12:39]Write 301 bytes [07:12:39]NVStorageSaveData done [07:12:39]OFDSenderStorePacket done [07:12:39]KKMCreateOFDPacket done [07:12:39]NVStorageSaveData kkm_last_timestamp [07:12:39]File name is /storage/kkm_last_timestamp [07:12:39]Write 4 bytes [07:12:39]NVStorageSaveData done [07:12:39]ExternCall_PrintAddStr [07:12:39]wPrintStart [07:12:39]Write to MH i2c: 01 00 00 F2 43 35 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 F2 43 00 00 00 00 00 FF 0F 4A [07:12:39]RasterBufferAndPrint [07:12:39]line Счет N : (1)31296 [07:12:39]line ИНН: 02508201610067 [07:12:39]line Контрольно-Кассовый Чек [07:12:39]line ПРОДАЖА [07:12:39]line ТРК (МРК, ГНК) : 21 [07:12:39]line Товар: 2710124130 [07:12:39]line Аи-92-К-5 [07:12:39]line 14.950 * 66.90 [07:12:39]line = 1000.16 [07:12:39]line НДС 12% НСП 1% [07:12:39]line > о реализуемом товаре [07:12:39]line ОКРУГЛЕНИЕ: -0.16 [07:12:39]line ИТОГО: 1000.00 [07:12:39]line Внесено: 1000.00 [07:12:39]line СДАЧА: 0.00 [07:12:39]line НСП 1% : 8.85 [07:12:39]line НДС 12% : 106.21 [07:12:39]line Наличными: 1000.00 [07:12:39]line Безнал.: 0.00 [07:12:39]line Место: АЗС № 170 "Партнер Нефть" [07:12:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:12:39]line СНО: Общий режим [07:12:39]line Чек 18 27.10.2024 07:12 [07:12:39]line Смена: 542 ФФД: 1.0 [07:12:39]line ЗНМ: 0300000110 [07:12:39]line РНМ: 0000000000091776 [07:12:39]line Версия ККМ: 001 [07:12:39]line ФМ: 0000000000871754 [07:12:39]line ФД: 191986 [07:12:39]line ФПД: 161070495553858 [07:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191986&fm=161070495553858&tin=02508201610067®Number=0000000000091776&sum=100000 [07:12:39]OFD Sender: Processing packet 191986 [packets to send 75, broken 74] [07:12:39]ProducePacketName [07:12:39]name=ofd_packets/00191986 [07:12:39]OFD Sender: To server: pG, [07:12:39]CommunicateWithHost lk.salyk.kg:30040 [07:12:39]ConnectInit lk.salyk.kg [07:12:39]written 0, free lines is 4095 [07:12:39]Connected sock=8 [07:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 AB 07 01 30 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 F8 E7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 ED 02 00 35 04 06 00 92 7E 25 AB D9 42 3F DC 50 B2 CF 0F 48 19 [07:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 24 47 00 6A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 ED 02 00 F4 03 04 00 C0 8C 1D 67 B6 04 01 00 00 89 CF CA 4F 3B AE 1D 59 [07:12:39]CommunicateWithHost err = 0 [07:12:39]CheckOFDResponse [07:12:39]1017 (14) - 77093643461234 [07:12:39]1041 (16) - 0000000000871754 [07:12:39]1040 (4) - 191986 [07:12:39]1012 (4) - 27.10.2024 00:43 [07:12:39]1206 (1) - 0 [07:12:39]OFD Sender: Remove packet 191986 [07:12:39]ProducePacketName [07:12:39]name=ofd_packets/00191986 [07:12:39]NVStorageDeleteData [07:12:39]Write to MH i2c: 01 00 00 1D 44 61 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 1D 44 00 00 00 00 00 AA 0C 1E [07:12:39]RasterBufferAndPrint [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]line [07:12:39]written 0, free lines is 3251 [07:12:39]MH_Cut [07:12:39]Write to MH i2c: D1 01 00 24 44 01 3A [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 01 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: D1 01 00 24 44 00 39 [07:12:39]Write to MH i2c: 01 00 00 25 44 69 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:40]OFD Sender: No OFD packet to send [07:12:40]*** Cut start [07:12:40]*** Partial cut [07:12:40]*** CUTSNS_PIN = 1 [07:12:40]*** CUTSNS_PIN = 0 [07:12:41]*** Brake cut motor [07:12:41]Read from MH i2c: 01 [07:12:41]MH_I2C_Read... [07:12:41]*** Stop cut motor [07:12:41]*** Cut end [07:12:41]Read from MH i2c: 01 07 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: 01 07 00 25 44 00 00 00 00 00 FF 0F 7E [07:12:41]process_action close_receipt done [07:12:41]requested_data is exist [07:12:41]produce_requested_data [07:12:41]requested_item fm.sn is exist - process it [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 11 00 00 [07:12:41]Write to MH i2c: E2 08 00 26 44 80 11 00 00 00 00 00 00 E4 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 17 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 17 00 26 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [07:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:12:41]wFMCommunicate OK [07:12:41]requested_item fd.num is exist - process it [07:12:41]SAM_PROTO_GetFieldsCounters [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 13 00 00 [07:12:41]Write to MH i2c: E2 08 00 27 44 80 13 00 00 00 00 00 00 E7 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 62 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 62 00 27 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [07:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_GetFieldsCounters done [07:12:41]requested_item shift.num is exist - process it [07:12:41]requested_item shift.opened is exist - process it [07:12:41]req_shift_opened [07:12:41]FM_GetShiftState [07:12:41]SAM_PROTO_GetShiftState [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 13 01 00 [07:12:41]Write to MH i2c: E2 08 00 28 44 80 13 01 00 00 00 00 00 E9 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 28 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [07:12:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_GetShiftState done [07:12:41]FM_GetShiftState done [07:12:41]req_shift_opened done [07:12:41]requested_item shift.open_date is exist - process it [07:12:41]req_shift_open_date [07:12:41]req_shift_open_date done [07:12:41]produce_requested_data done [07:12:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191986,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [07:12:41]process_action_free close_receipt [07:12:41]json_value_free [07:12:41]json_value_free done [07:12:41]process_json_proto returns [07:12:41]Send response to host [07:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191986,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [07:12:41]free response buf [07:12:41]execute_script done [07:12:41]execute_script returns [07:12:41]free content buf [07:12:41]Sock 6.Close socket [07:12:41]Sock 6.Thread stoped [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]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:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]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:37]accept exits with 5 [07:39:37]New connection [07:39:37]New thread 3066961252 created [07:39:37]Thread 3066817892 joined [07:39:37]Waiting for new connection... [07:39:37] Sock 5.Parse request [07:39:37]Sock 5.Check first char [07:39:37]Sock 5.First char is OK [07:39:37]request: POST /json_proto HTTP/1.0 [07:39:37]Method: POST [07:39:37]URL: /json_proto [07:39:37]Method is POST - this is cgi request [07:39:37]url: /json_proto [07:39:37]query_string will be loaded in cgi processing [07:39:37]execute_cgi json_proto POST (null) [07:39:37]execute_cgi path=json_proto method=POST [07:39:37]POST find Content-Length [07:39:37]Host: 172.17.63.131:8080 [07:39:37]Content-Length: 681 [07:39:37]Content-Type: application/json [07:39:37] [07:39:37]POST finish read [07:39:37]Found Content-Length = 681 [07:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:37]execute_script... [07:39: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)31297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:37]POST & json_proto [07:39:37]process_json_proto [07:39:37]json parsed OK: [07:39:37]protocol is kg_v1.0 [07:39:37]action value=close_receipt [07:39:37]process_action close_receipt [07:39:37]cmd_close_receipt [07:39:37]MH_GetDate [07:39:37]Write to MH i2c: F0 00 00 29 44 5C [07:39:37]Write i2c OK [07:39:37]MH_I2C_Read... [07:39:37]Read from MH i2c: F0 [07:39:37]MH_I2C_Read... [07:39:37]Read from MH i2c: F0 09 00 [07:39:37]MH_I2C_Read... [07:39:37]Read from MH i2c: F0 09 00 29 44 00 4C EE 1D 67 22 05 6E 64 1C [07:39:37]GetLastDocTimeStamp 1730013176 [07:39:37]current date 1730014796 [07:39:37]FM_GetShiftState [07:39:37]SAM_PROTO_GetShiftState [07:39:37]wFMCommunicate request_size=4 [07:39:37]MH_SAM_APDU [07:39:37]CAPDU: 80 13 01 00 [07:39:37]Write to MH i2c: E2 08 00 2A 44 80 13 01 00 00 00 00 00 EB [07:39:37]Write i2c OK [07:39:37]MH_I2C_Read... [07:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:37]Read from MH i2c: E2 [07:39:37]MH_I2C_Read... [07:39:37]Read from MH i2c: E2 0E 00 [07:39:37]MH_I2C_Read... [07:39:37]Read from MH i2c: E2 0E 00 2A 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2C [07:39:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:39:37]wFMCommunicate OK [07:39:37]SAM_PROTO_GetShiftState done [07:39:37]FM_GetShiftState done [07:39:37]opened in 1729989159 [07:39:37]opened+sec_in_day 1730075559 [07:39:37]quantity*price = 100015 [07:39:37]sum+1 = 100017 [07:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 19 27.10.2024 07:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191987 ФПД: 132043985470979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191987&fm=132043985470979&tin=02508201610067®Number=0000000000091776&sum=100000 [07:39:38]StoreToDocumentArchive [07:39:38]shift 542 fd 191987 [07:39:38]save to /storage/0542/doc_00191987 [07:39:38]save last doc name /storage/0542/doc_00191987 to /storage/kkm_last_doc_name [07:39:38]save OK [07:39:38]Clear old archive folders... [07:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:38]tlvbuf is 01860080 [07:39:38]SAM_PROTO_ClearQueue [07:39:38]wFMCommunicate request_size=4 [07:39:38]MH_SAM_APDU [07:39:38]CAPDU: 80 09 00 00 [07:39:38]Write to MH i2c: E2 08 00 37 44 80 09 00 00 00 00 00 00 ED [07:39:38]Write i2c OK [07:39:38]MH_I2C_Read... [07:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:38]Read from MH i2c: E2 [07:39:38]MH_I2C_Read... [07:39:38]Read from MH i2c: E2 03 00 [07:39:38]MH_I2C_Read... [07:39:38]Read from MH i2c: E2 03 00 37 44 00 90 00 EF [07:39:38]RAPDU: 90 00 [07:39:38]wFMCommunicate OK [07:39:38]SAM_PROTO_ClearQueue done [07:39:38]KKMCreateOFDPacket [07:39:38]OFDProtocolAddRootSTLVToBuf [07:39:38]FM_MakeSignedData [07:39:38]FM_MakeSignedData [07:39:38]SAM_PROTO_SignData [07:39:38]wFMCommunicate request_size=4 [07:39:38]MH_SAM_APDU [07:39:38]CAPDU: 80 0D 01 02 [07:39:38]Write to MH i2c: E2 08 00 38 44 80 0D 01 02 00 00 00 00 F5 [07:39:38]Write i2c OK [07:39:38]MH_I2C_Read... [07:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:38]Read from MH i2c: E2 [07:39:38]MH_I2C_Read... [07:39:38]Read from MH i2c: E2 03 00 [07:39:38]MH_I2C_Read... [07:39:38]Read from MH i2c: E2 03 00 38 44 00 90 00 F0 [07:39:38]RAPDU: 90 00 [07:39:38]wFMCommunicate OK [07:39:38]wFMCommunicate request_size=255 [07:39:38]MH_SAM_APDU [07:39:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4C EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 ED 02 00 35 04 06 00 78 [07:39:38]Write to MH i2c: E2 02 01 39 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 ED 02 00 35 04 06 00 78 00 00 CE [07:39:38]Write i2c OK [07:39:38]MH_I2C_Read... [07:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:39]Read from MH i2c: E2 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 03 00 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 03 00 39 44 00 90 00 F1 [07:39:39]RAPDU: 90 00 [07:39:39]wFMCommunicate OK [07:39:39]wFMCommunicate request_size=10 [07:39:39]MH_SAM_APDU [07:39:39]CAPDU: 80 0D 02 02 05 17 E2 D9 46 03 [07:39:39]Write to MH i2c: E2 0D 00 3A 44 80 0D 02 02 05 00 17 E2 D9 46 03 00 00 1D [07:39:39]Write i2c OK [07:39:39]MH_I2C_Read... [07:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:39]Read from MH i2c: E2 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 03 00 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 03 00 3A 44 00 90 00 F2 [07:39:39]RAPDU: 90 00 [07:39:39]wFMCommunicate OK [07:39:39]wFMCommunicate request_size=4 [07:39:39]MH_SAM_APDU [07:39:39]CAPDU: 80 0D 03 02 [07:39:39]Write to MH i2c: E2 08 00 3B 44 80 0D 03 02 00 00 00 00 FA [07:39:39]Write i2c OK [07:39:39]MH_I2C_Read... [07:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:39]Read from MH i2c: E2 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 0B 00 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 0B 00 3B 44 00 E0 26 2D C8 14 82 D6 1B 90 00 7D [07:39:39]RAPDU: E0 26 2D C8 14 82 D6 1B 90 00 [07:39:39]wFMCommunicate OK [07:39:39]SAM_PROTO_SignData done [07:39:39]FM_MakeSignedData done [07:39:39]CreateOFDProtocolMessage [07:39:39]wFMCommunicate request_size=4 [07:39:39]MH_SAM_APDU [07:39:39]CAPDU: 80 11 00 00 [07:39:39]Write to MH i2c: E2 08 00 3C 44 80 11 00 00 00 00 00 00 FA [07:39:39]Write i2c OK [07:39:39]MH_I2C_Read... [07:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:39]Read from MH i2c: E2 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 17 00 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: E2 17 00 3C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [07:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:39:39]wFMCommunicate OK [07:39:39]CreateOFDProtocolMessage done [07:39:39]OFDSenderStorePacket 191987 [07:39:39]StoreOFDPacket docnum=191987 [07:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 C9 07 01 3B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 ED 02 00 35 04 06 00 78 17 E2 D9 46 03 E0 26 2D C8 14 82 D6 1B [07:39:39]CheckFolder [07:39:39]dirname=/storage/ofd_packets [07:39:39]CheckFolder done [07:39:39]ProducePacketName [07:39:39]name=ofd_packets/00191987 [07:39:39]NVStorageSaveData ofd_packets/00191987 [07:39:39]File name is /storage/ofd_packets/00191987 [07:39:39]Write 301 bytes [07:39:39]NVStorageSaveData done [07:39:39]OFDSenderStorePacket done [07:39:39]KKMCreateOFDPacket done [07:39:39]NVStorageSaveData kkm_last_timestamp [07:39:39]File name is /storage/kkm_last_timestamp [07:39:39]Write 4 bytes [07:39:39]NVStorageSaveData done [07:39:39]ExternCall_PrintAddStr [07:39:39]wPrintStart [07:39:39]Write to MH i2c: 01 00 00 3D 44 81 [07:39:39]Write i2c OK [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: 01 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: 01 07 00 [07:39:39]MH_I2C_Read... [07:39:39]Read from MH i2c: 01 07 00 3D 44 00 00 00 00 00 FF 0F 96 [07:39:39]RasterBufferAndPrint [07:39:39]line Счет N : (1)31297 [07:39:39]line ИНН: 02508201610067 [07:39:39]line Контрольно-Кассовый Чек [07:39:39]line ПРОДАЖА [07:39:39]line ТРК (МРК, ГНК) : 12 [07:39:39]line Товар: 2710124130 [07:39:39]line Аи-92-К-5 [07:39:39]line 14.950 * 66.90 [07:39:39]line = 1000.16 [07:39:39]line НДС 12% НСП 1% [07:39:39]line > о реализуемом товаре [07:39:39]line ОКРУГЛЕНИЕ: -0.16 [07:39:39]line ИТОГО: 1000.00 [07:39:39]line Внесено: 1000.00 [07:39:39]line СДАЧА: 0.00 [07:39:39]line НСП 1% : 8.85 [07:39:39]line НДС 12% : 106.21 [07:39:39]line Наличными: 1000.00 [07:39:39]line Безнал.: 0.00 [07:39:39]line Место: АЗС № 170 "Партнер Нефть" [07:39:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:39:39]line СНО: Общий режим [07:39:39]line Чек 19 27.10.2024 07:39 [07:39:39]line Смена: 542 ФФД: 1.0 [07:39:39]line ЗНМ: 0300000110 [07:39:39]line РНМ: 0000000000091776 [07:39:39]line Версия ККМ: 001 [07:39:39]line ФМ: 0000000000871754 [07:39:39]line ФД: 191987 [07:39:39]line ФПД: 132043985470979 [07:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191987&fm=132043985470979&tin=02508201610067®Number=0000000000091776&sum=100000 [07:39:39]OFD Sender: Processing packet 191987 [packets to send 75, broken 74] [07:39:39]ProducePacketName [07:39:39]name=ofd_packets/00191987 [07:39:39]OFD Sender: To server: pG, [07:39:39]CommunicateWithHost lk.salyk.kg:30040 [07:39:39]ConnectInit lk.salyk.kg [07:39:39]written 0, free lines is 4095 [07:39:39]Connected sock=8 [07:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 C9 07 01 3B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C EE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 ED 02 00 35 04 06 00 78 17 E2 D9 46 03 E0 26 2D C8 14 82 D6 1B [07:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 70 47 00 94 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 ED 02 00 F4 03 04 00 15 93 1D 67 B6 04 01 00 00 22 03 62 00 71 1C BF 53 [07:39:40]CommunicateWithHost err = 0 [07:39:40]CheckOFDResponse [07:39:40]1017 (14) - 77093643461234 [07:39:40]1041 (16) - 0000000000871754 [07:39:40]1040 (4) - 191987 [07:39:40]1012 (4) - 27.10.2024 01:10 [07:39:40]1206 (1) - 0 [07:39:40]OFD Sender: Remove packet 191987 [07:39:40]ProducePacketName [07:39:40]name=ofd_packets/00191987 [07:39:40]NVStorageDeleteData [07:39:40]Write to MH i2c: 01 00 00 68 44 AC [07:39:40]Write i2c OK [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: 01 [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: 01 07 00 [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: 01 07 00 68 44 00 00 00 00 00 A7 0C 66 [07:39:40]RasterBufferAndPrint [07:39:40]line [07:39:40]line [07:39:40]line [07:39:40]line [07:39:40]line [07:39:40]written 0, free lines is 3245 [07:39:40]MH_Cut [07:39:40]Write to MH i2c: D1 01 00 6F 44 01 85 [07:39:40]Write i2c OK [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: D1 [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: D1 01 00 [07:39:40]MH_I2C_Read... [07:39:40]Read from MH i2c: D1 01 00 6F 44 00 84 [07:39:40]Write to MH i2c: 01 00 00 70 44 B4 [07:39:40]Write i2c OK [07:39:40]MH_I2C_Read... [07:39:40]OFD Sender: No OFD packet to send [07:39:41]*** Cut start [07:39:41]*** Partial cut [07:39:41]*** CUTSNS_PIN = 1 [07:39:41]*** CUTSNS_PIN = 0 [07:39:41]*** Brake cut motor [07:39:41]Read from MH i2c: 01 [07:39:41]MH_I2C_Read... [07:39:41]*** Stop cut motor [07:39:41]*** Cut end [07:39:41]Read from MH i2c: 01 07 00 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: 01 07 00 70 44 00 00 00 00 00 FF 0F C9 [07:39:41]process_action close_receipt done [07:39:41]requested_data is exist [07:39:41]produce_requested_data [07:39:41]requested_item fm.sn is exist - process it [07:39:41]wFMCommunicate request_size=4 [07:39:41]MH_SAM_APDU [07:39:41]CAPDU: 80 11 00 00 [07:39:41]Write to MH i2c: E2 08 00 71 44 80 11 00 00 00 00 00 00 2F [07:39:41]Write i2c OK [07:39:41]MH_I2C_Read... [07:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:41]Read from MH i2c: E2 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 17 00 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 17 00 71 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [07:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:39:41]wFMCommunicate OK [07:39:41]requested_item fd.num is exist - process it [07:39:41]SAM_PROTO_GetFieldsCounters [07:39:41]wFMCommunicate request_size=4 [07:39:41]MH_SAM_APDU [07:39:41]CAPDU: 80 13 00 00 [07:39:41]Write to MH i2c: E2 08 00 72 44 80 13 00 00 00 00 00 00 32 [07:39:41]Write i2c OK [07:39:41]MH_I2C_Read... [07:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:41]Read from MH i2c: E2 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 62 00 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 62 00 72 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [07:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:39:41]wFMCommunicate OK [07:39:41]SAM_PROTO_GetFieldsCounters done [07:39:41]requested_item shift.num is exist - process it [07:39:41]requested_item shift.opened is exist - process it [07:39:41]req_shift_opened [07:39:41]FM_GetShiftState [07:39:41]SAM_PROTO_GetShiftState [07:39:41]wFMCommunicate request_size=4 [07:39:41]MH_SAM_APDU [07:39:41]CAPDU: 80 13 01 00 [07:39:41]Write to MH i2c: E2 08 00 73 44 80 13 01 00 00 00 00 00 34 [07:39:41]Write i2c OK [07:39:41]MH_I2C_Read... [07:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:41]Read from MH i2c: E2 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 0E 00 [07:39:41]MH_I2C_Read... [07:39:41]Read from MH i2c: E2 0E 00 73 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [07:39:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:39:41]wFMCommunicate OK [07:39:41]SAM_PROTO_GetShiftState done [07:39:41]FM_GetShiftState done [07:39:41]req_shift_opened done [07:39:41]requested_item shift.open_date is exist - process it [07:39:41]req_shift_open_date [07:39:41]req_shift_open_date done [07:39:41]produce_requested_data done [07:39:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191987,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [07:39:41]process_action_free close_receipt [07:39:41]json_value_free [07:39:41]json_value_free done [07:39:41]process_json_proto returns [07:39:41]Send response to host [07:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191987,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [07:39:41]free response buf [07:39:41]execute_script done [07:39:41]execute_script returns [07:39:41]free content buf [07:39:41]Sock 5.Close socket [07:39:41]Sock 5.Thread stoped [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:07]accept exits with 6 [07:43:07]New connection [07:43:07]New thread 3066817892 created [07:43:07]Thread 3066961252 joined [07:43:07]Waiting for new connection... [07:43:07] Sock 6.Parse request [07:43:07]Sock 6.Check first char [07:43:07]Sock 6.First char is OK [07:43:07]request: POST /json_proto HTTP/1.0 [07:43:07]Method: POST [07:43:07]URL: /json_proto [07:43:07]Method is POST - this is cgi request [07:43:07]url: /json_proto [07:43:07]query_string will be loaded in cgi processing [07:43:07]execute_cgi json_proto POST (null) [07:43:07]execute_cgi path=json_proto method=POST [07:43:07]POST find Content-Length [07:43:07]Host: 172.17.63.131:8080 [07:43:07]Content-Length: 676 [07:43:07]Content-Type: application/json [07:43:07] [07:43:07]POST finish read [07:43:07]Found Content-Length = 676 [07:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:07]execute_script... [07:43:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:07]POST & json_proto [07:43:07]process_json_proto [07:43:07]json parsed OK: [07:43:07]protocol is kg_v1.0 [07:43:07]action value=close_receipt [07:43:07]process_action close_receipt [07:43:07]cmd_close_receipt [07:43:07]MH_GetDate [07:43:07]Write to MH i2c: F0 00 00 74 44 A7 [07:43:07]Write i2c OK [07:43:07]MH_I2C_Read... [07:43:07]Read from MH i2c: F0 [07:43:07]MH_I2C_Read... [07:43:07]Read from MH i2c: F0 09 00 [07:43:07]MH_I2C_Read... [07:43:07]Read from MH i2c: F0 09 00 74 44 00 1D EF 1D 67 22 05 6E 64 39 [07:43:07]GetLastDocTimeStamp 1730014796 [07:43:07]current date 1730015005 [07:43:07]FM_GetShiftState [07:43:07]SAM_PROTO_GetShiftState [07:43:07]wFMCommunicate request_size=4 [07:43:07]MH_SAM_APDU [07:43:07]CAPDU: 80 13 01 00 [07:43:07]Write to MH i2c: E2 08 00 75 44 80 13 01 00 00 00 00 00 36 [07:43:07]Write i2c OK [07:43:07]MH_I2C_Read... [07:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:07]Read from MH i2c: E2 [07:43:07]MH_I2C_Read... [07:43:07]Read from MH i2c: E2 0E 00 [07:43:07]MH_I2C_Read... [07:43:07]Read from MH i2c: E2 0E 00 75 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 77 [07:43:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:43:07]wFMCommunicate OK [07:43:07]SAM_PROTO_GetShiftState done [07:43:07]FM_GetShiftState done [07:43:07]opened in 1729989159 [07:43:07]opened+sec_in_day 1730075559 [07:43:07]quantity*price = 50041 [07:43:07]sum+1 = 50042 [07:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 20 27.10.2024 07:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191988 ФПД: 89128406769030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191988&fm=89128406769030&tin=02508201610067®Number=0000000000091776&sum=50000 [07:43:08]StoreToDocumentArchive [07:43:08]shift 542 fd 191988 [07:43:08]save to /storage/0542/doc_00191988 [07:43:08]save last doc name /storage/0542/doc_00191988 to /storage/kkm_last_doc_name [07:43:08]save OK [07:43:08]Clear old archive folders... [07:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:08]tlvbuf is 01B0CE10 [07:43:08]SAM_PROTO_ClearQueue [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 09 00 00 [07:43:08]Write to MH i2c: E2 08 00 82 44 80 09 00 00 00 00 00 00 38 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 82 44 00 90 00 3A [07:43:08]RAPDU: 90 00 [07:43:08]wFMCommunicate OK [07:43:08]SAM_PROTO_ClearQueue done [07:43:08]KKMCreateOFDPacket [07:43:08]OFDProtocolAddRootSTLVToBuf [07:43:08]FM_MakeSignedData [07:43:08]FM_MakeSignedData [07:43:08]SAM_PROTO_SignData [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 0D 01 02 [07:43:08]Write to MH i2c: E2 08 00 83 44 80 0D 01 02 00 00 00 00 40 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 83 44 00 90 00 3B [07:43:08]RAPDU: 90 00 [07:43:08]wFMCommunicate OK [07:43:08]wFMCommunicate request_size=255 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 1E EF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 ED 02 00 35 04 06 00 51 [07:43:08]Write to MH i2c: E2 02 01 84 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 1E EF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 ED 02 00 35 04 06 00 51 00 00 CD [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 84 44 00 90 00 3C [07:43:08]RAPDU: 90 00 [07:43:08]wFMCommunicate OK [07:43:08]wFMCommunicate request_size=10 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 0D 02 02 05 0F D3 06 5D 86 [07:43:08]Write to MH i2c: E2 0D 00 85 44 80 0D 02 02 05 00 0F D3 06 5D 86 00 00 18 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 03 00 85 44 00 90 00 3D [07:43:08]RAPDU: 90 00 [07:43:08]wFMCommunicate OK [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 0D 03 02 [07:43:08]Write to MH i2c: E2 08 00 86 44 80 0D 03 02 00 00 00 00 45 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 0B 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 0B 00 86 44 00 47 9D 86 AA 2C 64 16 5A 90 00 5A [07:43:08]RAPDU: 47 9D 86 AA 2C 64 16 5A 90 00 [07:43:08]wFMCommunicate OK [07:43:08]SAM_PROTO_SignData done [07:43:08]FM_MakeSignedData done [07:43:08]CreateOFDProtocolMessage [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 11 00 00 [07:43:08]Write to MH i2c: E2 08 00 87 44 80 11 00 00 00 00 00 00 45 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 17 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 17 00 87 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [07:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:43:08]wFMCommunicate OK [07:43:08]CreateOFDProtocolMessage done [07:43:08]OFDSenderStorePacket 191988 [07:43:08]StoreOFDPacket docnum=191988 [07:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 B7 07 01 C5 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 1E EF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 ED 02 00 35 04 06 00 51 0F D3 06 5D 86 47 9D 86 AA 2C 64 16 5A [07:43:08]CheckFolder [07:43:08]dirname=/storage/ofd_packets [07:43:08]CheckFolder done [07:43:08]ProducePacketName [07:43:08]name=ofd_packets/00191988 [07:43:08]NVStorageSaveData ofd_packets/00191988 [07:43:08]File name is /storage/ofd_packets/00191988 [07:43:08]Write 301 bytes [07:43:08]NVStorageSaveData done [07:43:08]OFDSenderStorePacket done [07:43:08]KKMCreateOFDPacket done [07:43:08]NVStorageSaveData kkm_last_timestamp [07:43:08]File name is /storage/kkm_last_timestamp [07:43:08]Write 4 bytes [07:43:08]NVStorageSaveData done [07:43:08]ExternCall_PrintAddStr [07:43:08]wPrintStart [07:43:08]Write to MH i2c: 01 00 00 88 44 CC [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: 01 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: 01 07 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: 01 07 00 88 44 00 00 00 00 00 FF 0F E1 [07:43:08]RasterBufferAndPrint [07:43:08]line Счет N : (1)31298 [07:43:08]line ИНН: 02508201610067 [07:43:08]line Контрольно-Кассовый Чек [07:43:08]line ПРОДАЖА [07:43:08]line ТРК (МРК, ГНК) : 21 [07:43:08]line Товар: 2710124130 [07:43:08]line Аи-92-К-5 [07:43:08]line 7.480 * 66.90 [07:43:08]line = 500.41 [07:43:08]line НДС 12% НСП 1% [07:43:08]line > о реализуемом товаре [07:43:08]line ОКРУГЛЕНИЕ: -0.41 [07:43:08]line ИТОГО: 500.00 [07:43:08]line Внесено: 500.00 [07:43:08]line СДАЧА: 0.00 [07:43:08]line НСП 1% : 4.43 [07:43:08]line НДС 12% : 53.14 [07:43:08]line Наличными: 500.00 [07:43:08]line Безнал.: 0.00 [07:43:08]line Место: АЗС № 170 "Партнер Нефть" [07:43:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:43:08]line СНО: Общий режим [07:43:08]line Чек 20 27.10.2024 07:43 [07:43:08]line Смена: 542 ФФД: 1.0 [07:43:08]line ЗНМ: 0300000110 [07:43:08]line РНМ: 0000000000091776 [07:43:08]line Версия ККМ: 001 [07:43:08]line ФМ: 0000000000871754 [07:43:08]line ФД: 191988 [07:43:08]line ФПД: 89128406769030 [07:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074326&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191988&fm=89128406769030&tin=02508201610067®Number=0000000000091776&sum=50000 [07:43:09]OFD Sender: Processing packet 191988 [packets to send 75, broken 74] [07:43:09]ProducePacketName [07:43:09]name=ofd_packets/00191988 [07:43:09]OFD Sender: To server: pG, [07:43:09]CommunicateWithHost lk.salyk.kg:30040 [07:43:09]ConnectInit lk.salyk.kg [07:43:09]written 0, free lines is 4095 [07:43:09]Connected sock=8 [07:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 B7 07 01 C5 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 1E EF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 ED 02 00 35 04 06 00 51 0F D3 06 5D 86 47 9D 86 AA 2C 64 16 5A [07:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F AB 47 00 20 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 ED 02 00 F4 03 04 00 E6 93 1D 67 B6 04 01 00 00 5C F0 17 ED 14 62 44 87 [07:43:09]CommunicateWithHost err = 0 [07:43:09]CheckOFDResponse [07:43:09]1017 (14) - 77093643461234 [07:43:09]1041 (16) - 0000000000871754 [07:43:09]1040 (4) - 191988 [07:43:09]1012 (4) - 27.10.2024 01:14 [07:43:09]1206 (1) - 0 [07:43:09]OFD Sender: Remove packet 191988 [07:43:09]ProducePacketName [07:43:09]name=ofd_packets/00191988 [07:43:09]NVStorageDeleteData [07:43:09]Write to MH i2c: 01 00 00 B3 44 F7 [07:43:09]Write i2c OK [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: 01 [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: 01 07 00 [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: 01 07 00 B3 44 00 00 00 00 00 9E 0C A8 [07:43:09]RasterBufferAndPrint [07:43:09]line [07:43:09]line [07:43:09]line [07:43:09]line [07:43:09]line [07:43:09]written 0, free lines is 3238 [07:43:09]MH_Cut [07:43:09]Write to MH i2c: D1 01 00 BA 44 01 D0 [07:43:09]Write i2c OK [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: D1 [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: D1 01 00 [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: D1 01 00 BA 44 00 CF [07:43:09]Write to MH i2c: 01 00 00 BB 44 FF [07:43:09]Write i2c OK [07:43:09]MH_I2C_Read... [07:43:09]OFD Sender: No OFD packet to send [07:43:10]*** Cut start [07:43:10]*** Partial cut [07:43:10]*** CUTSNS_PIN = 1 [07:43:10]*** CUTSNS_PIN = 0 [07:43:10]*** Brake cut motor [07:43:11]Read from MH i2c: 01 [07:43:11]MH_I2C_Read... [07:43:11]*** Stop cut motor [07:43:11]*** Cut end [07:43:11]Read from MH i2c: 01 07 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: 01 07 00 BB 44 00 00 00 00 00 FF 0F 14 [07:43:11]process_action close_receipt done [07:43:11]requested_data is exist [07:43:11]produce_requested_data [07:43:11]requested_item fm.sn is exist - process it [07:43:11]wFMCommunicate request_size=4 [07:43:11]MH_SAM_APDU [07:43:11]CAPDU: 80 11 00 00 [07:43:11]Write to MH i2c: E2 08 00 BC 44 80 11 00 00 00 00 00 00 7A [07:43:11]Write i2c OK [07:43:11]MH_I2C_Read... [07:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:11]Read from MH i2c: E2 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 17 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 17 00 BC 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [07:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:43:11]wFMCommunicate OK [07:43:11]requested_item fd.num is exist - process it [07:43:11]SAM_PROTO_GetFieldsCounters [07:43:11]wFMCommunicate request_size=4 [07:43:11]MH_SAM_APDU [07:43:11]CAPDU: 80 13 00 00 [07:43:11]Write to MH i2c: E2 08 00 BD 44 80 13 00 00 00 00 00 00 7D [07:43:11]Write i2c OK [07:43:11]MH_I2C_Read... [07:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:11]Read from MH i2c: E2 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 62 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 62 00 BD 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [07:43:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:11]wFMCommunicate OK [07:43:11]SAM_PROTO_GetFieldsCounters done [07:43:11]requested_item shift.num is exist - process it [07:43:11]requested_item shift.opened is exist - process it [07:43:11]req_shift_opened [07:43:11]FM_GetShiftState [07:43:11]SAM_PROTO_GetShiftState [07:43:11]wFMCommunicate request_size=4 [07:43:11]MH_SAM_APDU [07:43:11]CAPDU: 80 13 01 00 [07:43:11]Write to MH i2c: E2 08 00 BE 44 80 13 01 00 00 00 00 00 7F [07:43:11]Write i2c OK [07:43:11]MH_I2C_Read... [07:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:11]Read from MH i2c: E2 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 0E 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 0E 00 BE 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [07:43:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:43:11]wFMCommunicate OK [07:43:11]SAM_PROTO_GetShiftState done [07:43:11]FM_GetShiftState done [07:43:11]req_shift_opened done [07:43:11]requested_item shift.open_date is exist - process it [07:43:11]req_shift_open_date [07:43:11]req_shift_open_date done [07:43:11]produce_requested_data done [07:43:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191988,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [07:43:11]process_action_free close_receipt [07:43:11]json_value_free [07:43:11]json_value_free done [07:43:11]process_json_proto returns [07:43:11]Send response to host [07:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191988,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [07:43:11]free response buf [07:43:11]execute_script done [07:43:11]execute_script returns [07:43:11]free content buf [07:43:11]Sock 6.Close socket [07:43:11]Sock 6.Thread stoped [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:04]accept exits with 5 [07:52:04]New connection [07:52:04]New thread 3066961252 created [07:52:04]Thread 3066817892 joined [07:52:04]Waiting for new connection... [07:52:04] Sock 5.Parse request [07:52:04]Sock 5.Check first char [07:52:04]Sock 5.First char is OK [07:52:04]request: POST /json_proto HTTP/1.0 [07:52:04]Method: POST [07:52:04]URL: /json_proto [07:52:04]Method is POST - this is cgi request [07:52:04]url: /json_proto [07:52:04]query_string will be loaded in cgi processing [07:52:04]execute_cgi json_proto POST (null) [07:52:04]execute_cgi path=json_proto method=POST [07:52:04]POST find Content-Length [07:52:04]Host: 172.17.63.131:8080 [07:52:04]Content-Length: 676 [07:52:04]Content-Type: application/json [07:52:04] [07:52:04]POST finish read [07:52:04]Found Content-Length = 676 [07:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:04]execute_script... [07:52: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)31299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:04]POST & json_proto [07:52:04]process_json_proto [07:52:04]json parsed OK: [07:52:04]protocol is kg_v1.0 [07:52:04]action value=close_receipt [07:52:04]process_action close_receipt [07:52:04]cmd_close_receipt [07:52:04]MH_GetDate [07:52:04]Write to MH i2c: F0 00 00 BF 44 F2 [07:52:04]Write i2c OK [07:52:04]MH_I2C_Read... [07:52:04]Read from MH i2c: F0 [07:52:04]MH_I2C_Read... [07:52:04]Read from MH i2c: F0 09 00 [07:52:04]MH_I2C_Read... [07:52:04]Read from MH i2c: F0 09 00 BF 44 00 37 F1 1D 67 22 05 6E 64 A0 [07:52:04]GetLastDocTimeStamp 1730015006 [07:52:04]current date 1730015543 [07:52:04]FM_GetShiftState [07:52:04]SAM_PROTO_GetShiftState [07:52:04]wFMCommunicate request_size=4 [07:52:04]MH_SAM_APDU [07:52:04]CAPDU: 80 13 01 00 [07:52:04]Write to MH i2c: E2 08 00 C0 44 80 13 01 00 00 00 00 00 81 [07:52:04]Write i2c OK [07:52:04]MH_I2C_Read... [07:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:04]Read from MH i2c: E2 [07:52:04]MH_I2C_Read... [07:52:04]Read from MH i2c: E2 0E 00 [07:52:04]MH_I2C_Read... [07:52:04]Read from MH i2c: E2 0E 00 C0 44 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C2 [07:52:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:52:04]wFMCommunicate OK [07:52:04]SAM_PROTO_GetShiftState done [07:52:04]FM_GetShiftState done [07:52:04]opened in 1729989159 [07:52:04]opened+sec_in_day 1730075559 [07:52:04]quantity*price = 50041 [07:52:04]sum+1 = 50042 [07:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 21 27.10.2024 07:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191989 ФПД: 186914654911374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191989&fm=186914654911374&tin=02508201610067®Number=0000000000091776&sum=50000 [07:52:05]StoreToDocumentArchive [07:52:05]shift 542 fd 191989 [07:52:05]save to /storage/0542/doc_00191989 [07:52:05]save last doc name /storage/0542/doc_00191989 to /storage/kkm_last_doc_name [07:52:05]save OK [07:52:05]Clear old archive folders... [07:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:05]tlvbuf is 01748D30 [07:52:05]SAM_PROTO_ClearQueue [07:52:05]wFMCommunicate request_size=4 [07:52:05]MH_SAM_APDU [07:52:05]CAPDU: 80 09 00 00 [07:52:05]Write to MH i2c: E2 08 00 CD 44 80 09 00 00 00 00 00 00 83 [07:52:05]Write i2c OK [07:52:05]MH_I2C_Read... [07:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:05]Read from MH i2c: E2 [07:52:05]MH_I2C_Read... [07:52:05]Read from MH i2c: E2 03 00 [07:52:05]MH_I2C_Read... [07:52:05]Read from MH i2c: E2 03 00 CD 44 00 90 00 85 [07:52:05]RAPDU: 90 00 [07:52:05]wFMCommunicate OK [07:52:05]SAM_PROTO_ClearQueue done [07:52:05]KKMCreateOFDPacket [07:52:05]OFDProtocolAddRootSTLVToBuf [07:52:05]FM_MakeSignedData [07:52:05]FM_MakeSignedData [07:52:05]SAM_PROTO_SignData [07:52:05]wFMCommunicate request_size=4 [07:52:05]MH_SAM_APDU [07:52:05]CAPDU: 80 0D 01 02 [07:52:05]Write to MH i2c: E2 08 00 CE 44 80 0D 01 02 00 00 00 00 8B [07:52:05]Write i2c OK [07:52:05]MH_I2C_Read... [07:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:05]Read from MH i2c: E2 [07:52:05]MH_I2C_Read... [07:52:05]Read from MH i2c: E2 03 00 [07:52:05]MH_I2C_Read... [07:52:05]Read from MH i2c: E2 03 00 CE 44 00 90 00 86 [07:52:05]RAPDU: 90 00 [07:52:05]wFMCommunicate OK [07:52:05]wFMCommunicate request_size=255 [07:52:05]MH_SAM_APDU [07:52:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 F1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 ED 02 00 35 04 06 00 A9 [07:52:05]Write to MH i2c: E2 02 01 CF 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 37 F1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 ED 02 00 35 04 06 00 A9 00 00 8D [07:52:05]Write i2c OK [07:52:05]MH_I2C_Read... [07:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:06]Read from MH i2c: E2 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 03 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 03 00 CF 44 00 90 00 87 [07:52:06]RAPDU: 90 00 [07:52:06]wFMCommunicate OK [07:52:06]wFMCommunicate request_size=10 [07:52:06]MH_SAM_APDU [07:52:06]CAPDU: 80 0D 02 02 05 FF 75 9B FB 8E [07:52:06]Write to MH i2c: E2 0D 00 D0 44 80 0D 02 02 05 00 FF 75 9B FB 8E 00 00 30 [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:06]Read from MH i2c: E2 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 03 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 03 00 D0 44 00 90 00 88 [07:52:06]RAPDU: 90 00 [07:52:06]wFMCommunicate OK [07:52:06]wFMCommunicate request_size=4 [07:52:06]MH_SAM_APDU [07:52:06]CAPDU: 80 0D 03 02 [07:52:06]Write to MH i2c: E2 08 00 D1 44 80 0D 03 02 00 00 00 00 90 [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:06]Read from MH i2c: E2 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 0B 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 0B 00 D1 44 00 B4 11 A4 CA 0E 93 7B 2D 90 00 0D [07:52:06]RAPDU: B4 11 A4 CA 0E 93 7B 2D 90 00 [07:52:06]wFMCommunicate OK [07:52:06]SAM_PROTO_SignData done [07:52:06]FM_MakeSignedData done [07:52:06]CreateOFDProtocolMessage [07:52:06]wFMCommunicate request_size=4 [07:52:06]MH_SAM_APDU [07:52:06]CAPDU: 80 11 00 00 [07:52:06]Write to MH i2c: E2 08 00 D2 44 80 11 00 00 00 00 00 00 90 [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:06]Read from MH i2c: E2 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 17 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: E2 17 00 D2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [07:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:52:06]wFMCommunicate OK [07:52:06]CreateOFDProtocolMessage done [07:52:06]OFDSenderStorePacket 191989 [07:52:06]StoreOFDPacket docnum=191989 [07:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 9F 07 01 9A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 F1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 ED 02 00 35 04 06 00 A9 FF 75 9B FB 8E B4 11 A4 CA 0E 93 7B 2D [07:52:06]CheckFolder [07:52:06]dirname=/storage/ofd_packets [07:52:06]CheckFolder done [07:52:06]ProducePacketName [07:52:06]name=ofd_packets/00191989 [07:52:06]NVStorageSaveData ofd_packets/00191989 [07:52:06]File name is /storage/ofd_packets/00191989 [07:52:06]Write 301 bytes [07:52:06]NVStorageSaveData done [07:52:06]OFDSenderStorePacket done [07:52:06]KKMCreateOFDPacket done [07:52:06]NVStorageSaveData kkm_last_timestamp [07:52:06]File name is /storage/kkm_last_timestamp [07:52:06]Write 4 bytes [07:52:06]NVStorageSaveData done [07:52:06]ExternCall_PrintAddStr [07:52:06]wPrintStart [07:52:06]Write to MH i2c: 01 00 00 D3 44 17 [07:52:06]Write i2c OK [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: 01 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: 01 07 00 [07:52:06]MH_I2C_Read... [07:52:06]Read from MH i2c: 01 07 00 D3 44 00 00 00 00 00 FF 0F 2C [07:52:06]RasterBufferAndPrint [07:52:06]line Счет N : (1)31299 [07:52:06]line ИНН: 02508201610067 [07:52:06]line Контрольно-Кассовый Чек [07:52:06]line ПРОДАЖА [07:52:06]line ТРК (МРК, ГНК) : 12 [07:52:06]line Товар: 2710124130 [07:52:06]line Аи-92-К-5 [07:52:06]line 7.480 * 66.90 [07:52:06]line = 500.41 [07:52:06]line НДС 12% НСП 1% [07:52:06]line > о реализуемом товаре [07:52:06]line ОКРУГЛЕНИЕ: -0.41 [07:52:06]line ИТОГО: 500.00 [07:52:06]line Внесено: 500.00 [07:52:06]line СДАЧА: 0.00 [07:52:06]line НСП 1% : 4.43 [07:52:06]line НДС 12% : 53.14 [07:52:06]line Наличными: 500.00 [07:52:06]line Безнал.: 0.00 [07:52:06]line Место: АЗС № 170 "Партнер Нефть" [07:52:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:52:06]line СНО: Общий режим [07:52:06]line Чек 21 27.10.2024 07:52 [07:52:06]line Смена: 542 ФФД: 1.0 [07:52:06]line ЗНМ: 0300000110 [07:52:06]line РНМ: 0000000000091776 [07:52:06]line Версия ККМ: 001 [07:52:06]line ФМ: 0000000000871754 [07:52:06]line ФД: 191989 [07:52:06]line ФПД: 186914654911374 [07:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191989&fm=186914654911374&tin=02508201610067®Number=0000000000091776&sum=50000 [07:52:06]OFD Sender: Processing packet 191989 [packets to send 75, broken 74] [07:52:06]ProducePacketName [07:52:06]name=ofd_packets/00191989 [07:52:06]OFD Sender: To server: pG, [07:52:06]CommunicateWithHost lk.salyk.kg:30040 [07:52:06]ConnectInit lk.salyk.kg [07:52:06]written 0, free lines is 4095 [07:52:06]Connected sock=8 [07:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7C 9F 07 01 9A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 37 F1 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 ED 02 00 35 04 06 00 A9 FF 75 9B FB 8E B4 11 A4 CA 0E 93 7B 2D [07:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 D9 47 00 FD DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 ED 02 00 F4 03 04 00 00 96 1D 67 B6 04 01 00 00 D8 AC 61 DF E4 DB CC AA [07:52:06]CommunicateWithHost err = 0 [07:52:06]CheckOFDResponse [07:52:06]1017 (14) - 77093643461234 [07:52:06]1041 (16) - 0000000000871754 [07:52:06]1040 (4) - 191989 [07:52:06]1012 (4) - 27.10.2024 01:23 [07:52:06]1206 (1) - 0 [07:52:06]OFD Sender: Remove packet 191989 [07:52:06]ProducePacketName [07:52:06]name=ofd_packets/00191989 [07:52:06]NVStorageDeleteData [07:52:07]Write to MH i2c: 01 00 00 FE 44 42 [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 07 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: 01 07 00 FE 44 00 00 00 00 00 AD 0C 02 [07:52:07]RasterBufferAndPrint [07:52:07]line [07:52:07]line [07:52:07]line [07:52:07]line [07:52:07]line [07:52:07]written 0, free lines is 3251 [07:52:07]MH_Cut [07:52:07]Write to MH i2c: D1 01 00 05 45 01 1C [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: D1 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: D1 01 00 [07:52:07]MH_I2C_Read... [07:52:07]Read from MH i2c: D1 01 00 05 45 00 1B [07:52:07]Write to MH i2c: 01 00 00 06 45 4B [07:52:07]Write i2c OK [07:52:07]MH_I2C_Read... [07:52:07]OFD Sender: No OFD packet to send [07:52:07]*** Cut start [07:52:07]*** Partial cut [07:52:07]*** CUTSNS_PIN = 1 [07:52:08]*** CUTSNS_PIN = 0 [07:52:08]*** Brake cut motor [07:52:08]Read from MH i2c: 01 [07:52:08]MH_I2C_Read... [07:52:08]*** Stop cut motor [07:52:08]*** Cut end [07:52:08]Read from MH i2c: 01 07 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: 01 07 00 06 45 00 00 00 00 00 FF 0F 60 [07:52:08]process_action close_receipt done [07:52:08]requested_data is exist [07:52:08]produce_requested_data [07:52:08]requested_item fm.sn is exist - process it [07:52:08]wFMCommunicate request_size=4 [07:52:08]MH_SAM_APDU [07:52:08]CAPDU: 80 11 00 00 [07:52:08]Write to MH i2c: E2 08 00 07 45 80 11 00 00 00 00 00 00 C6 [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:08]Read from MH i2c: E2 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 17 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 17 00 07 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [07:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:52:08]wFMCommunicate OK [07:52:08]requested_item fd.num is exist - process it [07:52:08]SAM_PROTO_GetFieldsCounters [07:52:08]wFMCommunicate request_size=4 [07:52:08]MH_SAM_APDU [07:52:08]CAPDU: 80 13 00 00 [07:52:08]Write to MH i2c: E2 08 00 08 45 80 13 00 00 00 00 00 00 C9 [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:08]Read from MH i2c: E2 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 62 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 62 00 08 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [07:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:08]wFMCommunicate OK [07:52:08]SAM_PROTO_GetFieldsCounters done [07:52:08]requested_item shift.num is exist - process it [07:52:08]requested_item shift.opened is exist - process it [07:52:08]req_shift_opened [07:52:08]FM_GetShiftState [07:52:08]SAM_PROTO_GetShiftState [07:52:08]wFMCommunicate request_size=4 [07:52:08]MH_SAM_APDU [07:52:08]CAPDU: 80 13 01 00 [07:52:08]Write to MH i2c: E2 08 00 09 45 80 13 01 00 00 00 00 00 CB [07:52:08]Write i2c OK [07:52:08]MH_I2C_Read... [07:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:08]Read from MH i2c: E2 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 0E 00 [07:52:08]MH_I2C_Read... [07:52:08]Read from MH i2c: E2 0E 00 09 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [07:52:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [07:52:08]wFMCommunicate OK [07:52:08]SAM_PROTO_GetShiftState done [07:52:08]FM_GetShiftState done [07:52:08]req_shift_opened done [07:52:08]requested_item shift.open_date is exist - process it [07:52:08]req_shift_open_date [07:52:08]req_shift_open_date done [07:52:08]produce_requested_data done [07:52:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191989,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [07:52:08]process_action_free close_receipt [07:52:08]json_value_free [07:52:08]json_value_free done [07:52:08]process_json_proto returns [07:52:08]Send response to host [07:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191989,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [07:52:08]free response buf [07:52:08]execute_script done [07:52:08]execute_script returns [07:52:08]free content buf [07:52:08]Sock 5.Close socket [07:52:08]Sock 5.Thread stoped [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]accept exits with 6 [08:00:32]New connection [08:00:32]New thread 3066817892 created [08:00:32]Thread 3066961252 joined [08:00:32]Waiting for new connection... [08:00:32] Sock 6.Parse request [08:00:32]Sock 6.Check first char [08:00:32]Sock 6.First char is OK [08:00:32]request: POST /json_proto HTTP/1.0 [08:00:32]Method: POST [08:00:32]URL: /json_proto [08:00:32]Method is POST - this is cgi request [08:00:32]url: /json_proto [08:00:32]query_string will be loaded in cgi processing [08:00:32]execute_cgi json_proto POST (null) [08:00:32]execute_cgi path=json_proto method=POST [08:00:32]POST find Content-Length [08:00:32]Host: 172.17.63.131:8080 [08:00:32]Content-Length: 681 [08:00:32]Content-Type: application/json [08:00:32] [08:00:32]POST finish read [08:00:32]Found Content-Length = 681 [08:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:32]execute_script... [08:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:32]POST & json_proto [08:00:32]process_json_proto [08:00:32]json parsed OK: [08:00:32]protocol is kg_v1.0 [08:00:32]action value=close_receipt [08:00:32]process_action close_receipt [08:00:32]cmd_close_receipt [08:00:32]MH_GetDate [08:00:32]Write to MH i2c: F0 00 00 0A 45 3E [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 09 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 09 00 0A 45 00 33 F3 1D 67 22 05 6E 64 EA [08:00:32]GetLastDocTimeStamp 1730015543 [08:00:32]current date 1730016051 [08:00:32]FM_GetShiftState [08:00:32]SAM_PROTO_GetShiftState [08:00:32]wFMCommunicate request_size=4 [08:00:32]MH_SAM_APDU [08:00:32]CAPDU: 80 13 01 00 [08:00:32]Write to MH i2c: E2 08 00 0B 45 80 13 01 00 00 00 00 00 CD [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]OFD Sender: No OFD packet to send [08:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:33]Read from MH i2c: E2 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 0E 00 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 0E 00 0B 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0E [08:00:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:00:33]wFMCommunicate OK [08:00:33]SAM_PROTO_GetShiftState done [08:00:33]FM_GetShiftState done [08:00:33]opened in 1729989159 [08:00:33]opened+sec_in_day 1730075559 [08:00:33]quantity*price = 100015 [08:00:33]sum+1 = 100017 [08:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 22 27.10.2024 08:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191990 ФПД: 157813218268036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080052&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191990&fm=157813218268036&tin=02508201610067®Number=0000000000091776&sum=100000 [08:00:34]StoreToDocumentArchive [08:00:34]shift 542 fd 191990 [08:00:34]save to /storage/0542/doc_00191990 [08:00:34]save last doc name /storage/0542/doc_00191990 to /storage/kkm_last_doc_name [08:00:34]save OK [08:00:34]Clear old archive folders... [08:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:34]tlvbuf is 018DC5A0 [08:00:34]SAM_PROTO_ClearQueue [08:00:34]wFMCommunicate request_size=4 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 09 00 00 [08:00:34]Write to MH i2c: E2 08 00 18 45 80 09 00 00 00 00 00 00 CF [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 18 45 00 90 00 D1 [08:00:34]RAPDU: 90 00 [08:00:34]wFMCommunicate OK [08:00:34]SAM_PROTO_ClearQueue done [08:00:34]KKMCreateOFDPacket [08:00:34]OFDProtocolAddRootSTLVToBuf [08:00:34]FM_MakeSignedData [08:00:34]FM_MakeSignedData [08:00:34]SAM_PROTO_SignData [08:00:34]wFMCommunicate request_size=4 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 0D 01 02 [08:00:34]Write to MH i2c: E2 08 00 19 45 80 0D 01 02 00 00 00 00 D7 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 19 45 00 90 00 D2 [08:00:34]RAPDU: 90 00 [08:00:34]wFMCommunicate OK [08:00:34]wFMCommunicate request_size=255 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 34 F3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 ED 02 00 35 04 06 00 8F [08:00:34]Write to MH i2c: E2 02 01 1A 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 34 F3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 ED 02 00 35 04 06 00 8F 00 00 BA [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [08:00:34]RAPDU: 90 00 [08:00:34]wFMCommunicate OK [08:00:34]wFMCommunicate request_size=10 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 0D 02 02 05 87 C0 D0 D3 84 [08:00:34]Write to MH i2c: E2 0D 00 1B 45 80 0D 02 02 05 00 87 C0 D0 D3 84 00 00 52 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 03 00 1B 45 00 90 00 D4 [08:00:34]RAPDU: 90 00 [08:00:34]wFMCommunicate OK [08:00:34]wFMCommunicate request_size=4 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 0D 03 02 [08:00:34]Write to MH i2c: E2 08 00 1C 45 80 0D 03 02 00 00 00 00 DC [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 0B 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 0B 00 1C 45 00 B5 A0 C3 F4 A6 D7 07 C9 90 00 36 [08:00:34]RAPDU: B5 A0 C3 F4 A6 D7 07 C9 90 00 [08:00:34]wFMCommunicate OK [08:00:34]SAM_PROTO_SignData done [08:00:34]FM_MakeSignedData done [08:00:34]CreateOFDProtocolMessage [08:00:34]wFMCommunicate request_size=4 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 11 00 00 [08:00:34]Write to MH i2c: E2 08 00 1D 45 80 11 00 00 00 00 00 00 DC [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 17 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 17 00 1D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [08:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:00:34]wFMCommunicate OK [08:00:34]CreateOFDProtocolMessage done [08:00:34]OFDSenderStorePacket 191990 [08:00:34]StoreOFDPacket docnum=191990 [08:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E C2 07 01 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 34 F3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 ED 02 00 35 04 06 00 8F 87 C0 D0 D3 84 B5 A0 C3 F4 A6 D7 07 C9 [08:00:34]CheckFolder [08:00:34]dirname=/storage/ofd_packets [08:00:34]CheckFolder done [08:00:34]ProducePacketName [08:00:34]name=ofd_packets/00191990 [08:00:34]NVStorageSaveData ofd_packets/00191990 [08:00:34]File name is /storage/ofd_packets/00191990 [08:00:34]Write 301 bytes [08:00:34]NVStorageSaveData done [08:00:34]OFDSenderStorePacket done [08:00:34]KKMCreateOFDPacket done [08:00:34]NVStorageSaveData kkm_last_timestamp [08:00:34]File name is /storage/kkm_last_timestamp [08:00:34]Write 4 bytes [08:00:34]NVStorageSaveData done [08:00:34]ExternCall_PrintAddStr [08:00:34]wPrintStart [08:00:34]Write to MH i2c: 01 00 00 1E 45 63 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 1E 45 00 00 00 00 00 FF 0F 78 [08:00:34]RasterBufferAndPrint [08:00:34]line Счет N : (1)31300 [08:00:34]line ИНН: 02508201610067 [08:00:34]line Контрольно-Кассовый Чек [08:00:34]line ПРОДАЖА [08:00:34]line ТРК (МРК, ГНК) : 12 [08:00:34]line Товар: 2710124130 [08:00:34]line Аи-92-К-5 [08:00:34]line 14.950 * 66.90 [08:00:34]line = 1000.16 [08:00:34]line НДС 12% НСП 1% [08:00:34]line > о реализуемом товаре [08:00:34]line ОКРУГЛЕНИЕ: -0.16 [08:00:34]line ИТОГО: 1000.00 [08:00:34]line Внесено: 1000.00 [08:00:34]line СДАЧА: 0.00 [08:00:34]line НСП 1% : 8.85 [08:00:34]line НДС 12% : 106.21 [08:00:34]line Наличными: 1000.00 [08:00:34]line Безнал.: 0.00 [08:00:34]line Место: АЗС № 170 "Партнер Нефть" [08:00:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:00:34]line СНО: Общий режим [08:00:34]line Чек 22 27.10.2024 08:00 [08:00:34]line Смена: 542 ФФД: 1.0 [08:00:34]line ЗНМ: 0300000110 [08:00:34]line РНМ: 0000000000091776 [08:00:34]line Версия ККМ: 001 [08:00:34]line ФМ: 0000000000871754 [08:00:34]line ФД: 191990 [08:00:34]line ФПД: 157813218268036 [08:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080052&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191990&fm=157813218268036&tin=02508201610067®Number=0000000000091776&sum=100000 [08:00:35]OFD Sender: Processing packet 191990 [packets to send 75, broken 74] [08:00:35]ProducePacketName [08:00:35]name=ofd_packets/00191990 [08:00:35]OFD Sender: To server: pG, [08:00:35]CommunicateWithHost lk.salyk.kg:30040 [08:00:35]ConnectInit lk.salyk.kg [08:00:35]written 0, free lines is 4095 [08:00:35]Write to MH i2c: 01 00 00 49 45 8E [08:00:35]Write i2c OK [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: 01 [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: 01 07 00 [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: 01 07 00 49 45 00 00 00 00 00 A7 0C 48 [08:00:35]RasterBufferAndPrint [08:00:35]line [08:00:35]line [08:00:35]line [08:00:35]line [08:00:35]line [08:00:35]written 0, free lines is 3242 [08:00:35]MH_Cut [08:00:35]Write to MH i2c: D1 01 00 50 45 01 67 [08:00:35]Write i2c OK [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: D1 [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: D1 01 00 [08:00:35]MH_I2C_Read... [08:00:35]Read from MH i2c: D1 01 00 50 45 00 66 [08:00:35]Write to MH i2c: 01 00 00 51 45 96 [08:00:35]Write i2c OK [08:00:35]MH_I2C_Read... [08:00:36]*** Cut start [08:00:36]*** Partial cut [08:00:36]*** CUTSNS_PIN = 1 [08:00:36]*** CUTSNS_PIN = 0 [08:00:36]*** Brake cut motor [08:00:36]Read from MH i2c: 01 [08:00:36]MH_I2C_Read... [08:00:37]*** Stop cut motor [08:00:37]*** Cut end [08:00:37]Read from MH i2c: 01 07 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: 01 07 00 51 45 00 00 00 00 00 FF 0F AB [08:00:37]process_action close_receipt done [08:00:37]requested_data is exist [08:00:37]produce_requested_data [08:00:37]requested_item fm.sn is exist - process it [08:00:37]wFMCommunicate request_size=4 [08:00:37]MH_SAM_APDU [08:00:37]CAPDU: 80 11 00 00 [08:00:37]Write to MH i2c: E2 08 00 52 45 80 11 00 00 00 00 00 00 11 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 17 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 17 00 52 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [08:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:00:37]wFMCommunicate OK [08:00:37]requested_item fd.num is exist - process it [08:00:37]SAM_PROTO_GetFieldsCounters [08:00:37]wFMCommunicate request_size=4 [08:00:37]MH_SAM_APDU [08:00:37]CAPDU: 80 13 00 00 [08:00:37]Write to MH i2c: E2 08 00 53 45 80 13 00 00 00 00 00 00 14 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 62 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 62 00 53 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [08:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:37]wFMCommunicate OK [08:00:37]SAM_PROTO_GetFieldsCounters done [08:00:37]requested_item shift.num is exist - process it [08:00:37]requested_item shift.opened is exist - process it [08:00:37]req_shift_opened [08:00:37]FM_GetShiftState [08:00:37]SAM_PROTO_GetShiftState [08:00:37]wFMCommunicate request_size=4 [08:00:37]MH_SAM_APDU [08:00:37]CAPDU: 80 13 01 00 [08:00:37]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [08:00:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:00:37]wFMCommunicate OK [08:00:37]SAM_PROTO_GetShiftState done [08:00:37]FM_GetShiftState done [08:00:37]req_shift_opened done [08:00:37]requested_item shift.open_date is exist - process it [08:00:37]req_shift_open_date [08:00:37]req_shift_open_date done [08:00:37]produce_requested_data done [08:00:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191990,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:00:37]process_action_free close_receipt [08:00:37]json_value_free [08:00:37]json_value_free done [08:00:37]process_json_proto returns [08:00:37]Send response to host [08:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191990,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:00:37]free response buf [08:00:37]execute_script done [08:00:37]execute_script returns [08:00:37]free content buf [08:00:37]Sock 6.Close socket [08:00:37]Sock 6.Thread stoped [08:02:47]ConnectInit Can't connect to host [08:02:47]CommunicateWithHost connect error [08:02:47]CommunicateWithHost err = -1 [08:02:47]OFD Sender: Server communicate error [08:02:52]OFD Sender: Processing packet 191990 [packets to send 75, broken 74] [08:02:52]ProducePacketName [08:02:52]name=ofd_packets/00191990 [08:02:52]OFD Sender: To server: pG, [08:02:52]CommunicateWithHost lk.salyk.kg:30040 [08:02:52]ConnectInit lk.salyk.kg [08:02:52]Connected sock=6 [08:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E C2 07 01 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 34 F3 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 ED 02 00 35 04 06 00 8F 87 C0 D0 D3 84 B5 A0 C3 F4 A6 D7 07 C9 [08: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 37 35 34 4F 00 00 00 CB 8B 47 00 04 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 ED 02 00 F4 03 04 00 85 98 1D 67 B6 04 01 00 00 AE A5 37 A3 F1 E5 EB 94 [08:02:52]CommunicateWithHost err = 0 [08:02:52]CheckOFDResponse [08:02:52]1017 (14) - 77093643461234 [08:02:52]1041 (16) - 0000000000871754 [08:02:52]1040 (4) - 191990 [08:02:52]1012 (4) - 27.10.2024 01:33 [08:02:52]1206 (1) - 0 [08:02:52]OFD Sender: Remove packet 191990 [08:02:52]ProducePacketName [08:02:52]name=ofd_packets/00191990 [08:02:52]NVStorageDeleteData [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:22]accept exits with 5 [08:04:22]New connection [08:04:22]New thread 3066961252 created [08:04:22]Thread 3066817892 joined [08:04:22]Waiting for new connection... [08:04:22] Sock 5.Parse request [08:04:22]Sock 5.Check first char [08:04:22]Sock 5.First char is OK [08:04:22]request: POST /json_proto HTTP/1.0 [08:04:22]Method: POST [08:04:22]URL: /json_proto [08:04:22]Method is POST - this is cgi request [08:04:22]url: /json_proto [08:04:22]query_string will be loaded in cgi processing [08:04:22]execute_cgi json_proto POST (null) [08:04:22]execute_cgi path=json_proto method=POST [08:04:22]POST find Content-Length [08:04:22]Host: 172.17.63.131:8080 [08:04:22]Content-Length: 676 [08:04:22]Content-Type: application/json [08:04:22] [08:04:22]POST finish read [08:04:22]Found Content-Length = 676 [08:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:22]execute_script... [08:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:22]POST & json_proto [08:04:22]process_json_proto [08:04:22]json parsed OK: [08:04:22]protocol is kg_v1.0 [08:04:22]action value=close_receipt [08:04:22]process_action close_receipt [08:04:22]cmd_close_receipt [08:04:22]MH_GetDate [08:04:22]Write to MH i2c: F0 00 00 55 45 89 [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: F0 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: F0 09 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: F0 09 00 55 45 00 19 F4 1D 67 22 05 6E 64 1C [08:04:22]GetLastDocTimeStamp 1730016052 [08:04:22]current date 1730016281 [08:04:22]FM_GetShiftState [08:04:22]SAM_PROTO_GetShiftState [08:04:22]wFMCommunicate request_size=4 [08:04:22]MH_SAM_APDU [08:04:22]CAPDU: 80 13 01 00 [08:04:22]Write to MH i2c: E2 08 00 56 45 80 13 01 00 00 00 00 00 18 [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:22]Read from MH i2c: E2 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 0E 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 0E 00 56 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 59 [08:04:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:04:22]wFMCommunicate OK [08:04:22]SAM_PROTO_GetShiftState done [08:04:22]FM_GetShiftState done [08:04:22]opened in 1729989159 [08:04:22]opened+sec_in_day 1730075559 [08:04:22]quantity*price = 50041 [08:04:22]sum+1 = 50042 [08:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 23 27.10.2024 08:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191991 ФПД: 280039275569249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191991&fm=280039275569249&tin=02508201610067®Number=0000000000091776&sum=50000 [08:04:23]StoreToDocumentArchive [08:04:23]shift 542 fd 191991 [08:04:23]save to /storage/0542/doc_00191991 [08:04:23]save last doc name /storage/0542/doc_00191991 to /storage/kkm_last_doc_name [08:04:23]save OK [08:04:23]Clear old archive folders... [08:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:23]tlvbuf is 01960870 [08:04:23]SAM_PROTO_ClearQueue [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 09 00 00 [08:04:23]Write to MH i2c: E2 08 00 63 45 80 09 00 00 00 00 00 00 1A [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [08:04:23]RAPDU: 90 00 [08:04:23]wFMCommunicate OK [08:04:23]SAM_PROTO_ClearQueue done [08:04:23]KKMCreateOFDPacket [08:04:23]OFDProtocolAddRootSTLVToBuf [08:04:23]FM_MakeSignedData [08:04:23]FM_MakeSignedData [08:04:23]SAM_PROTO_SignData [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 0D 01 02 [08:04:23]Write to MH i2c: E2 08 00 64 45 80 0D 01 02 00 00 00 00 22 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [08:04:23]RAPDU: 90 00 [08:04:23]wFMCommunicate OK [08:04:23]wFMCommunicate request_size=255 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 19 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 ED 02 00 35 04 06 00 FE [08:04:23]Write to MH i2c: E2 02 01 65 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 19 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 ED 02 00 35 04 06 00 FE 00 00 62 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]OFD Sender: No OFD packet to send [08:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 65 45 00 90 00 1E [08:04:23]RAPDU: 90 00 [08:04:23]wFMCommunicate OK [08:04:23]wFMCommunicate request_size=10 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 0D 02 02 05 B1 B9 8B 20 61 [08:04:23]Write to MH i2c: E2 0D 00 66 45 80 0D 02 02 05 00 B1 B9 8B 20 61 00 00 A5 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 03 00 66 45 00 90 00 1F [08:04:23]RAPDU: 90 00 [08:04:23]wFMCommunicate OK [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 0D 03 02 [08:04:23]Write to MH i2c: E2 08 00 67 45 80 0D 03 02 00 00 00 00 27 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 0B 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 0B 00 67 45 00 33 B4 E0 E0 C7 E3 CB 3A 90 00 7E [08:04:23]RAPDU: 33 B4 E0 E0 C7 E3 CB 3A 90 00 [08:04:23]wFMCommunicate OK [08:04:23]SAM_PROTO_SignData done [08:04:23]FM_MakeSignedData done [08:04:23]CreateOFDProtocolMessage [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 11 00 00 [08:04:23]Write to MH i2c: E2 08 00 68 45 80 11 00 00 00 00 00 00 27 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 17 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 17 00 68 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [08:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:04:23]wFMCommunicate OK [08:04:23]CreateOFDProtocolMessage done [08:04:23]OFDSenderStorePacket 191991 [08:04:23]StoreOFDPacket docnum=191991 [08:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 45 07 01 8B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 19 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 ED 02 00 35 04 06 00 FE B1 B9 8B 20 61 33 B4 E0 E0 C7 E3 CB 3A [08:04:23]CheckFolder [08:04:23]dirname=/storage/ofd_packets [08:04:23]CheckFolder done [08:04:23]ProducePacketName [08:04:23]name=ofd_packets/00191991 [08:04:23]NVStorageSaveData ofd_packets/00191991 [08:04:23]File name is /storage/ofd_packets/00191991 [08:04:23]Write 301 bytes [08:04:23]NVStorageSaveData done [08:04:23]OFDSenderStorePacket done [08:04:23]KKMCreateOFDPacket done [08:04:23]NVStorageSaveData kkm_last_timestamp [08:04:23]File name is /storage/kkm_last_timestamp [08:04:23]Write 4 bytes [08:04:23]NVStorageSaveData done [08:04:23]ExternCall_PrintAddStr [08:04:23]wPrintStart [08:04:23]Write to MH i2c: 01 00 00 69 45 AE [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: 01 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: 01 07 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: 01 07 00 69 45 00 00 00 00 00 FF 0F C3 [08:04:23]RasterBufferAndPrint [08:04:23]line Счет N : (1)31301 [08:04:23]line ИНН: 02508201610067 [08:04:23]line Контрольно-Кассовый Чек [08:04:23]line ПРОДАЖА [08:04:23]line ТРК (МРК, ГНК) : 12 [08:04:23]line Товар: 2710124130 [08:04:23]line Аи-92-К-5 [08:04:23]line 7.480 * 66.90 [08:04:23]line = 500.41 [08:04:23]line НДС 12% НСП 1% [08:04:23]line > о реализуемом товаре [08:04:23]line ОКРУГЛЕНИЕ: -0.41 [08:04:23]line ИТОГО: 500.00 [08:04:23]line Внесено: 500.00 [08:04:23]line СДАЧА: 0.00 [08:04:23]line НСП 1% : 4.43 [08:04:23]line НДС 12% : 53.14 [08:04:23]line Наличными: 500.00 [08:04:23]line Безнал.: 0.00 [08:04:23]line Место: АЗС № 170 "Партнер Нефть" [08:04:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:04:23]line СНО: Общий режим [08:04:23]line Чек 23 27.10.2024 08:04 [08:04:23]line Смена: 542 ФФД: 1.0 [08:04:23]line ЗНМ: 0300000110 [08:04:23]line РНМ: 0000000000091776 [08:04:23]line Версия ККМ: 001 [08:04:23]line ФМ: 0000000000871754 [08:04:23]line ФД: 191991 [08:04:23]line ФПД: 280039275569249 [08:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191991&fm=280039275569249&tin=02508201610067®Number=0000000000091776&sum=50000 [08:04:24]OFD Sender: Processing packet 191991 [packets to send 75, broken 74] [08:04:24]ProducePacketName [08:04:24]name=ofd_packets/00191991 [08:04:24]OFD Sender: To server: pG, [08:04:24]CommunicateWithHost lk.salyk.kg:30040 [08:04:24]ConnectInit lk.salyk.kg [08:04:24]written 0, free lines is 4095 [08:04:24]Connected sock=8 [08:04:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 45 07 01 8B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 19 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 ED 02 00 35 04 06 00 FE B1 B9 8B 20 61 33 B4 E0 E0 C7 E3 CB 3A [08:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 00 8A 47 00 96 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 ED 02 00 F4 03 04 00 E1 98 1D 67 B6 04 01 00 00 CA CF 29 F7 B2 F8 45 8C [08:04:24]CommunicateWithHost err = 0 [08:04:24]CheckOFDResponse [08:04:24]1017 (14) - 77093643461234 [08:04:24]1041 (16) - 0000000000871754 [08:04:24]1040 (4) - 191991 [08:04:24]1012 (4) - 27.10.2024 01:35 [08:04:24]1206 (1) - 0 [08:04:24]OFD Sender: Remove packet 191991 [08:04:24]ProducePacketName [08:04:24]name=ofd_packets/00191991 [08:04:24]NVStorageDeleteData [08:04:24]Write to MH i2c: 01 00 00 94 45 D9 [08:04:24]Write i2c OK [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: 01 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: 01 07 00 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: 01 07 00 94 45 00 00 00 00 00 AD 0C 99 [08:04:24]RasterBufferAndPrint [08:04:24]line [08:04:24]line [08:04:24]line [08:04:24]line [08:04:24]line [08:04:24]written 0, free lines is 3252 [08:04:24]MH_Cut [08:04:24]Write to MH i2c: D1 01 00 9B 45 01 B2 [08:04:24]Write i2c OK [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: D1 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: D1 01 00 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: D1 01 00 9B 45 00 B1 [08:04:24]Write to MH i2c: 01 00 00 9C 45 E1 [08:04:24]Write i2c OK [08:04:24]MH_I2C_Read... [08:04:24]OFD Sender: No OFD packet to send [08:04:25]*** Cut start [08:04:25]*** Partial cut [08:04:25]*** CUTSNS_PIN = 1 [08:04:25]*** CUTSNS_PIN = 0 [08:04:25]*** Brake cut motor [08:04:26]Read from MH i2c: 01 [08:04:26]MH_I2C_Read... [08:04:26]*** Stop cut motor [08:04:26]*** Cut end [08:04:26]Read from MH i2c: 01 07 00 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: 01 07 00 9C 45 00 00 00 00 00 FF 0F F6 [08:04:26]process_action close_receipt done [08:04:26]requested_data is exist [08:04:26]produce_requested_data [08:04:26]requested_item fm.sn is exist - process it [08:04:26]wFMCommunicate request_size=4 [08:04:26]MH_SAM_APDU [08:04:26]CAPDU: 80 11 00 00 [08:04:26]Write to MH i2c: E2 08 00 9D 45 80 11 00 00 00 00 00 00 5C [08:04:26]Write i2c OK [08:04:26]MH_I2C_Read... [08:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:26]Read from MH i2c: E2 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 17 00 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 17 00 9D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [08:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:04:26]wFMCommunicate OK [08:04:26]requested_item fd.num is exist - process it [08:04:26]SAM_PROTO_GetFieldsCounters [08:04:26]wFMCommunicate request_size=4 [08:04:26]MH_SAM_APDU [08:04:26]CAPDU: 80 13 00 00 [08:04:26]Write to MH i2c: E2 08 00 9E 45 80 13 00 00 00 00 00 00 5F [08:04:26]Write i2c OK [08:04:26]MH_I2C_Read... [08:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:26]Read from MH i2c: E2 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 62 00 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 62 00 9E 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [08:04:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:26]wFMCommunicate OK [08:04:26]SAM_PROTO_GetFieldsCounters done [08:04:26]requested_item shift.num is exist - process it [08:04:26]requested_item shift.opened is exist - process it [08:04:26]req_shift_opened [08:04:26]FM_GetShiftState [08:04:26]SAM_PROTO_GetShiftState [08:04:26]wFMCommunicate request_size=4 [08:04:26]MH_SAM_APDU [08:04:26]CAPDU: 80 13 01 00 [08:04:26]Write to MH i2c: E2 08 00 9F 45 80 13 01 00 00 00 00 00 61 [08:04:26]Write i2c OK [08:04:26]MH_I2C_Read... [08:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:26]Read from MH i2c: E2 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 0E 00 [08:04:26]MH_I2C_Read... [08:04:26]Read from MH i2c: E2 0E 00 9F 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [08:04:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:04:26]wFMCommunicate OK [08:04:26]SAM_PROTO_GetShiftState done [08:04:26]FM_GetShiftState done [08:04:26]req_shift_opened done [08:04:26]requested_item shift.open_date is exist - process it [08:04:26]req_shift_open_date [08:04:26]req_shift_open_date done [08:04:26]produce_requested_data done [08:04:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191991,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:04:26]process_action_free close_receipt [08:04:26]json_value_free [08:04:26]json_value_free done [08:04:26]process_json_proto returns [08:04:26]Send response to host [08:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191991,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:04:26]free response buf [08:04:26]execute_script done [08:04:26]execute_script returns [08:04:26]free content buf [08:04:26]Sock 5.Close socket [08:04:26]Sock 5.Thread stoped [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:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:53]accept exits with 6 [08:05:53]New connection [08:05:53]New thread 3066817892 created [08:05:53]Thread 3066961252 joined [08:05:53]Waiting for new connection... [08:05:53] Sock 6.Parse request [08:05:53]Sock 6.Check first char [08:05:53]Sock 6.First char is OK [08:05:53]request: POST /json_proto HTTP/1.0 [08:05:53]Method: POST [08:05:53]URL: /json_proto [08:05:53]Method is POST - this is cgi request [08:05:53]url: /json_proto [08:05:53]query_string will be loaded in cgi processing [08:05:53]execute_cgi json_proto POST (null) [08:05:53]execute_cgi path=json_proto method=POST [08:05:53]POST find Content-Length [08:05:53]Host: 172.17.63.131:8080 [08:05:53]Content-Length: 676 [08:05:53]Content-Type: application/json [08:05:53] [08:05:53]POST finish read [08:05:53]Found Content-Length = 676 [08:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:53]execute_script... [08:05: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)31302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:53]POST & json_proto [08:05:53]process_json_proto [08:05:53]json parsed OK: [08:05:53]protocol is kg_v1.0 [08:05:53]action value=close_receipt [08:05:53]process_action close_receipt [08:05:53]cmd_close_receipt [08:05:53]MH_GetDate [08:05:53]Write to MH i2c: F0 00 00 A0 45 D4 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: F0 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: F0 09 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: F0 09 00 A0 45 00 74 F4 1D 67 22 05 6E 64 C2 [08:05:53]GetLastDocTimeStamp 1730016281 [08:05:53]current date 1730016372 [08:05:53]FM_GetShiftState [08:05:53]SAM_PROTO_GetShiftState [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 13 01 00 [08:05:53]Write to MH i2c: E2 08 00 A1 45 80 13 01 00 00 00 00 00 63 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 A1 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [08:05:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_GetShiftState done [08:05:53]FM_GetShiftState done [08:05:53]opened in 1729989159 [08:05:53]opened+sec_in_day 1730075559 [08:05:53]quantity*price = 40006 [08:05:53]sum+1 = 40007 [08:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 24 27.10.2024 08:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191992 ФПД: 145314126198627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080612&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191992&fm=145314126198627&tin=02508201610067®Number=0000000000091776&sum=40000 [08:05:54]StoreToDocumentArchive [08:05:54]shift 542 fd 191992 [08:05:54]save to /storage/0542/doc_00191992 [08:05:54]save last doc name /storage/0542/doc_00191992 to /storage/kkm_last_doc_name [08:05:54]save OK [08:05:54]Clear old archive folders... [08:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:54]tlvbuf is 01960E20 [08:05:54]SAM_PROTO_ClearQueue [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 09 00 00 [08:05:54]Write to MH i2c: E2 08 00 AE 45 80 09 00 00 00 00 00 00 65 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 AE 45 00 90 00 67 [08:05:54]RAPDU: 90 00 [08:05:54]wFMCommunicate OK [08:05:54]SAM_PROTO_ClearQueue done [08:05:54]KKMCreateOFDPacket [08:05:54]OFDProtocolAddRootSTLVToBuf [08:05:54]FM_MakeSignedData [08:05:54]FM_MakeSignedData [08:05:54]SAM_PROTO_SignData [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 0D 01 02 [08:05:54]Write to MH i2c: E2 08 00 AF 45 80 0D 01 02 00 00 00 00 6D [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 AF 45 00 90 00 68 [08:05:54]RAPDU: 90 00 [08:05:54]wFMCommunicate OK [08:05:54]wFMCommunicate request_size=255 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 74 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 ED 02 00 35 04 06 00 84 [08:05:54]Write to MH i2c: E2 02 01 B0 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 74 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 ED 02 00 35 04 06 00 84 00 00 5F [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 B0 45 00 90 00 69 [08:05:54]RAPDU: 90 00 [08:05:54]wFMCommunicate OK [08:05:54]wFMCommunicate request_size=10 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 0D 02 02 05 29 94 DF 77 63 [08:05:54]Write to MH i2c: E2 0D 00 B1 45 80 0D 02 02 05 00 29 94 DF 77 63 00 00 F0 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 03 00 B1 45 00 90 00 6A [08:05:54]RAPDU: 90 00 [08:05:54]wFMCommunicate OK [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 0D 03 02 [08:05:54]Write to MH i2c: E2 08 00 B2 45 80 0D 03 02 00 00 00 00 72 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0B 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0B 00 B2 45 00 DF CA E9 9B 66 1C 9A 71 90 00 2D [08:05:54]RAPDU: DF CA E9 9B 66 1C 9A 71 90 00 [08:05:54]wFMCommunicate OK [08:05:54]SAM_PROTO_SignData done [08:05:54]FM_MakeSignedData done [08:05:54]CreateOFDProtocolMessage [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 11 00 00 [08:05:54]Write to MH i2c: E2 08 00 B3 45 80 11 00 00 00 00 00 00 72 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 17 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 17 00 B3 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [08:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:05:54]wFMCommunicate OK [08:05:54]CreateOFDProtocolMessage done [08:05:54]OFDSenderStorePacket 191992 [08:05:54]StoreOFDPacket docnum=191992 [08:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 79 07 01 03 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 74 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 ED 02 00 35 04 06 00 84 29 94 DF 77 63 DF CA E9 9B 66 1C 9A 71 [08:05:54]CheckFolder [08:05:54]dirname=/storage/ofd_packets [08:05:54]CheckFolder done [08:05:54]ProducePacketName [08:05:54]name=ofd_packets/00191992 [08:05:54]NVStorageSaveData ofd_packets/00191992 [08:05:54]File name is /storage/ofd_packets/00191992 [08:05:54]Write 301 bytes [08:05:54]NVStorageSaveData done [08:05:54]OFDSenderStorePacket done [08:05:54]KKMCreateOFDPacket done [08:05:54]NVStorageSaveData kkm_last_timestamp [08:05:54]File name is /storage/kkm_last_timestamp [08:05:54]Write 4 bytes [08:05:54]NVStorageSaveData done [08:05:54]ExternCall_PrintAddStr [08:05:54]wPrintStart [08:05:54]Write to MH i2c: 01 00 00 B4 45 F9 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: 01 07 00 B4 45 00 00 00 00 00 FF 0F 0E [08:05:54]RasterBufferAndPrint [08:05:54]line Счет N : (1)31302 [08:05:54]line ИНН: 02508201610067 [08:05:54]line Контрольно-Кассовый Чек [08:05:54]line ПРОДАЖА [08:05:54]line ТРК (МРК, ГНК) : 12 [08:05:54]line Товар: 2710124130 [08:05:54]line Аи-92-К-5 [08:05:54]line 5.980 * 66.90 [08:05:54]line = 400.06 [08:05:54]line НДС 12% НСП 1% [08:05:54]line > о реализуемом товаре [08:05:54]line ОКРУГЛЕНИЕ: -0.06 [08:05:54]line ИТОГО: 400.00 [08:05:54]line Внесено: 400.00 [08:05:54]line СДАЧА: 0.00 [08:05:54]line НСП 1% : 3.54 [08:05:54]line НДС 12% : 42.48 [08:05:54]line Наличными: 400.00 [08:05:54]line Безнал.: 0.00 [08:05:54]line Место: АЗС № 170 "Партнер Нефть" [08:05:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:05:54]line СНО: Общий режим [08:05:54]line Чек 24 27.10.2024 08:06 [08:05:54]line Смена: 542 ФФД: 1.0 [08:05:54]line ЗНМ: 0300000110 [08:05:54]line РНМ: 0000000000091776 [08:05:54]line Версия ККМ: 001 [08:05:54]line ФМ: 0000000000871754 [08:05:54]line ФД: 191992 [08:05:54]line ФПД: 145314126198627 [08:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080612&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191992&fm=145314126198627&tin=02508201610067®Number=0000000000091776&sum=40000 [08:05:55]OFD Sender: Processing packet 191992 [packets to send 75, broken 74] [08:05:55]ProducePacketName [08:05:55]name=ofd_packets/00191992 [08:05:55]OFD Sender: To server: pG, [08:05:55]CommunicateWithHost lk.salyk.kg:30040 [08:05:55]ConnectInit lk.salyk.kg [08:05:55]written 0, free lines is 4095 [08:05:55]Connected sock=8 [08:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 79 07 01 03 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 74 F4 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 ED 02 00 35 04 06 00 84 29 94 DF 77 63 DF CA E9 9B 66 1C 9A 71 [08:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 06 47 00 44 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 ED 02 00 F4 03 04 00 3C 99 1D 67 B6 04 01 00 00 87 C4 0F 3D DA 77 40 89 [08:05:55]CommunicateWithHost err = 0 [08:05:55]CheckOFDResponse [08:05:55]1017 (14) - 77093643461234 [08:05:55]1041 (16) - 0000000000871754 [08:05:55]1040 (4) - 191992 [08:05:55]1012 (4) - 27.10.2024 01:37 [08:05:55]1206 (1) - 0 [08:05:55]OFD Sender: Remove packet 191992 [08:05:55]ProducePacketName [08:05:55]name=ofd_packets/00191992 [08:05:55]NVStorageDeleteData [08:05:55]Write to MH i2c: 01 00 00 DF 45 24 [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 07 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: 01 07 00 DF 45 00 00 00 00 00 B3 0C EA [08:05:55]RasterBufferAndPrint [08:05:55]line [08:05:55]line [08:05:55]line [08:05:55]line [08:05:55]line [08:05:55]written 0, free lines is 3258 [08:05:55]MH_Cut [08:05:55]Write to MH i2c: D1 01 00 E6 45 01 FD [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: D1 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: D1 01 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: D1 01 00 E6 45 00 FC [08:05:55]Write to MH i2c: 01 00 00 E7 45 2C [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:56]OFD Sender: No OFD packet to send [08:05:56]*** Cut start [08:05:56]*** Partial cut [08:05:56]*** CUTSNS_PIN = 1 [08:05:56]*** CUTSNS_PIN = 0 [08:05:56]*** Brake cut motor [08:05:57]Read from MH i2c: 01 [08:05:57]MH_I2C_Read... [08:05:57]*** Stop cut motor [08:05:57]*** Cut end [08:05:57]Read from MH i2c: 01 07 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 07 00 E7 45 00 00 00 00 00 FF 0F 41 [08:05:57]process_action close_receipt done [08:05:57]requested_data is exist [08:05:57]produce_requested_data [08:05:57]requested_item fm.sn is exist - process it [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 11 00 00 [08:05:57]Write to MH i2c: E2 08 00 E8 45 80 11 00 00 00 00 00 00 A7 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 17 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 17 00 E8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [08:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:05:57]wFMCommunicate OK [08:05:57]requested_item fd.num is exist - process it [08:05:57]SAM_PROTO_GetFieldsCounters [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 13 00 00 [08:05:57]Write to MH i2c: E2 08 00 E9 45 80 13 00 00 00 00 00 00 AA [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 62 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 62 00 E9 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [08:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:57]wFMCommunicate OK [08:05:57]SAM_PROTO_GetFieldsCounters done [08:05:57]requested_item shift.num is exist - process it [08:05:57]requested_item shift.opened is exist - process it [08:05:57]req_shift_opened [08:05:57]FM_GetShiftState [08:05:57]SAM_PROTO_GetShiftState [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 13 01 00 [08:05:57]Write to MH i2c: E2 08 00 EA 45 80 13 01 00 00 00 00 00 AC [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0E 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0E 00 EA 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [08:05:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:05:57]wFMCommunicate OK [08:05:57]SAM_PROTO_GetShiftState done [08:05:57]FM_GetShiftState done [08:05:57]req_shift_opened done [08:05:57]requested_item shift.open_date is exist - process it [08:05:57]req_shift_open_date [08:05:57]req_shift_open_date done [08:05:57]produce_requested_data done [08:05:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191992,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:05:57]process_action_free close_receipt [08:05:57]json_value_free [08:05:57]json_value_free done [08:05:57]process_json_proto returns [08:05:57]Send response to host [08:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191992,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:05:57]free response buf [08:05:57]execute_script done [08:05:57]execute_script returns [08:05:57]free content buf [08:05:57]Sock 6.Close socket [08:05:57]Sock 6.Thread stoped [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:19]ConnectInit Can't connect to host [08:11:21]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:42]ConnectInit Can't connect to host [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:11]accept exits with 5 [08:16:11]New connection [08:16:11]New thread 3066961252 created [08:16:11]Thread 3066817892 joined [08:16:11]Waiting for new connection... [08:16:11] Sock 5.Parse request [08:16:11]Sock 5.Check first char [08:16:11]Sock 5.First char is OK [08:16:11]request: POST /json_proto HTTP/1.0 [08:16:11]Method: POST [08:16:11]URL: /json_proto [08:16:11]Method is POST - this is cgi request [08:16:11]url: /json_proto [08:16:11]query_string will be loaded in cgi processing [08:16:11]execute_cgi json_proto POST (null) [08:16:11]execute_cgi path=json_proto method=POST [08:16:11]POST find Content-Length [08:16:11]Host: 172.17.63.131:8080 [08:16:11]Content-Length: 863 [08:16:11]Content-Type: application/json [08:16:11] [08:16:11]POST finish read [08:16:11]Found Content-Length = 863 [08:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:11]execute_script... [08:16:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:11]POST & json_proto [08:16:11]process_json_proto [08:16:11]json parsed OK: [08:16:11]protocol is kg_v1.0 [08:16:11]action value=close_receipt [08:16:11]process_action close_receipt [08:16:11]cmd_close_receipt [08:16:11]MH_GetDate [08:16:11]Write to MH i2c: F0 00 00 EB 45 1F [08:16:11]Write i2c OK [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: F0 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: F0 09 00 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: F0 09 00 EB 45 00 DE F6 1D 67 22 05 6E 64 79 [08:16:11]GetLastDocTimeStamp 1730016372 [08:16:11]current date 1730016990 [08:16:11]FM_GetShiftState [08:16:11]SAM_PROTO_GetShiftState [08:16:11]wFMCommunicate request_size=4 [08:16:11]MH_SAM_APDU [08:16:11]CAPDU: 80 13 01 00 [08:16:11]Write to MH i2c: E2 08 00 EC 45 80 13 01 00 00 00 00 00 AE [08:16:11]Write i2c OK [08:16:11]MH_I2C_Read... [08:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:11]Read from MH i2c: E2 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: E2 0E 00 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: E2 0E 00 EC 45 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [08:16:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:16:11]wFMCommunicate OK [08:16:11]SAM_PROTO_GetShiftState done [08:16:11]FM_GetShiftState done [08:16:11]opened in 1729989159 [08:16:11]opened+sec_in_day 1730075559 [08:16:11]quantity*price = 70044 [08:16:11]sum+1 = 70045 [08:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 25 27.10.2024 08:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191993 ФПД: 31543103286567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191993&fm=31543103286567&tin=02508201610067®Number=0000000000091776&sum=70044 [08:16:12]StoreToDocumentArchive [08:16:12]shift 542 fd 191993 [08:16:12]save to /storage/0542/doc_00191993 [08:16:12]save last doc name /storage/0542/doc_00191993 to /storage/kkm_last_doc_name [08:16:12]save OK [08:16:12]Clear old archive folders... [08:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:12]tlvbuf is 01960BC0 [08:16:12]SAM_PROTO_ClearQueue [08:16:12]wFMCommunicate request_size=4 [08:16:12]MH_SAM_APDU [08:16:12]CAPDU: 80 09 00 00 [08:16:12]Write to MH i2c: E2 08 00 F9 45 80 09 00 00 00 00 00 00 B0 [08:16:12]Write i2c OK [08:16:12]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 F9 45 00 90 00 B2 [08:16:13]RAPDU: 90 00 [08:16:13]wFMCommunicate OK [08:16:13]SAM_PROTO_ClearQueue done [08:16:13]KKMCreateOFDPacket [08:16:13]OFDProtocolAddRootSTLVToBuf [08:16:13]FM_MakeSignedData [08:16:13]FM_MakeSignedData [08:16:13]SAM_PROTO_SignData [08:16:13]wFMCommunicate request_size=4 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 0D 01 02 [08:16:13]Write to MH i2c: E2 08 00 FA 45 80 0D 01 02 00 00 00 00 B8 [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 FA 45 00 90 00 B3 [08:16:13]RAPDU: 90 00 [08:16:13]wFMCommunicate OK [08:16:13]wFMCommunicate request_size=255 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 DE F6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 ED 02 00 35 04 06 00 1C [08:16:13]Write to MH i2c: E2 02 01 FB 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 DE F6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 ED 02 00 35 04 06 00 1C 00 00 49 [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 FB 45 00 90 00 B4 [08:16:13]RAPDU: 90 00 [08:16:13]wFMCommunicate OK [08:16:13]wFMCommunicate request_size=10 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 0D 02 02 05 B0 33 77 6D 27 [08:16:13]Write to MH i2c: E2 0D 00 FC 45 80 0D 02 02 05 00 B0 33 77 6D 27 00 00 B3 [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 03 00 FC 45 00 90 00 B5 [08:16:13]RAPDU: 90 00 [08:16:13]wFMCommunicate OK [08:16:13]wFMCommunicate request_size=4 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 0D 03 02 [08:16:13]Write to MH i2c: E2 08 00 FD 45 80 0D 03 02 00 00 00 00 BD [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 0B 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 0B 00 FD 45 00 F4 61 AD C5 41 07 32 25 90 00 24 [08:16:13]RAPDU: F4 61 AD C5 41 07 32 25 90 00 [08:16:13]wFMCommunicate OK [08:16:13]SAM_PROTO_SignData done [08:16:13]FM_MakeSignedData done [08:16:13]CreateOFDProtocolMessage [08:16:13]wFMCommunicate request_size=4 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 11 00 00 [08:16:13]Write to MH i2c: E2 08 00 FE 45 80 11 00 00 00 00 00 00 BD [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 17 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 17 00 FE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [08:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:13]wFMCommunicate OK [08:16:13]CreateOFDProtocolMessage done [08:16:13]OFDSenderStorePacket 191993 [08:16:13]StoreOFDPacket docnum=191993 [08:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 8C 07 01 EC 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 DE F6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 ED 02 00 35 04 06 00 1C B0 33 77 6D 27 F4 61 AD C5 41 07 32 25 [08:16:13]CheckFolder [08:16:13]dirname=/storage/ofd_packets [08:16:13]CheckFolder done [08:16:13]ProducePacketName [08:16:13]name=ofd_packets/00191993 [08:16:13]NVStorageSaveData ofd_packets/00191993 [08:16:13]File name is /storage/ofd_packets/00191993 [08:16:13]Write 301 bytes [08:16:13]NVStorageSaveData done [08:16:13]OFDSenderStorePacket done [08:16:13]KKMCreateOFDPacket done [08:16:13]NVStorageSaveData kkm_last_timestamp [08:16:13]File name is /storage/kkm_last_timestamp [08:16:13]Write 4 bytes [08:16:13]NVStorageSaveData done [08:16:13]ExternCall_PrintAddStr [08:16:13]wPrintStart [08:16:13]Write to MH i2c: 01 00 00 FF 45 44 [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: 01 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: 01 07 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: 01 07 00 FF 45 00 00 00 00 00 FF 0F 59 [08:16:13]RasterBufferAndPrint [08:16:13]line Счет N : (1)31303 [08:16:13]line ИНН: 02508201610067 [08:16:13]line Контрольно-Кассовый Чек [08:16:13]line ПРОДАЖА [08:16:13]line ТРК (МРК, ГНК) : 12 [08:16:13]line Товар: 2710124130 [08:16:13]line Аи-92-К-5 [08:16:13]line 10.470 * 66.90 [08:16:13]line = 700.44 [08:16:13]line НДС 12% НСП 1% [08:16:13]line > о реализуемом товаре [08:16:13]line ИТОГО: 700.44 [08:16:13]line НСП 1% : 6.20 [08:16:13]line НДС 12% : 74.38 [08:16:13]line Наличными: 0.00 [08:16:13]line Безнал.: 700.44 [08:16:13]line Место: АЗС № 170 "Партнер Нефть" [08:16:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:16:13]line СНО: Общий режим [08:16:13]line Чек 25 27.10.2024 08:16 [08:16:13]line Смена: 542 ФФД: 1.0 [08:16:13]line ЗНМ: 0300000110 [08:16:13]line РНМ: 0000000000091776 [08:16:13]line Версия ККМ: 001 [08:16:13]line Платежная система: Кыргызкоммерцбанк [08:16:13]line ФМ: 0000000000871754 [08:16:13]line ФД: 191993 [08:16:13]line ФПД: 31543103286567 [08:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191993&fm=31543103286567&tin=02508201610067®Number=0000000000091776&sum=70044 [08:16:13]written 0, free lines is 4095 [08:16:13]OFD Sender: Processing packet 191993 [packets to send 75, broken 74] [08:16:13]ProducePacketName [08:16:13]name=ofd_packets/00191993 [08:16:13]OFD Sender: To server: pG, [08:16:13]CommunicateWithHost lk.salyk.kg:30040 [08:16:13]ConnectInit lk.salyk.kg [08:16:13]Connected sock=8 [08:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 8C 07 01 EC 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 DE F6 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 ED 02 00 35 04 06 00 1C B0 33 77 6D 27 F4 61 AD C5 41 07 32 25 [08:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 38 47 00 BC C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 ED 02 00 F4 03 04 00 A7 9B 1D 67 B6 04 01 00 00 30 74 7F 5A 89 0A F8 8C [08:16:14]CommunicateWithHost err = 0 [08:16:14]CheckOFDResponse [08:16:14]1017 (14) - 77093643461234 [08:16:14]1041 (16) - 0000000000871754 [08:16:14]1040 (4) - 191993 [08:16:14]1012 (4) - 27.10.2024 01:47 [08:16:14]1206 (1) - 0 [08:16:14]OFD Sender: Remove packet 191993 [08:16:14]ProducePacketName [08:16:14]name=ofd_packets/00191993 [08:16:14]NVStorageDeleteData [08:16:14]Write to MH i2c: 01 00 00 29 46 6F [08:16:14]Write i2c OK [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: 01 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: 01 07 00 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: 01 07 00 29 46 00 00 00 00 00 C1 0C 43 [08:16:14]RasterBufferAndPrint [08:16:14]line [08:16:14]line [08:16:14]line [08:16:14]line [08:16:14]line [08:16:14]written 0, free lines is 3271 [08:16:14]MH_Cut [08:16:14]Write to MH i2c: D1 01 00 30 46 01 48 [08:16:14]Write i2c OK [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: D1 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: D1 01 00 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: D1 01 00 30 46 00 47 [08:16:14]Write to MH i2c: 01 00 00 31 46 77 [08:16:14]Write i2c OK [08:16:14]MH_I2C_Read... [08:16:14]OFD Sender: No OFD packet to send [08:16:15]*** Cut start [08:16:15]*** Partial cut [08:16:15]*** CUTSNS_PIN = 1 [08:16:15]*** CUTSNS_PIN = 0 [08:16:15]*** Brake cut motor [08:16:15]Read from MH i2c: 01 [08:16:15]MH_I2C_Read... [08:16:15]*** Stop cut motor [08:16:15]*** Cut end [08:16:15]Read from MH i2c: 01 07 00 [08:16:15]MH_I2C_Read... [08:16:15]Read from MH i2c: 01 07 00 31 46 00 00 00 00 00 FF 0F 8C [08:16:15]process_action close_receipt done [08:16:15]requested_data is exist [08:16:15]produce_requested_data [08:16:15]requested_item fm.sn is exist - process it [08:16:15]wFMCommunicate request_size=4 [08:16:15]MH_SAM_APDU [08:16:15]CAPDU: 80 11 00 00 [08:16:15]Write to MH i2c: E2 08 00 32 46 80 11 00 00 00 00 00 00 F2 [08:16:15]Write i2c OK [08:16:15]MH_I2C_Read... [08:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:15]Read from MH i2c: E2 [08:16:15]MH_I2C_Read... [08:16:15]Read from MH i2c: E2 17 00 [08:16:15]MH_I2C_Read... [08:16:15]Read from MH i2c: E2 17 00 32 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [08:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:15]wFMCommunicate OK [08:16:15]requested_item fd.num is exist - process it [08:16:15]SAM_PROTO_GetFieldsCounters [08:16:15]wFMCommunicate request_size=4 [08:16:15]MH_SAM_APDU [08:16:15]CAPDU: 80 13 00 00 [08:16:15]Write to MH i2c: E2 08 00 33 46 80 13 00 00 00 00 00 00 F5 [08:16:15]Write i2c OK [08:16:15]MH_I2C_Read... [08:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:16]Read from MH i2c: E2 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 62 00 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 62 00 33 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:16]wFMCommunicate OK [08:16:16]SAM_PROTO_GetFieldsCounters done [08:16:16]requested_item shift.num is exist - process it [08:16:16]requested_item shift.opened is exist - process it [08:16:16]req_shift_opened [08:16:16]FM_GetShiftState [08:16:16]SAM_PROTO_GetShiftState [08:16:16]wFMCommunicate request_size=4 [08:16:16]MH_SAM_APDU [08:16:16]CAPDU: 80 13 01 00 [08:16:16]Write to MH i2c: E2 08 00 34 46 80 13 01 00 00 00 00 00 F7 [08:16:16]Write i2c OK [08:16:16]MH_I2C_Read... [08:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:16]Read from MH i2c: E2 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 0E 00 [08:16:16]MH_I2C_Read... [08:16:16]Read from MH i2c: E2 0E 00 34 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [08:16:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:16:16]wFMCommunicate OK [08:16:16]SAM_PROTO_GetShiftState done [08:16:16]FM_GetShiftState done [08:16:16]req_shift_opened done [08:16:16]requested_item shift.open_date is exist - process it [08:16:16]req_shift_open_date [08:16:16]req_shift_open_date done [08:16:16]produce_requested_data done [08:16:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191993,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:16:16]process_action_free close_receipt [08:16:16]json_value_free [08:16:16]json_value_free done [08:16:16]process_json_proto returns [08:16:16]Send response to host [08:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191993,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:16:16]free response buf [08:16:16]execute_script done [08:16:16]execute_script returns [08:16:16]free content buf [08:16:16]Sock 5.Close socket [08:16:16]Sock 5.Thread stoped [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:47]accept exits with 6 [08:16:47]New connection [08:16:47]New thread 3066817892 created [08:16:47]Thread 3066961252 joined [08:16:47]Waiting for new connection... [08:16:47] Sock 6.Parse request [08:16:47]Sock 6.Check first char [08:16:47]Sock 6.First char is OK [08:16:47]request: POST /json_proto HTTP/1.0 [08:16:47]Method: POST [08:16:47]URL: /json_proto [08:16:47]Method is POST - this is cgi request [08:16:47]url: /json_proto [08:16:47]query_string will be loaded in cgi processing [08:16:47]execute_cgi json_proto POST (null) [08:16:47]execute_cgi path=json_proto method=POST [08:16:47]POST find Content-Length [08:16:47]Host: 172.17.63.131:8080 [08:16:47]Content-Length: 676 [08:16:47]Content-Type: application/json [08:16:47] [08:16:47]POST finish read [08:16:47]Found Content-Length = 676 [08:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:47]execute_script... [08:16:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:47]POST & json_proto [08:16:47]process_json_proto [08:16:47]json parsed OK: [08:16:47]protocol is kg_v1.0 [08:16:47]action value=close_receipt [08:16:47]process_action close_receipt [08:16:47]cmd_close_receipt [08:16:47]MH_GetDate [08:16:47]Write to MH i2c: F0 00 00 35 46 6A [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: F0 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: F0 09 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: F0 09 00 35 46 00 02 F7 1D 67 22 05 6E 64 E9 [08:16:47]GetLastDocTimeStamp 1730016990 [08:16:47]current date 1730017026 [08:16:47]FM_GetShiftState [08:16:47]SAM_PROTO_GetShiftState [08:16:47]wFMCommunicate request_size=4 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 13 01 00 [08:16:47]Write to MH i2c: E2 08 00 36 46 80 13 01 00 00 00 00 00 F9 [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 0E 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 0E 00 36 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3A [08:16:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:16:47]wFMCommunicate OK [08:16:47]SAM_PROTO_GetShiftState done [08:16:47]FM_GetShiftState done [08:16:47]opened in 1729989159 [08:16:47]opened+sec_in_day 1730075559 [08:16:47]quantity*price = 30038 [08:16:47]sum+1 = 30039 [08:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 26 27.10.2024 08:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191994 ФПД: 178437908469294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081706&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191994&fm=178437908469294&tin=02508201610067®Number=0000000000091776&sum=30000 [08:16:48]StoreToDocumentArchive [08:16:48]shift 542 fd 191994 [08:16:48]save to /storage/0542/doc_00191994 [08:16:48]save last doc name /storage/0542/doc_00191994 to /storage/kkm_last_doc_name [08:16:48]save OK [08:16:48]Clear old archive folders... [08:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:48]tlvbuf is 01A12030 [08:16:48]SAM_PROTO_ClearQueue [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 09 00 00 [08:16:48]Write to MH i2c: E2 08 00 43 46 80 09 00 00 00 00 00 00 FB [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 43 46 00 90 00 FD [08:16:48]RAPDU: 90 00 [08:16:48]wFMCommunicate OK [08:16:48]SAM_PROTO_ClearQueue done [08:16:48]KKMCreateOFDPacket [08:16:48]OFDProtocolAddRootSTLVToBuf [08:16:48]FM_MakeSignedData [08:16:48]FM_MakeSignedData [08:16:48]SAM_PROTO_SignData [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 0D 01 02 [08:16:48]Write to MH i2c: E2 08 00 44 46 80 0D 01 02 00 00 00 00 03 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 44 46 00 90 00 FE [08:16:48]RAPDU: 90 00 [08:16:48]wFMCommunicate OK [08:16:48]wFMCommunicate request_size=255 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 02 F7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA ED 02 00 35 04 06 00 A2 [08:16:48]Write to MH i2c: E2 02 01 45 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 02 F7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA ED 02 00 35 04 06 00 A2 00 00 CD [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 45 46 00 90 00 FF [08:16:48]RAPDU: 90 00 [08:16:48]wFMCommunicate OK [08:16:48]wFMCommunicate request_size=10 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 0D 02 02 05 49 D0 26 16 2E [08:16:48]Write to MH i2c: E2 0D 00 46 46 80 0D 02 02 05 00 49 D0 26 16 2E 00 00 93 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 03 00 46 46 00 90 00 00 [08:16:48]RAPDU: 90 00 [08:16:48]wFMCommunicate OK [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 0D 03 02 [08:16:48]Write to MH i2c: E2 08 00 47 46 80 0D 03 02 00 00 00 00 08 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0B 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0B 00 47 46 00 B6 AC 6A 53 2E FD 5A F3 90 00 A0 [08:16:48]RAPDU: B6 AC 6A 53 2E FD 5A F3 90 00 [08:16:48]wFMCommunicate OK [08:16:48]SAM_PROTO_SignData done [08:16:48]FM_MakeSignedData done [08:16:48]CreateOFDProtocolMessage [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 11 00 00 [08:16:48]Write to MH i2c: E2 08 00 48 46 80 11 00 00 00 00 00 00 08 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:48]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 17 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 17 00 48 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [08:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:49]wFMCommunicate OK [08:16:49]CreateOFDProtocolMessage done [08:16:49]OFDSenderStorePacket 191994 [08:16:49]StoreOFDPacket docnum=191994 [08:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 04 07 01 36 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 02 F7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA ED 02 00 35 04 06 00 A2 49 D0 26 16 2E B6 AC 6A 53 2E FD 5A F3 [08:16:49]CheckFolder [08:16:49]dirname=/storage/ofd_packets [08:16:49]CheckFolder done [08:16:49]ProducePacketName [08:16:49]name=ofd_packets/00191994 [08:16:49]NVStorageSaveData ofd_packets/00191994 [08:16:49]File name is /storage/ofd_packets/00191994 [08:16:49]Write 301 bytes [08:16:49]NVStorageSaveData done [08:16:49]OFDSenderStorePacket done [08:16:49]KKMCreateOFDPacket done [08:16:49]NVStorageSaveData kkm_last_timestamp [08:16:49]File name is /storage/kkm_last_timestamp [08:16:49]Write 4 bytes [08:16:49]NVStorageSaveData done [08:16:49]ExternCall_PrintAddStr [08:16:49]wPrintStart [08:16:49]Write to MH i2c: 01 00 00 49 46 8F [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 07 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 07 00 49 46 00 00 00 00 00 FF 0F A4 [08:16:49]RasterBufferAndPrint [08:16:49]line Счет N : (1)31304 [08:16:49]line ИНН: 02508201610067 [08:16:49]line Контрольно-Кассовый Чек [08:16:49]line ПРОДАЖА [08:16:49]line ТРК (МРК, ГНК) : 12 [08:16:49]line Товар: 2710124130 [08:16:49]line Аи-92-К-5 [08:16:49]line 4.490 * 66.90 [08:16:49]line = 300.38 [08:16:49]line НДС 12% НСП 1% [08:16:49]line > о реализуемом товаре [08:16:49]line ОКРУГЛЕНИЕ: -0.38 [08:16:49]line ИТОГО: 300.00 [08:16:49]line Внесено: 300.00 [08:16:49]line СДАЧА: 0.00 [08:16:49]line НСП 1% : 2.66 [08:16:49]line НДС 12% : 31.90 [08:16:49]line Наличными: 300.00 [08:16:49]line Безнал.: 0.00 [08:16:49]line Место: АЗС № 170 "Партнер Нефть" [08:16:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:16:49]line СНО: Общий режим [08:16:49]line Чек 26 27.10.2024 08:17 [08:16:49]line Смена: 542 ФФД: 1.0 [08:16:49]line ЗНМ: 0300000110 [08:16:49]line РНМ: 0000000000091776 [08:16:49]line Версия ККМ: 001 [08:16:49]line ФМ: 0000000000871754 [08:16:49]line ФД: 191994 [08:16:49]line ФПД: 178437908469294 [08:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081706&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191994&fm=178437908469294&tin=02508201610067®Number=0000000000091776&sum=30000 [08:16:49]OFD Sender: Processing packet 191994 [packets to send 75, broken 74] [08:16:49]ProducePacketName [08:16:49]name=ofd_packets/00191994 [08:16:49]OFD Sender: To server: pG, [08:16:49]CommunicateWithHost lk.salyk.kg:30040 [08:16:49]ConnectInit lk.salyk.kg [08:16:49]written 0, free lines is 4095 [08:16:49]Connected sock=8 [08:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 04 07 01 36 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 02 F7 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA ED 02 00 35 04 06 00 A2 49 D0 26 16 2E B6 AC 6A 53 2E FD 5A F3 [08:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 6A 47 00 C3 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA ED 02 00 F4 03 04 00 CA 9B 1D 67 B6 04 01 00 00 BC E8 2D 7E E3 6C ED 9F [08:16:49]CommunicateWithHost err = 0 [08:16:49]CheckOFDResponse [08:16:49]1017 (14) - 77093643461234 [08:16:49]1041 (16) - 0000000000871754 [08:16:49]1040 (4) - 191994 [08:16:49]1012 (4) - 27.10.2024 01:47 [08:16:49]1206 (1) - 0 [08:16:49]OFD Sender: Remove packet 191994 [08:16:49]ProducePacketName [08:16:49]name=ofd_packets/00191994 [08:16:49]NVStorageDeleteData [08:16:49]Write to MH i2c: 01 00 00 74 46 BA [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 07 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: 01 07 00 74 46 00 00 00 00 00 BF 0C 8C [08:16:49]RasterBufferAndPrint [08:16:49]line [08:16:49]line [08:16:49]line [08:16:49]line [08:16:49]line [08:16:49]written 0, free lines is 3269 [08:16:49]MH_Cut [08:16:49]Write to MH i2c: D1 01 00 7B 46 01 93 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: D1 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: D1 01 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: D1 01 00 7B 46 00 92 [08:16:49]Write to MH i2c: 01 00 00 7C 46 C2 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:50]OFD Sender: No OFD packet to send [08:16:50]*** Cut start [08:16:50]*** Partial cut [08:16:50]*** CUTSNS_PIN = 1 [08:16:50]*** CUTSNS_PIN = 0 [08:16:50]*** Brake cut motor [08:16:51]Read from MH i2c: 01 [08:16:51]MH_I2C_Read... [08:16:51]*** Stop cut motor [08:16:51]*** Cut end [08:16:51]Read from MH i2c: 01 07 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 7C 46 00 00 00 00 00 FF 0F D7 [08:16:51]process_action close_receipt done [08:16:51]requested_data is exist [08:16:51]produce_requested_data [08:16:51]requested_item fm.sn is exist - process it [08:16:51]wFMCommunicate request_size=4 [08:16:51]MH_SAM_APDU [08:16:51]CAPDU: 80 11 00 00 [08:16:51]Write to MH i2c: E2 08 00 7D 46 80 11 00 00 00 00 00 00 3D [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:51]Read from MH i2c: E2 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 17 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 17 00 7D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [08:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:51]wFMCommunicate OK [08:16:51]requested_item fd.num is exist - process it [08:16:51]SAM_PROTO_GetFieldsCounters [08:16:51]wFMCommunicate request_size=4 [08:16:51]MH_SAM_APDU [08:16:51]CAPDU: 80 13 00 00 [08:16:51]Write to MH i2c: E2 08 00 7E 46 80 13 00 00 00 00 00 00 40 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:51]Read from MH i2c: E2 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 62 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 62 00 7E 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:51]wFMCommunicate OK [08:16:51]SAM_PROTO_GetFieldsCounters done [08:16:51]requested_item shift.num is exist - process it [08:16:51]requested_item shift.opened is exist - process it [08:16:51]req_shift_opened [08:16:51]FM_GetShiftState [08:16:51]SAM_PROTO_GetShiftState [08:16:51]wFMCommunicate request_size=4 [08:16:51]MH_SAM_APDU [08:16:51]CAPDU: 80 13 01 00 [08:16:51]Write to MH i2c: E2 08 00 7F 46 80 13 01 00 00 00 00 00 42 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:51]Read from MH i2c: E2 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 0E 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 0E 00 7F 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [08:16:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:16:51]wFMCommunicate OK [08:16:51]SAM_PROTO_GetShiftState done [08:16:51]FM_GetShiftState done [08:16:51]req_shift_opened done [08:16:51]requested_item shift.open_date is exist - process it [08:16:51]req_shift_open_date [08:16:51]req_shift_open_date done [08:16:51]produce_requested_data done [08:16:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191994,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:16:51]process_action_free close_receipt [08:16:51]json_value_free [08:16:51]json_value_free done [08:16:51]process_json_proto returns [08:16:51]Send response to host [08:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191994,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:16:51]free response buf [08:16:51]execute_script done [08:16:51]execute_script returns [08:16:51]free content buf [08:16:51]Sock 6.Close socket [08:16:51]Sock 6.Thread stoped [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]accept exits with 5 [08:23:05]New connection [08:23:05]New thread 3066961252 created [08:23:05]Thread 3066817892 joined [08:23:05]Waiting for new connection... [08:23:05] Sock 5.Parse request [08:23:05]Sock 5.Check first char [08:23:05]Sock 5.First char is OK [08:23:05]request: POST /json_proto HTTP/1.0 [08:23:05]Method: POST [08:23:05]URL: /json_proto [08:23:05]Method is POST - this is cgi request [08:23:05]url: /json_proto [08:23:05]query_string will be loaded in cgi processing [08:23:05]execute_cgi json_proto POST (null) [08:23:05]execute_cgi path=json_proto method=POST [08:23:05]POST find Content-Length [08:23:05]Host: 172.17.63.131:8080 [08:23:05]Content-Length: 862 [08:23:05]Content-Type: application/json [08:23:05] [08:23:05]POST finish read [08:23:05]Found Content-Length = 862 [08:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:05]execute_script... [08:23: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)31305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:05]POST & json_proto [08:23:05]process_json_proto [08:23:05]json parsed OK: [08:23:05]protocol is kg_v1.0 [08:23:05]action value=close_receipt [08:23:05]process_action close_receipt [08:23:05]cmd_close_receipt [08:23:05]MH_GetDate [08:23:05]Write to MH i2c: F0 00 00 80 46 B5 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: F0 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: F0 09 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: F0 09 00 80 46 00 7C F8 1D 67 22 05 6E 64 AF [08:23:05]GetLastDocTimeStamp 1730017026 [08:23:05]current date 1730017404 [08:23:05]FM_GetShiftState [08:23:05]SAM_PROTO_GetShiftState [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 13 01 00 [08:23:05]Write to MH i2c: E2 08 00 81 46 80 13 01 00 00 00 00 00 44 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0E 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0E 00 81 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 85 [08:23:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:23:05]wFMCommunicate OK [08:23:05]SAM_PROTO_GetShiftState done [08:23:05]FM_GetShiftState done [08:23:05]opened in 1729989159 [08:23:05]opened+sec_in_day 1730075559 [08:23:05]quantity*price = 50041 [08:23:05]sum+1 = 50042 [08:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 27 27.10.2024 08:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191995 ФПД: 223398875695427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082324&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191995&fm=223398875695427&tin=02508201610067®Number=0000000000091776&sum=50041 [08:23:06]StoreToDocumentArchive [08:23:06]shift 542 fd 191995 [08:23:06]save to /storage/0542/doc_00191995 [08:23:06]save last doc name /storage/0542/doc_00191995 to /storage/kkm_last_doc_name [08:23:06]save OK [08:23:06]Clear old archive folders... [08:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:06]tlvbuf is 01CAA3F0 [08:23:06]SAM_PROTO_ClearQueue [08:23:06]wFMCommunicate request_size=4 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 09 00 00 [08:23:06]Write to MH i2c: E2 08 00 8E 46 80 09 00 00 00 00 00 00 46 [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:06]Read from MH i2c: E2 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 03 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 03 00 8E 46 00 90 00 48 [08:23:06]RAPDU: 90 00 [08:23:06]wFMCommunicate OK [08:23:06]SAM_PROTO_ClearQueue done [08:23:06]KKMCreateOFDPacket [08:23:06]OFDProtocolAddRootSTLVToBuf [08:23:06]FM_MakeSignedData [08:23:06]FM_MakeSignedData [08:23:06]SAM_PROTO_SignData [08:23:06]wFMCommunicate request_size=4 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 0D 01 02 [08:23:06]Write to MH i2c: E2 08 00 8F 46 80 0D 01 02 00 00 00 00 4E [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:06]Read from MH i2c: E2 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 03 00 [08:23:06]MH_I2C_Read... [08:23:06]Read from MH i2c: E2 03 00 8F 46 00 90 00 49 [08:23:06]RAPDU: 90 00 [08:23:06]wFMCommunicate OK [08:23:06]wFMCommunicate request_size=255 [08:23:06]MH_SAM_APDU [08:23:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7C F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB ED 02 00 35 04 06 00 CB [08:23:06]Write to MH i2c: E2 02 01 90 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7C F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB ED 02 00 35 04 06 00 CB 00 00 1C [08:23:06]Write i2c OK [08:23:06]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 03 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 03 00 90 46 00 90 00 4A [08:23:07]RAPDU: 90 00 [08:23:07]wFMCommunicate OK [08:23:07]wFMCommunicate request_size=10 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 0D 02 02 05 2E 1A A1 09 43 [08:23:07]Write to MH i2c: E2 0D 00 91 46 80 0D 02 02 05 00 2E 1A A1 09 43 00 00 90 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 03 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 03 00 91 46 00 90 00 4B [08:23:07]RAPDU: 90 00 [08:23:07]wFMCommunicate OK [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 0D 03 02 [08:23:07]Write to MH i2c: E2 08 00 92 46 80 0D 03 02 00 00 00 00 53 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0B 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 0B 00 92 46 00 F3 84 75 8B 4E 06 35 7F 90 00 D3 [08:23:07]RAPDU: F3 84 75 8B 4E 06 35 7F 90 00 [08:23:07]wFMCommunicate OK [08:23:07]SAM_PROTO_SignData done [08:23:07]FM_MakeSignedData done [08:23:07]CreateOFDProtocolMessage [08:23:07]wFMCommunicate request_size=4 [08:23:07]MH_SAM_APDU [08:23:07]CAPDU: 80 11 00 00 [08:23:07]Write to MH i2c: E2 08 00 93 46 80 11 00 00 00 00 00 00 53 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:07]Read from MH i2c: E2 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: E2 17 00 93 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [08:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:23:07]wFMCommunicate OK [08:23:07]CreateOFDProtocolMessage done [08:23:07]OFDSenderStorePacket 191995 [08:23:07]StoreOFDPacket docnum=191995 [08:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 49 07 01 0C 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7C F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB ED 02 00 35 04 06 00 CB 2E 1A A1 09 43 F3 84 75 8B 4E 06 35 7F [08:23:07]CheckFolder [08:23:07]dirname=/storage/ofd_packets [08:23:07]CheckFolder done [08:23:07]ProducePacketName [08:23:07]name=ofd_packets/00191995 [08:23:07]NVStorageSaveData ofd_packets/00191995 [08:23:07]File name is /storage/ofd_packets/00191995 [08:23:07]Write 301 bytes [08:23:07]NVStorageSaveData done [08:23:07]OFDSenderStorePacket done [08:23:07]KKMCreateOFDPacket done [08:23:07]NVStorageSaveData kkm_last_timestamp [08:23:07]File name is /storage/kkm_last_timestamp [08:23:07]Write 4 bytes [08:23:07]NVStorageSaveData done [08:23:07]ExternCall_PrintAddStr [08:23:07]wPrintStart [08:23:07]Write to MH i2c: 01 00 00 94 46 DA [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 94 46 00 00 00 00 00 FF 0F EF [08:23:07]RasterBufferAndPrint [08:23:07]line Счет N : (1)31305 [08:23:07]line ИНН: 02508201610067 [08:23:07]line Контрольно-Кассовый Чек [08:23:07]line ПРОДАЖА [08:23:07]line ТРК (МРК, ГНК) : 21 [08:23:07]line Товар: 2710124130 [08:23:07]line Аи-92-К-5 [08:23:07]line 7.480 * 66.90 [08:23:07]line = 500.41 [08:23:07]line НДС 12% НСП 1% [08:23:07]line > о реализуемом товаре [08:23:07]line ИТОГО: 500.41 [08:23:07]line НСП 1% : 4.43 [08:23:07]line НДС 12% : 53.14 [08:23:07]line Наличными: 0.00 [08:23:07]line Безнал.: 500.41 [08:23:07]line Место: АЗС № 170 "Партнер Нефть" [08:23:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:23:07]line СНО: Общий режим [08:23:07]line Чек 27 27.10.2024 08:23 [08:23:07]line Смена: 542 ФФД: 1.0 [08:23:07]line ЗНМ: 0300000110 [08:23:07]line РНМ: 0000000000091776 [08:23:07]line Версия ККМ: 001 [08:23:07]line Платежная система: Кыргызкоммерцбанк [08:23:07]line ФМ: 0000000000871754 [08:23:07]line ФД: 191995 [08:23:07]line ФПД: 223398875695427 [08:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082324&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191995&fm=223398875695427&tin=02508201610067®Number=0000000000091776&sum=50041 [08:23:07]written 0, free lines is 4095 [08:23:07]OFD Sender: Processing packet 191995 [packets to send 75, broken 74] [08:23:07]ProducePacketName [08:23:07]name=ofd_packets/00191995 [08:23:07]OFD Sender: To server: pG, [08:23:07]CommunicateWithHost lk.salyk.kg:30040 [08:23:07]ConnectInit lk.salyk.kg [08:23:07]Connected sock=8 [08:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 49 07 01 0C 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7C F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB ED 02 00 35 04 06 00 CB 2E 1A A1 09 43 F3 84 75 8B 4E 06 35 7F [08:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 11 38 47 00 CA 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB ED 02 00 F4 03 04 00 44 9D 1D 67 B6 04 01 00 00 DC FC 04 DB A7 01 26 01 [08:23:07]CommunicateWithHost err = 0 [08:23:07]CheckOFDResponse [08:23:07]1017 (14) - 77093643461234 [08:23:07]1041 (16) - 0000000000871754 [08:23:07]1040 (4) - 191995 [08:23:07]1012 (4) - 27.10.2024 01:54 [08:23:07]1206 (1) - 0 [08:23:07]OFD Sender: Remove packet 191995 [08:23:07]ProducePacketName [08:23:07]name=ofd_packets/00191995 [08:23:07]NVStorageDeleteData [08:23:07]Write to MH i2c: 01 00 00 BE 46 04 [08:23:07]Write i2c OK [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 [08:23:07]MH_I2C_Read... [08:23:07]Read from MH i2c: 01 07 00 BE 46 00 00 00 00 00 CC 0C E3 [08:23:07]RasterBufferAndPrint [08:23:07]line [08:23:07]line [08:23:07]line [08:23:07]line [08:23:07]line [08:23:08]written 0, free lines is 3285 [08:23:08]MH_Cut [08:23:08]Write to MH i2c: D1 01 00 C5 46 01 DD [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: D1 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: D1 01 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: D1 01 00 C5 46 00 DC [08:23:08]Write to MH i2c: 01 00 00 C6 46 0C [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]OFD Sender: No OFD packet to send [08:23:08]*** Cut start [08:23:08]*** Partial cut [08:23:08]*** CUTSNS_PIN = 1 [08:23:08]*** CUTSNS_PIN = 0 [08:23:09]*** Brake cut motor [08:23:09]Read from MH i2c: 01 [08:23:09]MH_I2C_Read... [08:23:09]*** Stop cut motor [08:23:09]*** Cut end [08:23:09]Read from MH i2c: 01 07 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: 01 07 00 C6 46 00 00 00 00 00 FF 0F 21 [08:23:09]process_action close_receipt done [08:23:09]requested_data is exist [08:23:09]produce_requested_data [08:23:09]requested_item fm.sn is exist - process it [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 11 00 00 [08:23:09]Write to MH i2c: E2 08 00 C7 46 80 11 00 00 00 00 00 00 87 [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 17 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 17 00 C7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [08:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:23:09]wFMCommunicate OK [08:23:09]requested_item fd.num is exist - process it [08:23:09]SAM_PROTO_GetFieldsCounters [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 13 00 00 [08:23:09]Write to MH i2c: E2 08 00 C8 46 80 13 00 00 00 00 00 00 8A [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 62 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 62 00 C8 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [08:23:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:09]wFMCommunicate OK [08:23:09]SAM_PROTO_GetFieldsCounters done [08:23:09]requested_item shift.num is exist - process it [08:23:09]requested_item shift.opened is exist - process it [08:23:09]req_shift_opened [08:23:09]FM_GetShiftState [08:23:09]SAM_PROTO_GetShiftState [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 13 01 00 [08:23:09]Write to MH i2c: E2 08 00 C9 46 80 13 01 00 00 00 00 00 8C [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 0E 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 0E 00 C9 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [08:23:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:23:09]wFMCommunicate OK [08:23:09]SAM_PROTO_GetShiftState done [08:23:09]FM_GetShiftState done [08:23:09]req_shift_opened done [08:23:09]requested_item shift.open_date is exist - process it [08:23:09]req_shift_open_date [08:23:09]req_shift_open_date done [08:23:09]produce_requested_data done [08:23:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191995,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:23:09]process_action_free close_receipt [08:23:09]json_value_free [08:23:09]json_value_free done [08:23:09]process_json_proto returns [08:23:09]Send response to host [08:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191995,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:23:09]free response buf [08:23:09]execute_script done [08:23:09]execute_script returns [08:23:09]free content buf [08:23:09]Sock 5.Close socket [08:23:09]Sock 5.Thread stoped [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:06]accept exits with 6 [08:24:06]New connection [08:24:06]New thread 3066817892 created [08:24:06]Thread 3066961252 joined [08:24:06]Waiting for new connection... [08:24:06] Sock 6.Parse request [08:24:06]Sock 6.Check first char [08:24:06]Sock 6.First char is OK [08:24:06]request: POST /json_proto HTTP/1.0 [08:24:06]Method: POST [08:24:06]URL: /json_proto [08:24:06]Method is POST - this is cgi request [08:24:06]url: /json_proto [08:24:06]query_string will be loaded in cgi processing [08:24:06]execute_cgi json_proto POST (null) [08:24:06]execute_cgi path=json_proto method=POST [08:24:06]POST find Content-Length [08:24:06]Host: 172.17.63.131:8080 [08:24:06]Content-Length: 676 [08:24:06]Content-Type: application/json [08:24:06] [08:24:06]POST finish read [08:24:06]Found Content-Length = 676 [08:24:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:06]execute_script... [08:24: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)31306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:06]POST & json_proto [08:24:06]process_json_proto [08:24:06]json parsed OK: [08:24:06]protocol is kg_v1.0 [08:24:06]action value=close_receipt [08:24:06]process_action close_receipt [08:24:06]cmd_close_receipt [08:24:06]MH_GetDate [08:24:06]Write to MH i2c: F0 00 00 CA 46 FF [08:24:06]Write i2c OK [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: F0 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: F0 09 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: F0 09 00 CA 46 00 B9 F8 1D 67 22 05 6E 64 36 [08:24:06]GetLastDocTimeStamp 1730017404 [08:24:06]current date 1730017465 [08:24:06]FM_GetShiftState [08:24:06]SAM_PROTO_GetShiftState [08:24:06]wFMCommunicate request_size=4 [08:24:06]MH_SAM_APDU [08:24:06]CAPDU: 80 13 01 00 [08:24:06]Write to MH i2c: E2 08 00 CB 46 80 13 01 00 00 00 00 00 8E [08:24:06]Write i2c OK [08:24:06]MH_I2C_Read... [08:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:06]Read from MH i2c: E2 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 0E 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 0E 00 CB 46 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [08:24:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:24:06]wFMCommunicate OK [08:24:06]SAM_PROTO_GetShiftState done [08:24:06]FM_GetShiftState done [08:24:06]opened in 1729989159 [08:24:06]opened+sec_in_day 1730075559 [08:24:06]quantity*price = 30038 [08:24:06]sum+1 = 30039 [08:24:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 28 27.10.2024 08:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191996 ФПД: 258826743547926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082425&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191996&fm=258826743547926&tin=02508201610067®Number=0000000000091776&sum=30000 [08:24:07]StoreToDocumentArchive [08:24:07]shift 542 fd 191996 [08:24:07]save to /storage/0542/doc_00191996 [08:24:07]save last doc name /storage/0542/doc_00191996 to /storage/kkm_last_doc_name [08:24:07]save OK [08:24:07]Clear old archive folders... [08:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:07]tlvbuf is 01B4D1A0 [08:24:07]SAM_PROTO_ClearQueue [08:24:07]wFMCommunicate request_size=4 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 09 00 00 [08:24:07]Write to MH i2c: E2 08 00 D8 46 80 09 00 00 00 00 00 00 90 [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 D8 46 00 90 00 92 [08:24:07]RAPDU: 90 00 [08:24:07]wFMCommunicate OK [08:24:07]SAM_PROTO_ClearQueue done [08:24:07]KKMCreateOFDPacket [08:24:07]OFDProtocolAddRootSTLVToBuf [08:24:07]FM_MakeSignedData [08:24:07]FM_MakeSignedData [08:24:07]SAM_PROTO_SignData [08:24:07]wFMCommunicate request_size=4 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 0D 01 02 [08:24:07]Write to MH i2c: E2 08 00 D9 46 80 0D 01 02 00 00 00 00 98 [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 D9 46 00 90 00 93 [08:24:07]RAPDU: 90 00 [08:24:07]wFMCommunicate OK [08:24:07]wFMCommunicate request_size=255 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B9 F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC ED 02 00 35 04 06 00 EB [08:24:07]Write to MH i2c: E2 02 01 DA 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B9 F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC ED 02 00 35 04 06 00 EB 00 00 67 [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 DA 46 00 90 00 94 [08:24:07]RAPDU: 90 00 [08:24:07]wFMCommunicate OK [08:24:07]wFMCommunicate request_size=10 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 0D 02 02 05 66 CC 1B 88 16 [08:24:07]Write to MH i2c: E2 0D 00 DB 46 80 0D 02 02 05 00 66 CC 1B 88 16 00 00 90 [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 03 00 DB 46 00 90 00 95 [08:24:07]RAPDU: 90 00 [08:24:07]wFMCommunicate OK [08:24:07]wFMCommunicate request_size=4 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 0D 03 02 [08:24:07]Write to MH i2c: E2 08 00 DC 46 80 0D 03 02 00 00 00 00 9D [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 0B 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 0B 00 DC 46 00 D2 A5 1C D4 7F 4F 6C F9 90 00 38 [08:24:07]RAPDU: D2 A5 1C D4 7F 4F 6C F9 90 00 [08:24:07]wFMCommunicate OK [08:24:07]SAM_PROTO_SignData done [08:24:07]FM_MakeSignedData done [08:24:07]CreateOFDProtocolMessage [08:24:07]wFMCommunicate request_size=4 [08:24:07]MH_SAM_APDU [08:24:07]CAPDU: 80 11 00 00 [08:24:07]Write to MH i2c: E2 08 00 DD 46 80 11 00 00 00 00 00 00 9D [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:07]Read from MH i2c: E2 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 17 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: E2 17 00 DD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [08:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:07]wFMCommunicate OK [08:24:07]CreateOFDProtocolMessage done [08:24:07]OFDSenderStorePacket 191996 [08:24:07]StoreOFDPacket docnum=191996 [08:24:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 85 07 01 26 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B9 F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC ED 02 00 35 04 06 00 EB 66 CC 1B 88 16 D2 A5 1C D4 7F 4F 6C F9 [08:24:07]CheckFolder [08:24:07]dirname=/storage/ofd_packets [08:24:07]CheckFolder done [08:24:07]ProducePacketName [08:24:07]name=ofd_packets/00191996 [08:24:07]NVStorageSaveData ofd_packets/00191996 [08:24:07]File name is /storage/ofd_packets/00191996 [08:24:07]Write 301 bytes [08:24:07]NVStorageSaveData done [08:24:07]OFDSenderStorePacket done [08:24:07]KKMCreateOFDPacket done [08:24:07]NVStorageSaveData kkm_last_timestamp [08:24:07]File name is /storage/kkm_last_timestamp [08:24:07]Write 4 bytes [08:24:07]NVStorageSaveData done [08:24:07]ExternCall_PrintAddStr [08:24:07]wPrintStart [08:24:07]Write to MH i2c: 01 00 00 DE 46 24 [08:24:07]Write i2c OK [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: 01 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: 01 07 00 [08:24:07]MH_I2C_Read... [08:24:07]Read from MH i2c: 01 07 00 DE 46 00 00 00 00 00 FF 0F 39 [08:24:07]RasterBufferAndPrint [08:24:07]line Счет N : (1)31306 [08:24:07]line ИНН: 02508201610067 [08:24:07]line Контрольно-Кассовый Чек [08:24:07]line ПРОДАЖА [08:24:07]line ТРК (МРК, ГНК) : 12 [08:24:07]line Товар: 2710124130 [08:24:07]line Аи-92-К-5 [08:24:07]line 4.490 * 66.90 [08:24:07]line = 300.38 [08:24:07]line НДС 12% НСП 1% [08:24:07]line > о реализуемом товаре [08:24:07]line ОКРУГЛЕНИЕ: -0.38 [08:24:07]line ИТОГО: 300.00 [08:24:07]line Внесено: 300.00 [08:24:07]line СДАЧА: 0.00 [08:24:07]line НСП 1% : 2.66 [08:24:07]line НДС 12% : 31.90 [08:24:07]line Наличными: 300.00 [08:24:07]line Безнал.: 0.00 [08:24:07]line Место: АЗС № 170 "Партнер Нефть" [08:24:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:24:07]line СНО: Общий режим [08:24:07]line Чек 28 27.10.2024 08:24 [08:24:07]line Смена: 542 ФФД: 1.0 [08:24:07]line ЗНМ: 0300000110 [08:24:07]line РНМ: 0000000000091776 [08:24:07]line Версия ККМ: 001 [08:24:07]line ФМ: 0000000000871754 [08:24:07]line ФД: 191996 [08:24:07]line ФПД: 258826743547926 [08:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082425&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191996&fm=258826743547926&tin=02508201610067®Number=0000000000091776&sum=30000 [08:24:08]OFD Sender: Processing packet 191996 [packets to send 75, broken 74] [08:24:08]ProducePacketName [08:24:08]name=ofd_packets/00191996 [08:24:08]OFD Sender: To server: pG, [08:24:08]CommunicateWithHost lk.salyk.kg:30040 [08:24:08]ConnectInit lk.salyk.kg [08:24:08]written 0, free lines is 4095 [08:24:08]Connected sock=9 [08:24:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 85 07 01 26 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 B9 F8 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC ED 02 00 35 04 06 00 EB 66 CC 1B 88 16 D2 A5 1C D4 7F 4F 6C F9 [08:24:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 60 47 00 9A 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 37 35 34 10 04 04 00 FC ED 02 00 F4 03 04 00 81 9D 1D 67 B6 04 01 00 00 0C A2 2E D2 04 85 AB 02 [08:24:08]CommunicateWithHost err = 0 [08:24:08]CheckOFDResponse [08:24:08]1017 (14) - 77093643461234 [08:24:08]1041 (16) - 0000000000871754 [08:24:08]1040 (4) - 191996 [08:24:08]1012 (4) - 27.10.2024 01:55 [08:24:08]1206 (1) - 0 [08:24:08]OFD Sender: Remove packet 191996 [08:24:08]ProducePacketName [08:24:08]name=ofd_packets/00191996 [08:24:08]NVStorageDeleteData [08:24:08]Write to MH i2c: 01 00 00 09 47 50 [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: 01 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: 01 07 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: 01 07 00 09 47 00 00 00 00 00 BA 0C 1D [08:24:08]RasterBufferAndPrint [08:24:08]line [08:24:08]line [08:24:08]line [08:24:08]line [08:24:08]line [08:24:08]written 0, free lines is 3266 [08:24:08]MH_Cut [08:24:08]Write to MH i2c: D1 01 00 10 47 01 29 [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: D1 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: D1 01 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: D1 01 00 10 47 00 28 [08:24:08]Write to MH i2c: 01 00 00 11 47 58 [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:09]OFD Sender: No OFD packet to send [08:24:09]*** Cut start [08:24:09]*** Partial cut [08:24:09]*** CUTSNS_PIN = 1 [08:24:09]*** CUTSNS_PIN = 0 [08:24:09]*** Brake cut motor [08:24:10]Read from MH i2c: 01 [08:24:10]MH_I2C_Read... [08:24:10]*** Stop cut motor [08:24:10]*** Cut end [08:24:10]Read from MH i2c: 01 07 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: 01 07 00 11 47 00 00 00 00 00 FF 0F 6D [08:24:10]process_action close_receipt done [08:24:10]requested_data is exist [08:24:10]produce_requested_data [08:24:10]requested_item fm.sn is exist - process it [08:24:10]wFMCommunicate request_size=4 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 11 00 00 [08:24:10]Write to MH i2c: E2 08 00 12 47 80 11 00 00 00 00 00 00 D3 [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:10]Read from MH i2c: E2 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 17 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 17 00 12 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [08:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:10]wFMCommunicate OK [08:24:10]requested_item fd.num is exist - process it [08:24:10]SAM_PROTO_GetFieldsCounters [08:24:10]wFMCommunicate request_size=4 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 13 00 00 [08:24:10]Write to MH i2c: E2 08 00 13 47 80 13 00 00 00 00 00 00 D6 [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:10]Read from MH i2c: E2 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 62 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 62 00 13 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [08:24:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:10]wFMCommunicate OK [08:24:10]SAM_PROTO_GetFieldsCounters done [08:24:10]requested_item shift.num is exist - process it [08:24:10]requested_item shift.opened is exist - process it [08:24:10]req_shift_opened [08:24:10]FM_GetShiftState [08:24:10]SAM_PROTO_GetShiftState [08:24:10]wFMCommunicate request_size=4 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 13 01 00 [08:24:10]Write to MH i2c: E2 08 00 14 47 80 13 01 00 00 00 00 00 D8 [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:10]Read from MH i2c: E2 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 0E 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 0E 00 14 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [08:24:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:24:10]wFMCommunicate OK [08:24:10]SAM_PROTO_GetShiftState done [08:24:10]FM_GetShiftState done [08:24:10]req_shift_opened done [08:24:10]requested_item shift.open_date is exist - process it [08:24:10]req_shift_open_date [08:24:10]req_shift_open_date done [08:24:10]produce_requested_data done [08:24:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191996,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:24:10]process_action_free close_receipt [08:24:10]json_value_free [08:24:10]json_value_free done [08:24:10]process_json_proto returns [08:24:10]Send response to host [08:24:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191996,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:24:10]free response buf [08:24:10]execute_script done [08:24:10]execute_script returns [08:24:10]free content buf [08:24:10]Sock 6.Close socket [08:24:10]Sock 6.Thread stoped [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:18]accept exits with 5 [08:27:18]New connection [08:27:18]New thread 3066961252 created [08:27:18]Thread 3066817892 joined [08:27:18]Waiting for new connection... [08:27:18] Sock 5.Parse request [08:27:18]Sock 5.Check first char [08:27:18]Sock 5.First char is OK [08:27:18]request: POST /json_proto HTTP/1.0 [08:27:18]Method: POST [08:27:18]URL: /json_proto [08:27:18]Method is POST - this is cgi request [08:27:18]url: /json_proto [08:27:18]query_string will be loaded in cgi processing [08:27:18]execute_cgi json_proto POST (null) [08:27:18]execute_cgi path=json_proto method=POST [08:27:18]POST find Content-Length [08:27:18]Host: 172.17.63.131:8080 [08:27:18]Content-Length: 983 [08:27:18]Content-Type: application/json [08:27:18] [08:27:18]POST finish read [08:27:18]Found Content-Length = 983 [08:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:18]execute_script... [08:27: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)31307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:18]POST & json_proto [08:27:18]process_json_proto [08:27:18]json parsed OK: [08:27:18]protocol is kg_v1.0 [08:27:18]action value=close_receipt [08:27:18]process_action close_receipt [08:27:18]cmd_close_receipt [08:27:18]MH_GetDate [08:27:18]Write to MH i2c: F0 00 00 15 47 4B [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 09 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 09 00 15 47 00 79 F9 1D 67 22 05 6E 64 43 [08:27:18]GetLastDocTimeStamp 1730017465 [08:27:18]current date 1730017657 [08:27:18]FM_GetShiftState [08:27:18]SAM_PROTO_GetShiftState [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 13 01 00 [08:27:18]Write to MH i2c: E2 08 00 16 47 80 13 01 00 00 00 00 00 DA [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 16 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [08:27:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_GetShiftState done [08:27:18]FM_GetShiftState done [08:27:18]opened in 1729989159 [08:27:18]opened+sec_in_day 1730075559 [08:27:18]quantity*price = 200006 [08:27:18]sum+1 = 200008 [08:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 29 27.10.2024 08:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 191997 ФПД: 76288328304473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191997&fm=76288328304473&tin=02508201610067®Number=0000000000091776&sum=200000 [08:27:19]StoreToDocumentArchive [08:27:19]shift 542 fd 191997 [08:27:19]save to /storage/0542/doc_00191997 [08:27:19]save last doc name /storage/0542/doc_00191997 to /storage/kkm_last_doc_name [08:27:19]save OK [08:27:19]Clear old archive folders... [08:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:19]tlvbuf is 01A11EC0 [08:27:19]SAM_PROTO_ClearQueue [08:27:19]wFMCommunicate request_size=4 [08:27:19]MH_SAM_APDU [08:27:19]CAPDU: 80 09 00 00 [08:27:19]Write to MH i2c: E2 08 00 23 47 80 09 00 00 00 00 00 00 DC [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:19]Read from MH i2c: E2 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: E2 03 00 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: E2 03 00 23 47 00 90 00 DE [08:27:19]RAPDU: 90 00 [08:27:19]wFMCommunicate OK [08:27:19]SAM_PROTO_ClearQueue done [08:27:19]KKMCreateOFDPacket [08:27:19]OFDProtocolAddRootSTLVToBuf [08:27:19]FM_MakeSignedData [08:27:19]FM_MakeSignedData [08:27:19]SAM_PROTO_SignData [08:27:19]wFMCommunicate request_size=4 [08:27:19]MH_SAM_APDU [08:27:19]CAPDU: 80 0D 01 02 [08:27:19]Write to MH i2c: E2 08 00 24 47 80 0D 01 02 00 00 00 00 E4 [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 24 47 00 90 00 DF [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=255 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD ED 02 00 35 04 06 00 45 [08:27:20]Write to MH i2c: E2 02 01 25 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD ED 02 00 35 04 06 00 45 00 00 63 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 25 47 00 90 00 E0 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=10 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 02 02 05 62 42 B5 87 59 [08:27:20]Write to MH i2c: E2 0D 00 26 47 80 0D 02 02 05 00 62 42 B5 87 59 00 00 2A [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 26 47 00 90 00 E1 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 03 02 [08:27:20]Write to MH i2c: E2 08 00 27 47 80 0D 03 02 00 00 00 00 E9 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 0B 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 0B 00 27 47 00 B3 62 BC 67 68 98 00 85 90 00 A7 [08:27:20]RAPDU: B3 62 BC 67 68 98 00 85 90 00 [08:27:20]wFMCommunicate OK [08:27:20]SAM_PROTO_SignData done [08:27:20]FM_MakeSignedData done [08:27:20]CreateOFDProtocolMessage [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 11 00 00 [08:27:20]Write to MH i2c: E2 08 00 28 47 80 11 00 00 00 00 00 00 E9 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 17 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 17 00 28 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [08:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:20]wFMCommunicate OK [08:27:20]CreateOFDProtocolMessage done [08:27:20]OFDSenderStorePacket 191997 [08:27:20]StoreOFDPacket docnum=191997 [08:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 1A 07 01 25 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD ED 02 00 35 04 06 00 45 62 42 B5 87 59 B3 62 BC 67 68 98 00 85 [08:27:20]CheckFolder [08:27:20]dirname=/storage/ofd_packets [08:27:20]CheckFolder done [08:27:20]ProducePacketName [08:27:20]name=ofd_packets/00191997 [08:27:20]NVStorageSaveData ofd_packets/00191997 [08:27:20]File name is /storage/ofd_packets/00191997 [08:27:20]Write 301 bytes [08:27:20]NVStorageSaveData done [08:27:20]OFDSenderStorePacket done [08:27:20]KKMCreateOFDPacket done [08:27:20]NVStorageSaveData kkm_last_timestamp [08:27:20]File name is /storage/kkm_last_timestamp [08:27:20]OFD Sender: Processing packet 191997 [packets to send 75, broken 74] [08:27:20]ProducePacketName [08:27:20]name=ofd_packets/00191997 [08:27:20]OFD Sender: To server: pG, [08:27:20]CommunicateWithHost lk.salyk.kg:30040 [08:27:20]ConnectInit lk.salyk.kg [08:27:20]Write 4 bytes [08:27:20]NVStorageSaveData done [08:27:20]ExternCall_PrintAddStr [08:27:20]wPrintStart [08:27:20]Write to MH i2c: 01 00 00 29 47 70 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 07 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 07 00 29 47 00 00 00 00 00 FF 0F 85 [08:27:20]RasterBufferAndPrint [08:27:20]line Счет N : (1)31307 [08:27:20]line ИНН: 02508201610067 [08:27:20]line Контрольно-Кассовый Чек [08:27:20]line ПРОДАЖА [08:27:20]line ТРК (МРК, ГНК) : 12 [08:27:20]line Товар: 2710124130 [08:27:20]line Аи-92-К-5 [08:27:20]line 30.350 * 65.90 [08:27:20]line = 2000.07 [08:27:20]line НДС 12% НСП 1% [08:27:20]line > о реализуемом товаре [08:27:20]line ОКРУГЛЕНИЕ: -0.07 [08:27:20]line ИТОГО: 2000.00 [08:27:20]line Внесено: 2000.00 [08:27:20]line СДАЧА: 0.00 [08:27:20]line НСП 1% : 17.70 [08:27:20]line НДС 12% : 212.40 [08:27:20]line Наличными: 2000.00 [08:27:20]line Безнал.: 0.00 [08:27:20]line Место: АЗС № 170 "Партнер Нефть" [08:27:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:27:20]line СНО: Общий режим [08:27:20]line Чек 29 27.10.2024 08:27 [08:27:20]line Смена: 542 ФФД: 1.0 [08:27:20]line ЗНМ: 0300000110 [08:27:20]line РНМ: 0000000000091776 [08:27:20]line Версия ККМ: 001 [08:27:20]line [08:27:20]line Дисконтная программа [08:27:20]line АИ-92 [08:27:20]line номер 170 [08:27:20]line сэкономлено 30.35 сом [08:27:20]line ФМ: 0000000000871754 [08:27:20]line ФД: 191997 [08:27:20]line ФПД: 76288328304473 [08:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191997&fm=76288328304473&tin=02508201610067®Number=0000000000091776&sum=200000 [08:27:20]Connected sock=9 [08:27:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 1A 07 01 25 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 F9 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD ED 02 00 35 04 06 00 45 62 42 B5 87 59 B3 62 BC 67 68 98 00 85 [08:27:20]written 0, free lines is 4095 [08:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8E 0E 47 00 E3 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD ED 02 00 F4 03 04 00 42 9E 1D 67 B6 04 01 00 00 1B 72 15 4F E6 A9 58 21 [08:27:21]CommunicateWithHost err = 0 [08:27:21]CheckOFDResponse [08:27:21]1017 (14) - 77093643461234 [08:27:21]1041 (16) - 0000000000871754 [08:27:21]1040 (4) - 191997 [08:27:21]1012 (4) - 27.10.2024 01:58 [08:27:21]1206 (1) - 0 [08:27:21]OFD Sender: Remove packet 191997 [08:27:21]ProducePacketName [08:27:21]name=ofd_packets/00191997 [08:27:21]NVStorageDeleteData [08:27:21]Write to MH i2c: 01 00 00 59 47 A0 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 59 47 00 00 00 00 00 4D 0C 00 [08:27:21]RasterBufferAndPrint [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]written 0, free lines is 3155 [08:27:21]MH_Cut [08:27:21]Write to MH i2c: D1 01 00 60 47 01 79 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 01 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 01 00 60 47 00 78 [08:27:21]Write to MH i2c: 01 00 00 61 47 A8 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]OFD Sender: No OFD packet to send [08:27:22]*** Cut start [08:27:22]*** Partial cut [08:27:22]*** CUTSNS_PIN = 1 [08:27:22]*** CUTSNS_PIN = 0 [08:27:22]*** Brake cut motor [08:27:22]Read from MH i2c: 01 [08:27:22]MH_I2C_Read... [08:27:22]*** Stop cut motor [08:27:22]*** Cut end [08:27:22]Read from MH i2c: 01 07 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: 01 07 00 61 47 00 00 00 00 00 FF 0F BD [08:27:22]process_action close_receipt done [08:27:22]requested_data is exist [08:27:22]produce_requested_data [08:27:22]requested_item fm.sn is exist - process it [08:27:22]wFMCommunicate request_size=4 [08:27:22]MH_SAM_APDU [08:27:22]CAPDU: 80 11 00 00 [08:27:22]Write to MH i2c: E2 08 00 62 47 80 11 00 00 00 00 00 00 23 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:22]Read from MH i2c: E2 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 17 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 17 00 62 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [08:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:22]wFMCommunicate OK [08:27:22]requested_item fd.num is exist - process it [08:27:22]SAM_PROTO_GetFieldsCounters [08:27:22]wFMCommunicate request_size=4 [08:27:22]MH_SAM_APDU [08:27:22]CAPDU: 80 13 00 00 [08:27:22]Write to MH i2c: E2 08 00 63 47 80 13 00 00 00 00 00 00 26 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 62 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 62 00 63 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [08:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:23]wFMCommunicate OK [08:27:23]SAM_PROTO_GetFieldsCounters done [08:27:23]requested_item shift.num is exist - process it [08:27:23]requested_item shift.opened is exist - process it [08:27:23]req_shift_opened [08:27:23]FM_GetShiftState [08:27:23]SAM_PROTO_GetShiftState [08:27:23]wFMCommunicate request_size=4 [08:27:23]MH_SAM_APDU [08:27:23]CAPDU: 80 13 01 00 [08:27:23]Write to MH i2c: E2 08 00 64 47 80 13 01 00 00 00 00 00 28 [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 64 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 69 [08:27:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:27:23]wFMCommunicate OK [08:27:23]SAM_PROTO_GetShiftState done [08:27:23]FM_GetShiftState done [08:27:23]req_shift_opened done [08:27:23]requested_item shift.open_date is exist - process it [08:27:23]req_shift_open_date [08:27:23]req_shift_open_date done [08:27:23]produce_requested_data done [08:27:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191997,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:27:23]process_action_free close_receipt [08:27:23]json_value_free [08:27:23]json_value_free done [08:27:23]process_json_proto returns [08:27:23]Send response to host [08:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191997,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:27:23]free response buf [08:27:23]execute_script done [08:27:23]execute_script returns [08:27:23]free content buf [08:27:23]Sock 5.Close socket [08:27:23]Sock 5.Thread stoped [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:34]accept exits with 6 [08:30:34]New connection [08:30:34]New thread 3066817892 created [08:30:34]Thread 3066961252 joined [08:30:34]Waiting for new connection... [08:30:34] Sock 6.Parse request [08:30:34]Sock 6.Check first char [08:30:34]Sock 6.First char is OK [08:30:34]request: POST /json_proto HTTP/1.0 [08:30:34]Method: POST [08:30:34]URL: /json_proto [08:30:34]Method is POST - this is cgi request [08:30:34]url: /json_proto [08:30:34]query_string will be loaded in cgi processing [08:30:34]execute_cgi json_proto POST (null) [08:30:34]execute_cgi path=json_proto method=POST [08:30:34]POST find Content-Length [08:30:34]Host: 172.17.63.131:8080 [08:30:34]Content-Length: 676 [08:30:34]Content-Type: application/json [08:30:34] [08:30:34]POST finish read [08:30:34]Found Content-Length = 676 [08:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:34]execute_script... [08:30: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)31308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:34]POST & json_proto [08:30:34]process_json_proto [08:30:34]json parsed OK: [08:30:34]protocol is kg_v1.0 [08:30:34]action value=close_receipt [08:30:34]process_action close_receipt [08:30:34]cmd_close_receipt [08:30:34]MH_GetDate [08:30:34]Write to MH i2c: F0 00 00 65 47 9B [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 09 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 09 00 65 47 00 3D FA 1D 67 22 05 6E 64 58 [08:30:34]GetLastDocTimeStamp 1730017657 [08:30:34]current date 1730017853 [08:30:34]FM_GetShiftState [08:30:34]SAM_PROTO_GetShiftState [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 13 01 00 [08:30:34]Write to MH i2c: E2 08 00 66 47 80 13 01 00 00 00 00 00 2A [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 0E 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 0E 00 66 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [08:30:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:30:34]wFMCommunicate OK [08:30:34]SAM_PROTO_GetShiftState done [08:30:34]FM_GetShiftState done [08:30:34]opened in 1729989159 [08:30:34]opened+sec_in_day 1730075559 [08:30:34]quantity*price = 20003 [08:30:34]sum+1 = 20004 [08:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 30 27.10.2024 08:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191998 ФПД: 257037409801403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191998&fm=257037409801403&tin=02508201610067®Number=0000000000091776&sum=20000 [08:30:35]StoreToDocumentArchive [08:30:35]shift 542 fd 191998 [08:30:35]save to /storage/0542/doc_00191998 [08:30:35]save last doc name /storage/0542/doc_00191998 to /storage/kkm_last_doc_name [08:30:35]save OK [08:30:35]Clear old archive folders... [08:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:35]tlvbuf is 017E25A0 [08:30:35]SAM_PROTO_ClearQueue [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 09 00 00 [08:30:35]Write to MH i2c: E2 08 00 73 47 80 09 00 00 00 00 00 00 2C [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 73 47 00 90 00 2E [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_ClearQueue done [08:30:35]KKMCreateOFDPacket [08:30:35]OFDProtocolAddRootSTLVToBuf [08:30:35]FM_MakeSignedData [08:30:35]FM_MakeSignedData [08:30:35]SAM_PROTO_SignData [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 01 02 [08:30:35]Write to MH i2c: E2 08 00 74 47 80 0D 01 02 00 00 00 00 34 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 74 47 00 90 00 2F [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=255 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE ED 02 00 35 04 06 00 E9 [08:30:35]Write to MH i2c: E2 02 01 75 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE ED 02 00 35 04 06 00 E9 00 00 59 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 75 47 00 90 00 30 [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=10 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 02 02 05 C6 2F 81 54 BB [08:30:35]Write to MH i2c: E2 0D 00 76 47 80 0D 02 02 05 00 C6 2F 81 54 BB 00 00 C6 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:36]Read from MH i2c: E2 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 03 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [08:30:36]RAPDU: 90 00 [08:30:36]wFMCommunicate OK [08:30:36]wFMCommunicate request_size=4 [08:30:36]MH_SAM_APDU [08:30:36]CAPDU: 80 0D 03 02 [08:30:36]Write to MH i2c: E2 08 00 77 47 80 0D 03 02 00 00 00 00 39 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:36]Read from MH i2c: E2 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 0B 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 0B 00 77 47 00 FB F4 33 DA 86 AF 9F 7D 90 00 87 [08:30:36]RAPDU: FB F4 33 DA 86 AF 9F 7D 90 00 [08:30:36]wFMCommunicate OK [08:30:36]SAM_PROTO_SignData done [08:30:36]FM_MakeSignedData done [08:30:36]CreateOFDProtocolMessage [08:30:36]wFMCommunicate request_size=4 [08:30:36]MH_SAM_APDU [08:30:36]CAPDU: 80 11 00 00 [08:30:36]Write to MH i2c: E2 08 00 78 47 80 11 00 00 00 00 00 00 39 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:36]Read from MH i2c: E2 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 17 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: E2 17 00 78 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [08:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:36]wFMCommunicate OK [08:30:36]CreateOFDProtocolMessage done [08:30:36]OFDSenderStorePacket 191998 [08:30:36]StoreOFDPacket docnum=191998 [08:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 F1 07 01 1A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE ED 02 00 35 04 06 00 E9 C6 2F 81 54 BB FB F4 33 DA 86 AF 9F 7D [08:30:36]CheckFolder [08:30:36]dirname=/storage/ofd_packets [08:30:36]CheckFolder done [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00191998 [08:30:36]NVStorageSaveData ofd_packets/00191998 [08:30:36]File name is /storage/ofd_packets/00191998 [08:30:36]Write 301 bytes [08:30:36]NVStorageSaveData done [08:30:36]OFDSenderStorePacket done [08:30:36]KKMCreateOFDPacket done [08:30:36]NVStorageSaveData kkm_last_timestamp [08:30:36]File name is /storage/kkm_last_timestamp [08:30:36]Write 4 bytes [08:30:36]NVStorageSaveData done [08:30:36]ExternCall_PrintAddStr [08:30:36]wPrintStart [08:30:36]Write to MH i2c: 01 00 00 79 47 C0 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 79 47 00 00 00 00 00 FF 0F D5 [08:30:36]RasterBufferAndPrint [08:30:36]line Счет N : (1)31308 [08:30:36]line ИНН: 02508201610067 [08:30:36]line Контрольно-Кассовый Чек [08:30:36]line ПРОДАЖА [08:30:36]line ТРК (МРК, ГНК) : 21 [08:30:36]line Товар: 2710124130 [08:30:36]line Аи-92-К-5 [08:30:36]line 2.990 * 66.90 [08:30:36]line = 200.03 [08:30:36]line НДС 12% НСП 1% [08:30:36]line > о реализуемом товаре [08:30:36]line ОКРУГЛЕНИЕ: -0.03 [08:30:36]line ИТОГО: 200.00 [08:30:36]line Внесено: 200.00 [08:30:36]line СДАЧА: 0.00 [08:30:36]line НСП 1% : 1.77 [08:30:36]line НДС 12% : 21.24 [08:30:36]line Наличными: 200.00 [08:30:36]line Безнал.: 0.00 [08:30:36]line Место: АЗС № 170 "Партнер Нефть" [08:30:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:30:36]line СНО: Общий режим [08:30:36]line Чек 30 27.10.2024 08:30 [08:30:36]line Смена: 542 ФФД: 1.0 [08:30:36]line ЗНМ: 0300000110 [08:30:36]line РНМ: 0000000000091776 [08:30:36]line Версия ККМ: 001 [08:30:36]line ФМ: 0000000000871754 [08:30:36]line ФД: 191998 [08:30:36]line ФПД: 257037409801403 [08:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191998&fm=257037409801403&tin=02508201610067®Number=0000000000091776&sum=20000 [08:30:36]OFD Sender: Processing packet 191998 [packets to send 75, broken 74] [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00191998 [08:30:36]OFD Sender: To server: pG, [08:30:36]CommunicateWithHost lk.salyk.kg:30040 [08:30:36]ConnectInit lk.salyk.kg [08:30:36]written 0, free lines is 4095 [08:30:36]Connected sock=8 [08:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 F1 07 01 1A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3D FA 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE ED 02 00 35 04 06 00 E9 C6 2F 81 54 BB FB F4 33 DA 86 AF 9F 7D [08:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 1F 47 00 A3 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE ED 02 00 F4 03 04 00 05 9F 1D 67 B6 04 01 00 00 6C D6 56 39 21 5B 70 E5 [08:30:36]CommunicateWithHost err = 0 [08:30:36]CheckOFDResponse [08:30:36]1017 (14) - 77093643461234 [08:30:36]1041 (16) - 0000000000871754 [08:30:36]1040 (4) - 191998 [08:30:36]1012 (4) - 27.10.2024 02:01 [08:30:36]1206 (1) - 0 [08:30:36]OFD Sender: Remove packet 191998 [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00191998 [08:30:36]NVStorageDeleteData [08:30:36]Write to MH i2c: 01 00 00 A4 47 EB [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 A4 47 00 00 00 00 00 AA 0C A8 [08:30:36]RasterBufferAndPrint [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]written 0, free lines is 3248 [08:30:36]MH_Cut [08:30:36]Write to MH i2c: D1 01 00 AB 47 01 C4 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 AB 47 00 C3 [08:30:36]Write to MH i2c: 01 00 00 AC 47 F3 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:37]OFD Sender: No OFD packet to send [08:30:37]*** Cut start [08:30:37]*** Partial cut [08:30:37]*** CUTSNS_PIN = 1 [08:30:37]*** CUTSNS_PIN = 0 [08:30:38]*** Brake cut motor [08:30:38]Read from MH i2c: 01 [08:30:38]MH_I2C_Read... [08:30:38]*** Stop cut motor [08:30:38]*** Cut end [08:30:38]Read from MH i2c: 01 07 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: 01 07 00 AC 47 00 00 00 00 00 FF 0F 08 [08:30:38]process_action close_receipt done [08:30:38]requested_data is exist [08:30:38]produce_requested_data [08:30:38]requested_item fm.sn is exist - process it [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 11 00 00 [08:30:38]Write to MH i2c: E2 08 00 AD 47 80 11 00 00 00 00 00 00 6E [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 17 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 17 00 AD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [08:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:30:38]wFMCommunicate OK [08:30:38]requested_item fd.num is exist - process it [08:30:38]SAM_PROTO_GetFieldsCounters [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 13 00 00 [08:30:38]Write to MH i2c: E2 08 00 AE 47 80 13 00 00 00 00 00 00 71 [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 AE 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [08:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetFieldsCounters done [08:30:38]requested_item shift.num is exist - process it [08:30:38]requested_item shift.opened is exist - process it [08:30:38]req_shift_opened [08:30:38]FM_GetShiftState [08:30:38]SAM_PROTO_GetShiftState [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 13 01 00 [08:30:38]Write to MH i2c: E2 08 00 AF 47 80 13 01 00 00 00 00 00 73 [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 AF 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B4 [08:30:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetShiftState done [08:30:38]FM_GetShiftState done [08:30:38]req_shift_opened done [08:30:38]requested_item shift.open_date is exist - process it [08:30:38]req_shift_open_date [08:30:38]req_shift_open_date done [08:30:38]produce_requested_data done [08:30:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191998,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:30:38]process_action_free close_receipt [08:30:38]json_value_free [08:30:38]json_value_free done [08:30:38]process_json_proto returns [08:30:38]Send response to host [08:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191998,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:30:38]free response buf [08:30:38]execute_script done [08:30:38]execute_script returns [08:30:38]free content buf [08:30:38]Sock 6.Close socket [08:30:38]Sock 6.Thread stoped [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:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:42]accept exits with 5 [08:45:42]New connection [08:45:42]New thread 3066961252 created [08:45:42]Thread 3066817892 joined [08:45:42]Waiting for new connection... [08:45:42] Sock 5.Parse request [08:45:42]Sock 5.Check first char [08:45:42]Sock 5.First char is OK [08:45:42]request: POST /json_proto HTTP/1.0 [08:45:42]Method: POST [08:45:42]URL: /json_proto [08:45:42]Method is POST - this is cgi request [08:45:42]url: /json_proto [08:45:42]query_string will be loaded in cgi processing [08:45:42]execute_cgi json_proto POST (null) [08:45:42]execute_cgi path=json_proto method=POST [08:45:42]POST find Content-Length [08:45:42]Host: 172.17.63.131:8080 [08:45:42]Content-Length: 676 [08:45:42]Content-Type: application/json [08:45:42] [08:45:42]POST finish read [08:45:42]Found Content-Length = 676 [08:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:42]execute_script... [08:45: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)31309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:42]POST & json_proto [08:45:42]process_json_proto [08:45:42]json parsed OK: [08:45:42]protocol is kg_v1.0 [08:45:42]action value=close_receipt [08:45:42]process_action close_receipt [08:45:42]cmd_close_receipt [08:45:42]MH_GetDate [08:45:42]Write to MH i2c: F0 00 00 B0 47 E6 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 09 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: F0 09 00 B0 47 00 C9 FD 1D 67 22 05 6E 64 32 [08:45:42]GetLastDocTimeStamp 1730017853 [08:45:42]current date 1730018761 [08:45:42]FM_GetShiftState [08:45:42]SAM_PROTO_GetShiftState [08:45:42]wFMCommunicate request_size=4 [08:45:42]MH_SAM_APDU [08:45:42]CAPDU: 80 13 01 00 [08:45:42]Write to MH i2c: E2 08 00 B1 47 80 13 01 00 00 00 00 00 75 [08:45:42]Write i2c OK [08:45:42]MH_I2C_Read... [08:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:42]Read from MH i2c: E2 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: E2 0E 00 [08:45:42]MH_I2C_Read... [08:45:42]Read from MH i2c: E2 0E 00 B1 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B6 [08:45:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:45:42]wFMCommunicate OK [08:45:42]SAM_PROTO_GetShiftState done [08:45:42]FM_GetShiftState done [08:45:42]opened in 1729989159 [08:45:42]opened+sec_in_day 1730075559 [08:45:42]quantity*price = 10035 [08:45:42]sum+1 = 10036 [08:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 31 27.10.2024 08:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191999 ФПД: 87776175167814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191999&fm=87776175167814&tin=02508201610067®Number=0000000000091776&sum=10000 [08:45:43]StoreToDocumentArchive [08:45:43]shift 542 fd 191999 [08:45:43]save to /storage/0542/doc_00191999 [08:45:43]save last doc name /storage/0542/doc_00191999 to /storage/kkm_last_doc_name [08:45:43]save OK [08:45:43]Clear old archive folders... [08:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:43]tlvbuf is 01AA49F0 [08:45:43]SAM_PROTO_ClearQueue [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 09 00 00 [08:45:43]Write to MH i2c: E2 08 00 BE 47 80 09 00 00 00 00 00 00 77 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 BE 47 00 90 00 79 [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]SAM_PROTO_ClearQueue done [08:45:43]KKMCreateOFDPacket [08:45:43]OFDProtocolAddRootSTLVToBuf [08:45:43]FM_MakeSignedData [08:45:43]FM_MakeSignedData [08:45:43]SAM_PROTO_SignData [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 01 02 [08:45:43]Write to MH i2c: E2 08 00 BF 47 80 0D 01 02 00 00 00 00 7F [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 BF 47 00 90 00 7A [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=255 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF ED 02 00 35 04 06 00 4F [08:45:43]Write to MH i2c: E2 02 01 C0 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF ED 02 00 35 04 06 00 4F 00 00 C0 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 03 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 03 00 C0 47 00 90 00 7B [08:45:44]RAPDU: 90 00 [08:45:44]wFMCommunicate OK [08:45:44]wFMCommunicate request_size=10 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 0D 02 02 05 D4 FB BD 99 46 [08:45:44]Write to MH i2c: E2 0D 00 C1 47 80 0D 02 02 05 00 D4 FB BD 99 46 00 00 F7 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 03 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 03 00 C1 47 00 90 00 7C [08:45:44]RAPDU: 90 00 [08:45:44]wFMCommunicate OK [08:45:44]wFMCommunicate request_size=4 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 0D 03 02 [08:45:44]Write to MH i2c: E2 08 00 C2 47 80 0D 03 02 00 00 00 00 84 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 0B 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 0B 00 C2 47 00 C8 C0 C4 4F FD F5 36 FF 90 00 47 [08:45:44]RAPDU: C8 C0 C4 4F FD F5 36 FF 90 00 [08:45:44]wFMCommunicate OK [08:45:44]SAM_PROTO_SignData done [08:45:44]FM_MakeSignedData done [08:45:44]CreateOFDProtocolMessage [08:45:44]wFMCommunicate request_size=4 [08:45:44]MH_SAM_APDU [08:45:44]CAPDU: 80 11 00 00 [08:45:44]Write to MH i2c: E2 08 00 C3 47 80 11 00 00 00 00 00 00 84 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:44]Read from MH i2c: E2 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 17 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: E2 17 00 C3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [08:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:45:44]wFMCommunicate OK [08:45:44]CreateOFDProtocolMessage done [08:45:44]OFDSenderStorePacket 191999 [08:45:44]StoreOFDPacket docnum=191999 [08:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 10 07 01 EC EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF ED 02 00 35 04 06 00 4F D4 FB BD 99 46 C8 C0 C4 4F FD F5 36 FF [08:45:44]CheckFolder [08:45:44]dirname=/storage/ofd_packets [08:45:44]CheckFolder done [08:45:44]ProducePacketName [08:45:44]name=ofd_packets/00191999 [08:45:44]NVStorageSaveData ofd_packets/00191999 [08:45:44]File name is /storage/ofd_packets/00191999 [08:45:44]Write 301 bytes [08:45:44]NVStorageSaveData done [08:45:44]OFDSenderStorePacket done [08:45:44]KKMCreateOFDPacket done [08:45:44]NVStorageSaveData kkm_last_timestamp [08:45:44]File name is /storage/kkm_last_timestamp [08:45:44]Write 4 bytes [08:45:44]NVStorageSaveData done [08:45:44]ExternCall_PrintAddStr [08:45:44]wPrintStart [08:45:44]Write to MH i2c: 01 00 00 C4 47 0B [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 C4 47 00 00 00 00 00 FF 0F 20 [08:45:44]RasterBufferAndPrint [08:45:44]line Счет N : (1)31309 [08:45:44]line ИНН: 02508201610067 [08:45:44]line Контрольно-Кассовый Чек [08:45:44]line ПРОДАЖА [08:45:44]line ТРК (МРК, ГНК) : 21 [08:45:44]line Товар: 2710124130 [08:45:44]line Аи-92-К-5 [08:45:44]line 1.500 * 66.90 [08:45:44]line = 100.35 [08:45:44]line НДС 12% НСП 1% [08:45:44]line > о реализуемом товаре [08:45:44]line ОКРУГЛЕНИЕ: -0.35 [08:45:44]line ИТОГО: 100.00 [08:45:44]line Внесено: 100.00 [08:45:44]line СДАЧА: 0.00 [08:45:44]line НСП 1% : 0.89 [08:45:44]line НДС 12% : 10.66 [08:45:44]line Наличными: 100.00 [08:45:44]line Безнал.: 0.00 [08:45:44]line Место: АЗС № 170 "Партнер Нефть" [08:45:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:45:44]line СНО: Общий режим [08:45:44]line Чек 31 27.10.2024 08:46 [08:45:44]line Смена: 542 ФФД: 1.0 [08:45:44]line ЗНМ: 0300000110 [08:45:44]line РНМ: 0000000000091776 [08:45:44]line Версия ККМ: 001 [08:45:44]line ФМ: 0000000000871754 [08:45:44]line ФД: 191999 [08:45:44]line ФПД: 87776175167814 [08:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191999&fm=87776175167814&tin=02508201610067®Number=0000000000091776&sum=10000 [08:45:44]OFD Sender: Processing packet 191999 [packets to send 75, broken 74] [08:45:44]ProducePacketName [08:45:44]name=ofd_packets/00191999 [08:45:44]OFD Sender: To server: pG, [08:45:44]CommunicateWithHost lk.salyk.kg:30040 [08:45:44]ConnectInit lk.salyk.kg [08:45:44]written 0, free lines is 4095 [08:45:44]Connected sock=9 [08:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 10 07 01 EC EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 FD 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF ED 02 00 35 04 06 00 4F D4 FB BD 99 46 C8 C0 C4 4F FD F5 36 FF [08:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C FD 47 00 FD C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF ED 02 00 F4 03 04 00 92 A2 1D 67 B6 04 01 00 00 D9 01 AD A1 69 CD 14 9A [08:45:45]CommunicateWithHost err = 0 [08:45:45]CheckOFDResponse [08:45:45]1017 (14) - 77093643461234 [08:45:45]1041 (16) - 0000000000871754 [08:45:45]1040 (4) - 191999 [08:45:45]1012 (4) - 27.10.2024 02:16 [08:45:45]1206 (1) - 0 [08:45:45]OFD Sender: Remove packet 191999 [08:45:45]ProducePacketName [08:45:45]name=ofd_packets/00191999 [08:45:45]NVStorageDeleteData [08:45:45]Write to MH i2c: 01 00 00 EF 47 36 [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: 01 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: 01 07 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: 01 07 00 EF 47 00 00 00 00 00 AD 0C F6 [08:45:45]RasterBufferAndPrint [08:45:45]line [08:45:45]line [08:45:45]line [08:45:45]line [08:45:45]line [08:45:45]written 0, free lines is 3251 [08:45:45]MH_Cut [08:45:45]Write to MH i2c: D1 01 00 F6 47 01 0F [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: D1 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: D1 01 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: D1 01 00 F6 47 00 0E [08:45:45]Write to MH i2c: 01 00 00 F7 47 3E [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]OFD Sender: No OFD packet to send [08:45:46]*** Cut start [08:45:46]*** Partial cut [08:45:46]*** CUTSNS_PIN = 1 [08:45:46]*** CUTSNS_PIN = 0 [08:45:46]*** Brake cut motor [08:45:46]Read from MH i2c: 01 [08:45:46]MH_I2C_Read... [08:45:46]*** Stop cut motor [08:45:46]*** Cut end [08:45:46]Read from MH i2c: 01 07 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: 01 07 00 F7 47 00 00 00 00 00 FF 0F 53 [08:45:46]process_action close_receipt done [08:45:46]requested_data is exist [08:45:46]produce_requested_data [08:45:46]requested_item fm.sn is exist - process it [08:45:46]wFMCommunicate request_size=4 [08:45:46]MH_SAM_APDU [08:45:46]CAPDU: 80 11 00 00 [08:45:46]Write to MH i2c: E2 08 00 F8 47 80 11 00 00 00 00 00 00 B9 [08:45:46]Write i2c OK [08:45:46]MH_I2C_Read... [08:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:46]Read from MH i2c: E2 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 17 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 17 00 F8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [08:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:45:46]wFMCommunicate OK [08:45:46]requested_item fd.num is exist - process it [08:45:46]SAM_PROTO_GetFieldsCounters [08:45:46]wFMCommunicate request_size=4 [08:45:46]MH_SAM_APDU [08:45:46]CAPDU: 80 13 00 00 [08:45:46]Write to MH i2c: E2 08 00 F9 47 80 13 00 00 00 00 00 00 BC [08:45:46]Write i2c OK [08:45:46]MH_I2C_Read... [08:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:46]Read from MH i2c: E2 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 62 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 62 00 F9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [08:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:46]wFMCommunicate OK [08:45:46]SAM_PROTO_GetFieldsCounters done [08:45:46]requested_item shift.num is exist - process it [08:45:46]requested_item shift.opened is exist - process it [08:45:46]req_shift_opened [08:45:46]FM_GetShiftState [08:45:46]SAM_PROTO_GetShiftState [08:45:46]wFMCommunicate request_size=4 [08:45:46]MH_SAM_APDU [08:45:46]CAPDU: 80 13 01 00 [08:45:46]Write to MH i2c: E2 08 00 FA 47 80 13 01 00 00 00 00 00 BE [08:45:46]Write i2c OK [08:45:46]MH_I2C_Read... [08:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:46]Read from MH i2c: E2 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 0E 00 [08:45:46]MH_I2C_Read... [08:45:46]Read from MH i2c: E2 0E 00 FA 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FF [08:45:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:45:46]wFMCommunicate OK [08:45:46]SAM_PROTO_GetShiftState done [08:45:46]FM_GetShiftState done [08:45:46]req_shift_opened done [08:45:46]requested_item shift.open_date is exist - process it [08:45:46]req_shift_open_date [08:45:46]req_shift_open_date done [08:45:46]produce_requested_data done [08:45:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191999,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:45:46]process_action_free close_receipt [08:45:46]json_value_free [08:45:46]json_value_free done [08:45:46]process_json_proto returns [08:45:46]Send response to host [08:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191999,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:45:46]free response buf [08:45:46]execute_script done [08:45:46]execute_script returns [08:45:46]free content buf [08:45:46]Sock 5.Close socket [08:45:46]Sock 5.Thread stoped [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:13]ConnectInit Can't connect to host [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:42]accept exits with 8 [08:46:42]New connection [08:46:42]New thread 3066817892 created [08:46:42]Thread 3066961252 joined [08:46:42]Waiting for new connection... [08:46:42] Sock 8.Parse request [08:46:42]Sock 8.Check first char [08:46:42]Sock 8.First char is OK [08:46:42]request: POST /json_proto HTTP/1.0 [08:46:42]Method: POST [08:46:42]URL: /json_proto [08:46:42]Method is POST - this is cgi request [08:46:42]url: /json_proto [08:46:42]query_string will be loaded in cgi processing [08:46:42]execute_cgi json_proto POST (null) [08:46:42]execute_cgi path=json_proto method=POST [08:46:42]POST find Content-Length [08:46:42]Host: 172.17.63.131:8080 [08:46:42]Content-Length: 676 [08:46:42]Content-Type: application/json [08:46:42] [08:46:42]POST finish read [08:46:42]Found Content-Length = 676 [08:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:42]execute_script... [08:46: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)31310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:42]POST & json_proto [08:46:42]process_json_proto [08:46:42]json parsed OK: [08:46:42]protocol is kg_v1.0 [08:46:42]action value=close_receipt [08:46:42]process_action close_receipt [08:46:42]cmd_close_receipt [08:46:42]MH_GetDate [08:46:42]Write to MH i2c: F0 00 00 FB 47 31 [08:46:42]Write i2c OK [08:46:42]MH_I2C_Read... [08:46:42]Read from MH i2c: F0 [08:46:42]MH_I2C_Read... [08:46:42]Read from MH i2c: F0 09 00 [08:46:42]MH_I2C_Read... [08:46:42]Read from MH i2c: F0 09 00 FB 47 00 06 FE 1D 67 22 05 6E 64 BB [08:46:42]GetLastDocTimeStamp 1730018761 [08:46:42]current date 1730018822 [08:46:42]FM_GetShiftState [08:46:42]SAM_PROTO_GetShiftState [08:46:42]wFMCommunicate request_size=4 [08:46:42]MH_SAM_APDU [08:46:42]CAPDU: 80 13 01 00 [08:46:42]Write to MH i2c: E2 08 00 FC 47 80 13 01 00 00 00 00 00 C0 [08:46:42]Write i2c OK [08:46:42]MH_I2C_Read... [08:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:42]Read from MH i2c: E2 [08:46:42]MH_I2C_Read... [08:46:42]Read from MH i2c: E2 0E 00 [08:46:42]MH_I2C_Read... [08:46:42]Read from MH i2c: E2 0E 00 FC 47 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 01 [08:46:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:46:42]wFMCommunicate OK [08:46:42]SAM_PROTO_GetShiftState done [08:46:42]FM_GetShiftState done [08:46:42]opened in 1729989159 [08:46:42]opened+sec_in_day 1730075559 [08:46:42]quantity*price = 20003 [08:46:42]sum+1 = 20004 [08:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 32 27.10.2024 08:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192000 ФПД: 49705482867708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084702&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192000&fm=49705482867708&tin=02508201610067®Number=0000000000091776&sum=20000 [08:46:44]StoreToDocumentArchive [08:46:44]shift 542 fd 192000 [08:46:44]save to /storage/0542/doc_00192000 [08:46:44]save last doc name /storage/0542/doc_00192000 to /storage/kkm_last_doc_name [08:46:44]save OK [08:46:44]Clear old archive folders... [08:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:44]tlvbuf is 01A9AF90 [08:46:44]SAM_PROTO_ClearQueue [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 09 00 00 [08:46:44]Write to MH i2c: E2 08 00 09 48 80 09 00 00 00 00 00 00 C3 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 09 48 00 90 00 C5 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_ClearQueue done [08:46:44]KKMCreateOFDPacket [08:46:44]OFDProtocolAddRootSTLVToBuf [08:46:44]FM_MakeSignedData [08:46:44]FM_MakeSignedData [08:46:44]SAM_PROTO_SignData [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 01 02 [08:46:44]Write to MH i2c: E2 08 00 0A 48 80 0D 01 02 00 00 00 00 CB [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 0A 48 00 90 00 C6 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=255 [08:46:44]MH_SAM_APDU [08:46: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EE 02 00 35 04 06 00 2D [08:46:44]Write to MH i2c: E2 02 01 0B 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EE 02 00 35 04 06 00 2D 00 00 06 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 0B 48 00 90 00 C7 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=10 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 02 02 05 34 F5 A6 53 FC [08:46:44]Write to MH i2c: E2 0D 00 0C 48 80 0D 02 02 05 00 34 F5 A6 53 FC 00 00 F6 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 0C 48 00 90 00 C8 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 03 02 [08:46:44]Write to MH i2c: E2 08 00 0D 48 80 0D 03 02 00 00 00 00 D0 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0B 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0B 00 0D 48 00 52 60 E6 08 E2 04 15 8C 90 00 F8 [08:46:44]RAPDU: 52 60 E6 08 E2 04 15 8C 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_SignData done [08:46:44]FM_MakeSignedData done [08:46:44]CreateOFDProtocolMessage [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 11 00 00 [08:46:44]Write to MH i2c: E2 08 00 0E 48 80 11 00 00 00 00 00 00 D0 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 0E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [08:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:46:44]wFMCommunicate OK [08:46:44]CreateOFDProtocolMessage done [08:46:44]OFDSenderStorePacket 192000 [08:46:44]StoreOFDPacket docnum=192000 [08:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 9F 07 01 22 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EE 02 00 35 04 06 00 2D 34 F5 A6 53 FC 52 60 E6 08 E2 04 15 8C [08:46:44]CheckFolder [08:46:44]dirname=/storage/ofd_packets [08:46:44]CheckFolder done [08:46:44]ProducePacketName [08:46:44]name=ofd_packets/00192000 [08:46:44]NVStorageSaveData ofd_packets/00192000 [08:46:44]File name is /storage/ofd_packets/00192000 [08:46:44]Write 301 bytes [08:46:44]NVStorageSaveData done [08:46:44]OFDSenderStorePacket done [08:46:44]KKMCreateOFDPacket done [08:46:44]NVStorageSaveData kkm_last_timestamp [08:46:44]File name is /storage/kkm_last_timestamp [08:46:44]Write 4 bytes [08:46:44]NVStorageSaveData done [08:46:44]ExternCall_PrintAddStr [08:46:44]wPrintStart [08:46:44]Write to MH i2c: 01 00 00 0F 48 57 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 0F 48 00 00 00 00 00 FF 0F 6C [08:46:44]RasterBufferAndPrint [08:46:44]line Счет N : (1)31310 [08:46:44]line ИНН: 02508201610067 [08:46:44]line Контрольно-Кассовый Чек [08:46:44]line ПРОДАЖА [08:46:44]line ТРК (МРК, ГНК) : 12 [08:46:44]line Товар: 2710124130 [08:46:44]line Аи-92-К-5 [08:46:44]line 2.990 * 66.90 [08:46:44]line = 200.03 [08:46:44]line НДС 12% НСП 1% [08:46:44]line > о реализуемом товаре [08:46:44]line ОКРУГЛЕНИЕ: -0.03 [08:46:44]line ИТОГО: 200.00 [08:46:44]line Внесено: 200.00 [08:46:44]line СДАЧА: 0.00 [08:46:44]line НСП 1% : 1.77 [08:46:44]line НДС 12% : 21.24 [08:46:44]line Наличными: 200.00 [08:46:44]line Безнал.: 0.00 [08:46:44]line Место: АЗС № 170 "Партнер Нефть" [08:46:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:46:44]line СНО: Общий режим [08:46:44]line Чек 32 27.10.2024 08:47 [08:46:44]line Смена: 542 ФФД: 1.0 [08:46:44]line ЗНМ: 0300000110 [08:46:44]line РНМ: 0000000000091776 [08:46:44]line Версия ККМ: 001 [08:46:44]line ФМ: 0000000000871754 [08:46:44]line ФД: 192000 [08:46:44]line ФПД: 49705482867708 [08:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084702&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192000&fm=49705482867708&tin=02508201610067®Number=0000000000091776&sum=20000 [08:46:44]written 0, free lines is 4095 [08:46:44]OFD Sender: Processing packet 192000 [packets to send 75, broken 74] [08:46:44]ProducePacketName [08:46:44]name=ofd_packets/00192000 [08:46:44]OFD Sender: To server: pG, [08:46:44]CommunicateWithHost lk.salyk.kg:30040 [08:46:44]ConnectInit lk.salyk.kg [08:46:44]Connected sock=9 [08: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 37 35 34 0F 01 00 00 E3 9F 07 01 22 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EE 02 00 35 04 06 00 2D 34 F5 A6 53 FC 52 60 E6 08 E2 04 15 8C [08:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3D 9F 47 00 44 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EE 02 00 F4 03 04 00 CE A2 1D 67 B6 04 01 00 00 1F 91 ED 7D 27 42 CE CD [08:46:45]CommunicateWithHost err = 0 [08:46:45]CheckOFDResponse [08:46:45]1017 (14) - 77093643461234 [08:46:45]1041 (16) - 0000000000871754 [08:46:45]1040 (4) - 192000 [08:46:45]1012 (4) - 27.10.2024 02:17 [08:46:45]1206 (1) - 0 [08:46:45]OFD Sender: Remove packet 192000 [08:46:45]ProducePacketName [08:46:45]name=ofd_packets/00192000 [08:46:45]NVStorageDeleteData [08:46:45]Write to MH i2c: 01 00 00 3A 48 82 [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 07 00 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 07 00 3A 48 00 00 00 00 00 BA 0C 4F [08:46:45]RasterBufferAndPrint [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]written 0, free lines is 3274 [08:46:45]MH_Cut [08:46:45]Write to MH i2c: D1 01 00 41 48 01 5B [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 01 00 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 01 00 41 48 00 5A [08:46:45]Write to MH i2c: 01 00 00 42 48 8A [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]OFD Sender: No OFD packet to send [08:46:46]*** Cut start [08:46:46]*** Partial cut [08:46:46]*** CUTSNS_PIN = 1 [08:46:46]*** CUTSNS_PIN = 0 [08:46:46]*** Brake cut motor [08:46:46]Read from MH i2c: 01 [08:46:46]MH_I2C_Read... [08:46:46]*** Stop cut motor [08:46:46]*** Cut end [08:46:46]Read from MH i2c: 01 07 00 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: 01 07 00 42 48 00 00 00 00 00 FF 0F 9F [08:46:46]process_action close_receipt done [08:46:46]requested_data is exist [08:46:46]produce_requested_data [08:46:46]requested_item fm.sn is exist - process it [08:46:46]wFMCommunicate request_size=4 [08:46:46]MH_SAM_APDU [08:46:46]CAPDU: 80 11 00 00 [08:46:46]Write to MH i2c: E2 08 00 43 48 80 11 00 00 00 00 00 00 05 [08:46:46]Write i2c OK [08:46:46]MH_I2C_Read... [08:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:46]Read from MH i2c: E2 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 17 00 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 17 00 43 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [08:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:46:46]wFMCommunicate OK [08:46:46]requested_item fd.num is exist - process it [08:46:46]SAM_PROTO_GetFieldsCounters [08:46:46]wFMCommunicate request_size=4 [08:46:46]MH_SAM_APDU [08:46:46]CAPDU: 80 13 00 00 [08:46:46]Write to MH i2c: E2 08 00 44 48 80 13 00 00 00 00 00 00 08 [08:46:46]Write i2c OK [08:46:46]MH_I2C_Read... [08:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:46]Read from MH i2c: E2 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 62 00 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 62 00 44 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [08:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:47]wFMCommunicate OK [08:46:47]SAM_PROTO_GetFieldsCounters done [08:46:47]requested_item shift.num is exist - process it [08:46:47]requested_item shift.opened is exist - process it [08:46:47]req_shift_opened [08:46:47]FM_GetShiftState [08:46:47]SAM_PROTO_GetShiftState [08:46:47]wFMCommunicate request_size=4 [08:46:47]MH_SAM_APDU [08:46:47]CAPDU: 80 13 01 00 [08:46:47]Write to MH i2c: E2 08 00 45 48 80 13 01 00 00 00 00 00 0A [08:46:47]Write i2c OK [08:46:47]MH_I2C_Read... [08:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:47]Read from MH i2c: E2 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 45 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4B [08:46:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:46:47]wFMCommunicate OK [08:46:47]SAM_PROTO_GetShiftState done [08:46:47]FM_GetShiftState done [08:46:47]req_shift_opened done [08:46:47]requested_item shift.open_date is exist - process it [08:46:47]req_shift_open_date [08:46:47]req_shift_open_date done [08:46:47]produce_requested_data done [08:46:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192000,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:46:47]process_action_free close_receipt [08:46:47]json_value_free [08:46:47]json_value_free done [08:46:47]process_json_proto returns [08:46:47]Send response to host [08:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192000,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:46:47]free response buf [08:46:47]execute_script done [08:46:47]execute_script returns [08:46:47]free content buf [08:46:47]Sock 8.Close socket [08:46:47]Sock 8.Thread stoped [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48: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:38]accept exits with 6 [08:49:38]New connection [08:49:38]New thread 3066961252 created [08:49:38]Thread 3066817892 joined [08:49:38]Waiting for new connection... [08:49:38] Sock 6.Parse request [08:49:38]Sock 6.Check first char [08:49:38]Sock 6.First char is OK [08:49:38]request: POST /json_proto HTTP/1.0 [08:49:38]Method: POST [08:49:38]URL: /json_proto [08:49:38]Method is POST - this is cgi request [08:49:38]url: /json_proto [08:49:38]query_string will be loaded in cgi processing [08:49:38]execute_cgi json_proto POST (null) [08:49:38]execute_cgi path=json_proto method=POST [08:49:38]POST find Content-Length [08:49:38]Host: 172.17.63.131:8080 [08:49:38]Content-Length: 676 [08:49:38]Content-Type: application/json [08:49:38] [08:49:38]POST finish read [08:49:38]Found Content-Length = 676 [08:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:38]execute_script... [08:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:38]POST & json_proto [08:49:38]process_json_proto [08:49:38]json parsed OK: [08:49:38]protocol is kg_v1.0 [08:49:38]action value=close_receipt [08:49:38]process_action close_receipt [08:49:38]cmd_close_receipt [08:49:38]MH_GetDate [08:49:38]Write to MH i2c: F0 00 00 46 48 7D [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 09 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: F0 09 00 46 48 00 B5 FE 1D 67 22 05 6E 64 B6 [08:49:38]GetLastDocTimeStamp 1730018822 [08:49:38]current date 1730018997 [08:49:38]FM_GetShiftState [08:49:38]SAM_PROTO_GetShiftState [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 01 00 [08:49:38]Write to MH i2c: E2 08 00 47 48 80 13 01 00 00 00 00 00 0C [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 47 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4D [08:49:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetShiftState done [08:49:38]FM_GetShiftState done [08:49:38]opened in 1729989159 [08:49:38]opened+sec_in_day 1730075559 [08:49:38]quantity*price = 40006 [08:49:38]sum+1 = 40007 [08:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 33 27.10.2024 08:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192001 ФПД: 100997057989492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192001&fm=100997057989492&tin=02508201610067®Number=0000000000091776&sum=40000 [08:49:39]StoreToDocumentArchive [08:49:39]shift 542 fd 192001 [08:49:39]save to /storage/0542/doc_00192001 [08:49:39]save last doc name /storage/0542/doc_00192001 to /storage/kkm_last_doc_name [08:49:39]save OK [08:49:39]Clear old archive folders... [08:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:39]tlvbuf is 01992720 [08:49:39]SAM_PROTO_ClearQueue [08:49:39]wFMCommunicate request_size=4 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 09 00 00 [08:49:39]Write to MH i2c: E2 08 00 54 48 80 09 00 00 00 00 00 00 0E [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 54 48 00 90 00 10 [08:49:39]RAPDU: 90 00 [08:49:39]wFMCommunicate OK [08:49:39]SAM_PROTO_ClearQueue done [08:49:39]KKMCreateOFDPacket [08:49:39]OFDProtocolAddRootSTLVToBuf [08:49:39]FM_MakeSignedData [08:49:39]FM_MakeSignedData [08:49:39]SAM_PROTO_SignData [08:49:39]wFMCommunicate request_size=4 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 0D 01 02 [08:49:39]Write to MH i2c: E2 08 00 55 48 80 0D 01 02 00 00 00 00 16 [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 55 48 00 90 00 11 [08:49:39]RAPDU: 90 00 [08:49:39]wFMCommunicate OK [08:49:39]wFMCommunicate request_size=255 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B5 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EE 02 00 35 04 06 00 5B [08:49:39]Write to MH i2c: E2 02 01 56 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B5 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EE 02 00 35 04 06 00 5B 00 00 3D [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 56 48 00 90 00 12 [08:49:39]RAPDU: 90 00 [08:49:39]wFMCommunicate OK [08:49:39]wFMCommunicate request_size=10 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 0D 02 02 05 DB 35 C3 CB 74 [08:49:39]Write to MH i2c: E2 0D 00 57 48 80 0D 02 02 05 00 DB 35 C3 CB 74 00 00 35 [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 03 00 57 48 00 90 00 13 [08:49:39]RAPDU: 90 00 [08:49:39]wFMCommunicate OK [08:49:39]wFMCommunicate request_size=4 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 0D 03 02 [08:49:39]Write to MH i2c: E2 08 00 58 48 80 0D 03 02 00 00 00 00 1B [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 0B 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 0B 00 58 48 00 7A 7B B3 9F 8E 1E 22 C4 90 00 F5 [08:49:39]RAPDU: 7A 7B B3 9F 8E 1E 22 C4 90 00 [08:49:39]wFMCommunicate OK [08:49:39]SAM_PROTO_SignData done [08:49:39]FM_MakeSignedData done [08:49:39]CreateOFDProtocolMessage [08:49:39]wFMCommunicate request_size=4 [08:49:39]MH_SAM_APDU [08:49:39]CAPDU: 80 11 00 00 [08:49:39]Write to MH i2c: E2 08 00 59 48 80 11 00 00 00 00 00 00 1B [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:39]Read from MH i2c: E2 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 17 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: E2 17 00 59 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [08:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:49:39]wFMCommunicate OK [08:49:39]CreateOFDProtocolMessage done [08:49:39]OFDSenderStorePacket 192001 [08:49:39]StoreOFDPacket docnum=192001 [08:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF B5 07 01 AA 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B5 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EE 02 00 35 04 06 00 5B DB 35 C3 CB 74 7A 7B B3 9F 8E 1E 22 C4 [08:49:39]CheckFolder [08:49:39]dirname=/storage/ofd_packets [08:49:39]CheckFolder done [08:49:39]ProducePacketName [08:49:39]name=ofd_packets/00192001 [08:49:39]NVStorageSaveData ofd_packets/00192001 [08:49:39]File name is /storage/ofd_packets/00192001 [08:49:39]Write 301 bytes [08:49:39]NVStorageSaveData done [08:49:39]OFDSenderStorePacket done [08:49:39]KKMCreateOFDPacket done [08:49:39]NVStorageSaveData kkm_last_timestamp [08:49:39]File name is /storage/kkm_last_timestamp [08:49:39]Write 4 bytes [08:49:39]NVStorageSaveData done [08:49:39]ExternCall_PrintAddStr [08:49:39]wPrintStart [08:49:39]Write to MH i2c: 01 00 00 5A 48 A2 [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 07 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 07 00 5A 48 00 00 00 00 00 FF 0F B7 [08:49:39]RasterBufferAndPrint [08:49:39]line Счет N : (1)31311 [08:49:39]line ИНН: 02508201610067 [08:49:39]line Контрольно-Кассовый Чек [08:49:39]line ПРОДАЖА [08:49:39]line ТРК (МРК, ГНК) : 12 [08:49:39]line Товар: 2710124130 [08:49:39]line Аи-92-К-5 [08:49:39]line 5.980 * 66.90 [08:49:39]line = 400.06 [08:49:39]line НДС 12% НСП 1% [08:49:39]line > о реализуемом товаре [08:49:39]line ОКРУГЛЕНИЕ: -0.06 [08:49:39]line ИТОГО: 400.00 [08:49:39]line Внесено: 400.00 [08:49:39]line СДАЧА: 0.00 [08:49:39]line НСП 1% : 3.54 [08:49:39]line НДС 12% : 42.48 [08:49:39]line Наличными: 400.00 [08:49:39]line Безнал.: 0.00 [08:49:39]line Место: АЗС № 170 "Партнер Нефть" [08:49:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:49:39]line СНО: Общий режим [08:49:39]line Чек 33 27.10.2024 08:49 [08:49:39]line Смена: 542 ФФД: 1.0 [08:49:39]line ЗНМ: 0300000110 [08:49:39]line РНМ: 0000000000091776 [08:49:39]line Версия ККМ: 001 [08:49:39]line ФМ: 0000000000871754 [08:49:39]line ФД: 192001 [08:49:39]line ФПД: 100997057989492 [08:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192001&fm=100997057989492&tin=02508201610067®Number=0000000000091776&sum=40000 [08:49:40]OFD Sender: Processing packet 192001 [packets to send 75, broken 74] [08:49:40]ProducePacketName [08:49:40]name=ofd_packets/00192001 [08:49:40]OFD Sender: To server: pG, [08:49:40]CommunicateWithHost lk.salyk.kg:30040 [08:49:40]ConnectInit lk.salyk.kg [08:49:40]written 0, free lines is 4095 [08:49:40]Connected sock=8 [08:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF B5 07 01 AA 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B5 FE 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EE 02 00 35 04 06 00 5B DB 35 C3 CB 74 7A 7B B3 9F 8E 1E 22 C4 [08:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 1B 47 00 7B EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EE 02 00 F4 03 04 00 7D A3 1D 67 B6 04 01 00 00 AB D1 59 76 37 31 95 16 [08:49:40]CommunicateWithHost err = 0 [08:49:40]CheckOFDResponse [08:49:40]1017 (14) - 77093643461234 [08:49:40]1041 (16) - 0000000000871754 [08:49:40]1040 (4) - 192001 [08:49:40]1012 (4) - 27.10.2024 02:20 [08:49:40]1206 (1) - 0 [08:49:40]OFD Sender: Remove packet 192001 [08:49:40]ProducePacketName [08:49:40]name=ofd_packets/00192001 [08:49:40]NVStorageDeleteData [08:49:40]Write to MH i2c: 01 00 00 85 48 CD [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 85 48 00 00 00 00 00 A7 0C 87 [08:49:40]RasterBufferAndPrint [08:49:40]line [08:49:40]line [08:49:40]line [08:49:40]line [08:49:40]line [08:49:40]written 0, free lines is 3245 [08:49:40]MH_Cut [08:49:40]Write to MH i2c: D1 01 00 8C 48 01 A6 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: D1 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: D1 01 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: D1 01 00 8C 48 00 A5 [08:49:40]Write to MH i2c: 01 00 00 8D 48 D5 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:41]OFD Sender: No OFD packet to send [08:49:41]*** Cut start [08:49:41]*** Partial cut [08:49:41]*** CUTSNS_PIN = 1 [08:49:41]*** CUTSNS_PIN = 0 [08:49:41]*** Brake cut motor [08:49:42]Read from MH i2c: 01 [08:49:42]MH_I2C_Read... [08:49:42]*** Stop cut motor [08:49:42]*** Cut end [08:49:42]Read from MH i2c: 01 07 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: 01 07 00 8D 48 00 00 00 00 00 FF 0F EA [08:49:42]process_action close_receipt done [08:49:42]requested_data is exist [08:49:42]produce_requested_data [08:49:42]requested_item fm.sn is exist - process it [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 11 00 00 [08:49:42]Write to MH i2c: E2 08 00 8E 48 80 11 00 00 00 00 00 00 50 [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 17 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 17 00 8E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [08:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:49:42]wFMCommunicate OK [08:49:42]requested_item fd.num is exist - process it [08:49:42]SAM_PROTO_GetFieldsCounters [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 13 00 00 [08:49:42]Write to MH i2c: E2 08 00 8F 48 80 13 00 00 00 00 00 00 53 [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 62 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 62 00 8F 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:42]wFMCommunicate OK [08:49:42]SAM_PROTO_GetFieldsCounters done [08:49:42]requested_item shift.num is exist - process it [08:49:42]requested_item shift.opened is exist - process it [08:49:42]req_shift_opened [08:49:42]FM_GetShiftState [08:49:42]SAM_PROTO_GetShiftState [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 13 01 00 [08:49:42]Write to MH i2c: E2 08 00 90 48 80 13 01 00 00 00 00 00 55 [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:42]Read from MH i2c: E2 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 0E 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: E2 0E 00 90 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 96 [08:49:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:49:42]wFMCommunicate OK [08:49:42]SAM_PROTO_GetShiftState done [08:49:42]FM_GetShiftState done [08:49:42]req_shift_opened done [08:49:42]requested_item shift.open_date is exist - process it [08:49:42]req_shift_open_date [08:49:42]req_shift_open_date done [08:49:42]produce_requested_data done [08:49:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192001,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:49:42]process_action_free close_receipt [08:49:42]json_value_free [08:49:42]json_value_free done [08:49:42]process_json_proto returns [08:49:42]Send response to host [08:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192001,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:49:42]free response buf [08:49:42]execute_script done [08:49:42]execute_script returns [08:49:42]free content buf [08:49:42]Sock 6.Close socket [08:49:42]Sock 6.Thread stoped [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:02]accept exits with 5 [08:54:02]New connection [08:54:02]New thread 3066817892 created [08:54:02]Thread 3066961252 joined [08:54:02]Waiting for new connection... [08:54:02] Sock 5.Parse request [08:54:02]Sock 5.Check first char [08:54:02]Sock 5.First char is OK [08:54:02]request: POST /json_proto HTTP/1.0 [08:54:02]Method: POST [08:54:02]URL: /json_proto [08:54:02]Method is POST - this is cgi request [08:54:02]url: /json_proto [08:54:02]query_string will be loaded in cgi processing [08:54:02]execute_cgi json_proto POST (null) [08:54:02]execute_cgi path=json_proto method=POST [08:54:02]POST find Content-Length [08:54:02]Host: 172.17.63.131:8080 [08:54:02]Content-Length: 676 [08:54:02]Content-Type: application/json [08:54:02] [08:54:02]POST finish read [08:54:02]Found Content-Length = 676 [08:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:02]execute_script... [08:54: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)31312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:02]POST & json_proto [08:54:02]process_json_proto [08:54:02]json parsed OK: [08:54:02]protocol is kg_v1.0 [08:54:02]action value=close_receipt [08:54:02]process_action close_receipt [08:54:02]cmd_close_receipt [08:54:02]MH_GetDate [08:54:02]Write to MH i2c: F0 00 00 91 48 C8 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: F0 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: F0 09 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: F0 09 00 91 48 00 BD FF 1D 67 22 05 6E 64 0A [08:54:02]GetLastDocTimeStamp 1730018997 [08:54:02]current date 1730019261 [08:54:02]FM_GetShiftState [08:54:02]SAM_PROTO_GetShiftState [08:54:02]wFMCommunicate request_size=4 [08:54:02]MH_SAM_APDU [08:54:02]CAPDU: 80 13 01 00 [08:54:02]Write to MH i2c: E2 08 00 92 48 80 13 01 00 00 00 00 00 57 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:02]Read from MH i2c: E2 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 0E 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 0E 00 92 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 98 [08:54:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:54:02]wFMCommunicate OK [08:54:02]SAM_PROTO_GetShiftState done [08:54:02]FM_GetShiftState done [08:54:02]opened in 1729989159 [08:54:02]opened+sec_in_day 1730075559 [08:54:02]quantity*price = 20003 [08:54:02]sum+1 = 20004 [08:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 34 27.10.2024 08:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192002 ФПД: 84201832423338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192002&fm=84201832423338&tin=02508201610067®Number=0000000000091776&sum=20000 [08:54:03]StoreToDocumentArchive [08:54:03]shift 542 fd 192002 [08:54:03]save to /storage/0542/doc_00192002 [08:54:03]save last doc name /storage/0542/doc_00192002 to /storage/kkm_last_doc_name [08:54:03]save OK [08:54:03]Clear old archive folders... [08:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:03]tlvbuf is 019925B0 [08:54:03]SAM_PROTO_ClearQueue [08:54:03]wFMCommunicate request_size=4 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 09 00 00 [08:54:03]Write to MH i2c: E2 08 00 9F 48 80 09 00 00 00 00 00 00 59 [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:03]Read from MH i2c: E2 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 03 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 03 00 9F 48 00 90 00 5B [08:54:03]RAPDU: 90 00 [08:54:03]wFMCommunicate OK [08:54:03]SAM_PROTO_ClearQueue done [08:54:03]KKMCreateOFDPacket [08:54:03]OFDProtocolAddRootSTLVToBuf [08:54:03]FM_MakeSignedData [08:54:03]FM_MakeSignedData [08:54:03]SAM_PROTO_SignData [08:54:03]wFMCommunicate request_size=4 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 0D 01 02 [08:54:03]Write to MH i2c: E2 08 00 A0 48 80 0D 01 02 00 00 00 00 61 [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:03]Read from MH i2c: E2 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 03 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 03 00 A0 48 00 90 00 5C [08:54:03]RAPDU: 90 00 [08:54:03]wFMCommunicate OK [08:54:03]wFMCommunicate request_size=255 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EE 02 00 35 04 06 00 4C [08:54:03]Write to MH i2c: E2 02 01 A1 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EE 02 00 35 04 06 00 4C 00 00 77 [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 03 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 03 00 A1 48 00 90 00 5D [08:54:04]RAPDU: 90 00 [08:54:04]wFMCommunicate OK [08:54:04]wFMCommunicate request_size=10 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 0D 02 02 05 94 C4 4F 9F AA [08:54:04]Write to MH i2c: E2 0D 00 A2 48 80 0D 02 02 05 00 94 C4 4F 9F AA 00 00 5E [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 03 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 03 00 A2 48 00 90 00 5E [08:54:04]RAPDU: 90 00 [08:54:04]wFMCommunicate OK [08:54:04]wFMCommunicate request_size=4 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 0D 03 02 [08:54:04]Write to MH i2c: E2 08 00 A3 48 80 0D 03 02 00 00 00 00 66 [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 0B 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 0B 00 A3 48 00 64 AE 8F B7 B2 EE 69 BC 90 00 84 [08:54:04]RAPDU: 64 AE 8F B7 B2 EE 69 BC 90 00 [08:54:04]wFMCommunicate OK [08:54:04]SAM_PROTO_SignData done [08:54:04]FM_MakeSignedData done [08:54:04]CreateOFDProtocolMessage [08:54:04]wFMCommunicate request_size=4 [08:54:04]MH_SAM_APDU [08:54:04]CAPDU: 80 11 00 00 [08:54:04]Write to MH i2c: E2 08 00 A4 48 80 11 00 00 00 00 00 00 66 [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:04]Read from MH i2c: E2 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 17 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: E2 17 00 A4 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [08:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:54:04]wFMCommunicate OK [08:54:04]CreateOFDProtocolMessage done [08:54:04]OFDSenderStorePacket 192002 [08:54:04]StoreOFDPacket docnum=192002 [08:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 94 07 01 52 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EE 02 00 35 04 06 00 4C 94 C4 4F 9F AA 64 AE 8F B7 B2 EE 69 BC [08:54:04]CheckFolder [08:54:04]dirname=/storage/ofd_packets [08:54:04]CheckFolder done [08:54:04]ProducePacketName [08:54:04]name=ofd_packets/00192002 [08:54:04]NVStorageSaveData ofd_packets/00192002 [08:54:04]File name is /storage/ofd_packets/00192002 [08:54:04]Write 301 bytes [08:54:04]NVStorageSaveData done [08:54:04]OFDSenderStorePacket done [08:54:04]KKMCreateOFDPacket done [08:54:04]NVStorageSaveData kkm_last_timestamp [08:54:04]File name is /storage/kkm_last_timestamp [08:54:04]Write 4 bytes [08:54:04]NVStorageSaveData done [08:54:04]ExternCall_PrintAddStr [08:54:04]wPrintStart [08:54:04]Write to MH i2c: 01 00 00 A5 48 ED [08:54:04]Write i2c OK [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: 01 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: 01 07 00 [08:54:04]MH_I2C_Read... [08:54:04]Read from MH i2c: 01 07 00 A5 48 00 00 00 00 00 FF 0F 02 [08:54:04]RasterBufferAndPrint [08:54:04]line Счет N : (1)31312 [08:54:04]line ИНН: 02508201610067 [08:54:04]line Контрольно-Кассовый Чек [08:54:04]line ПРОДАЖА [08:54:04]line ТРК (МРК, ГНК) : 12 [08:54:04]line Товар: 2710124130 [08:54:04]line Аи-92-К-5 [08:54:04]line 2.990 * 66.90 [08:54:04]line = 200.03 [08:54:04]line НДС 12% НСП 1% [08:54:04]line > о реализуемом товаре [08:54:04]line ОКРУГЛЕНИЕ: -0.03 [08:54:04]line ИТОГО: 200.00 [08:54:04]line Внесено: 200.00 [08:54:04]line СДАЧА: 0.00 [08:54:04]line НСП 1% : 1.77 [08:54:04]line НДС 12% : 21.24 [08:54:04]line Наличными: 200.00 [08:54:04]line Безнал.: 0.00 [08:54:04]line Место: АЗС № 170 "Партнер Нефть" [08:54:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:54:04]line СНО: Общий режим [08:54:04]line Чек 34 27.10.2024 08:54 [08:54:04]line Смена: 542 ФФД: 1.0 [08:54:04]line ЗНМ: 0300000110 [08:54:04]line РНМ: 0000000000091776 [08:54:04]line Версия ККМ: 001 [08:54:04]line ФМ: 0000000000871754 [08:54:04]line ФД: 192002 [08:54:04]line ФПД: 84201832423338 [08:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192002&fm=84201832423338&tin=02508201610067®Number=0000000000091776&sum=20000 [08:54:04]OFD Sender: Processing packet 192002 [packets to send 75, broken 74] [08:54:04]ProducePacketName [08:54:04]name=ofd_packets/00192002 [08:54:04]OFD Sender: To server: pG, [08:54:04]CommunicateWithHost lk.salyk.kg:30040 [08:54:04]ConnectInit lk.salyk.kg [08:54:04]written 0, free lines is 4095 [08:54:04]Connected sock=8 [08:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 94 07 01 52 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD FF 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EE 02 00 35 04 06 00 4C 94 C4 4F 9F AA 64 AE 8F B7 B2 EE 69 BC [08:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 6B 47 00 4F 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EE 02 00 F4 03 04 00 86 A4 1D 67 B6 04 01 00 00 69 16 62 E2 E2 92 A3 8C [08:54:05]CommunicateWithHost err = 0 [08:54:05]CheckOFDResponse [08:54:05]1017 (14) - 77093643461234 [08:54:05]1041 (16) - 0000000000871754 [08:54:05]1040 (4) - 192002 [08:54:05]1012 (4) - 27.10.2024 02:25 [08:54:05]1206 (1) - 0 [08:54:05]OFD Sender: Remove packet 192002 [08:54:05]ProducePacketName [08:54:05]name=ofd_packets/00192002 [08:54:05]NVStorageDeleteData [08:54:05]Write to MH i2c: 01 00 00 D0 48 18 [08:54:05]Write i2c OK [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: 01 [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: 01 07 00 [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: 01 07 00 D0 48 00 00 00 00 00 B5 0C E0 [08:54:05]RasterBufferAndPrint [08:54:05]line [08:54:05]line [08:54:05]line [08:54:05]line [08:54:05]line [08:54:05]written 0, free lines is 3260 [08:54:05]MH_Cut [08:54:05]Write to MH i2c: D1 01 00 D7 48 01 F1 [08:54:05]Write i2c OK [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: D1 [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: D1 01 00 [08:54:05]MH_I2C_Read... [08:54:05]Read from MH i2c: D1 01 00 D7 48 00 F0 [08:54:05]Write to MH i2c: 01 00 00 D8 48 20 [08:54:05]Write i2c OK [08:54:05]MH_I2C_Read... [08:54:05]OFD Sender: No OFD packet to send [08:54:05]*** Cut start [08:54:05]*** Partial cut [08:54:05]*** CUTSNS_PIN = 1 [08:54:06]*** CUTSNS_PIN = 0 [08:54:06]*** Brake cut motor [08:54:06]Read from MH i2c: 01 [08:54:06]MH_I2C_Read... [08:54:06]*** Stop cut motor [08:54:06]*** Cut end [08:54:06]Read from MH i2c: 01 07 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: 01 07 00 D8 48 00 00 00 00 00 FF 0F 35 [08:54:06]process_action close_receipt done [08:54:06]requested_data is exist [08:54:06]produce_requested_data [08:54:06]requested_item fm.sn is exist - process it [08:54:06]wFMCommunicate request_size=4 [08:54:06]MH_SAM_APDU [08:54:06]CAPDU: 80 11 00 00 [08:54:06]Write to MH i2c: E2 08 00 D9 48 80 11 00 00 00 00 00 00 9B [08:54:06]Write i2c OK [08:54:06]MH_I2C_Read... [08:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:06]Read from MH i2c: E2 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 17 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 17 00 D9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [08:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:54:06]wFMCommunicate OK [08:54:06]requested_item fd.num is exist - process it [08:54:06]SAM_PROTO_GetFieldsCounters [08:54:06]wFMCommunicate request_size=4 [08:54:06]MH_SAM_APDU [08:54:06]CAPDU: 80 13 00 00 [08:54:06]Write to MH i2c: E2 08 00 DA 48 80 13 00 00 00 00 00 00 9E [08:54:06]Write i2c OK [08:54:06]MH_I2C_Read... [08:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:06]Read from MH i2c: E2 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 62 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 62 00 DA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [08:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:06]wFMCommunicate OK [08:54:06]SAM_PROTO_GetFieldsCounters done [08:54:06]requested_item shift.num is exist - process it [08:54:06]requested_item shift.opened is exist - process it [08:54:06]req_shift_opened [08:54:06]FM_GetShiftState [08:54:06]SAM_PROTO_GetShiftState [08:54:06]wFMCommunicate request_size=4 [08:54:06]MH_SAM_APDU [08:54:06]CAPDU: 80 13 01 00 [08:54:06]Write to MH i2c: E2 08 00 DB 48 80 13 01 00 00 00 00 00 A0 [08:54:06]Write i2c OK [08:54:06]MH_I2C_Read... [08:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:06]Read from MH i2c: E2 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 0E 00 [08:54:06]MH_I2C_Read... [08:54:06]Read from MH i2c: E2 0E 00 DB 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E1 [08:54:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:54:06]wFMCommunicate OK [08:54:06]SAM_PROTO_GetShiftState done [08:54:06]FM_GetShiftState done [08:54:06]req_shift_opened done [08:54:06]requested_item shift.open_date is exist - process it [08:54:06]req_shift_open_date [08:54:06]req_shift_open_date done [08:54:06]produce_requested_data done [08:54:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192002,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:54:06]process_action_free close_receipt [08:54:06]json_value_free [08:54:06]json_value_free done [08:54:06]process_json_proto returns [08:54:06]Send response to host [08:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192002,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:54:06]free response buf [08:54:06]execute_script done [08:54:06]execute_script returns [08:54:06]free content buf [08:54:06]Sock 5.Close socket [08:54:06]Sock 5.Thread stoped [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]accept exits with 6 [08:55:55]New connection [08:55:55]New thread 3066961252 created [08:55:55]Thread 3066817892 joined [08:55:55]Waiting for new connection... [08:55:55] Sock 6.Parse request [08:55:55]Sock 6.Check first char [08:55:55]Sock 6.First char is OK [08:55:55]request: POST /json_proto HTTP/1.0 [08:55:55]Method: POST [08:55:55]URL: /json_proto [08:55:55]Method is POST - this is cgi request [08:55:55]url: /json_proto [08:55:55]query_string will be loaded in cgi processing [08:55:55]execute_cgi json_proto POST (null) [08:55:55]execute_cgi path=json_proto method=POST [08:55:55]POST find Content-Length [08:55:55]Host: 172.17.63.131:8080 [08:55:55]Content-Length: 676 [08:55:55]Content-Type: application/json [08:55:55] [08:55:55]POST finish read [08:55:55]Found Content-Length = 676 [08:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:55]execute_script... [08:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:55]POST & json_proto [08:55:55]process_json_proto [08:55:55]json parsed OK: [08:55:55]protocol is kg_v1.0 [08:55:55]action value=close_receipt [08:55:55]process_action close_receipt [08:55:55]cmd_close_receipt [08:55:55]MH_GetDate [08:55:55]Write to MH i2c: F0 00 00 DC 48 13 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 09 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 09 00 DC 48 00 2E 00 1E 67 22 05 6E 64 C8 [08:55:55]GetLastDocTimeStamp 1730019261 [08:55:55]current date 1730019374 [08:55:55]FM_GetShiftState [08:55:55]SAM_PROTO_GetShiftState [08:55:55]wFMCommunicate request_size=4 [08:55:55]MH_SAM_APDU [08:55:55]CAPDU: 80 13 01 00 [08:55:55]Write to MH i2c: E2 08 00 DD 48 80 13 01 00 00 00 00 00 A2 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:55]Read from MH i2c: E2 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 DD 48 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E3 [08:55:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:55:55]wFMCommunicate OK [08:55:55]SAM_PROTO_GetShiftState done [08:55:55]FM_GetShiftState done [08:55:55]opened in 1729989159 [08:55:55]opened+sec_in_day 1730075559 [08:55:55]quantity*price = 40006 [08:55:55]sum+1 = 40007 [08:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 35 27.10.2024 08:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192003 ФПД: 209995822360718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192003&fm=209995822360718&tin=02508201610067®Number=0000000000091776&sum=40000 [08:55:56]StoreToDocumentArchive [08:55:56]shift 542 fd 192003 [08:55:56]save to /storage/0542/doc_00192003 [08:55:56]save last doc name /storage/0542/doc_00192003 to /storage/kkm_last_doc_name [08:55:56]save OK [08:55:56]Clear old archive folders... [08:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:56]tlvbuf is 01B4D0B0 [08:55:56]SAM_PROTO_ClearQueue [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 09 00 00 [08:55:56]Write to MH i2c: E2 08 00 EA 48 80 09 00 00 00 00 00 00 A4 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_ClearQueue done [08:55:56]KKMCreateOFDPacket [08:55:56]OFDProtocolAddRootSTLVToBuf [08:55:56]FM_MakeSignedData [08:55:56]FM_MakeSignedData [08:55:56]SAM_PROTO_SignData [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 01 02 [08:55:56]Write to MH i2c: E2 08 00 EB 48 80 0D 01 02 00 00 00 00 AC [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]wFMCommunicate request_size=255 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2E 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EE 02 00 35 04 06 00 BE [08:55:56]Write to MH i2c: E2 02 01 EC 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2E 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EE 02 00 35 04 06 00 BE 00 00 B6 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 EC 48 00 90 00 A8 [08:55:57]RAPDU: 90 00 [08:55:57]wFMCommunicate OK [08:55:57]wFMCommunicate request_size=10 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 0D 02 02 05 FD 76 65 68 8E [08:55:57]Write to MH i2c: E2 0D 00 ED 48 80 0D 02 02 05 00 FD 76 65 68 8E 00 00 87 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 ED 48 00 90 00 A9 [08:55:57]RAPDU: 90 00 [08:55:57]wFMCommunicate OK [08:55:57]wFMCommunicate request_size=4 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 0D 03 02 [08:55:57]Write to MH i2c: E2 08 00 EE 48 80 0D 03 02 00 00 00 00 B1 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 0B 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 0B 00 EE 48 00 23 32 91 6F D4 F7 1D 20 90 00 0F [08:55:57]RAPDU: 23 32 91 6F D4 F7 1D 20 90 00 [08:55:57]wFMCommunicate OK [08:55:57]SAM_PROTO_SignData done [08:55:57]FM_MakeSignedData done [08:55:57]CreateOFDProtocolMessage [08:55:57]wFMCommunicate request_size=4 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 11 00 00 [08:55:57]Write to MH i2c: E2 08 00 EF 48 80 11 00 00 00 00 00 00 B1 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 17 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 17 00 EF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [08:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:55:57]wFMCommunicate OK [08:55:57]CreateOFDProtocolMessage done [08:55:57]OFDSenderStorePacket 192003 [08:55:57]StoreOFDPacket docnum=192003 [08:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 F2 07 01 63 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2E 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EE 02 00 35 04 06 00 BE FD 76 65 68 8E 23 32 91 6F D4 F7 1D 20 [08:55:57]CheckFolder [08:55:57]dirname=/storage/ofd_packets [08:55:57]CheckFolder done [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00192003 [08:55:57]NVStorageSaveData ofd_packets/00192003 [08:55:57]File name is /storage/ofd_packets/00192003 [08:55:57]Write 301 bytes [08:55:57]NVStorageSaveData done [08:55:57]OFDSenderStorePacket done [08:55:57]KKMCreateOFDPacket done [08:55:57]NVStorageSaveData kkm_last_timestamp [08:55:57]File name is /storage/kkm_last_timestamp [08:55:57]Write 4 bytes [08:55:57]NVStorageSaveData done [08:55:57]ExternCall_PrintAddStr [08:55:57]wPrintStart [08:55:57]Write to MH i2c: 01 00 00 F0 48 38 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 F0 48 00 00 00 00 00 FF 0F 4D [08:55:57]RasterBufferAndPrint [08:55:57]line Счет N : (1)31313 [08:55:57]line ИНН: 02508201610067 [08:55:57]line Контрольно-Кассовый Чек [08:55:57]line ПРОДАЖА [08:55:57]line ТРК (МРК, ГНК) : 12 [08:55:57]line Товар: 2710124130 [08:55:57]line Аи-92-К-5 [08:55:57]line 5.980 * 66.90 [08:55:57]line = 400.06 [08:55:57]line НДС 12% НСП 1% [08:55:57]line > о реализуемом товаре [08:55:57]line ОКРУГЛЕНИЕ: -0.06 [08:55:57]line ИТОГО: 400.00 [08:55:57]line Внесено: 400.00 [08:55:57]line СДАЧА: 0.00 [08:55:57]line НСП 1% : 3.54 [08:55:57]line НДС 12% : 42.48 [08:55:57]line Наличными: 400.00 [08:55:57]line Безнал.: 0.00 [08:55:57]line Место: АЗС № 170 "Партнер Нефть" [08:55:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:55:57]line СНО: Общий режим [08:55:57]line Чек 35 27.10.2024 08:56 [08:55:57]line Смена: 542 ФФД: 1.0 [08:55:57]line ЗНМ: 0300000110 [08:55:57]line РНМ: 0000000000091776 [08:55:57]line Версия ККМ: 001 [08:55:57]line ФМ: 0000000000871754 [08:55:57]line ФД: 192003 [08:55:57]line ФПД: 209995822360718 [08:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192003&fm=209995822360718&tin=02508201610067®Number=0000000000091776&sum=40000 [08:55:57]OFD Sender: Processing packet 192003 [packets to send 75, broken 74] [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00192003 [08:55:57]OFD Sender: To server: pG, [08:55:57]CommunicateWithHost lk.salyk.kg:30040 [08:55:57]ConnectInit lk.salyk.kg [08:55:57]written 0, free lines is 4095 [08:55:57]Connected sock=8 [08:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 F2 07 01 63 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2E 00 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EE 02 00 35 04 06 00 BE FD 76 65 68 8E 23 32 91 6F D4 F7 1D 20 [08:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 18 F1 47 00 23 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EE 02 00 F4 03 04 00 F7 A4 1D 67 B6 04 01 00 00 80 6C 0B EA 3B 14 97 E0 [08:55:57]CommunicateWithHost err = 0 [08:55:57]CheckOFDResponse [08:55:57]1017 (14) - 77093643461234 [08:55:57]1041 (16) - 0000000000871754 [08:55:57]1040 (4) - 192003 [08:55:57]1012 (4) - 27.10.2024 02:27 [08:55:57]1206 (1) - 0 [08:55:57]OFD Sender: Remove packet 192003 [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00192003 [08:55:57]NVStorageDeleteData [08:55:58]Write to MH i2c: 01 00 00 1B 49 64 [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 07 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 07 00 1B 49 00 00 00 00 00 B3 0C 2A [08:55:58]RasterBufferAndPrint [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]written 0, free lines is 3258 [08:55:58]MH_Cut [08:55:58]Write to MH i2c: D1 01 00 22 49 01 3D [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: D1 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: D1 01 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: D1 01 00 22 49 00 3C [08:55:58]Write to MH i2c: 01 00 00 23 49 6C [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]OFD Sender: No OFD packet to send [08:55:58]*** Cut start [08:55:58]*** Partial cut [08:55:58]*** CUTSNS_PIN = 1 [08:55:59]*** CUTSNS_PIN = 0 [08:55:59]*** Brake cut motor [08:55:59]Read from MH i2c: 01 [08:55:59]MH_I2C_Read... [08:55:59]*** Stop cut motor [08:55:59]*** Cut end [08:55:59]Read from MH i2c: 01 07 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 FF 0F 81 [08:55:59]process_action close_receipt done [08:55:59]requested_data is exist [08:55:59]produce_requested_data [08:55:59]requested_item fm.sn is exist - process it [08:55:59]wFMCommunicate request_size=4 [08:55:59]MH_SAM_APDU [08:55:59]CAPDU: 80 11 00 00 [08:55:59]Write to MH i2c: E2 08 00 24 49 80 11 00 00 00 00 00 00 E7 [08:55:59]Write i2c OK [08:55:59]MH_I2C_Read... [08:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:59]Read from MH i2c: E2 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 17 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 17 00 24 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [08:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:55:59]wFMCommunicate OK [08:55:59]requested_item fd.num is exist - process it [08:55:59]SAM_PROTO_GetFieldsCounters [08:55:59]wFMCommunicate request_size=4 [08:55:59]MH_SAM_APDU [08:55:59]CAPDU: 80 13 00 00 [08:55:59]Write to MH i2c: E2 08 00 25 49 80 13 00 00 00 00 00 00 EA [08:55:59]Write i2c OK [08:55:59]MH_I2C_Read... [08:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:59]Read from MH i2c: E2 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 62 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 62 00 25 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [08:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:59]wFMCommunicate OK [08:55:59]SAM_PROTO_GetFieldsCounters done [08:55:59]requested_item shift.num is exist - process it [08:55:59]requested_item shift.opened is exist - process it [08:55:59]req_shift_opened [08:55:59]FM_GetShiftState [08:55:59]SAM_PROTO_GetShiftState [08:55:59]wFMCommunicate request_size=4 [08:55:59]MH_SAM_APDU [08:55:59]CAPDU: 80 13 01 00 [08:55:59]Write to MH i2c: E2 08 00 26 49 80 13 01 00 00 00 00 00 EC [08:55:59]Write i2c OK [08:55:59]MH_I2C_Read... [08:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:59]Read from MH i2c: E2 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 0E 00 [08:55:59]MH_I2C_Read... [08:55:59]Read from MH i2c: E2 0E 00 26 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2D [08:55:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:55:59]wFMCommunicate OK [08:55:59]SAM_PROTO_GetShiftState done [08:55:59]FM_GetShiftState done [08:55:59]req_shift_opened done [08:55:59]requested_item shift.open_date is exist - process it [08:55:59]req_shift_open_date [08:55:59]req_shift_open_date done [08:55:59]produce_requested_data done [08:55:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192003,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:55:59]process_action_free close_receipt [08:55:59]json_value_free [08:55:59]json_value_free done [08:55:59]process_json_proto returns [08:55:59]Send response to host [08:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192003,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:55:59]free response buf [08:55:59]execute_script done [08:55:59]execute_script returns [08:55:59]free content buf [08:55:59]Sock 6.Close socket [08:55:59]Sock 6.Thread stoped [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:51]accept exits with 5 [08:59:51]New connection [08:59:51]New thread 3066817892 created [08:59:51]Thread 3066961252 joined [08:59:51]Waiting for new connection... [08:59:51] Sock 5.Parse request [08:59:51]Sock 5.Check first char [08:59:51]Sock 5.First char is OK [08:59:51]request: POST /json_proto HTTP/1.0 [08:59:51]Method: POST [08:59:51]URL: /json_proto [08:59:51]Method is POST - this is cgi request [08:59:51]url: /json_proto [08:59:51]query_string will be loaded in cgi processing [08:59:51]execute_cgi json_proto POST (null) [08:59:51]execute_cgi path=json_proto method=POST [08:59:51]POST find Content-Length [08:59:51]Host: 172.17.63.131:8080 [08:59:51]Content-Length: 677 [08:59:51]Content-Type: application/json [08:59:51] [08:59:51]POST finish read [08:59:51]Found Content-Length = 677 [08:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:51]execute_script... [08:59: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)31314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:51]POST & json_proto [08:59:51]process_json_proto [08:59:51]json parsed OK: [08:59:51]protocol is kg_v1.0 [08:59:51]action value=close_receipt [08:59:51]process_action close_receipt [08:59:51]cmd_close_receipt [08:59:51]MH_GetDate [08:59:51]Write to MH i2c: F0 00 00 27 49 5F [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 09 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 09 00 27 49 00 1A 01 1E 67 22 05 6E 64 01 [08:59:51]GetLastDocTimeStamp 1730019374 [08:59:51]current date 1730019610 [08:59:51]FM_GetShiftState [08:59:51]SAM_PROTO_GetShiftState [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 13 01 00 [08:59:51]Write to MH i2c: E2 08 00 28 49 80 13 01 00 00 00 00 00 EE [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 28 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2F [08:59:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:59:51]wFMCommunicate OK [08:59:51]SAM_PROTO_GetShiftState done [08:59:51]FM_GetShiftState done [08:59:51]opened in 1729989159 [08:59:51]opened+sec_in_day 1730075559 [08:59:51]quantity*price = 70044 [08:59:51]sum+1 = 70045 [08:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 36 27.10.2024 09:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192004 ФПД: 123284342605606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192004&fm=123284342605606&tin=02508201610067®Number=0000000000091776&sum=70000 [08:59:52]StoreToDocumentArchive [08:59:52]shift 542 fd 192004 [08:59:52]save to /storage/0542/doc_00192004 [08:59:52]save last doc name /storage/0542/doc_00192004 to /storage/kkm_last_doc_name [08:59:52]save OK [08:59:52]Clear old archive folders... [08:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:52]tlvbuf is 01AA4E50 [08:59:52]SAM_PROTO_ClearQueue [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 09 00 00 [08:59:52]Write to MH i2c: E2 08 00 35 49 80 09 00 00 00 00 00 00 F0 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 35 49 00 90 00 F2 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_ClearQueue done [08:59:52]KKMCreateOFDPacket [08:59:52]OFDProtocolAddRootSTLVToBuf [08:59:52]FM_MakeSignedData [08:59:52]FM_MakeSignedData [08:59:52]SAM_PROTO_SignData [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 01 02 [08:59:52]Write to MH i2c: E2 08 00 36 49 80 0D 01 02 00 00 00 00 F8 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 36 49 00 90 00 F3 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=255 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EE 02 00 35 04 06 00 70 [08:59:52]Write to MH i2c: E2 02 01 37 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EE 02 00 35 04 06 00 70 00 00 E4 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 37 49 00 90 00 F4 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=10 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 02 02 05 20 5F 72 87 26 [08:59:52]Write to MH i2c: E2 0D 00 38 49 80 0D 02 02 05 00 20 5F 72 87 26 00 00 A3 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 38 49 00 90 00 F5 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 03 02 [08:59:52]Write to MH i2c: E2 08 00 39 49 80 0D 03 02 00 00 00 00 FD [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:53]Read from MH i2c: E2 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0B 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0B 00 39 49 00 B9 51 E8 2A E2 E0 13 EB 90 00 DA [08:59:53]RAPDU: B9 51 E8 2A E2 E0 13 EB 90 00 [08:59:53]wFMCommunicate OK [08:59:53]SAM_PROTO_SignData done [08:59:53]FM_MakeSignedData done [08:59:53]CreateOFDProtocolMessage [08:59:53]wFMCommunicate request_size=4 [08:59:53]MH_SAM_APDU [08:59:53]CAPDU: 80 11 00 00 [08:59:53]Write to MH i2c: E2 08 00 3A 49 80 11 00 00 00 00 00 00 FD [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:53]Read from MH i2c: E2 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 17 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 17 00 3A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [08:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:59:53]wFMCommunicate OK [08:59:53]CreateOFDProtocolMessage done [08:59:53]OFDSenderStorePacket 192004 [08:59:53]StoreOFDPacket docnum=192004 [08:59:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 E2 07 01 A2 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EE 02 00 35 04 06 00 70 20 5F 72 87 26 B9 51 E8 2A E2 E0 13 EB [08:59:53]CheckFolder [08:59:53]dirname=/storage/ofd_packets [08:59:53]CheckFolder done [08:59:53]ProducePacketName [08:59:53]name=ofd_packets/00192004 [08:59:53]NVStorageSaveData ofd_packets/00192004 [08:59:53]File name is /storage/ofd_packets/00192004 [08:59:53]Write 301 bytes [08:59:53]NVStorageSaveData done [08:59:53]OFDSenderStorePacket done [08:59:53]KKMCreateOFDPacket done [08:59:53]NVStorageSaveData kkm_last_timestamp [08:59:53]File name is /storage/kkm_last_timestamp [08:59:53]Write 4 bytes [08:59:53]NVStorageSaveData done [08:59:53]ExternCall_PrintAddStr [08:59:53]wPrintStart [08:59:53]Write to MH i2c: 01 00 00 3B 49 84 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 3B 49 00 00 00 00 00 FF 0F 99 [08:59:53]RasterBufferAndPrint [08:59:53]line Счет N : (1)31314 [08:59:53]line ИНН: 02508201610067 [08:59:53]line Контрольно-Кассовый Чек [08:59:53]line ПРОДАЖА [08:59:53]line ТРК (МРК, ГНК) : 12 [08:59:53]line Товар: 2710124130 [08:59:53]line Аи-92-К-5 [08:59:53]line 10.470 * 66.90 [08:59:53]line = 700.44 [08:59:53]line НДС 12% НСП 1% [08:59:53]line > о реализуемом товаре [08:59:53]line ОКРУГЛЕНИЕ: -0.44 [08:59:53]line ИТОГО: 700.00 [08:59:53]line Внесено: 700.00 [08:59:53]line СДАЧА: 0.00 [08:59:53]line НСП 1% : 6.20 [08:59:53]line НДС 12% : 74.38 [08:59:53]line Наличными: 700.00 [08:59:53]line Безнал.: 0.00 [08:59:53]line Место: АЗС № 170 "Партнер Нефть" [08:59:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:59:53]line СНО: Общий режим [08:59:53]line Чек 36 27.10.2024 09:00 [08:59:53]line Смена: 542 ФФД: 1.0 [08:59:53]line ЗНМ: 0300000110 [08:59:53]line РНМ: 0000000000091776 [08:59:53]line Версия ККМ: 001 [08:59:53]line ФМ: 0000000000871754 [08:59:53]line ФД: 192004 [08:59:53]line ФПД: 123284342605606 [08:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192004&fm=123284342605606&tin=02508201610067®Number=0000000000091776&sum=70000 [08:59:53]OFD Sender: Processing packet 192004 [packets to send 75, broken 74] [08:59:53]ProducePacketName [08:59:53]name=ofd_packets/00192004 [08:59:53]OFD Sender: To server: pG, [08:59:53]CommunicateWithHost lk.salyk.kg:30040 [08:59:53]ConnectInit lk.salyk.kg [08:59:53]written 0, free lines is 4095 [08:59:53]Connected sock=8 [08:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 E2 07 01 A2 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EE 02 00 35 04 06 00 70 20 5F 72 87 26 B9 51 E8 2A E2 E0 13 EB [08:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C DE 47 00 4D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EE 02 00 F4 03 04 00 E2 A5 1D 67 B6 04 01 00 00 66 57 63 09 8F A1 68 E8 [08:59:53]CommunicateWithHost err = 0 [08:59:53]CheckOFDResponse [08:59:53]1017 (14) - 77093643461234 [08:59:53]1041 (16) - 0000000000871754 [08:59:53]1040 (4) - 192004 [08:59:53]1012 (4) - 27.10.2024 02:30 [08:59:53]1206 (1) - 0 [08:59:53]OFD Sender: Remove packet 192004 [08:59:53]ProducePacketName [08:59:53]name=ofd_packets/00192004 [08:59:53]NVStorageDeleteData [08:59:53]Write to MH i2c: 01 00 00 66 49 AF [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 66 49 00 00 00 00 00 A7 0C 69 [08:59:53]RasterBufferAndPrint [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]written 0, free lines is 3245 [08:59:53]MH_Cut [08:59:53]Write to MH i2c: D1 01 00 6D 49 01 88 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 6D 49 00 87 [08:59:53]Write to MH i2c: 01 00 00 6E 49 B7 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:54]OFD Sender: No OFD packet to send [08:59:54]*** Cut start [08:59:54]*** Partial cut [08:59:54]*** CUTSNS_PIN = 1 [08:59:54]*** CUTSNS_PIN = 0 [08:59:55]*** Brake cut motor [08:59:55]Read from MH i2c: 01 [08:59:55]MH_I2C_Read... [08:59:55]*** Stop cut motor [08:59:55]*** Cut end [08:59:55]Read from MH i2c: 01 07 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 6E 49 00 00 00 00 00 FF 0F CC [08:59:55]process_action close_receipt done [08:59:55]requested_data is exist [08:59:55]produce_requested_data [08:59:55]requested_item fm.sn is exist - process it [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 11 00 00 [08:59:55]Write to MH i2c: E2 08 00 6F 49 80 11 00 00 00 00 00 00 32 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 6F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [08:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:59:55]wFMCommunicate OK [08:59:55]requested_item fd.num is exist - process it [08:59:55]SAM_PROTO_GetFieldsCounters [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 13 00 00 [08:59:55]Write to MH i2c: E2 08 00 70 49 80 13 00 00 00 00 00 00 35 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 62 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 62 00 70 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [08:59:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:55]wFMCommunicate OK [08:59:55]SAM_PROTO_GetFieldsCounters done [08:59:55]requested_item shift.num is exist - process it [08:59:55]requested_item shift.opened is exist - process it [08:59:55]req_shift_opened [08:59:55]FM_GetShiftState [08:59:55]SAM_PROTO_GetShiftState [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 13 01 00 [08:59:55]Write to MH i2c: E2 08 00 71 49 80 13 01 00 00 00 00 00 37 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0E 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0E 00 71 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 78 [08:59:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [08:59:55]wFMCommunicate OK [08:59:55]SAM_PROTO_GetShiftState done [08:59:55]FM_GetShiftState done [08:59:55]req_shift_opened done [08:59:55]requested_item shift.open_date is exist - process it [08:59:55]req_shift_open_date [08:59:55]req_shift_open_date done [08:59:55]produce_requested_data done [08:59:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192004,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [08:59:55]process_action_free close_receipt [08:59:55]json_value_free [08:59:55]json_value_free done [08:59:55]process_json_proto returns [08:59:55]Send response to host [08:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192004,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [08:59:55]free response buf [08:59:55]execute_script done [08:59:55]execute_script returns [08:59:55]free content buf [08:59:55]Sock 5.Close socket [08:59:55]Sock 5.Thread stoped [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:37]accept exits with 6 [09:03:37]New connection [09:03:37]New thread 3066961252 created [09:03:37]Thread 3066817892 joined [09:03:37]Waiting for new connection... [09:03:37] Sock 6.Parse request [09:03:37]Sock 6.Check first char [09:03:37]Sock 6.First char is OK [09:03:37]request: POST /json_proto HTTP/1.0 [09:03:37]Method: POST [09:03:37]URL: /json_proto [09:03:37]Method is POST - this is cgi request [09:03:37]url: /json_proto [09:03:37]query_string will be loaded in cgi processing [09:03:37]execute_cgi json_proto POST (null) [09:03:37]execute_cgi path=json_proto method=POST [09:03:37]POST find Content-Length [09:03:37]Host: 172.17.63.131:8080 [09:03:37]Content-Length: 676 [09:03:37]Content-Type: application/json [09:03:37] [09:03:37]POST finish read [09:03:37]Found Content-Length = 676 [09:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:37]execute_script... [09:03: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)31315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:37]POST & json_proto [09:03:37]process_json_proto [09:03:37]json parsed OK: [09:03:37]protocol is kg_v1.0 [09:03:37]action value=close_receipt [09:03:37]process_action close_receipt [09:03:37]cmd_close_receipt [09:03:37]MH_GetDate [09:03:37]Write to MH i2c: F0 00 00 72 49 AA [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: F0 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: F0 09 00 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: F0 09 00 72 49 00 FD 01 1E 67 22 05 6E 64 2F [09:03:37]GetLastDocTimeStamp 1730019610 [09:03:37]current date 1730019837 [09:03:37]FM_GetShiftState [09:03:37]SAM_PROTO_GetShiftState [09:03:37]wFMCommunicate request_size=4 [09:03:37]MH_SAM_APDU [09:03:37]CAPDU: 80 13 01 00 [09:03:37]Write to MH i2c: E2 08 00 73 49 80 13 01 00 00 00 00 00 39 [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 73 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7A [09:03:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_GetShiftState done [09:03:38]FM_GetShiftState done [09:03:38]opened in 1729989159 [09:03:38]opened+sec_in_day 1730075559 [09:03:38]quantity*price = 50041 [09:03:38]sum+1 = 50042 [09:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 37 27.10.2024 09:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192005 ФПД: 192191898885903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192005&fm=192191898885903&tin=02508201610067®Number=0000000000091776&sum=50000 [09:03:39]StoreToDocumentArchive [09:03:39]shift 542 fd 192005 [09:03:39]save to /storage/0542/doc_00192005 [09:03:39]save last doc name /storage/0542/doc_00192005 to /storage/kkm_last_doc_name [09:03:39]save OK [09:03:39]Clear old archive folders... [09:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:39]tlvbuf is 018DC7A0 [09:03:39]SAM_PROTO_ClearQueue [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 09 00 00 [09:03:39]Write to MH i2c: E2 08 00 80 49 80 09 00 00 00 00 00 00 3B [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 80 49 00 90 00 3D [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]SAM_PROTO_ClearQueue done [09:03:39]KKMCreateOFDPacket [09:03:39]OFDProtocolAddRootSTLVToBuf [09:03:39]FM_MakeSignedData [09:03:39]FM_MakeSignedData [09:03:39]SAM_PROTO_SignData [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 01 02 [09:03:39]Write to MH i2c: E2 08 00 81 49 80 0D 01 02 00 00 00 00 43 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 81 49 00 90 00 3E [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]wFMCommunicate request_size=255 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EE 02 00 35 04 06 00 AE [09:03:39]Write to MH i2c: E2 02 01 82 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EE 02 00 35 04 06 00 AE 00 00 42 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]OFD Sender: No OFD packet to send [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 82 49 00 90 00 3F [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]wFMCommunicate request_size=10 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 02 02 05 CC 29 DC 9F 0F [09:03:39]Write to MH i2c: E2 0D 00 83 49 80 0D 02 02 05 00 CC 29 DC 9F 0F 00 00 CF [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 83 49 00 90 00 40 [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 03 02 [09:03:39]Write to MH i2c: E2 08 00 84 49 80 0D 03 02 00 00 00 00 48 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 0B 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 0B 00 84 49 00 C7 6E CF CC E4 95 83 00 90 00 15 [09:03:39]RAPDU: C7 6E CF CC E4 95 83 00 90 00 [09:03:39]wFMCommunicate OK [09:03:39]SAM_PROTO_SignData done [09:03:39]FM_MakeSignedData done [09:03:39]CreateOFDProtocolMessage [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 11 00 00 [09:03:39]Write to MH i2c: E2 08 00 85 49 80 11 00 00 00 00 00 00 48 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 17 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 17 00 85 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [09:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:39]wFMCommunicate OK [09:03:39]CreateOFDProtocolMessage done [09:03:39]OFDSenderStorePacket 192005 [09:03:39]StoreOFDPacket docnum=192005 [09:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 20 07 01 76 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EE 02 00 35 04 06 00 AE CC 29 DC 9F 0F C7 6E CF CC E4 95 83 00 [09:03:39]CheckFolder [09:03:39]dirname=/storage/ofd_packets [09:03:39]CheckFolder done [09:03:39]ProducePacketName [09:03:39]name=ofd_packets/00192005 [09:03:39]NVStorageSaveData ofd_packets/00192005 [09:03:39]File name is /storage/ofd_packets/00192005 [09:03:39]Write 301 bytes [09:03:39]NVStorageSaveData done [09:03:39]OFDSenderStorePacket done [09:03:39]KKMCreateOFDPacket done [09:03:39]NVStorageSaveData kkm_last_timestamp [09:03:39]File name is /storage/kkm_last_timestamp [09:03:39]Write 4 bytes [09:03:39]NVStorageSaveData done [09:03:39]ExternCall_PrintAddStr [09:03:39]wPrintStart [09:03:39]Write to MH i2c: 01 00 00 86 49 CF [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 07 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 07 00 86 49 00 00 00 00 00 FF 0F E4 [09:03:39]RasterBufferAndPrint [09:03:39]line Счет N : (1)31315 [09:03:39]line ИНН: 02508201610067 [09:03:39]line Контрольно-Кассовый Чек [09:03:39]line ПРОДАЖА [09:03:39]line ТРК (МРК, ГНК) : 12 [09:03:39]line Товар: 2710124130 [09:03:39]line Аи-92-К-5 [09:03:39]line 7.480 * 66.90 [09:03:39]line = 500.41 [09:03:39]line НДС 12% НСП 1% [09:03:39]line > о реализуемом товаре [09:03:39]line ОКРУГЛЕНИЕ: -0.41 [09:03:39]line ИТОГО: 500.00 [09:03:39]line Внесено: 500.00 [09:03:39]line СДАЧА: 0.00 [09:03:39]line НСП 1% : 4.43 [09:03:39]line НДС 12% : 53.14 [09:03:39]line Наличными: 500.00 [09:03:39]line Безнал.: 0.00 [09:03:39]line Место: АЗС № 170 "Партнер Нефть" [09:03:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:03:39]line СНО: Общий режим [09:03:39]line Чек 37 27.10.2024 09:03 [09:03:39]line Смена: 542 ФФД: 1.0 [09:03:39]line ЗНМ: 0300000110 [09:03:39]line РНМ: 0000000000091776 [09:03:39]line Версия ККМ: 001 [09:03:39]line ФМ: 0000000000871754 [09:03:39]line ФД: 192005 [09:03:39]line ФПД: 192191898885903 [09:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192005&fm=192191898885903&tin=02508201610067®Number=0000000000091776&sum=50000 [09:03:40]OFD Sender: Processing packet 192005 [packets to send 75, broken 74] [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00192005 [09:03:40]OFD Sender: To server: pG, [09:03:40]CommunicateWithHost lk.salyk.kg:30040 [09:03:40]ConnectInit lk.salyk.kg [09:03:40]written 0, free lines is 4095 [09:03:40]Connected sock=8 [09:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 20 07 01 76 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 01 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EE 02 00 35 04 06 00 AE CC 29 DC 9F 0F C7 6E CF CC E4 95 83 00 [09:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 85 47 00 46 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EE 02 00 F4 03 04 00 C5 A6 1D 67 B6 04 01 00 00 EC 07 56 88 56 AD A9 A4 [09:03:40]CommunicateWithHost err = 0 [09:03:40]CheckOFDResponse [09:03:40]1017 (14) - 77093643461234 [09:03:40]1041 (16) - 0000000000871754 [09:03:40]1040 (4) - 192005 [09:03:40]1012 (4) - 27.10.2024 02:34 [09:03:40]1206 (1) - 0 [09:03:40]OFD Sender: Remove packet 192005 [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00192005 [09:03:40]NVStorageDeleteData [09:03:40]Write to MH i2c: 01 00 00 B1 49 FA [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 B1 49 00 00 00 00 00 B0 0C BD [09:03:40]RasterBufferAndPrint [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]line [09:03:40]written 0, free lines is 3255 [09:03:40]MH_Cut [09:03:40]Write to MH i2c: D1 01 00 B8 49 01 D3 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 01 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: D1 01 00 B8 49 00 D2 [09:03:40]Write to MH i2c: 01 00 00 B9 49 02 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]OFD Sender: No OFD packet to send [09:03:41]*** Cut start [09:03:41]*** Partial cut [09:03:41]*** CUTSNS_PIN = 1 [09:03:41]*** CUTSNS_PIN = 0 [09:03:41]*** Brake cut motor [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]*** Stop cut motor [09:03:41]*** Cut end [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 B9 49 00 00 00 00 00 FF 0F 17 [09:03:41]process_action close_receipt done [09:03:41]requested_data is exist [09:03:41]produce_requested_data [09:03:41]requested_item fm.sn is exist - process it [09:03:41]wFMCommunicate request_size=4 [09:03:41]MH_SAM_APDU [09:03:41]CAPDU: 80 11 00 00 [09:03:41]Write to MH i2c: E2 08 00 BA 49 80 11 00 00 00 00 00 00 7D [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 BA 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [09:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:42]wFMCommunicate OK [09:03:42]requested_item fd.num is exist - process it [09:03:42]SAM_PROTO_GetFieldsCounters [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 00 00 [09:03:42]Write to MH i2c: E2 08 00 BB 49 80 13 00 00 00 00 00 00 80 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 BB 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetFieldsCounters done [09:03:42]requested_item shift.num is exist - process it [09:03:42]requested_item shift.opened is exist - process it [09:03:42]req_shift_opened [09:03:42]FM_GetShiftState [09:03:42]SAM_PROTO_GetShiftState [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 01 00 [09:03:42]Write to MH i2c: E2 08 00 BC 49 80 13 01 00 00 00 00 00 82 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 BC 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C3 [09:03:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetShiftState done [09:03:42]FM_GetShiftState done [09:03:42]req_shift_opened done [09:03:42]requested_item shift.open_date is exist - process it [09:03:42]req_shift_open_date [09:03:42]req_shift_open_date done [09:03:42]produce_requested_data done [09:03:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192005,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:03:42]process_action_free close_receipt [09:03:42]json_value_free [09:03:42]json_value_free done [09:03:42]process_json_proto returns [09:03:42]Send response to host [09:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192005,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:03:42]free response buf [09:03:42]execute_script done [09:03:42]execute_script returns [09:03:42]free content buf [09:03:42]Sock 6.Close socket [09:03:42]Sock 6.Thread stoped [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [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: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:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:17]accept exits with 5 [09:07:17]New connection [09:07:17]New thread 3066817892 created [09:07:17]Thread 3066961252 joined [09:07:17]Waiting for new connection... [09:07:17] Sock 5.Parse request [09:07:17]Sock 5.Check first char [09:07:17]Sock 5.First char is OK [09:07:17]request: POST /json_proto HTTP/1.0 [09:07:17]Method: POST [09:07:17]URL: /json_proto [09:07:17]Method is POST - this is cgi request [09:07:17]url: /json_proto [09:07:17]query_string will be loaded in cgi processing [09:07:17]execute_cgi json_proto POST (null) [09:07:17]execute_cgi path=json_proto method=POST [09:07:17]POST find Content-Length [09:07:17]Host: 172.17.63.131:8080 [09:07:17]Content-Length: 983 [09:07:17]Content-Type: application/json [09:07:17] [09:07:17]POST finish read [09:07:17]Found Content-Length = 983 [09:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:17]execute_script... [09:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:17]POST & json_proto [09:07:17]process_json_proto [09:07:17]json parsed OK: [09:07:17]protocol is kg_v1.0 [09:07:17]action value=close_receipt [09:07:17]process_action close_receipt [09:07:17]cmd_close_receipt [09:07:17]MH_GetDate [09:07:17]Write to MH i2c: F0 00 00 BD 49 F5 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: F0 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: F0 09 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: F0 09 00 BD 49 00 D8 02 1E 67 22 05 6E 64 56 [09:07:17]GetLastDocTimeStamp 1730019837 [09:07:17]current date 1730020056 [09:07:17]FM_GetShiftState [09:07:17]SAM_PROTO_GetShiftState [09:07:17]wFMCommunicate request_size=4 [09:07:17]MH_SAM_APDU [09:07:17]CAPDU: 80 13 01 00 [09:07:17]Write to MH i2c: E2 08 00 BE 49 80 13 01 00 00 00 00 00 84 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:17]Read from MH i2c: E2 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 0E 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 0E 00 BE 49 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C5 [09:07:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:07:17]wFMCommunicate OK [09:07:17]SAM_PROTO_GetShiftState done [09:07:17]FM_GetShiftState done [09:07:17]opened in 1729989159 [09:07:17]opened+sec_in_day 1730075559 [09:07:17]quantity*price = 200006 [09:07:17]sum+1 = 200008 [09:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 38 27.10.2024 09:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 192006 ФПД: 93172050355604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192006&fm=93172050355604&tin=02508201610067®Number=0000000000091776&sum=200000 [09:07:18]StoreToDocumentArchive [09:07:18]shift 542 fd 192006 [09:07:18]save to /storage/0542/doc_00192006 [09:07:18]save last doc name /storage/0542/doc_00192006 to /storage/kkm_last_doc_name [09:07:18]save OK [09:07:18]Clear old archive folders... [09:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:18]tlvbuf is 01C6F250 [09:07:18]SAM_PROTO_ClearQueue [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 09 00 00 [09:07:18]Write to MH i2c: E2 08 00 CB 49 80 09 00 00 00 00 00 00 86 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 CB 49 00 90 00 88 [09:07:18]RAPDU: 90 00 [09:07:18]wFMCommunicate OK [09:07:18]SAM_PROTO_ClearQueue done [09:07:18]KKMCreateOFDPacket [09:07:18]OFDProtocolAddRootSTLVToBuf [09:07:18]FM_MakeSignedData [09:07:18]FM_MakeSignedData [09:07:18]SAM_PROTO_SignData [09:07:18]wFMCommunicate request_size=4 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 0D 01 02 [09:07:18]Write to MH i2c: E2 08 00 CC 49 80 0D 01 02 00 00 00 00 8E [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 CC 49 00 90 00 89 [09:07:18]RAPDU: 90 00 [09:07:18]wFMCommunicate OK [09:07:18]wFMCommunicate request_size=255 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D8 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EE 02 00 35 04 06 00 54 [09:07:18]Write to MH i2c: E2 02 01 CD 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D8 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EE 02 00 35 04 06 00 54 00 00 98 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:18]Read from MH i2c: E2 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 [09:07:18]MH_I2C_Read... [09:07:18]Read from MH i2c: E2 03 00 CD 49 00 90 00 8A [09:07:18]RAPDU: 90 00 [09:07:18]wFMCommunicate OK [09:07:18]wFMCommunicate request_size=10 [09:07:18]MH_SAM_APDU [09:07:18]CAPDU: 80 0D 02 02 05 BD 4E F6 E5 94 [09:07:18]Write to MH i2c: E2 0D 00 CE 49 80 0D 02 02 05 00 BD 4E F6 E5 94 00 00 15 [09:07:18]Write i2c OK [09:07:18]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 CE 49 00 90 00 8B [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 0D 03 02 [09:07:19]Write to MH i2c: E2 08 00 CF 49 80 0D 03 02 00 00 00 00 93 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0B 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0B 00 CF 49 00 D2 4A 4B 1E 5F 7D E3 09 90 00 E1 [09:07:19]RAPDU: D2 4A 4B 1E 5F 7D E3 09 90 00 [09:07:19]wFMCommunicate OK [09:07:19]SAM_PROTO_SignData done [09:07:19]FM_MakeSignedData done [09:07:19]CreateOFDProtocolMessage [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 11 00 00 [09:07:19]Write to MH i2c: E2 08 00 D0 49 80 11 00 00 00 00 00 00 93 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 D0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [09:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:07:19]wFMCommunicate OK [09:07:19]CreateOFDProtocolMessage done [09:07:19]OFDSenderStorePacket 192006 [09:07:19]StoreOFDPacket docnum=192006 [09:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 5B 07 01 E4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D8 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EE 02 00 35 04 06 00 54 BD 4E F6 E5 94 D2 4A 4B 1E 5F 7D E3 09 [09:07:19]CheckFolder [09:07:19]dirname=/storage/ofd_packets [09:07:19]CheckFolder done [09:07:19]ProducePacketName [09:07:19]name=ofd_packets/00192006 [09:07:19]NVStorageSaveData ofd_packets/00192006 [09:07:19]File name is /storage/ofd_packets/00192006 [09:07:19]Write 301 bytes [09:07:19]NVStorageSaveData done [09:07:19]OFDSenderStorePacket done [09:07:19]KKMCreateOFDPacket done [09:07:19]NVStorageSaveData kkm_last_timestamp [09:07:19]File name is /storage/kkm_last_timestamp [09:07:19]Write 4 bytes [09:07:19]NVStorageSaveData done [09:07:19]ExternCall_PrintAddStr [09:07:19]wPrintStart [09:07:19]Write to MH i2c: 01 00 00 D1 49 1A [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 D1 49 00 00 00 00 00 FF 0F 2F [09:07:19]RasterBufferAndPrint [09:07:19]line Счет N : (1)31316 [09:07:19]line ИНН: 02508201610067 [09:07:19]line Контрольно-Кассовый Чек [09:07:19]line ПРОДАЖА [09:07:19]line ТРК (МРК, ГНК) : 12 [09:07:19]line Товар: 2710124130 [09:07:19]line Аи-92-К-5 [09:07:19]line 30.350 * 65.90 [09:07:19]line = 2000.07 [09:07:19]line НДС 12% НСП 1% [09:07:19]line > о реализуемом товаре [09:07:19]line ОКРУГЛЕНИЕ: -0.07 [09:07:19]line ИТОГО: 2000.00 [09:07:19]line Внесено: 2000.00 [09:07:19]line СДАЧА: 0.00 [09:07:19]line НСП 1% : 17.70 [09:07:19]line НДС 12% : 212.40 [09:07:19]line Наличными: 2000.00 [09:07:19]line Безнал.: 0.00 [09:07:19]line Место: АЗС № 170 "Партнер Нефть" [09:07:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:07:19]line СНО: Общий режим [09:07:19]line Чек 38 27.10.2024 09:07 [09:07:19]line Смена: 542 ФФД: 1.0 [09:07:19]line ЗНМ: 0300000110 [09:07:19]line РНМ: 0000000000091776 [09:07:19]line Версия ККМ: 001 [09:07:19]line [09:07:19]line Дисконтная программа [09:07:19]line АИ-92 [09:07:19]line номер 170 [09:07:19]line сэкономлено 30.35 сом [09:07:19]line ФМ: 0000000000871754 [09:07:19]line ФД: 192006 [09:07:19]line ФПД: 93172050355604 [09:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192006&fm=93172050355604&tin=02508201610067®Number=0000000000091776&sum=200000 [09:07:19]OFD Sender: Processing packet 192006 [packets to send 75, broken 74] [09:07:19]ProducePacketName [09:07:19]name=ofd_packets/00192006 [09:07:19]OFD Sender: To server: pG, [09:07:19]CommunicateWithHost lk.salyk.kg:30040 [09:07:19]ConnectInit lk.salyk.kg [09:07:19]written 0, free lines is 4095 [09:07:19]Connected sock=8 [09:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 5B 07 01 E4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D8 02 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EE 02 00 35 04 06 00 54 BD 4E F6 E5 94 D2 4A 4B 1E 5F 7D E3 09 [09:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D6 50 47 00 73 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EE 02 00 F4 03 04 00 A0 A7 1D 67 B6 04 01 00 00 8B 5E 82 9C 75 F0 9B 61 [09:07:19]CommunicateWithHost err = 0 [09:07:19]CheckOFDResponse [09:07:19]1017 (14) - 77093643461234 [09:07:19]1041 (16) - 0000000000871754 [09:07:19]1040 (4) - 192006 [09:07:19]1012 (4) - 27.10.2024 02:38 [09:07:19]1206 (1) - 0 [09:07:19]OFD Sender: Remove packet 192006 [09:07:19]ProducePacketName [09:07:19]name=ofd_packets/00192006 [09:07:19]NVStorageDeleteData [09:07:19]Write to MH i2c: 01 00 00 01 4A 4B [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 01 4A 00 00 00 00 00 46 0C A4 [09:07:19]RasterBufferAndPrint [09:07:19]line [09:07:19]line [09:07:19]line [09:07:19]line [09:07:19]line [09:07:19]written 0, free lines is 3148 [09:07:19]MH_Cut [09:07:19]Write to MH i2c: D1 01 00 08 4A 01 24 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: D1 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: D1 01 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: D1 01 00 08 4A 00 23 [09:07:19]Write to MH i2c: 01 00 00 09 4A 53 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:20]OFD Sender: No OFD packet to send [09:07:20]*** Cut start [09:07:20]*** Partial cut [09:07:20]*** CUTSNS_PIN = 1 [09:07:20]*** CUTSNS_PIN = 0 [09:07:21]*** Brake cut motor [09:07:21]Read from MH i2c: 01 [09:07:21]MH_I2C_Read... [09:07:21]*** Stop cut motor [09:07:21]*** Cut end [09:07:21]Read from MH i2c: 01 07 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 09 4A 00 00 00 00 00 FF 0F 68 [09:07:21]process_action close_receipt done [09:07:21]requested_data is exist [09:07:21]produce_requested_data [09:07:21]requested_item fm.sn is exist - process it [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 11 00 00 [09:07:21]Write to MH i2c: E2 08 00 0A 4A 80 11 00 00 00 00 00 00 CE [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 17 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 17 00 0A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [09:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:07:21]wFMCommunicate OK [09:07:21]requested_item fd.num is exist - process it [09:07:21]SAM_PROTO_GetFieldsCounters [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 13 00 00 [09:07:21]Write to MH i2c: E2 08 00 0B 4A 80 13 00 00 00 00 00 00 D1 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 62 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 62 00 0B 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:07:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:21]wFMCommunicate OK [09:07:21]SAM_PROTO_GetFieldsCounters done [09:07:21]requested_item shift.num is exist - process it [09:07:21]requested_item shift.opened is exist - process it [09:07:21]req_shift_opened [09:07:21]FM_GetShiftState [09:07:21]SAM_PROTO_GetShiftState [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 13 01 00 [09:07:21]Write to MH i2c: E2 08 00 0C 4A 80 13 01 00 00 00 00 00 D3 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0E 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0E 00 0C 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 14 [09:07:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:07:21]wFMCommunicate OK [09:07:21]SAM_PROTO_GetShiftState done [09:07:21]FM_GetShiftState done [09:07:21]req_shift_opened done [09:07:21]requested_item shift.open_date is exist - process it [09:07:21]req_shift_open_date [09:07:21]req_shift_open_date done [09:07:21]produce_requested_data done [09:07:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192006,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:07:21]process_action_free close_receipt [09:07:21]json_value_free [09:07:21]json_value_free done [09:07:21]process_json_proto returns [09:07:21]Send response to host [09:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192006,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:07:21]free response buf [09:07:21]execute_script done [09:07:21]execute_script returns [09:07:21]free content buf [09:07:21]Sock 5.Close socket [09:07:21]Sock 5.Thread stoped [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:43]accept exits with 6 [09:09:43]New connection [09:09:43]New thread 3066961252 created [09:09:43]Thread 3066817892 joined [09:09:43]Waiting for new connection... [09:09:43] Sock 6.Parse request [09:09:43]Sock 6.Check first char [09:09:43]Sock 6.First char is OK [09:09:43]request: POST /json_proto HTTP/1.0 [09:09:43]Method: POST [09:09:43]URL: /json_proto [09:09:43]Method is POST - this is cgi request [09:09:43]url: /json_proto [09:09:43]query_string will be loaded in cgi processing [09:09:43]execute_cgi json_proto POST (null) [09:09:43]execute_cgi path=json_proto method=POST [09:09:43]POST find Content-Length [09:09:43]Host: 172.17.63.131:8080 [09:09:43]Content-Length: 862 [09:09:43]Content-Type: application/json [09:09:43] [09:09:43]POST finish read [09:09:43]Found Content-Length = 862 [09:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:43]execute_script... [09:09:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:43]POST & json_proto [09:09:43]process_json_proto [09:09:43]json parsed OK: [09:09:43]protocol is kg_v1.0 [09:09:43]action value=close_receipt [09:09:43]process_action close_receipt [09:09:43]cmd_close_receipt [09:09:43]MH_GetDate [09:09:43]Write to MH i2c: F0 00 00 0D 4A 46 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: F0 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: F0 09 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: F0 09 00 0D 4A 00 6A 03 1E 67 22 05 6E 64 3A [09:09:43]GetLastDocTimeStamp 1730020056 [09:09:43]current date 1730020202 [09:09:43]FM_GetShiftState [09:09:43]SAM_PROTO_GetShiftState [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 13 01 00 [09:09:43]Write to MH i2c: E2 08 00 0E 4A 80 13 01 00 00 00 00 00 D5 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 0E 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 16 [09:09:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_GetShiftState done [09:09:43]FM_GetShiftState done [09:09:43]opened in 1729989159 [09:09:43]opened+sec_in_day 1730075559 [09:09:43]quantity*price = 50041 [09:09:43]sum+1 = 50042 [09:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 39 27.10.2024 09:10 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192007 ФПД: 25674153470808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192007&fm=25674153470808&tin=02508201610067®Number=0000000000091776&sum=50041 [09:09:44]StoreToDocumentArchive [09:09:44]shift 542 fd 192007 [09:09:44]save to /storage/0542/doc_00192007 [09:09:44]save last doc name /storage/0542/doc_00192007 to /storage/kkm_last_doc_name [09:09:44]save OK [09:09:44]Clear old archive folders... [09:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:44]tlvbuf is 01CAA3F0 [09:09:44]SAM_PROTO_ClearQueue [09:09:44]wFMCommunicate request_size=4 [09:09:44]MH_SAM_APDU [09:09:44]CAPDU: 80 09 00 00 [09:09:44]Write to MH i2c: E2 08 00 1B 4A 80 09 00 00 00 00 00 00 D7 [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:44]Read from MH i2c: E2 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 03 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 03 00 1B 4A 00 90 00 D9 [09:09:44]RAPDU: 90 00 [09:09:44]wFMCommunicate OK [09:09:44]SAM_PROTO_ClearQueue done [09:09:44]KKMCreateOFDPacket [09:09:44]OFDProtocolAddRootSTLVToBuf [09:09:44]FM_MakeSignedData [09:09:44]FM_MakeSignedData [09:09:44]SAM_PROTO_SignData [09:09:44]wFMCommunicate request_size=4 [09:09:44]MH_SAM_APDU [09:09:44]CAPDU: 80 0D 01 02 [09:09:44]Write to MH i2c: E2 08 00 1C 4A 80 0D 01 02 00 00 00 00 DF [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:44]Read from MH i2c: E2 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 03 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 03 00 1C 4A 00 90 00 DA [09:09:44]RAPDU: 90 00 [09:09:44]wFMCommunicate OK [09:09:44]wFMCommunicate request_size=255 [09:09:44]MH_SAM_APDU [09:09:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6A 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EE 02 00 35 04 06 00 17 [09:09:44]Write to MH i2c: E2 02 01 1D 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6A 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EE 02 00 35 04 06 00 17 00 00 0C [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 03 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 03 00 1D 4A 00 90 00 DB [09:09:45]RAPDU: 90 00 [09:09:45]wFMCommunicate OK [09:09:45]wFMCommunicate request_size=10 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 0D 02 02 05 59 BA CC 2B 58 [09:09:45]Write to MH i2c: E2 0D 00 1E 4A 80 0D 02 02 05 00 59 BA CC 2B 58 00 00 4E [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 03 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 03 00 1E 4A 00 90 00 DC [09:09:45]RAPDU: 90 00 [09:09:45]wFMCommunicate OK [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 0D 03 02 [09:09:45]Write to MH i2c: E2 08 00 1F 4A 80 0D 03 02 00 00 00 00 E4 [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0B 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0B 00 1F 4A 00 D1 20 51 05 CA D2 CC 53 90 00 E7 [09:09:45]RAPDU: D1 20 51 05 CA D2 CC 53 90 00 [09:09:45]wFMCommunicate OK [09:09:45]SAM_PROTO_SignData done [09:09:45]FM_MakeSignedData done [09:09:45]CreateOFDProtocolMessage [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 11 00 00 [09:09:45]Write to MH i2c: E2 08 00 20 4A 80 11 00 00 00 00 00 00 E4 [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 17 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 17 00 20 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [09:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:09:45]wFMCommunicate OK [09:09:45]CreateOFDProtocolMessage done [09:09:45]OFDSenderStorePacket 192007 [09:09:45]StoreOFDPacket docnum=192007 [09:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 76 07 01 0C 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6A 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EE 02 00 35 04 06 00 17 59 BA CC 2B 58 D1 20 51 05 CA D2 CC 53 [09:09:45]CheckFolder [09:09:45]dirname=/storage/ofd_packets [09:09:45]CheckFolder done [09:09:45]ProducePacketName [09:09:45]name=ofd_packets/00192007 [09:09:45]NVStorageSaveData ofd_packets/00192007 [09:09:45]File name is /storage/ofd_packets/00192007 [09:09:45]Write 301 bytes [09:09:45]NVStorageSaveData done [09:09:45]OFDSenderStorePacket done [09:09:45]KKMCreateOFDPacket done [09:09:45]NVStorageSaveData kkm_last_timestamp [09:09:45]File name is /storage/kkm_last_timestamp [09:09:45]Write 4 bytes [09:09:45]NVStorageSaveData done [09:09:45]ExternCall_PrintAddStr [09:09:45]wPrintStart [09:09:45]Write to MH i2c: 01 00 00 21 4A 6B [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: 01 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: 01 07 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: 01 07 00 21 4A 00 00 00 00 00 FF 0F 80 [09:09:45]RasterBufferAndPrint [09:09:45]line Счет N : (1)31317 [09:09:45]line ИНН: 02508201610067 [09:09:45]line Контрольно-Кассовый Чек [09:09:45]line ПРОДАЖА [09:09:45]line ТРК (МРК, ГНК) : 21 [09:09:45]line Товар: 2710124130 [09:09:45]line Аи-92-К-5 [09:09:45]line 7.480 * 66.90 [09:09:45]line = 500.41 [09:09:45]line НДС 12% НСП 1% [09:09:45]line > о реализуемом товаре [09:09:45]line ИТОГО: 500.41 [09:09:45]line НСП 1% : 4.43 [09:09:45]line НДС 12% : 53.14 [09:09:45]line Наличными: 0.00 [09:09:45]line Безнал.: 500.41 [09:09:45]line Место: АЗС № 170 "Партнер Нефть" [09:09:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:09:45]line СНО: Общий режим [09:09:45]line Чек 39 27.10.2024 09:10 [09:09:45]line Смена: 542 ФФД: 1.0 [09:09:45]line ЗНМ: 0300000110 [09:09:45]line РНМ: 0000000000091776 [09:09:45]line Версия ККМ: 001 [09:09:45]line Платежная система: Кыргызкоммерцбанк [09:09:45]line ФМ: 0000000000871754 [09:09:45]line ФД: 192007 [09:09:45]line ФПД: 25674153470808 [09:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192007&fm=25674153470808&tin=02508201610067®Number=0000000000091776&sum=50041 [09:09:45]written 0, free lines is 4095 [09:09:45]OFD Sender: Processing packet 192007 [packets to send 75, broken 74] [09:09:45]ProducePacketName [09:09:45]name=ofd_packets/00192007 [09:09:45]OFD Sender: To server: pG, [09:09:45]CommunicateWithHost lk.salyk.kg:30040 [09:09:45]ConnectInit lk.salyk.kg [09:09:45]Connected sock=8 [09: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 37 35 34 0F 01 00 00 E1 76 07 01 0C 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6A 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EE 02 00 35 04 06 00 17 59 BA CC 2B 58 D1 20 51 05 CA D2 CC 53 [09: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 37 35 34 4F 00 00 00 F6 E5 47 00 8A 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EE 02 00 F4 03 04 00 33 A8 1D 67 B6 04 01 00 00 4B 85 87 8E EF 74 BE C6 [09:09:45]CommunicateWithHost err = 0 [09:09:45]CheckOFDResponse [09:09:45]1017 (14) - 77093643461234 [09:09:45]1041 (16) - 0000000000871754 [09:09:45]1040 (4) - 192007 [09:09:45]1012 (4) - 27.10.2024 02:40 [09:09:45]1206 (1) - 0 [09:09:45]OFD Sender: Remove packet 192007 [09:09:45]ProducePacketName [09:09:45]name=ofd_packets/00192007 [09:09:45]NVStorageDeleteData [09:09:46]Write to MH i2c: 01 00 00 4B 4A 95 [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: 01 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: 01 07 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: 01 07 00 4B 4A 00 00 00 00 00 B4 0C 5C [09:09:46]RasterBufferAndPrint [09:09:46]line [09:09:46]line [09:09:46]line [09:09:46]line [09:09:46]line [09:09:46]written 0, free lines is 3259 [09:09:46]MH_Cut [09:09:46]Write to MH i2c: D1 01 00 52 4A 01 6E [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: D1 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: D1 01 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: D1 01 00 52 4A 00 6D [09:09:46]Write to MH i2c: 01 00 00 53 4A 9D [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]OFD Sender: No OFD packet to send [09:09:46]*** Cut start [09:09:46]*** Partial cut [09:09:46]*** CUTSNS_PIN = 1 [09:09:46]*** CUTSNS_PIN = 0 [09:09:47]*** Brake cut motor [09:09:47]Read from MH i2c: 01 [09:09:47]MH_I2C_Read... [09:09:47]*** Stop cut motor [09:09:47]*** Cut end [09:09:47]Read from MH i2c: 01 07 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 53 4A 00 00 00 00 00 FF 0F B2 [09:09:47]process_action close_receipt done [09:09:47]requested_data is exist [09:09:47]produce_requested_data [09:09:47]requested_item fm.sn is exist - process it [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 11 00 00 [09:09:47]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 54 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [09:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:09:47]wFMCommunicate OK [09:09:47]requested_item fd.num is exist - process it [09:09:47]SAM_PROTO_GetFieldsCounters [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 13 00 00 [09:09:47]Write to MH i2c: E2 08 00 55 4A 80 13 00 00 00 00 00 00 1B [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 62 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 62 00 55 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_GetFieldsCounters done [09:09:47]requested_item shift.num is exist - process it [09:09:47]requested_item shift.opened is exist - process it [09:09:47]req_shift_opened [09:09:47]FM_GetShiftState [09:09:47]SAM_PROTO_GetShiftState [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 13 01 00 [09:09:47]Write to MH i2c: E2 08 00 56 4A 80 13 01 00 00 00 00 00 1D [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0E 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0E 00 56 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5E [09:09:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_GetShiftState done [09:09:47]FM_GetShiftState done [09:09:47]req_shift_opened done [09:09:47]requested_item shift.open_date is exist - process it [09:09:47]req_shift_open_date [09:09:47]req_shift_open_date done [09:09:47]produce_requested_data done [09:09:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192007,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:09:47]process_action_free close_receipt [09:09:47]json_value_free [09:09:47]json_value_free done [09:09:47]process_json_proto returns [09:09:47]Send response to host [09:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192007,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:09:47]free response buf [09:09:47]execute_script done [09:09:47]execute_script returns [09:09:47]free content buf [09:09:47]Sock 6.Close socket [09:09:47]Sock 6.Thread stoped [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]accept exits with 5 [09:11:26]New connection [09:11:26]New thread 3066817892 created [09:11:26]Thread 3066961252 joined [09:11:26]Waiting for new connection... [09:11:26] Sock 5.Parse request [09:11:26]Sock 5.Check first char [09:11:26]Sock 5.First char is OK [09:11:26]request: POST /json_proto HTTP/1.0 [09:11:26]Method: POST [09:11:26]URL: /json_proto [09:11:26]Method is POST - this is cgi request [09:11:26]url: /json_proto [09:11:26]query_string will be loaded in cgi processing [09:11:26]execute_cgi json_proto POST (null) [09:11:26]execute_cgi path=json_proto method=POST [09:11:26]POST find Content-Length [09:11:26]Host: 172.17.63.131:8080 [09:11:26]Content-Length: 676 [09:11:26]Content-Type: application/json [09:11:26] [09:11:26]POST finish read [09:11:26]Found Content-Length = 676 [09:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:26]execute_script... [09:11: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)31318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:26]POST & json_proto [09:11:26]process_json_proto [09:11:26]json parsed OK: [09:11:26]protocol is kg_v1.0 [09:11:26]action value=close_receipt [09:11:26]process_action close_receipt [09:11:26]cmd_close_receipt [09:11:26]MH_GetDate [09:11:26]Write to MH i2c: F0 00 00 57 4A 90 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 09 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 09 00 57 4A 00 D1 03 1E 67 22 05 6E 64 EB [09:11:26]GetLastDocTimeStamp 1730020202 [09:11:26]current date 1730020305 [09:11:26]FM_GetShiftState [09:11:26]SAM_PROTO_GetShiftState [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 01 00 [09:11:26]Write to MH i2c: E2 08 00 58 4A 80 13 01 00 00 00 00 00 1F [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 58 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 60 [09:11:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetShiftState done [09:11:26]FM_GetShiftState done [09:11:26]opened in 1729989159 [09:11:26]opened+sec_in_day 1730075559 [09:11:26]quantity*price = 15052 [09:11:26]sum+1 = 15054 [09:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 40 27.10.2024 09:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192008 ФПД: 168597931708960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192008&fm=168597931708960&tin=02508201610067®Number=0000000000091776&sum=15000 [09:11:27]StoreToDocumentArchive [09:11:27]shift 542 fd 192008 [09:11:27]save to /storage/0542/doc_00192008 [09:11:27]save last doc name /storage/0542/doc_00192008 to /storage/kkm_last_doc_name [09:11:27]save OK [09:11:27]Clear old archive folders... [09:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:27]tlvbuf is 01C6F9B0 [09:11:27]SAM_PROTO_ClearQueue [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 09 00 00 [09:11:27]Write to MH i2c: E2 08 00 65 4A 80 09 00 00 00 00 00 00 21 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 65 4A 00 90 00 23 [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]SAM_PROTO_ClearQueue done [09:11:27]KKMCreateOFDPacket [09:11:27]OFDProtocolAddRootSTLVToBuf [09:11:27]FM_MakeSignedData [09:11:27]FM_MakeSignedData [09:11:27]SAM_PROTO_SignData [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 01 02 [09:11:27]Write to MH i2c: E2 08 00 66 4A 80 0D 01 02 00 00 00 00 29 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 66 4A 00 90 00 24 [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]wFMCommunicate request_size=255 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D1 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EE 02 00 35 04 06 00 99 [09:11:27]Write to MH i2c: E2 02 01 67 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D1 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EE 02 00 35 04 06 00 99 00 00 EC [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 67 4A 00 90 00 25 [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]wFMCommunicate request_size=10 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 02 02 05 56 C3 D4 52 20 [09:11:27]Write to MH i2c: E2 0D 00 68 4A 80 0D 02 02 05 00 56 C3 D4 52 20 00 00 95 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 68 4A 00 90 00 26 [09:11:28]RAPDU: 90 00 [09:11:28]wFMCommunicate OK [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 0D 03 02 [09:11:28]Write to MH i2c: E2 08 00 69 4A 80 0D 03 02 00 00 00 00 2E [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0B 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0B 00 69 4A 00 50 FE CE 0F 83 9D A5 A4 90 00 C3 [09:11:28]RAPDU: 50 FE CE 0F 83 9D A5 A4 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_SignData done [09:11:28]FM_MakeSignedData done [09:11:28]CreateOFDProtocolMessage [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 11 00 00 [09:11:28]Write to MH i2c: E2 08 00 6A 4A 80 11 00 00 00 00 00 00 2E [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 6A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [09:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:28]wFMCommunicate OK [09:11:28]CreateOFDProtocolMessage done [09:11:28]OFDSenderStorePacket 192008 [09:11:28]StoreOFDPacket docnum=192008 [09:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 92 07 01 8C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D1 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EE 02 00 35 04 06 00 99 56 C3 D4 52 20 50 FE CE 0F 83 9D A5 A4 [09:11:28]CheckFolder [09:11:28]dirname=/storage/ofd_packets [09:11:28]CheckFolder done [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00192008 [09:11:28]NVStorageSaveData ofd_packets/00192008 [09:11:28]File name is /storage/ofd_packets/00192008 [09:11:28]Write 301 bytes [09:11:28]NVStorageSaveData done [09:11:28]OFDSenderStorePacket done [09:11:28]KKMCreateOFDPacket done [09:11:28]NVStorageSaveData kkm_last_timestamp [09:11:28]File name is /storage/kkm_last_timestamp [09:11:28]Write 4 bytes [09:11:28]NVStorageSaveData done [09:11:28]ExternCall_PrintAddStr [09:11:28]wPrintStart [09:11:28]Write to MH i2c: 01 00 00 6B 4A B5 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 6B 4A 00 00 00 00 00 FF 0F CA [09:11:28]RasterBufferAndPrint [09:11:28]line Счет N : (1)31318 [09:11:28]line ИНН: 02508201610067 [09:11:28]line Контрольно-Кассовый Чек [09:11:28]line ПРОДАЖА [09:11:28]line ТРК (МРК, ГНК) : 21 [09:11:28]line Товар: 2710124130 [09:11:28]line Аи-92-К-5 [09:11:28]line 2.250 * 66.90 [09:11:28]line = 150.53 [09:11:28]line НДС 12% НСП 1% [09:11:28]line > о реализуемом товаре [09:11:28]line ОКРУГЛЕНИЕ: -0.53 [09:11:28]line ИТОГО: 150.00 [09:11:28]line Внесено: 150.00 [09:11:28]line СДАЧА: 0.00 [09:11:28]line НСП 1% : 1.33 [09:11:28]line НДС 12% : 15.98 [09:11:28]line Наличными: 150.00 [09:11:28]line Безнал.: 0.00 [09:11:28]line Место: АЗС № 170 "Партнер Нефть" [09:11:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:11:28]line СНО: Общий режим [09:11:28]line Чек 40 27.10.2024 09:11 [09:11:28]line Смена: 542 ФФД: 1.0 [09:11:28]line ЗНМ: 0300000110 [09:11:28]line РНМ: 0000000000091776 [09:11:28]line Версия ККМ: 001 [09:11:28]line ФМ: 0000000000871754 [09:11:28]line ФД: 192008 [09:11:28]line ФПД: 168597931708960 [09:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192008&fm=168597931708960&tin=02508201610067®Number=0000000000091776&sum=15000 [09:11:28]OFD Sender: Processing packet 192008 [packets to send 75, broken 74] [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00192008 [09:11:28]OFD Sender: To server: pG, [09:11:28]CommunicateWithHost lk.salyk.kg:30040 [09:11:28]ConnectInit lk.salyk.kg [09:11:28]written 0, free lines is 4095 [09:11:28]Connected sock=8 [09:11:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 92 07 01 8C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D1 03 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EE 02 00 35 04 06 00 99 56 C3 D4 52 20 50 FE CE 0F 83 9D A5 A4 [09:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 28 47 00 64 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EE 02 00 F4 03 04 00 99 A8 1D 67 B6 04 01 00 00 31 0C 48 9C AE 25 B5 35 [09:11:28]CommunicateWithHost err = 0 [09:11:28]CheckOFDResponse [09:11:28]1017 (14) - 77093643461234 [09:11:28]1041 (16) - 0000000000871754 [09:11:28]1040 (4) - 192008 [09:11:28]1012 (4) - 27.10.2024 02:42 [09:11:28]1206 (1) - 0 [09:11:28]OFD Sender: Remove packet 192008 [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00192008 [09:11:28]NVStorageDeleteData [09:11:28]Write to MH i2c: 01 00 00 96 4A E0 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 96 4A 00 00 00 00 00 A9 0C 9C [09:11:28]RasterBufferAndPrint [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]written 0, free lines is 3246 [09:11:28]MH_Cut [09:11:28]Write to MH i2c: D1 01 00 9D 4A 01 B9 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: D1 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: D1 01 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: D1 01 00 9D 4A 00 B8 [09:11:28]Write to MH i2c: 01 00 00 9E 4A E8 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:29]OFD Sender: No OFD packet to send [09:11:29]*** Cut start [09:11:29]*** Partial cut [09:11:29]*** CUTSNS_PIN = 1 [09:11:29]*** CUTSNS_PIN = 0 [09:11:30]*** Brake cut motor [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [09:11:30]*** Stop cut motor [09:11:30]*** Cut end [09:11:30]Read from MH i2c: 01 07 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 9E 4A 00 00 00 00 00 FF 0F FD [09:11:30]process_action close_receipt done [09:11:30]requested_data is exist [09:11:30]produce_requested_data [09:11:30]requested_item fm.sn is exist - process it [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 11 00 00 [09:11:30]Write to MH i2c: E2 08 00 9F 4A 80 11 00 00 00 00 00 00 63 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 9F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [09:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:30]wFMCommunicate OK [09:11:30]requested_item fd.num is exist - process it [09:11:30]SAM_PROTO_GetFieldsCounters [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 00 00 [09:11:30]Write to MH i2c: E2 08 00 A0 4A 80 13 00 00 00 00 00 00 66 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 62 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 62 00 A0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetFieldsCounters done [09:11:30]requested_item shift.num is exist - process it [09:11:30]requested_item shift.opened is exist - process it [09:11:30]req_shift_opened [09:11:30]FM_GetShiftState [09:11:30]SAM_PROTO_GetShiftState [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 01 00 [09:11:30]Write to MH i2c: E2 08 00 A1 4A 80 13 01 00 00 00 00 00 68 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 A1 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A9 [09:11:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetShiftState done [09:11:30]FM_GetShiftState done [09:11:30]req_shift_opened done [09:11:30]requested_item shift.open_date is exist - process it [09:11:30]req_shift_open_date [09:11:30]req_shift_open_date done [09:11:30]produce_requested_data done [09:11:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192008,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:11:30]process_action_free close_receipt [09:11:30]json_value_free [09:11:30]json_value_free done [09:11:30]process_json_proto returns [09:11:30]Send response to host [09:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192008,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:11:30]free response buf [09:11:30]execute_script done [09:11:30]execute_script returns [09:11:30]free content buf [09:11:30]Sock 5.Close socket [09:11:30]Sock 5.Thread stoped [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:01]accept exits with 6 [09:14:01]New connection [09:14:01]New thread 3066961252 created [09:14:01]Thread 3066817892 joined [09:14:01]Waiting for new connection... [09:14:01] Sock 6.Parse request [09:14:01]Sock 6.Check first char [09:14:01]Sock 6.First char is OK [09:14:01]request: POST /json_proto HTTP/1.0 [09:14:01]Method: POST [09:14:01]URL: /json_proto [09:14:01]Method is POST - this is cgi request [09:14:01]url: /json_proto [09:14:01]query_string will be loaded in cgi processing [09:14:01]execute_cgi json_proto POST (null) [09:14:01]execute_cgi path=json_proto method=POST [09:14:01]POST find Content-Length [09:14:01]Host: 172.17.63.131:8080 [09:14:01]Content-Length: 676 [09:14:01]Content-Type: application/json [09:14:01] [09:14:01]POST finish read [09:14:01]Found Content-Length = 676 [09:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:01]execute_script... [09:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:01]POST & json_proto [09:14:01]process_json_proto [09:14:01]json parsed OK: [09:14:01]protocol is kg_v1.0 [09:14:01]action value=close_receipt [09:14:01]process_action close_receipt [09:14:01]cmd_close_receipt [09:14:01]MH_GetDate [09:14:01]Write to MH i2c: F0 00 00 A2 4A DB [09:14:01]Write i2c OK [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: F0 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: F0 09 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: F0 09 00 A2 4A 00 6C 04 1E 67 22 05 6E 64 D2 [09:14:01]GetLastDocTimeStamp 1730020305 [09:14:01]current date 1730020460 [09:14:01]FM_GetShiftState [09:14:01]SAM_PROTO_GetShiftState [09:14:01]wFMCommunicate request_size=4 [09:14:01]MH_SAM_APDU [09:14:01]CAPDU: 80 13 01 00 [09:14:01]Write to MH i2c: E2 08 00 A3 4A 80 13 01 00 00 00 00 00 6A [09:14:01]Write i2c OK [09:14:01]MH_I2C_Read... [09:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:01]Read from MH i2c: E2 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 0E 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 0E 00 A3 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AB [09:14:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:14:01]wFMCommunicate OK [09:14:01]SAM_PROTO_GetShiftState done [09:14:01]FM_GetShiftState done [09:14:01]opened in 1729989159 [09:14:01]opened+sec_in_day 1730075559 [09:14:01]quantity*price = 40006 [09:14:01]sum+1 = 40007 [09:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 41 27.10.2024 09:14 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192009 ФПД: 128650119646248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192009&fm=128650119646248&tin=02508201610067®Number=0000000000091776&sum=40000 [09:14:02]StoreToDocumentArchive [09:14:02]shift 542 fd 192009 [09:14:02]save to /storage/0542/doc_00192009 [09:14:02]save last doc name /storage/0542/doc_00192009 to /storage/kkm_last_doc_name [09:14:02]save OK [09:14:02]Clear old archive folders... [09:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:02]tlvbuf is 01609230 [09:14:02]SAM_PROTO_ClearQueue [09:14:02]wFMCommunicate request_size=4 [09:14:02]MH_SAM_APDU [09:14:02]CAPDU: 80 09 00 00 [09:14:02]Write to MH i2c: E2 08 00 B0 4A 80 09 00 00 00 00 00 00 6C [09:14:02]Write i2c OK [09:14:02]MH_I2C_Read... [09:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:02]Read from MH i2c: E2 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 B0 4A 00 90 00 6E [09:14:02]RAPDU: 90 00 [09:14:02]wFMCommunicate OK [09:14:02]SAM_PROTO_ClearQueue done [09:14:02]KKMCreateOFDPacket [09:14:02]OFDProtocolAddRootSTLVToBuf [09:14:02]FM_MakeSignedData [09:14:02]FM_MakeSignedData [09:14:02]SAM_PROTO_SignData [09:14:02]wFMCommunicate request_size=4 [09:14:02]MH_SAM_APDU [09:14:02]CAPDU: 80 0D 01 02 [09:14:02]Write to MH i2c: E2 08 00 B1 4A 80 0D 01 02 00 00 00 00 74 [09:14:02]Write i2c OK [09:14:02]MH_I2C_Read... [09:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:02]Read from MH i2c: E2 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 B1 4A 00 90 00 6F [09:14:02]RAPDU: 90 00 [09:14:02]wFMCommunicate OK [09:14:02]wFMCommunicate request_size=255 [09:14:02]MH_SAM_APDU [09:14:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6C 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EE 02 00 35 04 06 00 75 [09:14:02]Write to MH i2c: E2 02 01 B2 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6C 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EE 02 00 35 04 06 00 75 00 00 83 [09:14:02]Write i2c OK [09:14:02]MH_I2C_Read... [09:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:02]Read from MH i2c: E2 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 [09:14:02]MH_I2C_Read... [09:14:02]Read from MH i2c: E2 03 00 B2 4A 00 90 00 70 [09:14:02]RAPDU: 90 00 [09:14:02]wFMCommunicate OK [09:14:02]wFMCommunicate request_size=10 [09:14:02]MH_SAM_APDU [09:14:02]CAPDU: 80 0D 02 02 05 01 B0 AE 8C 28 [09:14:02]Write to MH i2c: E2 0D 00 B3 4A 80 0D 02 02 05 00 01 B0 AE 8C 28 00 00 94 [09:14:02]Write i2c OK [09:14:02]MH_I2C_Read... [09:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:03]Read from MH i2c: E2 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 03 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 03 00 B3 4A 00 90 00 71 [09:14:03]RAPDU: 90 00 [09:14:03]wFMCommunicate OK [09:14:03]wFMCommunicate request_size=4 [09:14:03]MH_SAM_APDU [09:14:03]CAPDU: 80 0D 03 02 [09:14:03]Write to MH i2c: E2 08 00 B4 4A 80 0D 03 02 00 00 00 00 79 [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:03]Read from MH i2c: E2 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 0B 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 0B 00 B4 4A 00 D0 CB BF B3 8B 1B 65 06 90 00 98 [09:14:03]RAPDU: D0 CB BF B3 8B 1B 65 06 90 00 [09:14:03]wFMCommunicate OK [09:14:03]SAM_PROTO_SignData done [09:14:03]FM_MakeSignedData done [09:14:03]CreateOFDProtocolMessage [09:14:03]wFMCommunicate request_size=4 [09:14:03]MH_SAM_APDU [09:14:03]CAPDU: 80 11 00 00 [09:14:03]Write to MH i2c: E2 08 00 B5 4A 80 11 00 00 00 00 00 00 79 [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:03]Read from MH i2c: E2 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 17 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: E2 17 00 B5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [09:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:14:03]wFMCommunicate OK [09:14:03]CreateOFDProtocolMessage done [09:14:03]OFDSenderStorePacket 192009 [09:14:03]StoreOFDPacket docnum=192009 [09:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 37 07 01 EA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6C 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EE 02 00 35 04 06 00 75 01 B0 AE 8C 28 D0 CB BF B3 8B 1B 65 06 [09:14:03]CheckFolder [09:14:03]dirname=/storage/ofd_packets [09:14:03]CheckFolder done [09:14:03]ProducePacketName [09:14:03]name=ofd_packets/00192009 [09:14:03]NVStorageSaveData ofd_packets/00192009 [09:14:03]File name is /storage/ofd_packets/00192009 [09:14:03]Write 301 bytes [09:14:03]NVStorageSaveData done [09:14:03]OFDSenderStorePacket done [09:14:03]KKMCreateOFDPacket done [09:14:03]NVStorageSaveData kkm_last_timestamp [09:14:03]File name is /storage/kkm_last_timestamp [09:14:03]Write 4 bytes [09:14:03]NVStorageSaveData done [09:14:03]ExternCall_PrintAddStr [09:14:03]wPrintStart [09:14:03]Write to MH i2c: 01 00 00 B6 4A 00 [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 07 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 07 00 B6 4A 00 00 00 00 00 FF 0F 15 [09:14:03]RasterBufferAndPrint [09:14:03]line Счет N : (1)31319 [09:14:03]line ИНН: 02508201610067 [09:14:03]line Контрольно-Кассовый Чек [09:14:03]line ПРОДАЖА [09:14:03]line ТРК (МРК, ГНК) : 12 [09:14:03]line Товар: 2710124130 [09:14:03]line Аи-92-К-5 [09:14:03]line 5.980 * 66.90 [09:14:03]line = 400.06 [09:14:03]line НДС 12% НСП 1% [09:14:03]line > о реализуемом товаре [09:14:03]line ОКРУГЛЕНИЕ: -0.06 [09:14:03]line ИТОГО: 400.00 [09:14:03]line Внесено: 400.00 [09:14:03]line СДАЧА: 0.00 [09:14:03]line НСП 1% : 3.54 [09:14:03]line НДС 12% : 42.48 [09:14:03]line Наличными: 400.00 [09:14:03]line Безнал.: 0.00 [09:14:03]line Место: АЗС № 170 "Партнер Нефть" [09:14:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:14:03]line СНО: Общий режим [09:14:03]line Чек 41 27.10.2024 09:14 [09:14:03]line Смена: 542 ФФД: 1.0 [09:14:03]line ЗНМ: 0300000110 [09:14:03]line РНМ: 0000000000091776 [09:14:03]line Версия ККМ: 001 [09:14:03]line ФМ: 0000000000871754 [09:14:03]line ФД: 192009 [09:14:03]line ФПД: 128650119646248 [09:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192009&fm=128650119646248&tin=02508201610067®Number=0000000000091776&sum=40000 [09:14:03]OFD Sender: Processing packet 192009 [packets to send 75, broken 74] [09:14:03]ProducePacketName [09:14:03]name=ofd_packets/00192009 [09:14:03]OFD Sender: To server: pG, [09:14:03]CommunicateWithHost lk.salyk.kg:30040 [09:14:03]ConnectInit lk.salyk.kg [09:14:03]written 0, free lines is 4095 [09:14:03]Connected sock=8 [09:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 37 07 01 EA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6C 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EE 02 00 35 04 06 00 75 01 B0 AE 8C 28 D0 CB BF B3 8B 1B 65 06 [09:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 8D 47 00 2D 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EE 02 00 F4 03 04 00 34 A9 1D 67 B6 04 01 00 00 A0 D5 35 38 85 8E D2 CB [09:14:03]CommunicateWithHost err = 0 [09:14:03]CheckOFDResponse [09:14:03]1017 (14) - 77093643461234 [09:14:03]1041 (16) - 0000000000871754 [09:14:03]1040 (4) - 192009 [09:14:03]1012 (4) - 27.10.2024 02:45 [09:14:03]1206 (1) - 0 [09:14:03]OFD Sender: Remove packet 192009 [09:14:03]ProducePacketName [09:14:03]name=ofd_packets/00192009 [09:14:03]NVStorageDeleteData [09:14:03]Write to MH i2c: 01 00 00 E1 4A 2B [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 07 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: 01 07 00 E1 4A 00 00 00 00 00 9B 0C D9 [09:14:03]RasterBufferAndPrint [09:14:03]line [09:14:03]line [09:14:03]line [09:14:03]line [09:14:03]line [09:14:03]written 0, free lines is 3232 [09:14:03]MH_Cut [09:14:03]Write to MH i2c: D1 01 00 E8 4A 01 04 [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: D1 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: D1 01 00 [09:14:03]MH_I2C_Read... [09:14:03]Read from MH i2c: D1 01 00 E8 4A 00 03 [09:14:03]Write to MH i2c: 01 00 00 E9 4A 33 [09:14:03]Write i2c OK [09:14:03]MH_I2C_Read... [09:14:04]OFD Sender: No OFD packet to send [09:14:04]*** Cut start [09:14:04]*** Partial cut [09:14:04]*** CUTSNS_PIN = 1 [09:14:04]*** CUTSNS_PIN = 0 [09:14:05]*** Brake cut motor [09:14:05]Read from MH i2c: 01 [09:14:05]MH_I2C_Read... [09:14:05]*** Stop cut motor [09:14:05]*** Cut end [09:14:05]Read from MH i2c: 01 07 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: 01 07 00 E9 4A 00 00 00 00 00 FF 0F 48 [09:14:05]process_action close_receipt done [09:14:05]requested_data is exist [09:14:05]produce_requested_data [09:14:05]requested_item fm.sn is exist - process it [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 11 00 00 [09:14:05]Write to MH i2c: E2 08 00 EA 4A 80 11 00 00 00 00 00 00 AE [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 17 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 17 00 EA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [09:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:14:05]wFMCommunicate OK [09:14:05]requested_item fd.num is exist - process it [09:14:05]SAM_PROTO_GetFieldsCounters [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 13 00 00 [09:14:05]Write to MH i2c: E2 08 00 EB 4A 80 13 00 00 00 00 00 00 B1 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 62 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 62 00 EB 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:05]wFMCommunicate OK [09:14:05]SAM_PROTO_GetFieldsCounters done [09:14:05]requested_item shift.num is exist - process it [09:14:05]requested_item shift.opened is exist - process it [09:14:05]req_shift_opened [09:14:05]FM_GetShiftState [09:14:05]SAM_PROTO_GetShiftState [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 13 01 00 [09:14:05]Write to MH i2c: E2 08 00 EC 4A 80 13 01 00 00 00 00 00 B3 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 0E 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 0E 00 EC 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F4 [09:14:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:14:05]wFMCommunicate OK [09:14:05]SAM_PROTO_GetShiftState done [09:14:05]FM_GetShiftState done [09:14:05]req_shift_opened done [09:14:05]requested_item shift.open_date is exist - process it [09:14:05]req_shift_open_date [09:14:05]req_shift_open_date done [09:14:05]produce_requested_data done [09:14:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192009,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:14:05]process_action_free close_receipt [09:14:05]json_value_free [09:14:05]json_value_free done [09:14:05]process_json_proto returns [09:14:05]Send response to host [09:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192009,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:14:05]free response buf [09:14:05]execute_script done [09:14:05]execute_script returns [09:14:05]free content buf [09:14:05]Sock 6.Close socket [09:14:05]Sock 6.Thread stoped [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:37]accept exits with 5 [09:15:37]New connection [09:15:37]New thread 3066817892 created [09:15:37]Thread 3066961252 joined [09:15:37]Waiting for new connection... [09:15:37] Sock 5.Parse request [09:15:37]Sock 5.Check first char [09:15:37]Sock 5.First char is OK [09:15:37]request: POST /json_proto HTTP/1.0 [09:15:37]Method: POST [09:15:37]URL: /json_proto [09:15:37]Method is POST - this is cgi request [09:15:37]url: /json_proto [09:15:37]query_string will be loaded in cgi processing [09:15:37]execute_cgi json_proto POST (null) [09:15:37]execute_cgi path=json_proto method=POST [09:15:37]POST find Content-Length [09:15:37]Host: 172.17.63.131:8080 [09:15:37]Content-Length: 865 [09:15:37]Content-Type: application/json [09:15:37] [09:15:37]POST finish read [09:15:37]Found Content-Length = 865 [09:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:37]execute_script... [09:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:37]POST & json_proto [09:15:37]process_json_proto [09:15:37]json parsed OK: [09:15:37]protocol is kg_v1.0 [09:15:37]action value=close_receipt [09:15:37]process_action close_receipt [09:15:37]cmd_close_receipt [09:15:37]MH_GetDate [09:15:37]Write to MH i2c: F0 00 00 ED 4A 26 [09:15:37]Write i2c OK [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 09 00 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 09 00 ED 4A 00 CD 04 1E 67 22 05 6E 64 7E [09:15:37]GetLastDocTimeStamp 1730020460 [09:15:37]current date 1730020557 [09:15:37]FM_GetShiftState [09:15:37]SAM_PROTO_GetShiftState [09:15:37]wFMCommunicate request_size=4 [09:15:37]MH_SAM_APDU [09:15:37]CAPDU: 80 13 01 00 [09:15:37]Write to MH i2c: E2 08 00 EE 4A 80 13 01 00 00 00 00 00 B5 [09:15:37]Write i2c OK [09:15:37]MH_I2C_Read... [09:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:37]Read from MH i2c: E2 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: E2 0E 00 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: E2 0E 00 EE 4A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F6 [09:15:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:15:37]wFMCommunicate OK [09:15:37]SAM_PROTO_GetShiftState done [09:15:37]FM_GetShiftState done [09:15:37]opened in 1729989159 [09:15:37]opened+sec_in_day 1730075559 [09:15:37]quantity*price = 200031 [09:15:37]sum+1 = 200032 [09:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 42 27.10.2024 09:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192010 ФПД: 121076363300992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192010&fm=121076363300992&tin=02508201610067®Number=0000000000091776&sum=200031 [09:15:38]StoreToDocumentArchive [09:15:38]shift 542 fd 192010 [09:15:38]save to /storage/0542/doc_00192010 [09:15:38]save last doc name /storage/0542/doc_00192010 to /storage/kkm_last_doc_name [09:15:38]save OK [09:15:38]Clear old archive folders... [09:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:38]tlvbuf is 01C6F540 [09:15:38]SAM_PROTO_ClearQueue [09:15:38]wFMCommunicate request_size=4 [09:15:38]MH_SAM_APDU [09:15:38]CAPDU: 80 09 00 00 [09:15:38]Write to MH i2c: E2 08 00 FB 4A 80 09 00 00 00 00 00 00 B7 [09:15:38]Write i2c OK [09:15:38]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 FB 4A 00 90 00 B9 [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]SAM_PROTO_ClearQueue done [09:15:39]KKMCreateOFDPacket [09:15:39]OFDProtocolAddRootSTLVToBuf [09:15:39]FM_MakeSignedData [09:15:39]FM_MakeSignedData [09:15:39]SAM_PROTO_SignData [09:15:39]wFMCommunicate request_size=4 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 01 02 [09:15:39]Write to MH i2c: E2 08 00 FC 4A 80 0D 01 02 00 00 00 00 BF [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 FC 4A 00 90 00 BA [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]wFMCommunicate request_size=255 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CD 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EE 02 00 35 04 06 00 6E [09:15:39]Write to MH i2c: E2 02 01 FD 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CD 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EE 02 00 35 04 06 00 6E 00 00 DB [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]wFMCommunicate request_size=10 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 02 02 05 1E 49 A0 10 80 [09:15:39]Write to MH i2c: E2 0D 00 FE 4A 80 0D 02 02 05 00 1E 49 A0 10 80 00 00 63 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]wFMCommunicate request_size=4 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 03 02 [09:15:39]Write to MH i2c: E2 08 00 FF 4A 80 0D 03 02 00 00 00 00 C4 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:39]OFD Sender: No OFD packet to send [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 0B 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 0B 00 FF 4A 00 3F 4A AE 34 59 15 CE 0E 90 00 7A [09:15:39]RAPDU: 3F 4A AE 34 59 15 CE 0E 90 00 [09:15:39]wFMCommunicate OK [09:15:39]SAM_PROTO_SignData done [09:15:39]FM_MakeSignedData done [09:15:39]CreateOFDProtocolMessage [09:15:39]wFMCommunicate request_size=4 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 11 00 00 [09:15:39]Write to MH i2c: E2 08 00 00 4B 80 11 00 00 00 00 00 00 C5 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 17 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 17 00 00 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [09:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:15:39]wFMCommunicate OK [09:15:39]CreateOFDProtocolMessage done [09:15:39]OFDSenderStorePacket 192010 [09:15:39]StoreOFDPacket docnum=192010 [09:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 86 07 01 6A 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CD 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EE 02 00 35 04 06 00 6E 1E 49 A0 10 80 3F 4A AE 34 59 15 CE 0E [09:15:39]CheckFolder [09:15:39]dirname=/storage/ofd_packets [09:15:39]CheckFolder done [09:15:39]ProducePacketName [09:15:39]name=ofd_packets/00192010 [09:15:39]NVStorageSaveData ofd_packets/00192010 [09:15:39]File name is /storage/ofd_packets/00192010 [09:15:39]Write 301 bytes [09:15:39]NVStorageSaveData done [09:15:39]OFDSenderStorePacket done [09:15:39]KKMCreateOFDPacket done [09:15:39]NVStorageSaveData kkm_last_timestamp [09:15:39]File name is /storage/kkm_last_timestamp [09:15:39]Write 4 bytes [09:15:39]NVStorageSaveData done [09:15:39]ExternCall_PrintAddStr [09:15:39]wPrintStart [09:15:39]Write to MH i2c: 01 00 00 01 4B 4C [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 01 4B 00 00 00 00 00 FF 0F 61 [09:15:39]RasterBufferAndPrint [09:15:39]line Счет N : (1)31320 [09:15:39]line ИНН: 02508201610067 [09:15:39]line Контрольно-Кассовый Чек [09:15:39]line ПРОДАЖА [09:15:39]line ТРК (МРК, ГНК) : 21 [09:15:39]line Товар: 2710124130 [09:15:39]line Аи-92-К-5 [09:15:39]line 29.900 * 66.90 [09:15:39]line = 2000.31 [09:15:39]line НДС 12% НСП 1% [09:15:39]line > о реализуемом товаре [09:15:39]line ИТОГО: 2000.31 [09:15:39]line НСП 1% : 17.70 [09:15:39]line НДС 12% : 212.42 [09:15:39]line Наличными: 0.00 [09:15:39]line Безнал.: 2000.31 [09:15:39]line Место: АЗС № 170 "Партнер Нефть" [09:15:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:15:39]line СНО: Общий режим [09:15:39]line Чек 42 27.10.2024 09:15 [09:15:39]line Смена: 542 ФФД: 1.0 [09:15:39]line ЗНМ: 0300000110 [09:15:39]line РНМ: 0000000000091776 [09:15:39]line Версия ККМ: 001 [09:15:39]line Платежная система: Кыргызкоммерцбанк [09:15:39]line ФМ: 0000000000871754 [09:15:39]line ФД: 192010 [09:15:39]line ФПД: 121076363300992 [09:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192010&fm=121076363300992&tin=02508201610067®Number=0000000000091776&sum=200031 [09:15:39]OFD Sender: Processing packet 192010 [packets to send 75, broken 74] [09:15:39]ProducePacketName [09:15:39]name=ofd_packets/00192010 [09:15:39]OFD Sender: To server: pG, [09:15:39]CommunicateWithHost lk.salyk.kg:30040 [09:15:39]ConnectInit lk.salyk.kg [09:15:39]written 0, free lines is 4095 [09:15:39]Connected sock=8 [09:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 86 07 01 6A 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CD 04 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EE 02 00 35 04 06 00 6E 1E 49 A0 10 80 3F 4A AE 34 59 15 CE 0E [09:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4C ED 47 00 15 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EE 02 00 F4 03 04 00 95 A9 1D 67 B6 04 01 00 00 D6 DC E6 1F 93 01 D1 57 [09:15:40]CommunicateWithHost err = 0 [09:15:40]CheckOFDResponse [09:15:40]1017 (14) - 77093643461234 [09:15:40]1041 (16) - 0000000000871754 [09:15:40]1040 (4) - 192010 [09:15:40]1012 (4) - 27.10.2024 02:46 [09:15:40]1206 (1) - 0 [09:15:40]OFD Sender: Remove packet 192010 [09:15:40]ProducePacketName [09:15:40]name=ofd_packets/00192010 [09:15:40]NVStorageDeleteData [09:15:40]Write to MH i2c: 01 00 00 2B 4B 76 [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: 01 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: 01 07 00 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: 01 07 00 2B 4B 00 00 00 00 00 B8 0C 41 [09:15:40]RasterBufferAndPrint [09:15:40]line [09:15:40]line [09:15:40]line [09:15:40]line [09:15:40]line [09:15:40]written 0, free lines is 3264 [09:15:40]MH_Cut [09:15:40]Write to MH i2c: D1 01 00 32 4B 01 4F [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: D1 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: D1 01 00 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: D1 01 00 32 4B 00 4E [09:15:40]Write to MH i2c: 01 00 00 33 4B 7E [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]OFD Sender: No OFD packet to send [09:15:41]*** Cut start [09:15:41]*** Partial cut [09:15:41]*** CUTSNS_PIN = 1 [09:15:41]*** CUTSNS_PIN = 0 [09:15:41]*** Brake cut motor [09:15:41]Read from MH i2c: 01 [09:15:41]MH_I2C_Read... [09:15:41]*** Stop cut motor [09:15:41]*** Cut end [09:15:41]Read from MH i2c: 01 07 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 33 4B 00 00 00 00 00 FF 0F 93 [09:15:41]process_action close_receipt done [09:15:41]requested_data is exist [09:15:41]produce_requested_data [09:15:41]requested_item fm.sn is exist - process it [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 11 00 00 [09:15:41]Write to MH i2c: E2 08 00 34 4B 80 11 00 00 00 00 00 00 F9 [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 17 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 17 00 34 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [09:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:15:41]wFMCommunicate OK [09:15:41]requested_item fd.num is exist - process it [09:15:41]SAM_PROTO_GetFieldsCounters [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 13 00 00 [09:15:41]Write to MH i2c: E2 08 00 35 4B 80 13 00 00 00 00 00 00 FC [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:42]Read from MH i2c: E2 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 62 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 62 00 35 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09:15:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:42]wFMCommunicate OK [09:15:42]SAM_PROTO_GetFieldsCounters done [09:15:42]requested_item shift.num is exist - process it [09:15:42]requested_item shift.opened is exist - process it [09:15:42]req_shift_opened [09:15:42]FM_GetShiftState [09:15:42]SAM_PROTO_GetShiftState [09:15:42]wFMCommunicate request_size=4 [09:15:42]MH_SAM_APDU [09:15:42]CAPDU: 80 13 01 00 [09:15:42]Write to MH i2c: E2 08 00 36 4B 80 13 01 00 00 00 00 00 FE [09:15:42]Write i2c OK [09:15:42]MH_I2C_Read... [09:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:42]Read from MH i2c: E2 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 0E 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 0E 00 36 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3F [09:15:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:15:42]wFMCommunicate OK [09:15:42]SAM_PROTO_GetShiftState done [09:15:42]FM_GetShiftState done [09:15:42]req_shift_opened done [09:15:42]requested_item shift.open_date is exist - process it [09:15:42]req_shift_open_date [09:15:42]req_shift_open_date done [09:15:42]produce_requested_data done [09:15:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192010,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:15:42]process_action_free close_receipt [09:15:42]json_value_free [09:15:42]json_value_free done [09:15:42]process_json_proto returns [09:15:42]Send response to host [09:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192010,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:15:42]free response buf [09:15:42]execute_script done [09:15:42]execute_script returns [09:15:42]free content buf [09:15:42]Sock 5.Close socket [09:15:42]Sock 5.Thread stoped [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:05]accept exits with 6 [09:19:05]New connection [09:19:05]New thread 3066961252 created [09:19:05]Thread 3066817892 joined [09:19:05]Waiting for new connection... [09:19:05] Sock 6.Parse request [09:19:05]Sock 6.Check first char [09:19:05]Sock 6.First char is OK [09:19:05]request: POST /json_proto HTTP/1.0 [09:19:05]Method: POST [09:19:05]URL: /json_proto [09:19:05]Method is POST - this is cgi request [09:19:05]url: /json_proto [09:19:05]query_string will be loaded in cgi processing [09:19:05]execute_cgi json_proto POST (null) [09:19:05]execute_cgi path=json_proto method=POST [09:19:05]POST find Content-Length [09:19:05]Host: 172.17.63.131:8080 [09:19:05]Content-Length: 681 [09:19:05]Content-Type: application/json [09:19:05] [09:19:05]POST finish read [09:19:05]Found Content-Length = 681 [09:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:05]execute_script... [09:19: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)31321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:05]POST & json_proto [09:19:05]process_json_proto [09:19:05]json parsed OK: [09:19:05]protocol is kg_v1.0 [09:19:05]action value=close_receipt [09:19:05]process_action close_receipt [09:19:05]cmd_close_receipt [09:19:05]MH_GetDate [09:19:05]Write to MH i2c: F0 00 00 37 4B 71 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 37 4B 00 9D 05 1E 67 22 05 6E 64 9A [09:19:05]GetLastDocTimeStamp 1730020557 [09:19:05]current date 1730020765 [09:19:05]FM_GetShiftState [09:19:05]SAM_PROTO_GetShiftState [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 13 01 00 [09:19:05]Write to MH i2c: E2 08 00 38 4B 80 13 01 00 00 00 00 00 00 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 38 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 41 [09:19:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_GetShiftState done [09:19:05]FM_GetShiftState done [09:19:05]opened in 1729989159 [09:19:05]opened+sec_in_day 1730075559 [09:19:05]quantity*price = 100015 [09:19:05]sum+1 = 100017 [09:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 43 27.10.2024 09:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192011 ФПД: 259719680051570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192011&fm=259719680051570&tin=02508201610067®Number=0000000000091776&sum=100000 [09:19:07]StoreToDocumentArchive [09:19:07]shift 542 fd 192011 [09:19:07]save to /storage/0542/doc_00192011 [09:19:07]save last doc name /storage/0542/doc_00192011 to /storage/kkm_last_doc_name [09:19:07]save OK [09:19:07]Clear old archive folders... [09:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:07]tlvbuf is 01C6F970 [09:19:07]SAM_PROTO_ClearQueue [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 09 00 00 [09:19:07]Write to MH i2c: E2 08 00 45 4B 80 09 00 00 00 00 00 00 02 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 45 4B 00 90 00 04 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_ClearQueue done [09:19:07]KKMCreateOFDPacket [09:19:07]OFDProtocolAddRootSTLVToBuf [09:19:07]FM_MakeSignedData [09:19:07]FM_MakeSignedData [09:19:07]SAM_PROTO_SignData [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 01 02 [09:19:07]Write to MH i2c: E2 08 00 46 4B 80 0D 01 02 00 00 00 00 0A [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 46 4B 00 90 00 05 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=255 [09:19:07]MH_SAM_APDU [09:19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9D 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EE 02 00 35 04 06 00 EC [09:19:07]Write to MH i2c: E2 02 01 47 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9D 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EE 02 00 35 04 06 00 EC 00 00 F1 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 47 4B 00 90 00 06 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=10 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 02 02 05 36 B3 45 49 72 [09:19:07]Write to MH i2c: E2 0D 00 48 4B 80 0D 02 02 05 00 36 B3 45 49 72 00 00 00 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 48 4B 00 90 00 07 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 03 02 [09:19:07]Write to MH i2c: E2 08 00 49 4B 80 0D 03 02 00 00 00 00 0F [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 49 4B 00 C8 22 4B 18 E9 7A BD 1E 90 00 9B [09:19:07]RAPDU: C8 22 4B 18 E9 7A BD 1E 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_SignData done [09:19:07]FM_MakeSignedData done [09:19:07]CreateOFDProtocolMessage [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 4A 4B 80 11 00 00 00 00 00 00 0F [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 4A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [09:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:07]wFMCommunicate OK [09:19:07]CreateOFDProtocolMessage done [09:19:07]OFDSenderStorePacket 192011 [09:19:07]StoreOFDPacket docnum=192011 [09:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA AF 07 01 C5 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9D 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EE 02 00 35 04 06 00 EC 36 B3 45 49 72 C8 22 4B 18 E9 7A BD 1E [09:19:07]CheckFolder [09:19:07]dirname=/storage/ofd_packets [09:19:07]CheckFolder done [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00192011 [09:19:07]NVStorageSaveData ofd_packets/00192011 [09:19:07]File name is /storage/ofd_packets/00192011 [09:19:07]Write 301 bytes [09:19:07]NVStorageSaveData done [09:19:07]OFDSenderStorePacket done [09:19:07]KKMCreateOFDPacket done [09:19:07]NVStorageSaveData kkm_last_timestamp [09:19:07]File name is /storage/kkm_last_timestamp [09:19:07]Write 4 bytes [09:19:07]NVStorageSaveData done [09:19:07]ExternCall_PrintAddStr [09:19:07]wPrintStart [09:19:07]Write to MH i2c: 01 00 00 4B 4B 96 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 4B 4B 00 00 00 00 00 FF 0F AB [09:19:07]RasterBufferAndPrint [09:19:07]line Счет N : (1)31321 [09:19:07]line ИНН: 02508201610067 [09:19:07]line Контрольно-Кассовый Чек [09:19:07]line ПРОДАЖА [09:19:07]line ТРК (МРК, ГНК) : 21 [09:19:07]line Товар: 2710124130 [09:19:07]line Аи-92-К-5 [09:19:07]line 14.950 * 66.90 [09:19:07]line = 1000.16 [09:19:07]line НДС 12% НСП 1% [09:19:07]line > о реализуемом товаре [09:19:07]line ОКРУГЛЕНИЕ: -0.16 [09:19:07]line ИТОГО: 1000.00 [09:19:07]line Внесено: 1000.00 [09:19:07]line СДАЧА: 0.00 [09:19:07]line НСП 1% : 8.85 [09:19:07]line НДС 12% : 106.21 [09:19:07]line Наличными: 1000.00 [09:19:07]line Безнал.: 0.00 [09:19:07]line Место: АЗС № 170 "Партнер Нефть" [09:19:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:19:07]line СНО: Общий режим [09:19:07]line Чек 43 27.10.2024 09:19 [09:19:07]line Смена: 542 ФФД: 1.0 [09:19:07]line ЗНМ: 0300000110 [09:19:07]line РНМ: 0000000000091776 [09:19:07]line Версия ККМ: 001 [09:19:07]line ФМ: 0000000000871754 [09:19:07]line ФД: 192011 [09:19:07]line ФПД: 259719680051570 [09:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192011&fm=259719680051570&tin=02508201610067®Number=0000000000091776&sum=100000 [09:19:07]OFD Sender: Processing packet 192011 [packets to send 75, broken 74] [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00192011 [09:19:07]OFD Sender: To server: pG, [09:19:07]CommunicateWithHost lk.salyk.kg:30040 [09:19:07]ConnectInit lk.salyk.kg [09:19:07]written 0, free lines is 4095 [09:19:08]Connected sock=8 [09:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA AF 07 01 C5 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 9D 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EE 02 00 35 04 06 00 EC 36 B3 45 49 72 C8 22 4B 18 E9 7A BD 1E [09:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 34 12 47 00 72 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EE 02 00 F4 03 04 00 65 AA 1D 67 B6 04 01 00 00 E4 A8 C6 0B A9 A2 61 A3 [09:19:08]CommunicateWithHost err = 0 [09:19:08]CheckOFDResponse [09:19:08]1017 (14) - 77093643461234 [09:19:08]1041 (16) - 0000000000871754 [09:19:08]1040 (4) - 192011 [09:19:08]1012 (4) - 27.10.2024 02:50 [09:19:08]1206 (1) - 0 [09:19:08]OFD Sender: Remove packet 192011 [09:19:08]ProducePacketName [09:19:08]name=ofd_packets/00192011 [09:19:08]NVStorageDeleteData [09:19:08]Write to MH i2c: 01 00 00 76 4B C1 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 76 4B 00 00 00 00 00 B7 0C 8B [09:19:08]RasterBufferAndPrint [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]written 0, free lines is 3260 [09:19:08]MH_Cut [09:19:08]Write to MH i2c: D1 01 00 7D 4B 01 9A [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 7D 4B 00 99 [09:19:08]Write to MH i2c: 01 00 00 7E 4B C9 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]OFD Sender: No OFD packet to send [09:19:09]*** Cut start [09:19:09]*** Partial cut [09:19:09]*** CUTSNS_PIN = 1 [09:19:09]*** CUTSNS_PIN = 0 [09:19:09]*** Brake cut motor [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]*** Stop cut motor [09:19:09]*** Cut end [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 7E 4B 00 00 00 00 00 FF 0F DE [09:19:09]process_action close_receipt done [09:19:09]requested_data is exist [09:19:09]produce_requested_data [09:19:09]requested_item fm.sn is exist - process it [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 11 00 00 [09:19:09]Write to MH i2c: E2 08 00 7F 4B 80 11 00 00 00 00 00 00 44 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 17 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 17 00 7F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [09:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:10]wFMCommunicate OK [09:19:10]requested_item fd.num is exist - process it [09:19:10]SAM_PROTO_GetFieldsCounters [09:19:10]wFMCommunicate request_size=4 [09:19:10]MH_SAM_APDU [09:19:10]CAPDU: 80 13 00 00 [09:19:10]Write to MH i2c: E2 08 00 80 4B 80 13 00 00 00 00 00 00 47 [09:19:10]Write i2c OK [09:19:10]MH_I2C_Read... [09:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:10]Read from MH i2c: E2 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 62 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 62 00 80 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:10]wFMCommunicate OK [09:19:10]SAM_PROTO_GetFieldsCounters done [09:19:10]requested_item shift.num is exist - process it [09:19:10]requested_item shift.opened is exist - process it [09:19:10]req_shift_opened [09:19:10]FM_GetShiftState [09:19:10]SAM_PROTO_GetShiftState [09:19:10]wFMCommunicate request_size=4 [09:19:10]MH_SAM_APDU [09:19:10]CAPDU: 80 13 01 00 [09:19:10]Write to MH i2c: E2 08 00 81 4B 80 13 01 00 00 00 00 00 49 [09:19:10]Write i2c OK [09:19:10]MH_I2C_Read... [09:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:10]Read from MH i2c: E2 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 0E 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 0E 00 81 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8A [09:19:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:19:10]wFMCommunicate OK [09:19:10]SAM_PROTO_GetShiftState done [09:19:10]FM_GetShiftState done [09:19:10]req_shift_opened done [09:19:10]requested_item shift.open_date is exist - process it [09:19:10]req_shift_open_date [09:19:10]req_shift_open_date done [09:19:10]produce_requested_data done [09:19:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192011,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:19:10]process_action_free close_receipt [09:19:10]json_value_free [09:19:10]json_value_free done [09:19:10]process_json_proto returns [09:19:10]Send response to host [09:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192011,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:19:10]free response buf [09:19:10]execute_script done [09:19:10]execute_script returns [09:19:10]free content buf [09:19:10]Sock 6.Close socket [09:19:10]Sock 6.Thread stoped [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]accept exits with 5 [09:19:43]New connection [09:19:43]New thread 3066817892 created [09:19:43]Thread 3066961252 joined [09:19:43]Waiting for new connection... [09:19:43] Sock 5.Parse request [09:19:43]Sock 5.Check first char [09:19:43]Sock 5.First char is OK [09:19:43]request: POST /json_proto HTTP/1.0 [09:19:43]Method: POST [09:19:43]URL: /json_proto [09:19:43]Method is POST - this is cgi request [09:19:43]url: /json_proto [09:19:43]query_string will be loaded in cgi processing [09:19:43]execute_cgi json_proto POST (null) [09:19:43]execute_cgi path=json_proto method=POST [09:19:43]POST find Content-Length [09:19:43]Host: 172.17.63.131:8080 [09:19:43]Content-Length: 676 [09:19:43]Content-Type: application/json [09:19:43] [09:19:43]POST finish read [09:19:43]Found Content-Length = 676 [09:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:43]execute_script... [09:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:43]POST & json_proto [09:19:43]process_json_proto [09:19:43]json parsed OK: [09:19:43]protocol is kg_v1.0 [09:19:43]action value=close_receipt [09:19:43]process_action close_receipt [09:19:43]cmd_close_receipt [09:19:43]MH_GetDate [09:19:43]Write to MH i2c: F0 00 00 82 4B BC [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 09 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: F0 09 00 82 4B 00 C2 05 1E 67 22 05 6E 64 0A [09:19:43]GetLastDocTimeStamp 1730020765 [09:19:43]current date 1730020802 [09:19:43]FM_GetShiftState [09:19:43]SAM_PROTO_GetShiftState [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 13 01 00 [09:19:43]Write to MH i2c: E2 08 00 83 4B 80 13 01 00 00 00 00 00 4B [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 83 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8C [09:19:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_GetShiftState done [09:19:43]FM_GetShiftState done [09:19:43]opened in 1729989159 [09:19:43]opened+sec_in_day 1730075559 [09:19:43]quantity*price = 50041 [09:19:43]sum+1 = 50042 [09:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 44 27.10.2024 09:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192012 ФПД: 75696905514641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192012&fm=75696905514641&tin=02508201610067®Number=0000000000091776&sum=50000 [09:19:44]StoreToDocumentArchive [09:19:44]shift 542 fd 192012 [09:19:44]save to /storage/0542/doc_00192012 [09:19:44]save last doc name /storage/0542/doc_00192012 to /storage/kkm_last_doc_name [09:19:44]save OK [09:19:44]Clear old archive folders... [09:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:44]tlvbuf is 01D133C0 [09:19:44]SAM_PROTO_ClearQueue [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 09 00 00 [09:19:44]Write to MH i2c: E2 08 00 90 4B 80 09 00 00 00 00 00 00 4D [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 90 4B 00 90 00 4F [09:19:44]RAPDU: 90 00 [09:19:44]wFMCommunicate OK [09:19:44]SAM_PROTO_ClearQueue done [09:19:44]KKMCreateOFDPacket [09:19:44]OFDProtocolAddRootSTLVToBuf [09:19:44]FM_MakeSignedData [09:19:44]FM_MakeSignedData [09:19:44]SAM_PROTO_SignData [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 0D 01 02 [09:19:44]Write to MH i2c: E2 08 00 91 4B 80 0D 01 02 00 00 00 00 55 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 91 4B 00 90 00 50 [09:19:44]RAPDU: 90 00 [09:19:44]wFMCommunicate OK [09:19:44]wFMCommunicate request_size=255 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EE 02 00 35 04 06 00 44 [09:19:44]Write to MH i2c: E2 02 01 92 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EE 02 00 35 04 06 00 44 00 00 C1 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 92 4B 00 90 00 51 [09:19:44]RAPDU: 90 00 [09:19:44]wFMCommunicate OK [09:19:44]wFMCommunicate request_size=10 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 0D 02 02 05 D8 8F 29 EE 91 [09:19:44]Write to MH i2c: E2 0D 00 93 4B 80 0D 02 02 05 00 D8 8F 29 EE 91 00 00 71 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 03 00 93 4B 00 90 00 52 [09:19:44]RAPDU: 90 00 [09:19:44]wFMCommunicate OK [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 0D 03 02 [09:19:44]Write to MH i2c: E2 08 00 94 4B 80 0D 03 02 00 00 00 00 5A [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 0B 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 0B 00 94 4B 00 40 CD 83 44 11 81 60 D3 90 00 F4 [09:19:44]RAPDU: 40 CD 83 44 11 81 60 D3 90 00 [09:19:44]wFMCommunicate OK [09:19:44]SAM_PROTO_SignData done [09:19:44]FM_MakeSignedData done [09:19:44]CreateOFDProtocolMessage [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 11 00 00 [09:19:44]Write to MH i2c: E2 08 00 95 4B 80 11 00 00 00 00 00 00 5A [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 17 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 17 00 95 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [09:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:44]wFMCommunicate OK [09:19:44]CreateOFDProtocolMessage done [09:19:44]OFDSenderStorePacket 192012 [09:19:44]StoreOFDPacket docnum=192012 [09:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E A4 07 01 29 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EE 02 00 35 04 06 00 44 D8 8F 29 EE 91 40 CD 83 44 11 81 60 D3 [09:19:44]CheckFolder [09:19:44]dirname=/storage/ofd_packets [09:19:44]CheckFolder done [09:19:44]ProducePacketName [09:19:44]name=ofd_packets/00192012 [09:19:44]NVStorageSaveData ofd_packets/00192012 [09:19:44]File name is /storage/ofd_packets/00192012 [09:19:44]Write 301 bytes [09:19:44]NVStorageSaveData done [09:19:44]OFDSenderStorePacket done [09:19:44]KKMCreateOFDPacket done [09:19:44]NVStorageSaveData kkm_last_timestamp [09:19:44]File name is /storage/kkm_last_timestamp [09:19:44]Write 4 bytes [09:19:44]NVStorageSaveData done [09:19:44]ExternCall_PrintAddStr [09:19:44]wPrintStart [09:19:44]Write to MH i2c: 01 00 00 96 4B E1 [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 07 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: 01 07 00 96 4B 00 00 00 00 00 FF 0F F6 [09:19:44]RasterBufferAndPrint [09:19:44]line Счет N : (1)31322 [09:19:44]line ИНН: 02508201610067 [09:19:44]line Контрольно-Кассовый Чек [09:19:44]line ПРОДАЖА [09:19:44]line ТРК (МРК, ГНК) : 12 [09:19:44]line Товар: 2710124130 [09:19:44]line Аи-92-К-5 [09:19:44]line 7.480 * 66.90 [09:19:44]line = 500.41 [09:19:44]line НДС 12% НСП 1% [09:19:44]line > о реализуемом товаре [09:19:44]line ОКРУГЛЕНИЕ: -0.41 [09:19:44]line ИТОГО: 500.00 [09:19:44]line Внесено: 500.00 [09:19:44]line СДАЧА: 0.00 [09:19:44]line НСП 1% : 4.43 [09:19:44]line НДС 12% : 53.14 [09:19:44]line Наличными: 500.00 [09:19:44]line Безнал.: 0.00 [09:19:44]line Место: АЗС № 170 "Партнер Нефть" [09:19:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:19:44]line СНО: Общий режим [09:19:44]line Чек 44 27.10.2024 09:20 [09:19:44]line Смена: 542 ФФД: 1.0 [09:19:44]line ЗНМ: 0300000110 [09:19:44]line РНМ: 0000000000091776 [09:19:44]line Версия ККМ: 001 [09:19:44]line ФМ: 0000000000871754 [09:19:44]line ФД: 192012 [09:19:44]line ФПД: 75696905514641 [09:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192012&fm=75696905514641&tin=02508201610067®Number=0000000000091776&sum=50000 [09:19:45]OFD Sender: Processing packet 192012 [packets to send 75, broken 74] [09:19:45]ProducePacketName [09:19:45]name=ofd_packets/00192012 [09:19:45]OFD Sender: To server: pG, [09:19:45]CommunicateWithHost lk.salyk.kg:30040 [09:19:45]ConnectInit lk.salyk.kg [09:19:45]written 0, free lines is 4095 [09:19:45]Connected sock=8 [09:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E A4 07 01 29 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 05 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EE 02 00 35 04 06 00 44 D8 8F 29 EE 91 40 CD 83 44 11 81 60 D3 [09:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 B3 47 00 D1 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EE 02 00 F4 03 04 00 8A AA 1D 67 B6 04 01 00 00 C1 2A F5 8E 62 A0 33 53 [09:19:45]CommunicateWithHost err = 0 [09:19:45]CheckOFDResponse [09:19:45]1017 (14) - 77093643461234 [09:19:45]1041 (16) - 0000000000871754 [09:19:45]1040 (4) - 192012 [09:19:45]1012 (4) - 27.10.2024 02:50 [09:19:45]1206 (1) - 0 [09:19:45]OFD Sender: Remove packet 192012 [09:19:45]ProducePacketName [09:19:45]name=ofd_packets/00192012 [09:19:45]NVStorageDeleteData [09:19:45]Write to MH i2c: 01 00 00 C1 4B 0C [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 07 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: 01 07 00 C1 4B 00 00 00 00 00 93 0C B2 [09:19:45]RasterBufferAndPrint [09:19:45]line [09:19:45]line [09:19:45]line [09:19:45]line [09:19:45]line [09:19:45]written 0, free lines is 3225 [09:19:45]MH_Cut [09:19:45]Write to MH i2c: D1 01 00 C8 4B 01 E5 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: D1 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: D1 01 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: D1 01 00 C8 4B 00 E4 [09:19:45]Write to MH i2c: 01 00 00 C9 4B 14 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]OFD Sender: No OFD packet to send [09:19:46]*** Cut start [09:19:46]*** Partial cut [09:19:46]*** CUTSNS_PIN = 1 [09:19:46]*** CUTSNS_PIN = 0 [09:19:46]*** Brake cut motor [09:19:47]Read from MH i2c: 01 [09:19:47]MH_I2C_Read... [09:19:47]*** Stop cut motor [09:19:47]*** Cut end [09:19:47]Read from MH i2c: 01 07 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 C9 4B 00 00 00 00 00 FF 0F 29 [09:19:47]process_action close_receipt done [09:19:47]requested_data is exist [09:19:47]produce_requested_data [09:19:47]requested_item fm.sn is exist - process it [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 11 00 00 [09:19:47]Write to MH i2c: E2 08 00 CA 4B 80 11 00 00 00 00 00 00 8F [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:47]Read from MH i2c: E2 17 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 17 00 CA 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [09:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:47]wFMCommunicate OK [09:19:47]requested_item fd.num is exist - process it [09:19:47]SAM_PROTO_GetFieldsCounters [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 13 00 00 [09:19:47]Write to MH i2c: E2 08 00 CB 4B 80 13 00 00 00 00 00 00 92 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 62 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 62 00 CB 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [09:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:47]wFMCommunicate OK [09:19:47]SAM_PROTO_GetFieldsCounters done [09:19:47]requested_item shift.num is exist - process it [09:19:47]requested_item shift.opened is exist - process it [09:19:47]req_shift_opened [09:19:47]FM_GetShiftState [09:19:47]SAM_PROTO_GetShiftState [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 13 01 00 [09:19:47]Write to MH i2c: E2 08 00 CC 4B 80 13 01 00 00 00 00 00 94 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 0E 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 0E 00 CC 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D5 [09:19:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:19:47]wFMCommunicate OK [09:19:47]SAM_PROTO_GetShiftState done [09:19:47]FM_GetShiftState done [09:19:47]req_shift_opened done [09:19:47]requested_item shift.open_date is exist - process it [09:19:47]req_shift_open_date [09:19:47]req_shift_open_date done [09:19:47]produce_requested_data done [09:19:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192012,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:19:47]process_action_free close_receipt [09:19:47]json_value_free [09:19:47]json_value_free done [09:19:47]process_json_proto returns [09:19:47]Send response to host [09:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192012,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:19:47]free response buf [09:19:47]execute_script done [09:19:47]execute_script returns [09:19:47]free content buf [09:19:47]Sock 5.Close socket [09:19:47]Sock 5.Thread stoped [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:32]accept exits with 6 [09:21:32]New connection [09:21:32]New thread 3066961252 created [09:21:32]Thread 3066817892 joined [09:21:32]Waiting for new connection... [09:21:32] Sock 6.Parse request [09:21:32]Sock 6.Check first char [09:21:32]Sock 6.First char is OK [09:21:32]request: POST /json_proto HTTP/1.0 [09:21:32]Method: POST [09:21:32]URL: /json_proto [09:21:32]Method is POST - this is cgi request [09:21:32]url: /json_proto [09:21:32]query_string will be loaded in cgi processing [09:21:32]execute_cgi json_proto POST (null) [09:21:32]execute_cgi path=json_proto method=POST [09:21:32]POST find Content-Length [09:21:32]Host: 172.17.63.131:8080 [09:21:32]Content-Length: 676 [09:21:32]Content-Type: application/json [09:21:32] [09:21:32]POST finish read [09:21:32]Found Content-Length = 676 [09:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:32]execute_script... [09:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:32]POST & json_proto [09:21:32]process_json_proto [09:21:32]json parsed OK: [09:21:32]protocol is kg_v1.0 [09:21:32]action value=close_receipt [09:21:32]process_action close_receipt [09:21:32]cmd_close_receipt [09:21:32]MH_GetDate [09:21:32]Write to MH i2c: F0 00 00 CD 4B 07 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 09 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: F0 09 00 CD 4B 00 30 06 1E 67 22 05 6E 64 C4 [09:21:32]GetLastDocTimeStamp 1730020802 [09:21:32]current date 1730020912 [09:21:32]FM_GetShiftState [09:21:32]SAM_PROTO_GetShiftState [09:21:32]wFMCommunicate request_size=4 [09:21:32]MH_SAM_APDU [09:21:32]CAPDU: 80 13 01 00 [09:21:32]Write to MH i2c: E2 08 00 CE 4B 80 13 01 00 00 00 00 00 96 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:32]Read from MH i2c: E2 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: E2 0E 00 [09:21:32]MH_I2C_Read... [09:21:32]Read from MH i2c: E2 0E 00 CE 4B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D7 [09:21:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:21:32]wFMCommunicate OK [09:21:32]SAM_PROTO_GetShiftState done [09:21:32]FM_GetShiftState done [09:21:32]opened in 1729989159 [09:21:32]opened+sec_in_day 1730075559 [09:21:32]quantity*price = 28031 [09:21:32]sum+1 = 28032 [09:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 45 27.10.2024 09:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192013 ФПД: 29733140613722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092152&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192013&fm=29733140613722&tin=02508201610067®Number=0000000000091776&sum=28000 [09:21:34]StoreToDocumentArchive [09:21:34]shift 542 fd 192013 [09:21:34]save to /storage/0542/doc_00192013 [09:21:34]save last doc name /storage/0542/doc_00192013 to /storage/kkm_last_doc_name [09:21:34]save OK [09:21:34]Clear old archive folders... [09:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:34]tlvbuf is 01614890 [09:21:34]SAM_PROTO_ClearQueue [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 09 00 00 [09:21:34]Write to MH i2c: E2 08 00 DB 4B 80 09 00 00 00 00 00 00 98 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 DB 4B 00 90 00 9A [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]SAM_PROTO_ClearQueue done [09:21:34]KKMCreateOFDPacket [09:21:34]OFDProtocolAddRootSTLVToBuf [09:21:34]FM_MakeSignedData [09:21:34]FM_MakeSignedData [09:21:34]SAM_PROTO_SignData [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 01 02 [09:21:34]Write to MH i2c: E2 08 00 DC 4B 80 0D 01 02 00 00 00 00 A0 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 DC 4B 00 90 00 9B [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]wFMCommunicate request_size=255 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 30 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EE 02 00 35 04 06 00 1B [09:21:34]Write to MH i2c: E2 02 01 DD 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 30 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EE 02 00 35 04 06 00 1B 00 00 A3 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 DD 4B 00 90 00 9C [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]wFMCommunicate request_size=10 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 02 02 05 0A C9 48 CA 5A [09:21:34]Write to MH i2c: E2 0D 00 DE 4B 80 0D 02 02 05 00 0A C9 48 CA 5A 00 00 EC [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 03 00 DE 4B 00 90 00 9D [09:21:34]RAPDU: 90 00 [09:21:34]wFMCommunicate OK [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 0D 03 02 [09:21:34]Write to MH i2c: E2 08 00 DF 4B 80 0D 03 02 00 00 00 00 A5 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 0B 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 0B 00 DF 4B 00 5D EE A4 1C 3F 42 BC 4B 90 00 39 [09:21:34]RAPDU: 5D EE A4 1C 3F 42 BC 4B 90 00 [09:21:34]wFMCommunicate OK [09:21:34]SAM_PROTO_SignData done [09:21:34]FM_MakeSignedData done [09:21:34]CreateOFDProtocolMessage [09:21:34]wFMCommunicate request_size=4 [09:21:34]MH_SAM_APDU [09:21:34]CAPDU: 80 11 00 00 [09:21:34]Write to MH i2c: E2 08 00 E0 4B 80 11 00 00 00 00 00 00 A5 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:34]Read from MH i2c: E2 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 17 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: E2 17 00 E0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [09:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:21:34]wFMCommunicate OK [09:21:34]CreateOFDProtocolMessage done [09:21:34]OFDSenderStorePacket 192013 [09:21:34]StoreOFDPacket docnum=192013 [09:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F FB 07 01 BE 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 30 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EE 02 00 35 04 06 00 1B 0A C9 48 CA 5A 5D EE A4 1C 3F 42 BC 4B [09:21:34]CheckFolder [09:21:34]dirname=/storage/ofd_packets [09:21:34]CheckFolder done [09:21:34]ProducePacketName [09:21:34]name=ofd_packets/00192013 [09:21:34]NVStorageSaveData ofd_packets/00192013 [09:21:34]File name is /storage/ofd_packets/00192013 [09:21:34]Write 301 bytes [09:21:34]NVStorageSaveData done [09:21:34]OFDSenderStorePacket done [09:21:34]KKMCreateOFDPacket done [09:21:34]NVStorageSaveData kkm_last_timestamp [09:21:34]File name is /storage/kkm_last_timestamp [09:21:34]Write 4 bytes [09:21:34]NVStorageSaveData done [09:21:34]ExternCall_PrintAddStr [09:21:34]wPrintStart [09:21:34]Write to MH i2c: 01 00 00 E1 4B 2C [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 E1 4B 00 00 00 00 00 FF 0F 41 [09:21:34]RasterBufferAndPrint [09:21:34]line Счет N : (1)31323 [09:21:34]line ИНН: 02508201610067 [09:21:34]line Контрольно-Кассовый Чек [09:21:34]line ПРОДАЖА [09:21:34]line ТРК (МРК, ГНК) : 21 [09:21:34]line Товар: 2710124130 [09:21:34]line Аи-92-К-5 [09:21:34]line 4.190 * 66.90 [09:21:34]line = 280.31 [09:21:34]line НДС 12% НСП 1% [09:21:34]line > о реализуемом товаре [09:21:34]line ОКРУГЛЕНИЕ: -0.31 [09:21:34]line ИТОГО: 280.00 [09:21:34]line Внесено: 280.00 [09:21:34]line СДАЧА: 0.00 [09:21:34]line НСП 1% : 2.48 [09:21:34]line НДС 12% : 29.77 [09:21:34]line Наличными: 280.00 [09:21:34]line Безнал.: 0.00 [09:21:34]line Место: АЗС № 170 "Партнер Нефть" [09:21:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:21:34]line СНО: Общий режим [09:21:34]line Чек 45 27.10.2024 09:21 [09:21:34]line Смена: 542 ФФД: 1.0 [09:21:34]line ЗНМ: 0300000110 [09:21:34]line РНМ: 0000000000091776 [09:21:34]line Версия ККМ: 001 [09:21:34]line ФМ: 0000000000871754 [09:21:34]line ФД: 192013 [09:21:34]line ФПД: 29733140613722 [09:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092152&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192013&fm=29733140613722&tin=02508201610067®Number=0000000000091776&sum=28000 [09:21:34]OFD Sender: Processing packet 192013 [packets to send 75, broken 74] [09:21:34]ProducePacketName [09:21:34]name=ofd_packets/00192013 [09:21:34]OFD Sender: To server: pG, [09:21:34]CommunicateWithHost lk.salyk.kg:30040 [09:21:34]ConnectInit lk.salyk.kg [09:21:34]written 0, free lines is 4095 [09:21:35]Connected sock=8 [09:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F FB 07 01 BE 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 30 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EE 02 00 35 04 06 00 1B 0A C9 48 CA 5A 5D EE A4 1C 3F 42 BC 4B [09:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 97 47 00 47 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EE 02 00 F4 03 04 00 F8 AA 1D 67 B6 04 01 00 00 D1 F3 37 AC 56 45 75 36 [09:21:35]CommunicateWithHost err = 0 [09:21:35]CheckOFDResponse [09:21:35]1017 (14) - 77093643461234 [09:21:35]1041 (16) - 0000000000871754 [09:21:35]1040 (4) - 192013 [09:21:35]1012 (4) - 27.10.2024 02:52 [09:21:35]1206 (1) - 0 [09:21:35]OFD Sender: Remove packet 192013 [09:21:35]ProducePacketName [09:21:35]name=ofd_packets/00192013 [09:21:35]NVStorageDeleteData [09:21:35]Write to MH i2c: 01 00 00 0C 4C 58 [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: 01 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: 01 07 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: 01 07 00 0C 4C 00 00 00 00 00 9B 0C 06 [09:21:35]RasterBufferAndPrint [09:21:35]line [09:21:35]line [09:21:35]line [09:21:35]line [09:21:35]line [09:21:35]written 0, free lines is 3232 [09:21:35]MH_Cut [09:21:35]Write to MH i2c: D1 01 00 13 4C 01 31 [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: D1 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: D1 01 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: D1 01 00 13 4C 00 30 [09:21:35]Write to MH i2c: 01 00 00 14 4C 60 [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]OFD Sender: No OFD packet to send [09:21:36]*** Cut start [09:21:36]*** Partial cut [09:21:36]*** CUTSNS_PIN = 1 [09:21:36]*** CUTSNS_PIN = 0 [09:21:36]*** Brake cut motor [09:21:36]Read from MH i2c: 01 [09:21:36]MH_I2C_Read... [09:21:36]*** Stop cut motor [09:21:36]*** Cut end [09:21:36]Read from MH i2c: 01 07 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: 01 07 00 14 4C 00 00 00 00 00 FF 0F 75 [09:21:36]process_action close_receipt done [09:21:36]requested_data is exist [09:21:36]produce_requested_data [09:21:36]requested_item fm.sn is exist - process it [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 11 00 00 [09:21:36]Write to MH i2c: E2 08 00 15 4C 80 11 00 00 00 00 00 00 DB [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:36]Read from MH i2c: E2 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 17 00 [09:21:36]MH_I2C_Read... [09:21:36]Read from MH i2c: E2 17 00 15 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [09:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:21:36]wFMCommunicate OK [09:21:36]requested_item fd.num is exist - process it [09:21:36]SAM_PROTO_GetFieldsCounters [09:21:36]wFMCommunicate request_size=4 [09:21:36]MH_SAM_APDU [09:21:36]CAPDU: 80 13 00 00 [09:21:36]Write to MH i2c: E2 08 00 16 4C 80 13 00 00 00 00 00 00 DE [09:21:36]Write i2c OK [09:21:36]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 62 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 62 00 16 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_GetFieldsCounters done [09:21:37]requested_item shift.num is exist - process it [09:21:37]requested_item shift.opened is exist - process it [09:21:37]req_shift_opened [09:21:37]FM_GetShiftState [09:21:37]SAM_PROTO_GetShiftState [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 13 01 00 [09:21:37]Write to MH i2c: E2 08 00 17 4C 80 13 01 00 00 00 00 00 E0 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 17 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 21 [09:21:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_GetShiftState done [09:21:37]FM_GetShiftState done [09:21:37]req_shift_opened done [09:21:37]requested_item shift.open_date is exist - process it [09:21:37]req_shift_open_date [09:21:37]req_shift_open_date done [09:21:37]produce_requested_data done [09:21:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192013,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:21:37]process_action_free close_receipt [09:21:37]json_value_free [09:21:37]json_value_free done [09:21:37]process_json_proto returns [09:21:37]Send response to host [09:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192013,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:21:37]free response buf [09:21:37]execute_script done [09:21:37]execute_script returns [09:21:37]free content buf [09:21:37]Sock 6.Close socket [09:21:37]Sock 6.Thread stoped [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:02]accept exits with 5 [09:24:02]New connection [09:24:02]New thread 3066817892 created [09:24:02]Thread 3066961252 joined [09:24:02]Waiting for new connection... [09:24:02] Sock 5.Parse request [09:24:02]Sock 5.Check first char [09:24:02]Sock 5.First char is OK [09:24:02]request: POST /json_proto HTTP/1.0 [09:24:02]Method: POST [09:24:02]URL: /json_proto [09:24:02]Method is POST - this is cgi request [09:24:02]url: /json_proto [09:24:02]query_string will be loaded in cgi processing [09:24:02]execute_cgi json_proto POST (null) [09:24:02]execute_cgi path=json_proto method=POST [09:24:02]POST find Content-Length [09:24:02]Host: 172.17.63.131:8080 [09:24:02]Content-Length: 676 [09:24:02]Content-Type: application/json [09:24:02] [09:24:02]POST finish read [09:24:02]Found Content-Length = 676 [09:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:02]execute_script... [09:24: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)31324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:02]POST & json_proto [09:24:02]process_json_proto [09:24:02]json parsed OK: [09:24:02]protocol is kg_v1.0 [09:24:02]action value=close_receipt [09:24:02]process_action close_receipt [09:24:02]cmd_close_receipt [09:24:02]MH_GetDate [09:24:02]Write to MH i2c: F0 00 00 18 4C 53 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: F0 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: F0 09 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: F0 09 00 18 4C 00 C6 06 1E 67 22 05 6E 64 A6 [09:24:02]GetLastDocTimeStamp 1730020912 [09:24:02]current date 1730021062 [09:24:02]FM_GetShiftState [09:24:02]SAM_PROTO_GetShiftState [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 13 01 00 [09:24:02]Write to MH i2c: E2 08 00 19 4C 80 13 01 00 00 00 00 00 E2 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 0E 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 0E 00 19 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 23 [09:24:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:24:02]wFMCommunicate OK [09:24:02]SAM_PROTO_GetShiftState done [09:24:02]FM_GetShiftState done [09:24:02]opened in 1729989159 [09:24:02]opened+sec_in_day 1730075559 [09:24:02]quantity*price = 50041 [09:24:02]sum+1 = 50042 [09:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 46 27.10.2024 09:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192014 ФПД: 102283181974615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192014&fm=102283181974615&tin=02508201610067®Number=0000000000091776&sum=50000 [09:24:03]StoreToDocumentArchive [09:24:03]shift 542 fd 192014 [09:24:03]save to /storage/0542/doc_00192014 [09:24:03]save last doc name /storage/0542/doc_00192014 to /storage/kkm_last_doc_name [09:24:04]save OK [09:24:04]Clear old archive folders... [09:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:04]tlvbuf is 01C6F4A0 [09:24:04]SAM_PROTO_ClearQueue [09:24:04]wFMCommunicate request_size=4 [09:24:04]MH_SAM_APDU [09:24:04]CAPDU: 80 09 00 00 [09:24:04]Write to MH i2c: E2 08 00 26 4C 80 09 00 00 00 00 00 00 E4 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 26 4C 00 90 00 E6 [09:24:04]RAPDU: 90 00 [09:24:04]wFMCommunicate OK [09:24:04]SAM_PROTO_ClearQueue done [09:24:04]KKMCreateOFDPacket [09:24:04]OFDProtocolAddRootSTLVToBuf [09:24:04]FM_MakeSignedData [09:24:04]FM_MakeSignedData [09:24:04]SAM_PROTO_SignData [09:24:04]wFMCommunicate request_size=4 [09:24:04]MH_SAM_APDU [09:24:04]CAPDU: 80 0D 01 02 [09:24:04]Write to MH i2c: E2 08 00 27 4C 80 0D 01 02 00 00 00 00 EC [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 27 4C 00 90 00 E7 [09:24:04]RAPDU: 90 00 [09:24:04]wFMCommunicate OK [09:24:04]wFMCommunicate request_size=255 [09:24:04]MH_SAM_APDU [09:24: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C6 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EE 02 00 35 04 06 00 5D [09:24:04]Write to MH i2c: E2 02 01 28 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C6 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EE 02 00 35 04 06 00 5D 00 00 7A [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 28 4C 00 90 00 E8 [09:24:04]RAPDU: 90 00 [09:24:04]wFMCommunicate OK [09:24:04]wFMCommunicate request_size=10 [09:24:04]MH_SAM_APDU [09:24:04]CAPDU: 80 0D 02 02 05 06 A8 BA 64 57 [09:24:04]Write to MH i2c: E2 0D 00 29 4C 80 0D 02 02 05 00 06 A8 BA 64 57 00 00 1C [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 03 00 29 4C 00 90 00 E9 [09:24:04]RAPDU: 90 00 [09:24:04]wFMCommunicate OK [09:24:04]wFMCommunicate request_size=4 [09:24:04]MH_SAM_APDU [09:24:04]CAPDU: 80 0D 03 02 [09:24:04]Write to MH i2c: E2 08 00 2A 4C 80 0D 03 02 00 00 00 00 F1 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 0B 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 0B 00 2A 4C 00 46 96 2D D9 10 7A E4 AE 90 00 F0 [09:24:04]RAPDU: 46 96 2D D9 10 7A E4 AE 90 00 [09:24:04]wFMCommunicate OK [09:24:04]SAM_PROTO_SignData done [09:24:04]FM_MakeSignedData done [09:24:04]CreateOFDProtocolMessage [09:24:04]wFMCommunicate request_size=4 [09:24:04]MH_SAM_APDU [09:24:04]CAPDU: 80 11 00 00 [09:24:04]Write to MH i2c: E2 08 00 2B 4C 80 11 00 00 00 00 00 00 F1 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 17 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 17 00 2B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [09:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:24:04]wFMCommunicate OK [09:24:04]CreateOFDProtocolMessage done [09:24:04]OFDSenderStorePacket 192014 [09:24:04]StoreOFDPacket docnum=192014 [09:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 61 07 01 C4 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C6 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EE 02 00 35 04 06 00 5D 06 A8 BA 64 57 46 96 2D D9 10 7A E4 AE [09:24:04]CheckFolder [09:24:04]dirname=/storage/ofd_packets [09:24:04]CheckFolder done [09:24:04]ProducePacketName [09:24:04]name=ofd_packets/00192014 [09:24:04]NVStorageSaveData ofd_packets/00192014 [09:24:04]File name is /storage/ofd_packets/00192014 [09:24:04]Write 301 bytes [09:24:04]NVStorageSaveData done [09:24:04]OFDSenderStorePacket done [09:24:04]KKMCreateOFDPacket done [09:24:04]NVStorageSaveData kkm_last_timestamp [09:24:04]File name is /storage/kkm_last_timestamp [09:24:04]Write 4 bytes [09:24:04]NVStorageSaveData done [09:24:04]ExternCall_PrintAddStr [09:24:04]wPrintStart [09:24:04]Write to MH i2c: 01 00 00 2C 4C 78 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 2C 4C 00 00 00 00 00 FF 0F 8D [09:24:04]RasterBufferAndPrint [09:24:04]line Счет N : (1)31324 [09:24:04]line ИНН: 02508201610067 [09:24:04]line Контрольно-Кассовый Чек [09:24:04]line ПРОДАЖА [09:24:04]line ТРК (МРК, ГНК) : 12 [09:24:04]line Товар: 2710124130 [09:24:04]line Аи-92-К-5 [09:24:04]line 7.480 * 66.90 [09:24:04]line = 500.41 [09:24:04]line НДС 12% НСП 1% [09:24:04]line > о реализуемом товаре [09:24:04]line ОКРУГЛЕНИЕ: -0.41 [09:24:04]line ИТОГО: 500.00 [09:24:04]line Внесено: 500.00 [09:24:04]line СДАЧА: 0.00 [09:24:04]line НСП 1% : 4.43 [09:24:04]line НДС 12% : 53.14 [09:24:04]line Наличными: 500.00 [09:24:04]line Безнал.: 0.00 [09:24:04]line Место: АЗС № 170 "Партнер Нефть" [09:24:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:24:04]line СНО: Общий режим [09:24:04]line Чек 46 27.10.2024 09:24 [09:24:04]line Смена: 542 ФФД: 1.0 [09:24:04]line ЗНМ: 0300000110 [09:24:04]line РНМ: 0000000000091776 [09:24:04]line Версия ККМ: 001 [09:24:04]line ФМ: 0000000000871754 [09:24:04]line ФД: 192014 [09:24:04]line ФПД: 102283181974615 [09:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092422&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192014&fm=102283181974615&tin=02508201610067®Number=0000000000091776&sum=50000 [09:24:04]OFD Sender: Processing packet 192014 [packets to send 75, broken 74] [09:24:04]ProducePacketName [09:24:04]name=ofd_packets/00192014 [09:24:04]OFD Sender: To server: pG, [09:24:04]CommunicateWithHost lk.salyk.kg:30040 [09:24:04]ConnectInit lk.salyk.kg [09:24:04]written 0, free lines is 4095 [09:24:04]Connected sock=8 [09:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 61 07 01 C4 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C6 06 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EE 02 00 35 04 06 00 5D 06 A8 BA 64 57 46 96 2D D9 10 7A E4 AE [09:24:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 3A 47 00 19 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EE 02 00 F4 03 04 00 8E AB 1D 67 B6 04 01 00 00 01 36 DD 00 07 54 A2 F9 [09:24:05]CommunicateWithHost err = 0 [09:24:05]CheckOFDResponse [09:24:05]1017 (14) - 77093643461234 [09:24:05]1041 (16) - 0000000000871754 [09:24:05]1040 (4) - 192014 [09:24:05]1012 (4) - 27.10.2024 02:55 [09:24:05]1206 (1) - 0 [09:24:05]OFD Sender: Remove packet 192014 [09:24:05]ProducePacketName [09:24:05]name=ofd_packets/00192014 [09:24:05]NVStorageDeleteData [09:24:05]Write to MH i2c: 01 00 00 57 4C A3 [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: 01 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: 01 07 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: 01 07 00 57 4C 00 00 00 00 00 93 0C 49 [09:24:05]RasterBufferAndPrint [09:24:05]line [09:24:05]line [09:24:05]line [09:24:05]line [09:24:05]line [09:24:05]written 0, free lines is 3225 [09:24:05]MH_Cut [09:24:05]Write to MH i2c: D1 01 00 5E 4C 01 7C [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: D1 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: D1 01 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: D1 01 00 5E 4C 00 7B [09:24:05]Write to MH i2c: 01 00 00 5F 4C AB [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]OFD Sender: No OFD packet to send [09:24:06]*** Cut start [09:24:06]*** Partial cut [09:24:06]*** CUTSNS_PIN = 1 [09:24:06]*** CUTSNS_PIN = 0 [09:24:06]*** Brake cut motor [09:24:06]Read from MH i2c: 01 [09:24:06]MH_I2C_Read... [09:24:06]*** Stop cut motor [09:24:06]*** Cut end [09:24:06]Read from MH i2c: 01 07 00 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: 01 07 00 5F 4C 00 00 00 00 00 FF 0F C0 [09:24:06]process_action close_receipt done [09:24:06]requested_data is exist [09:24:06]produce_requested_data [09:24:06]requested_item fm.sn is exist - process it [09:24:06]wFMCommunicate request_size=4 [09:24:06]MH_SAM_APDU [09:24:06]CAPDU: 80 11 00 00 [09:24:06]Write to MH i2c: E2 08 00 60 4C 80 11 00 00 00 00 00 00 26 [09:24:06]Write i2c OK [09:24:06]MH_I2C_Read... [09:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:06]Read from MH i2c: E2 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 17 00 [09:24:06]MH_I2C_Read... [09:24:06]Read from MH i2c: E2 17 00 60 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [09:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:24:06]wFMCommunicate OK [09:24:06]requested_item fd.num is exist - process it [09:24:06]SAM_PROTO_GetFieldsCounters [09:24:06]wFMCommunicate request_size=4 [09:24:06]MH_SAM_APDU [09:24:06]CAPDU: 80 13 00 00 [09:24:06]Write to MH i2c: E2 08 00 61 4C 80 13 00 00 00 00 00 00 29 [09:24:06]Write i2c OK [09:24:06]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 62 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 62 00 61 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:24:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:07]wFMCommunicate OK [09:24:07]SAM_PROTO_GetFieldsCounters done [09:24:07]requested_item shift.num is exist - process it [09:24:07]requested_item shift.opened is exist - process it [09:24:07]req_shift_opened [09:24:07]FM_GetShiftState [09:24:07]SAM_PROTO_GetShiftState [09:24:07]wFMCommunicate request_size=4 [09:24:07]MH_SAM_APDU [09:24:07]CAPDU: 80 13 01 00 [09:24:07]Write to MH i2c: E2 08 00 62 4C 80 13 01 00 00 00 00 00 2B [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0E 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0E 00 62 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6C [09:24:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:24:07]wFMCommunicate OK [09:24:07]SAM_PROTO_GetShiftState done [09:24:07]FM_GetShiftState done [09:24:07]req_shift_opened done [09:24:07]requested_item shift.open_date is exist - process it [09:24:07]req_shift_open_date [09:24:07]req_shift_open_date done [09:24:07]produce_requested_data done [09:24:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192014,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:24:07]process_action_free close_receipt [09:24:07]json_value_free [09:24:07]json_value_free done [09:24:07]process_json_proto returns [09:24:07]Send response to host [09:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192014,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:24:07]free response buf [09:24:07]execute_script done [09:24:07]execute_script returns [09:24:07]free content buf [09:24:07]Sock 5.Close socket [09:24:07]Sock 5.Thread stoped [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:22]accept exits with 6 [09:26:22]New connection [09:26:22]New thread 3066961252 created [09:26:22]Thread 3066817892 joined [09:26:22]Waiting for new connection... [09:26:22] Sock 6.Parse request [09:26:22]Sock 6.Check first char [09:26:22]Sock 6.First char is OK [09:26:22]request: POST /json_proto HTTP/1.0 [09:26:22]Method: POST [09:26:22]URL: /json_proto [09:26:22]Method is POST - this is cgi request [09:26:22]url: /json_proto [09:26:22]query_string will be loaded in cgi processing [09:26:22]execute_cgi json_proto POST (null) [09:26:22]execute_cgi path=json_proto method=POST [09:26:22]POST find Content-Length [09:26:22]Host: 172.17.63.131:8080 [09:26:22]Content-Length: 676 [09:26:22]Content-Type: application/json [09:26:22] [09:26:22]POST finish read [09:26:22]Found Content-Length = 676 [09:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:22]execute_script... [09:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:22]POST & json_proto [09:26:22]process_json_proto [09:26:22]json parsed OK: [09:26:22]protocol is kg_v1.0 [09:26:22]action value=close_receipt [09:26:22]process_action close_receipt [09:26:22]cmd_close_receipt [09:26:22]MH_GetDate [09:26:22]Write to MH i2c: F0 00 00 63 4C 9E [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 09 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 09 00 63 4C 00 52 07 1E 67 22 05 6E 64 7E [09:26:22]GetLastDocTimeStamp 1730021062 [09:26:22]current date 1730021202 [09:26:22]FM_GetShiftState [09:26:22]SAM_PROTO_GetShiftState [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 13 01 00 [09:26:22]Write to MH i2c: E2 08 00 64 4C 80 13 01 00 00 00 00 00 2D [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 64 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6E [09:26:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:26:22]wFMCommunicate OK [09:26:22]SAM_PROTO_GetShiftState done [09:26:22]FM_GetShiftState done [09:26:22]opened in 1729989159 [09:26:22]opened+sec_in_day 1730075559 [09:26:22]quantity*price = 20003 [09:26:22]sum+1 = 20004 [09:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 47 27.10.2024 09:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192015 ФПД: 170851615759364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192015&fm=170851615759364&tin=02508201610067®Number=0000000000091776&sum=20000 [09:26:23]StoreToDocumentArchive [09:26:23]shift 542 fd 192015 [09:26:23]save to /storage/0542/doc_00192015 [09:26:23]save last doc name /storage/0542/doc_00192015 to /storage/kkm_last_doc_name [09:26:23]save OK [09:26:23]Clear old archive folders... [09:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:23]tlvbuf is 01A50A30 [09:26:23]SAM_PROTO_ClearQueue [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 09 00 00 [09:26:23]Write to MH i2c: E2 08 00 71 4C 80 09 00 00 00 00 00 00 2F [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 71 4C 00 90 00 31 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_ClearQueue done [09:26:23]KKMCreateOFDPacket [09:26:23]OFDProtocolAddRootSTLVToBuf [09:26:23]FM_MakeSignedData [09:26:23]FM_MakeSignedData [09:26:23]SAM_PROTO_SignData [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 01 02 [09:26:23]Write to MH i2c: E2 08 00 72 4C 80 0D 01 02 00 00 00 00 37 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 72 4C 00 90 00 32 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=255 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 52 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EE 02 00 35 04 06 00 9B [09:26:23]Write to MH i2c: E2 02 01 73 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 52 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EE 02 00 35 04 06 00 9B 00 00 54 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 73 4C 00 90 00 33 [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]wFMCommunicate request_size=10 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 02 02 05 63 7D DD DC 04 [09:26:24]Write to MH i2c: E2 0D 00 74 4C 80 0D 02 02 05 00 63 7D DD DC 04 00 00 E1 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 74 4C 00 90 00 34 [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 03 02 [09:26:24]Write to MH i2c: E2 08 00 75 4C 80 0D 03 02 00 00 00 00 3C [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0B 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0B 00 75 4C 00 AF 59 81 22 BC 38 36 B7 90 00 C9 [09:26:24]RAPDU: AF 59 81 22 BC 38 36 B7 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_SignData done [09:26:24]FM_MakeSignedData done [09:26:24]CreateOFDProtocolMessage [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 11 00 00 [09:26:24]Write to MH i2c: E2 08 00 76 4C 80 11 00 00 00 00 00 00 3C [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 76 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [09:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:24]wFMCommunicate OK [09:26:24]CreateOFDProtocolMessage done [09:26:24]OFDSenderStorePacket 192015 [09:26:24]StoreOFDPacket docnum=192015 [09:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DA C5 07 01 CB 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 52 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EE 02 00 35 04 06 00 9B 63 7D DD DC 04 AF 59 81 22 BC 38 36 B7 [09:26:24]CheckFolder [09:26:24]dirname=/storage/ofd_packets [09:26:24]CheckFolder done [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00192015 [09:26:24]NVStorageSaveData ofd_packets/00192015 [09:26:24]File name is /storage/ofd_packets/00192015 [09:26:24]Write 301 bytes [09:26:24]NVStorageSaveData done [09:26:24]OFDSenderStorePacket done [09:26:24]KKMCreateOFDPacket done [09:26:24]NVStorageSaveData kkm_last_timestamp [09:26:24]File name is /storage/kkm_last_timestamp [09:26:24]Write 4 bytes [09:26:24]NVStorageSaveData done [09:26:24]ExternCall_PrintAddStr [09:26:24]wPrintStart [09:26:24]Write to MH i2c: 01 00 00 77 4C C3 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 77 4C 00 00 00 00 00 FF 0F D8 [09:26:24]RasterBufferAndPrint [09:26:24]line Счет N : (1)31325 [09:26:24]line ИНН: 02508201610067 [09:26:24]line Контрольно-Кассовый Чек [09:26:24]line ПРОДАЖА [09:26:24]line ТРК (МРК, ГНК) : 12 [09:26:24]line Товар: 2710124130 [09:26:24]line Аи-92-К-5 [09:26:24]line 2.990 * 66.90 [09:26:24]line = 200.03 [09:26:24]line НДС 12% НСП 1% [09:26:24]line > о реализуемом товаре [09:26:24]line ОКРУГЛЕНИЕ: -0.03 [09:26:24]line ИТОГО: 200.00 [09:26:24]line Внесено: 200.00 [09:26:24]line СДАЧА: 0.00 [09:26:24]line НСП 1% : 1.77 [09:26:24]line НДС 12% : 21.24 [09:26:24]line Наличными: 200.00 [09:26:24]line Безнал.: 0.00 [09:26:24]line Место: АЗС № 170 "Партнер Нефть" [09:26:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:26:24]line СНО: Общий режим [09:26:24]line Чек 47 27.10.2024 09:26 [09:26:24]line Смена: 542 ФФД: 1.0 [09:26:24]line ЗНМ: 0300000110 [09:26:24]line РНМ: 0000000000091776 [09:26:24]line Версия ККМ: 001 [09:26:24]line ФМ: 0000000000871754 [09:26:24]line ФД: 192015 [09:26:24]line ФПД: 170851615759364 [09:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192015&fm=170851615759364&tin=02508201610067®Number=0000000000091776&sum=20000 [09:26:24]OFD Sender: Processing packet 192015 [packets to send 75, broken 74] [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00192015 [09:26:24]OFD Sender: To server: pG, [09:26:24]CommunicateWithHost lk.salyk.kg:30040 [09:26:24]ConnectInit lk.salyk.kg [09:26:24]written 0, free lines is 4095 [09:26:24]Connected sock=8 [09:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DA C5 07 01 CB 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 52 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EE 02 00 35 04 06 00 9B 63 7D DD DC 04 AF 59 81 22 BC 38 36 B7 [09:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 EA 47 00 90 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EE 02 00 F4 03 04 00 1A AC 1D 67 B6 04 01 00 00 DC 89 F0 83 55 88 ED 9D [09:26:25]CommunicateWithHost err = 0 [09:26:25]CheckOFDResponse [09:26:25]1017 (14) - 77093643461234 [09:26:25]1041 (16) - 0000000000871754 [09:26:25]1040 (4) - 192015 [09:26:25]1012 (4) - 27.10.2024 02:57 [09:26:25]1206 (1) - 0 [09:26:25]OFD Sender: Remove packet 192015 [09:26:25]ProducePacketName [09:26:25]name=ofd_packets/00192015 [09:26:25]NVStorageDeleteData [09:26:25]Write to MH i2c: 01 00 00 A2 4C EE [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 07 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 07 00 A2 4C 00 00 00 00 00 9B 0C 9C [09:26:25]RasterBufferAndPrint [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]written 0, free lines is 3235 [09:26:25]MH_Cut [09:26:25]Write to MH i2c: D1 01 00 A9 4C 01 C7 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 01 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 01 00 A9 4C 00 C6 [09:26:25]Write to MH i2c: 01 00 00 AA 4C F6 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]OFD Sender: No OFD packet to send [09:26:26]*** Cut start [09:26:26]*** Partial cut [09:26:26]*** CUTSNS_PIN = 1 [09:26:26]*** CUTSNS_PIN = 0 [09:26:26]*** Brake cut motor [09:26:26]Read from MH i2c: 01 [09:26:26]MH_I2C_Read... [09:26:26]*** Stop cut motor [09:26:26]*** Cut end [09:26:26]Read from MH i2c: 01 07 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 AA 4C 00 00 00 00 00 FF 0F 0B [09:26:26]process_action close_receipt done [09:26:26]requested_data is exist [09:26:26]produce_requested_data [09:26:26]requested_item fm.sn is exist - process it [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 11 00 00 [09:26:26]Write to MH i2c: E2 08 00 AB 4C 80 11 00 00 00 00 00 00 71 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 AB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [09:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:26]wFMCommunicate OK [09:26:26]requested_item fd.num is exist - process it [09:26:26]SAM_PROTO_GetFieldsCounters [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 00 00 [09:26:26]Write to MH i2c: E2 08 00 AC 4C 80 13 00 00 00 00 00 00 74 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 AC 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetFieldsCounters done [09:26:26]requested_item shift.num is exist - process it [09:26:26]requested_item shift.opened is exist - process it [09:26:26]req_shift_opened [09:26:26]FM_GetShiftState [09:26:26]SAM_PROTO_GetShiftState [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 01 00 [09:26:26]Write to MH i2c: E2 08 00 AD 4C 80 13 01 00 00 00 00 00 76 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 AD 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B7 [09:26:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetShiftState done [09:26:26]FM_GetShiftState done [09:26:26]req_shift_opened done [09:26:26]requested_item shift.open_date is exist - process it [09:26:26]req_shift_open_date [09:26:26]req_shift_open_date done [09:26:26]produce_requested_data done [09:26:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192015,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:26:26]process_action_free close_receipt [09:26:26]json_value_free [09:26:26]json_value_free done [09:26:26]process_json_proto returns [09:26:26]Send response to host [09:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192015,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:26:26]free response buf [09:26:26]execute_script done [09:26:26]execute_script returns [09:26:26]free content buf [09:26:26]Sock 6.Close socket [09:26:26]Sock 6.Thread stoped [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:26]accept exits with 5 [09:28:26]New connection [09:28:26]New thread 3066817892 created [09:28:26]Thread 3066961252 joined [09:28:26]Waiting for new connection... [09:28:26] Sock 5.Parse request [09:28:26]Sock 5.Check first char [09:28:26]Sock 5.First char is OK [09:28:26]request: POST /json_proto HTTP/1.0 [09:28:26]Method: POST [09:28:26]URL: /json_proto [09:28:26]Method is POST - this is cgi request [09:28:26]url: /json_proto [09:28:26]query_string will be loaded in cgi processing [09:28:26]execute_cgi json_proto POST (null) [09:28:26]execute_cgi path=json_proto method=POST [09:28:26]POST find Content-Length [09:28:26]Host: 172.17.63.131:8080 [09:28:26]Content-Length: 676 [09:28:26]Content-Type: application/json [09:28:26] [09:28:26]POST finish read [09:28:26]Found Content-Length = 676 [09:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]execute_script... [09:28: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)31326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]POST & json_proto [09:28:26]process_json_proto [09:28:26]json parsed OK: [09:28:26]protocol is kg_v1.0 [09:28:26]action value=close_receipt [09:28:26]process_action close_receipt [09:28:26]cmd_close_receipt [09:28:26]MH_GetDate [09:28:26]Write to MH i2c: F0 00 00 AE 4C E9 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 AE 4C 00 CD 07 1E 67 22 05 6E 64 44 [09:28:26]GetLastDocTimeStamp 1730021202 [09:28:26]current date 1730021325 [09:28:26]FM_GetShiftState [09:28:26]SAM_PROTO_GetShiftState [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 13 01 00 [09:28:26]Write to MH i2c: E2 08 00 AF 4C 80 13 01 00 00 00 00 00 78 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 AF 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B9 [09:28:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_GetShiftState done [09:28:26]FM_GetShiftState done [09:28:26]opened in 1729989159 [09:28:26]opened+sec_in_day 1730075559 [09:28:26]quantity*price = 30038 [09:28:26]sum+1 = 30039 [09:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 48 27.10.2024 09:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192016 ФПД: 243795045403865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192016&fm=243795045403865&tin=02508201610067®Number=0000000000091776&sum=30000 [09:28:27]StoreToDocumentArchive [09:28:27]shift 542 fd 192016 [09:28:27]save to /storage/0542/doc_00192016 [09:28:27]save last doc name /storage/0542/doc_00192016 to /storage/kkm_last_doc_name [09:28:27]save OK [09:28:27]Clear old archive folders... [09:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:27]tlvbuf is 018DC5B0 [09:28:27]SAM_PROTO_ClearQueue [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 09 00 00 [09:28:27]Write to MH i2c: E2 08 00 BC 4C 80 09 00 00 00 00 00 00 7A [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 BC 4C 00 90 00 7C [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_ClearQueue done [09:28:27]KKMCreateOFDPacket [09:28:27]OFDProtocolAddRootSTLVToBuf [09:28:27]FM_MakeSignedData [09:28:27]FM_MakeSignedData [09:28:27]SAM_PROTO_SignData [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 01 02 [09:28:27]Write to MH i2c: E2 08 00 BD 4C 80 0D 01 02 00 00 00 00 82 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 BD 4C 00 90 00 7D [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=255 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EE 02 00 35 04 06 00 DD [09:28:27]Write to MH i2c: E2 02 01 BE 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EE 02 00 35 04 06 00 DD 00 00 90 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 BE 4C 00 90 00 7E [09:28:28]RAPDU: 90 00 [09:28:28]wFMCommunicate OK [09:28:28]wFMCommunicate request_size=10 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 0D 02 02 05 BA F5 14 4C D9 [09:28:28]Write to MH i2c: E2 0D 00 BF 4C 80 0D 02 02 05 00 BA F5 14 4C D9 00 00 77 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 BF 4C 00 90 00 7F [09:28:28]RAPDU: 90 00 [09:28:28]wFMCommunicate OK [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 0D 03 02 [09:28:28]Write to MH i2c: E2 08 00 C0 4C 80 0D 03 02 00 00 00 00 87 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0B 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0B 00 C0 4C 00 FB 08 CF 25 EC DD E8 62 90 00 92 [09:28:28]RAPDU: FB 08 CF 25 EC DD E8 62 90 00 [09:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_SignData done [09:28:28]FM_MakeSignedData done [09:28:28]CreateOFDProtocolMessage [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 11 00 00 [09:28:28]Write to MH i2c: E2 08 00 C1 4C 80 11 00 00 00 00 00 00 87 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 C1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [09:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:28:28]wFMCommunicate OK [09:28:28]CreateOFDProtocolMessage done [09:28:28]OFDSenderStorePacket 192016 [09:28:28]StoreOFDPacket docnum=192016 [09:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D F7 07 01 F1 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EE 02 00 35 04 06 00 DD BA F5 14 4C D9 FB 08 CF 25 EC DD E8 62 [09:28:28]CheckFolder [09:28:28]dirname=/storage/ofd_packets [09:28:28]CheckFolder done [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00192016 [09:28:28]NVStorageSaveData ofd_packets/00192016 [09:28:28]File name is /storage/ofd_packets/00192016 [09:28:28]Write 301 bytes [09:28:28]NVStorageSaveData done [09:28:28]OFDSenderStorePacket done [09:28:28]KKMCreateOFDPacket done [09:28:28]NVStorageSaveData kkm_last_timestamp [09:28:28]File name is /storage/kkm_last_timestamp [09:28:28]Write 4 bytes [09:28:28]NVStorageSaveData done [09:28:28]ExternCall_PrintAddStr [09:28:28]wPrintStart [09:28:28]Write to MH i2c: 01 00 00 C2 4C 0E [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 C2 4C 00 00 00 00 00 FF 0F 23 [09:28:28]RasterBufferAndPrint [09:28:28]line Счет N : (1)31326 [09:28:28]line ИНН: 02508201610067 [09:28:28]line Контрольно-Кассовый Чек [09:28:28]line ПРОДАЖА [09:28:28]line ТРК (МРК, ГНК) : 12 [09:28:28]line Товар: 2710124130 [09:28:28]line Аи-92-К-5 [09:28:28]line 4.490 * 66.90 [09:28:28]line = 300.38 [09:28:28]line НДС 12% НСП 1% [09:28:28]line > о реализуемом товаре [09:28:28]line ОКРУГЛЕНИЕ: -0.38 [09:28:28]line ИТОГО: 300.00 [09:28:28]line Внесено: 300.00 [09:28:28]line СДАЧА: 0.00 [09:28:28]line НСП 1% : 2.66 [09:28:28]line НДС 12% : 31.90 [09:28:28]line Наличными: 300.00 [09:28:28]line Безнал.: 0.00 [09:28:28]line Место: АЗС № 170 "Партнер Нефть" [09:28:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:28:28]line СНО: Общий режим [09:28:28]line Чек 48 27.10.2024 09:28 [09:28:28]line Смена: 542 ФФД: 1.0 [09:28:28]line ЗНМ: 0300000110 [09:28:28]line РНМ: 0000000000091776 [09:28:28]line Версия ККМ: 001 [09:28:28]line ФМ: 0000000000871754 [09:28:28]line ФД: 192016 [09:28:28]line ФПД: 243795045403865 [09:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192016&fm=243795045403865&tin=02508201610067®Number=0000000000091776&sum=30000 [09:28:28]OFD Sender: Processing packet 192016 [packets to send 75, broken 74] [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00192016 [09:28:28]OFD Sender: To server: pG, [09:28:28]CommunicateWithHost lk.salyk.kg:30040 [09:28:28]ConnectInit lk.salyk.kg [09:28:28]written 0, free lines is 4095 [09:28:28]Connected sock=8 [09:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D F7 07 01 F1 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 CD 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EE 02 00 35 04 06 00 DD BA F5 14 4C D9 FB 08 CF 25 EC DD E8 62 [09:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B1 F8 47 00 D9 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EE 02 00 F4 03 04 00 96 AC 1D 67 B6 04 01 00 00 F3 ED CB EE EC 75 DB 68 [09:28:28]CommunicateWithHost err = 0 [09:28:28]CheckOFDResponse [09:28:28]1017 (14) - 77093643461234 [09:28:28]1041 (16) - 0000000000871754 [09:28:28]1040 (4) - 192016 [09:28:28]1012 (4) - 27.10.2024 02:59 [09:28:28]1206 (1) - 0 [09:28:28]OFD Sender: Remove packet 192016 [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00192016 [09:28:28]NVStorageDeleteData [09:28:29]Write to MH i2c: 01 00 00 ED 4C 39 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 07 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 07 00 ED 4C 00 00 00 00 00 A4 0C F0 [09:28:29]RasterBufferAndPrint [09:28:29]line [09:28:29]line [09:28:29]line [09:28:29]line [09:28:29]line [09:28:29]written 0, free lines is 3242 [09:28:29]MH_Cut [09:28:29]Write to MH i2c: D1 01 00 F4 4C 01 12 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: D1 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: D1 01 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: D1 01 00 F4 4C 00 11 [09:28:29]Write to MH i2c: 01 00 00 F5 4C 41 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]OFD Sender: No OFD packet to send [09:28:29]*** Cut start [09:28:29]*** Partial cut [09:28:29]*** CUTSNS_PIN = 1 [09:28:30]*** CUTSNS_PIN = 0 [09:28:30]*** Brake cut motor [09:28:30]Read from MH i2c: 01 [09:28:30]MH_I2C_Read... [09:28:30]*** Stop cut motor [09:28:30]*** Cut end [09:28:30]Read from MH i2c: 01 07 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 07 00 F5 4C 00 00 00 00 00 FF 0F 56 [09:28:30]process_action close_receipt done [09:28:30]requested_data is exist [09:28:30]produce_requested_data [09:28:30]requested_item fm.sn is exist - process it [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 11 00 00 [09:28:30]Write to MH i2c: E2 08 00 F6 4C 80 11 00 00 00 00 00 00 BC [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 F6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [09:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:28:30]wFMCommunicate OK [09:28:30]requested_item fd.num is exist - process it [09:28:30]SAM_PROTO_GetFieldsCounters [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 00 00 [09:28:30]Write to MH i2c: E2 08 00 F7 4C 80 13 00 00 00 00 00 00 BF [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 F7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetFieldsCounters done [09:28:30]requested_item shift.num is exist - process it [09:28:30]requested_item shift.opened is exist - process it [09:28:30]req_shift_opened [09:28:30]FM_GetShiftState [09:28:30]SAM_PROTO_GetShiftState [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 01 00 [09:28:30]Write to MH i2c: E2 08 00 F8 4C 80 13 01 00 00 00 00 00 C1 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 F8 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 02 [09:28:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetShiftState done [09:28:30]FM_GetShiftState done [09:28:30]req_shift_opened done [09:28:30]requested_item shift.open_date is exist - process it [09:28:30]req_shift_open_date [09:28:30]req_shift_open_date done [09:28:30]produce_requested_data done [09:28:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192016,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:28:30]process_action_free close_receipt [09:28:30]json_value_free [09:28:30]json_value_free done [09:28:30]process_json_proto returns [09:28:30]Send response to host [09:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192016,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:28:30]free response buf [09:28:30]execute_script done [09:28:30]execute_script returns [09:28:30]free content buf [09:28:30]Sock 5.Close socket [09:28:30]Sock 5.Thread stoped [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:16]accept exits with 6 [09:29:16]New connection [09:29:16]New thread 3066961252 created [09:29:16]Thread 3066817892 joined [09:29:16]Waiting for new connection... [09:29:16] Sock 6.Parse request [09:29:16]Sock 6.Check first char [09:29:16]Sock 6.First char is OK [09:29:16]request: POST /json_proto HTTP/1.0 [09:29:16]Method: POST [09:29:16]URL: /json_proto [09:29:16]Method is POST - this is cgi request [09:29:16]url: /json_proto [09:29:16]query_string will be loaded in cgi processing [09:29:16]execute_cgi json_proto POST (null) [09:29:16]execute_cgi path=json_proto method=POST [09:29:16]POST find Content-Length [09:29:16]Host: 172.17.63.131:8080 [09:29:16]Content-Length: 676 [09:29:16]Content-Type: application/json [09:29:16] [09:29:16]POST finish read [09:29:16]Found Content-Length = 676 [09:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:16]execute_script... [09:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:16]POST & json_proto [09:29:16]process_json_proto [09:29:16]json parsed OK: [09:29:16]protocol is kg_v1.0 [09:29:16]action value=close_receipt [09:29:16]process_action close_receipt [09:29:16]cmd_close_receipt [09:29:16]MH_GetDate [09:29:16]Write to MH i2c: F0 00 00 F9 4C 34 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 09 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 09 00 F9 4C 00 FF 07 1E 67 22 05 6E 64 C1 [09:29:16]GetLastDocTimeStamp 1730021325 [09:29:16]current date 1730021375 [09:29:16]FM_GetShiftState [09:29:16]SAM_PROTO_GetShiftState [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 13 01 00 [09:29:16]Write to MH i2c: E2 08 00 FA 4C 80 13 01 00 00 00 00 00 C3 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 FA 4C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 04 [09:29:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:29:16]wFMCommunicate OK [09:29:16]SAM_PROTO_GetShiftState done [09:29:16]FM_GetShiftState done [09:29:16]opened in 1729989159 [09:29:16]opened+sec_in_day 1730075559 [09:29:16]quantity*price = 30038 [09:29:16]sum+1 = 30039 [09:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 49 27.10.2024 09:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192017 ФПД: 32743137177393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192017&fm=32743137177393&tin=02508201610067®Number=0000000000091776&sum=30000 [09:29:17]StoreToDocumentArchive [09:29:17]shift 542 fd 192017 [09:29:17]save to /storage/0542/doc_00192017 [09:29:17]save last doc name /storage/0542/doc_00192017 to /storage/kkm_last_doc_name [09:29:17]save OK [09:29:17]Clear old archive folders... [09:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:17]tlvbuf is 01C6F3A0 [09:29:17]SAM_PROTO_ClearQueue [09:29:17]wFMCommunicate request_size=4 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 09 00 00 [09:29:17]Write to MH i2c: E2 08 00 07 4D 80 09 00 00 00 00 00 00 C6 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:17]Read from MH i2c: E2 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 07 4D 00 90 00 C8 [09:29:17]RAPDU: 90 00 [09:29:17]wFMCommunicate OK [09:29:17]SAM_PROTO_ClearQueue done [09:29:17]KKMCreateOFDPacket [09:29:17]OFDProtocolAddRootSTLVToBuf [09:29:17]FM_MakeSignedData [09:29:17]FM_MakeSignedData [09:29:17]SAM_PROTO_SignData [09:29:17]wFMCommunicate request_size=4 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 0D 01 02 [09:29:17]Write to MH i2c: E2 08 00 08 4D 80 0D 01 02 00 00 00 00 CE [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:17]Read from MH i2c: E2 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 08 4D 00 90 00 C9 [09:29:17]RAPDU: 90 00 [09:29:17]wFMCommunicate OK [09:29:17]wFMCommunicate request_size=255 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FF 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EE 02 00 35 04 06 00 1D [09:29:17]Write to MH i2c: E2 02 01 09 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FF 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EE 02 00 35 04 06 00 1D 00 00 50 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 09 4D 00 90 00 CA [09:29:18]RAPDU: 90 00 [09:29:18]wFMCommunicate OK [09:29:18]wFMCommunicate request_size=10 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 0D 02 02 05 C7 9B 0F 6F 31 [09:29:18]Write to MH i2c: E2 0D 00 0A 4D 80 0D 02 02 05 00 C7 9B 0F 6F 31 00 00 EC [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 0A 4D 00 90 00 CB [09:29:18]RAPDU: 90 00 [09:29:18]wFMCommunicate OK [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 0D 03 02 [09:29:18]Write to MH i2c: E2 08 00 0B 4D 80 0D 03 02 00 00 00 00 D3 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0B 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0B 00 0B 4D 00 25 8F CD 3D F4 94 53 D0 90 00 3D [09:29:18]RAPDU: 25 8F CD 3D F4 94 53 D0 90 00 [09:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_SignData done [09:29:18]FM_MakeSignedData done [09:29:18]CreateOFDProtocolMessage [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 11 00 00 [09:29:18]Write to MH i2c: E2 08 00 0C 4D 80 11 00 00 00 00 00 00 D3 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 0C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [09:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:29:18]wFMCommunicate OK [09:29:18]CreateOFDProtocolMessage done [09:29:18]OFDSenderStorePacket 192017 [09:29:18]StoreOFDPacket docnum=192017 [09:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 84 07 01 EE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FF 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EE 02 00 35 04 06 00 1D C7 9B 0F 6F 31 25 8F CD 3D F4 94 53 D0 [09:29:18]CheckFolder [09:29:18]dirname=/storage/ofd_packets [09:29:18]CheckFolder done [09:29:18]ProducePacketName [09:29:18]name=ofd_packets/00192017 [09:29:18]NVStorageSaveData ofd_packets/00192017 [09:29:18]File name is /storage/ofd_packets/00192017 [09:29:18]Write 301 bytes [09:29:18]NVStorageSaveData done [09:29:18]OFDSenderStorePacket done [09:29:18]KKMCreateOFDPacket done [09:29:18]NVStorageSaveData kkm_last_timestamp [09:29:18]File name is /storage/kkm_last_timestamp [09:29:18]Write 4 bytes [09:29:18]NVStorageSaveData done [09:29:18]ExternCall_PrintAddStr [09:29:18]wPrintStart [09:29:18]Write to MH i2c: 01 00 00 0D 4D 5A [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 0D 4D 00 00 00 00 00 FF 0F 6F [09:29:18]RasterBufferAndPrint [09:29:18]line Счет N : (1)31327 [09:29:18]line ИНН: 02508201610067 [09:29:18]line Контрольно-Кассовый Чек [09:29:18]line ПРОДАЖА [09:29:18]line ТРК (МРК, ГНК) : 12 [09:29:18]line Товар: 2710124130 [09:29:18]line Аи-92-К-5 [09:29:18]line 4.490 * 66.90 [09:29:18]line = 300.38 [09:29:18]line НДС 12% НСП 1% [09:29:18]line > о реализуемом товаре [09:29:18]line ОКРУГЛЕНИЕ: -0.38 [09:29:18]line ИТОГО: 300.00 [09:29:18]line Внесено: 300.00 [09:29:18]line СДАЧА: 0.00 [09:29:18]line НСП 1% : 2.66 [09:29:18]line НДС 12% : 31.90 [09:29:18]line Наличными: 300.00 [09:29:18]line Безнал.: 0.00 [09:29:18]line Место: АЗС № 170 "Партнер Нефть" [09:29:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:29:18]line СНО: Общий режим [09:29:18]line Чек 49 27.10.2024 09:29 [09:29:18]line Смена: 542 ФФД: 1.0 [09:29:18]line ЗНМ: 0300000110 [09:29:18]line РНМ: 0000000000091776 [09:29:18]line Версия ККМ: 001 [09:29:18]line ФМ: 0000000000871754 [09:29:18]line ФД: 192017 [09:29:18]line ФПД: 32743137177393 [09:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192017&fm=32743137177393&tin=02508201610067®Number=0000000000091776&sum=30000 [09:29:18]OFD Sender: Processing packet 192017 [packets to send 75, broken 74] [09:29:18]ProducePacketName [09:29:18]name=ofd_packets/00192017 [09:29:18]OFD Sender: To server: pG, [09:29:18]CommunicateWithHost lk.salyk.kg:30040 [09:29:18]ConnectInit lk.salyk.kg [09:29:18]written 0, free lines is 4095 [09:29:18]Connected sock=8 [09:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 84 07 01 EE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FF 07 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EE 02 00 35 04 06 00 1D C7 9B 0F 6F 31 25 8F CD 3D F4 94 53 D0 [09:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C 17 47 00 41 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EE 02 00 F4 03 04 00 C8 AC 1D 67 B6 04 01 00 00 5D A2 63 FE 1A 9D E7 E4 [09:29:18]CommunicateWithHost err = 0 [09:29:18]CheckOFDResponse [09:29:18]1017 (14) - 77093643461234 [09:29:18]1041 (16) - 0000000000871754 [09:29:18]1040 (4) - 192017 [09:29:18]1012 (4) - 27.10.2024 03:00 [09:29:18]1206 (1) - 0 [09:29:18]OFD Sender: Remove packet 192017 [09:29:18]ProducePacketName [09:29:18]name=ofd_packets/00192017 [09:29:18]NVStorageDeleteData [09:29:19]Write to MH i2c: 01 00 00 38 4D 85 [09:29:19]Write i2c OK [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: 01 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: 01 07 00 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: 01 07 00 38 4D 00 00 00 00 00 9D 0C 35 [09:29:19]RasterBufferAndPrint [09:29:19]line [09:29:19]line [09:29:19]line [09:29:19]line [09:29:19]line [09:29:19]written 0, free lines is 3236 [09:29:19]MH_Cut [09:29:19]Write to MH i2c: D1 01 00 3F 4D 01 5E [09:29:19]Write i2c OK [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: D1 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: D1 01 00 [09:29:19]MH_I2C_Read... [09:29:19]Read from MH i2c: D1 01 00 3F 4D 00 5D [09:29:19]Write to MH i2c: 01 00 00 40 4D 8D [09:29:19]Write i2c OK [09:29:19]MH_I2C_Read... [09:29:19]OFD Sender: No OFD packet to send [09:29:19]*** Cut start [09:29:19]*** Partial cut [09:29:19]*** CUTSNS_PIN = 1 [09:29:19]*** CUTSNS_PIN = 0 [09:29:20]*** Brake cut motor [09:29:20]Read from MH i2c: 01 [09:29:20]MH_I2C_Read... [09:29:20]*** Stop cut motor [09:29:20]*** Cut end [09:29:20]Read from MH i2c: 01 07 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: 01 07 00 40 4D 00 00 00 00 00 FF 0F A2 [09:29:20]process_action close_receipt done [09:29:20]requested_data is exist [09:29:20]produce_requested_data [09:29:20]requested_item fm.sn is exist - process it [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 11 00 00 [09:29:20]Write to MH i2c: E2 08 00 41 4D 80 11 00 00 00 00 00 00 08 [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 17 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 17 00 41 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [09:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:29:20]wFMCommunicate OK [09:29:20]requested_item fd.num is exist - process it [09:29:20]SAM_PROTO_GetFieldsCounters [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 13 00 00 [09:29:20]Write to MH i2c: E2 08 00 42 4D 80 13 00 00 00 00 00 00 0B [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 62 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 62 00 42 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetFieldsCounters done [09:29:20]requested_item shift.num is exist - process it [09:29:20]requested_item shift.opened is exist - process it [09:29:20]req_shift_opened [09:29:20]FM_GetShiftState [09:29:20]SAM_PROTO_GetShiftState [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 13 01 00 [09:29:20]Write to MH i2c: E2 08 00 43 4D 80 13 01 00 00 00 00 00 0D [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:20]Read from MH i2c: E2 0E 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 43 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4E [09:29:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetShiftState done [09:29:20]FM_GetShiftState done [09:29:20]req_shift_opened done [09:29:20]requested_item shift.open_date is exist - process it [09:29:20]req_shift_open_date [09:29:20]req_shift_open_date done [09:29:20]produce_requested_data done [09:29:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192017,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:29:20]process_action_free close_receipt [09:29:20]json_value_free [09:29:20]json_value_free done [09:29:20]process_json_proto returns [09:29:20]Send response to host [09:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192017,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:29:20]free response buf [09:29:20]execute_script done [09:29:20]execute_script returns [09:29:20]free content buf [09:29:20]Sock 6.Close socket [09:29:20]Sock 6.Thread stoped [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:47]accept exits with 5 [09:31:47]New connection [09:31:47]New thread 3066817892 created [09:31:47]Thread 3066961252 joined [09:31:47]Waiting for new connection... [09:31:47] Sock 5.Parse request [09:31:47]Sock 5.Check first char [09:31:47]Sock 5.First char is OK [09:31:47]request: POST /json_proto HTTP/1.0 [09:31:47]Method: POST [09:31:47]URL: /json_proto [09:31:47]Method is POST - this is cgi request [09:31:47]url: /json_proto [09:31:47]query_string will be loaded in cgi processing [09:31:47]execute_cgi json_proto POST (null) [09:31:47]execute_cgi path=json_proto method=POST [09:31:47]POST find Content-Length [09:31:47]Host: 172.17.63.131:8080 [09:31:47]Content-Length: 676 [09:31:47]Content-Type: application/json [09:31:47] [09:31:47]POST finish read [09:31:47]Found Content-Length = 676 [09:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]execute_script... [09:31: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)31328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:47]POST & json_proto [09:31:47]process_json_proto [09:31:47]json parsed OK: [09:31:47]protocol is kg_v1.0 [09:31:47]action value=close_receipt [09:31:47]process_action close_receipt [09:31:47]cmd_close_receipt [09:31:47]MH_GetDate [09:31:47]Write to MH i2c: F0 00 00 44 4D 80 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: F0 09 00 44 4D 00 96 08 1E 67 22 05 6E 64 A5 [09:31:47]GetLastDocTimeStamp 1730021375 [09:31:47]current date 1730021526 [09:31:47]FM_GetShiftState [09:31:47]SAM_PROTO_GetShiftState [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 01 00 [09:31:47]Write to MH i2c: E2 08 00 45 4D 80 13 01 00 00 00 00 00 0F [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 45 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 50 [09:31:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetShiftState done [09:31:47]FM_GetShiftState done [09:31:47]opened in 1729989159 [09:31:47]opened+sec_in_day 1730075559 [09:31:47]quantity*price = 60009 [09:31:47]sum+1 = 60010 [09:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 50 27.10.2024 09:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192018 ФПД: 69862973117823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192018&fm=69862973117823&tin=02508201610067®Number=0000000000091776&sum=60000 [09:31:48]StoreToDocumentArchive [09:31:48]shift 542 fd 192018 [09:31:48]save to /storage/0542/doc_00192018 [09:31:48]save last doc name /storage/0542/doc_00192018 to /storage/kkm_last_doc_name [09:31:48]save OK [09:31:48]Clear old archive folders... [09:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:48]tlvbuf is 01608FF0 [09:31:48]SAM_PROTO_ClearQueue [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 09 00 00 [09:31:48]Write to MH i2c: E2 08 00 52 4D 80 09 00 00 00 00 00 00 11 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 52 4D 00 90 00 13 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_ClearQueue done [09:31:48]KKMCreateOFDPacket [09:31:48]OFDProtocolAddRootSTLVToBuf [09:31:48]FM_MakeSignedData [09:31:48]FM_MakeSignedData [09:31:48]SAM_PROTO_SignData [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 01 02 [09:31:48]Write to MH i2c: E2 08 00 53 4D 80 0D 01 02 00 00 00 00 19 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 03 00 53 4D 00 90 00 14 [09:31:48]RAPDU: 90 00 [09:31:48]wFMCommunicate OK [09:31:48]wFMCommunicate request_size=255 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 96 08 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EE 02 00 35 04 06 00 3F [09:31:48]Write to MH i2c: E2 02 01 54 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 96 08 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EE 02 00 35 04 06 00 3F 00 00 40 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [09:31:49]RAPDU: 90 00 [09:31:49]wFMCommunicate OK [09:31:49]wFMCommunicate request_size=10 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 0D 02 02 05 8A 3D B2 15 7F [09:31:49]Write to MH i2c: E2 0D 00 55 4D 80 0D 02 02 05 00 8A 3D B2 15 7F 00 00 33 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 03 00 55 4D 00 90 00 16 [09:31:49]RAPDU: 90 00 [09:31:49]wFMCommunicate OK [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 0D 03 02 [09:31:49]Write to MH i2c: E2 08 00 56 4D 80 0D 03 02 00 00 00 00 1E [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0B 00 56 4D 00 3B 50 4A E7 B4 99 A2 BE 90 00 88 [09:31:49]RAPDU: 3B 50 4A E7 B4 99 A2 BE 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_SignData done [09:31:49]FM_MakeSignedData done [09:31:49]CreateOFDProtocolMessage [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 11 00 00 [09:31:49]Write to MH i2c: E2 08 00 57 4D 80 11 00 00 00 00 00 00 1E [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 17 00 57 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [09:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:31:49]wFMCommunicate OK [09:31:49]CreateOFDProtocolMessage done [09:31:49]OFDSenderStorePacket 192018 [09:31:49]StoreOFDPacket docnum=192018 [09:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 C2 07 01 01 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 96 08 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EE 02 00 35 04 06 00 3F 8A 3D B2 15 7F 3B 50 4A E7 B4 99 A2 BE [09:31:49]CheckFolder [09:31:49]dirname=/storage/ofd_packets [09:31:49]CheckFolder done [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00192018 [09:31:49]NVStorageSaveData ofd_packets/00192018 [09:31:49]File name is /storage/ofd_packets/00192018 [09:31:49]Write 301 bytes [09:31:49]NVStorageSaveData done [09:31:49]OFDSenderStorePacket done [09:31:49]KKMCreateOFDPacket done [09:31:49]NVStorageSaveData kkm_last_timestamp [09:31:49]File name is /storage/kkm_last_timestamp [09:31:49]Write 4 bytes [09:31:49]NVStorageSaveData done [09:31:49]ExternCall_PrintAddStr [09:31:49]wPrintStart [09:31:49]Write to MH i2c: 01 00 00 58 4D A5 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 58 4D 00 00 00 00 00 FF 0F BA [09:31:49]RasterBufferAndPrint [09:31:49]line Счет N : (1)31328 [09:31:49]line ИНН: 02508201610067 [09:31:49]line Контрольно-Кассовый Чек [09:31:49]line ПРОДАЖА [09:31:49]line ТРК (МРК, ГНК) : 12 [09:31:49]line Товар: 2710124130 [09:31:49]line Аи-92-К-5 [09:31:49]line 8.970 * 66.90 [09:31:49]line = 600.09 [09:31:49]line НДС 12% НСП 1% [09:31:49]line > о реализуемом товаре [09:31:49]line ОКРУГЛЕНИЕ: -0.09 [09:31:49]line ИТОГО: 600.00 [09:31:49]line Внесено: 600.00 [09:31:49]line СДАЧА: 0.00 [09:31:49]line НСП 1% : 5.31 [09:31:49]line НДС 12% : 63.73 [09:31:49]line Наличными: 600.00 [09:31:49]line Безнал.: 0.00 [09:31:49]line Место: АЗС № 170 "Партнер Нефть" [09:31:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:31:49]line СНО: Общий режим [09:31:49]line Чек 50 27.10.2024 09:32 [09:31:49]line Смена: 542 ФФД: 1.0 [09:31:49]line ЗНМ: 0300000110 [09:31:49]line РНМ: 0000000000091776 [09:31:49]line Версия ККМ: 001 [09:31:49]line ФМ: 0000000000871754 [09:31:49]line ФД: 192018 [09:31:49]line ФПД: 69862973117823 [09:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192018&fm=69862973117823&tin=02508201610067®Number=0000000000091776&sum=60000 [09:31:49]OFD Sender: Processing packet 192018 [packets to send 75, broken 74] [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00192018 [09:31:49]OFD Sender: To server: pG, [09:31:49]CommunicateWithHost lk.salyk.kg:30040 [09:31:49]ConnectInit lk.salyk.kg [09:31:49]written 0, free lines is 4095 [09:31:49]Connected sock=8 [09:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 C2 07 01 01 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 96 08 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EE 02 00 35 04 06 00 3F 8A 3D B2 15 7F 3B 50 4A E7 B4 99 A2 BE [09:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D9 9C 47 00 ED C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EE 02 00 F4 03 04 00 5E AD 1D 67 B6 04 01 00 00 57 CA 44 6B C2 46 A9 CE [09:31:49]CommunicateWithHost err = 0 [09:31:49]CheckOFDResponse [09:31:49]1017 (14) - 77093643461234 [09:31:49]1041 (16) - 0000000000871754 [09:31:49]1040 (4) - 192018 [09:31:49]1012 (4) - 27.10.2024 03:02 [09:31:49]1206 (1) - 0 [09:31:49]OFD Sender: Remove packet 192018 [09:31:49]ProducePacketName [09:31:49]name=ofd_packets/00192018 [09:31:49]NVStorageDeleteData [09:31:49]Write to MH i2c: 01 00 00 83 4D D0 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: 01 07 00 83 4D 00 00 00 00 00 A7 0C 8A [09:31:49]RasterBufferAndPrint [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]line [09:31:49]written 0, free lines is 3246 [09:31:49]MH_Cut [09:31:49]Write to MH i2c: D1 01 00 8A 4D 01 A9 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 01 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: D1 01 00 8A 4D 00 A8 [09:31:49]Write to MH i2c: 01 00 00 8B 4D D8 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:50]OFD Sender: No OFD packet to send [09:31:50]*** Cut start [09:31:50]*** Partial cut [09:31:50]*** CUTSNS_PIN = 1 [09:31:50]*** CUTSNS_PIN = 0 [09:31:50]*** Brake cut motor [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]*** Stop cut motor [09:31:51]*** Cut end [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 8B 4D 00 00 00 00 00 FF 0F ED [09:31:51]process_action close_receipt done [09:31:51]requested_data is exist [09:31:51]produce_requested_data [09:31:51]requested_item fm.sn is exist - process it [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 11 00 00 [09:31:51]Write to MH i2c: E2 08 00 8C 4D 80 11 00 00 00 00 00 00 53 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 8C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [09:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:31:51]wFMCommunicate OK [09:31:51]requested_item fd.num is exist - process it [09:31:51]SAM_PROTO_GetFieldsCounters [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 00 00 [09:31:51]Write to MH i2c: E2 08 00 8D 4D 80 13 00 00 00 00 00 00 56 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 62 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 62 00 8D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetFieldsCounters done [09:31:51]requested_item shift.num is exist - process it [09:31:51]requested_item shift.opened is exist - process it [09:31:51]req_shift_opened [09:31:51]FM_GetShiftState [09:31:51]SAM_PROTO_GetShiftState [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 01 00 [09:31:51]Write to MH i2c: E2 08 00 8E 4D 80 13 01 00 00 00 00 00 58 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 8E 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 99 [09:31:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetShiftState done [09:31:51]FM_GetShiftState done [09:31:51]req_shift_opened done [09:31:51]requested_item shift.open_date is exist - process it [09:31:51]req_shift_open_date [09:31:51]req_shift_open_date done [09:31:51]produce_requested_data done [09:31:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192018,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:31:51]process_action_free close_receipt [09:31:51]json_value_free [09:31:51]json_value_free done [09:31:51]process_json_proto returns [09:31:51]Send response to host [09:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192018,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:31:51]free response buf [09:31:51]execute_script done [09:31:51]execute_script returns [09:31:51]free content buf [09:31:51]Sock 5.Close socket [09:31:51]Sock 5.Thread stoped [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:41]accept exits with 6 [09:33:41]New connection [09:33:41]New thread 3066961252 created [09:33:41]Thread 3066817892 joined [09:33:41]Waiting for new connection... [09:33:41] Sock 6.Parse request [09:33:41]Sock 6.Check first char [09:33:41]Sock 6.First char is OK [09:33:41]request: POST /json_proto HTTP/1.0 [09:33:41]Method: POST [09:33:41]URL: /json_proto [09:33:41]Method is POST - this is cgi request [09:33:41]url: /json_proto [09:33:41]query_string will be loaded in cgi processing [09:33:41]execute_cgi json_proto POST (null) [09:33:41]execute_cgi path=json_proto method=POST [09:33:41]POST find Content-Length [09:33:41]Host: 172.17.63.131:8080 [09:33:41]Content-Length: 673 [09:33:41]Content-Type: application/json [09:33:41] [09:33:41]POST finish read [09:33:41]Found Content-Length = 673 [09:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31329", "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" ] } } [09:33:41]execute_script... [09:33: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)31329", "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" ] } } [09:33:41]POST & json_proto [09:33:41]process_json_proto [09:33:41]json parsed OK: [09:33:41]protocol is kg_v1.0 [09:33:41]action value=close_receipt [09:33:41]process_action close_receipt [09:33:41]cmd_close_receipt [09:33:41]MH_GetDate [09:33:41]Write to MH i2c: F0 00 00 8F 4D CB [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: F0 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: F0 09 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: F0 09 00 8F 4D 00 08 09 1E 67 22 05 6E 64 63 [09:33:41]GetLastDocTimeStamp 1730021526 [09:33:41]current date 1730021640 [09:33:41]FM_GetShiftState [09:33:41]SAM_PROTO_GetShiftState [09:33:41]wFMCommunicate request_size=4 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 13 01 00 [09:33:41]Write to MH i2c: E2 08 00 90 4D 80 13 01 00 00 00 00 00 5A [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 0E 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 0E 00 90 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9B [09:33:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:33:41]wFMCommunicate OK [09:33:41]SAM_PROTO_GetShiftState done [09:33:41]FM_GetShiftState done [09:33:41]opened in 1729989159 [09:33:41]opened+sec_in_day 1730075559 [09:33:41]quantity*price = 50063 [09:33:41]sum+1 = 50064 [09:33:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 51 27.10.2024 09:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192019 ФПД: 229364545839723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192019&fm=229364545839723&tin=02508201610067®Number=0000000000091776&sum=50000 [09:33:42]StoreToDocumentArchive [09:33:42]shift 542 fd 192019 [09:33:42]save to /storage/0542/doc_00192019 [09:33:42]save last doc name /storage/0542/doc_00192019 to /storage/kkm_last_doc_name [09:33:42]save OK [09:33:42]Clear old archive folders... [09:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:42]tlvbuf is 01CAA550 [09:33:42]SAM_PROTO_ClearQueue [09:33:42]wFMCommunicate request_size=4 [09:33:42]MH_SAM_APDU [09:33:42]CAPDU: 80 09 00 00 [09:33:42]Write to MH i2c: E2 08 00 9D 4D 80 09 00 00 00 00 00 00 5C [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:42]Read from MH i2c: E2 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: E2 03 00 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: E2 03 00 9D 4D 00 90 00 5E [09:33:42]RAPDU: 90 00 [09:33:42]wFMCommunicate OK [09:33:42]SAM_PROTO_ClearQueue done [09:33:42]KKMCreateOFDPacket [09:33:42]OFDProtocolAddRootSTLVToBuf [09:33:42]FM_MakeSignedData [09:33:42]FM_MakeSignedData [09:33:42]SAM_PROTO_SignData [09:33:42]wFMCommunicate request_size=4 [09:33:42]MH_SAM_APDU [09:33:42]CAPDU: 80 0D 01 02 [09:33:42]Write to MH i2c: E2 08 00 9E 4D 80 0D 01 02 00 00 00 00 64 [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:42]Read from MH i2c: E2 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: E2 03 00 [09:33:42]MH_I2C_Read... [09:33:42]Read from MH i2c: E2 03 00 9E 4D 00 90 00 5F [09:33:42]RAPDU: 90 00 [09:33:42]wFMCommunicate OK [09:33:42]wFMCommunicate request_size=255 [09:33:42]MH_SAM_APDU [09:33: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 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 33 00 00 00 F4 03 04 00 08 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EE 02 00 35 04 06 00 D0 9B 18 47 [09:33:42]Write to MH i2c: E2 02 01 9F 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 08 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EE 02 00 35 04 06 00 D0 9B 18 47 00 00 2C [09:33:42]Write i2c OK [09:33:42]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:43]Read from MH i2c: E2 03 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 03 00 9F 4D 00 90 00 60 [09:33:43]RAPDU: 90 00 [09:33:43]wFMCommunicate OK [09:33:43]wFMCommunicate request_size=7 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 0D 02 02 02 62 6B [09:33:43]Write to MH i2c: E2 0A 00 A0 4D 80 0D 02 02 02 00 62 6B 00 00 38 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 03 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 03 00 A0 4D 00 90 00 61 [09:33:43]RAPDU: 90 00 [09:33:43]wFMCommunicate OK [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 0D 03 02 [09:33:43]Write to MH i2c: E2 08 00 A1 4D 80 0D 03 02 00 00 00 00 69 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 0B 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 0B 00 A1 4D 00 39 4D E6 2D FF 62 C3 09 90 00 30 [09:33:43]RAPDU: 39 4D E6 2D FF 62 C3 09 90 00 [09:33:43]wFMCommunicate OK [09:33:43]SAM_PROTO_SignData done [09:33:43]FM_MakeSignedData done [09:33:43]CreateOFDProtocolMessage [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 11 00 00 [09:33:43]Write to MH i2c: E2 08 00 A2 4D 80 11 00 00 00 00 00 00 69 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 17 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 17 00 A2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [09:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:43]wFMCommunicate OK [09:33:43]CreateOFDProtocolMessage done [09:33:43]OFDSenderStorePacket 192019 [09:33:43]StoreOFDPacket docnum=192019 [09:33:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EB C4 04 01 2A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 00 00 00 F4 03 04 00 08 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EE 02 00 35 04 06 00 D0 9B 18 47 62 6B 39 4D E6 2D FF 62 C3 09 [09:33:43]CheckFolder [09:33:43]dirname=/storage/ofd_packets [09:33:43]CheckFolder done [09:33:43]ProducePacketName [09:33:43]name=ofd_packets/00192019 [09:33:43]NVStorageSaveData ofd_packets/00192019 [09:33:43]File name is /storage/ofd_packets/00192019 [09:33:43]Write 298 bytes [09:33:43]NVStorageSaveData done [09:33:43]OFDSenderStorePacket done [09:33:43]KKMCreateOFDPacket done [09:33:43]NVStorageSaveData kkm_last_timestamp [09:33:43]File name is /storage/kkm_last_timestamp [09:33:43]Write 4 bytes [09:33:43]NVStorageSaveData done [09:33:43]ExternCall_PrintAddStr [09:33:43]wPrintStart [09:33:43]Write to MH i2c: 01 00 00 A3 4D F0 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: 01 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: 01 07 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: 01 07 00 A3 4D 00 00 00 00 00 FF 0F 05 [09:33:43]RasterBufferAndPrint [09:33:43]line Счет N : (1)31329 [09:33:43]line ИНН: 02508201610067 [09:33:43]line Контрольно-Кассовый Чек [09:33:43]line ПРОДАЖА [09:33:43]line ТРК (МРК, ГНК) : 11 [09:33:43]line Товар: 2710194210 [09:33:43]line ДТ-К-5 [09:33:43]line 6.570 * 76.20 [09:33:43]line = 500.63 [09:33:43]line НДС 12% НСП 1% [09:33:43]line > о реализуемом товаре [09:33:43]line ОКРУГЛЕНИЕ: -0.63 [09:33:43]line ИТОГО: 500.00 [09:33:43]line Внесено: 500.00 [09:33:43]line СДАЧА: 0.00 [09:33:43]line НСП 1% : 4.43 [09:33:43]line НДС 12% : 53.16 [09:33:43]line Наличными: 500.00 [09:33:43]line Безнал.: 0.00 [09:33:43]line Место: АЗС № 170 "Партнер Нефть" [09:33:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:33:43]line СНО: Общий режим [09:33:43]line Чек 51 27.10.2024 09:34 [09:33:43]line Смена: 542 ФФД: 1.0 [09:33:43]line ЗНМ: 0300000110 [09:33:43]line РНМ: 0000000000091776 [09:33:43]line Версия ККМ: 001 [09:33:43]line ФМ: 0000000000871754 [09:33:43]line ФД: 192019 [09:33:43]line ФПД: 229364545839723 [09:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192019&fm=229364545839723&tin=02508201610067®Number=0000000000091776&sum=50000 [09:33:43]OFD Sender: Processing packet 192019 [packets to send 75, broken 74] [09:33:43]ProducePacketName [09:33:43]name=ofd_packets/00192019 [09:33:43]OFD Sender: To server: pG, [09:33:43]CommunicateWithHost lk.salyk.kg:30040 [09:33:43]ConnectInit lk.salyk.kg [09:33:43]written 0, free lines is 4095 [09:33:43]Connected sock=8 [09:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EB C4 04 01 2A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 33 00 00 00 F4 03 04 00 08 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EE 02 00 35 04 06 00 D0 9B 18 47 62 6B 39 4D E6 2D FF 62 C3 09 [09:33:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 D3 47 00 B3 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EE 02 00 F4 03 04 00 D1 AD 1D 67 B6 04 01 00 00 6B 8D E6 63 1F 3A FE 1D [09:33:43]CommunicateWithHost err = 0 [09:33:43]CheckOFDResponse [09:33:43]1017 (14) - 77093643461234 [09:33:43]1041 (16) - 0000000000871754 [09:33:43]1040 (4) - 192019 [09:33:43]1012 (4) - 27.10.2024 03:04 [09:33:43]1206 (1) - 0 [09:33:43]OFD Sender: Remove packet 192019 [09:33:43]ProducePacketName [09:33:43]name=ofd_packets/00192019 [09:33:43]NVStorageDeleteData [09:33:44]Write to MH i2c: 01 00 00 CE 4D 1B [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 07 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 07 00 CE 4D 00 00 00 00 00 A0 0C CE [09:33:44]RasterBufferAndPrint [09:33:44]line [09:33:44]line [09:33:44]line [09:33:44]line [09:33:44]line [09:33:44]written 0, free lines is 3239 [09:33:44]MH_Cut [09:33:44]Write to MH i2c: D1 01 00 D5 4D 01 F4 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: D1 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: D1 01 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: D1 01 00 D5 4D 00 F3 [09:33:44]Write to MH i2c: 01 00 00 D6 4D 23 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]OFD Sender: No OFD packet to send [09:33:44]*** Cut start [09:33:44]*** Partial cut [09:33:44]*** CUTSNS_PIN = 1 [09:33:44]*** CUTSNS_PIN = 0 [09:33:45]*** Brake cut motor [09:33:45]Read from MH i2c: 01 [09:33:45]MH_I2C_Read... [09:33:45]*** Stop cut motor [09:33:45]*** Cut end [09:33:45]Read from MH i2c: 01 07 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: 01 07 00 D6 4D 00 00 00 00 00 FF 0F 38 [09:33:45]process_action close_receipt done [09:33:45]requested_data is exist [09:33:45]produce_requested_data [09:33:45]requested_item fm.sn is exist - process it [09:33:45]wFMCommunicate request_size=4 [09:33:45]MH_SAM_APDU [09:33:45]CAPDU: 80 11 00 00 [09:33:45]Write to MH i2c: E2 08 00 D7 4D 80 11 00 00 00 00 00 00 9E [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:45]Read from MH i2c: E2 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 17 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 17 00 D7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [09:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:33:45]wFMCommunicate OK [09:33:45]requested_item fd.num is exist - process it [09:33:45]SAM_PROTO_GetFieldsCounters [09:33:45]wFMCommunicate request_size=4 [09:33:45]MH_SAM_APDU [09:33:45]CAPDU: 80 13 00 00 [09:33:45]Write to MH i2c: E2 08 00 D8 4D 80 13 00 00 00 00 00 00 A1 [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:45]Read from MH i2c: E2 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 62 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 62 00 D8 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:45]wFMCommunicate OK [09:33:45]SAM_PROTO_GetFieldsCounters done [09:33:45]requested_item shift.num is exist - process it [09:33:45]requested_item shift.opened is exist - process it [09:33:45]req_shift_opened [09:33:45]FM_GetShiftState [09:33:45]SAM_PROTO_GetShiftState [09:33:45]wFMCommunicate request_size=4 [09:33:45]MH_SAM_APDU [09:33:45]CAPDU: 80 13 01 00 [09:33:45]Write to MH i2c: E2 08 00 D9 4D 80 13 01 00 00 00 00 00 A3 [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:45]Read from MH i2c: E2 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 0E 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: E2 0E 00 D9 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E4 [09:33:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:33:45]wFMCommunicate OK [09:33:45]SAM_PROTO_GetShiftState done [09:33:45]FM_GetShiftState done [09:33:45]req_shift_opened done [09:33:45]requested_item shift.open_date is exist - process it [09:33:45]req_shift_open_date [09:33:45]req_shift_open_date done [09:33:45]produce_requested_data done [09:33:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192019,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:33:45]process_action_free close_receipt [09:33:45]json_value_free [09:33:45]json_value_free done [09:33:45]process_json_proto returns [09:33:45]Send response to host [09:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192019,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:33:45]free response buf [09:33:45]execute_script done [09:33:45]execute_script returns [09:33:45]free content buf [09:33:45]Sock 6.Close socket [09:33:45]Sock 6.Thread stoped [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:50]accept exits with 5 [09:35:50]New connection [09:35:50]New thread 3066817892 created [09:35:50]Thread 3066961252 joined [09:35:50]Waiting for new connection... [09:35:50] Sock 5.Parse request [09:35:50]Sock 5.Check first char [09:35:50]Sock 5.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.63.131:8080 [09:35:50]Content-Length: 681 [09:35:50]Content-Type: application/json [09:35:50] [09:35:50]POST finish read [09:35:50]Found Content-Length = 681 [09:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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 : (1)31330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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 DA 4D 16 [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 DA 4D 00 89 09 1E 67 22 05 6E 64 2F [09:35:50]GetLastDocTimeStamp 1730021640 [09:35:50]current date 1730021769 [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 DB 4D 80 13 01 00 00 00 00 00 A5 [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 DB 4D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E6 [09:35:50]RAPDU: 09 00 01 27 8A 1D 67 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 1729989159 [09:35:50]opened+sec_in_day 1730075559 [09:35:50]quantity*price = 100015 [09:35:50]sum+1 = 100017 [09:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 52 27.10.2024 09:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192020 ФПД: 185547452930002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192020&fm=185547452930002&tin=02508201610067®Number=0000000000091776&sum=100000 [09:35:51]StoreToDocumentArchive [09:35:51]shift 542 fd 192020 [09:35:51]save to /storage/0542/doc_00192020 [09:35:51]save last doc name /storage/0542/doc_00192020 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=251 [09:35:51]tlvbuf is 015C8B90 [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 E8 4D 80 09 00 00 00 00 00 00 A7 [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 E8 4D 00 90 00 A9 [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 E9 4D 80 0D 01 02 00 00 00 00 AF [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 E9 4D 00 90 00 AA [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EE 02 00 35 04 06 00 A8 [09:35:51]Write to MH i2c: E2 02 01 EA 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EE 02 00 35 04 06 00 A8 00 00 54 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 0D 02 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 EA 4D 00 90 00 AB [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]wFMCommunicate request_size=10 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 02 02 05 C1 22 05 57 D2 [09:35:51]Write to MH i2c: E2 0D 00 EB 4D 80 0D 02 02 05 00 C1 22 05 57 D2 00 00 CD [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 0D 02 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 EB 4D 00 90 00 AC [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 03 02 [09:35:51]Write to MH i2c: E2 08 00 EC 4D 80 0D 03 02 00 00 00 00 B4 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 0B 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 0B 00 EC 4D 00 91 EE 12 4F E4 7A 9F 29 90 00 BB [09:35:51]RAPDU: 91 EE 12 4F E4 7A 9F 29 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_SignData done [09:35:51]FM_MakeSignedData done [09:35:51]CreateOFDProtocolMessage [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 11 00 00 [09:35:51]Write to MH i2c: E2 08 00 ED 4D 80 11 00 00 00 00 00 00 B4 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 17 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 17 00 ED 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [09:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:35:51]wFMCommunicate OK [09:35:51]CreateOFDProtocolMessage done [09:35:51]OFDSenderStorePacket 192020 [09:35:51]StoreOFDPacket docnum=192020 [09:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 1D 07 01 5C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EE 02 00 35 04 06 00 A8 C1 22 05 57 D2 91 EE 12 4F E4 7A 9F 29 [09:35:51]CheckFolder [09:35:51]dirname=/storage/ofd_packets [09:35:51]CheckFolder done [09:35:51]ProducePacketName [09:35:51]name=ofd_packets/00192020 [09:35:51]NVStorageSaveData ofd_packets/00192020 [09:35:51]File name is /storage/ofd_packets/00192020 [09:35:51]Write 301 bytes [09:35:51]NVStorageSaveData done [09:35:51]OFDSenderStorePacket done [09:35:51]KKMCreateOFDPacket done [09:35:51]NVStorageSaveData kkm_last_timestamp [09:35:51]File name is /storage/kkm_last_timestamp [09:35:51]Write 4 bytes [09:35:51]NVStorageSaveData done [09:35:51]ExternCall_PrintAddStr [09:35:51]wPrintStart [09:35:51]Write to MH i2c: 01 00 00 EE 4D 3B [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: 01 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: 01 07 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: 01 07 00 EE 4D 00 00 00 00 00 FF 0F 50 [09:35:51]RasterBufferAndPrint [09:35:51]line Счет N : (1)31330 [09:35:51]line ИНН: 02508201610067 [09:35:51]line Контрольно-Кассовый Чек [09:35:51]line ПРОДАЖА [09:35:51]line ТРК (МРК, ГНК) : 12 [09:35:51]line Товар: 2710124130 [09:35:51]line Аи-92-К-5 [09:35:51]line 14.950 * 66.90 [09:35:51]line = 1000.16 [09:35:51]line НДС 12% НСП 1% [09:35:51]line > о реализуемом товаре [09:35:51]line ОКРУГЛЕНИЕ: -0.16 [09:35:51]line ИТОГО: 1000.00 [09:35:51]line Внесено: 1000.00 [09:35:51]line СДАЧА: 0.00 [09:35:51]line НСП 1% : 8.85 [09:35:51]line НДС 12% : 106.21 [09:35:51]line Наличными: 1000.00 [09:35:51]line Безнал.: 0.00 [09:35:51]line Место: АЗС № 170 "Партнер Нефть" [09:35:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:35:51]line СНО: Общий режим [09:35:51]line Чек 52 27.10.2024 09:36 [09:35:51]line Смена: 542 ФФД: 1.0 [09:35:51]line ЗНМ: 0300000110 [09:35:51]line РНМ: 0000000000091776 [09:35:51]line Версия ККМ: 001 [09:35:51]line ФМ: 0000000000871754 [09:35:51]line ФД: 192020 [09:35:51]line ФПД: 185547452930002 [09:35:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093609&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192020&fm=185547452930002&tin=02508201610067®Number=0000000000091776&sum=100000 [09:35:52]OFD Sender: Processing packet 192020 [packets to send 75, broken 74] [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00192020 [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=8 [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 37 35 34 0F 01 00 00 C4 1D 07 01 5C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 89 09 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EE 02 00 35 04 06 00 A8 C1 22 05 57 D2 91 EE 12 4F E4 7A 9F 29 [09: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 37 35 34 4F 00 00 00 85 18 47 00 95 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EE 02 00 F4 03 04 00 51 AE 1D 67 B6 04 01 00 00 71 40 FA 71 CD D3 7F F6 [09:35:52]CommunicateWithHost err = 0 [09:35:52]CheckOFDResponse [09:35:52]1017 (14) - 77093643461234 [09:35:52]1041 (16) - 0000000000871754 [09:35:52]1040 (4) - 192020 [09:35:52]1012 (4) - 27.10.2024 03:06 [09:35:52]1206 (1) - 0 [09:35:52]OFD Sender: Remove packet 192020 [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00192020 [09:35:52]NVStorageDeleteData [09:35:52]Write to MH i2c: 01 00 00 19 4E 67 [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 19 4E 00 00 00 00 00 A5 0C 1F [09:35:52]RasterBufferAndPrint [09:35:52]line [09:35:52]line [09:35:52]line [09:35:52]line [09:35:52]line [09:35:52]written 0, free lines is 3242 [09:35:52]MH_Cut [09:35:52]Write to MH i2c: D1 01 00 20 4E 01 40 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: D1 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: D1 01 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: D1 01 00 20 4E 00 3F [09:35:52]Write to MH i2c: 01 00 00 21 4E 6F [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]OFD Sender: No OFD packet to send [09:35:53]*** Cut start [09:35:53]*** Partial cut [09:35:53]*** CUTSNS_PIN = 1 [09:35:53]*** CUTSNS_PIN = 0 [09:35:53]*** Brake cut motor [09:35:54]Read from MH i2c: 01 [09:35:54]MH_I2C_Read... [09:35:54]*** Stop cut motor [09:35:54]*** Cut end [09:35:54]Read from MH i2c: 01 07 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: 01 07 00 21 4E 00 00 00 00 00 FF 0F 84 [09:35:54]process_action close_receipt done [09:35:54]requested_data is exist [09:35:54]produce_requested_data [09:35:54]requested_item fm.sn is exist - process it [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 11 00 00 [09:35:54]Write to MH i2c: E2 08 00 22 4E 80 11 00 00 00 00 00 00 EA [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 22 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [09:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:35:54]wFMCommunicate OK [09:35:54]requested_item fd.num is exist - process it [09:35:54]SAM_PROTO_GetFieldsCounters [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 13 00 00 [09:35:54]Write to MH i2c: E2 08 00 23 4E 80 13 00 00 00 00 00 00 ED [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 62 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 62 00 23 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [09: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_GetFieldsCounters done [09:35:54]requested_item shift.num is exist - process it [09:35:54]requested_item shift.opened is exist - process it [09:35:54]req_shift_opened [09:35:54]FM_GetShiftState [09:35:54]SAM_PROTO_GetShiftState [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 13 01 00 [09:35:54]Write to MH i2c: E2 08 00 24 4E 80 13 01 00 00 00 00 00 EF [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 0E 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 0E 00 24 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 30 [09:35:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_GetShiftState done [09:35:54]FM_GetShiftState done [09:35:54]req_shift_opened done [09:35:54]requested_item shift.open_date is exist - process it [09:35:54]req_shift_open_date [09:35:54]req_shift_open_date done [09:35:54]produce_requested_data done [09:35:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192020,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:35:54]process_action_free close_receipt [09:35:54]json_value_free [09:35:54]json_value_free done [09:35:54]process_json_proto returns [09:35:54]Send response to host [09:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192020,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:35:54]free response buf [09:35:54]execute_script done [09:35:54]execute_script returns [09:35:54]free content buf [09:35:54]Sock 5.Close socket [09:35:54]Sock 5.Thread stoped [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37: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:24]accept exits with 6 [09:38:24]New connection [09:38:24]New thread 3066961252 created [09:38:24]Thread 3066817892 joined [09:38:24]Waiting for new connection... [09:38:24] Sock 6.Parse request [09:38:24]Sock 6.Check first char [09:38:24]Sock 6.First char is OK [09:38:24]request: POST /json_proto HTTP/1.0 [09:38:24]Method: POST [09:38:24]URL: /json_proto [09:38:24]Method is POST - this is cgi request [09:38:24]url: /json_proto [09:38:24]query_string will be loaded in cgi processing [09:38:24]execute_cgi json_proto POST (null) [09:38:24]execute_cgi path=json_proto method=POST [09:38:24]POST find Content-Length [09:38:24]Host: 172.17.63.131:8080 [09:38:24]Content-Length: 676 [09:38:24]Content-Type: application/json [09:38:24] [09:38:24]POST finish read [09:38:24]Found Content-Length = 676 [09:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:24]execute_script... [09:38:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:24]POST & json_proto [09:38:24]process_json_proto [09:38:24]json parsed OK: [09:38:24]protocol is kg_v1.0 [09:38:24]action value=close_receipt [09:38:24]process_action close_receipt [09:38:24]cmd_close_receipt [09:38:24]MH_GetDate [09:38:24]Write to MH i2c: F0 00 00 25 4E 62 [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: F0 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: F0 09 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: F0 09 00 25 4E 00 24 0A 1E 67 22 05 6E 64 17 [09:38:24]GetLastDocTimeStamp 1730021769 [09:38:24]current date 1730021924 [09:38:24]FM_GetShiftState [09:38:24]SAM_PROTO_GetShiftState [09:38:24]wFMCommunicate request_size=4 [09:38:24]MH_SAM_APDU [09:38:24]CAPDU: 80 13 01 00 [09:38:24]Write to MH i2c: E2 08 00 26 4E 80 13 01 00 00 00 00 00 F1 [09:38:24]Write i2c OK [09:38:24]MH_I2C_Read... [09:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:24]Read from MH i2c: E2 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 0E 00 [09:38:24]MH_I2C_Read... [09:38:24]Read from MH i2c: E2 0E 00 26 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 32 [09:38:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:38:24]wFMCommunicate OK [09:38:24]SAM_PROTO_GetShiftState done [09:38:24]FM_GetShiftState done [09:38:24]opened in 1729989159 [09:38:24]opened+sec_in_day 1730075559 [09:38:24]quantity*price = 30038 [09:38:24]sum+1 = 30039 [09:38:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 53 27.10.2024 09:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192021 ФПД: 197501247096314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192021&fm=197501247096314&tin=02508201610067®Number=0000000000091776&sum=30000 [09:38:25]StoreToDocumentArchive [09:38:25]shift 542 fd 192021 [09:38:25]save to /storage/0542/doc_00192021 [09:38:25]save last doc name /storage/0542/doc_00192021 to /storage/kkm_last_doc_name [09:38:25]save OK [09:38:25]Clear old archive folders... [09:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:25]tlvbuf is 018CAD80 [09:38:25]SAM_PROTO_ClearQueue [09:38:25]wFMCommunicate request_size=4 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 09 00 00 [09:38:25]Write to MH i2c: E2 08 00 33 4E 80 09 00 00 00 00 00 00 F3 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [09:38:25]RAPDU: 90 00 [09:38:25]wFMCommunicate OK [09:38:25]SAM_PROTO_ClearQueue done [09:38:25]KKMCreateOFDPacket [09:38:25]OFDProtocolAddRootSTLVToBuf [09:38:25]FM_MakeSignedData [09:38:25]FM_MakeSignedData [09:38:25]SAM_PROTO_SignData [09:38:25]wFMCommunicate request_size=4 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 0D 01 02 [09:38:25]Write to MH i2c: E2 08 00 34 4E 80 0D 01 02 00 00 00 00 FB [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:25]Read from MH i2c: E2 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 [09:38:25]MH_I2C_Read... [09:38:25]Read from MH i2c: E2 03 00 34 4E 00 90 00 F6 [09:38:25]RAPDU: 90 00 [09:38:25]wFMCommunicate OK [09:38:25]wFMCommunicate request_size=255 [09:38:25]MH_SAM_APDU [09:38:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EE 02 00 35 04 06 00 B3 [09:38:25]Write to MH i2c: E2 02 01 35 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EE 02 00 35 04 06 00 B3 00 00 43 [09:38:25]Write i2c OK [09:38:25]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 03 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 03 00 35 4E 00 90 00 F7 [09:38:26]RAPDU: 90 00 [09:38:26]wFMCommunicate OK [09:38:26]wFMCommunicate request_size=10 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 0D 02 02 05 A0 57 AD 05 FA [09:38:26]Write to MH i2c: E2 0D 00 36 4E 80 0D 02 02 05 00 A0 57 AD 05 FA 00 00 AB [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 03 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 03 00 36 4E 00 90 00 F8 [09:38:26]RAPDU: 90 00 [09:38:26]wFMCommunicate OK [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 0D 03 02 [09:38:26]Write to MH i2c: E2 08 00 37 4E 80 0D 03 02 00 00 00 00 00 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0B 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0B 00 37 4E 00 CB F9 2A 6D 68 D0 48 21 90 00 FD [09:38:26]RAPDU: CB F9 2A 6D 68 D0 48 21 90 00 [09:38:26]wFMCommunicate OK [09:38:26]SAM_PROTO_SignData done [09:38:26]FM_MakeSignedData done [09:38:26]CreateOFDProtocolMessage [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 11 00 00 [09:38:26]Write to MH i2c: E2 08 00 38 4E 80 11 00 00 00 00 00 00 00 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 17 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 17 00 38 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [09:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:26]wFMCommunicate OK [09:38:26]CreateOFDProtocolMessage done [09:38:26]OFDSenderStorePacket 192021 [09:38:26]StoreOFDPacket docnum=192021 [09:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 2E 07 01 77 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EE 02 00 35 04 06 00 B3 A0 57 AD 05 FA CB F9 2A 6D 68 D0 48 21 [09:38:26]CheckFolder [09:38:26]dirname=/storage/ofd_packets [09:38:26]CheckFolder done [09:38:26]ProducePacketName [09:38:26]name=ofd_packets/00192021 [09:38:26]NVStorageSaveData ofd_packets/00192021 [09:38:26]File name is /storage/ofd_packets/00192021 [09:38:26]Write 301 bytes [09:38:26]NVStorageSaveData done [09:38:26]OFDSenderStorePacket done [09:38:26]KKMCreateOFDPacket done [09:38:26]NVStorageSaveData kkm_last_timestamp [09:38:26]File name is /storage/kkm_last_timestamp [09:38:26]Write 4 bytes [09:38:26]NVStorageSaveData done [09:38:26]ExternCall_PrintAddStr [09:38:26]wPrintStart [09:38:26]Write to MH i2c: 01 00 00 39 4E 87 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: 01 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: 01 07 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: 01 07 00 39 4E 00 00 00 00 00 FF 0F 9C [09:38:26]RasterBufferAndPrint [09:38:26]line Счет N : (1)31331 [09:38:26]line ИНН: 02508201610067 [09:38:26]line Контрольно-Кассовый Чек [09:38:26]line ПРОДАЖА [09:38:26]line ТРК (МРК, ГНК) : 21 [09:38:26]line Товар: 2710124130 [09:38:26]line Аи-92-К-5 [09:38:26]line 4.490 * 66.90 [09:38:26]line = 300.38 [09:38:26]line НДС 12% НСП 1% [09:38:26]line > о реализуемом товаре [09:38:26]line ОКРУГЛЕНИЕ: -0.38 [09:38:26]line ИТОГО: 300.00 [09:38:26]line Внесено: 300.00 [09:38:26]line СДАЧА: 0.00 [09:38:26]line НСП 1% : 2.66 [09:38:26]line НДС 12% : 31.90 [09:38:26]line Наличными: 300.00 [09:38:26]line Безнал.: 0.00 [09:38:26]line Место: АЗС № 170 "Партнер Нефть" [09:38:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:38:26]line СНО: Общий режим [09:38:26]line Чек 53 27.10.2024 09:38 [09:38:26]line Смена: 542 ФФД: 1.0 [09:38:26]line ЗНМ: 0300000110 [09:38:26]line РНМ: 0000000000091776 [09:38:26]line Версия ККМ: 001 [09:38:26]line ФМ: 0000000000871754 [09:38:26]line ФД: 192021 [09:38:26]line ФПД: 197501247096314 [09:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192021&fm=197501247096314&tin=02508201610067®Number=0000000000091776&sum=30000 [09:38:26]OFD Sender: Processing packet 192021 [packets to send 75, broken 74] [09:38:26]ProducePacketName [09:38:26]name=ofd_packets/00192021 [09:38:26]OFD Sender: To server: pG, [09:38:26]CommunicateWithHost lk.salyk.kg:30040 [09:38:26]ConnectInit lk.salyk.kg [09:38:26]written 0, free lines is 4095 [09:38:26]Connected sock=8 [09:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 2E 07 01 77 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EE 02 00 35 04 06 00 B3 A0 57 AD 05 FA CB F9 2A 6D 68 D0 48 21 [09:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5A D5 47 00 D4 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EE 02 00 F4 03 04 00 EC AE 1D 67 B6 04 01 00 00 F4 03 73 34 07 14 1D FE [09:38:27]CommunicateWithHost err = 0 [09:38:27]CheckOFDResponse [09:38:27]1017 (14) - 77093643461234 [09:38:27]1041 (16) - 0000000000871754 [09:38:27]1040 (4) - 192021 [09:38:27]1012 (4) - 27.10.2024 03:09 [09:38:27]1206 (1) - 0 [09:38:27]OFD Sender: Remove packet 192021 [09:38:27]ProducePacketName [09:38:27]name=ofd_packets/00192021 [09:38:27]NVStorageDeleteData [09:38:27]Write to MH i2c: 01 00 00 64 4E B2 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: 01 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: 01 07 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: 01 07 00 64 4E 00 00 00 00 00 95 0C 5A [09:38:27]RasterBufferAndPrint [09:38:27]line [09:38:27]line [09:38:27]line [09:38:27]line [09:38:27]line [09:38:27]written 0, free lines is 3227 [09:38:27]MH_Cut [09:38:27]Write to MH i2c: D1 01 00 6B 4E 01 8B [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: D1 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: D1 01 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: D1 01 00 6B 4E 00 8A [09:38:27]Write to MH i2c: 01 00 00 6C 4E BA [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]OFD Sender: No OFD packet to send [09:38:28]*** Cut start [09:38:28]*** Partial cut [09:38:28]*** CUTSNS_PIN = 1 [09:38:28]*** CUTSNS_PIN = 0 [09:38:28]*** Brake cut motor [09:38:28]Read from MH i2c: 01 [09:38:28]MH_I2C_Read... [09:38:28]*** Stop cut motor [09:38:28]*** Cut end [09:38:28]Read from MH i2c: 01 07 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 07 00 6C 4E 00 00 00 00 00 FF 0F CF [09:38:28]process_action close_receipt done [09:38:28]requested_data is exist [09:38:28]produce_requested_data [09:38:28]requested_item fm.sn is exist - process it [09:38:28]wFMCommunicate request_size=4 [09:38:28]MH_SAM_APDU [09:38:28]CAPDU: 80 11 00 00 [09:38:28]Write to MH i2c: E2 08 00 6D 4E 80 11 00 00 00 00 00 00 35 [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 17 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 17 00 6D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [09:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:28]wFMCommunicate OK [09:38:28]requested_item fd.num is exist - process it [09:38:28]SAM_PROTO_GetFieldsCounters [09:38:28]wFMCommunicate request_size=4 [09:38:28]MH_SAM_APDU [09:38:28]CAPDU: 80 13 00 00 [09:38:28]Write to MH i2c: E2 08 00 6E 4E 80 13 00 00 00 00 00 00 38 [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 62 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 62 00 6E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:38:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:28]wFMCommunicate OK [09:38:28]SAM_PROTO_GetFieldsCounters done [09:38:28]requested_item shift.num is exist - process it [09:38:28]requested_item shift.opened is exist - process it [09:38:28]req_shift_opened [09:38:28]FM_GetShiftState [09:38:28]SAM_PROTO_GetShiftState [09:38:28]wFMCommunicate request_size=4 [09:38:28]MH_SAM_APDU [09:38:28]CAPDU: 80 13 01 00 [09:38:28]Write to MH i2c: E2 08 00 6F 4E 80 13 01 00 00 00 00 00 3A [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0E 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0E 00 6F 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7B [09:38:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:38:28]wFMCommunicate OK [09:38:28]SAM_PROTO_GetShiftState done [09:38:28]FM_GetShiftState done [09:38:28]req_shift_opened done [09:38:28]requested_item shift.open_date is exist - process it [09:38:28]req_shift_open_date [09:38:28]req_shift_open_date done [09:38:28]produce_requested_data done [09:38:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192021,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:38:28]process_action_free close_receipt [09:38:28]json_value_free [09:38:28]json_value_free done [09:38:28]process_json_proto returns [09:38:28]Send response to host [09:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192021,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:38:28]free response buf [09:38:28]execute_script done [09:38:28]execute_script returns [09:38:28]free content buf [09:38:28]Sock 6.Close socket [09:38:28]Sock 6.Thread stoped [09:38:32]OFD Sender: No OFD packet to send [09:38:33]accept exits with 5 [09:38:33]New connection [09:38:33]New thread 3066817892 created [09:38:33]Thread 3066961252 joined [09:38:33]Waiting for new connection... [09:38:33] Sock 5.Parse request [09:38:33]Sock 5.Check first char [09:38:33]Sock 5.First char is OK [09:38:33]request: POST /json_proto HTTP/1.0 [09:38:33]Method: POST [09:38:33]URL: /json_proto [09:38:33]Method is POST - this is cgi request [09:38:33]url: /json_proto [09:38:33]query_string will be loaded in cgi processing [09:38:33]execute_cgi json_proto POST (null) [09:38:33]execute_cgi path=json_proto method=POST [09:38:33]POST find Content-Length [09:38:33]Host: 172.17.63.131:8080 [09:38:33]Content-Length: 676 [09:38:33]Content-Type: application/json [09:38:33] [09:38:33]POST finish read [09:38:33]Found Content-Length = 676 [09:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:33]execute_script... [09:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:33]POST & json_proto [09:38:33]process_json_proto [09:38:33]json parsed OK: [09:38:33]protocol is kg_v1.0 [09:38:33]action value=close_receipt [09:38:33]process_action close_receipt [09:38:33]cmd_close_receipt [09:38:33]MH_GetDate [09:38:33]Write to MH i2c: F0 00 00 70 4E AD [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 09 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: F0 09 00 70 4E 00 2D 0A 1E 67 22 05 6E 64 6B [09:38:33]GetLastDocTimeStamp 1730021924 [09:38:33]current date 1730021933 [09:38:33]FM_GetShiftState [09:38:33]SAM_PROTO_GetShiftState [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 13 01 00 [09:38:33]Write to MH i2c: E2 08 00 71 4E 80 13 01 00 00 00 00 00 3C [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0E 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0E 00 71 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7D [09:38:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_GetShiftState done [09:38:33]FM_GetShiftState done [09:38:33]opened in 1729989159 [09:38:33]opened+sec_in_day 1730075559 [09:38:33]quantity*price = 50041 [09:38:33]sum+1 = 50042 [09:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 54 27.10.2024 09:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192022 ФПД: 257540887720880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192022&fm=257540887720880&tin=02508201610067®Number=0000000000091776&sum=50000 [09:38:35]StoreToDocumentArchive [09:38:35]shift 542 fd 192022 [09:38:35]save to /storage/0542/doc_00192022 [09:38:35]save last doc name /storage/0542/doc_00192022 to /storage/kkm_last_doc_name [09:38:35]save OK [09:38:35]Clear old archive folders... [09:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:35]tlvbuf is 01831500 [09:38:35]SAM_PROTO_ClearQueue [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 09 00 00 [09:38:35]Write to MH i2c: E2 08 00 7E 4E 80 09 00 00 00 00 00 00 3E [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 7E 4E 00 90 00 40 [09:38:35]RAPDU: 90 00 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_ClearQueue done [09:38:35]KKMCreateOFDPacket [09:38:35]OFDProtocolAddRootSTLVToBuf [09:38:35]FM_MakeSignedData [09:38:35]FM_MakeSignedData [09:38:35]SAM_PROTO_SignData [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 0D 01 02 [09:38:35]Write to MH i2c: E2 08 00 7F 4E 80 0D 01 02 00 00 00 00 46 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 7F 4E 00 90 00 41 [09:38:35]RAPDU: 90 00 [09:38:35]wFMCommunicate OK [09:38:35]wFMCommunicate request_size=255 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2D 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EE 02 00 35 04 06 00 EA [09:38:35]Write to MH i2c: E2 02 01 80 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2D 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EE 02 00 35 04 06 00 EA 00 00 DC [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 80 4E 00 90 00 42 [09:38:35]RAPDU: 90 00 [09:38:35]wFMCommunicate OK [09:38:35]wFMCommunicate request_size=10 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 0D 02 02 05 3B 69 20 B3 B0 [09:38:35]Write to MH i2c: E2 0D 00 81 4E 80 0D 02 02 05 00 3B 69 20 B3 B0 00 00 7A [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 03 00 81 4E 00 90 00 43 [09:38:35]RAPDU: 90 00 [09:38:35]wFMCommunicate OK [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 0D 03 02 [09:38:35]Write to MH i2c: E2 08 00 82 4E 80 0D 03 02 00 00 00 00 4B [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0B 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0B 00 82 4E 00 F2 9E 71 3B 7F 61 D5 4B 90 00 88 [09:38:35]RAPDU: F2 9E 71 3B 7F 61 D5 4B 90 00 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_SignData done [09:38:35]FM_MakeSignedData done [09:38:35]CreateOFDProtocolMessage [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 11 00 00 [09:38:35]Write to MH i2c: E2 08 00 83 4E 80 11 00 00 00 00 00 00 4B [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 83 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [09:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:35]wFMCommunicate OK [09:38:35]CreateOFDProtocolMessage done [09:38:35]OFDSenderStorePacket 192022 [09:38:35]StoreOFDPacket docnum=192022 [09:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB E5 07 01 1C E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2D 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EE 02 00 35 04 06 00 EA 3B 69 20 B3 B0 F2 9E 71 3B 7F 61 D5 4B [09:38:35]CheckFolder [09:38:35]dirname=/storage/ofd_packets [09:38:35]CheckFolder done [09:38:35]ProducePacketName [09:38:35]name=ofd_packets/00192022 [09:38:35]NVStorageSaveData ofd_packets/00192022 [09:38:35]File name is /storage/ofd_packets/00192022 [09:38:35]Write 301 bytes [09:38:35]NVStorageSaveData done [09:38:35]OFDSenderStorePacket done [09:38:35]KKMCreateOFDPacket done [09:38:35]NVStorageSaveData kkm_last_timestamp [09:38:35]File name is /storage/kkm_last_timestamp [09:38:35]Write 4 bytes [09:38:35]NVStorageSaveData done [09:38:35]ExternCall_PrintAddStr [09:38:35]wPrintStart [09:38:35]Write to MH i2c: 01 00 00 84 4E D2 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 84 4E 00 00 00 00 00 FF 0F E7 [09:38:35]RasterBufferAndPrint [09:38:35]line Счет N : (1)31332 [09:38:35]line ИНН: 02508201610067 [09:38:35]line Контрольно-Кассовый Чек [09:38:35]line ПРОДАЖА [09:38:35]line ТРК (МРК, ГНК) : 12 [09:38:35]line Товар: 2710124130 [09:38:35]line Аи-92-К-5 [09:38:35]line 7.480 * 66.90 [09:38:35]line = 500.41 [09:38:35]line НДС 12% НСП 1% [09:38:35]line > о реализуемом товаре [09:38:35]line ОКРУГЛЕНИЕ: -0.41 [09:38:35]line ИТОГО: 500.00 [09:38:35]line Внесено: 500.00 [09:38:35]line СДАЧА: 0.00 [09:38:35]line НСП 1% : 4.43 [09:38:35]line НДС 12% : 53.14 [09:38:35]line Наличными: 500.00 [09:38:35]line Безнал.: 0.00 [09:38:35]line Место: АЗС № 170 "Партнер Нефть" [09:38:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:38:35]line СНО: Общий режим [09:38:35]line Чек 54 27.10.2024 09:38 [09:38:35]line Смена: 542 ФФД: 1.0 [09:38:35]line ЗНМ: 0300000110 [09:38:35]line РНМ: 0000000000091776 [09:38:35]line Версия ККМ: 001 [09:38:35]line ФМ: 0000000000871754 [09:38:35]line ФД: 192022 [09:38:35]line ФПД: 257540887720880 [09:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192022&fm=257540887720880&tin=02508201610067®Number=0000000000091776&sum=50000 [09:38:35]written 0, free lines is 4095 [09:38:35]OFD Sender: Processing packet 192022 [packets to send 75, broken 74] [09:38:35]ProducePacketName [09:38:35]name=ofd_packets/00192022 [09:38:35]OFD Sender: To server: pG, [09:38:35]CommunicateWithHost lk.salyk.kg:30040 [09:38:35]ConnectInit lk.salyk.kg [09:38:35]Connected sock=8 [09:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB E5 07 01 1C E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2D 0A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EE 02 00 35 04 06 00 EA 3B 69 20 B3 B0 F2 9E 71 3B 7F 61 D5 4B [09:38:36]Write to MH i2c: 01 00 00 AF 4E FD [09:38:36]Write i2c OK [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: 01 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: 01 07 00 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: 01 07 00 AF 4E 00 00 00 00 00 9C 0C AC [09:38:36]RasterBufferAndPrint [09:38:36]line [09:38:36]line [09:38:36]line [09:38:36]line [09:38:36]line [09:38:36]written 0, free lines is 3240 [09:38:36]MH_Cut [09:38:36]Write to MH i2c: D1 01 00 B6 4E 01 D6 [09:38:36]Write i2c OK [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: D1 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: D1 01 00 [09:38:36]MH_I2C_Read... [09:38:36]Read from MH i2c: D1 01 00 B6 4E 00 D5 [09:38:36]Write to MH i2c: 01 00 00 B7 4E 05 [09:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 EE 47 00 BC DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EE 02 00 F4 03 04 00 F5 AE 1D 67 B6 04 01 00 00 E9 85 A1 B3 6D E6 62 8E [09:38:36]CommunicateWithHost err = 0 [09:38:36]CheckOFDResponse [09:38:36]1017 (14) - 77093643461234 [09:38:36]1041 (16) - 0000000000871754 [09:38:36]1040 (4) - 192022 [09:38:36]1012 (4) - 27.10.2024 03:09 [09:38:36]1206 (1) - 0 [09:38:36]OFD Sender: Remove packet 192022 [09:38:36]ProducePacketName [09:38:36]name=ofd_packets/00192022 [09:38:36]NVStorageDeleteData [09:38:36]Write i2c OK [09:38:36]MH_I2C_Read... [09:38:36]OFD Sender: No OFD packet to send [09:38:36]*** Cut start [09:38:36]*** Partial cut [09:38:36]*** CUTSNS_PIN = 1 [09:38:37]*** CUTSNS_PIN = 0 [09:38:37]*** Brake cut motor [09:38:37]Read from MH i2c: 01 [09:38:37]MH_I2C_Read... [09:38:37]*** Stop cut motor [09:38:37]*** Cut end [09:38:37]Read from MH i2c: 01 07 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: 01 07 00 B7 4E 00 00 00 00 00 FF 0F 1A [09:38:37]process_action close_receipt done [09:38:37]requested_data is exist [09:38:37]produce_requested_data [09:38:37]requested_item fm.sn is exist - process it [09:38:37]wFMCommunicate request_size=4 [09:38:37]MH_SAM_APDU [09:38:37]CAPDU: 80 11 00 00 [09:38:37]Write to MH i2c: E2 08 00 B8 4E 80 11 00 00 00 00 00 00 80 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 17 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 17 00 B8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [09:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:37]wFMCommunicate OK [09:38:37]requested_item fd.num is exist - process it [09:38:37]SAM_PROTO_GetFieldsCounters [09:38:37]wFMCommunicate request_size=4 [09:38:37]MH_SAM_APDU [09:38:37]CAPDU: 80 13 00 00 [09:38:37]Write to MH i2c: E2 08 00 B9 4E 80 13 00 00 00 00 00 00 83 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 62 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 62 00 B9 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:37]wFMCommunicate OK [09:38:37]SAM_PROTO_GetFieldsCounters done [09:38:37]requested_item shift.num is exist - process it [09:38:37]requested_item shift.opened is exist - process it [09:38:37]req_shift_opened [09:38:37]FM_GetShiftState [09:38:37]SAM_PROTO_GetShiftState [09:38:37]wFMCommunicate request_size=4 [09:38:37]MH_SAM_APDU [09:38:37]CAPDU: 80 13 01 00 [09:38:37]Write to MH i2c: E2 08 00 BA 4E 80 13 01 00 00 00 00 00 85 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 BA 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C6 [09:38:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:38:37]wFMCommunicate OK [09:38:37]SAM_PROTO_GetShiftState done [09:38:37]FM_GetShiftState done [09:38:37]req_shift_opened done [09:38:37]requested_item shift.open_date is exist - process it [09:38:37]req_shift_open_date [09:38:37]req_shift_open_date done [09:38:37]produce_requested_data done [09:38:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192022,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:38:37]process_action_free close_receipt [09:38:37]json_value_free [09:38:37]json_value_free done [09:38:37]process_json_proto returns [09:38:37]Send response to host [09:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192022,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:38:37]free response buf [09:38:37]execute_script done [09:38:37]execute_script returns [09:38:37]free content buf [09:38:37]Sock 5.Close socket [09:38:37]Sock 5.Thread stoped [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:30]ConnectInit Can't connect to host [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:44]accept exits with 6 [09:45:44]New connection [09:45:44]New thread 3066961252 created [09:45:44]Thread 3066817892 joined [09:45:44]Waiting for new connection... [09:45:44] Sock 6.Parse request [09:45:44]Sock 6.Check first char [09:45:44]Sock 6.First char is OK [09:45:44]request: POST /json_proto HTTP/1.0 [09:45:44]Method: POST [09:45:44]URL: /json_proto [09:45:44]Method is POST - this is cgi request [09:45:44]url: /json_proto [09:45:44]query_string will be loaded in cgi processing [09:45:44]execute_cgi json_proto POST (null) [09:45:44]execute_cgi path=json_proto method=POST [09:45:44]POST find Content-Length [09:45:44]Host: 172.17.63.131:8080 [09:45:44]Content-Length: 673 [09:45:44]Content-Type: application/json [09:45:44] [09:45:44]POST finish read [09:45:44]Found Content-Length = 673 [09:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31333", "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" : 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" ] } } [09:45:44]execute_script... [09:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31333", "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" : 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" ] } } [09:45:44]POST & json_proto [09:45:44]process_json_proto [09:45:44]json parsed OK: [09:45:44]protocol is kg_v1.0 [09:45:44]action value=close_receipt [09:45:44]process_action close_receipt [09:45:44]cmd_close_receipt [09:45:44]MH_GetDate [09:45:44]Write to MH i2c: F0 00 00 BB 4E F8 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: F0 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: F0 09 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: F0 09 00 BB 4E 00 DC 0B 1E 67 22 05 6E 64 66 [09:45:44]GetLastDocTimeStamp 1730021933 [09:45:44]current date 1730022364 [09:45:44]FM_GetShiftState [09:45:44]SAM_PROTO_GetShiftState [09:45:44]wFMCommunicate request_size=4 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 13 01 00 [09:45:44]Write to MH i2c: E2 08 00 BC 4E 80 13 01 00 00 00 00 00 87 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 0E 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 0E 00 BC 4E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C8 [09:45:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:45:44]wFMCommunicate OK [09:45:44]SAM_PROTO_GetShiftState done [09:45:44]FM_GetShiftState done [09:45:44]opened in 1729989159 [09:45:44]opened+sec_in_day 1730075559 [09:45:44]quantity*price = 60045 [09:45:44]sum+1 = 60047 [09:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 55 27.10.2024 09:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192023 ФПД: 171545438585277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192023&fm=171545438585277&tin=02508201610067®Number=0000000000091776&sum=60000 [09:45:45]StoreToDocumentArchive [09:45:45]shift 542 fd 192023 [09:45:45]save to /storage/0542/doc_00192023 [09:45:45]save last doc name /storage/0542/doc_00192023 to /storage/kkm_last_doc_name [09:45:45]save OK [09:45:45]Clear old archive folders... [09:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:45:45]tlvbuf is 01D133C0 [09:45:45]SAM_PROTO_ClearQueue [09:45:45]wFMCommunicate request_size=4 [09:45:45]MH_SAM_APDU [09:45:45]CAPDU: 80 09 00 00 [09:45:45]Write to MH i2c: E2 08 00 C9 4E 80 09 00 00 00 00 00 00 89 [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [09:45:46]RAPDU: 90 00 [09:45:46]wFMCommunicate OK [09:45:46]SAM_PROTO_ClearQueue done [09:45:46]KKMCreateOFDPacket [09:45:46]OFDProtocolAddRootSTLVToBuf [09:45:46]FM_MakeSignedData [09:45:46]FM_MakeSignedData [09:45:46]SAM_PROTO_SignData [09:45:46]wFMCommunicate request_size=4 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 0D 01 02 [09:45:46]Write to MH i2c: E2 08 00 CA 4E 80 0D 01 02 00 00 00 00 91 [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 CA 4E 00 90 00 8C [09:45:46]RAPDU: 90 00 [09:45:46]wFMCommunicate OK [09:45:46]wFMCommunicate request_size=255 [09:45:46]MH_SAM_APDU [09:45: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 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 37 00 00 00 F4 03 04 00 DC 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EE 02 00 35 04 06 00 9C 05 08 EE [09:45:46]Write to MH i2c: E2 02 01 CB 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 DC 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EE 02 00 35 04 06 00 9C 05 08 EE 00 00 3D [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 CB 4E 00 90 00 8D [09:45:46]RAPDU: 90 00 [09:45:46]wFMCommunicate OK [09:45:46]wFMCommunicate request_size=7 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 0D 02 02 02 01 BD [09:45:46]Write to MH i2c: E2 0A 00 CC 4E 80 0D 02 02 02 00 01 BD 00 00 56 [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 03 00 CC 4E 00 90 00 8E [09:45:46]RAPDU: 90 00 [09:45:46]wFMCommunicate OK [09:45:46]wFMCommunicate request_size=4 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 0D 03 02 [09:45:46]Write to MH i2c: E2 08 00 CD 4E 80 0D 03 02 00 00 00 00 96 [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0B 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0B 00 CD 4E 00 42 79 FE EB A0 DD 01 69 90 00 22 [09:45:46]RAPDU: 42 79 FE EB A0 DD 01 69 90 00 [09:45:46]wFMCommunicate OK [09:45:46]SAM_PROTO_SignData done [09:45:46]FM_MakeSignedData done [09:45:46]CreateOFDProtocolMessage [09:45:46]wFMCommunicate request_size=4 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 11 00 00 [09:45:46]Write to MH i2c: E2 08 00 CE 4E 80 11 00 00 00 00 00 00 96 [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 17 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 17 00 CE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [09:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:46]wFMCommunicate OK [09:45:46]CreateOFDProtocolMessage done [09:45:46]OFDSenderStorePacket 192023 [09:45:46]StoreOFDPacket docnum=192023 [09:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D2 10 04 01 E9 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 DC 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EE 02 00 35 04 06 00 9C 05 08 EE 01 BD 42 79 FE EB A0 DD 01 69 [09:45:46]CheckFolder [09:45:46]dirname=/storage/ofd_packets [09:45:46]CheckFolder done [09:45:46]ProducePacketName [09:45:46]name=ofd_packets/00192023 [09:45:46]NVStorageSaveData ofd_packets/00192023 [09:45:46]File name is /storage/ofd_packets/00192023 [09:45:46]Write 298 bytes [09:45:46]NVStorageSaveData done [09:45:46]OFDSenderStorePacket done [09:45:46]KKMCreateOFDPacket done [09:45:46]NVStorageSaveData kkm_last_timestamp [09:45:46]File name is /storage/kkm_last_timestamp [09:45:46]Write 4 bytes [09:45:46]NVStorageSaveData done [09:45:46]ExternCall_PrintAddStr [09:45:46]wPrintStart [09:45:46]Write to MH i2c: 01 00 00 CF 4E 1D [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: 01 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: 01 07 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: 01 07 00 CF 4E 00 00 00 00 00 FF 0F 32 [09:45:46]RasterBufferAndPrint [09:45:46]line Счет N : (1)31333 [09:45:46]line ИНН: 02508201610067 [09:45:46]line Контрольно-Кассовый Чек [09:45:46]line ПРОДАЖА [09:45:46]line ТРК (МРК, ГНК) : 11 [09:45:46]line Товар: 2710194210 [09:45:46]line ДТ-К-5 [09:45:46]line 7.880 * 76.20 [09:45:46]line = 600.46 [09:45:46]line НДС 12% НСП 1% [09:45:46]line > о реализуемом товаре [09:45:46]line ОКРУГЛЕНИЕ: -0.46 [09:45:46]line ИТОГО: 600.00 [09:45:46]line Внесено: 600.00 [09:45:46]line СДАЧА: 0.00 [09:45:46]line НСП 1% : 5.31 [09:45:46]line НДС 12% : 63.77 [09:45:46]line Наличными: 600.00 [09:45:46]line Безнал.: 0.00 [09:45:46]line Место: АЗС № 170 "Партнер Нефть" [09:45:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:45:46]line СНО: Общий режим [09:45:46]line Чек 55 27.10.2024 09:46 [09:45:46]line Смена: 542 ФФД: 1.0 [09:45:46]line ЗНМ: 0300000110 [09:45:46]line РНМ: 0000000000091776 [09:45:46]line Версия ККМ: 001 [09:45:46]line ФМ: 0000000000871754 [09:45:46]line ФД: 192023 [09:45:46]line ФПД: 171545438585277 [09:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192023&fm=171545438585277&tin=02508201610067®Number=0000000000091776&sum=60000 [09:45:46]OFD Sender: Processing packet 192023 [packets to send 75, broken 74] [09:45:46]ProducePacketName [09:45:46]name=ofd_packets/00192023 [09:45:46]OFD Sender: To server: pG, [09:45:46]CommunicateWithHost lk.salyk.kg:30040 [09:45:46]ConnectInit lk.salyk.kg [09:45:46]written 0, free lines is 4095 [09:45:46]Connected sock=8 [09:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D2 10 04 01 E9 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 DC 0B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EE 02 00 35 04 06 00 9C 05 08 EE 01 BD 42 79 FE EB A0 DD 01 69 [09:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B4 89 47 00 FF 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EE 02 00 F4 03 04 00 A4 B0 1D 67 B6 04 01 00 00 E4 44 70 CB F0 D2 F2 1B [09:45:47]CommunicateWithHost err = 0 [09:45:47]CheckOFDResponse [09:45:47]1017 (14) - 77093643461234 [09:45:47]1041 (16) - 0000000000871754 [09:45:47]1040 (4) - 192023 [09:45:47]1012 (4) - 27.10.2024 03:16 [09:45:47]1206 (1) - 0 [09:45:47]OFD Sender: Remove packet 192023 [09:45:47]ProducePacketName [09:45:47]name=ofd_packets/00192023 [09:45:47]NVStorageDeleteData [09:45:47]Write to MH i2c: 01 00 00 FA 4E 48 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: 01 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: 01 07 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: 01 07 00 FA 4E 00 00 00 00 00 9B 0C F6 [09:45:47]RasterBufferAndPrint [09:45:47]line [09:45:47]line [09:45:47]line [09:45:47]line [09:45:47]line [09:45:47]written 0, free lines is 3234 [09:45:47]MH_Cut [09:45:47]Write to MH i2c: D1 01 00 01 4F 01 22 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: D1 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: D1 01 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: D1 01 00 01 4F 00 21 [09:45:47]Write to MH i2c: 01 00 00 02 4F 51 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]OFD Sender: No OFD packet to send [09:45:48]*** Cut start [09:45:48]*** Partial cut [09:45:48]*** CUTSNS_PIN = 1 [09:45:48]*** CUTSNS_PIN = 0 [09:45:48]*** Brake cut motor [09:45:48]Read from MH i2c: 01 [09:45:48]MH_I2C_Read... [09:45:48]*** Stop cut motor [09:45:48]*** Cut end [09:45:48]Read from MH i2c: 01 07 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 02 4F 00 00 00 00 00 FF 0F 66 [09:45:48]process_action close_receipt done [09:45:48]requested_data is exist [09:45:48]produce_requested_data [09:45:48]requested_item fm.sn is exist - process it [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 11 00 00 [09:45:48]Write to MH i2c: E2 08 00 03 4F 80 11 00 00 00 00 00 00 CC [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 03 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [09:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:48]wFMCommunicate OK [09:45:48]requested_item fd.num is exist - process it [09:45:48]SAM_PROTO_GetFieldsCounters [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 13 00 00 [09:45:48]Write to MH i2c: E2 08 00 04 4F 80 13 00 00 00 00 00 00 CF [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 62 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 62 00 04 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [09:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:48]wFMCommunicate OK [09:45:48]SAM_PROTO_GetFieldsCounters done [09:45:48]requested_item shift.num is exist - process it [09:45:48]requested_item shift.opened is exist - process it [09:45:48]req_shift_opened [09:45:48]FM_GetShiftState [09:45:48]SAM_PROTO_GetShiftState [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 13 01 00 [09:45:48]Write to MH i2c: E2 08 00 05 4F 80 13 01 00 00 00 00 00 D1 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:49]Read from MH i2c: E2 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 0E 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 0E 00 05 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 12 [09:45:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:45:49]wFMCommunicate OK [09:45:49]SAM_PROTO_GetShiftState done [09:45:49]FM_GetShiftState done [09:45:49]req_shift_opened done [09:45:49]requested_item shift.open_date is exist - process it [09:45:49]req_shift_open_date [09:45:49]req_shift_open_date done [09:45:49]produce_requested_data done [09:45:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192023,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:45:49]process_action_free close_receipt [09:45:49]json_value_free [09:45:49]json_value_free done [09:45:49]process_json_proto returns [09:45:49]Send response to host [09:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192023,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:45:49]free response buf [09:45:49]execute_script done [09:45:49]execute_script returns [09:45:49]free content buf [09:45:49]Sock 6.Close socket [09:45:49]Sock 6.Thread stoped [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [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:25]accept exits with 5 [09:47:25]New connection [09:47:25]New thread 3066817892 created [09:47:25]Thread 3066961252 joined [09:47:25]Waiting for new connection... [09:47:25] Sock 5.Parse request [09:47:25]Sock 5.Check first char [09:47:25]Sock 5.First char is OK [09:47:25]request: POST /json_proto HTTP/1.0 [09:47:25]Method: POST [09:47:25]URL: /json_proto [09:47:25]Method is POST - this is cgi request [09:47:25]url: /json_proto [09:47:25]query_string will be loaded in cgi processing [09:47:25]execute_cgi json_proto POST (null) [09:47:25]execute_cgi path=json_proto method=POST [09:47:25]POST find Content-Length [09:47:25]Host: 172.17.63.131:8080 [09:47:25]Content-Length: 781 [09:47:25]Content-Type: application/json [09:47:25] [09:47:25]POST finish read [09:47:25]Found Content-Length = 781 [09:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3909213", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:25]execute_script... [09:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3909213", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:25]POST & json_proto [09:47:25]process_json_proto [09:47:25]json parsed OK: [09:47:25]protocol is kg_v1.0 [09:47:25]action value=close_receipt [09:47:25]process_action close_receipt [09:47:25]cmd_close_receipt [09:47:25]MH_GetDate [09:47:25]Write to MH i2c: F0 00 00 06 4F 44 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 09 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: F0 09 00 06 4F 00 40 0C 1E 67 22 05 6E 64 17 [09:47:25]GetLastDocTimeStamp 1730022364 [09:47:25]current date 1730022464 [09:47:25]FM_GetShiftState [09:47:25]SAM_PROTO_GetShiftState [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 13 01 00 [09:47:25]Write to MH i2c: E2 08 00 07 4F 80 13 01 00 00 00 00 00 D3 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0E 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0E 00 07 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 14 [09:47:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:47:25]wFMCommunicate OK [09:47:25]SAM_PROTO_GetShiftState done [09:47:25]FM_GetShiftState done [09:47:25]opened in 1729989159 [09:47:25]opened+sec_in_day 1730075559 [09:47:25]quantity*price = 0 [09:47:25]sum+1 = 1 [09:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 56 27.10.2024 09:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 3909213 ФМ: 0000000000871754 ФД: 192024 ФПД: 38301615990227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192024&fm=38301615990227&tin=02508201610067®Number=0000000000091776&sum=0 [09:47:26]StoreToDocumentArchive [09:47:26]shift 542 fd 192024 [09:47:26]save to /storage/0542/doc_00192024 [09:47:26]save last doc name /storage/0542/doc_00192024 to /storage/kkm_last_doc_name [09:47:26]save OK [09:47:26]Clear old archive folders... [09:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:26]tlvbuf is 01B4D180 [09:47:26]SAM_PROTO_ClearQueue [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 09 00 00 [09:47:26]Write to MH i2c: E2 08 00 14 4F 80 09 00 00 00 00 00 00 D5 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 14 4F 00 90 00 D7 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_ClearQueue done [09:47:26]KKMCreateOFDPacket [09:47:26]OFDProtocolAddRootSTLVToBuf [09:47:26]FM_MakeSignedData [09:47:26]FM_MakeSignedData [09:47:26]SAM_PROTO_SignData [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 01 02 [09:47:26]Write to MH i2c: E2 08 00 15 4F 80 0D 01 02 00 00 00 00 DD [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 15 4F 00 90 00 D8 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=255 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 00 00 00 F4 03 04 00 40 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EE 02 00 35 04 06 00 22 [09:47:26]Write to MH i2c: E2 02 01 16 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 00 00 00 F4 03 04 00 40 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EE 02 00 35 04 06 00 22 00 00 AD [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 16 4F 00 90 00 D9 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=10 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 02 02 05 D5 CA 37 25 D3 [09:47:26]Write to MH i2c: E2 0D 00 17 4F 80 0D 02 02 05 00 D5 CA 37 25 D3 00 00 B8 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 17 4F 00 90 00 DA [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 03 02 [09:47:26]Write to MH i2c: E2 08 00 18 4F 80 0D 03 02 00 00 00 00 E2 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 18 4F 00 6D 34 23 D8 C6 79 15 03 90 00 D6 [09:47:27]RAPDU: 6D 34 23 D8 C6 79 15 03 90 00 [09:47:27]wFMCommunicate OK [09:47:27]SAM_PROTO_SignData done [09:47:27]FM_MakeSignedData done [09:47:27]CreateOFDProtocolMessage [09:47:27]wFMCommunicate request_size=4 [09:47:27]MH_SAM_APDU [09:47:27]CAPDU: 80 11 00 00 [09:47:27]Write to MH i2c: E2 08 00 19 4F 80 11 00 00 00 00 00 00 E2 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:27]Read from MH i2c: E2 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 17 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 17 00 19 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [09:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:27]wFMCommunicate OK [09:47:27]CreateOFDProtocolMessage done [09:47:27]OFDSenderStorePacket 192024 [09:47:27]StoreOFDPacket docnum=192024 [09:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 BF 07 01 28 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 00 00 00 F4 03 04 00 40 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EE 02 00 35 04 06 00 22 D5 CA 37 25 D3 6D 34 23 D8 C6 79 15 03 [09:47:27]CheckFolder [09:47:27]dirname=/storage/ofd_packets [09:47:27]CheckFolder done [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00192024 [09:47:27]NVStorageSaveData ofd_packets/00192024 [09:47:27]File name is /storage/ofd_packets/00192024 [09:47:27]Write 301 bytes [09:47:27]NVStorageSaveData done [09:47:27]OFDSenderStorePacket done [09:47:27]KKMCreateOFDPacket done [09:47:27]NVStorageSaveData kkm_last_timestamp [09:47:27]File name is /storage/kkm_last_timestamp [09:47:27]Write 4 bytes [09:47:27]NVStorageSaveData done [09:47:27]ExternCall_PrintAddStr [09:47:27]wPrintStart [09:47:27]Write to MH i2c: 01 00 00 1A 4F 69 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 1A 4F 00 00 00 00 00 FF 0F 7E [09:47:27]RasterBufferAndPrint [09:47:27]line Счет N : (1)31334 [09:47:27]line ИНН: 02508201610067 [09:47:27]line Контрольно-Кассовый Чек [09:47:27]line ПРОДАЖА [09:47:27]line ТРК (МРК, ГНК) : 21 [09:47:27]line Товар: 2710124130 [09:47:27]line Аи-92-К-5 [09:47:27]line 20.000 * 0.00 [09:47:27]line = 0.00 [09:47:27]line НДС 12% НСП 1% [09:47:27]line > о реализуемом товаре [09:47:27]line ИТОГО: 0.00 [09:47:27]line НСП 1% : 0.00 [09:47:27]line НДС 12% : 0.00 [09:47:27]line Наличными: 0.00 [09:47:27]line Безнал.: 0.00 [09:47:27]line Место: АЗС № 170 "Партнер Нефть" [09:47:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:47:27]line СНО: Общий режим [09:47:27]line Чек 56 27.10.2024 09:47 [09:47:27]line Смена: 542 ФФД: 1.0 [09:47:27]line ЗНМ: 0300000110 [09:47:27]line РНМ: 0000000000091776 [09:47:27]line Версия ККМ: 001 [09:47:27]line Талоны: Партнер нефть [09:47:27]line 3909213 [09:47:27]line ФМ: 0000000000871754 [09:47:27]line ФД: 192024 [09:47:27]line ФПД: 38301615990227 [09:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192024&fm=38301615990227&tin=02508201610067®Number=0000000000091776&sum=0 [09:47:27]written 0, free lines is 4095 [09:47:27]OFD Sender: Processing packet 192024 [packets to send 75, broken 74] [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00192024 [09:47:27]OFD Sender: To server: pG, [09:47:27]CommunicateWithHost lk.salyk.kg:30040 [09:47:27]ConnectInit lk.salyk.kg [09:47:27]Connected sock=8 [09:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 BF 07 01 28 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 00 00 00 F4 03 04 00 40 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EE 02 00 35 04 06 00 22 D5 CA 37 25 D3 6D 34 23 D8 C6 79 15 03 [09:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 78 0D 47 00 59 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EE 02 00 F4 03 04 00 08 B1 1D 67 B6 04 01 00 00 93 E9 BA 54 AC 3E 67 DF [09:47:27]CommunicateWithHost err = 0 [09:47:27]CheckOFDResponse [09:47:27]1017 (14) - 77093643461234 [09:47:27]1041 (16) - 0000000000871754 [09:47:27]1040 (4) - 192024 [09:47:27]1012 (4) - 27.10.2024 03:18 [09:47:27]1206 (1) - 0 [09:47:27]OFD Sender: Remove packet 192024 [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00192024 [09:47:27]NVStorageDeleteData [09:47:27]Write to MH i2c: 01 00 00 44 4F 93 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 44 4F 00 00 00 00 00 B6 0C 5C [09:47:27]RasterBufferAndPrint [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]written 0, free lines is 3258 [09:47:27]MH_Cut [09:47:27]Write to MH i2c: D1 01 00 4B 4F 01 6C [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 4B 4F 00 6B [09:47:27]Write to MH i2c: 01 00 00 4C 4F 9B [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:28]OFD Sender: No OFD packet to send [09:47:28]*** Cut start [09:47:28]*** Partial cut [09:47:28]*** CUTSNS_PIN = 1 [09:47:28]*** CUTSNS_PIN = 0 [09:47:28]*** Brake cut motor [09:47:29]Read from MH i2c: 01 [09:47:29]MH_I2C_Read... [09:47:29]*** Stop cut motor [09:47:29]*** Cut end [09:47:29]Read from MH i2c: 01 07 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 4C 4F 00 00 00 00 00 FF 0F B0 [09:47:29]process_action close_receipt done [09:47:29]requested_data is exist [09:47:29]produce_requested_data [09:47:29]requested_item fm.sn is exist - process it [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 11 00 00 [09:47:29]Write to MH i2c: E2 08 00 4D 4F 80 11 00 00 00 00 00 00 16 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 4D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [09:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:29]wFMCommunicate OK [09:47:29]requested_item fd.num is exist - process it [09:47:29]SAM_PROTO_GetFieldsCounters [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 13 00 00 [09:47:29]Write to MH i2c: E2 08 00 4E 4F 80 13 00 00 00 00 00 00 19 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 62 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 62 00 4E 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [09:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_GetFieldsCounters done [09:47:29]requested_item shift.num is exist - process it [09:47:29]requested_item shift.opened is exist - process it [09:47:29]req_shift_opened [09:47:29]FM_GetShiftState [09:47:29]SAM_PROTO_GetShiftState [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 13 01 00 [09:47:29]Write to MH i2c: E2 08 00 4F 4F 80 13 01 00 00 00 00 00 1B [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0E 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0E 00 4F 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5C [09:47:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_GetShiftState done [09:47:29]FM_GetShiftState done [09:47:29]req_shift_opened done [09:47:29]requested_item shift.open_date is exist - process it [09:47:29]req_shift_open_date [09:47:29]req_shift_open_date done [09:47:29]produce_requested_data done [09:47:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192024,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:47:29]process_action_free close_receipt [09:47:29]json_value_free [09:47:29]json_value_free done [09:47:29]process_json_proto returns [09:47:29]Send response to host [09:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192024,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:47:29]free response buf [09:47:29]execute_script done [09:47:29]execute_script returns [09:47:29]free content buf [09:47:29]Sock 5.Close socket [09:47:29]Sock 5.Thread stoped [09:47:33]OFD Sender: No OFD packet to send [09:47:37]accept exits with 6 [09:47:37]New connection [09:47:37]New thread 3066961252 created [09:47:37]Thread 3066817892 joined [09:47:37]Waiting for new connection... [09:47:37] Sock 6.Parse request [09:47:37]Sock 6.Check first char [09:47:37]Sock 6.First char is OK [09:47:37]request: POST /json_proto HTTP/1.0 [09:47:37]Method: POST [09:47:37]URL: /json_proto [09:47:37]Method is POST - this is cgi request [09:47:37]url: /json_proto [09:47:37]query_string will be loaded in cgi processing [09:47:37]execute_cgi json_proto POST (null) [09:47:37]execute_cgi path=json_proto method=POST [09:47:37]POST find Content-Length [09:47:37]Host: 172.17.63.131:8080 [09:47:37]Content-Length: 681 [09:47:37]Content-Type: application/json [09:47:37] [09:47:37]POST finish read [09:47:37]Found Content-Length = 681 [09:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:37]execute_script... [09:47: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)31335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:37]POST & json_proto [09:47:37]process_json_proto [09:47:37]json parsed OK: [09:47:37]protocol is kg_v1.0 [09:47:37]action value=close_receipt [09:47:37]process_action close_receipt [09:47:37]cmd_close_receipt [09:47:37]MH_GetDate [09:47:37]Write to MH i2c: F0 00 00 50 4F 8E [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 09 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: F0 09 00 50 4F 00 4C 0C 1E 67 22 05 6E 64 6D [09:47:37]GetLastDocTimeStamp 1730022464 [09:47:37]current date 1730022476 [09:47:37]FM_GetShiftState [09:47:37]SAM_PROTO_GetShiftState [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 13 01 00 [09:47:37]Write to MH i2c: E2 08 00 51 4F 80 13 01 00 00 00 00 00 1D [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0E 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0E 00 51 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5E [09:47:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_GetShiftState done [09:47:37]FM_GetShiftState done [09:47:37]opened in 1729989159 [09:47:37]opened+sec_in_day 1730075559 [09:47:37]quantity*price = 100015 [09:47:37]sum+1 = 100017 [09:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 57 27.10.2024 09:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192025 ФПД: 211869095426430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192025&fm=211869095426430&tin=02508201610067®Number=0000000000091776&sum=100000 [09:47:38]StoreToDocumentArchive [09:47:38]shift 542 fd 192025 [09:47:38]save to /storage/0542/doc_00192025 [09:47:38]save last doc name /storage/0542/doc_00192025 to /storage/kkm_last_doc_name [09:47:38]save OK [09:47:38]Clear old archive folders... [09:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:38]tlvbuf is 01960DD0 [09:47:38]SAM_PROTO_ClearQueue [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 09 00 00 [09:47:38]Write to MH i2c: E2 08 00 5E 4F 80 09 00 00 00 00 00 00 1F [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 5E 4F 00 90 00 21 [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_ClearQueue done [09:47:38]KKMCreateOFDPacket [09:47:38]OFDProtocolAddRootSTLVToBuf [09:47:38]FM_MakeSignedData [09:47:38]FM_MakeSignedData [09:47:38]SAM_PROTO_SignData [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 0D 01 02 [09:47:38]Write to MH i2c: E2 08 00 5F 4F 80 0D 01 02 00 00 00 00 27 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 5F 4F 00 90 00 22 [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]wFMCommunicate request_size=255 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EE 02 00 35 04 06 00 C0 [09:47:38]Write to MH i2c: E2 02 01 60 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EE 02 00 35 04 06 00 C0 00 00 B4 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 60 4F 00 90 00 23 [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]wFMCommunicate request_size=10 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 0D 02 02 05 B1 9E 2B F9 7E [09:47:38]Write to MH i2c: E2 0D 00 61 4F 80 0D 02 02 05 00 B1 9E 2B F9 7E 00 00 25 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 03 00 61 4F 00 90 00 24 [09:47:38]RAPDU: 90 00 [09:47:38]wFMCommunicate OK [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 0D 03 02 [09:47:38]Write to MH i2c: E2 08 00 62 4F 80 0D 03 02 00 00 00 00 2C [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0B 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0B 00 62 4F 00 FD 2D D5 74 81 C4 60 B4 90 00 F9 [09:47:38]RAPDU: FD 2D D5 74 81 C4 60 B4 90 00 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_SignData done [09:47:38]FM_MakeSignedData done [09:47:38]CreateOFDProtocolMessage [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 11 00 00 [09:47:38]Write to MH i2c: E2 08 00 63 4F 80 11 00 00 00 00 00 00 2C [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 17 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 17 00 63 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [09:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:38]wFMCommunicate OK [09:47:38]CreateOFDProtocolMessage done [09:47:38]OFDSenderStorePacket 192025 [09:47:38]StoreOFDPacket docnum=192025 [09:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 88 07 01 34 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EE 02 00 35 04 06 00 C0 B1 9E 2B F9 7E FD 2D D5 74 81 C4 60 B4 [09:47:38]CheckFolder [09:47:38]dirname=/storage/ofd_packets [09:47:38]CheckFolder done [09:47:38]ProducePacketName [09:47:38]name=ofd_packets/00192025 [09:47:38]NVStorageSaveData ofd_packets/00192025 [09:47:38]File name is /storage/ofd_packets/00192025 [09:47:38]Write 301 bytes [09:47:38]NVStorageSaveData done [09:47:38]OFDSenderStorePacket done [09:47:38]KKMCreateOFDPacket done [09:47:38]NVStorageSaveData kkm_last_timestamp [09:47:38]File name is /storage/kkm_last_timestamp [09:47:38]Write 4 bytes [09:47:38]NVStorageSaveData done [09:47:38]ExternCall_PrintAddStr [09:47:38]wPrintStart [09:47:38]Write to MH i2c: 01 00 00 64 4F B3 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 64 4F 00 00 00 00 00 FF 0F C8 [09:47:38]RasterBufferAndPrint [09:47:38]line Счет N : (1)31335 [09:47:38]line ИНН: 02508201610067 [09:47:38]line Контрольно-Кассовый Чек [09:47:38]line ПРОДАЖА [09:47:38]line ТРК (МРК, ГНК) : 12 [09:47:38]line Товар: 2710124130 [09:47:38]line Аи-92-К-5 [09:47:38]line 14.950 * 66.90 [09:47:38]line = 1000.16 [09:47:38]line НДС 12% НСП 1% [09:47:38]line > о реализуемом товаре [09:47:38]line ОКРУГЛЕНИЕ: -0.16 [09:47:38]line ИТОГО: 1000.00 [09:47:38]line Внесено: 1000.00 [09:47:38]line СДАЧА: 0.00 [09:47:38]line НСП 1% : 8.85 [09:47:38]line НДС 12% : 106.21 [09:47:38]line Наличными: 1000.00 [09:47:38]line Безнал.: 0.00 [09:47:38]line Место: АЗС № 170 "Партнер Нефть" [09:47:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:47:38]line СНО: Общий режим [09:47:38]line Чек 57 27.10.2024 09:47 [09:47:38]line Смена: 542 ФФД: 1.0 [09:47:38]line ЗНМ: 0300000110 [09:47:38]line РНМ: 0000000000091776 [09:47:38]line Версия ККМ: 001 [09:47:38]line ФМ: 0000000000871754 [09:47:38]line ФД: 192025 [09:47:38]line ФПД: 211869095426430 [09:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094756&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192025&fm=211869095426430&tin=02508201610067®Number=0000000000091776&sum=100000 [09:47:38]written 0, free lines is 4095 [09:47:38]OFD Sender: Processing packet 192025 [packets to send 75, broken 74] [09:47:38]ProducePacketName [09:47:38]name=ofd_packets/00192025 [09:47:38]OFD Sender: To server: pG, [09:47:38]CommunicateWithHost lk.salyk.kg:30040 [09:47:38]ConnectInit lk.salyk.kg [09:47:38]Connected sock=8 [09:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 88 07 01 34 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4C 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EE 02 00 35 04 06 00 C0 B1 9E 2B F9 7E FD 2D D5 74 81 C4 60 B4 [09:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A BA 47 00 BB D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EE 02 00 F4 03 04 00 14 B1 1D 67 B6 04 01 00 00 70 CE BC 03 F1 C4 76 C4 [09:47:39]CommunicateWithHost err = 0 [09:47:39]CheckOFDResponse [09:47:39]1017 (14) - 77093643461234 [09:47:39]1041 (16) - 0000000000871754 [09:47:39]1040 (4) - 192025 [09:47:39]1012 (4) - 27.10.2024 03:18 [09:47:39]1206 (1) - 0 [09:47:39]OFD Sender: Remove packet 192025 [09:47:39]ProducePacketName [09:47:39]name=ofd_packets/00192025 [09:47:39]NVStorageDeleteData [09:47:39]Write to MH i2c: 01 00 00 8F 4F DE [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 8F 4F 00 00 00 00 00 AB 0C 9C [09:47:39]RasterBufferAndPrint [09:47:39]line [09:47:39]line [09:47:39]line [09:47:39]line [09:47:39]line [09:47:39]written 0, free lines is 3252 [09:47:39]MH_Cut [09:47:39]Write to MH i2c: D1 01 00 96 4F 01 B7 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: D1 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: D1 01 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: D1 01 00 96 4F 00 B6 [09:47:39]Write to MH i2c: 01 00 00 97 4F E6 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]OFD Sender: No OFD packet to send [09:47:40]*** Cut start [09:47:40]*** Partial cut [09:47:40]*** CUTSNS_PIN = 1 [09:47:40]*** CUTSNS_PIN = 0 [09:47:40]*** Brake cut motor [09:47:40]Read from MH i2c: 01 [09:47:40]MH_I2C_Read... [09:47:40]*** Stop cut motor [09:47:40]*** Cut end [09:47:40]Read from MH i2c: 01 07 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: 01 07 00 97 4F 00 00 00 00 00 FF 0F FB [09:47:40]process_action close_receipt done [09:47:40]requested_data is exist [09:47:40]produce_requested_data [09:47:40]requested_item fm.sn is exist - process it [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 11 00 00 [09:47:40]Write to MH i2c: E2 08 00 98 4F 80 11 00 00 00 00 00 00 61 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 17 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 17 00 98 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [09:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:40]wFMCommunicate OK [09:47:40]requested_item fd.num is exist - process it [09:47:40]SAM_PROTO_GetFieldsCounters [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 13 00 00 [09:47:40]Write to MH i2c: E2 08 00 99 4F 80 13 00 00 00 00 00 00 64 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 62 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 62 00 99 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [09:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:41]wFMCommunicate OK [09:47:41]SAM_PROTO_GetFieldsCounters done [09:47:41]requested_item shift.num is exist - process it [09:47:41]requested_item shift.opened is exist - process it [09:47:41]req_shift_opened [09:47:41]FM_GetShiftState [09:47:41]SAM_PROTO_GetShiftState [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 13 01 00 [09:47:41]Write to MH i2c: E2 08 00 9A 4F 80 13 01 00 00 00 00 00 66 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0E 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0E 00 9A 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A7 [09:47:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:47:41]wFMCommunicate OK [09:47:41]SAM_PROTO_GetShiftState done [09:47:41]FM_GetShiftState done [09:47:41]req_shift_opened done [09:47:41]requested_item shift.open_date is exist - process it [09:47:41]req_shift_open_date [09:47:41]req_shift_open_date done [09:47:41]produce_requested_data done [09:47:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192025,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:47:41]process_action_free close_receipt [09:47:41]json_value_free [09:47:41]json_value_free done [09:47:41]process_json_proto returns [09:47:41]Send response to host [09:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192025,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:47:41]free response buf [09:47:41]execute_script done [09:47:41]execute_script returns [09:47:41]free content buf [09:47:41]Sock 6.Close socket [09:47:41]Sock 6.Thread stoped [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]accept exits with 5 [09:48:59]New connection [09:48:59]New thread 3066817892 created [09:48:59]Thread 3066961252 joined [09:48:59]Waiting for new connection... [09:48:59] Sock 5.Parse request [09:48:59]Sock 5.Check first char [09:48:59]Sock 5.First char is OK [09:48:59]request: POST /json_proto HTTP/1.0 [09:48:59]Method: POST [09:48:59]URL: /json_proto [09:48:59]Method is POST - this is cgi request [09:48:59]url: /json_proto [09:48:59]query_string will be loaded in cgi processing [09:48:59]execute_cgi json_proto POST (null) [09:48:59]execute_cgi path=json_proto method=POST [09:48:59]POST find Content-Length [09:48:59]Host: 172.17.63.131:8080 [09:48:59]Content-Length: 681 [09:48:59]Content-Type: application/json [09:48:59] [09:48:59]POST finish read [09:48:59]Found Content-Length = 681 [09:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:59]execute_script... [09:48: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)31336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:59]POST & json_proto [09:48:59]process_json_proto [09:48:59]json parsed OK: [09:48:59]protocol is kg_v1.0 [09:48:59]action value=close_receipt [09:48:59]process_action close_receipt [09:48:59]cmd_close_receipt [09:48:59]MH_GetDate [09:48:59]Write to MH i2c: F0 00 00 9B 4F D9 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 09 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 09 00 9B 4F 00 9F 0C 1E 67 22 05 6E 64 0B [09:48:59]GetLastDocTimeStamp 1730022476 [09:48:59]current date 1730022559 [09:48:59]FM_GetShiftState [09:48:59]SAM_PROTO_GetShiftState [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 13 01 00 [09:48:59]Write to MH i2c: E2 08 00 9C 4F 80 13 01 00 00 00 00 00 68 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 9C 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A9 [09:48:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_GetShiftState done [09:48:59]FM_GetShiftState done [09:48:59]opened in 1729989159 [09:48:59]opened+sec_in_day 1730075559 [09:48:59]quantity*price = 100015 [09:48:59]sum+1 = 100017 [09:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 58 27.10.2024 09:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192026 ФПД: 146056276106380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192026&fm=146056276106380&tin=02508201610067®Number=0000000000091776&sum=100000 [09:49:00]StoreToDocumentArchive [09:49:00]shift 542 fd 192026 [09:49:00]save to /storage/0542/doc_00192026 [09:49:00]save last doc name /storage/0542/doc_00192026 to /storage/kkm_last_doc_name [09:49:00]save OK [09:49:00]Clear old archive folders... [09:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:00]tlvbuf is 01609250 [09:49:00]SAM_PROTO_ClearQueue [09:49:00]wFMCommunicate request_size=4 [09:49:00]MH_SAM_APDU [09:49:00]CAPDU: 80 09 00 00 [09:49:00]Write to MH i2c: E2 08 00 A9 4F 80 09 00 00 00 00 00 00 6A [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:00]Read from MH i2c: E2 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: E2 03 00 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: E2 03 00 A9 4F 00 90 00 6C [09:49:00]RAPDU: 90 00 [09:49:00]wFMCommunicate OK [09:49:00]SAM_PROTO_ClearQueue done [09:49:00]KKMCreateOFDPacket [09:49:00]OFDProtocolAddRootSTLVToBuf [09:49:00]FM_MakeSignedData [09:49:00]FM_MakeSignedData [09:49:00]SAM_PROTO_SignData [09:49:00]wFMCommunicate request_size=4 [09:49:00]MH_SAM_APDU [09:49:00]CAPDU: 80 0D 01 02 [09:49:00]Write to MH i2c: E2 08 00 AA 4F 80 0D 01 02 00 00 00 00 72 [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:00]Read from MH i2c: E2 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: E2 03 00 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: E2 03 00 AA 4F 00 90 00 6D [09:49:00]RAPDU: 90 00 [09:49:00]wFMCommunicate OK [09:49:00]wFMCommunicate request_size=255 [09:49:00]MH_SAM_APDU [09:49:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EE 02 00 35 04 06 00 84 [09:49:00]Write to MH i2c: E2 02 01 AB 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EE 02 00 35 04 06 00 84 00 00 18 [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 AB 4F 00 90 00 6E [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]wFMCommunicate request_size=10 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 02 02 05 D6 60 74 5C 8C [09:49:01]Write to MH i2c: E2 0D 00 AC 4F 80 0D 02 02 05 00 D6 60 74 5C 8C 00 00 11 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 AC 4F 00 90 00 6F [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 03 02 [09:49:01]Write to MH i2c: E2 08 00 AD 4F 80 0D 03 02 00 00 00 00 77 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0B 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0B 00 AD 4F 00 69 B0 BE 27 89 97 56 45 90 00 31 [09:49:01]RAPDU: 69 B0 BE 27 89 97 56 45 90 00 [09:49:01]wFMCommunicate OK [09:49:01]SAM_PROTO_SignData done [09:49:01]FM_MakeSignedData done [09:49:01]CreateOFDProtocolMessage [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 11 00 00 [09:49:01]Write to MH i2c: E2 08 00 AE 4F 80 11 00 00 00 00 00 00 77 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 17 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 17 00 AE 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [09:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:49:01]wFMCommunicate OK [09:49:01]CreateOFDProtocolMessage done [09:49:01]OFDSenderStorePacket 192026 [09:49:01]StoreOFDPacket docnum=192026 [09:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 0D 07 01 49 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EE 02 00 35 04 06 00 84 D6 60 74 5C 8C 69 B0 BE 27 89 97 56 45 [09:49:01]CheckFolder [09:49:01]dirname=/storage/ofd_packets [09:49:01]CheckFolder done [09:49:01]ProducePacketName [09:49:01]name=ofd_packets/00192026 [09:49:01]NVStorageSaveData ofd_packets/00192026 [09:49:01]File name is /storage/ofd_packets/00192026 [09:49:01]Write 301 bytes [09:49:01]NVStorageSaveData done [09:49:01]OFDSenderStorePacket done [09:49:01]KKMCreateOFDPacket done [09:49:01]NVStorageSaveData kkm_last_timestamp [09:49:01]File name is /storage/kkm_last_timestamp [09:49:01]Write 4 bytes [09:49:01]NVStorageSaveData done [09:49:01]ExternCall_PrintAddStr [09:49:01]wPrintStart [09:49:01]Write to MH i2c: 01 00 00 AF 4F FE [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 07 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 07 00 AF 4F 00 00 00 00 00 FF 0F 13 [09:49:01]RasterBufferAndPrint [09:49:01]line Счет N : (1)31336 [09:49:01]line ИНН: 02508201610067 [09:49:01]line Контрольно-Кассовый Чек [09:49:01]line ПРОДАЖА [09:49:01]line ТРК (МРК, ГНК) : 21 [09:49:01]line Товар: 2710124130 [09:49:01]line Аи-92-К-5 [09:49:01]line 14.950 * 66.90 [09:49:01]line = 1000.16 [09:49:01]line НДС 12% НСП 1% [09:49:01]line > о реализуемом товаре [09:49:01]line ОКРУГЛЕНИЕ: -0.16 [09:49:01]line ИТОГО: 1000.00 [09:49:01]line Внесено: 1000.00 [09:49:01]line СДАЧА: 0.00 [09:49:01]line НСП 1% : 8.85 [09:49:01]line НДС 12% : 106.21 [09:49:01]line Наличными: 1000.00 [09:49:01]line Безнал.: 0.00 [09:49:01]line Место: АЗС № 170 "Партнер Нефть" [09:49:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:49:01]line СНО: Общий режим [09:49:01]line Чек 58 27.10.2024 09:49 [09:49:01]line Смена: 542 ФФД: 1.0 [09:49:01]line ЗНМ: 0300000110 [09:49:01]line РНМ: 0000000000091776 [09:49:01]line Версия ККМ: 001 [09:49:01]line ФМ: 0000000000871754 [09:49:01]line ФД: 192026 [09:49:01]line ФПД: 146056276106380 [09:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192026&fm=146056276106380&tin=02508201610067®Number=0000000000091776&sum=100000 [09:49:01]OFD Sender: Processing packet 192026 [packets to send 75, broken 74] [09:49:01]ProducePacketName [09:49:01]name=ofd_packets/00192026 [09:49:01]OFD Sender: To server: pG, [09:49:01]CommunicateWithHost lk.salyk.kg:30040 [09:49:01]ConnectInit lk.salyk.kg [09:49:01]written 0, free lines is 4095 [09:49:01]Connected sock=8 [09:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 0D 07 01 49 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9F 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EE 02 00 35 04 06 00 84 D6 60 74 5C 8C 69 B0 BE 27 89 97 56 45 [09:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 67 47 00 3D B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EE 02 00 F4 03 04 00 67 B1 1D 67 B6 04 01 00 00 78 55 9F 88 17 06 A4 EC [09:49:02]CommunicateWithHost err = 0 [09:49:02]CheckOFDResponse [09:49:02]1017 (14) - 77093643461234 [09:49:02]1041 (16) - 0000000000871754 [09:49:02]1040 (4) - 192026 [09:49:02]1012 (4) - 27.10.2024 03:20 [09:49:02]1206 (1) - 0 [09:49:02]OFD Sender: Remove packet 192026 [09:49:02]ProducePacketName [09:49:02]name=ofd_packets/00192026 [09:49:02]NVStorageDeleteData [09:49:02]Write to MH i2c: 01 00 00 DA 4F 29 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 07 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 07 00 DA 4F 00 00 00 00 00 B3 0C EF [09:49:02]RasterBufferAndPrint [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]written 0, free lines is 3256 [09:49:02]MH_Cut [09:49:02]Write to MH i2c: D1 01 00 E1 4F 01 02 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 01 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 01 00 E1 4F 00 01 [09:49:02]Write to MH i2c: 01 00 00 E2 4F 31 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]OFD Sender: No OFD packet to send [09:49:03]*** Cut start [09:49:03]*** Partial cut [09:49:03]*** CUTSNS_PIN = 1 [09:49:03]*** CUTSNS_PIN = 0 [09:49:03]*** Brake cut motor [09:49:03]Read from MH i2c: 01 [09:49:03]MH_I2C_Read... [09:49:03]*** Stop cut motor [09:49:03]*** Cut end [09:49:03]Read from MH i2c: 01 07 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 E2 4F 00 00 00 00 00 FF 0F 46 [09:49:03]process_action close_receipt done [09:49:03]requested_data is exist [09:49:03]produce_requested_data [09:49:03]requested_item fm.sn is exist - process it [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 11 00 00 [09:49:03]Write to MH i2c: E2 08 00 E3 4F 80 11 00 00 00 00 00 00 AC [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 E3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [09:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:49:03]wFMCommunicate OK [09:49:03]requested_item fd.num is exist - process it [09:49:03]SAM_PROTO_GetFieldsCounters [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 13 00 00 [09:49:03]Write to MH i2c: E2 08 00 E4 4F 80 13 00 00 00 00 00 00 AF [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 62 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 62 00 E4 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [09:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_GetFieldsCounters done [09:49:03]requested_item shift.num is exist - process it [09:49:03]requested_item shift.opened is exist - process it [09:49:03]req_shift_opened [09:49:03]FM_GetShiftState [09:49:03]SAM_PROTO_GetShiftState [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 13 01 00 [09:49:03]Write to MH i2c: E2 08 00 E5 4F 80 13 01 00 00 00 00 00 B1 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0E 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0E 00 E5 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [09:49:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_GetShiftState done [09:49:03]FM_GetShiftState done [09:49:03]req_shift_opened done [09:49:03]requested_item shift.open_date is exist - process it [09:49:03]req_shift_open_date [09:49:03]req_shift_open_date done [09:49:03]produce_requested_data done [09:49:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192026,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:49:03]process_action_free close_receipt [09:49:03]json_value_free [09:49:03]json_value_free done [09:49:03]process_json_proto returns [09:49:03]Send response to host [09:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192026,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:49:03]free response buf [09:49:03]execute_script done [09:49:03]execute_script returns [09:49:03]free content buf [09:49:03]Sock 5.Close socket [09:49:03]Sock 5.Thread stoped [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:14]accept exits with 6 [09:49:14]New connection [09:49:14]New thread 3066961252 created [09:49:14]Thread 3066817892 joined [09:49:14]Waiting for new connection... [09:49:14] Sock 6.Parse request [09:49:14]Sock 6.Check first char [09:49:14]Sock 6.First char is OK [09:49:14]request: POST /json_proto HTTP/1.0 [09:49:14]Method: POST [09:49:14]URL: /json_proto [09:49:14]Method is POST - this is cgi request [09:49:14]url: /json_proto [09:49:14]query_string will be loaded in cgi processing [09:49:14]execute_cgi json_proto POST (null) [09:49:14]execute_cgi path=json_proto method=POST [09:49:14]POST find Content-Length [09:49:14]Host: 172.17.63.131:8080 [09:49:14]Content-Length: 676 [09:49:14]Content-Type: application/json [09:49:14] [09:49:14]POST finish read [09:49:14]Found Content-Length = 676 [09:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:14]execute_script... [09:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:14]POST & json_proto [09:49:14]process_json_proto [09:49:14]json parsed OK: [09:49:14]protocol is kg_v1.0 [09:49:14]action value=close_receipt [09:49:14]process_action close_receipt [09:49:14]cmd_close_receipt [09:49:14]MH_GetDate [09:49:14]Write to MH i2c: F0 00 00 E6 4F 24 [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 09 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 09 00 E6 4F 00 AE 0C 1E 67 22 05 6E 64 65 [09:49:14]GetLastDocTimeStamp 1730022559 [09:49:14]current date 1730022574 [09:49:14]FM_GetShiftState [09:49:14]SAM_PROTO_GetShiftState [09:49:14]wFMCommunicate request_size=4 [09:49:14]MH_SAM_APDU [09:49:14]CAPDU: 80 13 01 00 [09:49:14]Write to MH i2c: E2 08 00 E7 4F 80 13 01 00 00 00 00 00 B3 [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:14]Read from MH i2c: E2 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 E7 4F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F4 [09:49:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:49:14]wFMCommunicate OK [09:49:14]SAM_PROTO_GetShiftState done [09:49:14]FM_GetShiftState done [09:49:14]opened in 1729989159 [09:49:14]opened+sec_in_day 1730075559 [09:49:14]quantity*price = 50041 [09:49:14]sum+1 = 50042 [09:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 59 27.10.2024 09:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192027 ФПД: 50449972290992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094934&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192027&fm=50449972290992&tin=02508201610067®Number=0000000000091776&sum=50000 [09:49:15]StoreToDocumentArchive [09:49:15]shift 542 fd 192027 [09:49:15]save to /storage/0542/doc_00192027 [09:49:15]save last doc name /storage/0542/doc_00192027 to /storage/kkm_last_doc_name [09:49:15]save OK [09:49:15]Clear old archive folders... [09:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:15]tlvbuf is 01A50C90 [09:49:15]SAM_PROTO_ClearQueue [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 09 00 00 [09:49:15]Write to MH i2c: E2 08 00 F4 4F 80 09 00 00 00 00 00 00 B5 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 F4 4F 00 90 00 B7 [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]SAM_PROTO_ClearQueue done [09:49:15]KKMCreateOFDPacket [09:49:15]OFDProtocolAddRootSTLVToBuf [09:49:15]FM_MakeSignedData [09:49:15]FM_MakeSignedData [09:49:15]SAM_PROTO_SignData [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 01 02 [09:49:15]Write to MH i2c: E2 08 00 F5 4F 80 0D 01 02 00 00 00 00 BD [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 F5 4F 00 90 00 B8 [09:49:16]RAPDU: 90 00 [09:49:16]wFMCommunicate OK [09:49:16]wFMCommunicate request_size=255 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EE 02 00 35 04 06 00 2D [09:49:16]Write to MH i2c: E2 02 01 F6 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EE 02 00 35 04 06 00 2D 00 00 23 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 F6 4F 00 90 00 B9 [09:49:16]RAPDU: 90 00 [09:49:16]wFMCommunicate OK [09:49:16]wFMCommunicate request_size=10 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 0D 02 02 05 E2 4C AD 65 B0 [09:49:16]Write to MH i2c: E2 0D 00 F7 4F 80 0D 02 02 05 00 E2 4C AD 65 B0 00 00 BA [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 F7 4F 00 90 00 BA [09:49:16]RAPDU: 90 00 [09:49:16]wFMCommunicate OK [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 0D 03 02 [09:49:16]Write to MH i2c: E2 08 00 F8 4F 80 0D 03 02 00 00 00 00 C2 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0B 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0B 00 F8 4F 00 AC 97 93 6B 44 EF A8 82 90 00 61 [09:49:16]RAPDU: AC 97 93 6B 44 EF A8 82 90 00 [09:49:16]wFMCommunicate OK [09:49:16]SAM_PROTO_SignData done [09:49:16]FM_MakeSignedData done [09:49:16]CreateOFDProtocolMessage [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 11 00 00 [09:49:16]Write to MH i2c: E2 08 00 F9 4F 80 11 00 00 00 00 00 00 C2 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 F9 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [09:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:49:16]wFMCommunicate OK [09:49:16]CreateOFDProtocolMessage done [09:49:16]OFDSenderStorePacket 192027 [09:49:16]StoreOFDPacket docnum=192027 [09:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B D6 07 01 E4 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EE 02 00 35 04 06 00 2D E2 4C AD 65 B0 AC 97 93 6B 44 EF A8 82 [09:49:16]CheckFolder [09:49:16]dirname=/storage/ofd_packets [09:49:16]CheckFolder done [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00192027 [09:49:16]NVStorageSaveData ofd_packets/00192027 [09:49:16]File name is /storage/ofd_packets/00192027 [09:49:16]Write 301 bytes [09:49:16]NVStorageSaveData done [09:49:16]OFDSenderStorePacket done [09:49:16]KKMCreateOFDPacket done [09:49:16]NVStorageSaveData kkm_last_timestamp [09:49:16]File name is /storage/kkm_last_timestamp [09:49:16]Write 4 bytes [09:49:16]NVStorageSaveData done [09:49:16]ExternCall_PrintAddStr [09:49:16]wPrintStart [09:49:16]Write to MH i2c: 01 00 00 FA 4F 49 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 FA 4F 00 00 00 00 00 FF 0F 5E [09:49:16]RasterBufferAndPrint [09:49:16]line Счет N : (1)31337 [09:49:16]line ИНН: 02508201610067 [09:49:16]line Контрольно-Кассовый Чек [09:49:16]line ПРОДАЖА [09:49:16]line ТРК (МРК, ГНК) : 12 [09:49:16]line Товар: 2710124130 [09:49:16]line Аи-92-К-5 [09:49:16]line 7.480 * 66.90 [09:49:16]line = 500.41 [09:49:16]line НДС 12% НСП 1% [09:49:16]line > о реализуемом товаре [09:49:16]line ОКРУГЛЕНИЕ: -0.41 [09:49:16]line ИТОГО: 500.00 [09:49:16]line Внесено: 500.00 [09:49:16]line СДАЧА: 0.00 [09:49:16]line НСП 1% : 4.43 [09:49:16]line НДС 12% : 53.14 [09:49:16]line Наличными: 500.00 [09:49:16]line Безнал.: 0.00 [09:49:16]line Место: АЗС № 170 "Партнер Нефть" [09:49:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:49:16]line СНО: Общий режим [09:49:16]line Чек 59 27.10.2024 09:49 [09:49:16]line Смена: 542 ФФД: 1.0 [09:49:16]line ЗНМ: 0300000110 [09:49:16]line РНМ: 0000000000091776 [09:49:16]line Версия ККМ: 001 [09:49:16]line ФМ: 0000000000871754 [09:49:16]line ФД: 192027 [09:49:16]line ФПД: 50449972290992 [09:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094934&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192027&fm=50449972290992&tin=02508201610067®Number=0000000000091776&sum=50000 [09:49:16]OFD Sender: Processing packet 192027 [packets to send 75, broken 74] [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00192027 [09:49:16]OFD Sender: To server: pG, [09:49:16]CommunicateWithHost lk.salyk.kg:30040 [09:49:16]ConnectInit lk.salyk.kg [09:49:16]written 0, free lines is 4095 [09:49:16]Connected sock=8 [09:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B D6 07 01 E4 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 0C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EE 02 00 35 04 06 00 2D E2 4C AD 65 B0 AC 97 93 6B 44 EF A8 82 [09:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E0 AA 47 00 4A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EE 02 00 F4 03 04 00 76 B1 1D 67 B6 04 01 00 00 76 5C AB 41 10 14 8D 24 [09:49:16]CommunicateWithHost err = 0 [09:49:16]CheckOFDResponse [09:49:16]1017 (14) - 77093643461234 [09:49:16]1041 (16) - 0000000000871754 [09:49:16]1040 (4) - 192027 [09:49:16]1012 (4) - 27.10.2024 03:20 [09:49:16]1206 (1) - 0 [09:49:16]OFD Sender: Remove packet 192027 [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00192027 [09:49:16]NVStorageDeleteData [09:49:17]Write to MH i2c: 01 00 00 25 50 75 [09:49:17]Write i2c OK [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: 01 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: 01 07 00 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: 01 07 00 25 50 00 00 00 00 00 B0 0C 38 [09:49:17]RasterBufferAndPrint [09:49:17]line [09:49:17]line [09:49:17]line [09:49:17]line [09:49:17]line [09:49:17]written 0, free lines is 3258 [09:49:17]MH_Cut [09:49:17]Write to MH i2c: D1 01 00 2C 50 01 4E [09:49:17]Write i2c OK [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: D1 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: D1 01 00 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: D1 01 00 2C 50 00 4D [09:49:17]Write to MH i2c: 01 00 00 2D 50 7D [09:49:17]Write i2c OK [09:49:17]MH_I2C_Read... [09:49:17]OFD Sender: No OFD packet to send [09:49:17]*** Cut start [09:49:17]*** Partial cut [09:49:17]*** CUTSNS_PIN = 1 [09:49:17]*** CUTSNS_PIN = 0 [09:49:18]*** Brake cut motor [09:49:18]Read from MH i2c: 01 [09:49:18]MH_I2C_Read... [09:49:18]*** Stop cut motor [09:49:18]*** Cut end [09:49:18]Read from MH i2c: 01 07 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: 01 07 00 2D 50 00 00 00 00 00 FF 0F 92 [09:49:18]process_action close_receipt done [09:49:18]requested_data is exist [09:49:18]produce_requested_data [09:49:18]requested_item fm.sn is exist - process it [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 11 00 00 [09:49:18]Write to MH i2c: E2 08 00 2E 50 80 11 00 00 00 00 00 00 F8 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:18]Read from MH i2c: E2 17 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 17 00 2E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [09:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:49:18]wFMCommunicate OK [09:49:18]requested_item fd.num is exist - process it [09:49:18]SAM_PROTO_GetFieldsCounters [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 13 00 00 [09:49:18]Write to MH i2c: E2 08 00 2F 50 80 13 00 00 00 00 00 00 FB [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 62 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 62 00 2F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_GetFieldsCounters done [09:49:18]requested_item shift.num is exist - process it [09:49:18]requested_item shift.opened is exist - process it [09:49:18]req_shift_opened [09:49:18]FM_GetShiftState [09:49:18]SAM_PROTO_GetShiftState [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 13 01 00 [09:49:18]Write to MH i2c: E2 08 00 30 50 80 13 01 00 00 00 00 00 FD [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0E 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0E 00 30 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3E [09:49:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_GetShiftState done [09:49:18]FM_GetShiftState done [09:49:18]req_shift_opened done [09:49:18]requested_item shift.open_date is exist - process it [09:49:18]req_shift_open_date [09:49:18]req_shift_open_date done [09:49:18]produce_requested_data done [09:49:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192027,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:49:18]process_action_free close_receipt [09:49:18]json_value_free [09:49:18]json_value_free done [09:49:18]process_json_proto returns [09:49:18]Send response to host [09:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192027,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:49:18]free response buf [09:49:18]execute_script done [09:49:18]execute_script returns [09:49:18]free content buf [09:49:18]Sock 6.Close socket [09:49:18]Sock 6.Thread stoped [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:50:58]accept exits with 5 [09:50:58]New connection [09:50:58]New thread 3066817892 created [09:50:58]Thread 3066961252 joined [09:50:58]Waiting for new connection... [09:50:58] Sock 5.Parse request [09:50:58]Sock 5.Check first char [09:50:58]Sock 5.First char is OK [09:50:58]request: POST /json_proto HTTP/1.0 [09:50:58]Method: POST [09:50:58]URL: /json_proto [09:50:58]Method is POST - this is cgi request [09:50:58]url: /json_proto [09:50:58]query_string will be loaded in cgi processing [09:50:58]execute_cgi json_proto POST (null) [09:50:58]execute_cgi path=json_proto method=POST [09:50:58]POST find Content-Length [09:50:58]Host: 172.17.63.131:8080 [09:50:58]Content-Length: 676 [09:50:58]Content-Type: application/json [09:50:58] [09:50:58]POST finish read [09:50:58]Found Content-Length = 676 [09:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:58]execute_script... [09:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:58]POST & json_proto [09:50:58]process_json_proto [09:50:58]json parsed OK: [09:50:58]protocol is kg_v1.0 [09:50:58]action value=close_receipt [09:50:58]process_action close_receipt [09:50:58]cmd_close_receipt [09:50:58]MH_GetDate [09:50:58]Write to MH i2c: F0 00 00 31 50 70 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: F0 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: F0 09 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: F0 09 00 31 50 00 15 0D 1E 67 22 05 6E 64 19 [09:50:58]GetLastDocTimeStamp 1730022574 [09:50:58]current date 1730022677 [09:50:58]FM_GetShiftState [09:50:58]SAM_PROTO_GetShiftState [09:50:58]wFMCommunicate request_size=4 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 13 01 00 [09:50:58]Write to MH i2c: E2 08 00 32 50 80 13 01 00 00 00 00 00 FF [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 0E 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 0E 00 32 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 40 [09:50:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:50:58]wFMCommunicate OK [09:50:58]SAM_PROTO_GetShiftState done [09:50:58]FM_GetShiftState done [09:50:58]opened in 1729989159 [09:50:58]opened+sec_in_day 1730075559 [09:50:58]quantity*price = 15052 [09:50:58]sum+1 = 15054 [09:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 60 27.10.2024 09:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192028 ФПД: 212900828768126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095117&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192028&fm=212900828768126&tin=02508201610067®Number=0000000000091776&sum=15000 [09:50:59]StoreToDocumentArchive [09:50:59]shift 542 fd 192028 [09:50:59]save to /storage/0542/doc_00192028 [09:50:59]save last doc name /storage/0542/doc_00192028 to /storage/kkm_last_doc_name [09:50:59]save OK [09:50:59]Clear old archive folders... [09:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:59]tlvbuf is 01614560 [09:50:59]SAM_PROTO_ClearQueue [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 09 00 00 [09:50:59]Write to MH i2c: E2 08 00 3F 50 80 09 00 00 00 00 00 00 01 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 3F 50 00 90 00 03 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]SAM_PROTO_ClearQueue done [09:50:59]KKMCreateOFDPacket [09:50:59]OFDProtocolAddRootSTLVToBuf [09:50:59]FM_MakeSignedData [09:50:59]FM_MakeSignedData [09:50:59]SAM_PROTO_SignData [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 01 02 [09:50:59]Write to MH i2c: E2 08 00 40 50 80 0D 01 02 00 00 00 00 09 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 40 50 00 90 00 04 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]wFMCommunicate request_size=255 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 15 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EE 02 00 35 04 06 00 C1 [09:50:59]Write to MH i2c: E2 02 01 41 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 15 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EE 02 00 35 04 06 00 C1 00 00 6A [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]wFMCommunicate request_size=10 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 02 02 05 A1 D6 45 67 7E [09:50:59]Write to MH i2c: E2 0D 00 42 50 80 0D 02 02 05 00 A1 D6 45 67 7E 00 00 B7 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 03 00 42 50 00 90 00 06 [09:50:59]RAPDU: 90 00 [09:50:59]wFMCommunicate OK [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 0D 03 02 [09:50:59]Write to MH i2c: E2 08 00 43 50 80 0D 03 02 00 00 00 00 0E [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 0B 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 0B 00 43 50 00 D4 B2 DC AF F1 DC 13 47 90 00 47 [09:50:59]RAPDU: D4 B2 DC AF F1 DC 13 47 90 00 [09:50:59]wFMCommunicate OK [09:50:59]SAM_PROTO_SignData done [09:50:59]FM_MakeSignedData done [09:50:59]CreateOFDProtocolMessage [09:50:59]wFMCommunicate request_size=4 [09:50:59]MH_SAM_APDU [09:50:59]CAPDU: 80 11 00 00 [09:50:59]Write to MH i2c: E2 08 00 44 50 80 11 00 00 00 00 00 00 0E [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:59]Read from MH i2c: E2 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: E2 17 00 44 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [09:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:50:59]wFMCommunicate OK [09:50:59]CreateOFDProtocolMessage done [09:50:59]OFDSenderStorePacket 192028 [09:50:59]StoreOFDPacket docnum=192028 [09:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 D1 07 01 55 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 15 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EE 02 00 35 04 06 00 C1 A1 D6 45 67 7E D4 B2 DC AF F1 DC 13 47 [09:50:59]CheckFolder [09:50:59]dirname=/storage/ofd_packets [09:50:59]CheckFolder done [09:50:59]ProducePacketName [09:50:59]name=ofd_packets/00192028 [09:50:59]NVStorageSaveData ofd_packets/00192028 [09:50:59]File name is /storage/ofd_packets/00192028 [09:50:59]Write 301 bytes [09:50:59]NVStorageSaveData done [09:50:59]OFDSenderStorePacket done [09:50:59]KKMCreateOFDPacket done [09:50:59]NVStorageSaveData kkm_last_timestamp [09:50:59]File name is /storage/kkm_last_timestamp [09:50:59]Write 4 bytes [09:50:59]NVStorageSaveData done [09:50:59]ExternCall_PrintAddStr [09:50:59]wPrintStart [09:50:59]Write to MH i2c: 01 00 00 45 50 95 [09:50:59]Write i2c OK [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 [09:50:59]MH_I2C_Read... [09:50:59]Read from MH i2c: 01 07 00 45 50 00 00 00 00 00 FF 0F AA [09:50:59]RasterBufferAndPrint [09:50:59]line Счет N : (1)31339 [09:50:59]line ИНН: 02508201610067 [09:50:59]line Контрольно-Кассовый Чек [09:50:59]line ПРОДАЖА [09:50:59]line ТРК (МРК, ГНК) : 12 [09:50:59]line Товар: 2710124130 [09:50:59]line Аи-92-К-5 [09:50:59]line 2.250 * 66.90 [09:50:59]line = 150.53 [09:50:59]line НДС 12% НСП 1% [09:50:59]line > о реализуемом товаре [09:50:59]line ОКРУГЛЕНИЕ: -0.53 [09:50:59]line ИТОГО: 150.00 [09:50:59]line Внесено: 150.00 [09:50:59]line СДАЧА: 0.00 [09:50:59]line НСП 1% : 1.33 [09:50:59]line НДС 12% : 15.98 [09:50:59]line Наличными: 150.00 [09:50:59]line Безнал.: 0.00 [09:50:59]line Место: АЗС № 170 "Партнер Нефть" [09:50:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:50:59]line СНО: Общий режим [09:50:59]line Чек 60 27.10.2024 09:51 [09:50:59]line Смена: 542 ФФД: 1.0 [09:50:59]line ЗНМ: 0300000110 [09:50:59]line РНМ: 0000000000091776 [09:50:59]line Версия ККМ: 001 [09:50:59]line ФМ: 0000000000871754 [09:50:59]line ФД: 192028 [09:50:59]line ФПД: 212900828768126 [09:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095117&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192028&fm=212900828768126&tin=02508201610067®Number=0000000000091776&sum=15000 [09:51:00]OFD Sender: Processing packet 192028 [packets to send 75, broken 74] [09:51:00]ProducePacketName [09:51:00]name=ofd_packets/00192028 [09:51:00]OFD Sender: To server: pG, [09:51:00]CommunicateWithHost lk.salyk.kg:30040 [09:51:00]ConnectInit lk.salyk.kg [09:51:00]written 0, free lines is 4095 [09:51:00]Connected sock=6 [09:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 D1 07 01 55 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 15 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EE 02 00 35 04 06 00 C1 A1 D6 45 67 7E D4 B2 DC AF F1 DC 13 47 [09:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C DF 47 00 E9 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EE 02 00 F4 03 04 00 DD B1 1D 67 B6 04 01 00 00 2F B6 9F 27 F5 B7 DE 87 [09:51:00]CommunicateWithHost err = 0 [09:51:00]CheckOFDResponse [09:51:00]1017 (14) - 77093643461234 [09:51:00]1041 (16) - 0000000000871754 [09:51:00]1040 (4) - 192028 [09:51:00]1012 (4) - 27.10.2024 03:22 [09:51:00]1206 (1) - 0 [09:51:00]OFD Sender: Remove packet 192028 [09:51:00]ProducePacketName [09:51:00]name=ofd_packets/00192028 [09:51:00]NVStorageDeleteData [09:51:00]Write to MH i2c: 01 00 00 70 50 C0 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: 01 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: 01 07 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: 01 07 00 70 50 00 00 00 00 00 B8 0C 8B [09:51:00]RasterBufferAndPrint [09:51:00]line [09:51:00]line [09:51:00]line [09:51:00]line [09:51:00]line [09:51:00]written 0, free lines is 3267 [09:51:00]MH_Cut [09:51:00]Write to MH i2c: D1 01 00 77 50 01 99 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: D1 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: D1 01 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: D1 01 00 77 50 00 98 [09:51:00]Write to MH i2c: 01 00 00 78 50 C8 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:01]OFD Sender: No OFD packet to send [09:51:01]*** Cut start [09:51:01]*** Partial cut [09:51:01]*** CUTSNS_PIN = 1 [09:51:01]*** CUTSNS_PIN = 0 [09:51:01]*** Brake cut motor [09:51:02]Read from MH i2c: 01 [09:51:02]MH_I2C_Read... [09:51:02]*** Stop cut motor [09:51:02]*** Cut end [09:51:02]Read from MH i2c: 01 07 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 07 00 78 50 00 00 00 00 00 FF 0F DD [09:51:02]process_action close_receipt done [09:51:02]requested_data is exist [09:51:02]produce_requested_data [09:51:02]requested_item fm.sn is exist - process it [09:51:02]wFMCommunicate request_size=4 [09:51:02]MH_SAM_APDU [09:51:02]CAPDU: 80 11 00 00 [09:51:02]Write to MH i2c: E2 08 00 79 50 80 11 00 00 00 00 00 00 43 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:02]Read from MH i2c: E2 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 17 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 17 00 79 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [09:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:51:02]wFMCommunicate OK [09:51:02]requested_item fd.num is exist - process it [09:51:02]SAM_PROTO_GetFieldsCounters [09:51:02]wFMCommunicate request_size=4 [09:51:02]MH_SAM_APDU [09:51:02]CAPDU: 80 13 00 00 [09:51:02]Write to MH i2c: E2 08 00 7A 50 80 13 00 00 00 00 00 00 46 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:02]Read from MH i2c: E2 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 62 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 62 00 7A 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [09:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:02]wFMCommunicate OK [09:51:02]SAM_PROTO_GetFieldsCounters done [09:51:02]requested_item shift.num is exist - process it [09:51:02]requested_item shift.opened is exist - process it [09:51:02]req_shift_opened [09:51:02]FM_GetShiftState [09:51:02]SAM_PROTO_GetShiftState [09:51:02]wFMCommunicate request_size=4 [09:51:02]MH_SAM_APDU [09:51:02]CAPDU: 80 13 01 00 [09:51:02]Write to MH i2c: E2 08 00 7B 50 80 13 01 00 00 00 00 00 48 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:02]Read from MH i2c: E2 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 0E 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: E2 0E 00 7B 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 89 [09:51:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:51:02]wFMCommunicate OK [09:51:02]SAM_PROTO_GetShiftState done [09:51:02]FM_GetShiftState done [09:51:02]req_shift_opened done [09:51:02]requested_item shift.open_date is exist - process it [09:51:02]req_shift_open_date [09:51:02]req_shift_open_date done [09:51:02]produce_requested_data done [09:51:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192028,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:51:02]process_action_free close_receipt [09:51:02]json_value_free [09:51:02]json_value_free done [09:51:02]process_json_proto returns [09:51:02]Send response to host [09:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192028,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:51:02]free response buf [09:51:02]execute_script done [09:51:02]execute_script returns [09:51:02]free content buf [09:51:02]Sock 5.Close socket [09:51:02]Sock 5.Thread stoped [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:00]accept exits with 8 [09:52:00]New connection [09:52:00]New thread 3066961252 created [09:52:00]Thread 3066817892 joined [09:52:00]Waiting for new connection... [09:52:00] Sock 8.Parse request [09:52:00]Sock 8.Check first char [09:52:00]Sock 8.First char is OK [09:52:00]request: POST /json_proto HTTP/1.0 [09:52:00]Method: POST [09:52:00]URL: /json_proto [09:52:00]Method is POST - this is cgi request [09:52:00]url: /json_proto [09:52:00]query_string will be loaded in cgi processing [09:52:00]execute_cgi json_proto POST (null) [09:52:00]execute_cgi path=json_proto method=POST [09:52:00]POST find Content-Length [09:52:00]Host: 172.17.63.131:8080 [09:52:00]Content-Length: 678 [09:52:00]Content-Type: application/json [09:52:00] [09:52:00]POST finish read [09:52:00]Found Content-Length = 678 [09:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31338", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:00]execute_script... [09:52:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31338", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:00]POST & json_proto [09:52:00]process_json_proto [09:52:00]json parsed OK: [09:52:00]protocol is kg_v1.0 [09:52:00]action value=close_receipt [09:52:00]process_action close_receipt [09:52:00]cmd_close_receipt [09:52:00]MH_GetDate [09:52:00]Write to MH i2c: F0 00 00 7C 50 BB [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 09 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 09 00 7C 50 00 54 0D 1E 67 22 05 6E 64 A3 [09:52:00]GetLastDocTimeStamp 1730022677 [09:52:00]current date 1730022740 [09:52:00]FM_GetShiftState [09:52:00]SAM_PROTO_GetShiftState [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 13 01 00 [09:52:00]Write to MH i2c: E2 08 00 7D 50 80 13 01 00 00 00 00 00 4A [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 7D 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8B [09:52:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_GetShiftState done [09:52:00]FM_GetShiftState done [09:52:00]opened in 1729989159 [09:52:00]opened+sec_in_day 1730075559 [09:52:00]quantity*price = 150037 [09:52:00]sum+1 = 150039 [09:52: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 61 27.10.2024 09:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192029 ФПД: 34272336211568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192029&fm=34272336211568&tin=02508201610067®Number=0000000000091776&sum=150000 [09:52:02]StoreToDocumentArchive [09:52:02]shift 542 fd 192029 [09:52:02]save to /storage/0542/doc_00192029 [09:52:02]save last doc name /storage/0542/doc_00192029 to /storage/kkm_last_doc_name [09:52:02]save OK [09:52:02]Clear old archive folders... [09:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:02]tlvbuf is 015C8A90 [09:52:02]SAM_PROTO_ClearQueue [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 09 00 00 [09:52:02]Write to MH i2c: E2 08 00 8A 50 80 09 00 00 00 00 00 00 4C [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 8A 50 00 90 00 4E [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_ClearQueue done [09:52:02]KKMCreateOFDPacket [09:52:02]OFDProtocolAddRootSTLVToBuf [09:52:02]FM_MakeSignedData [09:52:02]FM_MakeSignedData [09:52:02]SAM_PROTO_SignData [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 01 02 [09:52:02]Write to MH i2c: E2 08 00 8B 50 80 0D 01 02 00 00 00 00 54 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=255 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 54 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EE 02 00 35 04 06 00 1F 2B A6 6C [09:52:02]Write to MH i2c: E2 02 01 8C 50 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 3D 00 00 00 F4 03 04 00 54 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EE 02 00 35 04 06 00 1F 2B A6 6C 00 00 01 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=7 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 02 02 02 EE 70 [09:52:02]Write to MH i2c: E2 0A 00 8D 50 80 0D 02 02 02 00 EE 70 00 00 B9 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 8D 50 00 90 00 51 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 03 02 [09:52:02]Write to MH i2c: E2 08 00 8E 50 80 0D 03 02 00 00 00 00 59 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 8E 50 00 92 75 4F DE C2 81 B4 F1 90 00 76 [09:52:02]RAPDU: 92 75 4F DE C2 81 B4 F1 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_SignData done [09:52:02]FM_MakeSignedData done [09:52:02]CreateOFDProtocolMessage [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 11 00 00 [09:52:02]Write to MH i2c: E2 08 00 8F 50 80 11 00 00 00 00 00 00 59 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 8F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:02]wFMCommunicate OK [09:52:02]CreateOFDProtocolMessage done [09:52:02]OFDSenderStorePacket 192029 [09:52:02]StoreOFDPacket docnum=192029 [09:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 60 51 04 01 67 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3D 00 00 00 F4 03 04 00 54 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EE 02 00 35 04 06 00 1F 2B A6 6C EE 70 92 75 4F DE C2 81 B4 F1 [09:52:02]CheckFolder [09:52:02]dirname=/storage/ofd_packets [09:52:02]CheckFolder done [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00192029 [09:52:02]NVStorageSaveData ofd_packets/00192029 [09:52:02]File name is /storage/ofd_packets/00192029 [09:52:02]Write 298 bytes [09:52:02]NVStorageSaveData done [09:52:02]OFDSenderStorePacket done [09:52:02]KKMCreateOFDPacket done [09:52:02]NVStorageSaveData kkm_last_timestamp [09:52:02]File name is /storage/kkm_last_timestamp [09:52:02]Write 4 bytes [09:52:02]NVStorageSaveData done [09:52:02]ExternCall_PrintAddStr [09:52:02]wPrintStart [09:52:02]Write to MH i2c: 01 00 00 90 50 E0 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 90 50 00 00 00 00 00 FF 0F F5 [09:52:02]RasterBufferAndPrint [09:52:02]line Счет N : (1)31338 [09:52:02]line ИНН: 02508201610067 [09:52:02]line Контрольно-Кассовый Чек [09:52:02]line ПРОДАЖА [09:52:02]line ТРК (МРК, ГНК) : 11 [09:52:02]line Товар: 2710194210 [09:52:02]line ДТ-К-5 [09:52:02]line 19.690 * 76.20 [09:52:02]line = 1500.38 [09:52:02]line НДС 12% НСП 1% [09:52:02]line > о реализуемом товаре [09:52:02]line ОКРУГЛЕНИЕ: -0.38 [09:52:02]line ИТОГО: 1500.00 [09:52:02]line Внесено: 1500.00 [09:52:02]line СДАЧА: 0.00 [09:52:02]line НСП 1% : 13.28 [09:52:02]line НДС 12% : 159.33 [09:52:02]line Наличными: 1500.00 [09:52:02]line Безнал.: 0.00 [09:52:02]line Место: АЗС № 170 "Партнер Нефть" [09:52:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:52:02]line СНО: Общий режим [09:52:02]line Чек 61 27.10.2024 09:52 [09:52:02]line Смена: 542 ФФД: 1.0 [09:52:02]line ЗНМ: 0300000110 [09:52:02]line РНМ: 0000000000091776 [09:52:02]line Версия ККМ: 001 [09:52:02]line ФМ: 0000000000871754 [09:52:02]line ФД: 192029 [09:52:02]line ФПД: 34272336211568 [09:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192029&fm=34272336211568&tin=02508201610067®Number=0000000000091776&sum=150000 [09:52:02]OFD Sender: Processing packet 192029 [packets to send 75, broken 74] [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00192029 [09:52:02]OFD Sender: To server: pG, [09:52:02]CommunicateWithHost lk.salyk.kg:30040 [09:52:02]ConnectInit lk.salyk.kg [09:52:02]written 0, free lines is 4095 [09:52:02]Connected sock=6 [09:52:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 60 51 04 01 67 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3D 00 00 00 F4 03 04 00 54 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EE 02 00 35 04 06 00 1F 2B A6 6C EE 70 92 75 4F DE C2 81 B4 F1 [09:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A 48 47 00 D2 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EE 02 00 F4 03 04 00 1C B2 1D 67 B6 04 01 00 00 D7 28 30 D2 88 00 91 1B [09:52:03]CommunicateWithHost err = 0 [09:52:03]CheckOFDResponse [09:52:03]1017 (14) - 77093643461234 [09:52:03]1041 (16) - 0000000000871754 [09:52:03]1040 (4) - 192029 [09:52:03]1012 (4) - 27.10.2024 03:23 [09:52:03]1206 (1) - 0 [09:52:03]OFD Sender: Remove packet 192029 [09:52:03]ProducePacketName [09:52:03]name=ofd_packets/00192029 [09:52:03]NVStorageDeleteData [09:52:03]Write to MH i2c: 01 00 00 BB 50 0B [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 BB 50 00 00 00 00 00 A7 0C C5 [09:52:03]RasterBufferAndPrint [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]written 0, free lines is 3245 [09:52:03]MH_Cut [09:52:03]Write to MH i2c: D1 01 00 C2 50 01 E4 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 C2 50 00 E3 [09:52:03]Write to MH i2c: 01 00 00 C3 50 13 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]OFD Sender: No OFD packet to send [09:52:04]*** Cut start [09:52:04]*** Partial cut [09:52:04]*** CUTSNS_PIN = 1 [09:52:04]*** CUTSNS_PIN = 0 [09:52:04]*** Brake cut motor [09:52:04]Read from MH i2c: 01 [09:52:04]MH_I2C_Read... [09:52:04]*** Stop cut motor [09:52:04]*** Cut end [09:52:04]Read from MH i2c: 01 07 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 C3 50 00 00 00 00 00 FF 0F 28 [09:52:04]process_action close_receipt done [09:52:04]requested_data is exist [09:52:04]produce_requested_data [09:52:04]requested_item fm.sn is exist - process it [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 11 00 00 [09:52:04]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 C4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [09:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:04]wFMCommunicate OK [09:52:04]requested_item fd.num is exist - process it [09:52:04]SAM_PROTO_GetFieldsCounters [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 00 00 [09:52:04]Write to MH i2c: E2 08 00 C5 50 80 13 00 00 00 00 00 00 91 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 62 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 62 00 C5 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:05]wFMCommunicate OK [09:52:05]SAM_PROTO_GetFieldsCounters done [09:52:05]requested_item shift.num is exist - process it [09:52:05]requested_item shift.opened is exist - process it [09:52:05]req_shift_opened [09:52:05]FM_GetShiftState [09:52:05]SAM_PROTO_GetShiftState [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 13 01 00 [09:52:05]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 0E 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D4 [09:52:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:52:05]wFMCommunicate OK [09:52:05]SAM_PROTO_GetShiftState done [09:52:05]FM_GetShiftState done [09:52:05]req_shift_opened done [09:52:05]requested_item shift.open_date is exist - process it [09:52:05]req_shift_open_date [09:52:05]req_shift_open_date done [09:52:05]produce_requested_data done [09:52:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192029,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:52:05]process_action_free close_receipt [09:52:05]json_value_free [09:52:05]json_value_free done [09:52:05]process_json_proto returns [09:52:05]Send response to host [09:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192029,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:52:05]free response buf [09:52:05]execute_script done [09:52:05]execute_script returns [09:52:05]free content buf [09:52:05]Sock 8.Close socket [09:52:05]Sock 8.Thread stoped [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]accept exits with 5 [09:53:43]New connection [09:53:43]New thread 3066817892 created [09:53:43]Thread 3066961252 joined [09:53:43]Waiting for new connection... [09:53:43] Sock 5.Parse request [09:53:43]Sock 5.Check first char [09:53:43]Sock 5.First char is OK [09:53:43]request: POST /json_proto HTTP/1.0 [09:53:43]Method: POST [09:53:43]URL: /json_proto [09:53:43]Method is POST - this is cgi request [09:53:43]url: /json_proto [09:53:43]query_string will be loaded in cgi processing [09:53:43]execute_cgi json_proto POST (null) [09:53:43]execute_cgi path=json_proto method=POST [09:53:43]POST find Content-Length [09:53:43]Host: 172.17.63.131:8080 [09:53:43]Content-Length: 681 [09:53:43]Content-Type: application/json [09:53:43] [09:53:43]POST finish read [09:53:43]Found Content-Length = 681 [09:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:43]execute_script... [09:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:43]POST & json_proto [09:53:43]process_json_proto [09:53:43]json parsed OK: [09:53:43]protocol is kg_v1.0 [09:53:43]action value=close_receipt [09:53:43]process_action close_receipt [09:53:43]cmd_close_receipt [09:53:43]MH_GetDate [09:53:43]Write to MH i2c: F0 00 00 C7 50 06 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 09 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 09 00 C7 50 00 BB 0D 1E 67 22 05 6E 64 55 [09:53:43]GetLastDocTimeStamp 1730022740 [09:53:43]current date 1730022843 [09:53:43]FM_GetShiftState [09:53:43]SAM_PROTO_GetShiftState [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 01 00 [09:53:43]Write to MH i2c: E2 08 00 C8 50 80 13 01 00 00 00 00 00 95 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 C8 50 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D6 [09:53:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetShiftState done [09:53:43]FM_GetShiftState done [09:53:43]opened in 1729989159 [09:53:43]opened+sec_in_day 1730075559 [09:53:43]quantity*price = 100015 [09:53:43]sum+1 = 100017 [09:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 62 27.10.2024 09:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192030 ФПД: 100804778255906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095403&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192030&fm=100804778255906&tin=02508201610067®Number=0000000000091776&sum=100000 [09:53:44]StoreToDocumentArchive [09:53:44]shift 542 fd 192030 [09:53:44]save to /storage/0542/doc_00192030 [09:53:44]save last doc name /storage/0542/doc_00192030 to /storage/kkm_last_doc_name [09:53:44]save OK [09:53:44]Clear old archive folders... [09:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:44]tlvbuf is 01D4C380 [09:53:44]SAM_PROTO_ClearQueue [09:53:44]wFMCommunicate request_size=4 [09:53:44]MH_SAM_APDU [09:53:44]CAPDU: 80 09 00 00 [09:53:44]Write to MH i2c: E2 08 00 D5 50 80 09 00 00 00 00 00 00 97 [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:44]Read from MH i2c: E2 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [09:53:44]RAPDU: 90 00 [09:53:44]wFMCommunicate OK [09:53:44]SAM_PROTO_ClearQueue done [09:53:44]KKMCreateOFDPacket [09:53:44]OFDProtocolAddRootSTLVToBuf [09:53:44]FM_MakeSignedData [09:53:44]FM_MakeSignedData [09:53:44]SAM_PROTO_SignData [09:53:44]wFMCommunicate request_size=4 [09:53:44]MH_SAM_APDU [09:53:44]CAPDU: 80 0D 01 02 [09:53:44]Write to MH i2c: E2 08 00 D6 50 80 0D 01 02 00 00 00 00 9F [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [09:53:45]RAPDU: 90 00 [09:53:45]wFMCommunicate OK [09:53:45]wFMCommunicate request_size=255 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BB 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EE 02 00 35 04 06 00 5B [09:53:45]Write to MH i2c: E2 02 01 D7 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BB 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EE 02 00 35 04 06 00 5B 00 00 41 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [09:53:45]RAPDU: 90 00 [09:53:45]wFMCommunicate OK [09:53:45]wFMCommunicate request_size=10 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 0D 02 02 05 AE 70 FF E6 22 [09:53:45]Write to MH i2c: E2 0D 00 D8 50 80 0D 02 02 05 00 AE 70 FF E6 22 00 00 D1 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 D8 50 00 90 00 9C [09:53:45]RAPDU: 90 00 [09:53:45]wFMCommunicate OK [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 0D 03 02 [09:53:45]Write to MH i2c: E2 08 00 D9 50 80 0D 03 02 00 00 00 00 A4 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0B 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0B 00 D9 50 00 3D C9 59 9E FC 45 AF 5F 90 00 F1 [09:53:45]RAPDU: 3D C9 59 9E FC 45 AF 5F 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_SignData done [09:53:45]FM_MakeSignedData done [09:53:45]CreateOFDProtocolMessage [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 11 00 00 [09:53:45]Write to MH i2c: E2 08 00 DA 50 80 11 00 00 00 00 00 00 A4 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 DA 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [09:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:45]wFMCommunicate OK [09:53:45]CreateOFDProtocolMessage done [09:53:45]OFDSenderStorePacket 192030 [09:53:45]StoreOFDPacket docnum=192030 [09:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 F1 07 01 D3 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BB 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EE 02 00 35 04 06 00 5B AE 70 FF E6 22 3D C9 59 9E FC 45 AF 5F [09:53:45]CheckFolder [09:53:45]dirname=/storage/ofd_packets [09:53:45]CheckFolder done [09:53:45]ProducePacketName [09:53:45]name=ofd_packets/00192030 [09:53:45]NVStorageSaveData ofd_packets/00192030 [09:53:45]File name is /storage/ofd_packets/00192030 [09:53:45]Write 301 bytes [09:53:45]NVStorageSaveData done [09:53:45]OFDSenderStorePacket done [09:53:45]KKMCreateOFDPacket done [09:53:45]NVStorageSaveData kkm_last_timestamp [09:53:45]File name is /storage/kkm_last_timestamp [09:53:45]Write 4 bytes [09:53:45]NVStorageSaveData done [09:53:45]ExternCall_PrintAddStr [09:53:45]wPrintStart [09:53:45]Write to MH i2c: 01 00 00 DB 50 2B [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 DB 50 00 00 00 00 00 FF 0F 40 [09:53:45]RasterBufferAndPrint [09:53:45]line Счет N : (1)31340 [09:53:45]line ИНН: 02508201610067 [09:53:45]line Контрольно-Кассовый Чек [09:53:45]line ПРОДАЖА [09:53:45]line ТРК (МРК, ГНК) : 21 [09:53:45]line Товар: 2710124130 [09:53:45]line Аи-92-К-5 [09:53:45]line 14.950 * 66.90 [09:53:45]line = 1000.16 [09:53:45]line НДС 12% НСП 1% [09:53:45]line > о реализуемом товаре [09:53:45]line ОКРУГЛЕНИЕ: -0.16 [09:53:45]line ИТОГО: 1000.00 [09:53:45]line Внесено: 1000.00 [09:53:45]line СДАЧА: 0.00 [09:53:45]line НСП 1% : 8.85 [09:53:45]line НДС 12% : 106.21 [09:53:45]line Наличными: 1000.00 [09:53:45]line Безнал.: 0.00 [09:53:45]line Место: АЗС № 170 "Партнер Нефть" [09:53:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:53:45]line СНО: Общий режим [09:53:45]line Чек 62 27.10.2024 09:54 [09:53:45]line Смена: 542 ФФД: 1.0 [09:53:45]line ЗНМ: 0300000110 [09:53:45]line РНМ: 0000000000091776 [09:53:45]line Версия ККМ: 001 [09:53:45]line ФМ: 0000000000871754 [09:53:45]line ФД: 192030 [09:53:45]line ФПД: 100804778255906 [09:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095403&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192030&fm=100804778255906&tin=02508201610067®Number=0000000000091776&sum=100000 [09:53:45]OFD Sender: Processing packet 192030 [packets to send 75, broken 74] [09:53:45]ProducePacketName [09:53:45]name=ofd_packets/00192030 [09:53:45]OFD Sender: To server: pG, [09:53:45]CommunicateWithHost lk.salyk.kg:30040 [09:53:45]ConnectInit lk.salyk.kg [09:53:45]written 0, free lines is 4095 [09:53:45]Connected sock=8 [09:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 F1 07 01 D3 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BB 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EE 02 00 35 04 06 00 5B AE 70 FF E6 22 3D C9 59 9E FC 45 AF 5F [09:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E 25 47 00 53 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EE 02 00 F4 03 04 00 83 B2 1D 67 B6 04 01 00 00 4C F0 E7 2E 58 9F AE EF [09:53:46]CommunicateWithHost err = 0 [09:53:46]CheckOFDResponse [09:53:46]1017 (14) - 77093643461234 [09:53:46]1041 (16) - 0000000000871754 [09:53:46]1040 (4) - 192030 [09:53:46]1012 (4) - 27.10.2024 03:24 [09:53:46]1206 (1) - 0 [09:53:46]OFD Sender: Remove packet 192030 [09:53:46]ProducePacketName [09:53:46]name=ofd_packets/00192030 [09:53:46]NVStorageDeleteData [09:53:46]Write to MH i2c: 01 00 00 06 51 57 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 06 51 00 00 00 00 00 AB 0C 15 [09:53:46]RasterBufferAndPrint [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]written 0, free lines is 3252 [09:53:46]MH_Cut [09:53:46]Write to MH i2c: D1 01 00 0D 51 01 30 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 01 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 01 00 0D 51 00 2F [09:53:46]Write to MH i2c: 01 00 00 0E 51 5F [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]OFD Sender: No OFD packet to send [09:53:47]*** Cut start [09:53:47]*** Partial cut [09:53:47]*** CUTSNS_PIN = 1 [09:53:47]*** CUTSNS_PIN = 0 [09:53:47]*** Brake cut motor [09:53:47]Read from MH i2c: 01 [09:53:47]MH_I2C_Read... [09:53:47]*** Stop cut motor [09:53:47]*** Cut end [09:53:47]Read from MH i2c: 01 07 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 07 00 0E 51 00 00 00 00 00 FF 0F 74 [09:53:47]process_action close_receipt done [09:53:47]requested_data is exist [09:53:47]produce_requested_data [09:53:47]requested_item fm.sn is exist - process it [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 11 00 00 [09:53:47]Write to MH i2c: E2 08 00 0F 51 80 11 00 00 00 00 00 00 DA [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 17 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 17 00 0F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [09:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:47]wFMCommunicate OK [09:53:47]requested_item fd.num is exist - process it [09:53:47]SAM_PROTO_GetFieldsCounters [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 13 00 00 [09:53:47]Write to MH i2c: E2 08 00 10 51 80 13 00 00 00 00 00 00 DD [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 62 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 62 00 10 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [09:53:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_GetFieldsCounters done [09:53:48]requested_item shift.num is exist - process it [09:53:48]requested_item shift.opened is exist - process it [09:53:48]req_shift_opened [09:53:48]FM_GetShiftState [09:53:48]SAM_PROTO_GetShiftState [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 13 01 00 [09:53:48]Write to MH i2c: E2 08 00 11 51 80 13 01 00 00 00 00 00 DF [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 11 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 20 [09:53:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_GetShiftState done [09:53:48]FM_GetShiftState done [09:53:48]req_shift_opened done [09:53:48]requested_item shift.open_date is exist - process it [09:53:48]req_shift_open_date [09:53:48]req_shift_open_date done [09:53:48]produce_requested_data done [09:53:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192030,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:53:48]process_action_free close_receipt [09:53:48]json_value_free [09:53:48]json_value_free done [09:53:48]process_json_proto returns [09:53:48]Send response to host [09:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192030,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:53:48]free response buf [09:53:48]execute_script done [09:53:48]execute_script returns [09:53:48]free content buf [09:53:48]Sock 5.Close socket [09:53:48]Sock 5.Thread stoped [09:53:49]accept exits with 6 [09:53:49]New connection [09:53:49]New thread 3066961252 created [09:53:49]Thread 3066817892 joined [09:53:49]Waiting for new connection... [09:53:49] Sock 6.Parse request [09:53:49]Sock 6.Check first char [09:53:49]Sock 6.First char is OK [09:53:49]request: POST /json_proto HTTP/1.0 [09:53:49]Method: POST [09:53:49]URL: /json_proto [09:53:49]Method is POST - this is cgi request [09:53:49]url: /json_proto [09:53:49]query_string will be loaded in cgi processing [09:53:49]execute_cgi json_proto POST (null) [09:53:49]execute_cgi path=json_proto method=POST [09:53:49]POST find Content-Length [09:53:49]Host: 172.17.63.131:8080 [09:53:49]Content-Length: 676 [09:53:49]Content-Type: application/json [09:53:49] [09:53:49]POST finish read [09:53:49]Found Content-Length = 676 [09:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:49]execute_script... [09:53:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:49]POST & json_proto [09:53:49]process_json_proto [09:53:49]json parsed OK: [09:53:49]protocol is kg_v1.0 [09:53:49]action value=close_receipt [09:53:49]process_action close_receipt [09:53:49]cmd_close_receipt [09:53:49]MH_GetDate [09:53:49]Write to MH i2c: F0 00 00 12 51 52 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 09 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 09 00 12 51 00 C0 0D 1E 67 22 05 6E 64 A6 [09:53:49]GetLastDocTimeStamp 1730022843 [09:53:49]current date 1730022848 [09:53:49]FM_GetShiftState [09:53:49]SAM_PROTO_GetShiftState [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 01 00 [09:53:49]Write to MH i2c: E2 08 00 13 51 80 13 01 00 00 00 00 00 E1 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 13 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 22 [09:53:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetShiftState done [09:53:49]FM_GetShiftState done [09:53:49]opened in 1729989159 [09:53:49]opened+sec_in_day 1730075559 [09:53:49]quantity*price = 20003 [09:53:49]sum+1 = 20004 [09:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 63 27.10.2024 09:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192031 ФПД: 70318850391864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192031&fm=70318850391864&tin=02508201610067®Number=0000000000091776&sum=20000 [09:53:50]StoreToDocumentArchive [09:53:50]shift 542 fd 192031 [09:53:50]save to /storage/0542/doc_00192031 [09:53:50]save last doc name /storage/0542/doc_00192031 to /storage/kkm_last_doc_name [09:53:50]save OK [09:53:50]Clear old archive folders... [09:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:50]tlvbuf is 01CC2200 [09:53:50]SAM_PROTO_ClearQueue [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 09 00 00 [09:53:50]Write to MH i2c: E2 08 00 20 51 80 09 00 00 00 00 00 00 E3 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_ClearQueue done [09:53:51]KKMCreateOFDPacket [09:53:51]OFDProtocolAddRootSTLVToBuf [09:53:51]FM_MakeSignedData [09:53:51]FM_MakeSignedData [09:53:51]SAM_PROTO_SignData [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 0D 01 02 [09:53:51]Write to MH i2c: E2 08 00 21 51 80 0D 01 02 00 00 00 00 EB [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]wFMCommunicate request_size=255 [09:53:51]MH_SAM_APDU [09:53: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C0 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EE 02 00 35 04 06 00 3F [09:53:51]Write to MH i2c: E2 02 01 22 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C0 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EE 02 00 35 04 06 00 3F 00 00 40 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 22 51 00 90 00 E7 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]wFMCommunicate request_size=10 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 0D 02 02 05 F4 62 19 3F 38 [09:53:51]Write to MH i2c: E2 0D 00 23 51 80 0D 02 02 05 00 F4 62 19 3F 38 00 00 DE [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 23 51 00 90 00 E8 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 0D 03 02 [09:53:51]Write to MH i2c: E2 08 00 24 51 80 0D 03 02 00 00 00 00 F0 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0B 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0B 00 24 51 00 66 42 9D 36 D9 BC 64 1B 90 00 80 [09:53:51]RAPDU: 66 42 9D 36 D9 BC 64 1B 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_SignData done [09:53:51]FM_MakeSignedData done [09:53:51]CreateOFDProtocolMessage [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 11 00 00 [09:53:51]Write to MH i2c: E2 08 00 25 51 80 11 00 00 00 00 00 00 F0 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 25 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [09:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:51]wFMCommunicate OK [09:53:51]CreateOFDProtocolMessage done [09:53:51]OFDSenderStorePacket 192031 [09:53:51]StoreOFDPacket docnum=192031 [09:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 95 07 01 26 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C0 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EE 02 00 35 04 06 00 3F F4 62 19 3F 38 66 42 9D 36 D9 BC 64 1B [09:53:51]CheckFolder [09:53:51]dirname=/storage/ofd_packets [09:53:51]CheckFolder done [09:53:51]ProducePacketName [09:53:51]name=ofd_packets/00192031 [09:53:51]NVStorageSaveData ofd_packets/00192031 [09:53:51]File name is /storage/ofd_packets/00192031 [09:53:51]Write 301 bytes [09:53:51]NVStorageSaveData done [09:53:51]OFDSenderStorePacket done [09:53:51]KKMCreateOFDPacket done [09:53:51]NVStorageSaveData kkm_last_timestamp [09:53:51]File name is /storage/kkm_last_timestamp [09:53:51]Write 4 bytes [09:53:51]NVStorageSaveData done [09:53:51]ExternCall_PrintAddStr [09:53:51]wPrintStart [09:53:51]Write to MH i2c: 01 00 00 26 51 77 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 07 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 07 00 26 51 00 00 00 00 00 FF 0F 8C [09:53:51]RasterBufferAndPrint [09:53:51]line Счет N : (1)31341 [09:53:51]line ИНН: 02508201610067 [09:53:51]line Контрольно-Кассовый Чек [09:53:51]line ПРОДАЖА [09:53:51]line ТРК (МРК, ГНК) : 12 [09:53:51]line Товар: 2710124130 [09:53:51]line Аи-92-К-5 [09:53:51]line 2.990 * 66.90 [09:53:51]line = 200.03 [09:53:51]line НДС 12% НСП 1% [09:53:51]line > о реализуемом товаре [09:53:51]line ОКРУГЛЕНИЕ: -0.03 [09:53:51]line ИТОГО: 200.00 [09:53:51]line Внесено: 200.00 [09:53:51]line СДАЧА: 0.00 [09:53:51]line НСП 1% : 1.77 [09:53:51]line НДС 12% : 21.24 [09:53:51]line Наличными: 200.00 [09:53:51]line Безнал.: 0.00 [09:53:51]line Место: АЗС № 170 "Партнер Нефть" [09:53:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:53:51]line СНО: Общий режим [09:53:51]line Чек 63 27.10.2024 09:54 [09:53:51]line Смена: 542 ФФД: 1.0 [09:53:51]line ЗНМ: 0300000110 [09:53:51]line РНМ: 0000000000091776 [09:53:51]line Версия ККМ: 001 [09:53:51]line ФМ: 0000000000871754 [09:53:51]line ФД: 192031 [09:53:51]line ФПД: 70318850391864 [09:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192031&fm=70318850391864&tin=02508201610067®Number=0000000000091776&sum=20000 [09:53:51]written 0, free lines is 4095 [09:53:51]OFD Sender: Processing packet 192031 [packets to send 75, broken 74] [09:53:51]ProducePacketName [09:53:51]name=ofd_packets/00192031 [09:53:51]OFD Sender: To server: pG, [09:53:51]CommunicateWithHost lk.salyk.kg:30040 [09:53:51]ConnectInit lk.salyk.kg [09:53:51]Connected sock=8 [09:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 95 07 01 26 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C0 0D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EE 02 00 35 04 06 00 3F F4 62 19 3F 38 66 42 9D 36 D9 BC 64 1B [09:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 3B 47 00 DC A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EE 02 00 F4 03 04 00 89 B2 1D 67 B6 04 01 00 00 25 9F C7 28 14 29 EA 19 [09:53:52]CommunicateWithHost err = 0 [09:53:52]CheckOFDResponse [09:53:52]1017 (14) - 77093643461234 [09:53:52]1041 (16) - 0000000000871754 [09:53:52]1040 (4) - 192031 [09:53:52]1012 (4) - 27.10.2024 03:24 [09:53:52]1206 (1) - 0 [09:53:52]OFD Sender: Remove packet 192031 [09:53:52]ProducePacketName [09:53:52]name=ofd_packets/00192031 [09:53:52]NVStorageDeleteData [09:53:52]Write to MH i2c: 01 00 00 51 51 A2 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 51 51 00 00 00 00 00 BB 0C 70 [09:53:52]RasterBufferAndPrint [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]written 0, free lines is 3275 [09:53:52]MH_Cut [09:53:52]Write to MH i2c: D1 01 00 58 51 01 7B [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 01 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 01 00 58 51 00 7A [09:53:52]Write to MH i2c: 01 00 00 59 51 AA [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]OFD Sender: No OFD packet to send [09:53:52]*** Cut start [09:53:52]*** Partial cut [09:53:52]*** CUTSNS_PIN = 1 [09:53:52]*** CUTSNS_PIN = 0 [09:53:53]*** Brake cut motor [09:53:53]Read from MH i2c: 01 [09:53:53]MH_I2C_Read... [09:53:53]*** Stop cut motor [09:53:53]*** Cut end [09:53:53]Read from MH i2c: 01 07 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 59 51 00 00 00 00 00 FF 0F BF [09:53:53]process_action close_receipt done [09:53:53]requested_data is exist [09:53:53]produce_requested_data [09:53:53]requested_item fm.sn is exist - process it [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 11 00 00 [09:53:53]Write to MH i2c: E2 08 00 5A 51 80 11 00 00 00 00 00 00 25 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 5A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:53]wFMCommunicate OK [09:53:53]requested_item fd.num is exist - process it [09:53:53]SAM_PROTO_GetFieldsCounters [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 00 00 [09:53:53]Write to MH i2c: E2 08 00 5B 51 80 13 00 00 00 00 00 00 28 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 5B 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [09:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetFieldsCounters done [09:53:53]requested_item shift.num is exist - process it [09:53:53]requested_item shift.opened is exist - process it [09:53:53]req_shift_opened [09:53:53]FM_GetShiftState [09:53:53]SAM_PROTO_GetShiftState [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 01 00 [09:53:53]Write to MH i2c: E2 08 00 5C 51 80 13 01 00 00 00 00 00 2A [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 5C 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [09:53:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetShiftState done [09:53:53]FM_GetShiftState done [09:53:53]req_shift_opened done [09:53:53]requested_item shift.open_date is exist - process it [09:53:53]req_shift_open_date [09:53:53]req_shift_open_date done [09:53:53]produce_requested_data done [09:53:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192031,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:53:53]process_action_free close_receipt [09:53:53]json_value_free [09:53:53]json_value_free done [09:53:53]process_json_proto returns [09:53:53]Send response to host [09:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192031,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:53:53]free response buf [09:53:53]execute_script done [09:53:53]execute_script returns [09:53:53]free content buf [09:53:53]Sock 6.Close socket [09:53:53]Sock 6.Thread stoped [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]accept exits with 5 [09:55:37]New connection [09:55:37]New thread 3066817892 created [09:55:37]Thread 3066961252 joined [09:55:37]Waiting for new connection... [09:55:37] Sock 5.Parse request [09:55:37]Sock 5.Check first char [09:55:37]Sock 5.First char is OK [09:55:37]request: POST /json_proto HTTP/1.0 [09:55:37]Method: POST [09:55:37]URL: /json_proto [09:55:37]Method is POST - this is cgi request [09:55:37]url: /json_proto [09:55:37]query_string will be loaded in cgi processing [09:55:37]execute_cgi json_proto POST (null) [09:55:37]execute_cgi path=json_proto method=POST [09:55:37]POST find Content-Length [09:55:37]Host: 172.17.63.131:8080 [09:55:37]Content-Length: 681 [09:55:37]Content-Type: application/json [09:55:37] [09:55:37]POST finish read [09:55:37]Found Content-Length = 681 [09:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:37]execute_script... [09:55: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)31342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:37]POST & json_proto [09:55:37]process_json_proto [09:55:37]json parsed OK: [09:55:37]protocol is kg_v1.0 [09:55:37]action value=close_receipt [09:55:37]process_action close_receipt [09:55:37]cmd_close_receipt [09:55:37]MH_GetDate [09:55:37]Write to MH i2c: F0 00 00 5D 51 9D [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: F0 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: F0 09 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: F0 09 00 5D 51 00 2C 0E 1E 67 22 05 6E 64 5E [09:55:37]GetLastDocTimeStamp 1730022848 [09:55:37]current date 1730022956 [09:55:37]FM_GetShiftState [09:55:37]SAM_PROTO_GetShiftState [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 13 01 00 [09:55:37]Write to MH i2c: E2 08 00 5E 51 80 13 01 00 00 00 00 00 2C [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 5E 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6D [09:55:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_GetShiftState done [09:55:37]FM_GetShiftState done [09:55:37]opened in 1729989159 [09:55:37]opened+sec_in_day 1730075559 [09:55:37]quantity*price = 100015 [09:55:37]sum+1 = 100017 [09:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 64 27.10.2024 09:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192032 ФПД: 179537405928515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095556&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192032&fm=179537405928515&tin=02508201610067®Number=0000000000091776&sum=100000 [09:55:38]StoreToDocumentArchive [09:55:38]shift 542 fd 192032 [09:55:38]save to /storage/0542/doc_00192032 [09:55:38]save last doc name /storage/0542/doc_00192032 to /storage/kkm_last_doc_name [09:55:38]save OK [09:55:38]Clear old archive folders... [09:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:38]tlvbuf is 01B4D1B0 [09:55:38]SAM_PROTO_ClearQueue [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 09 00 00 [09:55:38]Write to MH i2c: E2 08 00 6B 51 80 09 00 00 00 00 00 00 2E [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 6B 51 00 90 00 30 [09:55:38]RAPDU: 90 00 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_ClearQueue done [09:55:38]KKMCreateOFDPacket [09:55:38]OFDProtocolAddRootSTLVToBuf [09:55:38]FM_MakeSignedData [09:55:38]FM_MakeSignedData [09:55:38]SAM_PROTO_SignData [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 0D 01 02 [09:55:38]Write to MH i2c: E2 08 00 6C 51 80 0D 01 02 00 00 00 00 36 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 6C 51 00 90 00 31 [09:55:38]RAPDU: 90 00 [09:55:38]wFMCommunicate OK [09:55:38]wFMCommunicate request_size=255 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EE 02 00 35 04 06 00 A3 [09:55:38]Write to MH i2c: E2 02 01 6D 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EE 02 00 35 04 06 00 A3 00 00 96 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:38]Read from MH i2c: E2 03 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 6D 51 00 90 00 32 [09:55:38]RAPDU: 90 00 [09:55:38]wFMCommunicate OK [09:55:38]wFMCommunicate request_size=10 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 0D 02 02 05 49 CF 4D E4 43 [09:55:38]Write to MH i2c: E2 0D 00 6E 51 80 0D 02 02 05 00 49 CF 4D E4 43 00 00 CF [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 03 00 6E 51 00 90 00 33 [09:55:38]RAPDU: 90 00 [09:55:38]wFMCommunicate OK [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 0D 03 02 [09:55:38]Write to MH i2c: E2 08 00 6F 51 80 0D 03 02 00 00 00 00 3B [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0B 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0B 00 6F 51 00 40 B3 A8 A0 0C A0 FF 14 90 00 36 [09:55:38]RAPDU: 40 B3 A8 A0 0C A0 FF 14 90 00 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_SignData done [09:55:38]FM_MakeSignedData done [09:55:38]CreateOFDProtocolMessage [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 11 00 00 [09:55:38]Write to MH i2c: E2 08 00 70 51 80 11 00 00 00 00 00 00 3B [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 70 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [09:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:55:38]wFMCommunicate OK [09:55:38]CreateOFDProtocolMessage done [09:55:38]OFDSenderStorePacket 192032 [09:55:38]StoreOFDPacket docnum=192032 [09:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 EF 07 01 A9 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EE 02 00 35 04 06 00 A3 49 CF 4D E4 43 40 B3 A8 A0 0C A0 FF 14 [09:55:38]CheckFolder [09:55:38]dirname=/storage/ofd_packets [09:55:38]CheckFolder done [09:55:38]ProducePacketName [09:55:38]name=ofd_packets/00192032 [09:55:38]NVStorageSaveData ofd_packets/00192032 [09:55:38]File name is /storage/ofd_packets/00192032 [09:55:38]Write 301 bytes [09:55:38]NVStorageSaveData done [09:55:38]OFDSenderStorePacket done [09:55:38]KKMCreateOFDPacket done [09:55:38]NVStorageSaveData kkm_last_timestamp [09:55:38]File name is /storage/kkm_last_timestamp [09:55:38]Write 4 bytes [09:55:38]NVStorageSaveData done [09:55:38]ExternCall_PrintAddStr [09:55:38]wPrintStart [09:55:38]Write to MH i2c: 01 00 00 71 51 C2 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 71 51 00 00 00 00 00 FF 0F D7 [09:55:38]RasterBufferAndPrint [09:55:38]line Счет N : (1)31342 [09:55:38]line ИНН: 02508201610067 [09:55:38]line Контрольно-Кассовый Чек [09:55:38]line ПРОДАЖА [09:55:38]line ТРК (МРК, ГНК) : 21 [09:55:38]line Товар: 2710124130 [09:55:38]line Аи-92-К-5 [09:55:38]line 14.950 * 66.90 [09:55:38]line = 1000.16 [09:55:38]line НДС 12% НСП 1% [09:55:38]line > о реализуемом товаре [09:55:38]line ОКРУГЛЕНИЕ: -0.16 [09:55:38]line ИТОГО: 1000.00 [09:55:38]line Внесено: 1000.00 [09:55:38]line СДАЧА: 0.00 [09:55:38]line НСП 1% : 8.85 [09:55:38]line НДС 12% : 106.21 [09:55:38]line Наличными: 1000.00 [09:55:38]line Безнал.: 0.00 [09:55:38]line Место: АЗС № 170 "Партнер Нефть" [09:55:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:55:38]line СНО: Общий режим [09:55:38]line Чек 64 27.10.2024 09:55 [09:55:38]line Смена: 542 ФФД: 1.0 [09:55:38]line ЗНМ: 0300000110 [09:55:38]line РНМ: 0000000000091776 [09:55:38]line Версия ККМ: 001 [09:55:38]line ФМ: 0000000000871754 [09:55:38]line ФД: 192032 [09:55:38]line ФПД: 179537405928515 [09:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095556&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192032&fm=179537405928515&tin=02508201610067®Number=0000000000091776&sum=100000 [09:55:39]OFD Sender: Processing packet 192032 [packets to send 75, broken 74] [09:55:39]ProducePacketName [09:55:39]name=ofd_packets/00192032 [09:55:39]OFD Sender: To server: pG, [09:55:39]CommunicateWithHost lk.salyk.kg:30040 [09:55:39]ConnectInit lk.salyk.kg [09:55:39]written 0, free lines is 4095 [09:55:39]Connected sock=8 [09:55:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 EF 07 01 A9 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EE 02 00 35 04 06 00 A3 49 CF 4D E4 43 40 B3 A8 A0 0C A0 FF 14 [09:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 22 47 00 38 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EE 02 00 F4 03 04 00 F4 B2 1D 67 B6 04 01 00 00 66 A7 81 42 A6 67 A2 FB [09:55:39]CommunicateWithHost err = 0 [09:55:39]CheckOFDResponse [09:55:39]1017 (14) - 77093643461234 [09:55:39]1041 (16) - 0000000000871754 [09:55:39]1040 (4) - 192032 [09:55:39]1012 (4) - 27.10.2024 03:26 [09:55:39]1206 (1) - 0 [09:55:39]OFD Sender: Remove packet 192032 [09:55:39]ProducePacketName [09:55:39]name=ofd_packets/00192032 [09:55:39]NVStorageDeleteData [09:55:39]Write to MH i2c: 01 00 00 9C 51 ED [09:55:39]Write i2c OK [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: 01 [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: 01 07 00 [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: 01 07 00 9C 51 00 00 00 00 00 B6 0C B6 [09:55:39]RasterBufferAndPrint [09:55:39]line [09:55:39]line [09:55:39]line [09:55:39]line [09:55:39]line [09:55:39]written 0, free lines is 3260 [09:55:39]MH_Cut [09:55:39]Write to MH i2c: D1 01 00 A3 51 01 C6 [09:55:39]Write i2c OK [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: D1 [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: D1 01 00 [09:55:39]MH_I2C_Read... [09:55:39]Read from MH i2c: D1 01 00 A3 51 00 C5 [09:55:39]Write to MH i2c: 01 00 00 A4 51 F5 [09:55:39]Write i2c OK [09:55:39]MH_I2C_Read... [09:55:40]OFD Sender: No OFD packet to send [09:55:40]*** Cut start [09:55:40]*** Partial cut [09:55:40]*** CUTSNS_PIN = 1 [09:55:40]*** CUTSNS_PIN = 0 [09:55:40]*** Brake cut motor [09:55:41]Read from MH i2c: 01 [09:55:41]MH_I2C_Read... [09:55:41]*** Stop cut motor [09:55:41]*** Cut end [09:55:41]Read from MH i2c: 01 07 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 A4 51 00 00 00 00 00 FF 0F 0A [09:55:41]process_action close_receipt done [09:55:41]requested_data is exist [09:55:41]produce_requested_data [09:55:41]requested_item fm.sn is exist - process it [09:55:41]wFMCommunicate request_size=4 [09:55:41]MH_SAM_APDU [09:55:41]CAPDU: 80 11 00 00 [09:55:41]Write to MH i2c: E2 08 00 A5 51 80 11 00 00 00 00 00 00 70 [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:41]Read from MH i2c: E2 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 17 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 17 00 A5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [09:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:55:41]wFMCommunicate OK [09:55:41]requested_item fd.num is exist - process it [09:55:41]SAM_PROTO_GetFieldsCounters [09:55:41]wFMCommunicate request_size=4 [09:55:41]MH_SAM_APDU [09:55:41]CAPDU: 80 13 00 00 [09:55:41]Write to MH i2c: E2 08 00 A6 51 80 13 00 00 00 00 00 00 73 [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:41]Read from MH i2c: E2 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 62 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 62 00 A6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:55:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:41]wFMCommunicate OK [09:55:41]SAM_PROTO_GetFieldsCounters done [09:55:41]requested_item shift.num is exist - process it [09:55:41]requested_item shift.opened is exist - process it [09:55:41]req_shift_opened [09:55:41]FM_GetShiftState [09:55:41]SAM_PROTO_GetShiftState [09:55:41]wFMCommunicate request_size=4 [09:55:41]MH_SAM_APDU [09:55:41]CAPDU: 80 13 01 00 [09:55:41]Write to MH i2c: E2 08 00 A7 51 80 13 01 00 00 00 00 00 75 [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:41]Read from MH i2c: E2 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 A7 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B6 [09:55:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:55:41]wFMCommunicate OK [09:55:41]SAM_PROTO_GetShiftState done [09:55:41]FM_GetShiftState done [09:55:41]req_shift_opened done [09:55:41]requested_item shift.open_date is exist - process it [09:55:41]req_shift_open_date [09:55:41]req_shift_open_date done [09:55:41]produce_requested_data done [09:55:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192032,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:55:41]process_action_free close_receipt [09:55:41]json_value_free [09:55:41]json_value_free done [09:55:41]process_json_proto returns [09:55:41]Send response to host [09:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192032,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:55:41]free response buf [09:55:41]execute_script done [09:55:41]execute_script returns [09:55:41]free content buf [09:55:41]Sock 5.Close socket [09:55:41]Sock 5.Thread stoped [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:31]accept exits with 6 [09:56:31]New connection [09:56:31]New thread 3066961252 created [09:56:31]Thread 3066817892 joined [09:56:31]Waiting for new connection... [09:56:31] Sock 6.Parse request [09:56:31]Sock 6.Check first char [09:56:31]Sock 6.First char is OK [09:56:31]request: POST /json_proto HTTP/1.0 [09:56:31]Method: POST [09:56:31]URL: /json_proto [09:56:31]Method is POST - this is cgi request [09:56:31]url: /json_proto [09:56:31]query_string will be loaded in cgi processing [09:56:31]execute_cgi json_proto POST (null) [09:56:31]execute_cgi path=json_proto method=POST [09:56:31]POST find Content-Length [09:56:31]Host: 172.17.63.131:8080 [09:56:31]Content-Length: 681 [09:56:31]Content-Type: application/json [09:56:31] [09:56:31]POST finish read [09:56:31]Found Content-Length = 681 [09:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:31]execute_script... [09:56: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)31343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:31]POST & json_proto [09:56:31]process_json_proto [09:56:31]json parsed OK: [09:56:31]protocol is kg_v1.0 [09:56:31]action value=close_receipt [09:56:31]process_action close_receipt [09:56:31]cmd_close_receipt [09:56:31]MH_GetDate [09:56:31]Write to MH i2c: F0 00 00 A8 51 E8 [09:56:31]Write i2c OK [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 09 00 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 09 00 A8 51 00 62 0E 1E 67 22 05 6E 64 DF [09:56:31]GetLastDocTimeStamp 1730022956 [09:56:31]current date 1730023010 [09:56:31]FM_GetShiftState [09:56:31]SAM_PROTO_GetShiftState [09:56:31]wFMCommunicate request_size=4 [09:56:31]MH_SAM_APDU [09:56:31]CAPDU: 80 13 01 00 [09:56:31]Write to MH i2c: E2 08 00 A9 51 80 13 01 00 00 00 00 00 77 [09:56:31]Write i2c OK [09:56:31]MH_I2C_Read... [09:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:31]Read from MH i2c: E2 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: E2 0E 00 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: E2 0E 00 A9 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B8 [09:56:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:56:31]wFMCommunicate OK [09:56:31]SAM_PROTO_GetShiftState done [09:56:31]FM_GetShiftState done [09:56:31]opened in 1729989159 [09:56:31]opened+sec_in_day 1730075559 [09:56:31]quantity*price = 100015 [09:56:31]sum+1 = 100017 [09:56:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 65 27.10.2024 09:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192033 ФПД: 42615657359904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192033&fm=42615657359904&tin=02508201610067®Number=0000000000091776&sum=100000 [09:56:32]StoreToDocumentArchive [09:56:32]shift 542 fd 192033 [09:56:32]save to /storage/0542/doc_00192033 [09:56:32]save last doc name /storage/0542/doc_00192033 to /storage/kkm_last_doc_name [09:56:32]save OK [09:56:32]Clear old archive folders... [09:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:32]tlvbuf is 01A50660 [09:56:32]SAM_PROTO_ClearQueue [09:56:32]wFMCommunicate request_size=4 [09:56:32]MH_SAM_APDU [09:56:32]CAPDU: 80 09 00 00 [09:56:32]Write to MH i2c: E2 08 00 B6 51 80 09 00 00 00 00 00 00 79 [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 03 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 03 00 B6 51 00 90 00 7B [09:56:32]RAPDU: 90 00 [09:56:32]wFMCommunicate OK [09:56:32]SAM_PROTO_ClearQueue done [09:56:32]KKMCreateOFDPacket [09:56:32]OFDProtocolAddRootSTLVToBuf [09:56:32]FM_MakeSignedData [09:56:32]FM_MakeSignedData [09:56:32]SAM_PROTO_SignData [09:56:32]wFMCommunicate request_size=4 [09:56:32]MH_SAM_APDU [09:56:32]CAPDU: 80 0D 01 02 [09:56:32]Write to MH i2c: E2 08 00 B7 51 80 0D 01 02 00 00 00 00 81 [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 03 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [09:56:32]RAPDU: 90 00 [09:56:32]wFMCommunicate OK [09:56:32]wFMCommunicate request_size=255 [09:56:32]MH_SAM_APDU [09:56: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 63 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EE 02 00 35 04 06 00 26 [09:56:32]Write to MH i2c: E2 02 01 B8 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 63 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EE 02 00 35 04 06 00 26 00 00 9D [09:56:32]Write i2c OK [09:56:32]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]wFMCommunicate request_size=10 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 02 02 05 C2 3B 1E 6A 20 [09:56:33]Write to MH i2c: E2 0D 00 B9 51 80 0D 02 02 05 00 C2 3B 1E 6A 20 00 00 33 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 B9 51 00 90 00 7E [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 03 02 [09:56:33]Write to MH i2c: E2 08 00 BA 51 80 0D 03 02 00 00 00 00 86 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 0B 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 0B 00 BA 51 00 DF 55 75 EA AC 3E E5 C0 90 00 A9 [09:56:33]RAPDU: DF 55 75 EA AC 3E E5 C0 90 00 [09:56:33]wFMCommunicate OK [09:56:33]SAM_PROTO_SignData done [09:56:33]FM_MakeSignedData done [09:56:33]CreateOFDProtocolMessage [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 11 00 00 [09:56:33]Write to MH i2c: E2 08 00 BB 51 80 11 00 00 00 00 00 00 86 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 17 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 17 00 BB 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [09:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:56:33]wFMCommunicate OK [09:56:33]CreateOFDProtocolMessage done [09:56:33]OFDSenderStorePacket 192033 [09:56:33]StoreOFDPacket docnum=192033 [09:56:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 31 07 01 91 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 63 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EE 02 00 35 04 06 00 26 C2 3B 1E 6A 20 DF 55 75 EA AC 3E E5 C0 [09:56:33]CheckFolder [09:56:33]dirname=/storage/ofd_packets [09:56:33]CheckFolder done [09:56:33]ProducePacketName [09:56:33]name=ofd_packets/00192033 [09:56:33]NVStorageSaveData ofd_packets/00192033 [09:56:33]File name is /storage/ofd_packets/00192033 [09:56:33]Write 301 bytes [09:56:33]NVStorageSaveData done [09:56:33]OFDSenderStorePacket done [09:56:33]KKMCreateOFDPacket done [09:56:33]NVStorageSaveData kkm_last_timestamp [09:56:33]File name is /storage/kkm_last_timestamp [09:56:33]Write 4 bytes [09:56:33]NVStorageSaveData done [09:56:33]ExternCall_PrintAddStr [09:56:33]wPrintStart [09:56:33]Write to MH i2c: 01 00 00 BC 51 0D [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 07 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 07 00 BC 51 00 00 00 00 00 FF 0F 22 [09:56:33]RasterBufferAndPrint [09:56:33]line Счет N : (1)31343 [09:56:33]line ИНН: 02508201610067 [09:56:33]line Контрольно-Кассовый Чек [09:56:33]line ПРОДАЖА [09:56:33]line ТРК (МРК, ГНК) : 12 [09:56:33]line Товар: 2710124130 [09:56:33]line Аи-92-К-5 [09:56:33]line 14.950 * 66.90 [09:56:33]line = 1000.16 [09:56:33]line НДС 12% НСП 1% [09:56:33]line > о реализуемом товаре [09:56:33]line ОКРУГЛЕНИЕ: -0.16 [09:56:33]line ИТОГО: 1000.00 [09:56:33]line Внесено: 1000.00 [09:56:33]line СДАЧА: 0.00 [09:56:33]line НСП 1% : 8.85 [09:56:33]line НДС 12% : 106.21 [09:56:33]line Наличными: 1000.00 [09:56:33]line Безнал.: 0.00 [09:56:33]line Место: АЗС № 170 "Партнер Нефть" [09:56:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:56:33]line СНО: Общий режим [09:56:33]line Чек 65 27.10.2024 09:56 [09:56:33]line Смена: 542 ФФД: 1.0 [09:56:33]line ЗНМ: 0300000110 [09:56:33]line РНМ: 0000000000091776 [09:56:33]line Версия ККМ: 001 [09:56:33]line ФМ: 0000000000871754 [09:56:33]line ФД: 192033 [09:56:33]line ФПД: 42615657359904 [09:56:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192033&fm=42615657359904&tin=02508201610067®Number=0000000000091776&sum=100000 [09:56:33]OFD Sender: Processing packet 192033 [packets to send 75, broken 74] [09:56:33]ProducePacketName [09:56:33]name=ofd_packets/00192033 [09:56:33]OFD Sender: To server: pG, [09:56:33]CommunicateWithHost lk.salyk.kg:30040 [09:56:33]ConnectInit lk.salyk.kg [09:56:33]written 0, free lines is 4095 [09:56:33]Connected sock=8 [09:56:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 31 07 01 91 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 63 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EE 02 00 35 04 06 00 26 C2 3B 1E 6A 20 DF 55 75 EA AC 3E E5 C0 [09:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 C4 47 00 21 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EE 02 00 F4 03 04 00 2B B3 1D 67 B6 04 01 00 00 E0 39 87 33 82 F8 DB 86 [09:56:33]CommunicateWithHost err = 0 [09:56:33]CheckOFDResponse [09:56:33]1017 (14) - 77093643461234 [09:56:33]1041 (16) - 0000000000871754 [09:56:33]1040 (4) - 192033 [09:56:33]1012 (4) - 27.10.2024 03:27 [09:56:33]1206 (1) - 0 [09:56:33]OFD Sender: Remove packet 192033 [09:56:33]ProducePacketName [09:56:33]name=ofd_packets/00192033 [09:56:33]NVStorageDeleteData [09:56:34]Write to MH i2c: 01 00 00 E7 51 38 [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 07 00 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 07 00 E7 51 00 00 00 00 00 B9 0C 04 [09:56:34]RasterBufferAndPrint [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]written 0, free lines is 3265 [09:56:34]MH_Cut [09:56:34]Write to MH i2c: D1 01 00 EE 51 01 11 [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 01 00 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 01 00 EE 51 00 10 [09:56:34]Write to MH i2c: 01 00 00 EF 51 40 [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]OFD Sender: No OFD packet to send [09:56:34]*** Cut start [09:56:34]*** Partial cut [09:56:34]*** CUTSNS_PIN = 1 [09:56:34]*** CUTSNS_PIN = 0 [09:56:35]*** Brake cut motor [09:56:35]Read from MH i2c: 01 [09:56:35]MH_I2C_Read... [09:56:35]*** Stop cut motor [09:56:35]*** Cut end [09:56:35]Read from MH i2c: 01 07 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: 01 07 00 EF 51 00 00 00 00 00 FF 0F 55 [09:56:35]process_action close_receipt done [09:56:35]requested_data is exist [09:56:35]produce_requested_data [09:56:35]requested_item fm.sn is exist - process it [09:56:35]wFMCommunicate request_size=4 [09:56:35]MH_SAM_APDU [09:56:35]CAPDU: 80 11 00 00 [09:56:35]Write to MH i2c: E2 08 00 F0 51 80 11 00 00 00 00 00 00 BB [09:56:35]Write i2c OK [09:56:35]MH_I2C_Read... [09:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:35]Read from MH i2c: E2 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 17 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 17 00 F0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [09:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:56:35]wFMCommunicate OK [09:56:35]requested_item fd.num is exist - process it [09:56:35]SAM_PROTO_GetFieldsCounters [09:56:35]wFMCommunicate request_size=4 [09:56:35]MH_SAM_APDU [09:56:35]CAPDU: 80 13 00 00 [09:56:35]Write to MH i2c: E2 08 00 F1 51 80 13 00 00 00 00 00 00 BE [09:56:35]Write i2c OK [09:56:35]MH_I2C_Read... [09:56:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:35]Read from MH i2c: E2 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 62 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 62 00 F1 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [09:56:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:35]wFMCommunicate OK [09:56:35]SAM_PROTO_GetFieldsCounters done [09:56:35]requested_item shift.num is exist - process it [09:56:35]requested_item shift.opened is exist - process it [09:56:35]req_shift_opened [09:56:35]FM_GetShiftState [09:56:35]SAM_PROTO_GetShiftState [09:56:35]wFMCommunicate request_size=4 [09:56:35]MH_SAM_APDU [09:56:35]CAPDU: 80 13 01 00 [09:56:35]Write to MH i2c: E2 08 00 F2 51 80 13 01 00 00 00 00 00 C0 [09:56:35]Write i2c OK [09:56:35]MH_I2C_Read... [09:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:35]Read from MH i2c: E2 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 0E 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 0E 00 F2 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 01 [09:56:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:56:35]wFMCommunicate OK [09:56:35]SAM_PROTO_GetShiftState done [09:56:35]FM_GetShiftState done [09:56:35]req_shift_opened done [09:56:35]requested_item shift.open_date is exist - process it [09:56:35]req_shift_open_date [09:56:35]req_shift_open_date done [09:56:35]produce_requested_data done [09:56:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192033,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:56:35]process_action_free close_receipt [09:56:35]json_value_free [09:56:35]json_value_free done [09:56:35]process_json_proto returns [09:56:35]Send response to host [09:56:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192033,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:56:35]free response buf [09:56:35]execute_script done [09:56:35]execute_script returns [09:56:35]free content buf [09:56:35]Sock 6.Close socket [09:56:35]Sock 6.Thread stoped [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:06]accept exits with 5 [09:57:06]New connection [09:57:06]New thread 3066817892 created [09:57:06]Thread 3066961252 joined [09:57:06]Waiting for new connection... [09:57:06] Sock 5.Parse request [09:57:06]Sock 5.Check first char [09:57:06]Sock 5.First char is OK [09:57:06]request: POST /json_proto HTTP/1.0 [09:57:06]Method: POST [09:57:06]URL: /json_proto [09:57:06]Method is POST - this is cgi request [09:57:06]url: /json_proto [09:57:06]query_string will be loaded in cgi processing [09:57:06]execute_cgi json_proto POST (null) [09:57:06]execute_cgi path=json_proto method=POST [09:57:06]POST find Content-Length [09:57:06]Host: 172.17.63.131:8080 [09:57:06]Content-Length: 676 [09:57:06]Content-Type: application/json [09:57:06] [09:57:06]POST finish read [09:57:06]Found Content-Length = 676 [09:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:06]execute_script... [09:57: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)31344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:06]POST & json_proto [09:57:06]process_json_proto [09:57:06]json parsed OK: [09:57:06]protocol is kg_v1.0 [09:57:06]action value=close_receipt [09:57:06]process_action close_receipt [09:57:06]cmd_close_receipt [09:57:06]MH_GetDate [09:57:06]Write to MH i2c: F0 00 00 F3 51 33 [09:57:06]Write i2c OK [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 09 00 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 09 00 F3 51 00 85 0E 1E 67 22 05 6E 64 4D [09:57:06]GetLastDocTimeStamp 1730023011 [09:57:06]current date 1730023045 [09:57:06]FM_GetShiftState [09:57:06]SAM_PROTO_GetShiftState [09:57:06]wFMCommunicate request_size=4 [09:57:06]MH_SAM_APDU [09:57:06]CAPDU: 80 13 01 00 [09:57:06]Write to MH i2c: E2 08 00 F4 51 80 13 01 00 00 00 00 00 C2 [09:57:06]Write i2c OK [09:57:06]MH_I2C_Read... [09:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:06]Read from MH i2c: E2 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: E2 0E 00 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: E2 0E 00 F4 51 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 03 [09:57:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:57:06]wFMCommunicate OK [09:57:06]SAM_PROTO_GetShiftState done [09:57:06]FM_GetShiftState done [09:57:06]opened in 1729989159 [09:57:06]opened+sec_in_day 1730075559 [09:57:06]quantity*price = 50041 [09:57:06]sum+1 = 50042 [09:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 66 27.10.2024 09:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192034 ФПД: 183418996656692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192034&fm=183418996656692&tin=02508201610067®Number=0000000000091776&sum=50000 [09:57:07]StoreToDocumentArchive [09:57:07]shift 542 fd 192034 [09:57:07]save to /storage/0542/doc_00192034 [09:57:07]save last doc name /storage/0542/doc_00192034 to /storage/kkm_last_doc_name [09:57:07]save OK [09:57:07]Clear old archive folders... [09:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:07]tlvbuf is 01B4D1A0 [09:57:07]SAM_PROTO_ClearQueue [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 09 00 00 [09:57:07]Write to MH i2c: E2 08 00 01 52 80 09 00 00 00 00 00 00 C5 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_ClearQueue done [09:57:07]KKMCreateOFDPacket [09:57:07]OFDProtocolAddRootSTLVToBuf [09:57:07]FM_MakeSignedData [09:57:07]FM_MakeSignedData [09:57:07]SAM_PROTO_SignData [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 01 02 [09:57:07]Write to MH i2c: E2 08 00 02 52 80 0D 01 02 00 00 00 00 CD [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]wFMCommunicate request_size=255 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 85 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EE 02 00 35 04 06 00 A6 [09:57:07]Write to MH i2c: E2 02 01 03 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EE 02 00 35 04 06 00 A6 00 00 93 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 03 52 00 90 00 C9 [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]wFMCommunicate request_size=10 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 02 02 05 D1 90 24 0A 34 [09:57:07]Write to MH i2c: E2 0D 00 04 52 80 0D 02 02 05 00 D1 90 24 0A 34 00 00 9D [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:08]Read from MH i2c: E2 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 03 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 03 00 04 52 00 90 00 CA [09:57:08]RAPDU: 90 00 [09:57:08]wFMCommunicate OK [09:57:08]wFMCommunicate request_size=4 [09:57:08]MH_SAM_APDU [09:57:08]CAPDU: 80 0D 03 02 [09:57:08]Write to MH i2c: E2 08 00 05 52 80 0D 03 02 00 00 00 00 D2 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:08]Read from MH i2c: E2 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 0B 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 0B 00 05 52 00 92 9A F3 8D F0 73 25 42 90 00 49 [09:57:08]RAPDU: 92 9A F3 8D F0 73 25 42 90 00 [09:57:08]wFMCommunicate OK [09:57:08]SAM_PROTO_SignData done [09:57:08]FM_MakeSignedData done [09:57:08]CreateOFDProtocolMessage [09:57:08]wFMCommunicate request_size=4 [09:57:08]MH_SAM_APDU [09:57:08]CAPDU: 80 11 00 00 [09:57:08]Write to MH i2c: E2 08 00 06 52 80 11 00 00 00 00 00 00 D2 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:08]Read from MH i2c: E2 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 17 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 17 00 06 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [09:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:57:08]wFMCommunicate OK [09:57:08]CreateOFDProtocolMessage done [09:57:08]OFDSenderStorePacket 192034 [09:57:08]StoreOFDPacket docnum=192034 [09:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 7E 07 01 BF D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EE 02 00 35 04 06 00 A6 D1 90 24 0A 34 92 9A F3 8D F0 73 25 42 [09:57:08]CheckFolder [09:57:08]dirname=/storage/ofd_packets [09:57:08]CheckFolder done [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00192034 [09:57:08]NVStorageSaveData ofd_packets/00192034 [09:57:08]File name is /storage/ofd_packets/00192034 [09:57:08]Write 301 bytes [09:57:08]NVStorageSaveData done [09:57:08]OFDSenderStorePacket done [09:57:08]KKMCreateOFDPacket done [09:57:08]NVStorageSaveData kkm_last_timestamp [09:57:08]File name is /storage/kkm_last_timestamp [09:57:08]Write 4 bytes [09:57:08]NVStorageSaveData done [09:57:08]OFD Sender: Processing packet 192034 [packets to send 75, broken 74] [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00192034 [09:57:08]OFD Sender: To server: pG, [09:57:08]CommunicateWithHost lk.salyk.kg:30040 [09:57:08]ConnectInit lk.salyk.kg [09:57:08]ExternCall_PrintAddStr [09:57:08]wPrintStart [09:57:08]Write to MH i2c: 01 00 00 07 52 59 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 07 52 00 00 00 00 00 FF 0F 6E [09:57:08]RasterBufferAndPrint [09:57:08]line Счет N : (1)31344 [09:57:08]line ИНН: 02508201610067 [09:57:08]line Контрольно-Кассовый Чек [09:57:08]line ПРОДАЖА [09:57:08]line ТРК (МРК, ГНК) : 21 [09:57:08]line Товар: 2710124130 [09:57:08]line Аи-92-К-5 [09:57:08]line 7.480 * 66.90 [09:57:08]line = 500.41 [09:57:08]line НДС 12% НСП 1% [09:57:08]line > о реализуемом товаре [09:57:08]line ОКРУГЛЕНИЕ: -0.41 [09:57:08]line ИТОГО: 500.00 [09:57:08]line Внесено: 500.00 [09:57:08]line СДАЧА: 0.00 [09:57:08]line НСП 1% : 4.43 [09:57:08]line НДС 12% : 53.14 [09:57:08]line Наличными: 500.00 [09:57:08]line Безнал.: 0.00 [09:57:08]line Место: АЗС № 170 "Партнер Нефть" [09:57:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:57:08]line СНО: Общий режим [09:57:08]line Чек 66 27.10.2024 09:57 [09:57:08]line Смена: 542 ФФД: 1.0 [09:57:08]line ЗНМ: 0300000110 [09:57:08]line РНМ: 0000000000091776 [09:57:08]line Версия ККМ: 001 [09:57:08]line ФМ: 0000000000871754 [09:57:08]line ФД: 192034 [09:57:08]line ФПД: 183418996656692 [09:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192034&fm=183418996656692&tin=02508201610067®Number=0000000000091776&sum=50000 [09:57:08]Connected sock=9 [09:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 7E 07 01 BF D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EE 02 00 35 04 06 00 A6 D1 90 24 0A 34 92 9A F3 8D F0 73 25 42 [09:57:08]written 0, free lines is 4095 [09:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 13 47 00 2D D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EE 02 00 F4 03 04 00 4D B3 1D 67 B6 04 01 00 00 E4 6C 95 59 10 EF 8A 14 [09:57:08]CommunicateWithHost err = 0 [09:57:08]CheckOFDResponse [09:57:08]1017 (14) - 77093643461234 [09:57:08]1041 (16) - 0000000000871754 [09:57:08]1040 (4) - 192034 [09:57:08]1012 (4) - 27.10.2024 03:28 [09:57:08]1206 (1) - 0 [09:57:08]OFD Sender: Remove packet 192034 [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00192034 [09:57:08]NVStorageDeleteData [09:57:08]Write to MH i2c: 01 00 00 32 52 84 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 32 52 00 00 00 00 00 A1 0C 38 [09:57:08]RasterBufferAndPrint [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]written 0, free lines is 3240 [09:57:08]MH_Cut [09:57:08]Write to MH i2c: D1 01 00 39 52 01 5D [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 01 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 01 00 39 52 00 5C [09:57:08]Write to MH i2c: 01 00 00 3A 52 8C [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:09]OFD Sender: No OFD packet to send [09:57:09]*** Cut start [09:57:09]*** Partial cut [09:57:09]*** CUTSNS_PIN = 1 [09:57:09]*** CUTSNS_PIN = 0 [09:57:10]*** Brake cut motor [09:57:10]Read from MH i2c: 01 [09:57:10]MH_I2C_Read... [09:57:10]*** Stop cut motor [09:57:10]*** Cut end [09:57:10]Read from MH i2c: 01 07 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 3A 52 00 00 00 00 00 FF 0F A1 [09:57:10]process_action close_receipt done [09:57:10]requested_data is exist [09:57:10]produce_requested_data [09:57:10]requested_item fm.sn is exist - process it [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 11 00 00 [09:57:10]Write to MH i2c: E2 08 00 3B 52 80 11 00 00 00 00 00 00 07 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 3B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [09:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:57:10]wFMCommunicate OK [09:57:10]requested_item fd.num is exist - process it [09:57:10]SAM_PROTO_GetFieldsCounters [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 13 00 00 [09:57:10]Write to MH i2c: E2 08 00 3C 52 80 13 00 00 00 00 00 00 0A [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 62 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 62 00 3C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [09:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_GetFieldsCounters done [09:57:10]requested_item shift.num is exist - process it [09:57:10]requested_item shift.opened is exist - process it [09:57:10]req_shift_opened [09:57:10]FM_GetShiftState [09:57:10]SAM_PROTO_GetShiftState [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 13 01 00 [09:57:10]Write to MH i2c: E2 08 00 3D 52 80 13 01 00 00 00 00 00 0C [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0E 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0E 00 3D 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4D [09:57:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_GetShiftState done [09:57:10]FM_GetShiftState done [09:57:10]req_shift_opened done [09:57:10]requested_item shift.open_date is exist - process it [09:57:10]req_shift_open_date [09:57:10]req_shift_open_date done [09:57:10]produce_requested_data done [09:57:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192034,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:57:10]process_action_free close_receipt [09:57:10]json_value_free [09:57:10]json_value_free done [09:57:10]process_json_proto returns [09:57:10]Send response to host [09:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192034,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:57:10]free response buf [09:57:10]execute_script done [09:57:10]execute_script returns [09:57:10]free content buf [09:57:10]Sock 5.Close socket [09:57:10]Sock 5.Thread stoped [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:49]accept exits with 6 [09:58:49]New connection [09:58:49]New thread 3066961252 created [09:58:49]Thread 3066817892 joined [09:58:49]Waiting for new connection... [09:58:49] Sock 6.Parse request [09:58:49]Sock 6.Check first char [09:58:49]Sock 6.First char is OK [09:58:49]request: POST /json_proto HTTP/1.0 [09:58:49]Method: POST [09:58:49]URL: /json_proto [09:58:49]Method is POST - this is cgi request [09:58:49]url: /json_proto [09:58:49]query_string will be loaded in cgi processing [09:58:49]execute_cgi json_proto POST (null) [09:58:49]execute_cgi path=json_proto method=POST [09:58:49]POST find Content-Length [09:58:49]Host: 172.17.63.131:8080 [09:58:49]Content-Length: 858 [09:58:49]Content-Type: application/json [09:58:49] [09:58:49]POST finish read [09:58:49]Found Content-Length = 858 [09:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 0.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:49]execute_script... [09:58:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 0.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:49]POST & json_proto [09:58:49]process_json_proto [09:58:49]json parsed OK: [09:58:49]protocol is kg_v1.0 [09:58:49]action value=close_receipt [09:58:49]process_action close_receipt [09:58:49]cmd_close_receipt [09:58:49]MH_GetDate [09:58:49]Write to MH i2c: F0 00 00 3E 52 7F [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: F0 09 00 3E 52 00 ED 0E 1E 67 22 05 6E 64 01 [09:58:49]GetLastDocTimeStamp 1730023045 [09:58:49]current date 1730023149 [09:58:49]FM_GetShiftState [09:58:49]SAM_PROTO_GetShiftState [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 13 01 00 [09:58:49]Write to MH i2c: E2 08 00 3F 52 80 13 01 00 00 00 00 00 0E [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 3F 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4F [09:58:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetShiftState done [09:58:49]FM_GetShiftState done [09:58:49]opened in 1729989159 [09:58:49]opened+sec_in_day 1730075559 [09:58:49]quantity*price = 66 [09:58:49]sum+1 = 68 [09:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.67 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.67 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 67 27.10.2024 09:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192035 ФПД: 213072780043850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192035&fm=213072780043850&tin=02508201610067®Number=0000000000091776&sum=67 [09:58:51]StoreToDocumentArchive [09:58:51]shift 542 fd 192035 [09:58:51]save to /storage/0542/doc_00192035 [09:58:51]save last doc name /storage/0542/doc_00192035 to /storage/kkm_last_doc_name [09:58:51]save OK [09:58:51]Clear old archive folders... [09:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:51]tlvbuf is 01609400 [09:58:51]SAM_PROTO_ClearQueue [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 09 00 00 [09:58:51]Write to MH i2c: E2 08 00 4C 52 80 09 00 00 00 00 00 00 10 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 4C 52 00 90 00 12 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_ClearQueue done [09:58:51]KKMCreateOFDPacket [09:58:51]OFDProtocolAddRootSTLVToBuf [09:58:51]FM_MakeSignedData [09:58:51]FM_MakeSignedData [09:58:51]SAM_PROTO_SignData [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 01 02 [09:58:51]Write to MH i2c: E2 08 00 4D 52 80 0D 01 02 00 00 00 00 18 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 4D 52 00 90 00 13 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=255 [09:58:51]MH_SAM_APDU [09:58: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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 ED 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EE 02 00 35 04 06 00 C1 [09:58:51]Write to MH i2c: E2 02 01 4E 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 ED 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EE 02 00 35 04 06 00 C1 00 00 F5 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 4E 52 00 90 00 14 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=10 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 02 02 05 C9 DF 5D A6 4A [09:58:51]Write to MH i2c: E2 0D 00 4F 52 80 0D 02 02 05 00 C9 DF 5D A6 4A 00 00 1A [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 03 00 4F 52 00 90 00 15 [09:58:51]RAPDU: 90 00 [09:58:51]wFMCommunicate OK [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 0D 03 02 [09:58:51]Write to MH i2c: E2 08 00 50 52 80 0D 03 02 00 00 00 00 1D [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0B 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0B 00 50 52 00 D4 53 7F EA B4 74 75 1B 90 00 66 [09:58:51]RAPDU: D4 53 7F EA B4 74 75 1B 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_SignData done [09:58:51]FM_MakeSignedData done [09:58:51]CreateOFDProtocolMessage [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 11 00 00 [09:58:51]Write to MH i2c: E2 08 00 51 52 80 11 00 00 00 00 00 00 1D [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 51 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [09:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:58:51]wFMCommunicate OK [09:58:51]CreateOFDProtocolMessage done [09:58:51]OFDSenderStorePacket 192035 [09:58:51]StoreOFDPacket docnum=192035 [09:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 BF 07 01 1E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 ED 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EE 02 00 35 04 06 00 C1 C9 DF 5D A6 4A D4 53 7F EA B4 74 75 1B [09:58:51]CheckFolder [09:58:51]dirname=/storage/ofd_packets [09:58:51]CheckFolder done [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00192035 [09:58:51]NVStorageSaveData ofd_packets/00192035 [09:58:51]File name is /storage/ofd_packets/00192035 [09:58:51]Write 301 bytes [09:58:51]NVStorageSaveData done [09:58:51]OFDSenderStorePacket done [09:58:51]KKMCreateOFDPacket done [09:58:51]NVStorageSaveData kkm_last_timestamp [09:58:51]File name is /storage/kkm_last_timestamp [09:58:51]Write 4 bytes [09:58:51]NVStorageSaveData done [09:58:51]ExternCall_PrintAddStr [09:58:51]wPrintStart [09:58:51]Write to MH i2c: 01 00 00 52 52 A4 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 52 52 00 00 00 00 00 FF 0F B9 [09:58:51]RasterBufferAndPrint [09:58:51]line Счет N : (1)31345 [09:58:51]line ИНН: 02508201610067 [09:58:51]line Контрольно-Кассовый Чек [09:58:51]line ПРОДАЖА [09:58:51]line ТРК (МРК, ГНК) : 12 [09:58:51]line Товар: 2710124130 [09:58:51]line Аи-92-К-5 [09:58:51]line 0.010 * 66.90 [09:58:51]line = 0.67 [09:58:51]line НДС 12% НСП 1% [09:58:51]line > о реализуемом товаре [09:58:51]line ИТОГО: 0.67 [09:58:51]line НСП 1% : 0.01 [09:58:51]line НДС 12% : 0.07 [09:58:51]line Наличными: 0.00 [09:58:51]line Безнал.: 0.67 [09:58:51]line Место: АЗС № 170 "Партнер Нефть" [09:58:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:58:51]line СНО: Общий режим [09:58:51]line Чек 67 27.10.2024 09:59 [09:58:51]line Смена: 542 ФФД: 1.0 [09:58:51]line ЗНМ: 0300000110 [09:58:51]line РНМ: 0000000000091776 [09:58:51]line Версия ККМ: 001 [09:58:51]line Платежная система: Кыргызкоммерцбанк [09:58:51]line ФМ: 0000000000871754 [09:58:51]line ФД: 192035 [09:58:51]line ФПД: 213072780043850 [09:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192035&fm=213072780043850&tin=02508201610067®Number=0000000000091776&sum=67 [09:58:51]written 0, free lines is 4095 [09:58:51]OFD Sender: Processing packet 192035 [packets to send 75, broken 74] [09:58:51]ProducePacketName [09:58:51]name=ofd_packets/00192035 [09:58:51]OFD Sender: To server: pG, [09:58:51]CommunicateWithHost lk.salyk.kg:30040 [09:58:51]ConnectInit lk.salyk.kg [09:58:52]Connected sock=8 [09:58:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 BF 07 01 1E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 ED 0E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EE 02 00 35 04 06 00 C1 C9 DF 5D A6 4A D4 53 7F EA B4 74 75 1B [09:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA D2 47 00 5E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EE 02 00 F4 03 04 00 B5 B3 1D 67 B6 04 01 00 00 C7 9F 34 BD C1 A5 3D 81 [09:58:52]CommunicateWithHost err = 0 [09:58:52]CheckOFDResponse [09:58:52]1017 (14) - 77093643461234 [09:58:52]1041 (16) - 0000000000871754 [09:58:52]1040 (4) - 192035 [09:58:52]1012 (4) - 27.10.2024 03:29 [09:58:52]1206 (1) - 0 [09:58:52]OFD Sender: Remove packet 192035 [09:58:52]ProducePacketName [09:58:52]name=ofd_packets/00192035 [09:58:52]NVStorageDeleteData [09:58:52]Write to MH i2c: 01 00 00 7C 52 CE [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 7C 52 00 00 00 00 00 C7 0C A8 [09:58:52]RasterBufferAndPrint [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]line [09:58:52]written 0, free lines is 3280 [09:58:52]MH_Cut [09:58:52]Write to MH i2c: D1 01 00 83 52 01 A7 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 01 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: D1 01 00 83 52 00 A6 [09:58:52]Write to MH i2c: 01 00 00 84 52 D6 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]OFD Sender: No OFD packet to send [09:58:53]*** Cut start [09:58:53]*** Partial cut [09:58:53]*** CUTSNS_PIN = 1 [09:58:53]*** CUTSNS_PIN = 0 [09:58:53]*** Brake cut motor [09:58:53]Read from MH i2c: 01 [09:58:53]MH_I2C_Read... [09:58:53]*** Stop cut motor [09:58:53]*** Cut end [09:58:53]Read from MH i2c: 01 07 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: 01 07 00 84 52 00 00 00 00 00 FF 0F EB [09:58:53]process_action close_receipt done [09:58:53]requested_data is exist [09:58:53]produce_requested_data [09:58:53]requested_item fm.sn is exist - process it [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 11 00 00 [09:58:53]Write to MH i2c: E2 08 00 85 52 80 11 00 00 00 00 00 00 51 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:53]Read from MH i2c: E2 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 17 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: E2 17 00 85 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [09:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:58:53]wFMCommunicate OK [09:58:53]requested_item fd.num is exist - process it [09:58:53]SAM_PROTO_GetFieldsCounters [09:58:53]wFMCommunicate request_size=4 [09:58:53]MH_SAM_APDU [09:58:53]CAPDU: 80 13 00 00 [09:58:53]Write to MH i2c: E2 08 00 86 52 80 13 00 00 00 00 00 00 54 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 62 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 62 00 86 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [09:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:54]wFMCommunicate OK [09:58:54]SAM_PROTO_GetFieldsCounters done [09:58:54]requested_item shift.num is exist - process it [09:58:54]requested_item shift.opened is exist - process it [09:58:54]req_shift_opened [09:58:54]FM_GetShiftState [09:58:54]SAM_PROTO_GetShiftState [09:58:54]wFMCommunicate request_size=4 [09:58:54]MH_SAM_APDU [09:58:54]CAPDU: 80 13 01 00 [09:58:54]Write to MH i2c: E2 08 00 87 52 80 13 01 00 00 00 00 00 56 [09:58:54]Write i2c OK [09:58:54]MH_I2C_Read... [09:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:54]Read from MH i2c: E2 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0E 00 [09:58:54]MH_I2C_Read... [09:58:54]Read from MH i2c: E2 0E 00 87 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 97 [09:58:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:58:54]wFMCommunicate OK [09:58:54]SAM_PROTO_GetShiftState done [09:58:54]FM_GetShiftState done [09:58:54]req_shift_opened done [09:58:54]requested_item shift.open_date is exist - process it [09:58:54]req_shift_open_date [09:58:54]req_shift_open_date done [09:58:54]produce_requested_data done [09:58:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192035,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:58:54]process_action_free close_receipt [09:58:54]json_value_free [09:58:54]json_value_free done [09:58:54]process_json_proto returns [09:58:54]Send response to host [09:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192035,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:58:54]free response buf [09:58:54]execute_script done [09:58:54]execute_script returns [09:58:54]free content buf [09:58:54]Sock 6.Close socket [09:58:54]Sock 6.Thread stoped [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]accept exits with 5 [09:59:22]New connection [09:59:22]New thread 3066817892 created [09:59:22]Thread 3066961252 joined [09:59:22]Waiting for new connection... [09:59:22] Sock 5.Parse request [09:59:22]Sock 5.Check first char [09:59:22]Sock 5.First char is OK [09:59:22]request: POST /json_proto HTTP/1.0 [09:59:22]Method: POST [09:59:22]URL: /json_proto [09:59:22]Method is POST - this is cgi request [09:59:22]url: /json_proto [09:59:22]query_string will be loaded in cgi processing [09:59:22]execute_cgi json_proto POST (null) [09:59:22]execute_cgi path=json_proto method=POST [09:59:22]POST find Content-Length [09:59:22]Host: 172.17.63.131:8080 [09:59:22]Content-Length: 677 [09:59:22]Content-Type: application/json [09:59:22] [09:59:22]POST finish read [09:59:22]Found Content-Length = 677 [09:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:22]execute_script... [09:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:22]POST & json_proto [09:59:22]process_json_proto [09:59:22]json parsed OK: [09:59:22]protocol is kg_v1.0 [09:59:22]action value=close_receipt [09:59:22]process_action close_receipt [09:59:22]cmd_close_receipt [09:59:22]MH_GetDate [09:59:22]Write to MH i2c: F0 00 00 88 52 C9 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: F0 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: F0 09 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: F0 09 00 88 52 00 0D 0F 1E 67 22 05 6E 64 6C [09:59:22]GetLastDocTimeStamp 1730023149 [09:59:22]current date 1730023181 [09:59:22]FM_GetShiftState [09:59:22]SAM_PROTO_GetShiftState [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 13 01 00 [09:59:22]Write to MH i2c: E2 08 00 89 52 80 13 01 00 00 00 00 00 58 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0E 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0E 00 89 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 99 [09:59:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_GetShiftState done [09:59:22]FM_GetShiftState done [09:59:22]opened in 1729989159 [09:59:22]opened+sec_in_day 1730075559 [09:59:22]quantity*price = 80012 [09:59:22]sum+1 = 80013 [09:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 68 27.10.2024 09:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192036 ФПД: 90732731414615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192036&fm=90732731414615&tin=02508201610067®Number=0000000000091776&sum=80000 [09:59:23]StoreToDocumentArchive [09:59:23]shift 542 fd 192036 [09:59:23]save to /storage/0542/doc_00192036 [09:59:23]save last doc name /storage/0542/doc_00192036 to /storage/kkm_last_doc_name [09:59:23]save OK [09:59:23]Clear old archive folders... [09:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:23]tlvbuf is 01608CF0 [09:59:23]SAM_PROTO_ClearQueue [09:59:23]wFMCommunicate request_size=4 [09:59:23]MH_SAM_APDU [09:59:23]CAPDU: 80 09 00 00 [09:59:23]Write to MH i2c: E2 08 00 96 52 80 09 00 00 00 00 00 00 5A [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:23]Read from MH i2c: E2 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: E2 03 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: E2 03 00 96 52 00 90 00 5C [09:59:23]RAPDU: 90 00 [09:59:23]wFMCommunicate OK [09:59:23]SAM_PROTO_ClearQueue done [09:59:23]KKMCreateOFDPacket [09:59:23]OFDProtocolAddRootSTLVToBuf [09:59:23]FM_MakeSignedData [09:59:23]FM_MakeSignedData [09:59:23]SAM_PROTO_SignData [09:59:23]wFMCommunicate request_size=4 [09:59:23]MH_SAM_APDU [09:59:23]CAPDU: 80 0D 01 02 [09:59:23]Write to MH i2c: E2 08 00 97 52 80 0D 01 02 00 00 00 00 62 [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:23]Read from MH i2c: E2 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: E2 03 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: E2 03 00 97 52 00 90 00 5D [09:59:23]RAPDU: 90 00 [09:59:23]wFMCommunicate OK [09:59:23]wFMCommunicate request_size=255 [09:59:23]MH_SAM_APDU [09:59: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0D 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EE 02 00 35 04 06 00 52 [09:59:23]Write to MH i2c: E2 02 01 98 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0D 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EE 02 00 35 04 06 00 52 00 00 4D [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 03 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 03 00 98 52 00 90 00 5E [09:59:24]RAPDU: 90 00 [09:59:24]wFMCommunicate OK [09:59:24]wFMCommunicate request_size=10 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 0D 02 02 05 85 5C 39 B8 57 [09:59:24]Write to MH i2c: E2 0D 00 99 52 80 0D 02 02 05 00 85 5C 39 B8 57 00 00 98 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 03 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 03 00 99 52 00 90 00 5F [09:59:24]RAPDU: 90 00 [09:59:24]wFMCommunicate OK [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 0D 03 02 [09:59:24]Write to MH i2c: E2 08 00 9A 52 80 0D 03 02 00 00 00 00 67 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0B 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0B 00 9A 52 00 B4 80 84 31 13 98 8C 7B 90 00 03 [09:59:24]RAPDU: B4 80 84 31 13 98 8C 7B 90 00 [09:59:24]wFMCommunicate OK [09:59:24]SAM_PROTO_SignData done [09:59:24]FM_MakeSignedData done [09:59:24]CreateOFDProtocolMessage [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 11 00 00 [09:59:24]Write to MH i2c: E2 08 00 9B 52 80 11 00 00 00 00 00 00 67 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 17 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 17 00 9B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [09:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:24]wFMCommunicate OK [09:59:24]CreateOFDProtocolMessage done [09:59:24]OFDSenderStorePacket 192036 [09:59:24]StoreOFDPacket docnum=192036 [09:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 BE 07 01 87 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0D 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EE 02 00 35 04 06 00 52 85 5C 39 B8 57 B4 80 84 31 13 98 8C 7B [09:59:24]CheckFolder [09:59:24]dirname=/storage/ofd_packets [09:59:24]CheckFolder done [09:59:24]ProducePacketName [09:59:24]name=ofd_packets/00192036 [09:59:24]NVStorageSaveData ofd_packets/00192036 [09:59:24]File name is /storage/ofd_packets/00192036 [09:59:24]Write 301 bytes [09:59:24]NVStorageSaveData done [09:59:24]OFDSenderStorePacket done [09:59:24]KKMCreateOFDPacket done [09:59:24]NVStorageSaveData kkm_last_timestamp [09:59:24]File name is /storage/kkm_last_timestamp [09:59:24]Write 4 bytes [09:59:24]NVStorageSaveData done [09:59:24]ExternCall_PrintAddStr [09:59:24]wPrintStart [09:59:24]Write to MH i2c: 01 00 00 9C 52 EE [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 9C 52 00 00 00 00 00 FF 0F 03 [09:59:24]RasterBufferAndPrint [09:59:24]line Счет N : (1)31346 [09:59:24]line ИНН: 02508201610067 [09:59:24]line Контрольно-Кассовый Чек [09:59:24]line ПРОДАЖА [09:59:24]line ТРК (МРК, ГНК) : 21 [09:59:24]line Товар: 2710124130 [09:59:24]line Аи-92-К-5 [09:59:24]line 11.960 * 66.90 [09:59:24]line = 800.12 [09:59:24]line НДС 12% НСП 1% [09:59:24]line > о реализуемом товаре [09:59:24]line ОКРУГЛЕНИЕ: -0.12 [09:59:24]line ИТОГО: 800.00 [09:59:24]line Внесено: 800.00 [09:59:24]line СДАЧА: 0.00 [09:59:24]line НСП 1% : 7.08 [09:59:24]line НДС 12% : 84.97 [09:59:24]line Наличными: 800.00 [09:59:24]line Безнал.: 0.00 [09:59:24]line Место: АЗС № 170 "Партнер Нефть" [09:59:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:59:24]line СНО: Общий режим [09:59:24]line Чек 68 27.10.2024 09:59 [09:59:24]line Смена: 542 ФФД: 1.0 [09:59:24]line ЗНМ: 0300000110 [09:59:24]line РНМ: 0000000000091776 [09:59:24]line Версия ККМ: 001 [09:59:24]line ФМ: 0000000000871754 [09:59:24]line ФД: 192036 [09:59:24]line ФПД: 90732731414615 [09:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192036&fm=90732731414615&tin=02508201610067®Number=0000000000091776&sum=80000 [09:59:24]OFD Sender: Processing packet 192036 [packets to send 75, broken 74] [09:59:24]ProducePacketName [09:59:24]name=ofd_packets/00192036 [09:59:24]OFD Sender: To server: pG, [09:59:24]CommunicateWithHost lk.salyk.kg:30040 [09:59:24]ConnectInit lk.salyk.kg [09:59:24]written 0, free lines is 4095 [09:59:24]Connected sock=8 [09:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 BE 07 01 87 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0D 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EE 02 00 35 04 06 00 52 85 5C 39 B8 57 B4 80 84 31 13 98 8C 7B [09:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 50 47 00 BC 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EE 02 00 F4 03 04 00 D6 B3 1D 67 B6 04 01 00 00 50 14 7C D6 B5 93 4C 8D [09:59:24]CommunicateWithHost err = 0 [09:59:24]CheckOFDResponse [09:59:24]1017 (14) - 77093643461234 [09:59:24]1041 (16) - 0000000000871754 [09:59:24]1040 (4) - 192036 [09:59:24]1012 (4) - 27.10.2024 03:30 [09:59:24]1206 (1) - 0 [09:59:24]OFD Sender: Remove packet 192036 [09:59:24]ProducePacketName [09:59:24]name=ofd_packets/00192036 [09:59:24]NVStorageDeleteData [09:59:24]Write to MH i2c: 01 00 00 C7 52 19 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 C7 52 00 00 00 00 00 B0 0C DC [09:59:24]RasterBufferAndPrint [09:59:24]line [09:59:24]line [09:59:24]line [09:59:24]line [09:59:24]line [09:59:24]written 0, free lines is 3257 [09:59:25]MH_Cut [09:59:25]Write to MH i2c: D1 01 00 CE 52 01 F2 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: D1 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: D1 01 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: D1 01 00 CE 52 00 F1 [09:59:25]Write to MH i2c: 01 00 00 CF 52 21 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]OFD Sender: No OFD packet to send [09:59:25]*** Cut start [09:59:25]*** Partial cut [09:59:25]*** CUTSNS_PIN = 1 [09:59:25]*** CUTSNS_PIN = 0 [09:59:26]*** Brake cut motor [09:59:26]Read from MH i2c: 01 [09:59:26]MH_I2C_Read... [09:59:26]*** Stop cut motor [09:59:26]*** Cut end [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 CF 52 00 00 00 00 00 FF 0F 36 [09:59:26]process_action close_receipt done [09:59:26]requested_data is exist [09:59:26]produce_requested_data [09:59:26]requested_item fm.sn is exist - process it [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 D0 52 80 11 00 00 00 00 00 00 9C [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 D0 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [09:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:26]wFMCommunicate OK [09:59:26]requested_item fd.num is exist - process it [09:59:26]SAM_PROTO_GetFieldsCounters [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 13 00 00 [09:59:26]Write to MH i2c: E2 08 00 D1 52 80 13 00 00 00 00 00 00 9F [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 62 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 62 00 D1 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [09:59:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:26]wFMCommunicate OK [09:59:26]SAM_PROTO_GetFieldsCounters done [09:59:26]requested_item shift.num is exist - process it [09:59:26]requested_item shift.opened is exist - process it [09:59:26]req_shift_opened [09:59:26]FM_GetShiftState [09:59:26]SAM_PROTO_GetShiftState [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 13 01 00 [09:59:26]Write to MH i2c: E2 08 00 D2 52 80 13 01 00 00 00 00 00 A1 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 0E 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 0E 00 D2 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E2 [09:59:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [09:59:26]wFMCommunicate OK [09:59:26]SAM_PROTO_GetShiftState done [09:59:26]FM_GetShiftState done [09:59:26]req_shift_opened done [09:59:26]requested_item shift.open_date is exist - process it [09:59:26]req_shift_open_date [09:59:26]req_shift_open_date done [09:59:26]produce_requested_data done [09:59:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192036,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [09:59:26]process_action_free close_receipt [09:59:26]json_value_free [09:59:26]json_value_free done [09:59:26]process_json_proto returns [09:59:26]Send response to host [09:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192036,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [09:59:26]free response buf [09:59:26]execute_script done [09:59:26]execute_script returns [09:59:26]free content buf [09:59:26]Sock 5.Close socket [09:59:26]Sock 5.Thread stoped [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:43]accept exits with 6 [10:00:43]New connection [10:00:43]New thread 3066961252 created [10:00:43]Thread 3066817892 joined [10:00:43]Waiting for new connection... [10:00:43] Sock 6.Parse request [10:00:43]Sock 6.Check first char [10:00:43]Sock 6.First char is OK [10:00:43]request: POST /json_proto HTTP/1.0 [10:00:43]Method: POST [10:00:43]URL: /json_proto [10:00:43]Method is POST - this is cgi request [10:00:43]url: /json_proto [10:00:43]query_string will be loaded in cgi processing [10:00:43]execute_cgi json_proto POST (null) [10:00:43]execute_cgi path=json_proto method=POST [10:00:43]POST find Content-Length [10:00:43]Host: 172.17.63.131:8080 [10:00:43]Content-Length: 862 [10:00:43]Content-Type: application/json [10:00:43] [10:00:43]POST finish read [10:00:43]Found Content-Length = 862 [10:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.070, "sum" : 406.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 406.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:43]execute_script... [10:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.070, "sum" : 406.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 406.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:43]POST & json_proto [10:00:43]process_json_proto [10:00:43]json parsed OK: [10:00:43]protocol is kg_v1.0 [10:00:43]action value=close_receipt [10:00:43]process_action close_receipt [10:00:43]cmd_close_receipt [10:00:43]MH_GetDate [10:00:43]Write to MH i2c: F0 00 00 D3 52 14 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: F0 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: F0 09 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: F0 09 00 D3 52 00 5E 0F 1E 67 22 05 6E 64 08 [10:00:43]GetLastDocTimeStamp 1730023181 [10:00:43]current date 1730023262 [10:00:43]FM_GetShiftState [10:00:43]SAM_PROTO_GetShiftState [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 13 01 00 [10:00:43]Write to MH i2c: E2 08 00 D4 52 80 13 01 00 00 00 00 00 A3 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0E 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 0E 00 D4 52 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E4 [10:00:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:00:43]wFMCommunicate OK [10:00:43]SAM_PROTO_GetShiftState done [10:00:43]FM_GetShiftState done [10:00:43]opened in 1729989159 [10:00:43]opened+sec_in_day 1730075559 [10:00:43]quantity*price = 40608 [10:00:43]sum+1 = 40609 [10:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 406.08 НСП 1% : 3.59 НДС 12% : 43.12 Наличными: 0.00 Безнал.: 406.08 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 69 27.10.2024 10:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192037 ФПД: 183615458006435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192037&fm=183615458006435&tin=02508201610067®Number=0000000000091776&sum=40608 [10:00:44]StoreToDocumentArchive [10:00:44]shift 542 fd 192037 [10:00:44]save to /storage/0542/doc_00192037 [10:00:44]save last doc name /storage/0542/doc_00192037 to /storage/kkm_last_doc_name [10:00:44]save OK [10:00:44]Clear old archive folders... [10:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:44]tlvbuf is 01B4D1D0 [10:00:44]SAM_PROTO_ClearQueue [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 09 00 00 [10:00:44]Write to MH i2c: E2 08 00 E1 52 80 09 00 00 00 00 00 00 A5 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 03 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 03 00 E1 52 00 90 00 A7 [10:00:44]RAPDU: 90 00 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_ClearQueue done [10:00:44]KKMCreateOFDPacket [10:00:44]OFDProtocolAddRootSTLVToBuf [10:00:44]FM_MakeSignedData [10:00:44]FM_MakeSignedData [10:00:44]SAM_PROTO_SignData [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 0D 01 02 [10:00:44]Write to MH i2c: E2 08 00 E2 52 80 0D 01 02 00 00 00 00 AD [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 03 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 03 00 E2 52 00 90 00 A8 [10:00:44]RAPDU: 90 00 [10:00:44]wFMCommunicate OK [10:00:44]wFMCommunicate request_size=255 [10:00:44]MH_SAM_APDU [10:00: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 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 D8 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5F 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EE 02 00 35 04 06 00 A6 [10:00:44]Write to MH i2c: E2 02 01 E3 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 D8 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5F 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EE 02 00 35 04 06 00 A6 00 00 E2 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 03 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 03 00 E3 52 00 90 00 A9 [10:00:45]RAPDU: 90 00 [10:00:45]wFMCommunicate OK [10:00:45]wFMCommunicate request_size=10 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 0D 02 02 05 FF 4E 26 55 A3 [10:00:45]Write to MH i2c: E2 0D 00 E4 52 80 0D 02 02 05 00 FF 4E 26 55 A3 00 00 25 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 03 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 03 00 E4 52 00 90 00 AA [10:00:45]RAPDU: 90 00 [10:00:45]wFMCommunicate OK [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 0D 03 02 [10:00:45]Write to MH i2c: E2 08 00 E5 52 80 0D 03 02 00 00 00 00 B2 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0B 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0B 00 E5 52 00 03 2D FD F0 94 59 63 91 90 00 B1 [10:00:45]RAPDU: 03 2D FD F0 94 59 63 91 90 00 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_SignData done [10:00:45]FM_MakeSignedData done [10:00:45]CreateOFDProtocolMessage [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 11 00 00 [10:00:45]Write to MH i2c: E2 08 00 E6 52 80 11 00 00 00 00 00 00 B2 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 17 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 17 00 E6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [10:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:00:45]wFMCommunicate OK [10:00:45]CreateOFDProtocolMessage done [10:00:45]OFDSenderStorePacket 192037 [10:00:45]StoreOFDPacket docnum=192037 [10:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA BC 07 01 19 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 D8 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5F 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EE 02 00 35 04 06 00 A6 FF 4E 26 55 A3 03 2D FD F0 94 59 63 91 [10:00:45]CheckFolder [10:00:45]dirname=/storage/ofd_packets [10:00:45]CheckFolder done [10:00:45]ProducePacketName [10:00:45]name=ofd_packets/00192037 [10:00:45]NVStorageSaveData ofd_packets/00192037 [10:00:45]File name is /storage/ofd_packets/00192037 [10:00:45]Write 301 bytes [10:00:45]NVStorageSaveData done [10:00:45]OFDSenderStorePacket done [10:00:45]KKMCreateOFDPacket done [10:00:45]NVStorageSaveData kkm_last_timestamp [10:00:45]File name is /storage/kkm_last_timestamp [10:00:45]Write 4 bytes [10:00:45]NVStorageSaveData done [10:00:45]ExternCall_PrintAddStr [10:00:45]wPrintStart [10:00:45]Write to MH i2c: 01 00 00 E7 52 39 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 E7 52 00 00 00 00 00 FF 0F 4E [10:00:45]RasterBufferAndPrint [10:00:45]line Счет N : (1)31347 [10:00:45]line ИНН: 02508201610067 [10:00:45]line Контрольно-Кассовый Чек [10:00:45]line ПРОДАЖА [10:00:45]line ТРК (МРК, ГНК) : 12 [10:00:45]line Товар: 2710124130 [10:00:45]line Аи-92-К-5 [10:00:45]line 6.070 * 66.90 [10:00:45]line = 406.08 [10:00:45]line НДС 12% НСП 1% [10:00:45]line > о реализуемом товаре [10:00:45]line ИТОГО: 406.08 [10:00:45]line НСП 1% : 3.59 [10:00:45]line НДС 12% : 43.12 [10:00:45]line Наличными: 0.00 [10:00:45]line Безнал.: 406.08 [10:00:45]line Место: АЗС № 170 "Партнер Нефть" [10:00:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:00:45]line СНО: Общий режим [10:00:45]line Чек 69 27.10.2024 10:01 [10:00:45]line Смена: 542 ФФД: 1.0 [10:00:45]line ЗНМ: 0300000110 [10:00:45]line РНМ: 0000000000091776 [10:00:45]line Версия ККМ: 001 [10:00:45]line Платежная система: Кыргызкоммерцбанк [10:00:45]line ФМ: 0000000000871754 [10:00:45]line ФД: 192037 [10:00:45]line ФПД: 183615458006435 [10:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192037&fm=183615458006435&tin=02508201610067®Number=0000000000091776&sum=40608 [10:00:45]written 0, free lines is 4095 [10:00:45]OFD Sender: Processing packet 192037 [packets to send 75, broken 74] [10:00:45]ProducePacketName [10:00:45]name=ofd_packets/00192037 [10:00:45]OFD Sender: To server: pG, [10:00:45]CommunicateWithHost lk.salyk.kg:30040 [10:00:45]ConnectInit lk.salyk.kg [10:00:45]Connected sock=9 [10:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA BC 07 01 19 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 D8 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5F 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EE 02 00 35 04 06 00 A6 FF 4E 26 55 A3 03 2D FD F0 94 59 63 91 [10:00:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 C1 47 00 FE EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EE 02 00 F4 03 04 00 26 B4 1D 67 B6 04 01 00 00 20 3D 10 51 37 1F 88 54 [10:00:45]CommunicateWithHost err = 0 [10:00:45]CheckOFDResponse [10:00:45]1017 (14) - 77093643461234 [10:00:45]1041 (16) - 0000000000871754 [10:00:45]1040 (4) - 192037 [10:00:45]1012 (4) - 27.10.2024 03:31 [10:00:45]1206 (1) - 0 [10:00:45]OFD Sender: Remove packet 192037 [10:00:45]ProducePacketName [10:00:45]name=ofd_packets/00192037 [10:00:45]NVStorageDeleteData [10:00:45]Write to MH i2c: 01 00 00 11 53 64 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 11 53 00 00 00 00 00 CC 0C 43 [10:00:45]RasterBufferAndPrint [10:00:45]line [10:00:45]line [10:00:45]line [10:00:45]line [10:00:45]line [10:00:45]written 0, free lines is 3284 [10:00:45]MH_Cut [10:00:45]Write to MH i2c: D1 01 00 18 53 01 3D [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D1 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D1 01 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D1 01 00 18 53 00 3C [10:00:45]Write to MH i2c: 01 00 00 19 53 6C [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:46]OFD Sender: No OFD packet to send [10:00:46]*** Cut start [10:00:46]*** Partial cut [10:00:46]*** CUTSNS_PIN = 1 [10:00:46]*** CUTSNS_PIN = 0 [10:00:46]*** Brake cut motor [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]*** Stop cut motor [10:00:47]*** Cut end [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 19 53 00 00 00 00 00 FF 0F 81 [10:00:47]process_action close_receipt done [10:00:47]requested_data is exist [10:00:47]produce_requested_data [10:00:47]requested_item fm.sn is exist - process it [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 11 00 00 [10:00:47]Write to MH i2c: E2 08 00 1A 53 80 11 00 00 00 00 00 00 E7 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 1A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [10:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:00:47]wFMCommunicate OK [10:00:47]requested_item fd.num is exist - process it [10:00:47]SAM_PROTO_GetFieldsCounters [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 13 00 00 [10:00:47]Write to MH i2c: E2 08 00 1B 53 80 13 00 00 00 00 00 00 EA [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 62 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 62 00 1B 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [10:00:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_GetFieldsCounters done [10:00:47]requested_item shift.num is exist - process it [10:00:47]requested_item shift.opened is exist - process it [10:00:47]req_shift_opened [10:00:47]FM_GetShiftState [10:00:47]SAM_PROTO_GetShiftState [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 13 01 00 [10:00:47]Write to MH i2c: E2 08 00 1C 53 80 13 01 00 00 00 00 00 EC [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0E 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0E 00 1C 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2D [10:00:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_GetShiftState done [10:00:47]FM_GetShiftState done [10:00:47]req_shift_opened done [10:00:47]requested_item shift.open_date is exist - process it [10:00:47]req_shift_open_date [10:00:47]req_shift_open_date done [10:00:47]produce_requested_data done [10:00:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192037,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:00:47]process_action_free close_receipt [10:00:47]json_value_free [10:00:47]json_value_free done [10:00:47]process_json_proto returns [10:00:47]Send response to host [10:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192037,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:00:47]free response buf [10:00:47]execute_script done [10:00:47]execute_script returns [10:00:47]free content buf [10:00:47]Sock 6.Close socket [10:00:47]Sock 6.Thread stoped [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:00:57]accept exits with 5 [10:00:57]New connection [10:00:57]New thread 3066817892 created [10:00:57]Thread 3066961252 joined [10:00:57]Waiting for new connection... [10:00:57] Sock 5.Parse request [10:00:57]Sock 5.Check first char [10:00:57]Sock 5.First char is OK [10:00:57]request: POST /json_proto HTTP/1.0 [10:00:57]Method: POST [10:00:57]URL: /json_proto [10:00:57]Method is POST - this is cgi request [10:00:57]url: /json_proto [10:00:57]query_string will be loaded in cgi processing [10:00:57]execute_cgi json_proto POST (null) [10:00:57]execute_cgi path=json_proto method=POST [10:00:57]POST find Content-Length [10:00:57]Host: 172.17.63.131:8080 [10:00:57]Content-Length: 676 [10:00:57]Content-Type: application/json [10:00:57] [10:00:57]POST finish read [10:00:57]Found Content-Length = 676 [10:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:57]execute_script... [10:00: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)31348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:57]POST & json_proto [10:00:57]process_json_proto [10:00:57]json parsed OK: [10:00:57]protocol is kg_v1.0 [10:00:57]action value=close_receipt [10:00:57]process_action close_receipt [10:00:57]cmd_close_receipt [10:00:57]MH_GetDate [10:00:57]Write to MH i2c: F0 00 00 1D 53 5F [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: F0 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: F0 09 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: F0 09 00 1D 53 00 6C 0F 1E 67 22 05 6E 64 61 [10:00:57]GetLastDocTimeStamp 1730023263 [10:00:57]current date 1730023276 [10:00:57]FM_GetShiftState [10:00:57]SAM_PROTO_GetShiftState [10:00:57]wFMCommunicate request_size=4 [10:00:57]MH_SAM_APDU [10:00:57]CAPDU: 80 13 01 00 [10:00:57]Write to MH i2c: E2 08 00 1E 53 80 13 01 00 00 00 00 00 EE [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:57]Read from MH i2c: E2 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 0E 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: E2 0E 00 1E 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2F [10:00:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:00:57]wFMCommunicate OK [10:00:57]SAM_PROTO_GetShiftState done [10:00:57]FM_GetShiftState done [10:00:57]opened in 1729989159 [10:00:57]opened+sec_in_day 1730075559 [10:00:57]quantity*price = 20003 [10:00:57]sum+1 = 20004 [10:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 70 27.10.2024 10:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192038 ФПД: 83428359675074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100116&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192038&fm=83428359675074&tin=02508201610067®Number=0000000000091776&sum=20000 [10:00:58]StoreToDocumentArchive [10:00:58]shift 542 fd 192038 [10:00:58]save to /storage/0542/doc_00192038 [10:00:58]save last doc name /storage/0542/doc_00192038 to /storage/kkm_last_doc_name [10:00:58]save OK [10:00:58]Clear old archive folders... [10:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:58]tlvbuf is 016BC5C0 [10:00:58]SAM_PROTO_ClearQueue [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 09 00 00 [10:00:58]Write to MH i2c: E2 08 00 2B 53 80 09 00 00 00 00 00 00 F0 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 2B 53 00 90 00 F2 [10:00:58]RAPDU: 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_ClearQueue done [10:00:58]KKMCreateOFDPacket [10:00:58]OFDProtocolAddRootSTLVToBuf [10:00:58]FM_MakeSignedData [10:00:58]FM_MakeSignedData [10:00:58]SAM_PROTO_SignData [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 0D 01 02 [10:00:58]Write to MH i2c: E2 08 00 2C 53 80 0D 01 02 00 00 00 00 F8 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 2C 53 00 90 00 F3 [10:00:58]RAPDU: 90 00 [10:00:58]wFMCommunicate OK [10:00:58]wFMCommunicate request_size=255 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 6C 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EE 02 00 35 04 06 00 4B [10:00:58]Write to MH i2c: E2 02 01 2D 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 6C 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EE 02 00 35 04 06 00 4B 00 00 15 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 2D 53 00 90 00 F4 [10:00:58]RAPDU: 90 00 [10:00:58]wFMCommunicate OK [10:00:58]wFMCommunicate request_size=10 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 0D 02 02 05 E0 AD BE 1C C2 [10:00:58]Write to MH i2c: E2 0D 00 2E 53 80 0D 02 02 05 00 E0 AD BE 1C C2 00 00 2E [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 03 00 2E 53 00 90 00 F5 [10:00:58]RAPDU: 90 00 [10:00:58]wFMCommunicate OK [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 0D 03 02 [10:00:58]Write to MH i2c: E2 08 00 2F 53 80 0D 03 02 00 00 00 00 FD [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:59]Read from MH i2c: E2 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: E2 0B 00 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: E2 0B 00 2F 53 00 A7 75 DC FA E9 ED A5 BE 90 00 29 [10:00:59]RAPDU: A7 75 DC FA E9 ED A5 BE 90 00 [10:00:59]wFMCommunicate OK [10:00:59]SAM_PROTO_SignData done [10:00:59]FM_MakeSignedData done [10:00:59]CreateOFDProtocolMessage [10:00:59]wFMCommunicate request_size=4 [10:00:59]MH_SAM_APDU [10:00:59]CAPDU: 80 11 00 00 [10:00:59]Write to MH i2c: E2 08 00 30 53 80 11 00 00 00 00 00 00 FD [10:00:59]Write i2c OK [10:00:59]MH_I2C_Read... [10:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:59]Read from MH i2c: E2 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: E2 17 00 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: E2 17 00 30 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [10:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:00:59]wFMCommunicate OK [10:00:59]CreateOFDProtocolMessage done [10:00:59]OFDSenderStorePacket 192038 [10:00:59]StoreOFDPacket docnum=192038 [10:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 4F 07 01 3C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 6C 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EE 02 00 35 04 06 00 4B E0 AD BE 1C C2 A7 75 DC FA E9 ED A5 BE [10:00:59]CheckFolder [10:00:59]dirname=/storage/ofd_packets [10:00:59]CheckFolder done [10:00:59]ProducePacketName [10:00:59]name=ofd_packets/00192038 [10:00:59]NVStorageSaveData ofd_packets/00192038 [10:00:59]File name is /storage/ofd_packets/00192038 [10:00:59]Write 301 bytes [10:00:59]NVStorageSaveData done [10:00:59]OFDSenderStorePacket done [10:00:59]KKMCreateOFDPacket done [10:00:59]NVStorageSaveData kkm_last_timestamp [10:00:59]File name is /storage/kkm_last_timestamp [10:00:59]Write 4 bytes [10:00:59]NVStorageSaveData done [10:00:59]ExternCall_PrintAddStr [10:00:59]wPrintStart [10:00:59]Write to MH i2c: 01 00 00 31 53 84 [10:00:59]Write i2c OK [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 07 00 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 07 00 31 53 00 00 00 00 00 FF 0F 99 [10:00:59]RasterBufferAndPrint [10:00:59]line Счет N : (1)31348 [10:00:59]line ИНН: 02508201610067 [10:00:59]line Контрольно-Кассовый Чек [10:00:59]line ПРОДАЖА [10:00:59]line ТРК (МРК, ГНК) : 21 [10:00:59]line Товар: 2710124130 [10:00:59]line Аи-92-К-5 [10:00:59]line 2.990 * 66.90 [10:00:59]line = 200.03 [10:00:59]line НДС 12% НСП 1% [10:00:59]line > о реализуемом товаре [10:00:59]line ОКРУГЛЕНИЕ: -0.03 [10:00:59]line ИТОГО: 200.00 [10:00:59]line Внесено: 200.00 [10:00:59]line СДАЧА: 0.00 [10:00:59]line НСП 1% : 1.77 [10:00:59]line НДС 12% : 21.24 [10:00:59]line Наличными: 200.00 [10:00:59]line Безнал.: 0.00 [10:00:59]line Место: АЗС № 170 "Партнер Нефть" [10:00:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:00:59]line СНО: Общий режим [10:00:59]line Чек 70 27.10.2024 10:01 [10:00:59]line Смена: 542 ФФД: 1.0 [10:00:59]line ЗНМ: 0300000110 [10:00:59]line РНМ: 0000000000091776 [10:00:59]line Версия ККМ: 001 [10:00:59]line ФМ: 0000000000871754 [10:00:59]line ФД: 192038 [10:00:59]line ФПД: 83428359675074 [10:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100116&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192038&fm=83428359675074&tin=02508201610067®Number=0000000000091776&sum=20000 [10:00:59]OFD Sender: Processing packet 192038 [packets to send 75, broken 74] [10:00:59]ProducePacketName [10:00:59]name=ofd_packets/00192038 [10:00:59]OFD Sender: To server: pG, [10:00:59]CommunicateWithHost lk.salyk.kg:30040 [10:00:59]ConnectInit lk.salyk.kg [10:00:59]written 0, free lines is 4095 [10:00:59]Connected sock=8 [10:00:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 4F 07 01 3C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 6C 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EE 02 00 35 04 06 00 4B E0 AD BE 1C C2 A7 75 DC FA E9 ED A5 BE [10:00:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 4D 47 00 F8 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EE 02 00 F4 03 04 00 34 B4 1D 67 B6 04 01 00 00 EB 4C B6 28 93 63 64 DF [10:00:59]CommunicateWithHost err = 0 [10:00:59]CheckOFDResponse [10:00:59]1017 (14) - 77093643461234 [10:00:59]1041 (16) - 0000000000871754 [10:00:59]1040 (4) - 192038 [10:00:59]1012 (4) - 27.10.2024 03:32 [10:00:59]1206 (1) - 0 [10:00:59]OFD Sender: Remove packet 192038 [10:00:59]ProducePacketName [10:00:59]name=ofd_packets/00192038 [10:00:59]NVStorageDeleteData [10:00:59]Write to MH i2c: 01 00 00 5C 53 AF [10:00:59]Write i2c OK [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 07 00 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: 01 07 00 5C 53 00 00 00 00 00 A7 0C 69 [10:00:59]RasterBufferAndPrint [10:00:59]line [10:00:59]line [10:00:59]line [10:00:59]line [10:00:59]line [10:00:59]written 0, free lines is 3248 [10:00:59]MH_Cut [10:00:59]Write to MH i2c: D1 01 00 63 53 01 88 [10:00:59]Write i2c OK [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: D1 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: D1 01 00 [10:00:59]MH_I2C_Read... [10:00:59]Read from MH i2c: D1 01 00 63 53 00 87 [10:00:59]Write to MH i2c: 01 00 00 64 53 B7 [10:00:59]Write i2c OK [10:00:59]MH_I2C_Read... [10:01:00]OFD Sender: No OFD packet to send [10:01:00]*** Cut start [10:01:00]*** Partial cut [10:01:00]*** CUTSNS_PIN = 1 [10:01:00]*** CUTSNS_PIN = 0 [10:01:01]*** Brake cut motor [10:01:01]Read from MH i2c: 01 [10:01:01]MH_I2C_Read... [10:01:01]*** Stop cut motor [10:01:01]*** Cut end [10:01:01]Read from MH i2c: 01 07 00 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: 01 07 00 64 53 00 00 00 00 00 FF 0F CC [10:01:01]process_action close_receipt done [10:01:01]requested_data is exist [10:01:01]produce_requested_data [10:01:01]requested_item fm.sn is exist - process it [10:01:01]wFMCommunicate request_size=4 [10:01:01]MH_SAM_APDU [10:01:01]CAPDU: 80 11 00 00 [10:01:01]Write to MH i2c: E2 08 00 65 53 80 11 00 00 00 00 00 00 32 [10:01:01]Write i2c OK [10:01:01]MH_I2C_Read... [10:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:01]Read from MH i2c: E2 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 17 00 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 17 00 65 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [10:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:01:01]wFMCommunicate OK [10:01:01]requested_item fd.num is exist - process it [10:01:01]SAM_PROTO_GetFieldsCounters [10:01:01]wFMCommunicate request_size=4 [10:01:01]MH_SAM_APDU [10:01:01]CAPDU: 80 13 00 00 [10:01:01]Write to MH i2c: E2 08 00 66 53 80 13 00 00 00 00 00 00 35 [10:01:01]Write i2c OK [10:01:01]MH_I2C_Read... [10:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:01]Read from MH i2c: E2 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 62 00 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 62 00 66 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:01]wFMCommunicate OK [10:01:01]SAM_PROTO_GetFieldsCounters done [10:01:01]requested_item shift.num is exist - process it [10:01:01]requested_item shift.opened is exist - process it [10:01:01]req_shift_opened [10:01:01]FM_GetShiftState [10:01:01]SAM_PROTO_GetShiftState [10:01:01]wFMCommunicate request_size=4 [10:01:01]MH_SAM_APDU [10:01:01]CAPDU: 80 13 01 00 [10:01:01]Write to MH i2c: E2 08 00 67 53 80 13 01 00 00 00 00 00 37 [10:01:01]Write i2c OK [10:01:01]MH_I2C_Read... [10:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:01]Read from MH i2c: E2 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 0E 00 [10:01:01]MH_I2C_Read... [10:01:01]Read from MH i2c: E2 0E 00 67 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 78 [10:01:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:01:01]wFMCommunicate OK [10:01:01]SAM_PROTO_GetShiftState done [10:01:01]FM_GetShiftState done [10:01:01]req_shift_opened done [10:01:01]requested_item shift.open_date is exist - process it [10:01:01]req_shift_open_date [10:01:01]req_shift_open_date done [10:01:01]produce_requested_data done [10:01:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192038,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:01:01]process_action_free close_receipt [10:01:01]json_value_free [10:01:01]json_value_free done [10:01:01]process_json_proto returns [10:01:01]Send response to host [10:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192038,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:01:01]free response buf [10:01:01]execute_script done [10:01:01]execute_script returns [10:01:01]free content buf [10:01:01]Sock 5.Close socket [10:01:01]Sock 5.Thread stoped [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:42]accept exits with 6 [10:02:42]New connection [10:02:42]New thread 3066961252 created [10:02:42]Thread 3066817892 joined [10:02:42]Waiting for new connection... [10:02:42] Sock 6.Parse request [10:02:42]Sock 6.Check first char [10:02:42]Sock 6.First char is OK [10:02:42]request: POST /json_proto HTTP/1.0 [10:02:42]Method: POST [10:02:42]URL: /json_proto [10:02:42]Method is POST - this is cgi request [10:02:42]url: /json_proto [10:02:42]query_string will be loaded in cgi processing [10:02:42]execute_cgi json_proto POST (null) [10:02:42]execute_cgi path=json_proto method=POST [10:02:42]POST find Content-Length [10:02:42]Host: 172.17.63.131:8080 [10:02:42]Content-Length: 862 [10:02:42]Content-Type: application/json [10:02:42] [10:02:42]POST finish read [10:02:42]Found Content-Length = 862 [10:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:42]execute_script... [10:02: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)31349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:42]POST & json_proto [10:02:42]process_json_proto [10:02:42]json parsed OK: [10:02:42]protocol is kg_v1.0 [10:02:42]action value=close_receipt [10:02:42]process_action close_receipt [10:02:42]cmd_close_receipt [10:02:42]MH_GetDate [10:02:42]Write to MH i2c: F0 00 00 68 53 AA [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: F0 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: F0 09 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: F0 09 00 68 53 00 D5 0F 1E 67 22 05 6E 64 15 [10:02:42]GetLastDocTimeStamp 1730023276 [10:02:42]current date 1730023381 [10:02:42]FM_GetShiftState [10:02:42]SAM_PROTO_GetShiftState [10:02:42]wFMCommunicate request_size=4 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 13 01 00 [10:02:42]Write to MH i2c: E2 08 00 69 53 80 13 01 00 00 00 00 00 39 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 0E 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 0E 00 69 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7A [10:02:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:02:42]wFMCommunicate OK [10:02:42]SAM_PROTO_GetShiftState done [10:02:42]FM_GetShiftState done [10:02:42]opened in 1729989159 [10:02:42]opened+sec_in_day 1730075559 [10:02:42]quantity*price = 40006 [10:02:42]sum+1 = 40007 [10:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 71 27.10.2024 10:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192039 ФПД: 51594522300866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192039&fm=51594522300866&tin=02508201610067®Number=0000000000091776&sum=40006 [10:02:43]StoreToDocumentArchive [10:02:43]shift 542 fd 192039 [10:02:43]save to /storage/0542/doc_00192039 [10:02:43]save last doc name /storage/0542/doc_00192039 to /storage/kkm_last_doc_name [10:02:43]save OK [10:02:43]Clear old archive folders... [10:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:43]tlvbuf is 018CAA90 [10:02:43]SAM_PROTO_ClearQueue [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 09 00 00 [10:02:43]Write to MH i2c: E2 08 00 76 53 80 09 00 00 00 00 00 00 3B [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 76 53 00 90 00 3D [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_ClearQueue done [10:02:43]KKMCreateOFDPacket [10:02:43]OFDProtocolAddRootSTLVToBuf [10:02:43]FM_MakeSignedData [10:02:43]FM_MakeSignedData [10:02:43]SAM_PROTO_SignData [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 01 02 [10:02:43]Write to MH i2c: E2 08 00 77 53 80 0D 01 02 00 00 00 00 43 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 77 53 00 90 00 3E [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=255 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EE 02 00 35 04 06 00 2E [10:02:43]Write to MH i2c: E2 02 01 78 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EE 02 00 35 04 06 00 2E 00 00 C7 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 78 53 00 90 00 3F [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=10 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 02 02 05 EC C9 2C 91 C2 [10:02:43]Write to MH i2c: E2 0D 00 79 53 80 0D 02 02 05 00 EC C9 2C 91 C2 00 00 84 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 79 53 00 90 00 40 [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 03 02 [10:02:43]Write to MH i2c: E2 08 00 7A 53 80 0D 03 02 00 00 00 00 48 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0B 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0B 00 7A 53 00 11 33 09 C9 6D EC 30 38 90 00 20 [10:02:43]RAPDU: 11 33 09 C9 6D EC 30 38 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_SignData done [10:02:43]FM_MakeSignedData done [10:02:43]CreateOFDProtocolMessage [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 11 00 00 [10:02:43]Write to MH i2c: E2 08 00 7B 53 80 11 00 00 00 00 00 00 48 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 7B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [10:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:43]wFMCommunicate OK [10:02:43]CreateOFDProtocolMessage done [10:02:43]OFDSenderStorePacket 192039 [10:02:43]StoreOFDPacket docnum=192039 [10:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 88 07 01 DE 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EE 02 00 35 04 06 00 2E EC C9 2C 91 C2 11 33 09 C9 6D EC 30 38 [10:02:43]CheckFolder [10:02:43]dirname=/storage/ofd_packets [10:02:43]CheckFolder done [10:02:43]ProducePacketName [10:02:43]name=ofd_packets/00192039 [10:02:43]NVStorageSaveData ofd_packets/00192039 [10:02:43]File name is /storage/ofd_packets/00192039 [10:02:43]Write 301 bytes [10:02:43]NVStorageSaveData done [10:02:43]OFDSenderStorePacket done [10:02:43]KKMCreateOFDPacket done [10:02:43]NVStorageSaveData kkm_last_timestamp [10:02:43]File name is /storage/kkm_last_timestamp [10:02:43]Write 4 bytes [10:02:43]NVStorageSaveData done [10:02:43]ExternCall_PrintAddStr [10:02:43]wPrintStart [10:02:43]Write to MH i2c: 01 00 00 7C 53 CF [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 7C 53 00 00 00 00 00 FF 0F E4 [10:02:43]RasterBufferAndPrint [10:02:43]line Счет N : (1)31349 [10:02:43]line ИНН: 02508201610067 [10:02:43]line Контрольно-Кассовый Чек [10:02:43]line ПРОДАЖА [10:02:43]line ТРК (МРК, ГНК) : 12 [10:02:43]line Товар: 2710124130 [10:02:43]line Аи-92-К-5 [10:02:43]line 5.980 * 66.90 [10:02:43]line = 400.06 [10:02:43]line НДС 12% НСП 1% [10:02:43]line > о реализуемом товаре [10:02:43]line ИТОГО: 400.06 [10:02:43]line НСП 1% : 3.54 [10:02:43]line НДС 12% : 42.48 [10:02:43]line Наличными: 0.00 [10:02:43]line Безнал.: 400.06 [10:02:43]line Место: АЗС № 170 "Партнер Нефть" [10:02:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:02:43]line СНО: Общий режим [10:02:43]line Чек 71 27.10.2024 10:03 [10:02:43]line Смена: 542 ФФД: 1.0 [10:02:43]line ЗНМ: 0300000110 [10:02:43]line РНМ: 0000000000091776 [10:02:43]line Версия ККМ: 001 [10:02:43]line Платежная система: Кыргызкоммерцбанк [10:02:43]line ФМ: 0000000000871754 [10:02:43]line ФД: 192039 [10:02:43]line ФПД: 51594522300866 [10:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192039&fm=51594522300866&tin=02508201610067®Number=0000000000091776&sum=40006 [10:02:44]written 0, free lines is 4095 [10:02:44]OFD Sender: Processing packet 192039 [packets to send 75, broken 74] [10:02:44]ProducePacketName [10:02:44]name=ofd_packets/00192039 [10:02:44]OFD Sender: To server: pG, [10:02:44]CommunicateWithHost lk.salyk.kg:30040 [10:02:44]ConnectInit lk.salyk.kg [10:02:44]Connected sock=8 [10:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 88 07 01 DE 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EE 02 00 35 04 06 00 2E EC C9 2C 91 C2 11 33 09 C9 6D EC 30 38 [10:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A4 4E 47 00 66 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EE 02 00 F4 03 04 00 9D B4 1D 67 B6 04 01 00 00 8C 19 D5 79 93 2B 4B 78 [10:02:44]CommunicateWithHost err = 0 [10:02:44]CheckOFDResponse [10:02:44]1017 (14) - 77093643461234 [10:02:44]1041 (16) - 0000000000871754 [10:02:44]1040 (4) - 192039 [10:02:44]1012 (4) - 27.10.2024 03:33 [10:02:44]1206 (1) - 0 [10:02:44]OFD Sender: Remove packet 192039 [10:02:44]ProducePacketName [10:02:44]name=ofd_packets/00192039 [10:02:44]NVStorageDeleteData [10:02:44]Write to MH i2c: 01 00 00 A6 53 F9 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 A6 53 00 00 00 00 00 C3 0C CF [10:02:44]RasterBufferAndPrint [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]written 0, free lines is 3275 [10:02:44]MH_Cut [10:02:44]Write to MH i2c: D1 01 00 AD 53 01 D2 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 01 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 01 00 AD 53 00 D1 [10:02:44]Write to MH i2c: 01 00 00 AE 53 01 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:45]OFD Sender: No OFD packet to send [10:02:45]*** Cut start [10:02:45]*** Partial cut [10:02:45]*** CUTSNS_PIN = 1 [10:02:45]*** CUTSNS_PIN = 0 [10:02:45]*** Brake cut motor [10:02:46]Read from MH i2c: 01 [10:02:46]MH_I2C_Read... [10:02:46]*** Stop cut motor [10:02:46]*** Cut end [10:02:46]Read from MH i2c: 01 07 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 07 00 AE 53 00 00 00 00 00 FF 0F 16 [10:02:46]process_action close_receipt done [10:02:46]requested_data is exist [10:02:46]produce_requested_data [10:02:46]requested_item fm.sn is exist - process it [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 11 00 00 [10:02:46]Write to MH i2c: E2 08 00 AF 53 80 11 00 00 00 00 00 00 7C [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 17 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 17 00 AF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [10:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:46]wFMCommunicate OK [10:02:46]requested_item fd.num is exist - process it [10:02:46]SAM_PROTO_GetFieldsCounters [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 13 00 00 [10:02:46]Write to MH i2c: E2 08 00 B0 53 80 13 00 00 00 00 00 00 7F [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 62 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 62 00 B0 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_GetFieldsCounters done [10:02:46]requested_item shift.num is exist - process it [10:02:46]requested_item shift.opened is exist - process it [10:02:46]req_shift_opened [10:02:46]FM_GetShiftState [10:02:46]SAM_PROTO_GetShiftState [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 13 01 00 [10:02:46]Write to MH i2c: E2 08 00 B1 53 80 13 01 00 00 00 00 00 81 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 0E 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 0E 00 B1 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C2 [10:02:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_GetShiftState done [10:02:46]FM_GetShiftState done [10:02:46]req_shift_opened done [10:02:46]requested_item shift.open_date is exist - process it [10:02:46]req_shift_open_date [10:02:46]req_shift_open_date done [10:02:46]produce_requested_data done [10:02:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192039,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:02:46]process_action_free close_receipt [10:02:46]json_value_free [10:02:46]json_value_free done [10:02:46]process_json_proto returns [10:02:46]Send response to host [10:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192039,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:02:46]free response buf [10:02:46]execute_script done [10:02:46]execute_script returns [10:02:46]free content buf [10:02:46]Sock 6.Close socket [10:02:46]Sock 6.Thread stoped [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:00]accept exits with 5 [10:04:00]New connection [10:04:00]New thread 3066817892 created [10:04:00]Thread 3066961252 joined [10:04:00]Waiting for new connection... [10:04:00] Sock 5.Parse request [10:04:00]Sock 5.Check first char [10:04:00]Sock 5.First char is OK [10:04:00]request: POST /json_proto HTTP/1.0 [10:04:00]Method: POST [10:04:00]URL: /json_proto [10:04:00]Method is POST - this is cgi request [10:04:00]url: /json_proto [10:04:00]query_string will be loaded in cgi processing [10:04:00]execute_cgi json_proto POST (null) [10:04:00]execute_cgi path=json_proto method=POST [10:04:00]POST find Content-Length [10:04:00]Host: 172.17.63.131:8080 [10:04:00]Content-Length: 681 [10:04:00]Content-Type: application/json [10:04:00] [10:04:00]POST finish read [10:04:00]Found Content-Length = 681 [10:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:00]execute_script... [10:04: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)31350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:00]POST & json_proto [10:04:00]process_json_proto [10:04:00]json parsed OK: [10:04:00]protocol is kg_v1.0 [10:04:00]action value=close_receipt [10:04:00]process_action close_receipt [10:04:00]cmd_close_receipt [10:04:00]MH_GetDate [10:04:00]Write to MH i2c: F0 00 00 B2 53 F4 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: F0 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: F0 09 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: F0 09 00 B2 53 00 23 10 1E 67 22 05 6E 64 AE [10:04:00]GetLastDocTimeStamp 1730023381 [10:04:00]current date 1730023459 [10:04:00]FM_GetShiftState [10:04:00]SAM_PROTO_GetShiftState [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 01 00 [10:04:00]Write to MH i2c: E2 08 00 B3 53 80 13 01 00 00 00 00 00 83 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 B3 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C4 [10:04:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetShiftState done [10:04:00]FM_GetShiftState done [10:04:00]opened in 1729989159 [10:04:00]opened+sec_in_day 1730075559 [10:04:00]quantity*price = 100015 [10:04:00]sum+1 = 100017 [10:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 72 27.10.2024 10:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192040 ФПД: 110013822549548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192040&fm=110013822549548&tin=02508201610067®Number=0000000000091776&sum=100000 [10:04:01]StoreToDocumentArchive [10:04:01]shift 542 fd 192040 [10:04:01]save to /storage/0542/doc_00192040 [10:04:01]save last doc name /storage/0542/doc_00192040 to /storage/kkm_last_doc_name [10:04:01]save OK [10:04:01]Clear old archive folders... [10:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:01]tlvbuf is 01A50AB0 [10:04:01]SAM_PROTO_ClearQueue [10:04:01]wFMCommunicate request_size=4 [10:04:01]MH_SAM_APDU [10:04:01]CAPDU: 80 09 00 00 [10:04:01]Write to MH i2c: E2 08 00 C0 53 80 09 00 00 00 00 00 00 85 [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:01]Read from MH i2c: E2 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: E2 03 00 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: E2 03 00 C0 53 00 90 00 87 [10:04:01]RAPDU: 90 00 [10:04:01]wFMCommunicate OK [10:04:01]SAM_PROTO_ClearQueue done [10:04:01]KKMCreateOFDPacket [10:04:01]OFDProtocolAddRootSTLVToBuf [10:04:01]FM_MakeSignedData [10:04:01]FM_MakeSignedData [10:04:01]SAM_PROTO_SignData [10:04:01]wFMCommunicate request_size=4 [10:04:01]MH_SAM_APDU [10:04:01]CAPDU: 80 0D 01 02 [10:04:01]Write to MH i2c: E2 08 00 C1 53 80 0D 01 02 00 00 00 00 8D [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:01]Read from MH i2c: E2 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: E2 03 00 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: E2 03 00 C1 53 00 90 00 88 [10:04:01]RAPDU: 90 00 [10:04:01]wFMCommunicate OK [10:04:01]wFMCommunicate request_size=255 [10:04:01]MH_SAM_APDU [10:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EE 02 00 35 04 06 00 64 [10:04:01]Write to MH i2c: E2 02 01 C2 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EE 02 00 35 04 06 00 64 00 00 B8 [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 03 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 03 00 C2 53 00 90 00 89 [10:04:02]RAPDU: 90 00 [10:04:02]wFMCommunicate OK [10:04:02]wFMCommunicate request_size=10 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 0D 02 02 05 0E 96 D0 3E 2C [10:04:02]Write to MH i2c: E2 0D 00 C3 53 80 0D 02 02 05 00 0E 96 D0 3E 2C 00 00 78 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 03 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 03 00 C3 53 00 90 00 8A [10:04:02]RAPDU: 90 00 [10:04:02]wFMCommunicate OK [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 0D 03 02 [10:04:02]Write to MH i2c: E2 08 00 C4 53 80 0D 03 02 00 00 00 00 92 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0B 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0B 00 C4 53 00 19 D9 B9 A1 EE 7B CB 30 90 00 43 [10:04:02]RAPDU: 19 D9 B9 A1 EE 7B CB 30 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_SignData done [10:04:02]FM_MakeSignedData done [10:04:02]CreateOFDProtocolMessage [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 11 00 00 [10:04:02]Write to MH i2c: E2 08 00 C5 53 80 11 00 00 00 00 00 00 92 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 C5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [10:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:02]wFMCommunicate OK [10:04:02]CreateOFDProtocolMessage done [10:04:02]OFDSenderStorePacket 192040 [10:04:02]StoreOFDPacket docnum=192040 [10:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 17 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EE 02 00 35 04 06 00 64 0E 96 D0 3E 2C 19 D9 B9 A1 EE 7B CB 30 [10:04:02]CheckFolder [10:04:02]dirname=/storage/ofd_packets [10:04:02]CheckFolder done [10:04:02]ProducePacketName [10:04:02]name=ofd_packets/00192040 [10:04:02]NVStorageSaveData ofd_packets/00192040 [10:04:02]File name is /storage/ofd_packets/00192040 [10:04:02]Write 301 bytes [10:04:02]NVStorageSaveData done [10:04:02]OFDSenderStorePacket done [10:04:02]KKMCreateOFDPacket done [10:04:02]NVStorageSaveData kkm_last_timestamp [10:04:02]File name is /storage/kkm_last_timestamp [10:04:02]Write 4 bytes [10:04:02]NVStorageSaveData done [10:04:02]ExternCall_PrintAddStr [10:04:02]wPrintStart [10:04:02]Write to MH i2c: 01 00 00 C6 53 19 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 C6 53 00 00 00 00 00 FF 0F 2E [10:04:02]RasterBufferAndPrint [10:04:02]line Счет N : (1)31350 [10:04:02]line ИНН: 02508201610067 [10:04:02]line Контрольно-Кассовый Чек [10:04:02]line ПРОДАЖА [10:04:02]line ТРК (МРК, ГНК) : 21 [10:04:02]line Товар: 2710124130 [10:04:02]line Аи-92-К-5 [10:04:02]line 14.950 * 66.90 [10:04:02]line = 1000.16 [10:04:02]line НДС 12% НСП 1% [10:04:02]line > о реализуемом товаре [10:04:02]line ОКРУГЛЕНИЕ: -0.16 [10:04:02]line ИТОГО: 1000.00 [10:04:02]line Внесено: 1000.00 [10:04:02]line СДАЧА: 0.00 [10:04:02]line НСП 1% : 8.85 [10:04:02]line НДС 12% : 106.21 [10:04:02]line Наличными: 1000.00 [10:04:02]line Безнал.: 0.00 [10:04:02]line Место: АЗС № 170 "Партнер Нефть" [10:04:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:04:02]line СНО: Общий режим [10:04:02]line Чек 72 27.10.2024 10:04 [10:04:02]line Смена: 542 ФФД: 1.0 [10:04:02]line ЗНМ: 0300000110 [10:04:02]line РНМ: 0000000000091776 [10:04:02]line Версия ККМ: 001 [10:04:02]line ФМ: 0000000000871754 [10:04:02]line ФД: 192040 [10:04:02]line ФПД: 110013822549548 [10:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192040&fm=110013822549548&tin=02508201610067®Number=0000000000091776&sum=100000 [10:04:02]OFD Sender: Processing packet 192040 [packets to send 75, broken 74] [10:04:02]ProducePacketName [10:04:02]name=ofd_packets/00192040 [10:04:02]OFD Sender: To server: pG, [10:04:02]CommunicateWithHost lk.salyk.kg:30040 [10:04:02]ConnectInit lk.salyk.kg [10:04:02]written 0, free lines is 4095 [10:04:02]Connected sock=8 [10:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 17 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EE 02 00 35 04 06 00 64 0E 96 D0 3E 2C 19 D9 B9 A1 EE 7B CB 30 [10:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F 2D 47 00 5F 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EE 02 00 F4 03 04 00 EC B4 1D 67 B6 04 01 00 00 31 C5 D9 A7 81 5F F4 85 [10:04:02]CommunicateWithHost err = 0 [10:04:02]CheckOFDResponse [10:04:02]1017 (14) - 77093643461234 [10:04:02]1041 (16) - 0000000000871754 [10:04:02]1040 (4) - 192040 [10:04:02]1012 (4) - 27.10.2024 03:35 [10:04:02]1206 (1) - 0 [10:04:02]OFD Sender: Remove packet 192040 [10:04:02]ProducePacketName [10:04:02]name=ofd_packets/00192040 [10:04:02]NVStorageDeleteData [10:04:02]Write to MH i2c: 01 00 00 F1 53 44 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 F1 53 00 00 00 00 00 A9 0C 00 [10:04:02]RasterBufferAndPrint [10:04:02]line [10:04:02]line [10:04:02]line [10:04:02]line [10:04:02]line [10:04:02]written 0, free lines is 3246 [10:04:03]MH_Cut [10:04:03]Write to MH i2c: D1 01 00 F8 53 01 1D [10:04:03]Write i2c OK [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: D1 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: D1 01 00 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: D1 01 00 F8 53 00 1C [10:04:03]Write to MH i2c: 01 00 00 F9 53 4C [10:04:03]Write i2c OK [10:04:03]MH_I2C_Read... [10:04:03]OFD Sender: No OFD packet to send [10:04:03]*** Cut start [10:04:03]*** Partial cut [10:04:03]*** CUTSNS_PIN = 1 [10:04:03]*** CUTSNS_PIN = 0 [10:04:04]*** Brake cut motor [10:04:04]Read from MH i2c: 01 [10:04:04]MH_I2C_Read... [10:04:04]*** Stop cut motor [10:04:04]*** Cut end [10:04:04]Read from MH i2c: 01 07 00 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: 01 07 00 F9 53 00 00 00 00 00 FF 0F 61 [10:04:04]process_action close_receipt done [10:04:04]requested_data is exist [10:04:04]produce_requested_data [10:04:04]requested_item fm.sn is exist - process it [10:04:04]wFMCommunicate request_size=4 [10:04:04]MH_SAM_APDU [10:04:04]CAPDU: 80 11 00 00 [10:04:04]Write to MH i2c: E2 08 00 FA 53 80 11 00 00 00 00 00 00 C7 [10:04:04]Write i2c OK [10:04:04]MH_I2C_Read... [10:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:04]Read from MH i2c: E2 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 17 00 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 17 00 FA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [10:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:04]wFMCommunicate OK [10:04:04]requested_item fd.num is exist - process it [10:04:04]SAM_PROTO_GetFieldsCounters [10:04:04]wFMCommunicate request_size=4 [10:04:04]MH_SAM_APDU [10:04:04]CAPDU: 80 13 00 00 [10:04:04]Write to MH i2c: E2 08 00 FB 53 80 13 00 00 00 00 00 00 CA [10:04:04]Write i2c OK [10:04:04]MH_I2C_Read... [10:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:04]Read from MH i2c: E2 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 62 00 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 62 00 FB 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [10:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:04]wFMCommunicate OK [10:04:04]SAM_PROTO_GetFieldsCounters done [10:04:04]requested_item shift.num is exist - process it [10:04:04]requested_item shift.opened is exist - process it [10:04:04]req_shift_opened [10:04:04]FM_GetShiftState [10:04:04]SAM_PROTO_GetShiftState [10:04:04]wFMCommunicate request_size=4 [10:04:04]MH_SAM_APDU [10:04:04]CAPDU: 80 13 01 00 [10:04:04]Write to MH i2c: E2 08 00 FC 53 80 13 01 00 00 00 00 00 CC [10:04:04]Write i2c OK [10:04:04]MH_I2C_Read... [10:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:04]Read from MH i2c: E2 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 0E 00 [10:04:04]MH_I2C_Read... [10:04:04]Read from MH i2c: E2 0E 00 FC 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0D [10:04:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:04:04]wFMCommunicate OK [10:04:04]SAM_PROTO_GetShiftState done [10:04:04]FM_GetShiftState done [10:04:04]req_shift_opened done [10:04:04]requested_item shift.open_date is exist - process it [10:04:04]req_shift_open_date [10:04:04]req_shift_open_date done [10:04:04]produce_requested_data done [10:04:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192040,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:04:04]process_action_free close_receipt [10:04:04]json_value_free [10:04:04]json_value_free done [10:04:04]process_json_proto returns [10:04:04]Send response to host [10:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192040,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:04:04]free response buf [10:04:04]execute_script done [10:04:04]execute_script returns [10:04:04]free content buf [10:04:04]Sock 5.Close socket [10:04:04]Sock 5.Thread stoped [10:04:08]OFD Sender: No OFD packet to send [10:04:08]accept exits with 6 [10:04:08]New connection [10:04:08]New thread 3066961252 created [10:04:08]Thread 3066817892 joined [10:04:08]Waiting for new connection... [10:04:08] Sock 6.Parse request [10:04:08]Sock 6.Check first char [10:04:08]Sock 6.First char is OK [10:04:08]request: POST /json_proto HTTP/1.0 [10:04:08]Method: POST [10:04:08]URL: /json_proto [10:04:08]Method is POST - this is cgi request [10:04:08]url: /json_proto [10:04:08]query_string will be loaded in cgi processing [10:04:08]execute_cgi json_proto POST (null) [10:04:08]execute_cgi path=json_proto method=POST [10:04:08]POST find Content-Length [10:04:08]Host: 172.17.63.131:8080 [10:04:08]Content-Length: 676 [10:04:08]Content-Type: application/json [10:04:08] [10:04:08]POST finish read [10:04:08]Found Content-Length = 676 [10:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:08]execute_script... [10:04: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)31351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:08]POST & json_proto [10:04:08]process_json_proto [10:04:08]json parsed OK: [10:04:08]protocol is kg_v1.0 [10:04:08]action value=close_receipt [10:04:08]process_action close_receipt [10:04:08]cmd_close_receipt [10:04:08]MH_GetDate [10:04:08]Write to MH i2c: F0 00 00 FD 53 3F [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: F0 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: F0 09 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: F0 09 00 FD 53 00 2C 10 1E 67 22 05 6E 64 02 [10:04:08]GetLastDocTimeStamp 1730023460 [10:04:08]current date 1730023468 [10:04:08]FM_GetShiftState [10:04:08]SAM_PROTO_GetShiftState [10:04:08]wFMCommunicate request_size=4 [10:04:08]MH_SAM_APDU [10:04:08]CAPDU: 80 13 01 00 [10:04:08]Write to MH i2c: E2 08 00 FE 53 80 13 01 00 00 00 00 00 CE [10:04:08]Write i2c OK [10:04:08]MH_I2C_Read... [10:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:08]Read from MH i2c: E2 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 0E 00 [10:04:08]MH_I2C_Read... [10:04:08]Read from MH i2c: E2 0E 00 FE 53 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0F [10:04:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:04:08]wFMCommunicate OK [10:04:08]SAM_PROTO_GetShiftState done [10:04:08]FM_GetShiftState done [10:04:08]opened in 1729989159 [10:04:08]opened+sec_in_day 1730075559 [10:04:08]quantity*price = 40006 [10:04:08]sum+1 = 40007 [10:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 73 27.10.2024 10:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192041 ФПД: 229963252824758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100428&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192041&fm=229963252824758&tin=02508201610067®Number=0000000000091776&sum=40000 [10:04:10]StoreToDocumentArchive [10:04:10]shift 542 fd 192041 [10:04:10]save to /storage/0542/doc_00192041 [10:04:10]save last doc name /storage/0542/doc_00192041 to /storage/kkm_last_doc_name [10:04:10]save OK [10:04:10]Clear old archive folders... [10:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:10]tlvbuf is 01C274E0 [10:04:10]SAM_PROTO_ClearQueue [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 09 00 00 [10:04:10]Write to MH i2c: E2 08 00 0B 54 80 09 00 00 00 00 00 00 D1 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 0B 54 00 90 00 D3 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_ClearQueue done [10:04:10]KKMCreateOFDPacket [10:04:10]OFDProtocolAddRootSTLVToBuf [10:04:10]FM_MakeSignedData [10:04:10]FM_MakeSignedData [10:04:10]SAM_PROTO_SignData [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 01 02 [10:04:10]Write to MH i2c: E2 08 00 0C 54 80 0D 01 02 00 00 00 00 D9 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 0C 54 00 90 00 D4 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=255 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2C 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EE 02 00 35 04 06 00 D1 [10:04:10]Write to MH i2c: E2 02 01 0D 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2C 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EE 02 00 35 04 06 00 D1 00 00 50 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 0D 54 00 90 00 D5 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=10 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 02 02 05 26 7D FE FA B6 [10:04:10]Write to MH i2c: E2 0D 00 0E 54 80 0D 02 02 05 00 26 7D FE FA B6 00 00 37 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 0E 54 00 90 00 D6 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 03 02 [10:04:10]Write to MH i2c: E2 08 00 0F 54 80 0D 03 02 00 00 00 00 DE [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0B 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0B 00 0F 54 00 FF 50 34 9B 4C 38 77 74 90 00 6C [10:04:10]RAPDU: FF 50 34 9B 4C 38 77 74 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_SignData done [10:04:10]FM_MakeSignedData done [10:04:10]CreateOFDProtocolMessage [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 11 00 00 [10:04:10]Write to MH i2c: E2 08 00 10 54 80 11 00 00 00 00 00 00 DE [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 10 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [10:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:10]wFMCommunicate OK [10:04:10]CreateOFDProtocolMessage done [10:04:10]OFDSenderStorePacket 192041 [10:04:10]StoreOFDPacket docnum=192041 [10:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 73 07 01 A6 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2C 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EE 02 00 35 04 06 00 D1 26 7D FE FA B6 FF 50 34 9B 4C 38 77 74 [10:04:10]CheckFolder [10:04:10]dirname=/storage/ofd_packets [10:04:10]CheckFolder done [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00192041 [10:04:10]NVStorageSaveData ofd_packets/00192041 [10:04:10]File name is /storage/ofd_packets/00192041 [10:04:10]Write 301 bytes [10:04:10]NVStorageSaveData done [10:04:10]OFDSenderStorePacket done [10:04:10]KKMCreateOFDPacket done [10:04:10]NVStorageSaveData kkm_last_timestamp [10:04:10]File name is /storage/kkm_last_timestamp [10:04:10]Write 4 bytes [10:04:10]NVStorageSaveData done [10:04:10]ExternCall_PrintAddStr [10:04:10]wPrintStart [10:04:10]Write to MH i2c: 01 00 00 11 54 65 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 11 54 00 00 00 00 00 FF 0F 7A [10:04:10]RasterBufferAndPrint [10:04:10]line Счет N : (1)31351 [10:04:10]line ИНН: 02508201610067 [10:04:10]line Контрольно-Кассовый Чек [10:04:10]line ПРОДАЖА [10:04:10]line ТРК (МРК, ГНК) : 12 [10:04:10]line Товар: 2710124130 [10:04:10]line Аи-92-К-5 [10:04:10]line 5.980 * 66.90 [10:04:10]line = 400.06 [10:04:10]line НДС 12% НСП 1% [10:04:10]line > о реализуемом товаре [10:04:10]line ОКРУГЛЕНИЕ: -0.06 [10:04:10]line ИТОГО: 400.00 [10:04:10]line Внесено: 400.00 [10:04:10]line СДАЧА: 0.00 [10:04:10]line НСП 1% : 3.54 [10:04:10]line НДС 12% : 42.48 [10:04:10]line Наличными: 400.00 [10:04:10]line Безнал.: 0.00 [10:04:10]line Место: АЗС № 170 "Партнер Нефть" [10:04:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:04:10]line СНО: Общий режим [10:04:10]line Чек 73 27.10.2024 10:04 [10:04:10]line Смена: 542 ФФД: 1.0 [10:04:10]line ЗНМ: 0300000110 [10:04:10]line РНМ: 0000000000091776 [10:04:10]line Версия ККМ: 001 [10:04:10]line ФМ: 0000000000871754 [10:04:10]line ФД: 192041 [10:04:10]line ФПД: 229963252824758 [10:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100428&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192041&fm=229963252824758&tin=02508201610067®Number=0000000000091776&sum=40000 [10:04:10]written 0, free lines is 4095 [10:04:10]OFD Sender: Processing packet 192041 [packets to send 75, broken 74] [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00192041 [10:04:10]OFD Sender: To server: pG, [10:04:10]CommunicateWithHost lk.salyk.kg:30040 [10:04:10]ConnectInit lk.salyk.kg [10:04:10]Connected sock=8 [10:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 73 07 01 A6 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2C 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EE 02 00 35 04 06 00 D1 26 7D FE FA B6 FF 50 34 9B 4C 38 77 74 [10:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 3F 47 00 8B 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EE 02 00 F4 03 04 00 F4 B4 1D 67 B6 04 01 00 00 FE 95 29 03 CB 75 16 AC [10:04:10]CommunicateWithHost err = 0 [10:04:10]CheckOFDResponse [10:04:10]1017 (14) - 77093643461234 [10:04:10]1041 (16) - 0000000000871754 [10:04:10]1040 (4) - 192041 [10:04:10]1012 (4) - 27.10.2024 03:35 [10:04:11]1206 (1) - 0 [10:04:11]OFD Sender: Remove packet 192041 [10:04:11]ProducePacketName [10:04:11]name=ofd_packets/00192041 [10:04:11]NVStorageDeleteData [10:04:11]Write to MH i2c: 01 00 00 3C 54 90 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 07 00 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 07 00 3C 54 00 00 00 00 00 B7 0C 5A [10:04:11]RasterBufferAndPrint [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]written 0, free lines is 3268 [10:04:11]MH_Cut [10:04:11]Write to MH i2c: D1 01 00 43 54 01 69 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 01 00 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 01 00 43 54 00 68 [10:04:11]Write to MH i2c: 01 00 00 44 54 98 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:11]OFD Sender: No OFD packet to send [10:04:11]*** Cut start [10:04:11]*** Partial cut [10:04:11]*** CUTSNS_PIN = 1 [10:04:11]*** CUTSNS_PIN = 0 [10:04:12]*** Brake cut motor [10:04:12]Read from MH i2c: 01 [10:04:12]MH_I2C_Read... [10:04:12]*** Stop cut motor [10:04:12]*** Cut end [10:04:12]Read from MH i2c: 01 07 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: 01 07 00 44 54 00 00 00 00 00 FF 0F AD [10:04:12]process_action close_receipt done [10:04:12]requested_data is exist [10:04:12]produce_requested_data [10:04:12]requested_item fm.sn is exist - process it [10:04:12]wFMCommunicate request_size=4 [10:04:12]MH_SAM_APDU [10:04:12]CAPDU: 80 11 00 00 [10:04:12]Write to MH i2c: E2 08 00 45 54 80 11 00 00 00 00 00 00 13 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:12]Read from MH i2c: E2 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 17 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 17 00 45 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [10:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:12]wFMCommunicate OK [10:04:12]requested_item fd.num is exist - process it [10:04:12]SAM_PROTO_GetFieldsCounters [10:04:12]wFMCommunicate request_size=4 [10:04:12]MH_SAM_APDU [10:04:12]CAPDU: 80 13 00 00 [10:04:12]Write to MH i2c: E2 08 00 46 54 80 13 00 00 00 00 00 00 16 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:12]Read from MH i2c: E2 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 62 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 62 00 46 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [10:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:12]wFMCommunicate OK [10:04:12]SAM_PROTO_GetFieldsCounters done [10:04:12]requested_item shift.num is exist - process it [10:04:12]requested_item shift.opened is exist - process it [10:04:12]req_shift_opened [10:04:12]FM_GetShiftState [10:04:12]SAM_PROTO_GetShiftState [10:04:12]wFMCommunicate request_size=4 [10:04:12]MH_SAM_APDU [10:04:12]CAPDU: 80 13 01 00 [10:04:12]Write to MH i2c: E2 08 00 47 54 80 13 01 00 00 00 00 00 18 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:12]Read from MH i2c: E2 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 47 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 59 [10:04:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:04:12]wFMCommunicate OK [10:04:12]SAM_PROTO_GetShiftState done [10:04:12]FM_GetShiftState done [10:04:12]req_shift_opened done [10:04:12]requested_item shift.open_date is exist - process it [10:04:12]req_shift_open_date [10:04:12]req_shift_open_date done [10:04:12]produce_requested_data done [10:04:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192041,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:04:12]process_action_free close_receipt [10:04:12]json_value_free [10:04:12]json_value_free done [10:04:12]process_json_proto returns [10:04:12]Send response to host [10:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192041,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:04:12]free response buf [10:04:12]execute_script done [10:04:12]execute_script returns [10:04:12]free content buf [10:04:12]Sock 6.Close socket [10:04:12]Sock 6.Thread stoped [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:48]accept exits with 5 [10:05:48]New connection [10:05:48]New thread 3066817892 created [10:05:48]Thread 3066961252 joined [10:05:48]Waiting for new connection... [10:05:48] Sock 5.Parse request [10:05:48]Sock 5.Check first char [10:05:48]Sock 5.First char is OK [10:05:48]request: POST /json_proto HTTP/1.0 [10:05:48]Method: POST [10:05:48]URL: /json_proto [10:05:48]Method is POST - this is cgi request [10:05:48]url: /json_proto [10:05:48]query_string will be loaded in cgi processing [10:05:48]execute_cgi json_proto POST (null) [10:05:48]execute_cgi path=json_proto method=POST [10:05:48]POST find Content-Length [10:05:48]Host: 172.17.63.131:8080 [10:05:48]Content-Length: 676 [10:05:48]Content-Type: application/json [10:05:48] [10:05:48]POST finish read [10:05:48]Found Content-Length = 676 [10:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:48]execute_script... [10:05:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:48]POST & json_proto [10:05:48]process_json_proto [10:05:48]json parsed OK: [10:05:48]protocol is kg_v1.0 [10:05:48]action value=close_receipt [10:05:48]process_action close_receipt [10:05:48]cmd_close_receipt [10:05:48]MH_GetDate [10:05:48]Write to MH i2c: F0 00 00 48 54 8B [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 09 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 09 00 48 54 00 90 10 1E 67 22 05 6E 64 B2 [10:05:48]GetLastDocTimeStamp 1730023468 [10:05:48]current date 1730023568 [10:05:48]FM_GetShiftState [10:05:48]SAM_PROTO_GetShiftState [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 01 00 [10:05:48]Write to MH i2c: E2 08 00 49 54 80 13 01 00 00 00 00 00 1A [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 49 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5B [10:05:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetShiftState done [10:05:48]FM_GetShiftState done [10:05:48]opened in 1729989159 [10:05:48]opened+sec_in_day 1730075559 [10:05:48]quantity*price = 30038 [10:05:48]sum+1 = 30039 [10:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 74 27.10.2024 10:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192042 ФПД: 163669684494372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192042&fm=163669684494372&tin=02508201610067®Number=0000000000091776&sum=30000 [10:05:50]StoreToDocumentArchive [10:05:50]shift 542 fd 192042 [10:05:50]save to /storage/0542/doc_00192042 [10:05:50]save last doc name /storage/0542/doc_00192042 to /storage/kkm_last_doc_name [10:05:50]save OK [10:05:50]Clear old archive folders... [10:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:50]tlvbuf is 01A4D060 [10:05:50]SAM_PROTO_ClearQueue [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 09 00 00 [10:05:50]Write to MH i2c: E2 08 00 56 54 80 09 00 00 00 00 00 00 1C [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 56 54 00 90 00 1E [10:05:50]RAPDU: 90 00 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_ClearQueue done [10:05:50]KKMCreateOFDPacket [10:05:50]OFDProtocolAddRootSTLVToBuf [10:05:50]FM_MakeSignedData [10:05:50]FM_MakeSignedData [10:05:50]SAM_PROTO_SignData [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 0D 01 02 [10:05:50]Write to MH i2c: E2 08 00 57 54 80 0D 01 02 00 00 00 00 24 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 57 54 00 90 00 1F [10:05:50]RAPDU: 90 00 [10:05:50]wFMCommunicate OK [10:05:50]wFMCommunicate request_size=255 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 90 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EE 02 00 35 04 06 00 94 [10:05:50]Write to MH i2c: E2 02 01 58 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 90 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EE 02 00 35 04 06 00 94 00 00 E9 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 58 54 00 90 00 20 [10:05:50]RAPDU: 90 00 [10:05:50]wFMCommunicate OK [10:05:50]wFMCommunicate request_size=10 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 0D 02 02 05 DB 51 67 A0 24 [10:05:50]Write to MH i2c: E2 0D 00 59 54 80 0D 02 02 05 00 DB 51 67 A0 24 00 00 88 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 03 00 59 54 00 90 00 21 [10:05:50]RAPDU: 90 00 [10:05:50]wFMCommunicate OK [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 0D 03 02 [10:05:50]Write to MH i2c: E2 08 00 5A 54 80 0D 03 02 00 00 00 00 29 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 0B 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 0B 00 5A 54 00 57 0D 29 42 5F 22 18 F2 90 00 84 [10:05:50]RAPDU: 57 0D 29 42 5F 22 18 F2 90 00 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_SignData done [10:05:50]FM_MakeSignedData done [10:05:50]CreateOFDProtocolMessage [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 11 00 00 [10:05:50]Write to MH i2c: E2 08 00 5B 54 80 11 00 00 00 00 00 00 29 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 5B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [10:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:05:50]wFMCommunicate OK [10:05:50]CreateOFDProtocolMessage done [10:05:50]OFDSenderStorePacket 192042 [10:05:50]StoreOFDPacket docnum=192042 [10:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 48 07 01 F7 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 90 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EE 02 00 35 04 06 00 94 DB 51 67 A0 24 57 0D 29 42 5F 22 18 F2 [10:05:50]CheckFolder [10:05:50]dirname=/storage/ofd_packets [10:05:50]CheckFolder done [10:05:50]ProducePacketName [10:05:50]name=ofd_packets/00192042 [10:05:50]NVStorageSaveData ofd_packets/00192042 [10:05:50]File name is /storage/ofd_packets/00192042 [10:05:50]Write 301 bytes [10:05:50]NVStorageSaveData done [10:05:50]OFDSenderStorePacket done [10:05:50]KKMCreateOFDPacket done [10:05:50]NVStorageSaveData kkm_last_timestamp [10:05:50]File name is /storage/kkm_last_timestamp [10:05:50]Write 4 bytes [10:05:50]NVStorageSaveData done [10:05:50]ExternCall_PrintAddStr [10:05:50]wPrintStart [10:05:50]Write to MH i2c: 01 00 00 5C 54 B0 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 5C 54 00 00 00 00 00 FF 0F C5 [10:05:50]RasterBufferAndPrint [10:05:50]line Счет N : (1)31352 [10:05:50]line ИНН: 02508201610067 [10:05:50]line Контрольно-Кассовый Чек [10:05:50]line ПРОДАЖА [10:05:50]line ТРК (МРК, ГНК) : 21 [10:05:50]line Товар: 2710124130 [10:05:50]line Аи-92-К-5 [10:05:50]line 4.490 * 66.90 [10:05:50]line = 300.38 [10:05:50]line НДС 12% НСП 1% [10:05:50]line > о реализуемом товаре [10:05:50]line ОКРУГЛЕНИЕ: -0.38 [10:05:50]line ИТОГО: 300.00 [10:05:50]line Внесено: 300.00 [10:05:50]line СДАЧА: 0.00 [10:05:50]line НСП 1% : 2.66 [10:05:50]line НДС 12% : 31.90 [10:05:50]line Наличными: 300.00 [10:05:50]line Безнал.: 0.00 [10:05:50]line Место: АЗС № 170 "Партнер Нефть" [10:05:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:05:50]line СНО: Общий режим [10:05:50]line Чек 74 27.10.2024 10:06 [10:05:50]line Смена: 542 ФФД: 1.0 [10:05:50]line ЗНМ: 0300000110 [10:05:50]line РНМ: 0000000000091776 [10:05:50]line Версия ККМ: 001 [10:05:50]line ФМ: 0000000000871754 [10:05:50]line ФД: 192042 [10:05:50]line ФПД: 163669684494372 [10:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192042&fm=163669684494372&tin=02508201610067®Number=0000000000091776&sum=30000 [10:05:50]OFD Sender: Processing packet 192042 [packets to send 75, broken 74] [10:05:50]ProducePacketName [10:05:50]name=ofd_packets/00192042 [10:05:50]OFD Sender: To server: pG, [10:05:50]CommunicateWithHost lk.salyk.kg:30040 [10:05:50]ConnectInit lk.salyk.kg [10:05:50]written 0, free lines is 4095 [10:05:50]Connected sock=8 [10:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 48 07 01 F7 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 90 10 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EE 02 00 35 04 06 00 94 DB 51 67 A0 24 57 0D 29 42 5F 22 18 F2 [10:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B D2 47 00 71 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EE 02 00 F4 03 04 00 58 B5 1D 67 B6 04 01 00 00 50 FA 95 B0 CA F1 44 0D [10:05:51]CommunicateWithHost err = 0 [10:05:51]CheckOFDResponse [10:05:51]1017 (14) - 77093643461234 [10:05:51]1041 (16) - 0000000000871754 [10:05:51]1040 (4) - 192042 [10:05:51]1012 (4) - 27.10.2024 03:36 [10:05:51]1206 (1) - 0 [10:05:51]OFD Sender: Remove packet 192042 [10:05:51]ProducePacketName [10:05:51]name=ofd_packets/00192042 [10:05:51]NVStorageDeleteData [10:05:51]Write to MH i2c: 01 00 00 87 54 DB [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: 01 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: 01 07 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: 01 07 00 87 54 00 00 00 00 00 B9 0C A7 [10:05:51]RasterBufferAndPrint [10:05:51]line [10:05:51]line [10:05:51]line [10:05:51]line [10:05:51]line [10:05:51]written 0, free lines is 3264 [10:05:51]MH_Cut [10:05:51]Write to MH i2c: D1 01 00 8E 54 01 B4 [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: D1 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: D1 01 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: D1 01 00 8E 54 00 B3 [10:05:51]Write to MH i2c: 01 00 00 8F 54 E3 [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]OFD Sender: No OFD packet to send [10:05:52]*** Cut start [10:05:52]*** Partial cut [10:05:52]*** CUTSNS_PIN = 1 [10:05:52]*** CUTSNS_PIN = 0 [10:05:52]*** Brake cut motor [10:05:52]Read from MH i2c: 01 [10:05:52]MH_I2C_Read... [10:05:52]*** Stop cut motor [10:05:52]*** Cut end [10:05:52]Read from MH i2c: 01 07 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 8F 54 00 00 00 00 00 FF 0F F8 [10:05:52]process_action close_receipt done [10:05:52]requested_data is exist [10:05:52]produce_requested_data [10:05:52]requested_item fm.sn is exist - process it [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 11 00 00 [10:05:52]Write to MH i2c: E2 08 00 90 54 80 11 00 00 00 00 00 00 5E [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 90 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [10:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:05:52]wFMCommunicate OK [10:05:52]requested_item fd.num is exist - process it [10:05:52]SAM_PROTO_GetFieldsCounters [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 13 00 00 [10:05:52]Write to MH i2c: E2 08 00 91 54 80 13 00 00 00 00 00 00 61 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:53]Read from MH i2c: E2 [10:05:53]MH_I2C_Read... [10:05:53]Read from MH i2c: E2 62 00 [10:05:53]MH_I2C_Read... [10:05:53]Read from MH i2c: E2 62 00 91 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [10:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:53]wFMCommunicate OK [10:05:53]SAM_PROTO_GetFieldsCounters done [10:05:53]requested_item shift.num is exist - process it [10:05:53]requested_item shift.opened is exist - process it [10:05:53]req_shift_opened [10:05:53]FM_GetShiftState [10:05:53]SAM_PROTO_GetShiftState [10:05:53]wFMCommunicate request_size=4 [10:05:53]MH_SAM_APDU [10:05:53]CAPDU: 80 13 01 00 [10:05:53]Write to MH i2c: E2 08 00 92 54 80 13 01 00 00 00 00 00 63 [10:05:53]Write i2c OK [10:05:53]MH_I2C_Read... [10:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:53]Read from MH i2c: E2 [10:05:53]MH_I2C_Read... [10:05:53]Read from MH i2c: E2 0E 00 [10:05:53]MH_I2C_Read... [10:05:53]Read from MH i2c: E2 0E 00 92 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [10:05:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:05:53]wFMCommunicate OK [10:05:53]SAM_PROTO_GetShiftState done [10:05:53]FM_GetShiftState done [10:05:53]req_shift_opened done [10:05:53]requested_item shift.open_date is exist - process it [10:05:53]req_shift_open_date [10:05:53]req_shift_open_date done [10:05:53]produce_requested_data done [10:05:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192042,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:05:53]process_action_free close_receipt [10:05:53]json_value_free [10:05:53]json_value_free done [10:05:53]process_json_proto returns [10:05:53]Send response to host [10:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192042,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:05:53]free response buf [10:05:53]execute_script done [10:05:53]execute_script returns [10:05:53]free content buf [10:05:53]Sock 5.Close socket [10:05:53]Sock 5.Thread stoped [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:42]accept exits with 6 [10:12:42]New connection [10:12:42]New thread 3066961252 created [10:12:42]Thread 3066817892 joined [10:12:42]Waiting for new connection... [10:12:42] Sock 6.Parse request [10:12:42]Sock 6.Check first char [10:12:42]Sock 6.First char is OK [10:12:42]request: POST /json_proto HTTP/1.0 [10:12:42]Method: POST [10:12:42]URL: /json_proto [10:12:42]Method is POST - this is cgi request [10:12:42]url: /json_proto [10:12:42]query_string will be loaded in cgi processing [10:12:42]execute_cgi json_proto POST (null) [10:12:42]execute_cgi path=json_proto method=POST [10:12:42]POST find Content-Length [10:12:42]Host: 172.17.63.131:8080 [10:12:42]Content-Length: 678 [10:12:42]Content-Type: application/json [10:12:42] [10:12:42]POST finish read [10:12:42]Found Content-Length = 678 [10:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31353", "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" : 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:12:42]execute_script... [10: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)31353", "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" : 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:12:42]POST & json_proto [10:12:42]process_json_proto [10:12:42]json parsed OK: [10:12:42]protocol is kg_v1.0 [10:12:42]action value=close_receipt [10:12:42]process_action close_receipt [10:12:42]cmd_close_receipt [10:12:42]MH_GetDate [10:12:42]Write to MH i2c: F0 00 00 93 54 D6 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 09 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 09 00 93 54 00 2D 12 1E 67 22 05 6E 64 9C [10:12:42]GetLastDocTimeStamp 1730023568 [10:12:42]current date 1730023981 [10:12:42]FM_GetShiftState [10:12:42]SAM_PROTO_GetShiftState [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 13 01 00 [10:12:42]Write to MH i2c: E2 08 00 94 54 80 13 01 00 00 00 00 00 65 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0E 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0E 00 94 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A6 [10:12:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:12:42]wFMCommunicate OK [10:12:42]SAM_PROTO_GetShiftState done [10:12:42]FM_GetShiftState done [10:12:42]opened in 1729989159 [10:12:42]opened+sec_in_day 1730075559 [10:12:42]quantity*price = 100050 [10:12:42]sum+1 = 100052 [10:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 75 27.10.2024 10:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192043 ФПД: 81333257997346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192043&fm=81333257997346&tin=02508201610067®Number=0000000000091776&sum=100000 [10:12:43]StoreToDocumentArchive [10:12:43]shift 542 fd 192043 [10:12:43]save to /storage/0542/doc_00192043 [10:12:43]save last doc name /storage/0542/doc_00192043 to /storage/kkm_last_doc_name [10:12:43]save OK [10:12:43]Clear old archive folders... [10:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:43]tlvbuf is 01A507D0 [10:12:43]SAM_PROTO_ClearQueue [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 09 00 00 [10:12:43]Write to MH i2c: E2 08 00 A1 54 80 09 00 00 00 00 00 00 67 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 A1 54 00 90 00 69 [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_ClearQueue done [10:12:43]KKMCreateOFDPacket [10:12:43]OFDProtocolAddRootSTLVToBuf [10:12:43]FM_MakeSignedData [10:12:43]FM_MakeSignedData [10:12:43]SAM_PROTO_SignData [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 01 02 [10:12:43]Write to MH i2c: E2 08 00 A2 54 80 0D 01 02 00 00 00 00 6F [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 A2 54 00 90 00 6A [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=255 [10:12:43]MH_SAM_APDU [10: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 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 2D 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EE 02 00 35 04 06 00 49 F8 DF F3 [10:12:43]Write to MH i2c: E2 02 01 A3 54 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 2D 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EE 02 00 35 04 06 00 49 F8 DF F3 00 00 56 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 A3 54 00 90 00 6B [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=7 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 02 02 02 8C 22 [10:12:43]Write to MH i2c: E2 0A 00 A4 54 80 0D 02 02 02 00 8C 22 00 00 24 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 A4 54 00 90 00 6C [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 03 02 [10:12:43]Write to MH i2c: E2 08 00 A5 54 80 0D 03 02 00 00 00 00 74 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0B 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0B 00 A5 54 00 DB 2E 02 15 2E 9E 3B 3E 90 00 DA [10:12:43]RAPDU: DB 2E 02 15 2E 9E 3B 3E 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_SignData done [10:12:43]FM_MakeSignedData done [10:12:43]CreateOFDProtocolMessage [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 11 00 00 [10:12:43]Write to MH i2c: E2 08 00 A6 54 80 11 00 00 00 00 00 00 74 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 17 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 17 00 A6 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [10:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:43]wFMCommunicate OK [10:12:43]CreateOFDProtocolMessage done [10:12:43]OFDSenderStorePacket 192043 [10:12:43]StoreOFDPacket docnum=192043 [10:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2E 34 04 01 95 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 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 2D 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EE 02 00 35 04 06 00 49 F8 DF F3 8C 22 DB 2E 02 15 2E 9E 3B 3E [10:12:43]CheckFolder [10:12:43]dirname=/storage/ofd_packets [10:12:43]CheckFolder done [10:12:43]ProducePacketName [10:12:43]name=ofd_packets/00192043 [10:12:43]NVStorageSaveData ofd_packets/00192043 [10:12:43]File name is /storage/ofd_packets/00192043 [10:12:43]Write 298 bytes [10:12:43]NVStorageSaveData done [10:12:43]OFDSenderStorePacket done [10:12:43]KKMCreateOFDPacket done [10:12:43]NVStorageSaveData kkm_last_timestamp [10:12:43]File name is /storage/kkm_last_timestamp [10:12:43]Write 4 bytes [10:12:43]NVStorageSaveData done [10:12:43]ExternCall_PrintAddStr [10:12:43]wPrintStart [10:12:43]Write to MH i2c: 01 00 00 A7 54 FB [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 07 00 [10:12:43]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 A7 54 00 00 00 00 00 FF 0F 10 [10:12:44]RasterBufferAndPrint [10:12:44]line Счет N : (1)31353 [10:12:44]line ИНН: 02508201610067 [10:12:44]line Контрольно-Кассовый Чек [10:12:44]line ПРОДАЖА [10:12:44]line ТРК (МРК, ГНК) : 11 [10:12:44]line Товар: 2710194210 [10:12:44]line ДТ-К-5 [10:12:44]line 13.130 * 76.20 [10:12:44]line = 1000.51 [10:12:44]line НДС 12% НСП 1% [10:12:44]line > о реализуемом товаре [10:12:44]line ОКРУГЛЕНИЕ: -0.51 [10:12:44]line ИТОГО: 1000.00 [10:12:44]line Внесено: 1000.00 [10:12:44]line СДАЧА: 0.00 [10:12:44]line НСП 1% : 8.85 [10:12:44]line НДС 12% : 106.25 [10:12:44]line Наличными: 1000.00 [10:12:44]line Безнал.: 0.00 [10:12:44]line Место: АЗС № 170 "Партнер Нефть" [10:12:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:12:44]line СНО: Общий режим [10:12:44]line Чек 75 27.10.2024 10:13 [10:12:44]line Смена: 542 ФФД: 1.0 [10:12:44]line ЗНМ: 0300000110 [10:12:44]line РНМ: 0000000000091776 [10:12:44]line Версия ККМ: 001 [10:12:44]line ФМ: 0000000000871754 [10:12:44]line ФД: 192043 [10:12:44]line ФПД: 81333257997346 [10:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192043&fm=81333257997346&tin=02508201610067®Number=0000000000091776&sum=100000 [10:12:44]OFD Sender: Processing packet 192043 [packets to send 75, broken 74] [10:12:44]ProducePacketName [10:12:44]name=ofd_packets/00192043 [10:12:44]OFD Sender: To server: pG, [10:12:44]CommunicateWithHost lk.salyk.kg:30040 [10:12:44]ConnectInit lk.salyk.kg [10:12:44]written 0, free lines is 4095 [10:12:44]Connected sock=8 [10: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 37 35 34 0C 01 00 00 2E 34 04 01 95 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 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 2D 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EE 02 00 35 04 06 00 49 F8 DF F3 8C 22 DB 2E 02 15 2E 9E 3B 3E [10: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 37 35 34 4F 00 00 00 8C 2B 47 00 53 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EE 02 00 F4 03 04 00 F5 B6 1D 67 B6 04 01 00 00 38 69 23 D4 60 A5 9B 18 [10:12:44]CommunicateWithHost err = 0 [10:12:44]CheckOFDResponse [10:12:44]1017 (14) - 77093643461234 [10:12:44]1041 (16) - 0000000000871754 [10:12:44]1040 (4) - 192043 [10:12:44]1012 (4) - 27.10.2024 03:43 [10:12:44]1206 (1) - 0 [10:12:44]OFD Sender: Remove packet 192043 [10:12:44]ProducePacketName [10:12:44]name=ofd_packets/00192043 [10:12:44]NVStorageDeleteData [10:12:44]Write to MH i2c: 01 00 00 D2 54 26 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 D2 54 00 00 00 00 00 99 0C D2 [10:12:44]RasterBufferAndPrint [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]written 0, free lines is 3232 [10:12:44]MH_Cut [10:12:44]Write to MH i2c: D1 01 00 D9 54 01 FF [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: D1 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: D1 01 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: D1 01 00 D9 54 00 FE [10:12:44]Write to MH i2c: 01 00 00 DA 54 2E [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:45]OFD Sender: No OFD packet to send [10:12:45]*** Cut start [10:12:45]*** Partial cut [10:12:45]*** CUTSNS_PIN = 1 [10:12:45]*** CUTSNS_PIN = 0 [10:12:45]*** Brake cut motor [10:12:46]Read from MH i2c: 01 [10:12:46]MH_I2C_Read... [10:12:46]*** Stop cut motor [10:12:46]*** Cut end [10:12:46]Read from MH i2c: 01 07 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: 01 07 00 DA 54 00 00 00 00 00 FF 0F 43 [10:12:46]process_action close_receipt done [10:12:46]requested_data is exist [10:12:46]produce_requested_data [10:12:46]requested_item fm.sn is exist - process it [10:12:46]wFMCommunicate request_size=4 [10:12:46]MH_SAM_APDU [10:12:46]CAPDU: 80 11 00 00 [10:12:46]Write to MH i2c: E2 08 00 DB 54 80 11 00 00 00 00 00 00 A9 [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:46]Read from MH i2c: E2 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 17 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 17 00 DB 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [10:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:46]wFMCommunicate OK [10:12:46]requested_item fd.num is exist - process it [10:12:46]SAM_PROTO_GetFieldsCounters [10:12:46]wFMCommunicate request_size=4 [10:12:46]MH_SAM_APDU [10:12:46]CAPDU: 80 13 00 00 [10:12:46]Write to MH i2c: E2 08 00 DC 54 80 13 00 00 00 00 00 00 AC [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:46]Read from MH i2c: E2 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 62 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 62 00 DC 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:46]wFMCommunicate OK [10:12:46]SAM_PROTO_GetFieldsCounters done [10:12:46]requested_item shift.num is exist - process it [10:12:46]requested_item shift.opened is exist - process it [10:12:46]req_shift_opened [10:12:46]FM_GetShiftState [10:12:46]SAM_PROTO_GetShiftState [10:12:46]wFMCommunicate request_size=4 [10:12:46]MH_SAM_APDU [10:12:46]CAPDU: 80 13 01 00 [10:12:46]Write to MH i2c: E2 08 00 DD 54 80 13 01 00 00 00 00 00 AE [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:46]Read from MH i2c: E2 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 0E 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 0E 00 DD 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [10:12:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:12:46]wFMCommunicate OK [10:12:46]SAM_PROTO_GetShiftState done [10:12:46]FM_GetShiftState done [10:12:46]req_shift_opened done [10:12:46]requested_item shift.open_date is exist - process it [10:12:46]req_shift_open_date [10:12:46]req_shift_open_date done [10:12:46]produce_requested_data done [10:12:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192043,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:12:46]process_action_free close_receipt [10:12:46]json_value_free [10:12:46]json_value_free done [10:12:46]process_json_proto returns [10:12:46]Send response to host [10:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192043,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:12:46]free response buf [10:12:46]execute_script done [10:12:46]execute_script returns [10:12:46]free content buf [10:12:46]Sock 6.Close socket [10:12:46]Sock 6.Thread stoped [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:12:55]accept exits with 5 [10:12:55]New connection [10:12:55]New thread 3066817892 created [10:12:55]Thread 3066961252 joined [10:12:55]Waiting for new connection... [10:12:55] Sock 5.Parse request [10:12:55]Sock 5.Check first char [10:12:55]Sock 5.First char is OK [10:12:55]request: POST /json_proto HTTP/1.0 [10:12:55]Method: POST [10:12:55]URL: /json_proto [10:12:55]Method is POST - this is cgi request [10:12:55]url: /json_proto [10:12:55]query_string will be loaded in cgi processing [10:12:55]execute_cgi json_proto POST (null) [10:12:55]execute_cgi path=json_proto method=POST [10:12:55]POST find Content-Length [10:12:55]Host: 172.17.63.131:8080 [10:12:55]Content-Length: 676 [10:12:55]Content-Type: application/json [10:12:55] [10:12:55]POST finish read [10:12:55]Found Content-Length = 676 [10:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]execute_script... [10:12:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]POST & json_proto [10:12:55]process_json_proto [10:12:55]json parsed OK: [10:12:55]protocol is kg_v1.0 [10:12:55]action value=close_receipt [10:12:55]process_action close_receipt [10:12:55]cmd_close_receipt [10:12:55]MH_GetDate [10:12:55]Write to MH i2c: F0 00 00 DE 54 21 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 DE 54 00 3B 12 1E 67 22 05 6E 64 F5 [10:12:55]GetLastDocTimeStamp 1730023981 [10:12:55]current date 1730023995 [10:12:55]FM_GetShiftState [10:12:55]SAM_PROTO_GetShiftState [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 13 01 00 [10:12:55]Write to MH i2c: E2 08 00 DF 54 80 13 01 00 00 00 00 00 B0 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 DF 54 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F1 [10:12:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_GetShiftState done [10:12:55]FM_GetShiftState done [10:12:55]opened in 1729989159 [10:12:55]opened+sec_in_day 1730075559 [10:12:55]quantity*price = 50041 [10:12:55]sum+1 = 50042 [10:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 76 27.10.2024 10:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192044 ФПД: 93684630256911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101315&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192044&fm=93684630256911&tin=02508201610067®Number=0000000000091776&sum=50000 [10:12:56]StoreToDocumentArchive [10:12:56]shift 542 fd 192044 [10:12:56]save to /storage/0542/doc_00192044 [10:12:56]save last doc name /storage/0542/doc_00192044 to /storage/kkm_last_doc_name [10:12:56]save OK [10:12:56]Clear old archive folders... [10:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:56]tlvbuf is 019D2DD0 [10:12:56]SAM_PROTO_ClearQueue [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 09 00 00 [10:12:56]Write to MH i2c: E2 08 00 EC 54 80 09 00 00 00 00 00 00 B2 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 EC 54 00 90 00 B4 [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_ClearQueue done [10:12:56]KKMCreateOFDPacket [10:12:56]OFDProtocolAddRootSTLVToBuf [10:12:56]FM_MakeSignedData [10:12:56]FM_MakeSignedData [10:12:56]SAM_PROTO_SignData [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 01 02 [10:12:56]Write to MH i2c: E2 08 00 ED 54 80 0D 01 02 00 00 00 00 BA [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 ED 54 00 90 00 B5 [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=255 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 3B 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EE 02 00 35 04 06 00 55 [10:12:56]Write to MH i2c: E2 02 01 EE 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EE 02 00 35 04 06 00 55 00 00 FD [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 EE 54 00 90 00 B6 [10:12:57]RAPDU: 90 00 [10:12:57]wFMCommunicate OK [10:12:57]wFMCommunicate request_size=10 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 0D 02 02 05 34 A7 1B 7D 0F [10:12:57]Write to MH i2c: E2 0D 00 EF 54 80 0D 02 02 05 00 34 A7 1B 7D 0F 00 00 49 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 EF 54 00 90 00 B7 [10:12:57]RAPDU: 90 00 [10:12:57]wFMCommunicate OK [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 0D 03 02 [10:12:57]Write to MH i2c: E2 08 00 F0 54 80 0D 03 02 00 00 00 00 BF [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0B 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0B 00 F0 54 00 A5 74 D5 C5 A0 B4 46 02 90 00 0F [10:12:57]RAPDU: A5 74 D5 C5 A0 B4 46 02 90 00 [10:12:57]wFMCommunicate OK [10:12:57]SAM_PROTO_SignData done [10:12:57]FM_MakeSignedData done [10:12:57]CreateOFDProtocolMessage [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 11 00 00 [10:12:57]Write to MH i2c: E2 08 00 F1 54 80 11 00 00 00 00 00 00 BF [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 F1 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [10:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:57]wFMCommunicate OK [10:12:57]CreateOFDProtocolMessage done [10:12:57]OFDSenderStorePacket 192044 [10:12:57]StoreOFDPacket docnum=192044 [10:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 4F 07 01 98 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EE 02 00 35 04 06 00 55 34 A7 1B 7D 0F A5 74 D5 C5 A0 B4 46 02 [10:12:57]CheckFolder [10:12:57]dirname=/storage/ofd_packets [10:12:57]CheckFolder done [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00192044 [10:12:57]NVStorageSaveData ofd_packets/00192044 [10:12:57]File name is /storage/ofd_packets/00192044 [10:12:57]Write 301 bytes [10:12:57]NVStorageSaveData done [10:12:57]OFDSenderStorePacket done [10:12:57]KKMCreateOFDPacket done [10:12:57]NVStorageSaveData kkm_last_timestamp [10:12:57]File name is /storage/kkm_last_timestamp [10:12:57]Write 4 bytes [10:12:57]NVStorageSaveData done [10:12:57]ExternCall_PrintAddStr [10:12:57]wPrintStart [10:12:57]Write to MH i2c: 01 00 00 F2 54 46 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 F2 54 00 00 00 00 00 FF 0F 5B [10:12:57]RasterBufferAndPrint [10:12:57]line Счет N : (1)31354 [10:12:57]line ИНН: 02508201610067 [10:12:57]line Контрольно-Кассовый Чек [10:12:57]line ПРОДАЖА [10:12:57]line ТРК (МРК, ГНК) : 21 [10:12:57]line Товар: 2710124130 [10:12:57]line Аи-92-К-5 [10:12:57]line 7.480 * 66.90 [10:12:57]line = 500.41 [10:12:57]line НДС 12% НСП 1% [10:12:57]line > о реализуемом товаре [10:12:57]line ОКРУГЛЕНИЕ: -0.41 [10:12:57]line ИТОГО: 500.00 [10:12:57]line Внесено: 500.00 [10:12:57]line СДАЧА: 0.00 [10:12:57]line НСП 1% : 4.43 [10:12:57]line НДС 12% : 53.14 [10:12:57]line Наличными: 500.00 [10:12:57]line Безнал.: 0.00 [10:12:57]line Место: АЗС № 170 "Партнер Нефть" [10:12:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:12:57]line СНО: Общий режим [10:12:57]line Чек 76 27.10.2024 10:13 [10:12:57]line Смена: 542 ФФД: 1.0 [10:12:57]line ЗНМ: 0300000110 [10:12:57]line РНМ: 0000000000091776 [10:12:57]line Версия ККМ: 001 [10:12:57]line ФМ: 0000000000871754 [10:12:57]line ФД: 192044 [10:12:57]line ФПД: 93684630256911 [10:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101315&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192044&fm=93684630256911&tin=02508201610067®Number=0000000000091776&sum=50000 [10:12:57]written 0, free lines is 4095 [10:12:57]OFD Sender: Processing packet 192044 [packets to send 75, broken 74] [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00192044 [10:12:57]OFD Sender: To server: pG, [10:12:57]CommunicateWithHost lk.salyk.kg:30040 [10:12:57]ConnectInit lk.salyk.kg [10:12:57]Connected sock=8 [10:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 4F 07 01 98 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EE 02 00 35 04 06 00 55 34 A7 1B 7D 0F A5 74 D5 C5 A0 B4 46 02 [10:12:57]Write to MH i2c: 01 00 00 1D 55 72 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 1D 55 00 00 00 00 00 A5 0C 2A [10:12:57]RasterBufferAndPrint [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]written 0, free lines is 3245 [10:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E2 E3 47 00 5C 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EE 02 00 F4 03 04 00 02 B7 1D 67 B6 04 01 00 00 9A 05 7B 53 04 0A 31 6F [10:12:57]CommunicateWithHost err = 0 [10:12:57]CheckOFDResponse [10:12:57]1017 (14) - 77093643461234 [10:12:57]1041 (16) - 0000000000871754 [10:12:57]1040 (4) - 192044 [10:12:57]1012 (4) - 27.10.2024 03:44 [10:12:57]1206 (1) - 0 [10:12:57]OFD Sender: Remove packet 192044 [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00192044 [10:12:57]NVStorageDeleteData [10:12:57]MH_Cut [10:12:57]Write to MH i2c: D1 01 00 24 55 01 4B [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 01 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 01 00 24 55 00 4A [10:12:57]Write to MH i2c: 01 00 00 25 55 7A [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:58]OFD Sender: No OFD packet to send [10:12:58]*** Cut start [10:12:58]*** Partial cut [10:12:58]*** CUTSNS_PIN = 1 [10:12:58]*** CUTSNS_PIN = 0 [10:12:58]*** Brake cut motor [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]*** Stop cut motor [10:12:59]*** Cut end [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 25 55 00 00 00 00 00 FF 0F 8F [10:12:59]process_action close_receipt done [10:12:59]requested_data is exist [10:12:59]produce_requested_data [10:12:59]requested_item fm.sn is exist - process it [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 11 00 00 [10:12:59]Write to MH i2c: E2 08 00 26 55 80 11 00 00 00 00 00 00 F5 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 26 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [10:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:59]wFMCommunicate OK [10:12:59]requested_item fd.num is exist - process it [10:12:59]SAM_PROTO_GetFieldsCounters [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 13 00 00 [10:12:59]Write to MH i2c: E2 08 00 27 55 80 13 00 00 00 00 00 00 F8 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 62 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 62 00 27 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [10:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_GetFieldsCounters done [10:12:59]requested_item shift.num is exist - process it [10:12:59]requested_item shift.opened is exist - process it [10:12:59]req_shift_opened [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 28 55 80 13 01 00 00 00 00 00 FA [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 28 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [10:12:59]RAPDU: 09 00 01 27 8A 1D 67 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]req_shift_opened done [10:12:59]requested_item shift.open_date is exist - process it [10:12:59]req_shift_open_date [10:12:59]req_shift_open_date done [10:12:59]produce_requested_data done [10:12:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192044,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:12:59]process_action_free close_receipt [10:12:59]json_value_free [10:12:59]json_value_free done [10:12:59]process_json_proto returns [10:12:59]Send response to host [10:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192044,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:12:59]free response buf [10:12:59]execute_script done [10:12:59]execute_script returns [10:12:59]free content buf [10:12:59]Sock 5.Close socket [10:12:59]Sock 5.Thread stoped [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]accept exits with 6 [10:14:43]New connection [10:14:43]New thread 3066961252 created [10:14:43]Thread 3066817892 joined [10:14:43]Waiting for new connection... [10:14:43] Sock 6.Parse request [10:14:43]Sock 6.Check first char [10:14:43]Sock 6.First char is OK [10:14:43]request: POST /json_proto HTTP/1.0 [10:14:43]Method: POST [10:14:43]URL: /json_proto [10:14:43]Method is POST - this is cgi request [10:14:43]url: /json_proto [10:14:43]query_string will be loaded in cgi processing [10:14:43]execute_cgi json_proto POST (null) [10:14:43]execute_cgi path=json_proto method=POST [10:14:43]POST find Content-Length [10:14:43]Host: 172.17.63.131:8080 [10:14:43]Content-Length: 676 [10:14:43]Content-Type: application/json [10:14:43] [10:14:43]POST finish read [10:14:43]Found Content-Length = 676 [10:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:43]execute_script... [10:14: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)31355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:43]POST & json_proto [10:14:43]process_json_proto [10:14:43]json parsed OK: [10:14:43]protocol is kg_v1.0 [10:14:43]action value=close_receipt [10:14:43]process_action close_receipt [10:14:43]cmd_close_receipt [10:14:43]MH_GetDate [10:14:43]Write to MH i2c: F0 00 00 29 55 6D [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 09 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 09 00 29 55 00 A6 12 1E 67 22 05 6E 64 AC [10:14:43]GetLastDocTimeStamp 1730023995 [10:14:43]current date 1730024102 [10:14:43]FM_GetShiftState [10:14:43]SAM_PROTO_GetShiftState [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 13 01 00 [10:14:43]Write to MH i2c: E2 08 00 2A 55 80 13 01 00 00 00 00 00 FC [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 2A 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3D [10:14:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetShiftState done [10:14:43]FM_GetShiftState done [10:14:43]opened in 1729989159 [10:14:43]opened+sec_in_day 1730075559 [10:14:43]quantity*price = 50041 [10:14:43]sum+1 = 50042 [10:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 77 27.10.2024 10:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192045 ФПД: 120592774051645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192045&fm=120592774051645&tin=02508201610067®Number=0000000000091776&sum=50000 [10:14:44]StoreToDocumentArchive [10:14:44]shift 542 fd 192045 [10:14:44]save to /storage/0542/doc_00192045 [10:14:44]save last doc name /storage/0542/doc_00192045 to /storage/kkm_last_doc_name [10:14:44]save OK [10:14:44]Clear old archive folders... [10:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:44]tlvbuf is 01B4CF20 [10:14:44]SAM_PROTO_ClearQueue [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 09 00 00 [10:14:44]Write to MH i2c: E2 08 00 37 55 80 09 00 00 00 00 00 00 FE [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 37 55 00 90 00 00 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]SAM_PROTO_ClearQueue done [10:14:44]KKMCreateOFDPacket [10:14:44]OFDProtocolAddRootSTLVToBuf [10:14:44]FM_MakeSignedData [10:14:44]FM_MakeSignedData [10:14:44]SAM_PROTO_SignData [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 01 02 [10:14:44]Write to MH i2c: E2 08 00 38 55 80 0D 01 02 00 00 00 00 06 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 38 55 00 90 00 01 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=255 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EE 02 00 35 04 06 00 6D [10:14:44]Write to MH i2c: E2 02 01 39 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EE 02 00 35 04 06 00 6D 00 00 CE [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 39 55 00 90 00 02 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=10 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 02 02 05 AD B1 75 B7 3D [10:14:44]Write to MH i2c: E2 0D 00 3A 55 80 0D 02 02 05 00 AD B1 75 B7 3D 00 00 DA [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 3A 55 00 90 00 03 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 03 02 [10:14:44]Write to MH i2c: E2 08 00 3B 55 80 0D 03 02 00 00 00 00 0B [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 0B 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 0B 00 3B 55 00 25 3A 7B AF 3F D0 8A B3 90 00 E1 [10:14:44]RAPDU: 25 3A 7B AF 3F D0 8A B3 90 00 [10:14:44]wFMCommunicate OK [10:14:44]SAM_PROTO_SignData done [10:14:44]FM_MakeSignedData done [10:14:44]CreateOFDProtocolMessage [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 11 00 00 [10:14:44]Write to MH i2c: E2 08 00 3C 55 80 11 00 00 00 00 00 00 0B [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 3C 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [10:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:14:44]wFMCommunicate OK [10:14:44]CreateOFDProtocolMessage done [10:14:44]OFDSenderStorePacket 192045 [10:14:44]StoreOFDPacket docnum=192045 [10:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 C3 07 01 3B F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EE 02 00 35 04 06 00 6D AD B1 75 B7 3D 25 3A 7B AF 3F D0 8A B3 [10:14:44]CheckFolder [10:14:44]dirname=/storage/ofd_packets [10:14:44]CheckFolder done [10:14:44]ProducePacketName [10:14:44]name=ofd_packets/00192045 [10:14:44]NVStorageSaveData ofd_packets/00192045 [10:14:44]File name is /storage/ofd_packets/00192045 [10:14:44]Write 301 bytes [10:14:44]NVStorageSaveData done [10:14:44]OFDSenderStorePacket done [10:14:44]KKMCreateOFDPacket done [10:14:44]NVStorageSaveData kkm_last_timestamp [10:14:44]File name is /storage/kkm_last_timestamp [10:14:44]Write 4 bytes [10:14:44]NVStorageSaveData done [10:14:44]ExternCall_PrintAddStr [10:14:44]wPrintStart [10:14:44]Write to MH i2c: 01 00 00 3D 55 92 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 3D 55 00 00 00 00 00 FF 0F A7 [10:14:44]RasterBufferAndPrint [10:14:44]line Счет N : (1)31355 [10:14:44]line ИНН: 02508201610067 [10:14:44]line Контрольно-Кассовый Чек [10:14:44]line ПРОДАЖА [10:14:44]line ТРК (МРК, ГНК) : 12 [10:14:44]line Товар: 2710124130 [10:14:44]line Аи-92-К-5 [10:14:44]line 7.480 * 66.90 [10:14:44]line = 500.41 [10:14:44]line НДС 12% НСП 1% [10:14:44]line > о реализуемом товаре [10:14:44]line ОКРУГЛЕНИЕ: -0.41 [10:14:44]line ИТОГО: 500.00 [10:14:44]line Внесено: 500.00 [10:14:44]line СДАЧА: 0.00 [10:14:44]line НСП 1% : 4.43 [10:14:44]line НДС 12% : 53.14 [10:14:44]line Наличными: 500.00 [10:14:44]line Безнал.: 0.00 [10:14:44]line Место: АЗС № 170 "Партнер Нефть" [10:14:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:14:44]line СНО: Общий режим [10:14:44]line Чек 77 27.10.2024 10:15 [10:14:44]line Смена: 542 ФФД: 1.0 [10:14:44]line ЗНМ: 0300000110 [10:14:44]line РНМ: 0000000000091776 [10:14:44]line Версия ККМ: 001 [10:14:44]line ФМ: 0000000000871754 [10:14:44]line ФД: 192045 [10:14:44]line ФПД: 120592774051645 [10:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192045&fm=120592774051645&tin=02508201610067®Number=0000000000091776&sum=50000 [10:14:45]OFD Sender: Processing packet 192045 [packets to send 75, broken 74] [10:14:45]ProducePacketName [10:14:45]name=ofd_packets/00192045 [10:14:45]OFD Sender: To server: pG, [10:14:45]CommunicateWithHost lk.salyk.kg:30040 [10:14:45]ConnectInit lk.salyk.kg [10:14:45]written 0, free lines is 4095 [10:14:45]Connected sock=8 [10:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 C3 07 01 3B F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A6 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EE 02 00 35 04 06 00 6D AD B1 75 B7 3D 25 3A 7B AF 3F D0 8A B3 [10:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 1A 47 00 9C B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EE 02 00 F4 03 04 00 6E B7 1D 67 B6 04 01 00 00 4B BB 7E 3D 41 4C 6E 6F [10:14:45]CommunicateWithHost err = 0 [10:14:45]CheckOFDResponse [10:14:45]1017 (14) - 77093643461234 [10:14:45]1041 (16) - 0000000000871754 [10:14:45]1040 (4) - 192045 [10:14:45]1012 (4) - 27.10.2024 03:45 [10:14:45]1206 (1) - 0 [10:14:45]OFD Sender: Remove packet 192045 [10:14:45]ProducePacketName [10:14:45]name=ofd_packets/00192045 [10:14:45]NVStorageDeleteData [10:14:45]Write to MH i2c: 01 00 00 68 55 BD [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 68 55 00 00 00 00 00 97 0C 67 [10:14:45]RasterBufferAndPrint [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]written 0, free lines is 3229 [10:14:45]MH_Cut [10:14:45]Write to MH i2c: D1 01 00 6F 55 01 96 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 01 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 01 00 6F 55 00 95 [10:14:45]Write to MH i2c: 01 00 00 70 55 C5 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:46]OFD Sender: No OFD packet to send [10:14:46]*** Cut start [10:14:46]*** Partial cut [10:14:46]*** CUTSNS_PIN = 1 [10:14:46]*** CUTSNS_PIN = 0 [10:14:46]*** Brake cut motor [10:14:47]Read from MH i2c: 01 [10:14:47]MH_I2C_Read... [10:14:47]*** Stop cut motor [10:14:47]*** Cut end [10:14:47]Read from MH i2c: 01 07 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: 01 07 00 70 55 00 00 00 00 00 FF 0F DA [10:14:47]process_action close_receipt done [10:14:47]requested_data is exist [10:14:47]produce_requested_data [10:14:47]requested_item fm.sn is exist - process it [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 11 00 00 [10:14:47]Write to MH i2c: E2 08 00 71 55 80 11 00 00 00 00 00 00 40 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 17 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 17 00 71 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [10:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:14:47]wFMCommunicate OK [10:14:47]requested_item fd.num is exist - process it [10:14:47]SAM_PROTO_GetFieldsCounters [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 00 00 [10:14:47]Write to MH i2c: E2 08 00 72 55 80 13 00 00 00 00 00 00 43 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 72 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [10:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetFieldsCounters done [10:14:47]requested_item shift.num is exist - process it [10:14:47]requested_item shift.opened is exist - process it [10:14:47]req_shift_opened [10:14:47]FM_GetShiftState [10:14:47]SAM_PROTO_GetShiftState [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 01 00 [10:14:47]Write to MH i2c: E2 08 00 73 55 80 13 01 00 00 00 00 00 45 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 73 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 86 [10:14:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetShiftState done [10:14:47]FM_GetShiftState done [10:14:47]req_shift_opened done [10:14:47]requested_item shift.open_date is exist - process it [10:14:47]req_shift_open_date [10:14:47]req_shift_open_date done [10:14:47]produce_requested_data done [10:14:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192045,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:14:47]process_action_free close_receipt [10:14:47]json_value_free [10:14:47]json_value_free done [10:14:47]process_json_proto returns [10:14:47]Send response to host [10:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192045,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:14:47]free response buf [10:14:47]execute_script done [10:14:47]execute_script returns [10:14:47]free content buf [10:14:47]Sock 6.Close socket [10:14:47]Sock 6.Thread stoped [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:00]accept exits with 5 [10:16:00]New connection [10:16:00]New thread 3066817892 created [10:16:00]Thread 3066961252 joined [10:16:00]Waiting for new connection... [10:16:00] Sock 5.Parse request [10:16:00]Sock 5.Check first char [10:16:00]Sock 5.First char is OK [10:16:00]request: POST /json_proto HTTP/1.0 [10:16:00]Method: POST [10:16:00]URL: /json_proto [10:16:00]Method is POST - this is cgi request [10:16:00]url: /json_proto [10:16:00]query_string will be loaded in cgi processing [10:16:00]execute_cgi json_proto POST (null) [10:16:00]execute_cgi path=json_proto method=POST [10:16:00]POST find Content-Length [10:16:00]Host: 172.17.63.131:8080 [10:16:00]Content-Length: 676 [10:16:00]Content-Type: application/json [10:16:00] [10:16:00]POST finish read [10:16:00]Found Content-Length = 676 [10:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:00]execute_script... [10:16: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)31356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:00]POST & json_proto [10:16:00]process_json_proto [10:16:00]json parsed OK: [10:16:00]protocol is kg_v1.0 [10:16:00]action value=close_receipt [10:16:00]process_action close_receipt [10:16:00]cmd_close_receipt [10:16:00]MH_GetDate [10:16:00]Write to MH i2c: F0 00 00 74 55 B8 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: F0 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: F0 09 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: F0 09 00 74 55 00 F3 12 1E 67 22 05 6E 64 44 [10:16:00]GetLastDocTimeStamp 1730024102 [10:16:00]current date 1730024179 [10:16:00]FM_GetShiftState [10:16:00]SAM_PROTO_GetShiftState [10:16:00]wFMCommunicate request_size=4 [10:16:00]MH_SAM_APDU [10:16:00]CAPDU: 80 13 01 00 [10:16:00]Write to MH i2c: E2 08 00 75 55 80 13 01 00 00 00 00 00 47 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 75 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 88 [10:16:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetShiftState done [10:16:00]FM_GetShiftState done [10:16:00]opened in 1729989159 [10:16:00]opened+sec_in_day 1730075559 [10:16:00]quantity*price = 50041 [10:16:00]sum+1 = 50042 [10:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 78 27.10.2024 10:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192046 ФПД: 224503748969695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192046&fm=224503748969695&tin=02508201610067®Number=0000000000091776&sum=50000 [10:16:01]StoreToDocumentArchive [10:16:01]shift 542 fd 192046 [10:16:01]save to /storage/0542/doc_00192046 [10:16:01]save last doc name /storage/0542/doc_00192046 to /storage/kkm_last_doc_name [10:16:01]save OK [10:16:01]Clear old archive folders... [10:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:01]tlvbuf is 016144E0 [10:16:01]SAM_PROTO_ClearQueue [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 09 00 00 [10:16:01]Write to MH i2c: E2 08 00 82 55 80 09 00 00 00 00 00 00 49 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 82 55 00 90 00 4B [10:16:01]RAPDU: 90 00 [10:16:01]wFMCommunicate OK [10:16:01]SAM_PROTO_ClearQueue done [10:16:01]KKMCreateOFDPacket [10:16:01]OFDProtocolAddRootSTLVToBuf [10:16:01]FM_MakeSignedData [10:16:01]FM_MakeSignedData [10:16:01]SAM_PROTO_SignData [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 0D 01 02 [10:16:01]Write to MH i2c: E2 08 00 83 55 80 0D 01 02 00 00 00 00 51 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 83 55 00 90 00 4C [10:16:01]RAPDU: 90 00 [10:16:01]wFMCommunicate OK [10:16:01]wFMCommunicate request_size=255 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F3 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EE 02 00 35 04 06 00 CC [10:16:01]Write to MH i2c: E2 02 01 84 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F3 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EE 02 00 35 04 06 00 CC 00 00 C7 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 84 55 00 90 00 4D [10:16:01]RAPDU: 90 00 [10:16:01]wFMCommunicate OK [10:16:01]wFMCommunicate request_size=10 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 0D 02 02 05 2F 5A 35 44 DF [10:16:01]Write to MH i2c: E2 0D 00 85 55 80 0D 02 02 05 00 2F 5A 35 44 DF 00 00 3F [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 03 00 85 55 00 90 00 4E [10:16:01]RAPDU: 90 00 [10:16:01]wFMCommunicate OK [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 0D 03 02 [10:16:01]Write to MH i2c: E2 08 00 86 55 80 0D 03 02 00 00 00 00 56 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:01]Read from MH i2c: E2 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0B 00 [10:16:01]MH_I2C_Read... [10:16:01]Read from MH i2c: E2 0B 00 86 55 00 0B 42 80 6E 83 9F 72 DD 90 00 03 [10:16:01]RAPDU: 0B 42 80 6E 83 9F 72 DD 90 00 [10:16:01]wFMCommunicate OK [10:16:01]SAM_PROTO_SignData done [10:16:01]FM_MakeSignedData done [10:16:01]CreateOFDProtocolMessage [10:16:01]wFMCommunicate request_size=4 [10:16:01]MH_SAM_APDU [10:16:01]CAPDU: 80 11 00 00 [10:16:01]Write to MH i2c: E2 08 00 87 55 80 11 00 00 00 00 00 00 56 [10:16:01]Write i2c OK [10:16:01]MH_I2C_Read... [10:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:02]Read from MH i2c: E2 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 17 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: E2 17 00 87 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [10:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:02]wFMCommunicate OK [10:16:02]CreateOFDProtocolMessage done [10:16:02]OFDSenderStorePacket 192046 [10:16:02]StoreOFDPacket docnum=192046 [10:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 57 07 01 33 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F3 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EE 02 00 35 04 06 00 CC 2F 5A 35 44 DF 0B 42 80 6E 83 9F 72 DD [10:16:02]CheckFolder [10:16:02]dirname=/storage/ofd_packets [10:16:02]CheckFolder done [10:16:02]ProducePacketName [10:16:02]name=ofd_packets/00192046 [10:16:02]NVStorageSaveData ofd_packets/00192046 [10:16:02]File name is /storage/ofd_packets/00192046 [10:16:02]Write 301 bytes [10:16:02]NVStorageSaveData done [10:16:02]OFDSenderStorePacket done [10:16:02]KKMCreateOFDPacket done [10:16:02]NVStorageSaveData kkm_last_timestamp [10:16:02]File name is /storage/kkm_last_timestamp [10:16:02]Write 4 bytes [10:16:02]NVStorageSaveData done [10:16:02]ExternCall_PrintAddStr [10:16:02]wPrintStart [10:16:02]Write to MH i2c: 01 00 00 88 55 DD [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 07 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 07 00 88 55 00 00 00 00 00 FF 0F F2 [10:16:02]RasterBufferAndPrint [10:16:02]line Счет N : (1)31356 [10:16:02]line ИНН: 02508201610067 [10:16:02]line Контрольно-Кассовый Чек [10:16:02]line ПРОДАЖА [10:16:02]line ТРК (МРК, ГНК) : 21 [10:16:02]line Товар: 2710124130 [10:16:02]line Аи-92-К-5 [10:16:02]line 7.480 * 66.90 [10:16:02]line = 500.41 [10:16:02]line НДС 12% НСП 1% [10:16:02]line > о реализуемом товаре [10:16:02]line ОКРУГЛЕНИЕ: -0.41 [10:16:02]line ИТОГО: 500.00 [10:16:02]line Внесено: 500.00 [10:16:02]line СДАЧА: 0.00 [10:16:02]line НСП 1% : 4.43 [10:16:02]line НДС 12% : 53.14 [10:16:02]line Наличными: 500.00 [10:16:02]line Безнал.: 0.00 [10:16:02]line Место: АЗС № 170 "Партнер Нефть" [10:16:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:16:02]line СНО: Общий режим [10:16:02]line Чек 78 27.10.2024 10:16 [10:16:02]line Смена: 542 ФФД: 1.0 [10:16:02]line ЗНМ: 0300000110 [10:16:02]line РНМ: 0000000000091776 [10:16:02]line Версия ККМ: 001 [10:16:02]line ФМ: 0000000000871754 [10:16:02]line ФД: 192046 [10:16:02]line ФПД: 224503748969695 [10:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192046&fm=224503748969695&tin=02508201610067®Number=0000000000091776&sum=50000 [10:16:02]OFD Sender: Processing packet 192046 [packets to send 75, broken 74] [10:16:02]ProducePacketName [10:16:02]name=ofd_packets/00192046 [10:16:02]OFD Sender: To server: pG, [10:16:02]CommunicateWithHost lk.salyk.kg:30040 [10:16:02]ConnectInit lk.salyk.kg [10:16:02]written 0, free lines is 4095 [10:16:02]Connected sock=9 [10:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 57 07 01 33 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F3 12 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EE 02 00 35 04 06 00 CC 2F 5A 35 44 DF 0B 42 80 6E 83 9F 72 DD [10:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF 1C 47 00 EC 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EE 02 00 F4 03 04 00 BB B7 1D 67 B6 04 01 00 00 43 ED 17 81 32 C8 4B 8D [10:16:02]CommunicateWithHost err = 0 [10:16:02]CheckOFDResponse [10:16:02]1017 (14) - 77093643461234 [10:16:02]1041 (16) - 0000000000871754 [10:16:02]1040 (4) - 192046 [10:16:02]1012 (4) - 27.10.2024 03:47 [10:16:02]1206 (1) - 0 [10:16:02]OFD Sender: Remove packet 192046 [10:16:02]ProducePacketName [10:16:02]name=ofd_packets/00192046 [10:16:02]NVStorageDeleteData [10:16:02]Write to MH i2c: 01 00 00 B3 55 08 [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 07 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: 01 07 00 B3 55 00 00 00 00 00 A7 0C C2 [10:16:02]RasterBufferAndPrint [10:16:02]line [10:16:02]line [10:16:02]line [10:16:02]line [10:16:02]line [10:16:02]written 0, free lines is 3245 [10:16:02]MH_Cut [10:16:02]Write to MH i2c: D1 01 00 BA 55 01 E1 [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: D1 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: D1 01 00 [10:16:02]MH_I2C_Read... [10:16:02]Read from MH i2c: D1 01 00 BA 55 00 E0 [10:16:02]Write to MH i2c: 01 00 00 BB 55 10 [10:16:02]Write i2c OK [10:16:02]MH_I2C_Read... [10:16:03]OFD Sender: No OFD packet to send [10:16:03]*** Cut start [10:16:03]*** Partial cut [10:16:03]*** CUTSNS_PIN = 1 [10:16:03]*** CUTSNS_PIN = 0 [10:16:03]*** Brake cut motor [10:16:04]Read from MH i2c: 01 [10:16:04]MH_I2C_Read... [10:16:04]*** Stop cut motor [10:16:04]*** Cut end [10:16:04]Read from MH i2c: 01 07 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: 01 07 00 BB 55 00 00 00 00 00 FF 0F 25 [10:16:04]process_action close_receipt done [10:16:04]requested_data is exist [10:16:04]produce_requested_data [10:16:04]requested_item fm.sn is exist - process it [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 11 00 00 [10:16:04]Write to MH i2c: E2 08 00 BC 55 80 11 00 00 00 00 00 00 8B [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 17 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 17 00 BC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [10:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:16:04]wFMCommunicate OK [10:16:04]requested_item fd.num is exist - process it [10:16:04]SAM_PROTO_GetFieldsCounters [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 13 00 00 [10:16:04]Write to MH i2c: E2 08 00 BD 55 80 13 00 00 00 00 00 00 8E [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 62 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 62 00 BD 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:04]wFMCommunicate OK [10:16:04]SAM_PROTO_GetFieldsCounters done [10:16:04]requested_item shift.num is exist - process it [10:16:04]requested_item shift.opened is exist - process it [10:16:04]req_shift_opened [10:16:04]FM_GetShiftState [10:16:04]SAM_PROTO_GetShiftState [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 13 01 00 [10:16:04]Write to MH i2c: E2 08 00 BE 55 80 13 01 00 00 00 00 00 90 [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 0E 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 0E 00 BE 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [10:16:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:16:04]wFMCommunicate OK [10:16:04]SAM_PROTO_GetShiftState done [10:16:04]FM_GetShiftState done [10:16:04]req_shift_opened done [10:16:04]requested_item shift.open_date is exist - process it [10:16:04]req_shift_open_date [10:16:04]req_shift_open_date done [10:16:04]produce_requested_data done [10:16:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192046,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:16:04]process_action_free close_receipt [10:16:04]json_value_free [10:16:04]json_value_free done [10:16:04]process_json_proto returns [10:16:04]Send response to host [10:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192046,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:16:04]free response buf [10:16:04]execute_script done [10:16:04]execute_script returns [10:16:04]free content buf [10:16:04]Sock 5.Close socket [10:16:04]Sock 5.Thread stoped [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:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:16]accept exits with 6 [10:17:16]New connection [10:17:16]New thread 3066961252 created [10:17:16]Thread 3066817892 joined [10:17:16]Waiting for new connection... [10:17:16] Sock 6.Parse request [10:17:16]Sock 6.Check first char [10:17:16]Sock 6.First char is OK [10:17:16]request: POST /json_proto HTTP/1.0 [10:17:16]Method: POST [10:17:16]URL: /json_proto [10:17:16]Method is POST - this is cgi request [10:17:16]url: /json_proto [10:17:16]query_string will be loaded in cgi processing [10:17:16]execute_cgi json_proto POST (null) [10:17:16]execute_cgi path=json_proto method=POST [10:17:16]POST find Content-Length [10:17:16]Host: 172.17.63.131:8080 [10:17:16]Content-Length: 676 [10:17:16]Content-Type: application/json [10:17:16] [10:17:16]POST finish read [10:17:16]Found Content-Length = 676 [10:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:16]execute_script... [10:17: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)31357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:16]POST & json_proto [10:17:16]process_json_proto [10:17:16]json parsed OK: [10:17:16]protocol is kg_v1.0 [10:17:16]action value=close_receipt [10:17:16]process_action close_receipt [10:17:16]cmd_close_receipt [10:17:16]MH_GetDate [10:17:16]Write to MH i2c: F0 00 00 BF 55 03 [10:17:16]Write i2c OK [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: F0 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: F0 09 00 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: F0 09 00 BF 55 00 40 13 1E 67 22 05 6E 64 DD [10:17:16]GetLastDocTimeStamp 1730024179 [10:17:16]current date 1730024256 [10:17:16]FM_GetShiftState [10:17:16]SAM_PROTO_GetShiftState [10:17:16]wFMCommunicate request_size=4 [10:17:16]MH_SAM_APDU [10:17:16]CAPDU: 80 13 01 00 [10:17:16]Write to MH i2c: E2 08 00 C0 55 80 13 01 00 00 00 00 00 92 [10:17:16]Write i2c OK [10:17:16]MH_I2C_Read... [10:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:16]Read from MH i2c: E2 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: E2 0E 00 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: E2 0E 00 C0 55 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D3 [10:17:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:17:16]wFMCommunicate OK [10:17:16]SAM_PROTO_GetShiftState done [10:17:16]FM_GetShiftState done [10:17:16]opened in 1729989159 [10:17:16]opened+sec_in_day 1730075559 [10:17:16]quantity*price = 20003 [10:17:16]sum+1 = 20004 [10:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 79 27.10.2024 10:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192047 ФПД: 265254808805197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192047&fm=265254808805197&tin=02508201610067®Number=0000000000091776&sum=20000 [10:17:17]StoreToDocumentArchive [10:17:17]shift 542 fd 192047 [10:17:17]save to /storage/0542/doc_00192047 [10:17:17]save last doc name /storage/0542/doc_00192047 to /storage/kkm_last_doc_name [10:17:17]save OK [10:17:17]Clear old archive folders... [10:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:17]tlvbuf is 01B75A50 [10:17:17]SAM_PROTO_ClearQueue [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 09 00 00 [10:17:17]Write to MH i2c: E2 08 00 CD 55 80 09 00 00 00 00 00 00 94 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 CD 55 00 90 00 96 [10:17:17]RAPDU: 90 00 [10:17:17]wFMCommunicate OK [10:17:17]SAM_PROTO_ClearQueue done [10:17:17]KKMCreateOFDPacket [10:17:17]OFDProtocolAddRootSTLVToBuf [10:17:17]FM_MakeSignedData [10:17:17]FM_MakeSignedData [10:17:17]SAM_PROTO_SignData [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 0D 01 02 [10:17:17]Write to MH i2c: E2 08 00 CE 55 80 0D 01 02 00 00 00 00 9C [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 CE 55 00 90 00 97 [10:17:17]RAPDU: 90 00 [10:17:17]wFMCommunicate OK [10:17:17]wFMCommunicate request_size=255 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 40 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EE 02 00 35 04 06 00 F1 [10:17:17]Write to MH i2c: E2 02 01 CF 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 40 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EE 02 00 35 04 06 00 F1 00 00 49 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 CF 55 00 90 00 98 [10:17:17]RAPDU: 90 00 [10:17:17]wFMCommunicate OK [10:17:17]wFMCommunicate request_size=10 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 0D 02 02 05 3F 72 A7 5F 4D [10:17:17]Write to MH i2c: E2 0D 00 D0 55 80 0D 02 02 05 00 3F 72 A7 5F 4D 00 00 AD [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 03 00 D0 55 00 90 00 99 [10:17:17]RAPDU: 90 00 [10:17:17]wFMCommunicate OK [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 0D 03 02 [10:17:17]Write to MH i2c: E2 08 00 D1 55 80 0D 03 02 00 00 00 00 A1 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 0B 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 0B 00 D1 55 00 05 56 FD F9 C2 16 2D 05 90 00 FD [10:17:17]RAPDU: 05 56 FD F9 C2 16 2D 05 90 00 [10:17:17]wFMCommunicate OK [10:17:17]SAM_PROTO_SignData done [10:17:17]FM_MakeSignedData done [10:17:17]CreateOFDProtocolMessage [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 11 00 00 [10:17:17]Write to MH i2c: E2 08 00 D2 55 80 11 00 00 00 00 00 00 A1 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 17 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 17 00 D2 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [10:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:17:17]wFMCommunicate OK [10:17:17]CreateOFDProtocolMessage done [10:17:17]OFDSenderStorePacket 192047 [10:17:17]StoreOFDPacket docnum=192047 [10:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 87 07 01 92 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 40 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EE 02 00 35 04 06 00 F1 3F 72 A7 5F 4D 05 56 FD F9 C2 16 2D 05 [10:17:17]CheckFolder [10:17:17]dirname=/storage/ofd_packets [10:17:17]CheckFolder done [10:17:17]ProducePacketName [10:17:17]name=ofd_packets/00192047 [10:17:17]NVStorageSaveData ofd_packets/00192047 [10:17:17]File name is /storage/ofd_packets/00192047 [10:17:17]Write 301 bytes [10:17:17]NVStorageSaveData done [10:17:17]OFDSenderStorePacket done [10:17:17]KKMCreateOFDPacket done [10:17:17]NVStorageSaveData kkm_last_timestamp [10:17:17]File name is /storage/kkm_last_timestamp [10:17:17]Write 4 bytes [10:17:17]NVStorageSaveData done [10:17:17]ExternCall_PrintAddStr [10:17:17]wPrintStart [10:17:17]Write to MH i2c: 01 00 00 D3 55 28 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: 01 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: 01 07 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: 01 07 00 D3 55 00 00 00 00 00 FF 0F 3D [10:17:17]RasterBufferAndPrint [10:17:17]line Счет N : (1)31357 [10:17:17]line ИНН: 02508201610067 [10:17:17]line Контрольно-Кассовый Чек [10:17:17]line ПРОДАЖА [10:17:17]line ТРК (МРК, ГНК) : 21 [10:17:17]line Товар: 2710124130 [10:17:17]line Аи-92-К-5 [10:17:17]line 2.990 * 66.90 [10:17:17]line = 200.03 [10:17:17]line НДС 12% НСП 1% [10:17:17]line > о реализуемом товаре [10:17:17]line ОКРУГЛЕНИЕ: -0.03 [10:17:17]line ИТОГО: 200.00 [10:17:17]line Внесено: 200.00 [10:17:17]line СДАЧА: 0.00 [10:17:17]line НСП 1% : 1.77 [10:17:17]line НДС 12% : 21.24 [10:17:17]line Наличными: 200.00 [10:17:17]line Безнал.: 0.00 [10:17:17]line Место: АЗС № 170 "Партнер Нефть" [10:17:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:17:17]line СНО: Общий режим [10:17:17]line Чек 79 27.10.2024 10:17 [10:17:17]line Смена: 542 ФФД: 1.0 [10:17:17]line ЗНМ: 0300000110 [10:17:17]line РНМ: 0000000000091776 [10:17:17]line Версия ККМ: 001 [10:17:17]line ФМ: 0000000000871754 [10:17:17]line ФД: 192047 [10:17:17]line ФПД: 265254808805197 [10:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192047&fm=265254808805197&tin=02508201610067®Number=0000000000091776&sum=20000 [10:17:18]OFD Sender: Processing packet 192047 [packets to send 75, broken 74] [10:17:18]ProducePacketName [10:17:18]name=ofd_packets/00192047 [10:17:18]OFD Sender: To server: pG, [10:17:18]CommunicateWithHost lk.salyk.kg:30040 [10:17:18]ConnectInit lk.salyk.kg [10:17:18]written 0, free lines is 4095 [10:17:18]Connected sock=5 [10:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 87 07 01 92 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 40 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EE 02 00 35 04 06 00 F1 3F 72 A7 5F 4D 05 56 FD F9 C2 16 2D 05 [10:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CA AE 47 00 10 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EE 02 00 F4 03 04 00 07 B8 1D 67 B6 04 01 00 00 03 1D 05 B1 88 3E 4F 82 [10:17:18]CommunicateWithHost err = 0 [10:17:18]CheckOFDResponse [10:17:18]1017 (14) - 77093643461234 [10:17:18]1041 (16) - 0000000000871754 [10:17:18]1040 (4) - 192047 [10:17:18]1012 (4) - 27.10.2024 03:48 [10:17:18]1206 (1) - 0 [10:17:18]OFD Sender: Remove packet 192047 [10:17:18]ProducePacketName [10:17:18]name=ofd_packets/00192047 [10:17:18]NVStorageDeleteData [10:17:18]Write to MH i2c: 01 00 00 FE 55 53 [10:17:18]Write i2c OK [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: 01 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: 01 07 00 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: 01 07 00 FE 55 00 00 00 00 00 A9 0C 0F [10:17:18]RasterBufferAndPrint [10:17:18]line [10:17:18]line [10:17:18]line [10:17:18]line [10:17:18]line [10:17:18]written 0, free lines is 3248 [10:17:18]MH_Cut [10:17:18]Write to MH i2c: D1 01 00 05 56 01 2D [10:17:18]Write i2c OK [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: D1 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: D1 01 00 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: D1 01 00 05 56 00 2C [10:17:18]Write to MH i2c: 01 00 00 06 56 5C [10:17:18]Write i2c OK [10:17:18]MH_I2C_Read... [10:17:19]OFD Sender: No OFD packet to send [10:17:19]*** Cut start [10:17:19]*** Partial cut [10:17:19]*** CUTSNS_PIN = 1 [10:17:19]*** CUTSNS_PIN = 0 [10:17:19]*** Brake cut motor [10:17:20]Read from MH i2c: 01 [10:17:20]MH_I2C_Read... [10:17:20]*** Stop cut motor [10:17:20]*** Cut end [10:17:20]Read from MH i2c: 01 07 00 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: 01 07 00 06 56 00 00 00 00 00 FF 0F 71 [10:17:20]process_action close_receipt done [10:17:20]requested_data is exist [10:17:20]produce_requested_data [10:17:20]requested_item fm.sn is exist - process it [10:17:20]wFMCommunicate request_size=4 [10:17:20]MH_SAM_APDU [10:17:20]CAPDU: 80 11 00 00 [10:17:20]Write to MH i2c: E2 08 00 07 56 80 11 00 00 00 00 00 00 D7 [10:17:20]Write i2c OK [10:17:20]MH_I2C_Read... [10:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:20]Read from MH i2c: E2 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 17 00 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 17 00 07 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [10:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:17:20]wFMCommunicate OK [10:17:20]requested_item fd.num is exist - process it [10:17:20]SAM_PROTO_GetFieldsCounters [10:17:20]wFMCommunicate request_size=4 [10:17:20]MH_SAM_APDU [10:17:20]CAPDU: 80 13 00 00 [10:17:20]Write to MH i2c: E2 08 00 08 56 80 13 00 00 00 00 00 00 DA [10:17:20]Write i2c OK [10:17:20]MH_I2C_Read... [10:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:20]Read from MH i2c: E2 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 62 00 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 62 00 08 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [10:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:20]wFMCommunicate OK [10:17:20]SAM_PROTO_GetFieldsCounters done [10:17:20]requested_item shift.num is exist - process it [10:17:20]requested_item shift.opened is exist - process it [10:17:20]req_shift_opened [10:17:20]FM_GetShiftState [10:17:20]SAM_PROTO_GetShiftState [10:17:20]wFMCommunicate request_size=4 [10:17:20]MH_SAM_APDU [10:17:20]CAPDU: 80 13 01 00 [10:17:20]Write to MH i2c: E2 08 00 09 56 80 13 01 00 00 00 00 00 DC [10:17:20]Write i2c OK [10:17:20]MH_I2C_Read... [10:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:20]Read from MH i2c: E2 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 0E 00 [10:17:20]MH_I2C_Read... [10:17:20]Read from MH i2c: E2 0E 00 09 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [10:17:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:17:20]wFMCommunicate OK [10:17:20]SAM_PROTO_GetShiftState done [10:17:20]FM_GetShiftState done [10:17:20]req_shift_opened done [10:17:20]requested_item shift.open_date is exist - process it [10:17:20]req_shift_open_date [10:17:20]req_shift_open_date done [10:17:20]produce_requested_data done [10:17:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192047,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:17:20]process_action_free close_receipt [10:17:20]json_value_free [10:17:20]json_value_free done [10:17:20]process_json_proto returns [10:17:20]Send response to host [10:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192047,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:17:20]free response buf [10:17:20]execute_script done [10:17:20]execute_script returns [10:17:20]free content buf [10:17:20]Sock 6.Close socket [10:17:20]Sock 6.Thread stoped [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:48]accept exits with 8 [10:17:48]New connection [10:17:48]New thread 3066817892 created [10:17:48]Thread 3066961252 joined [10:17:48]Waiting for new connection... [10:17:48] Sock 8.Parse request [10:17:48]Sock 8.Check first char [10:17:48]Sock 8.First char is OK [10:17:48]request: POST /json_proto HTTP/1.0 [10:17:48]Method: POST [10:17:48]URL: /json_proto [10:17:48]Method is POST - this is cgi request [10:17:48]url: /json_proto [10:17:48]query_string will be loaded in cgi processing [10:17:48]execute_cgi json_proto POST (null) [10:17:48]execute_cgi path=json_proto method=POST [10:17:48]POST find Content-Length [10:17:48]Host: 172.17.63.131:8080 [10:17:48]Content-Length: 681 [10:17:48]Content-Type: application/json [10:17:48] [10:17:48]POST finish read [10:17:48]Found Content-Length = 681 [10:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:48]execute_script... [10:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:48]POST & json_proto [10:17:48]process_json_proto [10:17:48]json parsed OK: [10:17:48]protocol is kg_v1.0 [10:17:48]action value=close_receipt [10:17:48]process_action close_receipt [10:17:48]cmd_close_receipt [10:17:48]MH_GetDate [10:17:48]Write to MH i2c: F0 00 00 0A 56 4F [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: F0 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: F0 09 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: F0 09 00 0A 56 00 60 13 1E 67 22 05 6E 64 49 [10:17:48]GetLastDocTimeStamp 1730024256 [10:17:48]current date 1730024288 [10:17:48]FM_GetShiftState [10:17:48]SAM_PROTO_GetShiftState [10:17:48]wFMCommunicate request_size=4 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 13 01 00 [10:17:48]Write to MH i2c: E2 08 00 0B 56 80 13 01 00 00 00 00 00 DE [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:48]Read from MH i2c: E2 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 0E 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 0E 00 0B 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [10:17:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:17:48]wFMCommunicate OK [10:17:48]SAM_PROTO_GetShiftState done [10:17:48]FM_GetShiftState done [10:17:48]opened in 1729989159 [10:17:48]opened+sec_in_day 1730075559 [10:17:48]quantity*price = 120018 [10:17:48]sum+1 = 120020 [10:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 80 27.10.2024 10:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192048 ФПД: 168345444490193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192048&fm=168345444490193&tin=02508201610067®Number=0000000000091776&sum=120000 [10:17:50]StoreToDocumentArchive [10:17:50]shift 542 fd 192048 [10:17:50]save to /storage/0542/doc_00192048 [10:17:50]save last doc name /storage/0542/doc_00192048 to /storage/kkm_last_doc_name [10:17:50]save OK [10:17:50]Clear old archive folders... [10:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:50]tlvbuf is 018CA9F0 [10:17:50]SAM_PROTO_ClearQueue [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 09 00 00 [10:17:50]Write to MH i2c: E2 08 00 18 56 80 09 00 00 00 00 00 00 E0 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 18 56 00 90 00 E2 [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]SAM_PROTO_ClearQueue done [10:17:50]KKMCreateOFDPacket [10:17:50]OFDProtocolAddRootSTLVToBuf [10:17:50]FM_MakeSignedData [10:17:50]FM_MakeSignedData [10:17:50]SAM_PROTO_SignData [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 01 02 [10:17:50]Write to MH i2c: E2 08 00 19 56 80 0D 01 02 00 00 00 00 E8 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 19 56 00 90 00 E3 [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]wFMCommunicate request_size=255 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EE 02 00 35 04 06 00 99 [10:17:50]Write to MH i2c: E2 02 01 1A 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EE 02 00 35 04 06 00 99 00 00 A4 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 1A 56 00 90 00 E4 [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]wFMCommunicate request_size=10 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 02 02 05 1B FA 6B 1B D1 [10:17:50]Write to MH i2c: E2 0D 00 1B 56 80 0D 02 02 05 00 1B FA 6B 1B D1 00 00 61 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 1B 56 00 90 00 E5 [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 03 02 [10:17:50]Write to MH i2c: E2 08 00 1C 56 80 0D 03 02 00 00 00 00 ED [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 0B 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 0B 00 1C 56 00 FD 9A 66 39 0F 2A AE 37 90 00 42 [10:17:50]RAPDU: FD 9A 66 39 0F 2A AE 37 90 00 [10:17:50]wFMCommunicate OK [10:17:50]SAM_PROTO_SignData done [10:17:50]FM_MakeSignedData done [10:17:50]CreateOFDProtocolMessage [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 11 00 00 [10:17:50]Write to MH i2c: E2 08 00 1D 56 80 11 00 00 00 00 00 00 ED [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 17 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 17 00 1D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [10:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:17:50]wFMCommunicate OK [10:17:50]CreateOFDProtocolMessage done [10:17:50]OFDSenderStorePacket 192048 [10:17:50]StoreOFDPacket docnum=192048 [10:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C DE 07 01 6A 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EE 02 00 35 04 06 00 99 1B FA 6B 1B D1 FD 9A 66 39 0F 2A AE 37 [10:17:50]CheckFolder [10:17:50]dirname=/storage/ofd_packets [10:17:50]CheckFolder done [10:17:50]ProducePacketName [10:17:50]name=ofd_packets/00192048 [10:17:50]NVStorageSaveData ofd_packets/00192048 [10:17:50]File name is /storage/ofd_packets/00192048 [10:17:50]Write 301 bytes [10:17:50]NVStorageSaveData done [10:17:50]OFDSenderStorePacket done [10:17:50]KKMCreateOFDPacket done [10:17:50]NVStorageSaveData kkm_last_timestamp [10:17:50]File name is /storage/kkm_last_timestamp [10:17:50]Write 4 bytes [10:17:50]NVStorageSaveData done [10:17:50]ExternCall_PrintAddStr [10:17:50]wPrintStart [10:17:50]Write to MH i2c: 01 00 00 1E 56 74 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: 01 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: 01 07 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: 01 07 00 1E 56 00 00 00 00 00 FF 0F 89 [10:17:50]RasterBufferAndPrint [10:17:50]line Счет N : (1)31358 [10:17:50]line ИНН: 02508201610067 [10:17:50]line Контрольно-Кассовый Чек [10:17:50]line ПРОДАЖА [10:17:50]line ТРК (МРК, ГНК) : 12 [10:17:50]line Товар: 2710124130 [10:17:50]line Аи-92-К-5 [10:17:50]line 17.940 * 66.90 [10:17:50]line = 1200.19 [10:17:50]line НДС 12% НСП 1% [10:17:50]line > о реализуемом товаре [10:17:50]line ОКРУГЛЕНИЕ: -0.19 [10:17:50]line ИТОГО: 1200.00 [10:17:50]line Внесено: 1200.00 [10:17:50]line СДАЧА: 0.00 [10:17:50]line НСП 1% : 10.62 [10:17:50]line НДС 12% : 127.45 [10:17:50]line Наличными: 1200.00 [10:17:50]line Безнал.: 0.00 [10:17:50]line Место: АЗС № 170 "Партнер Нефть" [10:17:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:17:50]line СНО: Общий режим [10:17:50]line Чек 80 27.10.2024 10:18 [10:17:50]line Смена: 542 ФФД: 1.0 [10:17:50]line ЗНМ: 0300000110 [10:17:50]line РНМ: 0000000000091776 [10:17:50]line Версия ККМ: 001 [10:17:50]line ФМ: 0000000000871754 [10:17:50]line ФД: 192048 [10:17:50]line ФПД: 168345444490193 [10:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192048&fm=168345444490193&tin=02508201610067®Number=0000000000091776&sum=120000 [10:17:50]OFD Sender: Processing packet 192048 [packets to send 75, broken 74] [10:17:50]ProducePacketName [10:17:50]name=ofd_packets/00192048 [10:17:50]OFD Sender: To server: pG, [10:17:50]CommunicateWithHost lk.salyk.kg:30040 [10:17:50]ConnectInit lk.salyk.kg [10:17:50]written 0, free lines is 4095 [10:17:51]Connected sock=6 [10:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C DE 07 01 6A 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EE 02 00 35 04 06 00 99 1B FA 6B 1B D1 FD 9A 66 39 0F 2A AE 37 [10:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 A1 47 00 74 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EE 02 00 F4 03 04 00 28 B8 1D 67 B6 04 01 00 00 B0 A2 4F E8 F8 08 CB 59 [10:17:51]CommunicateWithHost err = 0 [10:17:51]CheckOFDResponse [10:17:51]1017 (14) - 77093643461234 [10:17:51]1041 (16) - 0000000000871754 [10:17:51]1040 (4) - 192048 [10:17:51]1012 (4) - 27.10.2024 03:48 [10:17:51]1206 (1) - 0 [10:17:51]OFD Sender: Remove packet 192048 [10:17:51]ProducePacketName [10:17:51]name=ofd_packets/00192048 [10:17:51]NVStorageDeleteData [10:17:51]Write to MH i2c: 01 00 00 49 56 9F [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 49 56 00 00 00 00 00 B6 0C 68 [10:17:51]RasterBufferAndPrint [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]written 0, free lines is 3262 [10:17:51]MH_Cut [10:17:51]Write to MH i2c: D1 01 00 50 56 01 78 [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: D1 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: D1 01 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: D1 01 00 50 56 00 77 [10:17:51]Write to MH i2c: 01 00 00 51 56 A7 [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]OFD Sender: No OFD packet to send [10:17:52]*** Cut start [10:17:52]*** Partial cut [10:17:52]*** CUTSNS_PIN = 1 [10:17:52]*** CUTSNS_PIN = 0 [10:17:52]*** Brake cut motor [10:17:52]Read from MH i2c: 01 [10:17:52]MH_I2C_Read... [10:17:52]*** Stop cut motor [10:17:52]*** Cut end [10:17:52]Read from MH i2c: 01 07 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 07 00 51 56 00 00 00 00 00 FF 0F BC [10:17:52]process_action close_receipt done [10:17:52]requested_data is exist [10:17:52]produce_requested_data [10:17:52]requested_item fm.sn is exist - process it [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 11 00 00 [10:17:52]Write to MH i2c: E2 08 00 52 56 80 11 00 00 00 00 00 00 22 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 52 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [10:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:17:52]wFMCommunicate OK [10:17:52]requested_item fd.num is exist - process it [10:17:52]SAM_PROTO_GetFieldsCounters [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 13 00 00 [10:17:52]Write to MH i2c: E2 08 00 53 56 80 13 00 00 00 00 00 00 25 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 53 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetFieldsCounters done [10:17:53]requested_item shift.num is exist - process it [10:17:53]requested_item shift.opened is exist - process it [10:17:53]req_shift_opened [10:17:53]FM_GetShiftState [10:17:53]SAM_PROTO_GetShiftState [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 13 01 00 [10:17:53]Write to MH i2c: E2 08 00 54 56 80 13 01 00 00 00 00 00 27 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 54 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [10:17:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetShiftState done [10:17:53]FM_GetShiftState done [10:17:53]req_shift_opened done [10:17:53]requested_item shift.open_date is exist - process it [10:17:53]req_shift_open_date [10:17:53]req_shift_open_date done [10:17:53]produce_requested_data done [10:17:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192048,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:17:53]process_action_free close_receipt [10:17:53]json_value_free [10:17:53]json_value_free done [10:17:53]process_json_proto returns [10:17:53]Send response to host [10:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192048,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:17:53]free response buf [10:17:53]execute_script done [10:17:53]execute_script returns [10:17:53]free content buf [10:17:53]Sock 8.Close socket [10:17:53]Sock 8.Thread stoped [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:45]accept exits with 5 [10:18:45]New connection [10:18:45]New thread 3066961252 created [10:18:45]Thread 3066817892 joined [10:18:45]Waiting for new connection... [10:18:45] Sock 5.Parse request [10:18:45]Sock 5.Check first char [10:18:45]Sock 5.First char is OK [10:18:45]request: POST /json_proto HTTP/1.0 [10:18:45]Method: POST [10:18:45]URL: /json_proto [10:18:45]Method is POST - this is cgi request [10:18:45]url: /json_proto [10:18:45]query_string will be loaded in cgi processing [10:18:45]execute_cgi json_proto POST (null) [10:18:45]execute_cgi path=json_proto method=POST [10:18:45]POST find Content-Length [10:18:45]Host: 172.17.63.131:8080 [10:18:45]Content-Length: 681 [10:18:45]Content-Type: application/json [10:18:45] [10:18:45]POST finish read [10:18:45]Found Content-Length = 681 [10:18:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.050, "sum" : 1475.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1475.00, "payments": [ { "type": 0, "sum" : 1475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:45]execute_script... [10:18: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)31359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.050, "sum" : 1475.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1475.00, "payments": [ { "type": 0, "sum" : 1475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:45]POST & json_proto [10:18:45]process_json_proto [10:18:45]json parsed OK: [10:18:45]protocol is kg_v1.0 [10:18:45]action value=close_receipt [10:18:45]process_action close_receipt [10:18:45]cmd_close_receipt [10:18:45]MH_GetDate [10:18:45]Write to MH i2c: F0 00 00 55 56 9A [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 09 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: F0 09 00 55 56 00 99 13 1E 67 22 05 6E 64 CD [10:18:45]GetLastDocTimeStamp 1730024288 [10:18:45]current date 1730024345 [10:18:45]FM_GetShiftState [10:18:45]SAM_PROTO_GetShiftState [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 13 01 00 [10:18:45]Write to MH i2c: E2 08 00 56 56 80 13 01 00 00 00 00 00 29 [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:46]Read from MH i2c: E2 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 0E 00 [10:18:46]MH_I2C_Read... [10:18:46]Read from MH i2c: E2 0E 00 56 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6A [10:18:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:18:46]wFMCommunicate OK [10:18:46]SAM_PROTO_GetShiftState done [10:18:46]FM_GetShiftState done [10:18:46]opened in 1729989159 [10:18:46]opened+sec_in_day 1730075559 [10:18:46]quantity*price = 147514 [10:18:46]sum+1 = 147516 [10:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1475.00 Внесено: 1500.00 СДАЧА: 25.00 НСП 1% : 13.05 НДС 12% : 156.65 Наличными: 1475.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 81 27.10.2024 10:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192049 ФПД: 93473449394045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192049&fm=93473449394045&tin=02508201610067®Number=0000000000091776&sum=147500 [10:18:47]StoreToDocumentArchive [10:18:47]shift 542 fd 192049 [10:18:47]save to /storage/0542/doc_00192049 [10:18:47]save last doc name /storage/0542/doc_00192049 to /storage/kkm_last_doc_name [10:18:47]save OK [10:18:47]Clear old archive folders... [10:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:47]tlvbuf is 01992260 [10:18:47]SAM_PROTO_ClearQueue [10:18:47]wFMCommunicate request_size=4 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 09 00 00 [10:18:47]Write to MH i2c: E2 08 00 63 56 80 09 00 00 00 00 00 00 2B [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 63 56 00 90 00 2D [10:18:47]RAPDU: 90 00 [10:18:47]wFMCommunicate OK [10:18:47]SAM_PROTO_ClearQueue done [10:18:47]KKMCreateOFDPacket [10:18:47]OFDProtocolAddRootSTLVToBuf [10:18:47]FM_MakeSignedData [10:18:47]FM_MakeSignedData [10:18:47]SAM_PROTO_SignData [10:18:47]wFMCommunicate request_size=4 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 0D 01 02 [10:18:47]Write to MH i2c: E2 08 00 64 56 80 0D 01 02 00 00 00 00 33 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 64 56 00 90 00 2E [10:18:47]RAPDU: 90 00 [10:18:47]wFMCommunicate OK [10:18:47]wFMCommunicate request_size=255 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3B 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 3D 00 00 00 00 07 04 06 00 2C 40 02 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 99 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EE 02 00 35 04 06 00 55 [10:18:47]Write to MH i2c: E2 02 01 65 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3B 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 3D 00 00 00 00 07 04 06 00 2C 40 02 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 99 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EE 02 00 35 04 06 00 55 00 00 F3 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 65 56 00 90 00 2F [10:18:47]RAPDU: 90 00 [10:18:47]wFMCommunicate OK [10:18:47]wFMCommunicate request_size=10 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 0D 02 02 05 03 7B BF 3F 7D [10:18:47]Write to MH i2c: E2 0D 00 66 56 80 0D 02 02 05 00 03 7B BF 3F 7D 00 00 39 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 03 00 66 56 00 90 00 30 [10:18:47]RAPDU: 90 00 [10:18:47]wFMCommunicate OK [10:18:47]wFMCommunicate request_size=4 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 0D 03 02 [10:18:47]Write to MH i2c: E2 08 00 67 56 80 0D 03 02 00 00 00 00 38 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 0B 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 0B 00 67 56 00 0E D7 3C 32 34 58 9F B9 90 00 70 [10:18:47]RAPDU: 0E D7 3C 32 34 58 9F B9 90 00 [10:18:47]wFMCommunicate OK [10:18:47]SAM_PROTO_SignData done [10:18:47]FM_MakeSignedData done [10:18:47]CreateOFDProtocolMessage [10:18:47]wFMCommunicate request_size=4 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 11 00 00 [10:18:47]Write to MH i2c: E2 08 00 68 56 80 11 00 00 00 00 00 00 38 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 17 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 17 00 68 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [10:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:18:47]wFMCommunicate OK [10:18:47]CreateOFDProtocolMessage done [10:18:47]OFDSenderStorePacket 192049 [10:18:47]StoreOFDPacket docnum=192049 [10:18:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 90 07 01 0F 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3B 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 3D 00 00 00 00 07 04 06 00 2C 40 02 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 99 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EE 02 00 35 04 06 00 55 03 7B BF 3F 7D 0E D7 3C 32 34 58 9F B9 [10:18:47]CheckFolder [10:18:47]dirname=/storage/ofd_packets [10:18:47]CheckFolder done [10:18:47]ProducePacketName [10:18:47]name=ofd_packets/00192049 [10:18:47]NVStorageSaveData ofd_packets/00192049 [10:18:47]File name is /storage/ofd_packets/00192049 [10:18:47]Write 301 bytes [10:18:47]NVStorageSaveData done [10:18:47]OFDSenderStorePacket done [10:18:47]KKMCreateOFDPacket done [10:18:47]NVStorageSaveData kkm_last_timestamp [10:18:47]File name is /storage/kkm_last_timestamp [10:18:47]Write 4 bytes [10:18:47]NVStorageSaveData done [10:18:47]ExternCall_PrintAddStr [10:18:47]wPrintStart [10:18:47]Write to MH i2c: 01 00 00 69 56 BF [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 07 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: 01 07 00 69 56 00 00 00 00 00 FF 0F D4 [10:18:47]RasterBufferAndPrint [10:18:47]line Счет N : (1)31359 [10:18:47]line ИНН: 02508201610067 [10:18:47]line Контрольно-Кассовый Чек [10:18:47]line ПРОДАЖА [10:18:47]line ТРК (МРК, ГНК) : 21 [10:18:47]line Товар: 2710124130 [10:18:47]line Аи-92-К-5 [10:18:47]line 22.050 * 66.90 [10:18:47]line = 1475.15 [10:18:47]line НДС 12% НСП 1% [10:18:47]line > о реализуемом товаре [10:18:47]line ОКРУГЛЕНИЕ: -0.15 [10:18:47]line ИТОГО: 1475.00 [10:18:47]line Внесено: 1500.00 [10:18:47]line СДАЧА: 25.00 [10:18:47]line НСП 1% : 13.05 [10:18:47]line НДС 12% : 156.65 [10:18:47]line Наличными: 1475.00 [10:18:47]line Безнал.: 0.00 [10:18:47]line Место: АЗС № 170 "Партнер Нефть" [10:18:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:18:47]line СНО: Общий режим [10:18:47]line Чек 81 27.10.2024 10:19 [10:18:47]line Смена: 542 ФФД: 1.0 [10:18:47]line ЗНМ: 0300000110 [10:18:47]line РНМ: 0000000000091776 [10:18:47]line Версия ККМ: 001 [10:18:47]line ФМ: 0000000000871754 [10:18:47]line ФД: 192049 [10:18:47]line ФПД: 93473449394045 [10:18:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192049&fm=93473449394045&tin=02508201610067®Number=0000000000091776&sum=147500 [10:18:48]OFD Sender: Processing packet 192049 [packets to send 75, broken 74] [10:18:48]ProducePacketName [10:18:48]name=ofd_packets/00192049 [10:18:48]OFD Sender: To server: pG, [10:18:48]CommunicateWithHost lk.salyk.kg:30040 [10:18:48]ConnectInit lk.salyk.kg [10:18:48]written 0, free lines is 4095 [10:18:48]Connected sock=8 [10:18:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 90 07 01 0F 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3B 40 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 40 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 3D 00 00 00 00 07 04 06 00 2C 40 02 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 99 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EE 02 00 35 04 06 00 55 03 7B BF 3F 7D 0E D7 3C 32 34 58 9F B9 [10:18:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 94 63 47 00 5D B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EE 02 00 F4 03 04 00 61 B8 1D 67 B6 04 01 00 00 D2 9F 02 DC 77 E1 3D 04 [10:18:48]CommunicateWithHost err = 0 [10:18:48]CheckOFDResponse [10:18:48]1017 (14) - 77093643461234 [10:18:48]1041 (16) - 0000000000871754 [10:18:48]1040 (4) - 192049 [10:18:48]1012 (4) - 27.10.2024 03:49 [10:18:48]1206 (1) - 0 [10:18:48]OFD Sender: Remove packet 192049 [10:18:48]ProducePacketName [10:18:48]name=ofd_packets/00192049 [10:18:48]NVStorageDeleteData [10:18:48]Write to MH i2c: 01 00 00 94 56 EA [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: 01 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: 01 07 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: 01 07 00 94 56 00 00 00 00 00 A5 0C A2 [10:18:48]RasterBufferAndPrint [10:18:48]line [10:18:48]line [10:18:48]line [10:18:48]line [10:18:48]line [10:18:48]written 0, free lines is 3243 [10:18:48]MH_Cut [10:18:48]Write to MH i2c: D1 01 00 9B 56 01 C3 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: D1 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: D1 01 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: D1 01 00 9B 56 00 C2 [10:18:48]Write to MH i2c: 01 00 00 9C 56 F2 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]OFD Sender: No OFD packet to send [10:18:49]*** Cut start [10:18:49]*** Partial cut [10:18:49]*** CUTSNS_PIN = 1 [10:18:49]*** CUTSNS_PIN = 0 [10:18:49]*** Brake cut motor [10:18:50]Read from MH i2c: 01 [10:18:50]MH_I2C_Read... [10:18:50]*** Stop cut motor [10:18:50]*** Cut end [10:18:50]Read from MH i2c: 01 07 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: 01 07 00 9C 56 00 00 00 00 00 FF 0F 07 [10:18:50]process_action close_receipt done [10:18:50]requested_data is exist [10:18:50]produce_requested_data [10:18:50]requested_item fm.sn is exist - process it [10:18:50]wFMCommunicate request_size=4 [10:18:50]MH_SAM_APDU [10:18:50]CAPDU: 80 11 00 00 [10:18:50]Write to MH i2c: E2 08 00 9D 56 80 11 00 00 00 00 00 00 6D [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:50]Read from MH i2c: E2 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 17 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 17 00 9D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [10:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:18:50]wFMCommunicate OK [10:18:50]requested_item fd.num is exist - process it [10:18:50]SAM_PROTO_GetFieldsCounters [10:18:50]wFMCommunicate request_size=4 [10:18:50]MH_SAM_APDU [10:18:50]CAPDU: 80 13 00 00 [10:18:50]Write to MH i2c: E2 08 00 9E 56 80 13 00 00 00 00 00 00 70 [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:50]Read from MH i2c: E2 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 62 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 62 00 9E 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:18:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:50]wFMCommunicate OK [10:18:50]SAM_PROTO_GetFieldsCounters done [10:18:50]requested_item shift.num is exist - process it [10:18:50]requested_item shift.opened is exist - process it [10:18:50]req_shift_opened [10:18:50]FM_GetShiftState [10:18:50]SAM_PROTO_GetShiftState [10:18:50]wFMCommunicate request_size=4 [10:18:50]MH_SAM_APDU [10:18:50]CAPDU: 80 13 01 00 [10:18:50]Write to MH i2c: E2 08 00 9F 56 80 13 01 00 00 00 00 00 72 [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:50]Read from MH i2c: E2 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 0E 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: E2 0E 00 9F 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [10:18:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:18:50]wFMCommunicate OK [10:18:50]SAM_PROTO_GetShiftState done [10:18:50]FM_GetShiftState done [10:18:50]req_shift_opened done [10:18:50]requested_item shift.open_date is exist - process it [10:18:50]req_shift_open_date [10:18:50]req_shift_open_date done [10:18:50]produce_requested_data done [10:18:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192049,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:18:50]process_action_free close_receipt [10:18:50]json_value_free [10:18:50]json_value_free done [10:18:50]process_json_proto returns [10:18:50]Send response to host [10:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192049,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:18:50]free response buf [10:18:50]execute_script done [10:18:50]execute_script returns [10:18:50]free content buf [10:18:50]Sock 5.Close socket [10:18:50]Sock 5.Thread stoped [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]accept exits with 6 [10:19:43]New connection [10:19:43]New thread 3066817892 created [10:19:43]Thread 3066961252 joined [10:19:43]Waiting for new connection... [10:19:43] Sock 6.Parse request [10:19:43]Sock 6.Check first char [10:19:43]Sock 6.First char is OK [10:19:43]request: POST /json_proto HTTP/1.0 [10:19:43]Method: POST [10:19:43]URL: /json_proto [10:19:43]Method is POST - this is cgi request [10:19:43]url: /json_proto [10:19:43]query_string will be loaded in cgi processing [10:19:43]execute_cgi json_proto POST (null) [10:19:43]execute_cgi path=json_proto method=POST [10:19:43]POST find Content-Length [10:19:43]Host: 172.17.63.131:8080 [10:19:43]Content-Length: 676 [10:19:43]Content-Type: application/json [10:19:43] [10:19:43]POST finish read [10:19:43]Found Content-Length = 676 [10:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:43]execute_script... [10:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:43]POST & json_proto [10:19:43]process_json_proto [10:19:43]json parsed OK: [10:19:43]protocol is kg_v1.0 [10:19:43]action value=close_receipt [10:19:43]process_action close_receipt [10:19:43]cmd_close_receipt [10:19:43]MH_GetDate [10:19:43]Write to MH i2c: F0 00 00 A0 56 E5 [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 09 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 09 00 A0 56 00 D3 13 1E 67 22 05 6E 64 52 [10:19:43]GetLastDocTimeStamp 1730024345 [10:19:43]current date 1730024403 [10:19:43]FM_GetShiftState [10:19:43]SAM_PROTO_GetShiftState [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 13 01 00 [10:19:43]Write to MH i2c: E2 08 00 A1 56 80 13 01 00 00 00 00 00 74 [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 0E 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 0E 00 A1 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B5 [10:19:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:19:43]wFMCommunicate OK [10:19:43]SAM_PROTO_GetShiftState done [10:19:43]FM_GetShiftState done [10:19:43]opened in 1729989159 [10:19:43]opened+sec_in_day 1730075559 [10:19:43]quantity*price = 64023 [10:19:43]sum+1 = 64024 [10:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 82 27.10.2024 10:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192050 ФПД: 220960105215735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192050&fm=220960105215735&tin=02508201610067®Number=0000000000091776&sum=64000 [10:19:44]StoreToDocumentArchive [10:19:44]shift 542 fd 192050 [10:19:44]save to /storage/0542/doc_00192050 [10:19:44]save last doc name /storage/0542/doc_00192050 to /storage/kkm_last_doc_name [10:19:44]save OK [10:19:44]Clear old archive folders... [10:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:44]tlvbuf is 015CCD40 [10:19:44]SAM_PROTO_ClearQueue [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 09 00 00 [10:19:44]Write to MH i2c: E2 08 00 AE 56 80 09 00 00 00 00 00 00 76 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 AE 56 00 90 00 78 [10:19:44]RAPDU: 90 00 [10:19:44]wFMCommunicate OK [10:19:44]SAM_PROTO_ClearQueue done [10:19:44]KKMCreateOFDPacket [10:19:44]OFDProtocolAddRootSTLVToBuf [10:19:44]FM_MakeSignedData [10:19:44]FM_MakeSignedData [10:19:44]SAM_PROTO_SignData [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 0D 01 02 [10:19:44]Write to MH i2c: E2 08 00 AF 56 80 0D 01 02 00 00 00 00 7E [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 AF 56 00 90 00 79 [10:19:44]RAPDU: 90 00 [10:19:44]wFMCommunicate OK [10:19:44]wFMCommunicate request_size=255 [10:19:44]MH_SAM_APDU [10:19: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 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 52 00 00 00 F4 03 04 00 D3 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EE 02 00 35 04 06 00 C8 [10:19:44]Write to MH i2c: E2 02 01 B0 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 52 00 00 00 F4 03 04 00 D3 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EE 02 00 35 04 06 00 C8 00 00 FE [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 B0 56 00 90 00 7A [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]wFMCommunicate request_size=10 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 02 02 05 F6 48 94 B6 F7 [10:19:45]Write to MH i2c: E2 0D 00 B1 56 80 0D 02 02 05 00 F6 48 94 B6 F7 00 00 0A [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 B1 56 00 90 00 7B [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 03 02 [10:19:45]Write to MH i2c: E2 08 00 B2 56 80 0D 03 02 00 00 00 00 83 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 0B 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 0B 00 B2 56 00 C2 EB 3F 75 7D 06 76 53 90 00 31 [10:19:45]RAPDU: C2 EB 3F 75 7D 06 76 53 90 00 [10:19:45]wFMCommunicate OK [10:19:45]SAM_PROTO_SignData done [10:19:45]FM_MakeSignedData done [10:19:45]CreateOFDProtocolMessage [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 11 00 00 [10:19:45]Write to MH i2c: E2 08 00 B3 56 80 11 00 00 00 00 00 00 83 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 17 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 17 00 B3 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [10:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:19:45]wFMCommunicate OK [10:19:45]CreateOFDProtocolMessage done [10:19:45]OFDSenderStorePacket 192050 [10:19:45]StoreOFDPacket docnum=192050 [10:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 30 07 01 C4 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 52 00 00 00 F4 03 04 00 D3 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EE 02 00 35 04 06 00 C8 F6 48 94 B6 F7 C2 EB 3F 75 7D 06 76 53 [10:19:45]CheckFolder [10:19:45]dirname=/storage/ofd_packets [10:19:45]CheckFolder done [10:19:45]ProducePacketName [10:19:45]name=ofd_packets/00192050 [10:19:45]NVStorageSaveData ofd_packets/00192050 [10:19:45]File name is /storage/ofd_packets/00192050 [10:19:45]Write 301 bytes [10:19:45]NVStorageSaveData done [10:19:45]OFDSenderStorePacket done [10:19:45]KKMCreateOFDPacket done [10:19:45]NVStorageSaveData kkm_last_timestamp [10:19:45]File name is /storage/kkm_last_timestamp [10:19:45]Write 4 bytes [10:19:45]NVStorageSaveData done [10:19:45]ExternCall_PrintAddStr [10:19:45]wPrintStart [10:19:45]Write to MH i2c: 01 00 00 B4 56 0A [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 07 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 07 00 B4 56 00 00 00 00 00 FF 0F 1F [10:19:45]RasterBufferAndPrint [10:19:45]line Счет N : (1)31360 [10:19:45]line ИНН: 02508201610067 [10:19:45]line Контрольно-Кассовый Чек [10:19:45]line ПРОДАЖА [10:19:45]line ТРК (МРК, ГНК) : 12 [10:19:45]line Товар: 2710124130 [10:19:45]line Аи-92-К-5 [10:19:45]line 9.570 * 66.90 [10:19:45]line = 640.23 [10:19:45]line НДС 12% НСП 1% [10:19:45]line > о реализуемом товаре [10:19:45]line ОКРУГЛЕНИЕ: -0.23 [10:19:45]line ИТОГО: 640.00 [10:19:45]line Внесено: 640.00 [10:19:45]line СДАЧА: 0.00 [10:19:45]line НСП 1% : 5.67 [10:19:45]line НДС 12% : 67.99 [10:19:45]line Наличными: 640.00 [10:19:45]line Безнал.: 0.00 [10:19:45]line Место: АЗС № 170 "Партнер Нефть" [10:19:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:19:45]line СНО: Общий режим [10:19:45]line Чек 82 27.10.2024 10:20 [10:19:45]line Смена: 542 ФФД: 1.0 [10:19:45]line ЗНМ: 0300000110 [10:19:45]line РНМ: 0000000000091776 [10:19:45]line Версия ККМ: 001 [10:19:45]line ФМ: 0000000000871754 [10:19:45]line ФД: 192050 [10:19:45]line ФПД: 220960105215735 [10:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192050&fm=220960105215735&tin=02508201610067®Number=0000000000091776&sum=64000 [10:19:45]OFD Sender: Processing packet 192050 [packets to send 75, broken 74] [10:19:45]ProducePacketName [10:19:45]name=ofd_packets/00192050 [10:19:45]OFD Sender: To server: pG, [10:19:45]CommunicateWithHost lk.salyk.kg:30040 [10:19:45]ConnectInit lk.salyk.kg [10:19:45]written 0, free lines is 4095 [10:19:45]Connected sock=8 [10:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 30 07 01 C4 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 52 00 00 00 F4 03 04 00 D3 13 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EE 02 00 35 04 06 00 C8 F6 48 94 B6 F7 C2 EB 3F 75 7D 06 76 53 [10:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 86 47 00 63 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EE 02 00 F4 03 04 00 9B B8 1D 67 B6 04 01 00 00 EE 19 17 A8 38 A5 A6 23 [10:19:45]CommunicateWithHost err = 0 [10:19:45]CheckOFDResponse [10:19:45]1017 (14) - 77093643461234 [10:19:45]1041 (16) - 0000000000871754 [10:19:45]1040 (4) - 192050 [10:19:45]1012 (4) - 27.10.2024 03:50 [10:19:45]1206 (1) - 0 [10:19:45]OFD Sender: Remove packet 192050 [10:19:45]ProducePacketName [10:19:45]name=ofd_packets/00192050 [10:19:45]NVStorageDeleteData [10:19:45]Write to MH i2c: 01 00 00 DF 56 35 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 07 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 07 00 DF 56 00 00 00 00 00 AA 0C F2 [10:19:46]RasterBufferAndPrint [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]written 0, free lines is 3248 [10:19:46]MH_Cut [10:19:46]Write to MH i2c: D1 01 00 E6 56 01 0E [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 01 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 01 00 E6 56 00 0D [10:19:46]Write to MH i2c: 01 00 00 E7 56 3D [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]OFD Sender: No OFD packet to send [10:19:46]*** Cut start [10:19:46]*** Partial cut [10:19:46]*** CUTSNS_PIN = 1 [10:19:46]*** CUTSNS_PIN = 0 [10:19:47]*** Brake cut motor [10:19:47]Read from MH i2c: 01 [10:19:47]MH_I2C_Read... [10:19:47]*** Stop cut motor [10:19:47]*** Cut end [10:19:47]Read from MH i2c: 01 07 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: 01 07 00 E7 56 00 00 00 00 00 FF 0F 52 [10:19:47]process_action close_receipt done [10:19:47]requested_data is exist [10:19:47]produce_requested_data [10:19:47]requested_item fm.sn is exist - process it [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 11 00 00 [10:19:47]Write to MH i2c: E2 08 00 E8 56 80 11 00 00 00 00 00 00 B8 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 17 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 17 00 E8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [10:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:19:47]wFMCommunicate OK [10:19:47]requested_item fd.num is exist - process it [10:19:47]SAM_PROTO_GetFieldsCounters [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 00 00 [10:19:47]Write to MH i2c: E2 08 00 E9 56 80 13 00 00 00 00 00 00 BB [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 E9 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [10:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetFieldsCounters done [10:19:47]requested_item shift.num is exist - process it [10:19:47]requested_item shift.opened is exist - process it [10:19:47]req_shift_opened [10:19:47]FM_GetShiftState [10:19:47]SAM_PROTO_GetShiftState [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 01 00 [10:19:47]Write to MH i2c: E2 08 00 EA 56 80 13 01 00 00 00 00 00 BD [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 EA 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [10:19:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetShiftState done [10:19:47]FM_GetShiftState done [10:19:47]req_shift_opened done [10:19:47]requested_item shift.open_date is exist - process it [10:19:47]req_shift_open_date [10:19:47]req_shift_open_date done [10:19:47]produce_requested_data done [10:19:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192050,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:19:47]process_action_free close_receipt [10:19:47]json_value_free [10:19:47]json_value_free done [10:19:47]process_json_proto returns [10:19:47]Send response to host [10:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192050,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:19:47]free response buf [10:19:47]execute_script done [10:19:47]execute_script returns [10:19:47]free content buf [10:19:47]Sock 6.Close socket [10:19:47]Sock 6.Thread stoped [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:25]accept exits with 5 [10:21:25]New connection [10:21:25]New thread 3066961252 created [10:21:25]Thread 3066817892 joined [10:21:25]Waiting for new connection... [10:21:25] Sock 5.Parse request [10:21:25]Sock 5.Check first char [10:21:25]Sock 5.First char is OK [10:21:25]request: POST /json_proto HTTP/1.0 [10:21:25]Method: POST [10:21:25]URL: /json_proto [10:21:25]Method is POST - this is cgi request [10:21:25]url: /json_proto [10:21:25]query_string will be loaded in cgi processing [10:21:25]execute_cgi json_proto POST (null) [10:21:25]execute_cgi path=json_proto method=POST [10:21:25]POST find Content-Length [10:21:25]Host: 172.17.63.131:8080 [10:21:25]Content-Length: 676 [10:21:25]Content-Type: application/json [10:21:25] [10:21:25]POST finish read [10:21:25]Found Content-Length = 676 [10:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:25]execute_script... [10:21: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)31361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:25]POST & json_proto [10:21:25]process_json_proto [10:21:25]json parsed OK: [10:21:25]protocol is kg_v1.0 [10:21:25]action value=close_receipt [10:21:25]process_action close_receipt [10:21:25]cmd_close_receipt [10:21:25]MH_GetDate [10:21:25]Write to MH i2c: F0 00 00 EB 56 30 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 09 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 09 00 EB 56 00 39 14 1E 67 22 05 6E 64 04 [10:21:25]GetLastDocTimeStamp 1730024403 [10:21:25]current date 1730024505 [10:21:25]FM_GetShiftState [10:21:25]SAM_PROTO_GetShiftState [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 13 01 00 [10:21:25]Write to MH i2c: E2 08 00 EC 56 80 13 01 00 00 00 00 00 BF [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 EC 56 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 00 [10:21:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_GetShiftState done [10:21:25]FM_GetShiftState done [10:21:25]opened in 1729989159 [10:21:25]opened+sec_in_day 1730075559 [10:21:25]quantity*price = 20003 [10:21:25]sum+1 = 20004 [10:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 83 27.10.2024 10:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192051 ФПД: 229631079729060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192051&fm=229631079729060&tin=02508201610067®Number=0000000000091776&sum=20000 [10:21:26]StoreToDocumentArchive [10:21:26]shift 542 fd 192051 [10:21:26]save to /storage/0542/doc_00192051 [10:21:26]save last doc name /storage/0542/doc_00192051 to /storage/kkm_last_doc_name [10:21:26]save OK [10:21:26]Clear old archive folders... [10:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:26]tlvbuf is 01D13850 [10:21:26]SAM_PROTO_ClearQueue [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 09 00 00 [10:21:26]Write to MH i2c: E2 08 00 F9 56 80 09 00 00 00 00 00 00 C1 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 F9 56 00 90 00 C3 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]SAM_PROTO_ClearQueue done [10:21:27]KKMCreateOFDPacket [10:21:27]OFDProtocolAddRootSTLVToBuf [10:21:27]FM_MakeSignedData [10:21:27]FM_MakeSignedData [10:21:27]SAM_PROTO_SignData [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 01 02 [10:21:27]Write to MH i2c: E2 08 00 FA 56 80 0D 01 02 00 00 00 00 C9 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 FA 56 00 90 00 C4 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=255 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 39 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EE 02 00 35 04 06 00 D0 [10:21:27]Write to MH i2c: E2 02 01 FB 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 39 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EE 02 00 35 04 06 00 D0 00 00 57 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 FB 56 00 90 00 C5 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=10 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 02 02 05 D9 26 EF C7 A4 [10:21:27]Write to MH i2c: E2 0D 00 FC 56 80 0D 02 02 05 00 D9 26 EF C7 A4 00 00 2F [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 FC 56 00 90 00 C6 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 03 02 [10:21:27]Write to MH i2c: E2 08 00 FD 56 80 0D 03 02 00 00 00 00 CE [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 0B 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 0B 00 FD 56 00 0F A9 D8 BA 08 C6 12 E1 90 00 DA [10:21:27]RAPDU: 0F A9 D8 BA 08 C6 12 E1 90 00 [10:21:27]wFMCommunicate OK [10:21:27]SAM_PROTO_SignData done [10:21:27]FM_MakeSignedData done [10:21:27]CreateOFDProtocolMessage [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 11 00 00 [10:21:27]Write to MH i2c: E2 08 00 FE 56 80 11 00 00 00 00 00 00 CE [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 17 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 17 00 FE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [10:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:27]wFMCommunicate OK [10:21:27]CreateOFDProtocolMessage done [10:21:27]OFDSenderStorePacket 192051 [10:21:27]StoreOFDPacket docnum=192051 [10:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 67 07 01 0B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 39 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EE 02 00 35 04 06 00 D0 D9 26 EF C7 A4 0F A9 D8 BA 08 C6 12 E1 [10:21:27]CheckFolder [10:21:27]dirname=/storage/ofd_packets [10:21:27]CheckFolder done [10:21:27]ProducePacketName [10:21:27]name=ofd_packets/00192051 [10:21:27]NVStorageSaveData ofd_packets/00192051 [10:21:27]File name is /storage/ofd_packets/00192051 [10:21:27]Write 301 bytes [10:21:27]NVStorageSaveData done [10:21:27]OFDSenderStorePacket done [10:21:27]KKMCreateOFDPacket done [10:21:27]NVStorageSaveData kkm_last_timestamp [10:21:27]File name is /storage/kkm_last_timestamp [10:21:27]Write 4 bytes [10:21:27]NVStorageSaveData done [10:21:27]ExternCall_PrintAddStr [10:21:27]wPrintStart [10:21:27]Write to MH i2c: 01 00 00 FF 56 55 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 FF 56 00 00 00 00 00 FF 0F 6A [10:21:27]RasterBufferAndPrint [10:21:27]line Счет N : (1)31361 [10:21:27]line ИНН: 02508201610067 [10:21:27]line Контрольно-Кассовый Чек [10:21:27]line ПРОДАЖА [10:21:27]line ТРК (МРК, ГНК) : 21 [10:21:27]line Товар: 2710124130 [10:21:27]line Аи-92-К-5 [10:21:27]line 2.990 * 66.90 [10:21:27]line = 200.03 [10:21:27]line НДС 12% НСП 1% [10:21:27]line > о реализуемом товаре [10:21:27]line ОКРУГЛЕНИЕ: -0.03 [10:21:27]line ИТОГО: 200.00 [10:21:27]line Внесено: 200.00 [10:21:27]line СДАЧА: 0.00 [10:21:27]line НСП 1% : 1.77 [10:21:27]line НДС 12% : 21.24 [10:21:27]line Наличными: 200.00 [10:21:27]line Безнал.: 0.00 [10:21:27]line Место: АЗС № 170 "Партнер Нефть" [10:21:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:21:27]line СНО: Общий режим [10:21:27]line Чек 83 27.10.2024 10:21 [10:21:27]line Смена: 542 ФФД: 1.0 [10:21:27]line ЗНМ: 0300000110 [10:21:27]line РНМ: 0000000000091776 [10:21:27]line Версия ККМ: 001 [10:21:27]line ФМ: 0000000000871754 [10:21:27]line ФД: 192051 [10:21:27]line ФПД: 229631079729060 [10:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192051&fm=229631079729060&tin=02508201610067®Number=0000000000091776&sum=20000 [10:21:27]OFD Sender: Processing packet 192051 [packets to send 75, broken 74] [10:21:27]ProducePacketName [10:21:27]name=ofd_packets/00192051 [10:21:27]OFD Sender: To server: pG, [10:21:27]CommunicateWithHost lk.salyk.kg:30040 [10:21:27]ConnectInit lk.salyk.kg [10:21:27]written 0, free lines is 4095 [10:21:27]Connected sock=8 [10: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 37 35 34 0F 01 00 00 35 67 07 01 0B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 39 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EE 02 00 35 04 06 00 D0 D9 26 EF C7 A4 0F A9 D8 BA 08 C6 12 E1 [10: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 37 35 34 4F 00 00 00 54 B1 47 00 70 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EE 02 00 F4 03 04 00 01 B9 1D 67 B6 04 01 00 00 0C AF 8D 38 08 AC 34 C0 [10:21:28]CommunicateWithHost err = 0 [10:21:28]CheckOFDResponse [10:21:28]1017 (14) - 77093643461234 [10:21:28]1041 (16) - 0000000000871754 [10:21:28]1040 (4) - 192051 [10:21:28]1012 (4) - 27.10.2024 03:52 [10:21:28]1206 (1) - 0 [10:21:28]OFD Sender: Remove packet 192051 [10:21:28]ProducePacketName [10:21:28]name=ofd_packets/00192051 [10:21:28]NVStorageDeleteData [10:21:28]Write to MH i2c: 01 00 00 2A 57 81 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 07 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 07 00 2A 57 00 00 00 00 00 B7 0C 4B [10:21:28]RasterBufferAndPrint [10:21:28]line [10:21:28]line [10:21:28]line [10:21:28]line [10:21:28]line [10:21:28]written 0, free lines is 3262 [10:21:28]MH_Cut [10:21:28]Write to MH i2c: D1 01 00 31 57 01 5A [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: D1 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: D1 01 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: D1 01 00 31 57 00 59 [10:21:28]Write to MH i2c: 01 00 00 32 57 89 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]OFD Sender: No OFD packet to send [10:21:29]*** Cut start [10:21:29]*** Partial cut [10:21:29]*** CUTSNS_PIN = 1 [10:21:29]*** CUTSNS_PIN = 0 [10:21:29]*** Brake cut motor [10:21:29]Read from MH i2c: 01 [10:21:29]MH_I2C_Read... [10:21:29]*** Stop cut motor [10:21:29]*** Cut end [10:21:29]Read from MH i2c: 01 07 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 07 00 32 57 00 00 00 00 00 FF 0F 9E [10:21:29]process_action close_receipt done [10:21:29]requested_data is exist [10:21:29]produce_requested_data [10:21:29]requested_item fm.sn is exist - process it [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 11 00 00 [10:21:29]Write to MH i2c: E2 08 00 33 57 80 11 00 00 00 00 00 00 04 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 33 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [10:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:29]wFMCommunicate OK [10:21:29]requested_item fd.num is exist - process it [10:21:29]SAM_PROTO_GetFieldsCounters [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 00 00 [10:21:29]Write to MH i2c: E2 08 00 34 57 80 13 00 00 00 00 00 00 07 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 62 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 62 00 34 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_GetFieldsCounters done [10:21:30]requested_item shift.num is exist - process it [10:21:30]requested_item shift.opened is exist - process it [10:21:30]req_shift_opened [10:21:30]FM_GetShiftState [10:21:30]SAM_PROTO_GetShiftState [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 13 01 00 [10:21:30]Write to MH i2c: E2 08 00 35 57 80 13 01 00 00 00 00 00 09 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 35 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4A [10:21:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_GetShiftState done [10:21:30]FM_GetShiftState done [10:21:30]req_shift_opened done [10:21:30]requested_item shift.open_date is exist - process it [10:21:30]req_shift_open_date [10:21:30]req_shift_open_date done [10:21:30]produce_requested_data done [10:21:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192051,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:21:30]process_action_free close_receipt [10:21:30]json_value_free [10:21:30]json_value_free done [10:21:30]process_json_proto returns [10:21:30]Send response to host [10:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192051,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:21:30]free response buf [10:21:30]execute_script done [10:21:30]execute_script returns [10:21:30]free content buf [10:21:30]Sock 5.Close socket [10:21:30]Sock 5.Thread stoped [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:21]accept exits with 6 [10:22:21]New connection [10:22:21]New thread 3066817892 created [10:22:21]Thread 3066961252 joined [10:22:21]Waiting for new connection... [10:22:21] Sock 6.Parse request [10:22:21]Sock 6.Check first char [10:22:21]Sock 6.First char is OK [10:22:21]request: POST /json_proto HTTP/1.0 [10:22:21]Method: POST [10:22:21]URL: /json_proto [10:22:21]Method is POST - this is cgi request [10:22:21]url: /json_proto [10:22:21]query_string will be loaded in cgi processing [10:22:21]execute_cgi json_proto POST (null) [10:22:21]execute_cgi path=json_proto method=POST [10:22:21]POST find Content-Length [10:22:21]Host: 172.17.63.131:8080 [10:22:21]Content-Length: 677 [10:22:21]Content-Type: application/json [10:22:21] [10:22:21]POST finish read [10:22:21]Found Content-Length = 677 [10:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:21]execute_script... [10:22:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:21]POST & json_proto [10:22:21]process_json_proto [10:22:21]json parsed OK: [10:22:21]protocol is kg_v1.0 [10:22:21]action value=close_receipt [10:22:21]process_action close_receipt [10:22:21]cmd_close_receipt [10:22:21]MH_GetDate [10:22:21]Write to MH i2c: F0 00 00 36 57 7C [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 09 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: F0 09 00 36 57 00 70 14 1E 67 22 05 6E 64 87 [10:22:21]GetLastDocTimeStamp 1730024505 [10:22:21]current date 1730024560 [10:22:21]FM_GetShiftState [10:22:21]SAM_PROTO_GetShiftState [10:22:21]wFMCommunicate request_size=4 [10:22:21]MH_SAM_APDU [10:22:21]CAPDU: 80 13 01 00 [10:22:21]Write to MH i2c: E2 08 00 37 57 80 13 01 00 00 00 00 00 0B [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:21]Read from MH i2c: E2 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 37 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4C [10:22:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:22:21]wFMCommunicate OK [10:22:21]SAM_PROTO_GetShiftState done [10:22:21]FM_GetShiftState done [10:22:21]opened in 1729989159 [10:22:21]opened+sec_in_day 1730075559 [10:22:21]quantity*price = 67033 [10:22:21]sum+1 = 67035 [10:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 84 27.10.2024 10:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192052 ФПД: 105105494902616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192052&fm=105105494902616&tin=02508201610067®Number=0000000000091776&sum=67000 [10:22:22]StoreToDocumentArchive [10:22:22]shift 542 fd 192052 [10:22:22]save to /storage/0542/doc_00192052 [10:22:22]save last doc name /storage/0542/doc_00192052 to /storage/kkm_last_doc_name [10:22:22]save OK [10:22:22]Clear old archive folders... [10:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:22]tlvbuf is 015A96D0 [10:22:22]SAM_PROTO_ClearQueue [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 09 00 00 [10:22:22]Write to MH i2c: E2 08 00 44 57 80 09 00 00 00 00 00 00 0D [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 44 57 00 90 00 0F [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_ClearQueue done [10:22:22]KKMCreateOFDPacket [10:22:22]OFDProtocolAddRootSTLVToBuf [10:22:22]FM_MakeSignedData [10:22:22]FM_MakeSignedData [10:22:22]SAM_PROTO_SignData [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 01 02 [10:22:22]Write to MH i2c: E2 08 00 45 57 80 0D 01 02 00 00 00 00 15 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 45 57 00 90 00 10 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=255 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 70 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EE 02 00 35 04 06 00 5F [10:22:22]Write to MH i2c: E2 02 01 46 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 70 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EE 02 00 35 04 06 00 5F 00 00 44 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 46 57 00 90 00 11 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=10 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 02 02 05 97 C7 B0 07 58 [10:22:22]Write to MH i2c: E2 0D 00 47 57 80 0D 02 02 05 00 97 C7 B0 07 58 00 00 8F [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 03 00 47 57 00 90 00 12 [10:22:22]RAPDU: 90 00 [10:22:22]wFMCommunicate OK [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 0D 03 02 [10:22:22]Write to MH i2c: E2 08 00 48 57 80 0D 03 02 00 00 00 00 1A [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0B 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0B 00 48 57 00 34 A5 01 C8 75 6F 04 CD 90 00 72 [10:22:22]RAPDU: 34 A5 01 C8 75 6F 04 CD 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_SignData done [10:22:22]FM_MakeSignedData done [10:22:22]CreateOFDProtocolMessage [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 11 00 00 [10:22:22]Write to MH i2c: E2 08 00 49 57 80 11 00 00 00 00 00 00 1A [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 49 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [10:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:22]wFMCommunicate OK [10:22:22]CreateOFDProtocolMessage done [10:22:22]OFDSenderStorePacket 192052 [10:22:22]StoreOFDPacket docnum=192052 [10:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DF D1 07 01 34 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 70 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EE 02 00 35 04 06 00 5F 97 C7 B0 07 58 34 A5 01 C8 75 6F 04 CD [10:22:22]CheckFolder [10:22:22]dirname=/storage/ofd_packets [10:22:22]CheckFolder done [10:22:22]ProducePacketName [10:22:22]name=ofd_packets/00192052 [10:22:22]NVStorageSaveData ofd_packets/00192052 [10:22:22]File name is /storage/ofd_packets/00192052 [10:22:22]Write 301 bytes [10:22:22]NVStorageSaveData done [10:22:22]OFDSenderStorePacket done [10:22:22]KKMCreateOFDPacket done [10:22:22]NVStorageSaveData kkm_last_timestamp [10:22:22]File name is /storage/kkm_last_timestamp [10:22:22]Write 4 bytes [10:22:22]NVStorageSaveData done [10:22:22]ExternCall_PrintAddStr [10:22:22]wPrintStart [10:22:22]Write to MH i2c: 01 00 00 4A 57 A1 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 4A 57 00 00 00 00 00 FF 0F B6 [10:22:22]RasterBufferAndPrint [10:22:22]line Счет N : (1)31362 [10:22:22]line ИНН: 02508201610067 [10:22:22]line Контрольно-Кассовый Чек [10:22:22]line ПРОДАЖА [10:22:22]line ТРК (МРК, ГНК) : 21 [10:22:22]line Товар: 2710124130 [10:22:22]line Аи-92-К-5 [10:22:22]line 10.020 * 66.90 [10:22:22]line = 670.34 [10:22:22]line НДС 12% НСП 1% [10:22:22]line > о реализуемом товаре [10:22:22]line ОКРУГЛЕНИЕ: -0.34 [10:22:22]line ИТОГО: 670.00 [10:22:22]line Внесено: 670.00 [10:22:22]line СДАЧА: 0.00 [10:22:22]line НСП 1% : 5.93 [10:22:22]line НДС 12% : 71.19 [10:22:22]line Наличными: 670.00 [10:22:22]line Безнал.: 0.00 [10:22:22]line Место: АЗС № 170 "Партнер Нефть" [10:22:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:22:22]line СНО: Общий режим [10:22:22]line Чек 84 27.10.2024 10:22 [10:22:22]line Смена: 542 ФФД: 1.0 [10:22:22]line ЗНМ: 0300000110 [10:22:22]line РНМ: 0000000000091776 [10:22:22]line Версия ККМ: 001 [10:22:22]line ФМ: 0000000000871754 [10:22:22]line ФД: 192052 [10:22:22]line ФПД: 105105494902616 [10:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192052&fm=105105494902616&tin=02508201610067®Number=0000000000091776&sum=67000 [10:22:23]OFD Sender: Processing packet 192052 [packets to send 75, broken 74] [10:22:23]ProducePacketName [10:22:23]name=ofd_packets/00192052 [10:22:23]OFD Sender: To server: pG, [10:22:23]CommunicateWithHost lk.salyk.kg:30040 [10:22:23]ConnectInit lk.salyk.kg [10:22:23]written 0, free lines is 4095 [10:22:23]Connected sock=8 [10:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DF D1 07 01 34 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 70 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EE 02 00 35 04 06 00 5F 97 C7 B0 07 58 34 A5 01 C8 75 6F 04 CD [10:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 A0 47 00 C9 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EE 02 00 F4 03 04 00 38 B9 1D 67 B6 04 01 00 00 8F 86 26 13 FB FF F9 01 [10:22:23]CommunicateWithHost err = 0 [10:22:23]CheckOFDResponse [10:22:23]1017 (14) - 77093643461234 [10:22:23]1041 (16) - 0000000000871754 [10:22:23]1040 (4) - 192052 [10:22:23]1012 (4) - 27.10.2024 03:53 [10:22:23]1206 (1) - 0 [10:22:23]OFD Sender: Remove packet 192052 [10:22:23]ProducePacketName [10:22:23]name=ofd_packets/00192052 [10:22:23]NVStorageDeleteData [10:22:23]Write to MH i2c: 01 00 00 75 57 CC [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 07 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 07 00 75 57 00 00 00 00 00 B2 0C 91 [10:22:23]RasterBufferAndPrint [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]line [10:22:23]written 0, free lines is 3257 [10:22:23]MH_Cut [10:22:23]Write to MH i2c: D1 01 00 7C 57 01 A5 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 01 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: D1 01 00 7C 57 00 A4 [10:22:23]Write to MH i2c: 01 00 00 7D 57 D4 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]OFD Sender: No OFD packet to send [10:22:24]*** Cut start [10:22:24]*** Partial cut [10:22:24]*** CUTSNS_PIN = 1 [10:22:24]*** CUTSNS_PIN = 0 [10:22:24]*** Brake cut motor [10:22:25]Read from MH i2c: 01 [10:22:25]MH_I2C_Read... [10:22:25]*** Stop cut motor [10:22:25]*** Cut end [10:22:25]Read from MH i2c: 01 07 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: 01 07 00 7D 57 00 00 00 00 00 FF 0F E9 [10:22:25]process_action close_receipt done [10:22:25]requested_data is exist [10:22:25]produce_requested_data [10:22:25]requested_item fm.sn is exist - process it [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 11 00 00 [10:22:25]Write to MH i2c: E2 08 00 7E 57 80 11 00 00 00 00 00 00 4F [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 7E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [10:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:25]wFMCommunicate OK [10:22:25]requested_item fd.num is exist - process it [10:22:25]SAM_PROTO_GetFieldsCounters [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 13 00 00 [10:22:25]Write to MH i2c: E2 08 00 7F 57 80 13 00 00 00 00 00 00 52 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 62 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 62 00 7F 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:22:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_GetFieldsCounters done [10:22:25]requested_item shift.num is exist - process it [10:22:25]requested_item shift.opened is exist - process it [10:22:25]req_shift_opened [10:22:25]FM_GetShiftState [10:22:25]SAM_PROTO_GetShiftState [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 13 01 00 [10:22:25]Write to MH i2c: E2 08 00 80 57 80 13 01 00 00 00 00 00 54 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0E 00 80 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 95 [10:22:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_GetShiftState done [10:22:25]FM_GetShiftState done [10:22:25]req_shift_opened done [10:22:25]requested_item shift.open_date is exist - process it [10:22:25]req_shift_open_date [10:22:25]req_shift_open_date done [10:22:25]produce_requested_data done [10:22:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192052,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:22:25]process_action_free close_receipt [10:22:25]json_value_free [10:22:25]json_value_free done [10:22:25]process_json_proto returns [10:22:25]Send response to host [10:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192052,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:22:25]free response buf [10:22:25]execute_script done [10:22:25]execute_script returns [10:22:25]free content buf [10:22:25]Sock 6.Close socket [10:22:25]Sock 6.Thread stoped [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23: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:36]accept exits with 5 [10:23:36]New connection [10:23:36]New thread 3066961252 created [10:23:36]Thread 3066817892 joined [10:23:36]Waiting for new connection... [10:23:36] Sock 5.Parse request [10:23:36]Sock 5.Check first char [10:23:36]Sock 5.First char is OK [10:23:36]request: POST /json_proto HTTP/1.0 [10:23:36]Method: POST [10:23:36]URL: /json_proto [10:23:36]Method is POST - this is cgi request [10:23:36]url: /json_proto [10:23:36]query_string will be loaded in cgi processing [10:23:36]execute_cgi json_proto POST (null) [10:23:36]execute_cgi path=json_proto method=POST [10:23:36]POST find Content-Length [10:23:36]Host: 172.17.63.131:8080 [10:23:36]Content-Length: 681 [10:23:36]Content-Type: application/json [10:23:36] [10:23:36]POST finish read [10:23:36]Found Content-Length = 681 [10:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:36]execute_script... [10:23: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)31364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:36]POST & json_proto [10:23:36]process_json_proto [10:23:36]json parsed OK: [10:23:36]protocol is kg_v1.0 [10:23:36]action value=close_receipt [10:23:36]process_action close_receipt [10:23:36]cmd_close_receipt [10:23:36]MH_GetDate [10:23:36]Write to MH i2c: F0 00 00 81 57 C7 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 09 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 09 00 81 57 00 BC 14 1E 67 22 05 6E 64 1E [10:23:36]GetLastDocTimeStamp 1730024560 [10:23:36]current date 1730024636 [10:23:36]FM_GetShiftState [10:23:36]SAM_PROTO_GetShiftState [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 13 01 00 [10:23:36]Write to MH i2c: E2 08 00 82 57 80 13 01 00 00 00 00 00 56 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0E 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0E 00 82 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 97 [10:23:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:23:36]wFMCommunicate OK [10:23:36]SAM_PROTO_GetShiftState done [10:23:36]FM_GetShiftState done [10:23:36]opened in 1729989159 [10:23:36]opened+sec_in_day 1730075559 [10:23:36]quantity*price = 150056 [10:23:36]sum+1 = 150058 [10:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 85 27.10.2024 10:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192053 ФПД: 279886939363948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192053&fm=279886939363948&tin=02508201610067®Number=0000000000091776&sum=150000 [10:23:37]StoreToDocumentArchive [10:23:37]shift 542 fd 192053 [10:23:37]save to /storage/0542/doc_00192053 [10:23:37]save last doc name /storage/0542/doc_00192053 to /storage/kkm_last_doc_name [10:23:37]save OK [10:23:37]Clear old archive folders... [10:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:37]tlvbuf is 01AA6FE0 [10:23:37]SAM_PROTO_ClearQueue [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 09 00 00 [10:23:37]Write to MH i2c: E2 08 00 8F 57 80 09 00 00 00 00 00 00 58 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 8F 57 00 90 00 5A [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_ClearQueue done [10:23:38]KKMCreateOFDPacket [10:23:38]OFDProtocolAddRootSTLVToBuf [10:23:38]FM_MakeSignedData [10:23:38]FM_MakeSignedData [10:23:38]SAM_PROTO_SignData [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 0D 01 02 [10:23:38]Write to MH i2c: E2 08 00 90 57 80 0D 01 02 00 00 00 00 60 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 90 57 00 90 00 5B [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]wFMCommunicate request_size=255 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BC 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EE 02 00 35 04 06 00 FE [10:23:38]Write to MH i2c: E2 02 01 91 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BC 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EE 02 00 35 04 06 00 FE 00 00 2A [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 91 57 00 90 00 5C [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]wFMCommunicate request_size=10 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 0D 02 02 05 8E 41 99 1A 6C [10:23:38]Write to MH i2c: E2 0D 00 92 57 80 0D 02 02 05 00 8E 41 99 1A 6C 00 00 5B [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 92 57 00 90 00 5D [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 0D 03 02 [10:23:38]Write to MH i2c: E2 08 00 93 57 80 0D 03 02 00 00 00 00 65 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0B 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0B 00 93 57 00 6C 0E F2 07 80 F7 79 E2 90 00 AB [10:23:38]RAPDU: 6C 0E F2 07 80 F7 79 E2 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_SignData done [10:23:38]FM_MakeSignedData done [10:23:38]CreateOFDProtocolMessage [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 11 00 00 [10:23:38]Write to MH i2c: E2 08 00 94 57 80 11 00 00 00 00 00 00 65 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 94 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [10:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:38]wFMCommunicate OK [10:23:38]CreateOFDProtocolMessage done [10:23:38]OFDSenderStorePacket 192053 [10:23:38]StoreOFDPacket docnum=192053 [10:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B 57 07 01 73 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BC 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EE 02 00 35 04 06 00 FE 8E 41 99 1A 6C 6C 0E F2 07 80 F7 79 E2 [10:23:38]CheckFolder [10:23:38]dirname=/storage/ofd_packets [10:23:38]CheckFolder done [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00192053 [10:23:38]NVStorageSaveData ofd_packets/00192053 [10:23:38]File name is /storage/ofd_packets/00192053 [10:23:38]Write 301 bytes [10:23:38]NVStorageSaveData done [10:23:38]OFDSenderStorePacket done [10:23:38]KKMCreateOFDPacket done [10:23:38]NVStorageSaveData kkm_last_timestamp [10:23:38]File name is /storage/kkm_last_timestamp [10:23:38]Write 4 bytes [10:23:38]NVStorageSaveData done [10:23:38]ExternCall_PrintAddStr [10:23:38]wPrintStart [10:23:38]Write to MH i2c: 01 00 00 95 57 EC [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 95 57 00 00 00 00 00 FF 0F 01 [10:23:38]RasterBufferAndPrint [10:23:38]line Счет N : (1)31364 [10:23:38]line ИНН: 02508201610067 [10:23:38]line Контрольно-Кассовый Чек [10:23:38]line ПРОДАЖА [10:23:38]line ТРК (МРК, ГНК) : 21 [10:23:38]line Товар: 2710124130 [10:23:38]line Аи-92-К-5 [10:23:38]line 22.430 * 66.90 [10:23:38]line = 1500.57 [10:23:38]line НДС 12% НСП 1% [10:23:38]line > о реализуемом товаре [10:23:38]line ОКРУГЛЕНИЕ: -0.57 [10:23:38]line ИТОГО: 1500.00 [10:23:38]line Внесено: 1500.00 [10:23:38]line СДАЧА: 0.00 [10:23:38]line НСП 1% : 13.28 [10:23:38]line НДС 12% : 159.35 [10:23:38]line Наличными: 1500.00 [10:23:38]line Безнал.: 0.00 [10:23:38]line Место: АЗС № 170 "Партнер Нефть" [10:23:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:23:38]line СНО: Общий режим [10:23:38]line Чек 85 27.10.2024 10:23 [10:23:38]line Смена: 542 ФФД: 1.0 [10:23:38]line ЗНМ: 0300000110 [10:23:38]line РНМ: 0000000000091776 [10:23:38]line Версия ККМ: 001 [10:23:38]line ФМ: 0000000000871754 [10:23:38]line ФД: 192053 [10:23:38]line ФПД: 279886939363948 [10:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192053&fm=279886939363948&tin=02508201610067®Number=0000000000091776&sum=150000 [10:23:38]OFD Sender: Processing packet 192053 [packets to send 75, broken 74] [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00192053 [10:23:38]OFD Sender: To server: pG, [10:23:38]CommunicateWithHost lk.salyk.kg:30040 [10:23:38]ConnectInit lk.salyk.kg [10:23:38]written 0, free lines is 4095 [10:23:38]Connected sock=8 [10:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B 57 07 01 73 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BC 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EE 02 00 35 04 06 00 FE 8E 41 99 1A 6C 6C 0E F2 07 80 F7 79 E2 [10:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 59 47 00 7A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EE 02 00 F4 03 04 00 84 B9 1D 67 B6 04 01 00 00 04 B8 1A 56 C5 04 75 4F [10:23:39]CommunicateWithHost err = 0 [10:23:39]CheckOFDResponse [10:23:39]1017 (14) - 77093643461234 [10:23:39]1041 (16) - 0000000000871754 [10:23:39]1040 (4) - 192053 [10:23:39]1012 (4) - 27.10.2024 03:54 [10:23:39]1206 (1) - 0 [10:23:39]OFD Sender: Remove packet 192053 [10:23:39]ProducePacketName [10:23:39]name=ofd_packets/00192053 [10:23:39]NVStorageDeleteData [10:23:39]Write to MH i2c: 01 00 00 C0 57 17 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 C0 57 00 00 00 00 00 AA 0C D4 [10:23:39]RasterBufferAndPrint [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]written 0, free lines is 3248 [10:23:39]MH_Cut [10:23:39]Write to MH i2c: D1 01 00 C7 57 01 F0 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 01 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 01 00 C7 57 00 EF [10:23:39]Write to MH i2c: 01 00 00 C8 57 1F [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]OFD Sender: No OFD packet to send [10:23:40]*** Cut start [10:23:40]*** Partial cut [10:23:40]*** CUTSNS_PIN = 1 [10:23:40]*** CUTSNS_PIN = 0 [10:23:40]*** Brake cut motor [10:23:40]Read from MH i2c: 01 [10:23:40]MH_I2C_Read... [10:23:40]*** Stop cut motor [10:23:40]*** Cut end [10:23:40]Read from MH i2c: 01 07 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 C8 57 00 00 00 00 00 FF 0F 34 [10:23:40]process_action close_receipt done [10:23:40]requested_data is exist [10:23:40]produce_requested_data [10:23:40]requested_item fm.sn is exist - process it [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 11 00 00 [10:23:40]Write to MH i2c: E2 08 00 C9 57 80 11 00 00 00 00 00 00 9A [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 C9 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [10:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:40]wFMCommunicate OK [10:23:40]requested_item fd.num is exist - process it [10:23:40]SAM_PROTO_GetFieldsCounters [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 13 00 00 [10:23:40]Write to MH i2c: E2 08 00 CA 57 80 13 00 00 00 00 00 00 9D [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 62 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 62 00 CA 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_GetFieldsCounters done [10:23:40]requested_item shift.num is exist - process it [10:23:40]requested_item shift.opened is exist - process it [10:23:40]req_shift_opened [10:23:40]FM_GetShiftState [10:23:40]SAM_PROTO_GetShiftState [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 13 01 00 [10:23:40]Write to MH i2c: E2 08 00 CB 57 80 13 01 00 00 00 00 00 9F [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 CB 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [10:23:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetShiftState done [10:23:41]FM_GetShiftState done [10:23:41]req_shift_opened done [10:23:41]requested_item shift.open_date is exist - process it [10:23:41]req_shift_open_date [10:23:41]req_shift_open_date done [10:23:41]produce_requested_data done [10:23:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192053,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:23:41]process_action_free close_receipt [10:23:41]json_value_free [10:23:41]json_value_free done [10:23:41]process_json_proto returns [10:23:41]Send response to host [10:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192053,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:23:41]free response buf [10:23:41]execute_script done [10:23:41]execute_script returns [10:23:41]free content buf [10:23:41]Sock 5.Close socket [10:23:41]Sock 5.Thread stoped [10:23:41]accept exits with 6 [10:23:41]New connection [10:23:41]New thread 3066817892 created [10:23:41]Thread 3066961252 joined [10:23:41]Waiting for new connection... [10:23:41] Sock 6.Parse request [10:23:41]Sock 6.Check first char [10:23:41]Sock 6.First char is OK [10:23:41]request: POST /json_proto HTTP/1.0 [10:23:41]Method: POST [10:23:41]URL: /json_proto [10:23:41]Method is POST - this is cgi request [10:23:41]url: /json_proto [10:23:41]query_string will be loaded in cgi processing [10:23:41]execute_cgi json_proto POST (null) [10:23:41]execute_cgi path=json_proto method=POST [10:23:41]POST find Content-Length [10:23:41]Host: 172.17.63.131:8080 [10:23:41]Content-Length: 676 [10:23:41]Content-Type: application/json [10:23:41] [10:23:41]POST finish read [10:23:41]Found Content-Length = 676 [10:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:41]execute_script... [10:23: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)31363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:41]POST & json_proto [10:23:41]process_json_proto [10:23:41]json parsed OK: [10:23:41]protocol is kg_v1.0 [10:23:41]action value=close_receipt [10:23:41]process_action close_receipt [10:23:41]cmd_close_receipt [10:23:41]MH_GetDate [10:23:41]Write to MH i2c: F0 00 00 CC 57 12 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 09 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 09 00 CC 57 00 C1 14 1E 67 22 05 6E 64 6E [10:23:41]GetLastDocTimeStamp 1730024636 [10:23:41]current date 1730024641 [10:23:41]FM_GetShiftState [10:23:41]SAM_PROTO_GetShiftState [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 01 00 [10:23:41]Write to MH i2c: E2 08 00 CD 57 80 13 01 00 00 00 00 00 A1 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 CD 57 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E2 [10:23:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetShiftState done [10:23:41]FM_GetShiftState done [10:23:41]opened in 1729989159 [10:23:41]opened+sec_in_day 1730075559 [10:23:41]quantity*price = 50041 [10:23:41]sum+1 = 50042 [10:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 86 27.10.2024 10:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192054 ФПД: 110781344919904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192054&fm=110781344919904&tin=02508201610067®Number=0000000000091776&sum=50000 [10:23:42]StoreToDocumentArchive [10:23:42]shift 542 fd 192054 [10:23:42]save to /storage/0542/doc_00192054 [10:23:42]save last doc name /storage/0542/doc_00192054 to /storage/kkm_last_doc_name [10:23:42]save OK [10:23:42]Clear old archive folders... [10:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:42]tlvbuf is 01BD5FA0 [10:23:42]SAM_PROTO_ClearQueue [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 09 00 00 [10:23:42]Write to MH i2c: E2 08 00 DA 57 80 09 00 00 00 00 00 00 A3 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 DA 57 00 90 00 A5 [10:23:42]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]SAM_PROTO_ClearQueue done [10:23:43]KKMCreateOFDPacket [10:23:43]OFDProtocolAddRootSTLVToBuf [10:23:43]FM_MakeSignedData [10:23:43]FM_MakeSignedData [10:23:43]SAM_PROTO_SignData [10:23:43]wFMCommunicate request_size=4 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 01 02 [10:23:43]Write to MH i2c: E2 08 00 DB 57 80 0D 01 02 00 00 00 00 AB [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 DB 57 00 90 00 A6 [10:23:43]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]wFMCommunicate request_size=255 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C1 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EE 02 00 35 04 06 00 64 [10:23:43]Write to MH i2c: E2 02 01 DC 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C1 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EE 02 00 35 04 06 00 64 00 00 99 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 DC 57 00 90 00 A7 [10:23:43]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]wFMCommunicate request_size=10 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 02 02 05 C1 4A B6 31 60 [10:23:43]Write to MH i2c: E2 0D 00 DD 57 80 0D 02 02 05 00 C1 4A B6 31 60 00 00 0A [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 03 00 DD 57 00 90 00 A8 [10:23:43]RAPDU: 90 00 [10:23:43]wFMCommunicate OK [10:23:43]wFMCommunicate request_size=4 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 0D 03 02 [10:23:43]Write to MH i2c: E2 08 00 DE 57 80 0D 03 02 00 00 00 00 B0 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 0B 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 0B 00 DE 57 00 C6 2A 3D 2D 23 33 50 68 90 00 19 [10:23:43]RAPDU: C6 2A 3D 2D 23 33 50 68 90 00 [10:23:43]wFMCommunicate OK [10:23:43]SAM_PROTO_SignData done [10:23:43]FM_MakeSignedData done [10:23:43]CreateOFDProtocolMessage [10:23:43]wFMCommunicate request_size=4 [10:23:43]MH_SAM_APDU [10:23:43]CAPDU: 80 11 00 00 [10:23:43]Write to MH i2c: E2 08 00 DF 57 80 11 00 00 00 00 00 00 B0 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:43]Read from MH i2c: E2 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 17 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: E2 17 00 DF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [10:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:43]wFMCommunicate OK [10:23:43]CreateOFDProtocolMessage done [10:23:43]OFDSenderStorePacket 192054 [10:23:43]StoreOFDPacket docnum=192054 [10:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 97 07 01 E3 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C1 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EE 02 00 35 04 06 00 64 C1 4A B6 31 60 C6 2A 3D 2D 23 33 50 68 [10:23:43]CheckFolder [10:23:43]dirname=/storage/ofd_packets [10:23:43]CheckFolder done [10:23:43]ProducePacketName [10:23:43]name=ofd_packets/00192054 [10:23:43]NVStorageSaveData ofd_packets/00192054 [10:23:43]File name is /storage/ofd_packets/00192054 [10:23:43]Write 301 bytes [10:23:43]NVStorageSaveData done [10:23:43]OFDSenderStorePacket done [10:23:43]KKMCreateOFDPacket done [10:23:43]NVStorageSaveData kkm_last_timestamp [10:23:43]File name is /storage/kkm_last_timestamp [10:23:43]Write 4 bytes [10:23:43]NVStorageSaveData done [10:23:43]ExternCall_PrintAddStr [10:23:43]wPrintStart [10:23:43]Write to MH i2c: 01 00 00 E0 57 37 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 E0 57 00 00 00 00 00 FF 0F 4C [10:23:43]RasterBufferAndPrint [10:23:43]line Счет N : (1)31363 [10:23:43]line ИНН: 02508201610067 [10:23:43]line Контрольно-Кассовый Чек [10:23:43]line ПРОДАЖА [10:23:43]line ТРК (МРК, ГНК) : 12 [10:23:43]line Товар: 2710124130 [10:23:43]line Аи-92-К-5 [10:23:43]line 7.480 * 66.90 [10:23:43]line = 500.41 [10:23:43]line НДС 12% НСП 1% [10:23:43]line > о реализуемом товаре [10:23:43]line ОКРУГЛЕНИЕ: -0.41 [10:23:43]line ИТОГО: 500.00 [10:23:43]line Внесено: 500.00 [10:23:43]line СДАЧА: 0.00 [10:23:43]line НСП 1% : 4.43 [10:23:43]line НДС 12% : 53.14 [10:23:43]line Наличными: 500.00 [10:23:43]line Безнал.: 0.00 [10:23:43]line Место: АЗС № 170 "Партнер Нефть" [10:23:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:23:43]line СНО: Общий режим [10:23:43]line Чек 86 27.10.2024 10:24 [10:23:43]line Смена: 542 ФФД: 1.0 [10:23:43]line ЗНМ: 0300000110 [10:23:43]line РНМ: 0000000000091776 [10:23:43]line Версия ККМ: 001 [10:23:43]line ФМ: 0000000000871754 [10:23:43]line ФД: 192054 [10:23:43]line ФПД: 110781344919904 [10:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192054&fm=110781344919904&tin=02508201610067®Number=0000000000091776&sum=50000 [10:23:43]OFD Sender: Processing packet 192054 [packets to send 75, broken 74] [10:23:43]ProducePacketName [10:23:43]name=ofd_packets/00192054 [10:23:43]OFD Sender: To server: pG, [10:23:43]CommunicateWithHost lk.salyk.kg:30040 [10:23:43]ConnectInit lk.salyk.kg [10:23:43]written 0, free lines is 4095 [10:23:43]Connected sock=8 [10:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 97 07 01 E3 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C1 14 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EE 02 00 35 04 06 00 64 C1 4A B6 31 60 C6 2A 3D 2D 23 33 50 68 [10:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0E 99 47 00 10 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EE 02 00 F4 03 04 00 89 B9 1D 67 B6 04 01 00 00 BF 39 3A 6C E3 91 EA C2 [10:23:44]CommunicateWithHost err = 0 [10:23:44]CheckOFDResponse [10:23:44]1017 (14) - 77093643461234 [10:23:44]1041 (16) - 0000000000871754 [10:23:44]1040 (4) - 192054 [10:23:44]1012 (4) - 27.10.2024 03:54 [10:23:44]1206 (1) - 0 [10:23:44]OFD Sender: Remove packet 192054 [10:23:44]ProducePacketName [10:23:44]name=ofd_packets/00192054 [10:23:44]NVStorageDeleteData [10:23:44]Write to MH i2c: 01 00 00 0B 58 63 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 0B 58 00 00 00 00 00 B2 0C 28 [10:23:44]RasterBufferAndPrint [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]written 0, free lines is 3260 [10:23:44]MH_Cut [10:23:44]Write to MH i2c: D1 01 00 12 58 01 3C [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 01 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 01 00 12 58 00 3B [10:23:44]Write to MH i2c: 01 00 00 13 58 6B [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]OFD Sender: No OFD packet to send [10:23:45]*** Cut start [10:23:45]*** Partial cut [10:23:45]*** CUTSNS_PIN = 1 [10:23:45]*** CUTSNS_PIN = 0 [10:23:45]*** Brake cut motor [10:23:45]Read from MH i2c: 01 [10:23:45]MH_I2C_Read... [10:23:45]*** Stop cut motor [10:23:45]*** Cut end [10:23:45]Read from MH i2c: 01 07 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 07 00 13 58 00 00 00 00 00 FF 0F 80 [10:23:45]process_action close_receipt done [10:23:45]requested_data is exist [10:23:45]produce_requested_data [10:23:45]requested_item fm.sn is exist - process it [10:23:45]wFMCommunicate request_size=4 [10:23:45]MH_SAM_APDU [10:23:45]CAPDU: 80 11 00 00 [10:23:45]Write to MH i2c: E2 08 00 14 58 80 11 00 00 00 00 00 00 E6 [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:45]Read from MH i2c: E2 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 17 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 17 00 14 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [10:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:23:45]wFMCommunicate OK [10:23:45]requested_item fd.num is exist - process it [10:23:45]SAM_PROTO_GetFieldsCounters [10:23:45]wFMCommunicate request_size=4 [10:23:45]MH_SAM_APDU [10:23:45]CAPDU: 80 13 00 00 [10:23:45]Write to MH i2c: E2 08 00 15 58 80 13 00 00 00 00 00 00 E9 [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 62 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 62 00 15 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetFieldsCounters done [10:23:46]requested_item shift.num is exist - process it [10:23:46]requested_item shift.opened is exist - process it [10:23:46]req_shift_opened [10:23:46]FM_GetShiftState [10:23:46]SAM_PROTO_GetShiftState [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 01 00 [10:23:46]Write to MH i2c: E2 08 00 16 58 80 13 01 00 00 00 00 00 EB [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 16 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2C [10:23:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetShiftState done [10:23:46]FM_GetShiftState done [10:23:46]req_shift_opened done [10:23:46]requested_item shift.open_date is exist - process it [10:23:46]req_shift_open_date [10:23:46]req_shift_open_date done [10:23:46]produce_requested_data done [10:23:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192054,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:23:46]process_action_free close_receipt [10:23:46]json_value_free [10:23:46]json_value_free done [10:23:46]process_json_proto returns [10:23:46]Send response to host [10:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192054,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:23:46]free response buf [10:23:46]execute_script done [10:23:46]execute_script returns [10:23:46]free content buf [10:23:46]Sock 6.Close socket [10:23:46]Sock 6.Thread stoped [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:17]accept exits with 5 [10:25:17]New connection [10:25:17]New thread 3066961252 created [10:25:17]Thread 3066817892 joined [10:25:17]Waiting for new connection... [10:25:17] Sock 5.Parse request [10:25:17]Sock 5.Check first char [10:25:17]Sock 5.First char is OK [10:25:17]request: POST /json_proto HTTP/1.0 [10:25:17]Method: POST [10:25:17]URL: /json_proto [10:25:17]Method is POST - this is cgi request [10:25:17]url: /json_proto [10:25:17]query_string will be loaded in cgi processing [10:25:17]execute_cgi json_proto POST (null) [10:25:17]execute_cgi path=json_proto method=POST [10:25:17]POST find Content-Length [10:25:17]Host: 172.17.63.131:8080 [10:25:17]Content-Length: 676 [10:25:17]Content-Type: application/json [10:25:17] [10:25:17]POST finish read [10:25:17]Found Content-Length = 676 [10:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:17]execute_script... [10:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:17]POST & json_proto [10:25:17]process_json_proto [10:25:17]json parsed OK: [10:25:17]protocol is kg_v1.0 [10:25:17]action value=close_receipt [10:25:17]process_action close_receipt [10:25:17]cmd_close_receipt [10:25:17]MH_GetDate [10:25:17]Write to MH i2c: F0 00 00 17 58 5E [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 09 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 09 00 17 58 00 20 15 1E 67 22 05 6E 64 1A [10:25:17]GetLastDocTimeStamp 1730024641 [10:25:17]current date 1730024736 [10:25:17]FM_GetShiftState [10:25:17]SAM_PROTO_GetShiftState [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 13 01 00 [10:25:17]Write to MH i2c: E2 08 00 18 58 80 13 01 00 00 00 00 00 ED [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0E 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0E 00 18 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2E [10:25:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:25:17]wFMCommunicate OK [10:25:17]SAM_PROTO_GetShiftState done [10:25:17]FM_GetShiftState done [10:25:17]opened in 1729989159 [10:25:17]opened+sec_in_day 1730075559 [10:25:17]quantity*price = 40006 [10:25:17]sum+1 = 40007 [10:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 87 27.10.2024 10:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192055 ФПД: 136894646216290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102536&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192055&fm=136894646216290&tin=02508201610067®Number=0000000000091776&sum=40000 [10:25:18]StoreToDocumentArchive [10:25:18]shift 542 fd 192055 [10:25:18]save to /storage/0542/doc_00192055 [10:25:18]save last doc name /storage/0542/doc_00192055 to /storage/kkm_last_doc_name [10:25:18]save OK [10:25:18]Clear old archive folders... [10:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:18]tlvbuf is 01609110 [10:25:18]SAM_PROTO_ClearQueue [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 09 00 00 [10:25:18]Write to MH i2c: E2 08 00 25 58 80 09 00 00 00 00 00 00 EF [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 25 58 00 90 00 F1 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]SAM_PROTO_ClearQueue done [10:25:18]KKMCreateOFDPacket [10:25:18]OFDProtocolAddRootSTLVToBuf [10:25:18]FM_MakeSignedData [10:25:18]FM_MakeSignedData [10:25:18]SAM_PROTO_SignData [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 01 02 [10:25:18]Write to MH i2c: E2 08 00 26 58 80 0D 01 02 00 00 00 00 F7 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 26 58 00 90 00 F2 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]wFMCommunicate request_size=255 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 20 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EE 02 00 35 04 06 00 7C [10:25:18]Write to MH i2c: E2 02 01 27 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 20 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EE 02 00 35 04 06 00 7C 00 00 2E [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 27 58 00 90 00 F3 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]wFMCommunicate request_size=10 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 02 02 05 81 44 C2 66 62 [10:25:18]Write to MH i2c: E2 0D 00 28 58 80 0D 02 02 05 00 81 44 C2 66 62 00 00 53 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 28 58 00 90 00 F4 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 03 02 [10:25:18]Write to MH i2c: E2 08 00 29 58 80 0D 03 02 00 00 00 00 FC [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 0B 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 0B 00 29 58 00 35 B4 AA 1B 53 D6 AE 0B 90 00 8D [10:25:18]RAPDU: 35 B4 AA 1B 53 D6 AE 0B 90 00 [10:25:18]wFMCommunicate OK [10:25:18]SAM_PROTO_SignData done [10:25:18]FM_MakeSignedData done [10:25:18]CreateOFDProtocolMessage [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 11 00 00 [10:25:18]Write to MH i2c: E2 08 00 2A 58 80 11 00 00 00 00 00 00 FC [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 17 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 17 00 2A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [10:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:25:18]wFMCommunicate OK [10:25:18]CreateOFDProtocolMessage done [10:25:18]OFDSenderStorePacket 192055 [10:25:18]StoreOFDPacket docnum=192055 [10:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 1D 07 01 DF 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 20 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EE 02 00 35 04 06 00 7C 81 44 C2 66 62 35 B4 AA 1B 53 D6 AE 0B [10:25:18]CheckFolder [10:25:18]dirname=/storage/ofd_packets [10:25:18]CheckFolder done [10:25:18]ProducePacketName [10:25:18]name=ofd_packets/00192055 [10:25:18]NVStorageSaveData ofd_packets/00192055 [10:25:18]File name is /storage/ofd_packets/00192055 [10:25:18]Write 301 bytes [10:25:18]NVStorageSaveData done [10:25:18]OFDSenderStorePacket done [10:25:18]KKMCreateOFDPacket done [10:25:18]NVStorageSaveData kkm_last_timestamp [10:25:18]File name is /storage/kkm_last_timestamp [10:25:18]Write 4 bytes [10:25:18]NVStorageSaveData done [10:25:18]ExternCall_PrintAddStr [10:25:18]wPrintStart [10:25:18]Write to MH i2c: 01 00 00 2B 58 83 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 2B 58 00 00 00 00 00 FF 0F 98 [10:25:18]RasterBufferAndPrint [10:25:18]line Счет N : (1)31365 [10:25:18]line ИНН: 02508201610067 [10:25:18]line Контрольно-Кассовый Чек [10:25:18]line ПРОДАЖА [10:25:18]line ТРК (МРК, ГНК) : 12 [10:25:18]line Товар: 2710124130 [10:25:18]line Аи-92-К-5 [10:25:18]line 5.980 * 66.90 [10:25:18]line = 400.06 [10:25:18]line НДС 12% НСП 1% [10:25:18]line > о реализуемом товаре [10:25:18]line ОКРУГЛЕНИЕ: -0.06 [10:25:18]line ИТОГО: 400.00 [10:25:18]line Внесено: 400.00 [10:25:18]line СДАЧА: 0.00 [10:25:18]line НСП 1% : 3.54 [10:25:18]line НДС 12% : 42.48 [10:25:18]line Наличными: 400.00 [10:25:18]line Безнал.: 0.00 [10:25:18]line Место: АЗС № 170 "Партнер Нефть" [10:25:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:25:18]line СНО: Общий режим [10:25:18]line Чек 87 27.10.2024 10:25 [10:25:18]line Смена: 542 ФФД: 1.0 [10:25:18]line ЗНМ: 0300000110 [10:25:18]line РНМ: 0000000000091776 [10:25:18]line Версия ККМ: 001 [10:25:18]line ФМ: 0000000000871754 [10:25:18]line ФД: 192055 [10:25:18]line ФПД: 136894646216290 [10:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102536&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192055&fm=136894646216290&tin=02508201610067®Number=0000000000091776&sum=40000 [10:25:19]OFD Sender: Processing packet 192055 [packets to send 75, broken 74] [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00192055 [10:25:19]OFD Sender: To server: pG, [10:25:19]CommunicateWithHost lk.salyk.kg:30040 [10:25:19]ConnectInit lk.salyk.kg [10:25:19]written 0, free lines is 4095 [10:25:19]Connected sock=8 [10:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 1D 07 01 DF 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 20 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EE 02 00 35 04 06 00 7C 81 44 C2 66 62 35 B4 AA 1B 53 D6 AE 0B [10:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 47 F7 47 00 1D 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EE 02 00 F4 03 04 00 E8 B9 1D 67 B6 04 01 00 00 C6 64 90 C1 0E 35 34 07 [10:25:19]CommunicateWithHost err = 0 [10:25:19]CheckOFDResponse [10:25:19]1017 (14) - 77093643461234 [10:25:19]1041 (16) - 0000000000871754 [10:25:19]1040 (4) - 192055 [10:25:19]1012 (4) - 27.10.2024 03:56 [10:25:19]1206 (1) - 0 [10:25:19]OFD Sender: Remove packet 192055 [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00192055 [10:25:19]NVStorageDeleteData [10:25:19]Write to MH i2c: 01 00 00 56 58 AE [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 56 58 00 00 00 00 00 A5 0C 66 [10:25:19]RasterBufferAndPrint [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]written 0, free lines is 3242 [10:25:19]MH_Cut [10:25:19]Write to MH i2c: D1 01 00 5D 58 01 87 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 01 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 01 00 5D 58 00 86 [10:25:19]Write to MH i2c: 01 00 00 5E 58 B6 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:20]OFD Sender: No OFD packet to send [10:25:20]*** Cut start [10:25:20]*** Partial cut [10:25:20]*** CUTSNS_PIN = 1 [10:25:20]*** CUTSNS_PIN = 0 [10:25:20]*** Brake cut motor [10:25:21]Read from MH i2c: 01 [10:25:21]MH_I2C_Read... [10:25:21]*** Stop cut motor [10:25:21]*** Cut end [10:25:21]Read from MH i2c: 01 07 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: 01 07 00 5E 58 00 00 00 00 00 FF 0F CB [10:25:21]process_action close_receipt done [10:25:21]requested_data is exist [10:25:21]produce_requested_data [10:25:21]requested_item fm.sn is exist - process it [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 11 00 00 [10:25:21]Write to MH i2c: E2 08 00 5F 58 80 11 00 00 00 00 00 00 31 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 5F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [10:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:25:21]wFMCommunicate OK [10:25:21]requested_item fd.num is exist - process it [10:25:21]SAM_PROTO_GetFieldsCounters [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 13 00 00 [10:25:21]Write to MH i2c: E2 08 00 60 58 80 13 00 00 00 00 00 00 34 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 62 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 62 00 60 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [10:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_GetFieldsCounters done [10:25:21]requested_item shift.num is exist - process it [10:25:21]requested_item shift.opened is exist - process it [10:25:21]req_shift_opened [10:25:21]FM_GetShiftState [10:25:21]SAM_PROTO_GetShiftState [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 13 01 00 [10:25:21]Write to MH i2c: E2 08 00 61 58 80 13 01 00 00 00 00 00 36 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 61 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 77 [10:25:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_GetShiftState done [10:25:21]FM_GetShiftState done [10:25:21]req_shift_opened done [10:25:21]requested_item shift.open_date is exist - process it [10:25:21]req_shift_open_date [10:25:21]req_shift_open_date done [10:25:21]produce_requested_data done [10:25:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192055,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:25:21]process_action_free close_receipt [10:25:21]json_value_free [10:25:21]json_value_free done [10:25:21]process_json_proto returns [10:25:21]Send response to host [10:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192055,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:25:21]free response buf [10:25:21]execute_script done [10:25:21]execute_script returns [10:25:21]free content buf [10:25:21]Sock 5.Close socket [10:25:21]Sock 5.Thread stoped [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:25:57]accept exits with 6 [10:25:57]New connection [10:25:57]New thread 3066817892 created [10:25:57]Thread 3066961252 joined [10:25:57]Waiting for new connection... [10:25:57] Sock 6.Parse request [10:25:57]Sock 6.Check first char [10:25:57]Sock 6.First char is OK [10:25:57]request: POST /json_proto HTTP/1.0 [10:25:57]Method: POST [10:25:57]URL: /json_proto [10:25:57]Method is POST - this is cgi request [10:25:57]url: /json_proto [10:25:57]query_string will be loaded in cgi processing [10:25:57]execute_cgi json_proto POST (null) [10:25:57]execute_cgi path=json_proto method=POST [10:25:57]POST find Content-Length [10:25:57]Host: 172.17.63.131:8080 [10:25:57]Content-Length: 862 [10:25:57]Content-Type: application/json [10:25:57] [10:25:57]POST finish read [10:25:57]Found Content-Length = 862 [10:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:57]execute_script... [10:25: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)31366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:57]POST & json_proto [10:25:57]process_json_proto [10:25:57]json parsed OK: [10:25:57]protocol is kg_v1.0 [10:25:57]action value=close_receipt [10:25:57]process_action close_receipt [10:25:57]cmd_close_receipt [10:25:57]MH_GetDate [10:25:57]Write to MH i2c: F0 00 00 62 58 A9 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: F0 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: F0 09 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: F0 09 00 62 58 00 49 15 1E 67 22 05 6E 64 8E [10:25:57]GetLastDocTimeStamp 1730024736 [10:25:57]current date 1730024777 [10:25:57]FM_GetShiftState [10:25:57]SAM_PROTO_GetShiftState [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 13 01 00 [10:25:57]Write to MH i2c: E2 08 00 63 58 80 13 01 00 00 00 00 00 38 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 63 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 79 [10:25:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_GetShiftState done [10:25:57]FM_GetShiftState done [10:25:57]opened in 1729989159 [10:25:57]opened+sec_in_day 1730075559 [10:25:57]quantity*price = 50041 [10:25:57]sum+1 = 50042 [10:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 88 27.10.2024 10:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192056 ФПД: 106764703261246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192056&fm=106764703261246&tin=02508201610067®Number=0000000000091776&sum=50041 [10:25:58]StoreToDocumentArchive [10:25:58]shift 542 fd 192056 [10:25:58]save to /storage/0542/doc_00192056 [10:25:58]save last doc name /storage/0542/doc_00192056 to /storage/kkm_last_doc_name [10:25:58]save OK [10:25:58]Clear old archive folders... [10:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:58]tlvbuf is 01960E40 [10:25:58]SAM_PROTO_ClearQueue [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 09 00 00 [10:25:58]Write to MH i2c: E2 08 00 70 58 80 09 00 00 00 00 00 00 3A [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 03 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 03 00 70 58 00 90 00 3C [10:25:58]RAPDU: 90 00 [10:25:58]wFMCommunicate OK [10:25:58]SAM_PROTO_ClearQueue done [10:25:58]KKMCreateOFDPacket [10:25:58]OFDProtocolAddRootSTLVToBuf [10:25:58]FM_MakeSignedData [10:25:58]FM_MakeSignedData [10:25:58]SAM_PROTO_SignData [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 0D 01 02 [10:25:58]Write to MH i2c: E2 08 00 71 58 80 0D 01 02 00 00 00 00 42 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 71 58 00 90 00 3D [10:25:59]RAPDU: 90 00 [10:25:59]wFMCommunicate OK [10:25:59]wFMCommunicate request_size=255 [10:25:59]MH_SAM_APDU [10:25:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EE 02 00 35 04 06 00 61 [10:25:59]Write to MH i2c: E2 02 01 72 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EE 02 00 35 04 06 00 61 00 00 0C [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 72 58 00 90 00 3E [10:25:59]RAPDU: 90 00 [10:25:59]wFMCommunicate OK [10:25:59]wFMCommunicate request_size=10 [10:25:59]MH_SAM_APDU [10:25:59]CAPDU: 80 0D 02 02 05 1A 18 36 62 3E [10:25:59]Write to MH i2c: E2 0D 00 73 58 80 0D 02 02 05 00 1A 18 36 62 3E 00 00 57 [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 03 00 73 58 00 90 00 3F [10:25:59]RAPDU: 90 00 [10:25:59]wFMCommunicate OK [10:25:59]wFMCommunicate request_size=4 [10:25:59]MH_SAM_APDU [10:25:59]CAPDU: 80 0D 03 02 [10:25:59]Write to MH i2c: E2 08 00 74 58 80 0D 03 02 00 00 00 00 47 [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 0B 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 0B 00 74 58 00 9D 45 BB 04 A3 52 45 3D 90 00 60 [10:25:59]RAPDU: 9D 45 BB 04 A3 52 45 3D 90 00 [10:25:59]wFMCommunicate OK [10:25:59]SAM_PROTO_SignData done [10:25:59]FM_MakeSignedData done [10:25:59]CreateOFDProtocolMessage [10:25:59]wFMCommunicate request_size=4 [10:25:59]MH_SAM_APDU [10:25:59]CAPDU: 80 11 00 00 [10:25:59]Write to MH i2c: E2 08 00 75 58 80 11 00 00 00 00 00 00 47 [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 17 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 17 00 75 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9A [10:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:25:59]wFMCommunicate OK [10:25:59]CreateOFDProtocolMessage done [10:25:59]OFDSenderStorePacket 192056 [10:25:59]StoreOFDPacket docnum=192056 [10:25:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 0E 07 01 E3 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EE 02 00 35 04 06 00 61 1A 18 36 62 3E 9D 45 BB 04 A3 52 45 3D [10:25:59]CheckFolder [10:25:59]dirname=/storage/ofd_packets [10:25:59]CheckFolder done [10:25:59]ProducePacketName [10:25:59]name=ofd_packets/00192056 [10:25:59]NVStorageSaveData ofd_packets/00192056 [10:25:59]File name is /storage/ofd_packets/00192056 [10:25:59]Write 301 bytes [10:25:59]NVStorageSaveData done [10:25:59]OFDSenderStorePacket done [10:25:59]KKMCreateOFDPacket done [10:25:59]NVStorageSaveData kkm_last_timestamp [10:25:59]File name is /storage/kkm_last_timestamp [10:25:59]Write 4 bytes [10:25:59]NVStorageSaveData done [10:25:59]ExternCall_PrintAddStr [10:25:59]wPrintStart [10:25:59]Write to MH i2c: 01 00 00 76 58 CE [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: 01 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: 01 07 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: 01 07 00 76 58 00 00 00 00 00 FF 0F E3 [10:25:59]RasterBufferAndPrint [10:25:59]line Счет N : (1)31366 [10:25:59]line ИНН: 02508201610067 [10:25:59]line Контрольно-Кассовый Чек [10:25:59]line ПРОДАЖА [10:25:59]line ТРК (МРК, ГНК) : 12 [10:25:59]line Товар: 2710124130 [10:25:59]line Аи-92-К-5 [10:25:59]line 7.480 * 66.90 [10:25:59]line = 500.41 [10:25:59]line НДС 12% НСП 1% [10:25:59]line > о реализуемом товаре [10:25:59]line ИТОГО: 500.41 [10:25:59]line НСП 1% : 4.43 [10:25:59]line НДС 12% : 53.14 [10:25:59]line Наличными: 0.00 [10:25:59]line Безнал.: 500.41 [10:25:59]line Место: АЗС № 170 "Партнер Нефть" [10:25:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:25:59]line СНО: Общий режим [10:25:59]line Чек 88 27.10.2024 10:26 [10:25:59]line Смена: 542 ФФД: 1.0 [10:25:59]line ЗНМ: 0300000110 [10:25:59]line РНМ: 0000000000091776 [10:25:59]line Версия ККМ: 001 [10:25:59]line Платежная система: Кыргызкоммерцбанк [10:25:59]line ФМ: 0000000000871754 [10:25:59]line ФД: 192056 [10:25:59]line ФПД: 106764703261246 [10:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192056&fm=106764703261246&tin=02508201610067®Number=0000000000091776&sum=50041 [10:25:59]written 0, free lines is 4095 [10:25:59]OFD Sender: Processing packet 192056 [packets to send 75, broken 74] [10:25:59]ProducePacketName [10:25:59]name=ofd_packets/00192056 [10:25:59]OFD Sender: To server: pG, [10:25:59]CommunicateWithHost lk.salyk.kg:30040 [10:25:59]ConnectInit lk.salyk.kg [10:25:59]Connected sock=8 [10:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 0E 07 01 E3 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EE 02 00 35 04 06 00 61 1A 18 36 62 3E 9D 45 BB 04 A3 52 45 3D [10:26:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 3B 47 00 AF 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EE 02 00 F4 03 04 00 11 BA 1D 67 B6 04 01 00 00 71 14 5E A4 39 7C F2 95 [10:26:00]CommunicateWithHost err = 0 [10:26:00]CheckOFDResponse [10:26:00]1017 (14) - 77093643461234 [10:26:00]1041 (16) - 0000000000871754 [10:26:00]1040 (4) - 192056 [10:26:00]1012 (4) - 27.10.2024 03:57 [10:26:00]1206 (1) - 0 [10:26:00]OFD Sender: Remove packet 192056 [10:26:00]ProducePacketName [10:26:00]name=ofd_packets/00192056 [10:26:00]NVStorageDeleteData [10:26:00]Write to MH i2c: 01 00 00 A0 58 F8 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: 01 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: 01 07 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: 01 07 00 A0 58 00 00 00 00 00 C8 0C D3 [10:26:00]RasterBufferAndPrint [10:26:00]line [10:26:00]line [10:26:00]line [10:26:00]line [10:26:00]line [10:26:00]written 0, free lines is 3281 [10:26:00]MH_Cut [10:26:00]Write to MH i2c: D1 01 00 A7 58 01 D1 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: D1 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: D1 01 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: D1 01 00 A7 58 00 D0 [10:26:00]Write to MH i2c: 01 00 00 A8 58 00 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]OFD Sender: No OFD packet to send [10:26:01]*** Cut start [10:26:01]*** Partial cut [10:26:01]*** CUTSNS_PIN = 1 [10:26:01]*** CUTSNS_PIN = 0 [10:26:01]*** Brake cut motor [10:26:01]Read from MH i2c: 01 [10:26:01]MH_I2C_Read... [10:26:01]*** Stop cut motor [10:26:01]*** Cut end [10:26:01]Read from MH i2c: 01 07 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: 01 07 00 A8 58 00 00 00 00 00 FF 0F 15 [10:26:01]process_action close_receipt done [10:26:01]requested_data is exist [10:26:01]produce_requested_data [10:26:01]requested_item fm.sn is exist - process it [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 11 00 00 [10:26:01]Write to MH i2c: E2 08 00 A9 58 80 11 00 00 00 00 00 00 7B [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 17 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 17 00 A9 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [10:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:26:01]wFMCommunicate OK [10:26:01]requested_item fd.num is exist - process it [10:26:01]SAM_PROTO_GetFieldsCounters [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 13 00 00 [10:26:01]Write to MH i2c: E2 08 00 AA 58 80 13 00 00 00 00 00 00 7E [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 62 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 62 00 AA 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_GetFieldsCounters done [10:26:01]requested_item shift.num is exist - process it [10:26:01]requested_item shift.opened is exist - process it [10:26:01]req_shift_opened [10:26:01]FM_GetShiftState [10:26:01]SAM_PROTO_GetShiftState [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 13 01 00 [10:26:01]Write to MH i2c: E2 08 00 AB 58 80 13 01 00 00 00 00 00 80 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0E 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0E 00 AB 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C1 [10:26:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_GetShiftState done [10:26:01]FM_GetShiftState done [10:26:01]req_shift_opened done [10:26:01]requested_item shift.open_date is exist - process it [10:26:01]req_shift_open_date [10:26:01]req_shift_open_date done [10:26:01]produce_requested_data done [10:26:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192056,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:26:01]process_action_free close_receipt [10:26:01]json_value_free [10:26:01]json_value_free done [10:26:01]process_json_proto returns [10:26:01]Send response to host [10:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192056,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:26:01]free response buf [10:26:01]execute_script done [10:26:01]execute_script returns [10:26:01]free content buf [10:26:01]Sock 6.Close socket [10:26:01]Sock 6.Thread stoped [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:01]accept exits with 5 [10:27:01]New connection [10:27:01]New thread 3066961252 created [10:27:01]Thread 3066817892 joined [10:27:01]Waiting for new connection... [10:27:01] Sock 5.Parse request [10:27:01]Sock 5.Check first char [10:27:01]Sock 5.First char is OK [10:27:01]request: POST /json_proto HTTP/1.0 [10:27:01]Method: POST [10:27:01]URL: /json_proto [10:27:01]Method is POST - this is cgi request [10:27:01]url: /json_proto [10:27:01]query_string will be loaded in cgi processing [10:27:01]execute_cgi json_proto POST (null) [10:27:01]execute_cgi path=json_proto method=POST [10:27:01]POST find Content-Length [10:27:01]Host: 172.17.63.131:8080 [10:27:01]Content-Length: 676 [10:27:01]Content-Type: application/json [10:27:01] [10:27:01]POST finish read [10:27:01]Found Content-Length = 676 [10:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:01]execute_script... [10:27: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)31367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:01]POST & json_proto [10:27:01]process_json_proto [10:27:01]json parsed OK: [10:27:01]protocol is kg_v1.0 [10:27:01]action value=close_receipt [10:27:01]process_action close_receipt [10:27:01]cmd_close_receipt [10:27:01]MH_GetDate [10:27:01]Write to MH i2c: F0 00 00 AC 58 F3 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: F0 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: F0 09 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: F0 09 00 AC 58 00 88 15 1E 67 22 05 6E 64 17 [10:27:01]GetLastDocTimeStamp 1730024777 [10:27:01]current date 1730024840 [10:27:01]FM_GetShiftState [10:27:01]SAM_PROTO_GetShiftState [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 13 01 00 [10:27:01]Write to MH i2c: E2 08 00 AD 58 80 13 01 00 00 00 00 00 82 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0E 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0E 00 AD 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C3 [10:27:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:27:01]wFMCommunicate OK [10:27:01]SAM_PROTO_GetShiftState done [10:27:01]FM_GetShiftState done [10:27:01]opened in 1729989159 [10:27:01]opened+sec_in_day 1730075559 [10:27:01]quantity*price = 30038 [10:27:01]sum+1 = 30039 [10:27:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 89 27.10.2024 10:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192057 ФПД: 90208451082603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192057&fm=90208451082603&tin=02508201610067®Number=0000000000091776&sum=30000 [10:27:02]StoreToDocumentArchive [10:27:02]shift 542 fd 192057 [10:27:02]save to /storage/0542/doc_00192057 [10:27:02]save last doc name /storage/0542/doc_00192057 to /storage/kkm_last_doc_name [10:27:02]save OK [10:27:02]Clear old archive folders... [10:27:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:02]tlvbuf is 01CAA6E0 [10:27:02]SAM_PROTO_ClearQueue [10:27:02]wFMCommunicate request_size=4 [10:27:02]MH_SAM_APDU [10:27:02]CAPDU: 80 09 00 00 [10:27:02]Write to MH i2c: E2 08 00 BA 58 80 09 00 00 00 00 00 00 84 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:02]Read from MH i2c: E2 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 BA 58 00 90 00 86 [10:27:02]RAPDU: 90 00 [10:27:02]wFMCommunicate OK [10:27:02]SAM_PROTO_ClearQueue done [10:27:02]KKMCreateOFDPacket [10:27:02]OFDProtocolAddRootSTLVToBuf [10:27:02]FM_MakeSignedData [10:27:02]FM_MakeSignedData [10:27:02]SAM_PROTO_SignData [10:27:02]wFMCommunicate request_size=4 [10:27:02]MH_SAM_APDU [10:27:02]CAPDU: 80 0D 01 02 [10:27:02]Write to MH i2c: E2 08 00 BB 58 80 0D 01 02 00 00 00 00 8C [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:02]Read from MH i2c: E2 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 BB 58 00 90 00 87 [10:27:02]RAPDU: 90 00 [10:27:02]wFMCommunicate OK [10:27:02]wFMCommunicate request_size=255 [10:27:02]MH_SAM_APDU [10:27:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EE 02 00 35 04 06 00 52 [10:27:02]Write to MH i2c: E2 02 01 BC 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EE 02 00 35 04 06 00 52 00 00 2A [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:02]Read from MH i2c: E2 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 BC 58 00 90 00 88 [10:27:02]RAPDU: 90 00 [10:27:02]wFMCommunicate OK [10:27:02]wFMCommunicate request_size=10 [10:27:02]MH_SAM_APDU [10:27:02]CAPDU: 80 0D 02 02 05 0B 4A AE B9 6B [10:27:02]Write to MH i2c: E2 0D 00 BD 58 80 0D 02 02 05 00 0B 4A AE B9 6B 00 00 C0 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:02]Read from MH i2c: E2 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: E2 03 00 BD 58 00 90 00 89 [10:27:02]RAPDU: 90 00 [10:27:02]wFMCommunicate OK [10:27:02]wFMCommunicate request_size=4 [10:27:02]MH_SAM_APDU [10:27:02]CAPDU: 80 0D 03 02 [10:27:02]Write to MH i2c: E2 08 00 BE 58 80 0D 03 02 00 00 00 00 91 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0B 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0B 00 BE 58 00 88 98 85 AB CA F4 28 CC 90 00 94 [10:27:03]RAPDU: 88 98 85 AB CA F4 28 CC 90 00 [10:27:03]wFMCommunicate OK [10:27:03]SAM_PROTO_SignData done [10:27:03]FM_MakeSignedData done [10:27:03]CreateOFDProtocolMessage [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 11 00 00 [10:27:03]Write to MH i2c: E2 08 00 BF 58 80 11 00 00 00 00 00 00 91 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 BF 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [10:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:03]wFMCommunicate OK [10:27:03]CreateOFDProtocolMessage done [10:27:03]OFDSenderStorePacket 192057 [10:27:03]StoreOFDPacket docnum=192057 [10:27:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CD 2D 07 01 D3 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EE 02 00 35 04 06 00 52 0B 4A AE B9 6B 88 98 85 AB CA F4 28 CC [10:27:03]CheckFolder [10:27:03]dirname=/storage/ofd_packets [10:27:03]CheckFolder done [10:27:03]ProducePacketName [10:27:03]name=ofd_packets/00192057 [10:27:03]NVStorageSaveData ofd_packets/00192057 [10:27:03]File name is /storage/ofd_packets/00192057 [10:27:03]Write 301 bytes [10:27:03]NVStorageSaveData done [10:27:03]OFDSenderStorePacket done [10:27:03]KKMCreateOFDPacket done [10:27:03]NVStorageSaveData kkm_last_timestamp [10:27:03]File name is /storage/kkm_last_timestamp [10:27:03]Write 4 bytes [10:27:03]NVStorageSaveData done [10:27:03]ExternCall_PrintAddStr [10:27:03]wPrintStart [10:27:03]Write to MH i2c: 01 00 00 C0 58 18 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 C0 58 00 00 00 00 00 FF 0F 2D [10:27:03]RasterBufferAndPrint [10:27:03]line Счет N : (1)31367 [10:27:03]line ИНН: 02508201610067 [10:27:03]line Контрольно-Кассовый Чек [10:27:03]line ПРОДАЖА [10:27:03]line ТРК (МРК, ГНК) : 21 [10:27:03]line Товар: 2710124130 [10:27:03]line Аи-92-К-5 [10:27:03]line 4.490 * 66.90 [10:27:03]line = 300.38 [10:27:03]line НДС 12% НСП 1% [10:27:03]line > о реализуемом товаре [10:27:03]line ОКРУГЛЕНИЕ: -0.38 [10:27:03]line ИТОГО: 300.00 [10:27:03]line Внесено: 300.00 [10:27:03]line СДАЧА: 0.00 [10:27:03]line НСП 1% : 2.66 [10:27:03]line НДС 12% : 31.90 [10:27:03]line Наличными: 300.00 [10:27:03]line Безнал.: 0.00 [10:27:03]line Место: АЗС № 170 "Партнер Нефть" [10:27:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:27:03]line СНО: Общий режим [10:27:03]line Чек 89 27.10.2024 10:27 [10:27:03]line Смена: 542 ФФД: 1.0 [10:27:03]line ЗНМ: 0300000110 [10:27:03]line РНМ: 0000000000091776 [10:27:03]line Версия ККМ: 001 [10:27:03]line ФМ: 0000000000871754 [10:27:03]line ФД: 192057 [10:27:03]line ФПД: 90208451082603 [10:27:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192057&fm=90208451082603&tin=02508201610067®Number=0000000000091776&sum=30000 [10:27:03]OFD Sender: Processing packet 192057 [packets to send 75, broken 74] [10:27:03]ProducePacketName [10:27:03]name=ofd_packets/00192057 [10:27:03]OFD Sender: To server: pG, [10:27:03]CommunicateWithHost lk.salyk.kg:30040 [10:27:03]ConnectInit lk.salyk.kg [10:27:03]written 0, free lines is 4095 [10:27:03]Connected sock=8 [10:27:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CD 2D 07 01 D3 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EE 02 00 35 04 06 00 52 0B 4A AE B9 6B 88 98 85 AB CA F4 28 CC [10:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 0B 47 00 C2 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EE 02 00 F4 03 04 00 51 BA 1D 67 B6 04 01 00 00 BE B2 C2 BE 90 57 2F 42 [10:27:03]CommunicateWithHost err = 0 [10:27:03]CheckOFDResponse [10:27:03]1017 (14) - 77093643461234 [10:27:03]1041 (16) - 0000000000871754 [10:27:03]1040 (4) - 192057 [10:27:03]1012 (4) - 27.10.2024 03:58 [10:27:03]1206 (1) - 0 [10:27:03]OFD Sender: Remove packet 192057 [10:27:03]ProducePacketName [10:27:03]name=ofd_packets/00192057 [10:27:03]NVStorageDeleteData [10:27:03]Write to MH i2c: 01 00 00 EB 58 43 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 EB 58 00 00 00 00 00 BA 0C 10 [10:27:03]RasterBufferAndPrint [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]written 0, free lines is 3269 [10:27:03]MH_Cut [10:27:03]Write to MH i2c: D1 01 00 F2 58 01 1C [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 01 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 01 00 F2 58 00 1B [10:27:03]Write to MH i2c: 01 00 00 F3 58 4B [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:04]OFD Sender: No OFD packet to send [10:27:04]*** Cut start [10:27:04]*** Partial cut [10:27:04]*** CUTSNS_PIN = 1 [10:27:04]*** CUTSNS_PIN = 0 [10:27:05]*** Brake cut motor [10:27:05]Read from MH i2c: 01 [10:27:05]MH_I2C_Read... [10:27:05]*** Stop cut motor [10:27:05]*** Cut end [10:27:05]Read from MH i2c: 01 07 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: 01 07 00 F3 58 00 00 00 00 00 FF 0F 60 [10:27:05]process_action close_receipt done [10:27:05]requested_data is exist [10:27:05]produce_requested_data [10:27:05]requested_item fm.sn is exist - process it [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 11 00 00 [10:27:05]Write to MH i2c: E2 08 00 F4 58 80 11 00 00 00 00 00 00 C6 [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 17 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 17 00 F4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [10:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:05]wFMCommunicate OK [10:27:05]requested_item fd.num is exist - process it [10:27:05]SAM_PROTO_GetFieldsCounters [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 13 00 00 [10:27:05]Write to MH i2c: E2 08 00 F5 58 80 13 00 00 00 00 00 00 C9 [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 62 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 62 00 F5 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:05]wFMCommunicate OK [10:27:05]SAM_PROTO_GetFieldsCounters done [10:27:05]requested_item shift.num is exist - process it [10:27:05]requested_item shift.opened is exist - process it [10:27:05]req_shift_opened [10:27:05]FM_GetShiftState [10:27:05]SAM_PROTO_GetShiftState [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 13 01 00 [10:27:05]Write to MH i2c: E2 08 00 F6 58 80 13 01 00 00 00 00 00 CB [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 F6 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [10:27:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:27:05]wFMCommunicate OK [10:27:05]SAM_PROTO_GetShiftState done [10:27:05]FM_GetShiftState done [10:27:05]req_shift_opened done [10:27:05]requested_item shift.open_date is exist - process it [10:27:05]req_shift_open_date [10:27:05]req_shift_open_date done [10:27:05]produce_requested_data done [10:27:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192057,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:27:05]process_action_free close_receipt [10:27:05]json_value_free [10:27:05]json_value_free done [10:27:05]process_json_proto returns [10:27:05]Send response to host [10:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192057,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:27:05]free response buf [10:27:05]execute_script done [10:27:05]execute_script returns [10:27:05]free content buf [10:27:05]Sock 5.Close socket [10:27:05]Sock 5.Thread stoped [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:37]accept exits with 6 [10:28:37]New connection [10:28:37]New thread 3066817892 created [10:28:37]Thread 3066961252 joined [10:28:37]Waiting for new connection... [10:28:37] Sock 6.Parse request [10:28:37]Sock 6.Check first char [10:28:37]Sock 6.First char is OK [10:28:37]request: POST /json_proto HTTP/1.0 [10:28:37]Method: POST [10:28:37]URL: /json_proto [10:28:37]Method is POST - this is cgi request [10:28:37]url: /json_proto [10:28:37]query_string will be loaded in cgi processing [10:28:37]execute_cgi json_proto POST (null) [10:28:37]execute_cgi path=json_proto method=POST [10:28:37]POST find Content-Length [10:28:37]Host: 172.17.63.131:8080 [10:28:37]Content-Length: 681 [10:28:37]Content-Type: application/json [10:28:37] [10:28:37]POST finish read [10:28:37]Found Content-Length = 681 [10:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:37]execute_script... [10:28: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)31368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:37]POST & json_proto [10:28:37]process_json_proto [10:28:37]json parsed OK: [10:28:37]protocol is kg_v1.0 [10:28:37]action value=close_receipt [10:28:37]process_action close_receipt [10:28:37]cmd_close_receipt [10:28:37]MH_GetDate [10:28:37]Write to MH i2c: F0 00 00 F7 58 3E [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 09 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 09 00 F7 58 00 E9 15 1E 67 22 05 6E 64 C3 [10:28:37]GetLastDocTimeStamp 1730024840 [10:28:37]current date 1730024937 [10:28:37]FM_GetShiftState [10:28:37]SAM_PROTO_GetShiftState [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 13 01 00 [10:28:37]Write to MH i2c: E2 08 00 F8 58 80 13 01 00 00 00 00 00 CD [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0E 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0E 00 F8 58 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0E [10:28:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:28:37]wFMCommunicate OK [10:28:37]SAM_PROTO_GetShiftState done [10:28:37]FM_GetShiftState done [10:28:37]opened in 1729989159 [10:28:37]opened+sec_in_day 1730075559 [10:28:37]quantity*price = 100015 [10:28:37]sum+1 = 100017 [10:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 90 27.10.2024 10:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192058 ФПД: 192087951933419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192058&fm=192087951933419&tin=02508201610067®Number=0000000000091776&sum=100000 [10:28:38]StoreToDocumentArchive [10:28:38]shift 542 fd 192058 [10:28:38]save to /storage/0542/doc_00192058 [10:28:38]save last doc name /storage/0542/doc_00192058 to /storage/kkm_last_doc_name [10:28:38]save OK [10:28:38]Clear old archive folders... [10:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:38]tlvbuf is 01B0C9F0 [10:28:38]SAM_PROTO_ClearQueue [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 09 00 00 [10:28:38]Write to MH i2c: E2 08 00 05 59 80 09 00 00 00 00 00 00 D0 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 05 59 00 90 00 D2 [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_ClearQueue done [10:28:38]KKMCreateOFDPacket [10:28:38]OFDProtocolAddRootSTLVToBuf [10:28:38]FM_MakeSignedData [10:28:38]FM_MakeSignedData [10:28:38]SAM_PROTO_SignData [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 01 02 [10:28:38]Write to MH i2c: E2 08 00 06 59 80 0D 01 02 00 00 00 00 D8 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 06 59 00 90 00 D3 [10:28:39]RAPDU: 90 00 [10:28:39]wFMCommunicate OK [10:28:39]wFMCommunicate request_size=255 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EE 02 00 35 04 06 00 AE [10:28:39]Write to MH i2c: E2 02 01 07 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EE 02 00 35 04 06 00 AE 00 00 3B [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 07 59 00 90 00 D4 [10:28:39]RAPDU: 90 00 [10:28:39]wFMCommunicate OK [10:28:39]wFMCommunicate request_size=10 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 0D 02 02 05 B3 F6 23 FF EB [10:28:39]Write to MH i2c: E2 0D 00 08 59 80 0D 02 02 05 00 B3 F6 23 FF EB 00 00 9B [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 03 00 08 59 00 90 00 D5 [10:28:39]RAPDU: 90 00 [10:28:39]wFMCommunicate OK [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 0D 03 02 [10:28:39]Write to MH i2c: E2 08 00 09 59 80 0D 03 02 00 00 00 00 DD [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]OFD Sender: No OFD packet to send [10:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0B 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0B 00 09 59 00 CD D2 43 3A E8 1E AE D4 90 00 82 [10:28:39]RAPDU: CD D2 43 3A E8 1E AE D4 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_SignData done [10:28:39]FM_MakeSignedData done [10:28:39]CreateOFDProtocolMessage [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 11 00 00 [10:28:39]Write to MH i2c: E2 08 00 0A 59 80 11 00 00 00 00 00 00 DD [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 0A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [10:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:28:39]wFMCommunicate OK [10:28:39]CreateOFDProtocolMessage done [10:28:39]OFDSenderStorePacket 192058 [10:28:39]StoreOFDPacket docnum=192058 [10:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 B4 07 01 FA BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EE 02 00 35 04 06 00 AE B3 F6 23 FF EB CD D2 43 3A E8 1E AE D4 [10:28:39]CheckFolder [10:28:39]dirname=/storage/ofd_packets [10:28:39]CheckFolder done [10:28:39]ProducePacketName [10:28:39]name=ofd_packets/00192058 [10:28:39]NVStorageSaveData ofd_packets/00192058 [10:28:39]File name is /storage/ofd_packets/00192058 [10:28:39]Write 301 bytes [10:28:39]NVStorageSaveData done [10:28:39]OFDSenderStorePacket done [10:28:39]KKMCreateOFDPacket done [10:28:39]NVStorageSaveData kkm_last_timestamp [10:28:39]File name is /storage/kkm_last_timestamp [10:28:39]Write 4 bytes [10:28:39]NVStorageSaveData done [10:28:39]ExternCall_PrintAddStr [10:28:39]wPrintStart [10:28:39]Write to MH i2c: 01 00 00 0B 59 64 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 0B 59 00 00 00 00 00 FF 0F 79 [10:28:39]RasterBufferAndPrint [10:28:39]line Счет N : (1)31368 [10:28:39]line ИНН: 02508201610067 [10:28:39]line Контрольно-Кассовый Чек [10:28:39]line ПРОДАЖА [10:28:39]line ТРК (МРК, ГНК) : 12 [10:28:39]line Товар: 2710124130 [10:28:39]line Аи-92-К-5 [10:28:39]line 14.950 * 66.90 [10:28:39]line = 1000.16 [10:28:39]line НДС 12% НСП 1% [10:28:39]line > о реализуемом товаре [10:28:39]line ОКРУГЛЕНИЕ: -0.16 [10:28:39]line ИТОГО: 1000.00 [10:28:39]line Внесено: 1000.00 [10:28:39]line СДАЧА: 0.00 [10:28:39]line НСП 1% : 8.85 [10:28:39]line НДС 12% : 106.21 [10:28:39]line Наличными: 1000.00 [10:28:39]line Безнал.: 0.00 [10:28:39]line Место: АЗС № 170 "Партнер Нефть" [10:28:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:28:39]line СНО: Общий режим [10:28:39]line Чек 90 27.10.2024 10:28 [10:28:39]line Смена: 542 ФФД: 1.0 [10:28:39]line ЗНМ: 0300000110 [10:28:39]line РНМ: 0000000000091776 [10:28:39]line Версия ККМ: 001 [10:28:39]line ФМ: 0000000000871754 [10:28:39]line ФД: 192058 [10:28:39]line ФПД: 192087951933419 [10:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192058&fm=192087951933419&tin=02508201610067®Number=0000000000091776&sum=100000 [10:28:39]OFD Sender: Processing packet 192058 [packets to send 75, broken 74] [10:28:39]ProducePacketName [10:28:39]name=ofd_packets/00192058 [10:28:39]OFD Sender: To server: pG, [10:28:39]CommunicateWithHost lk.salyk.kg:30040 [10:28:39]ConnectInit lk.salyk.kg [10:28:39]written 0, free lines is 4095 [10:28:39]Connected sock=8 [10:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 B4 07 01 FA BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 15 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EE 02 00 35 04 06 00 AE B3 F6 23 FF EB CD D2 43 3A E8 1E AE D4 [10:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 4F 47 00 DC C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EE 02 00 F4 03 04 00 B1 BA 1D 67 B6 04 01 00 00 15 F9 22 2B DA 1B AB 2F [10:28:40]CommunicateWithHost err = 0 [10:28:40]CheckOFDResponse [10:28:40]1017 (14) - 77093643461234 [10:28:40]1041 (16) - 0000000000871754 [10:28:40]1040 (4) - 192058 [10:28:40]1012 (4) - 27.10.2024 03:59 [10:28:40]1206 (1) - 0 [10:28:40]OFD Sender: Remove packet 192058 [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00192058 [10:28:40]NVStorageDeleteData [10:28:40]Write to MH i2c: 01 00 00 36 59 8F [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 36 59 00 00 00 00 00 B7 0C 59 [10:28:40]RasterBufferAndPrint [10:28:40]line [10:28:40]line [10:28:40]line [10:28:40]line [10:28:40]line [10:28:40]written 0, free lines is 3260 [10:28:40]MH_Cut [10:28:40]Write to MH i2c: D1 01 00 3D 59 01 68 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: D1 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: D1 01 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: D1 01 00 3D 59 00 67 [10:28:40]Write to MH i2c: 01 00 00 3E 59 97 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]OFD Sender: No OFD packet to send [10:28:41]*** Cut start [10:28:41]*** Partial cut [10:28:41]*** CUTSNS_PIN = 1 [10:28:41]*** CUTSNS_PIN = 0 [10:28:41]*** Brake cut motor [10:28:41]Read from MH i2c: 01 [10:28:41]MH_I2C_Read... [10:28:41]*** Stop cut motor [10:28:41]*** Cut end [10:28:41]Read from MH i2c: 01 07 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 3E 59 00 00 00 00 00 FF 0F AC [10:28:41]process_action close_receipt done [10:28:41]requested_data is exist [10:28:41]produce_requested_data [10:28:41]requested_item fm.sn is exist - process it [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 11 00 00 [10:28:41]Write to MH i2c: E2 08 00 3F 59 80 11 00 00 00 00 00 00 12 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 17 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 17 00 3F 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [10:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:28:41]wFMCommunicate OK [10:28:41]requested_item fd.num is exist - process it [10:28:41]SAM_PROTO_GetFieldsCounters [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 13 00 00 [10:28:41]Write to MH i2c: E2 08 00 40 59 80 13 00 00 00 00 00 00 15 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 62 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 62 00 40 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:28:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:41]wFMCommunicate OK [10:28:41]SAM_PROTO_GetFieldsCounters done [10:28:41]requested_item shift.num is exist - process it [10:28:41]requested_item shift.opened is exist - process it [10:28:41]req_shift_opened [10:28:41]FM_GetShiftState [10:28:41]SAM_PROTO_GetShiftState [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 13 01 00 [10:28:41]Write to MH i2c: E2 08 00 41 59 80 13 01 00 00 00 00 00 17 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 41 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [10:28:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetShiftState done [10:28:42]FM_GetShiftState done [10:28:42]req_shift_opened done [10:28:42]requested_item shift.open_date is exist - process it [10:28:42]req_shift_open_date [10:28:42]req_shift_open_date done [10:28:42]produce_requested_data done [10:28:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192058,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:28:42]process_action_free close_receipt [10:28:42]json_value_free [10:28:42]json_value_free done [10:28:42]process_json_proto returns [10:28:42]Send response to host [10:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192058,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:28:42]free response buf [10:28:42]execute_script done [10:28:42]execute_script returns [10:28:42]free content buf [10:28:42]Sock 6.Close socket [10:28:42]Sock 6.Thread stoped [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:24]accept exits with 5 [10:30:24]New connection [10:30:24]New thread 3066961252 created [10:30:24]Thread 3066817892 joined [10:30:24]Waiting for new connection... [10:30:24] Sock 5.Parse request [10:30:24]Sock 5.Check first char [10:30:24]Sock 5.First char is OK [10:30:24]request: POST /json_proto HTTP/1.0 [10:30:24]Method: POST [10:30:24]URL: /json_proto [10:30:24]Method is POST - this is cgi request [10:30:24]url: /json_proto [10:30:24]query_string will be loaded in cgi processing [10:30:24]execute_cgi json_proto POST (null) [10:30:24]execute_cgi path=json_proto method=POST [10:30:24]POST find Content-Length [10:30:24]Host: 172.17.63.131:8080 [10:30:24]Content-Length: 865 [10:30:24]Content-Type: application/json [10:30:24] [10:30:24]POST finish read [10:30:24]Found Content-Length = 865 [10:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:24]execute_script... [10:30: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)31369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:24]POST & json_proto [10:30:24]process_json_proto [10:30:24]json parsed OK: [10:30:24]protocol is kg_v1.0 [10:30:24]action value=close_receipt [10:30:24]process_action close_receipt [10:30:24]cmd_close_receipt [10:30:24]MH_GetDate [10:30:24]Write to MH i2c: F0 00 00 42 59 8A [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 09 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 09 00 42 59 00 54 16 1E 67 22 05 6E 64 7B [10:30:24]GetLastDocTimeStamp 1730024937 [10:30:24]current date 1730025044 [10:30:24]FM_GetShiftState [10:30:24]SAM_PROTO_GetShiftState [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 13 01 00 [10:30:24]Write to MH i2c: E2 08 00 43 59 80 13 01 00 00 00 00 00 19 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0E 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0E 00 43 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5A [10:30:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:30:24]wFMCommunicate OK [10:30:24]SAM_PROTO_GetShiftState done [10:30:24]FM_GetShiftState done [10:30:24]opened in 1729989159 [10:30:24]opened+sec_in_day 1730075559 [10:30:24]quantity*price = 150056 [10:30:24]sum+1 = 150058 [10:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 91 27.10.2024 10:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192059 ФПД: 151819571140360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192059&fm=151819571140360&tin=02508201610067®Number=0000000000091776&sum=150057 [10:30:25]StoreToDocumentArchive [10:30:25]shift 542 fd 192059 [10:30:25]save to /storage/0542/doc_00192059 [10:30:25]save last doc name /storage/0542/doc_00192059 to /storage/kkm_last_doc_name [10:30:25]save OK [10:30:25]Clear old archive folders... [10:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:25]tlvbuf is 01CAA8A0 [10:30:25]SAM_PROTO_ClearQueue [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 09 00 00 [10:30:25]Write to MH i2c: E2 08 00 50 59 80 09 00 00 00 00 00 00 1B [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 50 59 00 90 00 1D [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_ClearQueue done [10:30:25]KKMCreateOFDPacket [10:30:25]OFDProtocolAddRootSTLVToBuf [10:30:25]FM_MakeSignedData [10:30:25]FM_MakeSignedData [10:30:25]SAM_PROTO_SignData [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 01 02 [10:30:25]Write to MH i2c: E2 08 00 51 59 80 0D 01 02 00 00 00 00 23 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 51 59 00 90 00 1E [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]wFMCommunicate request_size=255 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 54 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EE 02 00 35 04 06 00 8A [10:30:25]Write to MH i2c: E2 02 01 52 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 54 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EE 02 00 35 04 06 00 8A 00 00 93 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 52 59 00 90 00 1F [10:30:26]RAPDU: 90 00 [10:30:26]wFMCommunicate OK [10:30:26]wFMCommunicate request_size=10 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 0D 02 02 05 14 3F 9B 97 08 [10:30:26]Write to MH i2c: E2 0D 00 53 59 80 0D 02 02 05 00 14 3F 9B 97 08 00 00 BD [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 53 59 00 90 00 20 [10:30:26]RAPDU: 90 00 [10:30:26]wFMCommunicate OK [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 0D 03 02 [10:30:26]Write to MH i2c: E2 08 00 54 59 80 0D 03 02 00 00 00 00 28 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0B 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0B 00 54 59 00 EB BE 0B 70 85 88 83 15 90 00 F2 [10:30:26]RAPDU: EB BE 0B 70 85 88 83 15 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_SignData done [10:30:26]FM_MakeSignedData done [10:30:26]CreateOFDProtocolMessage [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 11 00 00 [10:30:26]Write to MH i2c: E2 08 00 55 59 80 11 00 00 00 00 00 00 28 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 55 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [10:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:26]wFMCommunicate OK [10:30:26]CreateOFDProtocolMessage done [10:30:26]OFDSenderStorePacket 192059 [10:30:26]StoreOFDPacket docnum=192059 [10:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 B1 07 01 1A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 54 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EE 02 00 35 04 06 00 8A 14 3F 9B 97 08 EB BE 0B 70 85 88 83 15 [10:30:26]CheckFolder [10:30:26]dirname=/storage/ofd_packets [10:30:26]CheckFolder done [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00192059 [10:30:26]NVStorageSaveData ofd_packets/00192059 [10:30:26]File name is /storage/ofd_packets/00192059 [10:30:26]Write 301 bytes [10:30:26]NVStorageSaveData done [10:30:26]OFDSenderStorePacket done [10:30:26]KKMCreateOFDPacket done [10:30:26]NVStorageSaveData kkm_last_timestamp [10:30:26]File name is /storage/kkm_last_timestamp [10:30:26]Write 4 bytes [10:30:26]NVStorageSaveData done [10:30:26]ExternCall_PrintAddStr [10:30:26]wPrintStart [10:30:26]Write to MH i2c: 01 00 00 56 59 AF [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 56 59 00 00 00 00 00 FF 0F C4 [10:30:26]RasterBufferAndPrint [10:30:26]line Счет N : (1)31369 [10:30:26]line ИНН: 02508201610067 [10:30:26]line Контрольно-Кассовый Чек [10:30:26]line ПРОДАЖА [10:30:26]line ТРК (МРК, ГНК) : 21 [10:30:26]line Товар: 2710124130 [10:30:26]line Аи-92-К-5 [10:30:26]line 22.430 * 66.90 [10:30:26]line = 1500.57 [10:30:26]line НДС 12% НСП 1% [10:30:26]line > о реализуемом товаре [10:30:26]line ИТОГО: 1500.57 [10:30:26]line НСП 1% : 13.28 [10:30:26]line НДС 12% : 159.35 [10:30:26]line Наличными: 0.00 [10:30:26]line Безнал.: 1500.57 [10:30:26]line Место: АЗС № 170 "Партнер Нефть" [10:30:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:30:26]line СНО: Общий режим [10:30:26]line Чек 91 27.10.2024 10:30 [10:30:26]line Смена: 542 ФФД: 1.0 [10:30:26]line ЗНМ: 0300000110 [10:30:26]line РНМ: 0000000000091776 [10:30:26]line Версия ККМ: 001 [10:30:26]line Платежная система: Кыргызкоммерцбанк [10:30:26]line ФМ: 0000000000871754 [10:30:26]line ФД: 192059 [10:30:26]line ФПД: 151819571140360 [10:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192059&fm=151819571140360&tin=02508201610067®Number=0000000000091776&sum=150057 [10:30:26]written 0, free lines is 4095 [10:30:26]OFD Sender: Processing packet 192059 [packets to send 75, broken 74] [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00192059 [10:30:26]OFD Sender: To server: pG, [10:30:26]CommunicateWithHost lk.salyk.kg:30040 [10:30:26]ConnectInit lk.salyk.kg [10:30:26]Connected sock=9 [10:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 B1 07 01 1A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 54 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EE 02 00 35 04 06 00 8A 14 3F 9B 97 08 EB BE 0B 70 85 88 83 15 [10: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 37 35 34 4F 00 00 00 26 C0 47 00 37 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EE 02 00 F4 03 04 00 1B BB 1D 67 B6 04 01 00 00 E9 93 F3 30 CA 2C 61 B1 [10:30:26]CommunicateWithHost err = 0 [10:30:26]CheckOFDResponse [10:30:26]1017 (14) - 77093643461234 [10:30:26]1041 (16) - 0000000000871754 [10:30:26]1040 (4) - 192059 [10:30:26]1012 (4) - 27.10.2024 04:01 [10:30:26]1206 (1) - 0 [10:30:26]OFD Sender: Remove packet 192059 [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00192059 [10:30:26]NVStorageDeleteData [10:30:26]Write to MH i2c: 01 00 00 80 59 D9 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 80 59 00 00 00 00 00 C7 0C B3 [10:30:26]RasterBufferAndPrint [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]written 0, free lines is 3276 [10:30:26]MH_Cut [10:30:26]Write to MH i2c: D1 01 00 87 59 01 B2 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 87 59 00 B1 [10:30:26]Write to MH i2c: 01 00 00 88 59 E1 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:27]OFD Sender: No OFD packet to send [10:30:27]*** Cut start [10:30:27]*** Partial cut [10:30:27]*** CUTSNS_PIN = 1 [10:30:27]*** CUTSNS_PIN = 0 [10:30:27]*** Brake cut motor [10:30:28]Read from MH i2c: 01 [10:30:28]MH_I2C_Read... [10:30:28]*** Stop cut motor [10:30:28]*** Cut end [10:30:28]Read from MH i2c: 01 07 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 88 59 00 00 00 00 00 FF 0F F6 [10:30:28]process_action close_receipt done [10:30:28]requested_data is exist [10:30:28]produce_requested_data [10:30:28]requested_item fm.sn is exist - process it [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 11 00 00 [10:30:28]Write to MH i2c: E2 08 00 89 59 80 11 00 00 00 00 00 00 5C [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 89 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [10:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:28]wFMCommunicate OK [10:30:28]requested_item fd.num is exist - process it [10:30:28]SAM_PROTO_GetFieldsCounters [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 13 00 00 [10:30:28]Write to MH i2c: E2 08 00 8A 59 80 13 00 00 00 00 00 00 5F [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 62 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 62 00 8A 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:28]wFMCommunicate OK [10:30:28]SAM_PROTO_GetFieldsCounters done [10:30:28]requested_item shift.num is exist - process it [10:30:28]requested_item shift.opened is exist - process it [10:30:28]req_shift_opened [10:30:28]FM_GetShiftState [10:30:28]SAM_PROTO_GetShiftState [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 13 01 00 [10:30:28]Write to MH i2c: E2 08 00 8B 59 80 13 01 00 00 00 00 00 61 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0E 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0E 00 8B 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [10:30:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:30:28]wFMCommunicate OK [10:30:28]SAM_PROTO_GetShiftState done [10:30:28]FM_GetShiftState done [10:30:28]req_shift_opened done [10:30:28]requested_item shift.open_date is exist - process it [10:30:28]req_shift_open_date [10:30:28]req_shift_open_date done [10:30:28]produce_requested_data done [10:30:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192059,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:30:28]process_action_free close_receipt [10:30:28]json_value_free [10:30:28]json_value_free done [10:30:28]process_json_proto returns [10:30:28]Send response to host [10:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192059,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:30:28]free response buf [10:30:28]execute_script done [10:30:28]execute_script returns [10:30:28]free content buf [10:30:28]Sock 5.Close socket [10:30:28]Sock 5.Thread stoped [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:01]accept exits with 6 [10:32:01]New connection [10:32:01]New thread 3066817892 created [10:32:01]Thread 3066961252 joined [10:32:01]Waiting for new connection... [10:32:01] Sock 6.Parse request [10:32:01]Sock 6.Check first char [10:32:01]Sock 6.First char is OK [10:32:01]request: POST /json_proto HTTP/1.0 [10:32:01]Method: POST [10:32:01]URL: /json_proto [10:32:01]Method is POST - this is cgi request [10:32:01]url: /json_proto [10:32:01]query_string will be loaded in cgi processing [10:32:01]execute_cgi json_proto POST (null) [10:32:01]execute_cgi path=json_proto method=POST [10:32:01]POST find Content-Length [10:32:01]Host: 172.17.63.131:8080 [10:32:01]Content-Length: 677 [10:32:01]Content-Type: application/json [10:32:01] [10:32:01]POST finish read [10:32:01]Found Content-Length = 677 [10:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:01]execute_script... [10: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 : (1)31370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:01]POST & json_proto [10:32:01]process_json_proto [10:32:01]json parsed OK: [10:32:01]protocol is kg_v1.0 [10:32:01]action value=close_receipt [10:32:01]process_action close_receipt [10:32:01]cmd_close_receipt [10:32:01]MH_GetDate [10:32:01]Write to MH i2c: F0 00 00 8C 59 D4 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 8C 59 00 B5 16 1E 67 22 05 6E 64 26 [10:32:01]GetLastDocTimeStamp 1730025044 [10:32:01]current date 1730025141 [10:32:01]FM_GetShiftState [10:32:01]SAM_PROTO_GetShiftState [10:32:01]wFMCommunicate request_size=4 [10:32:01]MH_SAM_APDU [10:32:01]CAPDU: 80 13 01 00 [10:32:01]Write to MH i2c: E2 08 00 8D 59 80 13 01 00 00 00 00 00 63 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:01]Read from MH i2c: E2 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 8D 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [10:32:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:32:01]wFMCommunicate OK [10:32:01]SAM_PROTO_GetShiftState done [10:32:01]FM_GetShiftState done [10:32:01]opened in 1729989159 [10:32:01]opened+sec_in_day 1730075559 [10:32:01]quantity*price = 90047 [10:32:01]sum+1 = 90048 [10:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 92 27.10.2024 10:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192060 ФПД: 220555397865057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192060&fm=220555397865057&tin=02508201610067®Number=0000000000091776&sum=90000 [10:32:03]StoreToDocumentArchive [10:32:03]shift 542 fd 192060 [10:32:03]save to /storage/0542/doc_00192060 [10:32:03]save last doc name /storage/0542/doc_00192060 to /storage/kkm_last_doc_name [10:32:03]save OK [10:32:03]Clear old archive folders... [10:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:03]tlvbuf is 01D13870 [10:32:03]SAM_PROTO_ClearQueue [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 09 00 00 [10:32:03]Write to MH i2c: E2 08 00 9A 59 80 09 00 00 00 00 00 00 65 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 9A 59 00 90 00 67 [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]SAM_PROTO_ClearQueue done [10:32:03]KKMCreateOFDPacket [10:32:03]OFDProtocolAddRootSTLVToBuf [10:32:03]FM_MakeSignedData [10:32:03]FM_MakeSignedData [10:32:03]SAM_PROTO_SignData [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 01 02 [10:32:03]Write to MH i2c: E2 08 00 9B 59 80 0D 01 02 00 00 00 00 6D [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 9B 59 00 90 00 68 [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]wFMCommunicate request_size=255 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B5 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EE 02 00 35 04 06 00 C8 [10:32:03]Write to MH i2c: E2 02 01 9C 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B5 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EE 02 00 35 04 06 00 C8 00 00 DE [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 9C 59 00 90 00 69 [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]wFMCommunicate request_size=10 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 02 02 05 98 0E 24 9E 61 [10:32:03]Write to MH i2c: E2 0D 00 9D 59 80 0D 02 02 05 00 98 0E 24 9E 61 00 00 43 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 9D 59 00 90 00 6A [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 03 02 [10:32:03]Write to MH i2c: E2 08 00 9E 59 80 0D 03 02 00 00 00 00 72 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 0B 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 0B 00 9E 59 00 A8 2B 08 AA C4 D4 F7 21 90 00 A8 [10:32:03]RAPDU: A8 2B 08 AA C4 D4 F7 21 90 00 [10:32:03]wFMCommunicate OK [10:32:03]SAM_PROTO_SignData done [10:32:03]FM_MakeSignedData done [10:32:03]CreateOFDProtocolMessage [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 11 00 00 [10:32:03]Write to MH i2c: E2 08 00 9F 59 80 11 00 00 00 00 00 00 72 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 17 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 17 00 9F 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [10:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:03]wFMCommunicate OK [10:32:03]CreateOFDProtocolMessage done [10:32:03]OFDSenderStorePacket 192060 [10:32:03]StoreOFDPacket docnum=192060 [10:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D CB 07 01 FE 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B5 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EE 02 00 35 04 06 00 C8 98 0E 24 9E 61 A8 2B 08 AA C4 D4 F7 21 [10:32:03]CheckFolder [10:32:03]dirname=/storage/ofd_packets [10:32:03]CheckFolder done [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00192060 [10:32:03]NVStorageSaveData ofd_packets/00192060 [10:32:03]File name is /storage/ofd_packets/00192060 [10:32:03]Write 301 bytes [10:32:03]NVStorageSaveData done [10:32:03]OFDSenderStorePacket done [10:32:03]KKMCreateOFDPacket done [10:32:03]NVStorageSaveData kkm_last_timestamp [10:32:03]File name is /storage/kkm_last_timestamp [10:32:03]Write 4 bytes [10:32:03]NVStorageSaveData done [10:32:03]ExternCall_PrintAddStr [10:32:03]wPrintStart [10:32:03]Write to MH i2c: 01 00 00 A0 59 F9 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 A0 59 00 00 00 00 00 FF 0F 0E [10:32:03]RasterBufferAndPrint [10:32:03]line Счет N : (1)31370 [10:32:03]line ИНН: 02508201610067 [10:32:03]line Контрольно-Кассовый Чек [10:32:03]line ПРОДАЖА [10:32:03]line ТРК (МРК, ГНК) : 21 [10:32:03]line Товар: 2710124130 [10:32:03]line Аи-92-К-5 [10:32:03]line 13.460 * 66.90 [10:32:03]line = 900.47 [10:32:03]line НДС 12% НСП 1% [10:32:03]line > о реализуемом товаре [10:32:03]line ОКРУГЛЕНИЕ: -0.47 [10:32:03]line ИТОГО: 900.00 [10:32:03]line Внесено: 900.00 [10:32:03]line СДАЧА: 0.00 [10:32:03]line НСП 1% : 7.97 [10:32:03]line НДС 12% : 95.62 [10:32:03]line Наличными: 900.00 [10:32:03]line Безнал.: 0.00 [10:32:03]line Место: АЗС № 170 "Партнер Нефть" [10:32:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:32:03]line СНО: Общий режим [10:32:03]line Чек 92 27.10.2024 10:32 [10:32:03]line Смена: 542 ФФД: 1.0 [10:32:03]line ЗНМ: 0300000110 [10:32:03]line РНМ: 0000000000091776 [10:32:03]line Версия ККМ: 001 [10:32:03]line ФМ: 0000000000871754 [10:32:03]line ФД: 192060 [10:32:03]line ФПД: 220555397865057 [10:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192060&fm=220555397865057&tin=02508201610067®Number=0000000000091776&sum=90000 [10:32:03]OFD Sender: Processing packet 192060 [packets to send 75, broken 74] [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00192060 [10:32:03]OFD Sender: To server: pG, [10:32:03]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]written 0, free lines is 4095 [10:32:04]Connected sock=8 [10:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D CB 07 01 FE 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B5 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EE 02 00 35 04 06 00 C8 98 0E 24 9E 61 A8 2B 08 AA C4 D4 F7 21 [10: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 37 35 34 4F 00 00 00 C6 1A 47 00 82 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EE 02 00 F4 03 04 00 7D BB 1D 67 B6 04 01 00 00 C8 ED 6D 1E DC 97 61 76 [10:32:04]CommunicateWithHost err = 0 [10:32:04]CheckOFDResponse [10:32:04]1017 (14) - 77093643461234 [10:32:04]1041 (16) - 0000000000871754 [10:32:04]1040 (4) - 192060 [10:32:04]1012 (4) - 27.10.2024 04:03 [10:32:04]1206 (1) - 0 [10:32:04]OFD Sender: Remove packet 192060 [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00192060 [10:32:04]NVStorageDeleteData [10:32:04]Write to MH i2c: 01 00 00 CB 59 24 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 CB 59 00 00 00 00 00 AA 0C E1 [10:32:04]RasterBufferAndPrint [10:32:04]line [10:32:04]line [10:32:04]line [10:32:04]line [10:32:04]line [10:32:04]written 0, free lines is 3248 [10:32:04]MH_Cut [10:32:04]Write to MH i2c: D1 01 00 D2 59 01 FD [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: D1 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: D1 01 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: D1 01 00 D2 59 00 FC [10:32:04]Write to MH i2c: 01 00 00 D3 59 2C [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]OFD Sender: No OFD packet to send [10:32:05]*** Cut start [10:32:05]*** Partial cut [10:32:05]*** CUTSNS_PIN = 1 [10:32:05]*** CUTSNS_PIN = 0 [10:32:05]*** Brake cut motor [10:32:05]Read from MH i2c: 01 [10:32:05]MH_I2C_Read... [10:32:05]*** Stop cut motor [10:32:05]*** Cut end [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 D3 59 00 00 00 00 00 FF 0F 41 [10:32:05]process_action close_receipt done [10:32:05]requested_data is exist [10:32:05]produce_requested_data [10:32:05]requested_item fm.sn is exist - process it [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 11 00 00 [10:32:05]Write to MH i2c: E2 08 00 D4 59 80 11 00 00 00 00 00 00 A7 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 D4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [10:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:05]wFMCommunicate OK [10:32:05]requested_item fd.num is exist - process it [10:32:05]SAM_PROTO_GetFieldsCounters [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 00 00 [10:32:05]Write to MH i2c: E2 08 00 D5 59 80 13 00 00 00 00 00 00 AA [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 62 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 62 00 D5 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetFieldsCounters done [10:32:06]requested_item shift.num is exist - process it [10:32:06]requested_item shift.opened is exist - process it [10:32:06]req_shift_opened [10:32:06]FM_GetShiftState [10:32:06]SAM_PROTO_GetShiftState [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 13 01 00 [10:32:06]Write to MH i2c: E2 08 00 D6 59 80 13 01 00 00 00 00 00 AC [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 D6 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [10:32:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetShiftState done [10:32:06]FM_GetShiftState done [10:32:06]req_shift_opened done [10:32:06]requested_item shift.open_date is exist - process it [10:32:06]req_shift_open_date [10:32:06]req_shift_open_date done [10:32:06]produce_requested_data done [10:32:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192060,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:32:06]process_action_free close_receipt [10:32:06]json_value_free [10:32:06]json_value_free done [10:32:06]process_json_proto returns [10:32:06]Send response to host [10:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192060,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:32:06]free response buf [10:32:06]execute_script done [10:32:06]execute_script returns [10:32:06]free content buf [10:32:06]Sock 6.Close socket [10:32:06]Sock 6.Thread stoped [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:37]accept exits with 5 [10:32:37]New connection [10:32:37]New thread 3066961252 created [10:32:37]Thread 3066817892 joined [10:32:37]Waiting for new connection... [10:32:37] Sock 5.Parse request [10:32:37]Sock 5.Check first char [10:32:37]Sock 5.First char is OK [10:32:37]request: POST /json_proto HTTP/1.0 [10:32:37]Method: POST [10:32:37]URL: /json_proto [10:32:37]Method is POST - this is cgi request [10:32:37]url: /json_proto [10:32:37]query_string will be loaded in cgi processing [10:32:37]execute_cgi json_proto POST (null) [10:32:37]execute_cgi path=json_proto method=POST [10:32:37]POST find Content-Length [10:32:37]Host: 172.17.63.131:8080 [10:32:37]Content-Length: 676 [10:32:37]Content-Type: application/json [10:32:37] [10:32:37]POST finish read [10:32:37]Found Content-Length = 676 [10:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:37]execute_script... [10:32: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)31371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:37]POST & json_proto [10:32:37]process_json_proto [10:32:37]json parsed OK: [10:32:37]protocol is kg_v1.0 [10:32:37]action value=close_receipt [10:32:37]process_action close_receipt [10:32:37]cmd_close_receipt [10:32:37]MH_GetDate [10:32:37]Write to MH i2c: F0 00 00 D7 59 1F [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: F0 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: F0 09 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: F0 09 00 D7 59 00 D9 16 1E 67 22 05 6E 64 95 [10:32:37]GetLastDocTimeStamp 1730025141 [10:32:37]current date 1730025177 [10:32:37]FM_GetShiftState [10:32:37]SAM_PROTO_GetShiftState [10:32:37]wFMCommunicate request_size=4 [10:32:37]MH_SAM_APDU [10:32:37]CAPDU: 80 13 01 00 [10:32:37]Write to MH i2c: E2 08 00 D8 59 80 13 01 00 00 00 00 00 AE [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:37]Read from MH i2c: E2 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: E2 0E 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: E2 0E 00 D8 59 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [10:32:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:32:37]wFMCommunicate OK [10:32:37]SAM_PROTO_GetShiftState done [10:32:37]FM_GetShiftState done [10:32:37]opened in 1729989159 [10:32:37]opened+sec_in_day 1730075559 [10:32:37]quantity*price = 20003 [10:32:37]sum+1 = 20004 [10:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 93 27.10.2024 10:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192061 ФПД: 68765304543816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192061&fm=68765304543816&tin=02508201610067®Number=0000000000091776&sum=20000 [10:32:38]StoreToDocumentArchive [10:32:38]shift 542 fd 192061 [10:32:38]save to /storage/0542/doc_00192061 [10:32:38]save last doc name /storage/0542/doc_00192061 to /storage/kkm_last_doc_name [10:32:38]save OK [10:32:38]Clear old archive folders... [10:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:38]tlvbuf is 01AA7080 [10:32:38]SAM_PROTO_ClearQueue [10:32:38]wFMCommunicate request_size=4 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 09 00 00 [10:32:38]Write to MH i2c: E2 08 00 E5 59 80 09 00 00 00 00 00 00 B0 [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:38]Read from MH i2c: E2 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 03 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 03 00 E5 59 00 90 00 B2 [10:32:38]RAPDU: 90 00 [10:32:38]wFMCommunicate OK [10:32:38]SAM_PROTO_ClearQueue done [10:32:38]KKMCreateOFDPacket [10:32:38]OFDProtocolAddRootSTLVToBuf [10:32:38]FM_MakeSignedData [10:32:38]FM_MakeSignedData [10:32:38]SAM_PROTO_SignData [10:32:38]wFMCommunicate request_size=4 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 0D 01 02 [10:32:38]Write to MH i2c: E2 08 00 E6 59 80 0D 01 02 00 00 00 00 B8 [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:38]Read from MH i2c: E2 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 03 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 03 00 E6 59 00 90 00 B3 [10:32:38]RAPDU: 90 00 [10:32:38]wFMCommunicate OK [10:32:38]wFMCommunicate request_size=255 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D9 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EE 02 00 35 04 06 00 3E [10:32:38]Write to MH i2c: E2 02 01 E7 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D9 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EE 02 00 35 04 06 00 3E 00 00 6A [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 03 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 03 00 E7 59 00 90 00 B4 [10:32:39]RAPDU: 90 00 [10:32:39]wFMCommunicate OK [10:32:39]wFMCommunicate request_size=10 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 0D 02 02 05 8A AB 8C DA 48 [10:32:39]Write to MH i2c: E2 0D 00 E8 59 80 0D 02 02 05 00 8A AB 8C DA 48 00 00 A8 [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 03 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 03 00 E8 59 00 90 00 B5 [10:32:39]RAPDU: 90 00 [10:32:39]wFMCommunicate OK [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 0D 03 02 [10:32:39]Write to MH i2c: E2 08 00 E9 59 80 0D 03 02 00 00 00 00 BD [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0B 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0B 00 E9 59 00 0D E2 72 9D D8 0F BD DC 90 00 3C [10:32:39]RAPDU: 0D E2 72 9D D8 0F BD DC 90 00 [10:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_SignData done [10:32:39]FM_MakeSignedData done [10:32:39]CreateOFDProtocolMessage [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 11 00 00 [10:32:39]Write to MH i2c: E2 08 00 EA 59 80 11 00 00 00 00 00 00 BD [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 17 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 17 00 EA 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [10:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:39]wFMCommunicate OK [10:32:39]CreateOFDProtocolMessage done [10:32:39]OFDSenderStorePacket 192061 [10:32:39]StoreOFDPacket docnum=192061 [10:32:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 48 07 01 0A F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D9 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EE 02 00 35 04 06 00 3E 8A AB 8C DA 48 0D E2 72 9D D8 0F BD DC [10:32:39]CheckFolder [10:32:39]dirname=/storage/ofd_packets [10:32:39]CheckFolder done [10:32:39]ProducePacketName [10:32:39]name=ofd_packets/00192061 [10:32:39]NVStorageSaveData ofd_packets/00192061 [10:32:39]File name is /storage/ofd_packets/00192061 [10:32:39]Write 301 bytes [10:32:39]NVStorageSaveData done [10:32:39]OFDSenderStorePacket done [10:32:39]KKMCreateOFDPacket done [10:32:39]NVStorageSaveData kkm_last_timestamp [10:32:39]File name is /storage/kkm_last_timestamp [10:32:39]Write 4 bytes [10:32:39]NVStorageSaveData done [10:32:39]ExternCall_PrintAddStr [10:32:39]wPrintStart [10:32:39]Write to MH i2c: 01 00 00 EB 59 44 [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: 01 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: 01 07 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: 01 07 00 EB 59 00 00 00 00 00 FF 0F 59 [10:32:39]RasterBufferAndPrint [10:32:39]line Счет N : (1)31371 [10:32:39]line ИНН: 02508201610067 [10:32:39]line Контрольно-Кассовый Чек [10:32:39]line ПРОДАЖА [10:32:39]line ТРК (МРК, ГНК) : 21 [10:32:39]line Товар: 2710124130 [10:32:39]line Аи-92-К-5 [10:32:39]line 2.990 * 66.90 [10:32:39]line = 200.03 [10:32:39]line НДС 12% НСП 1% [10:32:39]line > о реализуемом товаре [10:32:39]line ОКРУГЛЕНИЕ: -0.03 [10:32:39]line ИТОГО: 200.00 [10:32:39]line Внесено: 200.00 [10:32:39]line СДАЧА: 0.00 [10:32:39]line НСП 1% : 1.77 [10:32:39]line НДС 12% : 21.24 [10:32:39]line Наличными: 200.00 [10:32:39]line Безнал.: 0.00 [10:32:39]line Место: АЗС № 170 "Партнер Нефть" [10:32:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:32:39]line СНО: Общий режим [10:32:39]line Чек 93 27.10.2024 10:32 [10:32:39]line Смена: 542 ФФД: 1.0 [10:32:39]line ЗНМ: 0300000110 [10:32:39]line РНМ: 0000000000091776 [10:32:39]line Версия ККМ: 001 [10:32:39]line ФМ: 0000000000871754 [10:32:39]line ФД: 192061 [10:32:39]line ФПД: 68765304543816 [10:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192061&fm=68765304543816&tin=02508201610067®Number=0000000000091776&sum=20000 [10:32:39]OFD Sender: Processing packet 192061 [packets to send 75, broken 74] [10:32:39]ProducePacketName [10:32:39]name=ofd_packets/00192061 [10:32:39]OFD Sender: To server: pG, [10:32:39]CommunicateWithHost lk.salyk.kg:30040 [10:32:39]ConnectInit lk.salyk.kg [10:32:39]written 0, free lines is 4095 [10:32:39]Connected sock=8 [10:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 48 07 01 0A F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 D9 16 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EE 02 00 35 04 06 00 3E 8A AB 8C DA 48 0D E2 72 9D D8 0F BD DC [10:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 34 47 00 06 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EE 02 00 F4 03 04 00 A1 BB 1D 67 B6 04 01 00 00 42 BD 9A 47 AE AC E7 1B [10:32:39]CommunicateWithHost err = 0 [10:32:39]CheckOFDResponse [10:32:39]1017 (14) - 77093643461234 [10:32:39]1041 (16) - 0000000000871754 [10:32:39]1040 (4) - 192061 [10:32:39]1012 (4) - 27.10.2024 04:03 [10:32:39]1206 (1) - 0 [10:32:39]OFD Sender: Remove packet 192061 [10:32:39]ProducePacketName [10:32:39]name=ofd_packets/00192061 [10:32:39]NVStorageDeleteData [10:32:40]Write to MH i2c: 01 00 00 16 5A 70 [10:32:40]Write i2c OK [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 07 00 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 07 00 16 5A 00 00 00 00 00 AA 0C 2D [10:32:40]RasterBufferAndPrint [10:32:40]line [10:32:40]line [10:32:40]line [10:32:40]line [10:32:40]line [10:32:40]written 0, free lines is 3248 [10:32:40]MH_Cut [10:32:40]Write to MH i2c: D1 01 00 1D 5A 01 49 [10:32:40]Write i2c OK [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: D1 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: D1 01 00 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: D1 01 00 1D 5A 00 48 [10:32:40]Write to MH i2c: 01 00 00 1E 5A 78 [10:32:40]Write i2c OK [10:32:40]MH_I2C_Read... [10:32:40]OFD Sender: No OFD packet to send [10:32:40]*** Cut start [10:32:40]*** Partial cut [10:32:40]*** CUTSNS_PIN = 1 [10:32:40]*** CUTSNS_PIN = 0 [10:32:41]*** Brake cut motor [10:32:41]Read from MH i2c: 01 [10:32:41]MH_I2C_Read... [10:32:41]*** Stop cut motor [10:32:41]*** Cut end [10:32:41]Read from MH i2c: 01 07 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: 01 07 00 1E 5A 00 00 00 00 00 FF 0F 8D [10:32:41]process_action close_receipt done [10:32:41]requested_data is exist [10:32:41]produce_requested_data [10:32:41]requested_item fm.sn is exist - process it [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 11 00 00 [10:32:41]Write to MH i2c: E2 08 00 1F 5A 80 11 00 00 00 00 00 00 F3 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 17 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 17 00 1F 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [10:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:41]wFMCommunicate OK [10:32:41]requested_item fd.num is exist - process it [10:32:41]SAM_PROTO_GetFieldsCounters [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 13 00 00 [10:32:41]Write to MH i2c: E2 08 00 20 5A 80 13 00 00 00 00 00 00 F6 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 62 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 62 00 20 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [10:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:41]wFMCommunicate OK [10:32:41]SAM_PROTO_GetFieldsCounters done [10:32:41]requested_item shift.num is exist - process it [10:32:41]requested_item shift.opened is exist - process it [10:32:41]req_shift_opened [10:32:41]FM_GetShiftState [10:32:41]SAM_PROTO_GetShiftState [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 13 01 00 [10:32:41]Write to MH i2c: E2 08 00 21 5A 80 13 01 00 00 00 00 00 F8 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0E 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0E 00 21 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [10:32:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:32:41]wFMCommunicate OK [10:32:41]SAM_PROTO_GetShiftState done [10:32:41]FM_GetShiftState done [10:32:41]req_shift_opened done [10:32:41]requested_item shift.open_date is exist - process it [10:32:41]req_shift_open_date [10:32:41]req_shift_open_date done [10:32:41]produce_requested_data done [10:32:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192061,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:32:41]process_action_free close_receipt [10:32:41]json_value_free [10:32:41]json_value_free done [10:32:41]process_json_proto returns [10:32:41]Send response to host [10:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192061,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:32:41]free response buf [10:32:41]execute_script done [10:32:41]execute_script returns [10:32:41]free content buf [10:32:41]Sock 5.Close socket [10:32:41]Sock 5.Thread stoped [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:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:33:57]accept exits with 6 [10:33:57]New connection [10:33:57]New thread 3066817892 created [10:33:57]Thread 3066961252 joined [10:33:57]Waiting for new connection... [10:33:57] Sock 6.Parse request [10:33:57]Sock 6.Check first char [10:33:57]Sock 6.First char is OK [10:33:57]request: POST /json_proto HTTP/1.0 [10:33:57]Method: POST [10:33:57]URL: /json_proto [10:33:57]Method is POST - this is cgi request [10:33:57]url: /json_proto [10:33:57]query_string will be loaded in cgi processing [10:33:57]execute_cgi json_proto POST (null) [10:33:57]execute_cgi path=json_proto method=POST [10:33:57]POST find Content-Length [10:33:57]Host: 172.17.63.131:8080 [10:33:57]Content-Length: 681 [10:33:57]Content-Type: application/json [10:33:57] [10:33:57]POST finish read [10:33:57]Found Content-Length = 681 [10:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:57]execute_script... [10:33: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)31372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:57]POST & json_proto [10:33:57]process_json_proto [10:33:57]json parsed OK: [10:33:57]protocol is kg_v1.0 [10:33:57]action value=close_receipt [10:33:57]process_action close_receipt [10:33:57]cmd_close_receipt [10:33:57]MH_GetDate [10:33:57]Write to MH i2c: F0 00 00 22 5A 6B [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: F0 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: F0 09 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: F0 09 00 22 5A 00 28 17 1E 67 22 05 6E 64 31 [10:33:57]GetLastDocTimeStamp 1730025177 [10:33:57]current date 1730025256 [10:33:57]FM_GetShiftState [10:33:57]SAM_PROTO_GetShiftState [10:33:57]wFMCommunicate request_size=4 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 13 01 00 [10:33:57]Write to MH i2c: E2 08 00 23 5A 80 13 01 00 00 00 00 00 FA [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:57]Read from MH i2c: E2 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 0E 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 0E 00 23 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [10:33:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:33:57]wFMCommunicate OK [10:33:57]SAM_PROTO_GetShiftState done [10:33:57]FM_GetShiftState done [10:33:57]opened in 1729989159 [10:33:57]opened+sec_in_day 1730075559 [10:33:57]quantity*price = 100015 [10:33:57]sum+1 = 100017 [10:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 94 27.10.2024 10:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192062 ФПД: 115195335318238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192062&fm=115195335318238&tin=02508201610067®Number=0000000000091776&sum=100000 [10:33:58]StoreToDocumentArchive [10:33:58]shift 542 fd 192062 [10:33:58]save to /storage/0542/doc_00192062 [10:33:58]save last doc name /storage/0542/doc_00192062 to /storage/kkm_last_doc_name [10:33:58]save OK [10:33:58]Clear old archive folders... [10:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:58]tlvbuf is 016B70B0 [10:33:58]SAM_PROTO_ClearQueue [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 09 00 00 [10:33:58]Write to MH i2c: E2 08 00 30 5A 80 09 00 00 00 00 00 00 FC [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 30 5A 00 90 00 FE [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]SAM_PROTO_ClearQueue done [10:33:58]KKMCreateOFDPacket [10:33:58]OFDProtocolAddRootSTLVToBuf [10:33:58]FM_MakeSignedData [10:33:58]FM_MakeSignedData [10:33:58]SAM_PROTO_SignData [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 01 02 [10:33:58]Write to MH i2c: E2 08 00 31 5A 80 0D 01 02 00 00 00 00 04 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 31 5A 00 90 00 FF [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=255 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EE 02 00 35 04 06 00 68 [10:33:58]Write to MH i2c: E2 02 01 32 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EE 02 00 35 04 06 00 68 00 00 6A [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 32 5A 00 90 00 00 [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=10 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 02 02 05 C5 01 0A 9A DE [10:33:58]Write to MH i2c: E2 0D 00 33 5A 80 0D 02 02 05 00 C5 01 0A 9A DE 00 00 59 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 33 5A 00 90 00 01 [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 03 02 [10:33:58]Write to MH i2c: E2 08 00 34 5A 80 0D 03 02 00 00 00 00 09 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 34 5A 00 98 1D D3 A4 95 B5 70 76 90 00 66 [10:33:58]RAPDU: 98 1D D3 A4 95 B5 70 76 90 00 [10:33:58]wFMCommunicate OK [10:33:58]SAM_PROTO_SignData done [10:33:58]FM_MakeSignedData done [10:33:58]CreateOFDProtocolMessage [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 11 00 00 [10:33:58]Write to MH i2c: E2 08 00 35 5A 80 11 00 00 00 00 00 00 09 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 35 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [10:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:33:58]wFMCommunicate OK [10:33:58]CreateOFDProtocolMessage done [10:33:58]OFDSenderStorePacket 192062 [10:33:58]StoreOFDPacket docnum=192062 [10:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 06 07 01 7D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EE 02 00 35 04 06 00 68 C5 01 0A 9A DE 98 1D D3 A4 95 B5 70 76 [10:33:58]CheckFolder [10:33:58]dirname=/storage/ofd_packets [10:33:58]CheckFolder done [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00192062 [10:33:58]NVStorageSaveData ofd_packets/00192062 [10:33:58]File name is /storage/ofd_packets/00192062 [10:33:58]Write 301 bytes [10:33:58]NVStorageSaveData done [10:33:58]OFDSenderStorePacket done [10:33:58]KKMCreateOFDPacket done [10:33:58]NVStorageSaveData kkm_last_timestamp [10:33:58]File name is /storage/kkm_last_timestamp [10:33:58]Write 4 bytes [10:33:58]NVStorageSaveData done [10:33:58]ExternCall_PrintAddStr [10:33:58]wPrintStart [10:33:58]Write to MH i2c: 01 00 00 36 5A 90 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 36 5A 00 00 00 00 00 FF 0F A5 [10:33:58]RasterBufferAndPrint [10:33:58]line Счет N : (1)31372 [10:33:58]line ИНН: 02508201610067 [10:33:58]line Контрольно-Кассовый Чек [10:33:58]line ПРОДАЖА [10:33:58]line ТРК (МРК, ГНК) : 21 [10:33:58]line Товар: 2710124130 [10:33:58]line Аи-92-К-5 [10:33:58]line 14.950 * 66.90 [10:33:58]line = 1000.16 [10:33:58]line НДС 12% НСП 1% [10:33:58]line > о реализуемом товаре [10:33:58]line ОКРУГЛЕНИЕ: -0.16 [10:33:58]line ИТОГО: 1000.00 [10:33:58]line Внесено: 1000.00 [10:33:58]line СДАЧА: 0.00 [10:33:58]line НСП 1% : 8.85 [10:33:58]line НДС 12% : 106.21 [10:33:58]line Наличными: 1000.00 [10:33:58]line Безнал.: 0.00 [10:33:58]line Место: АЗС № 170 "Партнер Нефть" [10:33:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:33:58]line СНО: Общий режим [10:33:58]line Чек 94 27.10.2024 10:34 [10:33:58]line Смена: 542 ФФД: 1.0 [10:33:58]line ЗНМ: 0300000110 [10:33:58]line РНМ: 0000000000091776 [10:33:58]line Версия ККМ: 001 [10:33:58]line ФМ: 0000000000871754 [10:33:58]line ФД: 192062 [10:33:58]line ФПД: 115195335318238 [10:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192062&fm=115195335318238&tin=02508201610067®Number=0000000000091776&sum=100000 [10:33:59]OFD Sender: Processing packet 192062 [packets to send 75, broken 74] [10:33:59]ProducePacketName [10:33:59]name=ofd_packets/00192062 [10:33:59]OFD Sender: To server: pG, [10:33:59]CommunicateWithHost lk.salyk.kg:30040 [10:33:59]ConnectInit lk.salyk.kg [10:33:59]written 0, free lines is 4095 [10:33:59]Connected sock=8 [10:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 06 07 01 7D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EE 02 00 35 04 06 00 68 C5 01 0A 9A DE 98 1D D3 A4 95 B5 70 76 [10:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 8A 47 00 D4 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EE 02 00 F4 03 04 00 F0 BB 1D 67 B6 04 01 00 00 BB A8 30 70 97 34 6B 08 [10:33:59]CommunicateWithHost err = 0 [10:33:59]CheckOFDResponse [10:33:59]1017 (14) - 77093643461234 [10:33:59]1041 (16) - 0000000000871754 [10:33:59]1040 (4) - 192062 [10:33:59]1012 (4) - 27.10.2024 04:05 [10:33:59]1206 (1) - 0 [10:33:59]OFD Sender: Remove packet 192062 [10:33:59]ProducePacketName [10:33:59]name=ofd_packets/00192062 [10:33:59]NVStorageDeleteData [10:33:59]Write to MH i2c: 01 00 00 61 5A BB [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 07 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 07 00 61 5A 00 00 00 00 00 B2 0C 80 [10:33:59]RasterBufferAndPrint [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]written 0, free lines is 3255 [10:33:59]MH_Cut [10:33:59]Write to MH i2c: D1 01 00 68 5A 01 94 [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 01 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 01 00 68 5A 00 93 [10:33:59]Write to MH i2c: 01 00 00 69 5A C3 [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:34:00]OFD Sender: No OFD packet to send [10:34:00]*** Cut start [10:34:00]*** Partial cut [10:34:00]*** CUTSNS_PIN = 1 [10:34:00]*** CUTSNS_PIN = 0 [10:34:00]*** Brake cut motor [10:34:01]Read from MH i2c: 01 [10:34:01]MH_I2C_Read... [10:34:01]*** Stop cut motor [10:34:01]*** Cut end [10:34:01]Read from MH i2c: 01 07 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 69 5A 00 00 00 00 00 FF 0F D8 [10:34:01]process_action close_receipt done [10:34:01]requested_data is exist [10:34:01]produce_requested_data [10:34:01]requested_item fm.sn is exist - process it [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 11 00 00 [10:34:01]Write to MH i2c: E2 08 00 6A 5A 80 11 00 00 00 00 00 00 3E [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 17 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 17 00 6A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [10:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:01]wFMCommunicate OK [10:34:01]requested_item fd.num is exist - process it [10:34:01]SAM_PROTO_GetFieldsCounters [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 13 00 00 [10:34:01]Write to MH i2c: E2 08 00 6B 5A 80 13 00 00 00 00 00 00 41 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 62 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 62 00 6B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:01]wFMCommunicate OK [10:34:01]SAM_PROTO_GetFieldsCounters done [10:34:01]requested_item shift.num is exist - process it [10:34:01]requested_item shift.opened is exist - process it [10:34:01]req_shift_opened [10:34:01]FM_GetShiftState [10:34:01]SAM_PROTO_GetShiftState [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 13 01 00 [10:34:01]Write to MH i2c: E2 08 00 6C 5A 80 13 01 00 00 00 00 00 43 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0E 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0E 00 6C 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [10:34:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:34:01]wFMCommunicate OK [10:34:01]SAM_PROTO_GetShiftState done [10:34:01]FM_GetShiftState done [10:34:01]req_shift_opened done [10:34:01]requested_item shift.open_date is exist - process it [10:34:01]req_shift_open_date [10:34:01]req_shift_open_date done [10:34:01]produce_requested_data done [10:34:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192062,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:34:01]process_action_free close_receipt [10:34:01]json_value_free [10:34:01]json_value_free done [10:34:01]process_json_proto returns [10:34:01]Send response to host [10:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192062,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:34:01]free response buf [10:34:01]execute_script done [10:34:01]execute_script returns [10:34:01]free content buf [10:34:01]Sock 6.Close socket [10:34:01]Sock 6.Thread stoped [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:35]accept exits with 5 [10:35:35]New connection [10:35:35]New thread 3066961252 created [10:35:35]Thread 3066817892 joined [10:35:35]Waiting for new connection... [10:35:35] Sock 5.Parse request [10:35:35]Sock 5.Check first char [10:35:35]Sock 5.First char is OK [10:35:35]request: POST /json_proto HTTP/1.0 [10:35:35]Method: POST [10:35:35]URL: /json_proto [10:35:35]Method is POST - this is cgi request [10:35:35]url: /json_proto [10:35:35]query_string will be loaded in cgi processing [10:35:35]execute_cgi json_proto POST (null) [10:35:35]execute_cgi path=json_proto method=POST [10:35:35]POST find Content-Length [10:35:35]Host: 172.17.63.131:8080 [10:35:35]Content-Length: 681 [10:35:35]Content-Type: application/json [10:35:35] [10:35:35]POST finish read [10:35:35]Found Content-Length = 681 [10:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:35]execute_script... [10:35: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)31373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:35]POST & json_proto [10:35:35]process_json_proto [10:35:35]json parsed OK: [10:35:35]protocol is kg_v1.0 [10:35:35]action value=close_receipt [10:35:35]process_action close_receipt [10:35:35]cmd_close_receipt [10:35:35]MH_GetDate [10:35:35]Write to MH i2c: F0 00 00 6D 5A B6 [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: F0 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: F0 09 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: F0 09 00 6D 5A 00 8A 17 1E 67 22 05 6E 64 DE [10:35:35]GetLastDocTimeStamp 1730025256 [10:35:35]current date 1730025354 [10:35:35]FM_GetShiftState [10:35:35]SAM_PROTO_GetShiftState [10:35:35]wFMCommunicate request_size=4 [10:35:35]MH_SAM_APDU [10:35:35]CAPDU: 80 13 01 00 [10:35:35]Write to MH i2c: E2 08 00 6E 5A 80 13 01 00 00 00 00 00 45 [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:35]Read from MH i2c: E2 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 0E 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 0E 00 6E 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 86 [10:35:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:35:35]wFMCommunicate OK [10:35:35]SAM_PROTO_GetShiftState done [10:35:35]FM_GetShiftState done [10:35:35]opened in 1729989159 [10:35:35]opened+sec_in_day 1730075559 [10:35:35]quantity*price = 100015 [10:35:35]sum+1 = 100017 [10:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 95 27.10.2024 10:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192063 ФПД: 190108517175423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192063&fm=190108517175423&tin=02508201610067®Number=0000000000091776&sum=100000 [10:35:36]StoreToDocumentArchive [10:35:36]shift 542 fd 192063 [10:35:36]save to /storage/0542/doc_00192063 [10:35:36]save last doc name /storage/0542/doc_00192063 to /storage/kkm_last_doc_name [10:35:36]save OK [10:35:36]Clear old archive folders... [10:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:36]tlvbuf is 01A12050 [10:35:36]SAM_PROTO_ClearQueue [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 09 00 00 [10:35:36]Write to MH i2c: E2 08 00 7B 5A 80 09 00 00 00 00 00 00 47 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 7B 5A 00 90 00 49 [10:35:36]RAPDU: 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_ClearQueue done [10:35:36]KKMCreateOFDPacket [10:35:36]OFDProtocolAddRootSTLVToBuf [10:35:36]FM_MakeSignedData [10:35:36]FM_MakeSignedData [10:35:36]SAM_PROTO_SignData [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 0D 01 02 [10:35:36]Write to MH i2c: E2 08 00 7C 5A 80 0D 01 02 00 00 00 00 4F [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 7C 5A 00 90 00 4A [10:35:36]RAPDU: 90 00 [10:35:36]wFMCommunicate OK [10:35:36]wFMCommunicate request_size=255 [10:35:36]MH_SAM_APDU [10:35: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8A 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EE 02 00 35 04 06 00 AC [10:35:36]Write to MH i2c: E2 02 01 7D 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8A 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EE 02 00 35 04 06 00 AC 00 00 5D [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 7D 5A 00 90 00 4B [10:35:36]RAPDU: 90 00 [10:35:36]wFMCommunicate OK [10:35:36]wFMCommunicate request_size=10 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 0D 02 02 05 E7 16 A2 90 7F [10:35:36]Write to MH i2c: E2 0D 00 7E 5A 80 0D 02 02 05 00 E7 16 A2 90 7F 00 00 0A [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 03 00 7E 5A 00 90 00 4C [10:35:36]RAPDU: 90 00 [10:35:36]wFMCommunicate OK [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 0D 03 02 [10:35:36]Write to MH i2c: E2 08 00 7F 5A 80 0D 03 02 00 00 00 00 54 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0B 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0B 00 7F 5A 00 61 34 D1 36 06 B1 DD 09 90 00 8E [10:35:36]RAPDU: 61 34 D1 36 06 B1 DD 09 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_SignData done [10:35:36]FM_MakeSignedData done [10:35:36]CreateOFDProtocolMessage [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 11 00 00 [10:35:36]Write to MH i2c: E2 08 00 80 5A 80 11 00 00 00 00 00 00 54 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 17 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 17 00 80 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [10:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:35:36]wFMCommunicate OK [10:35:36]CreateOFDProtocolMessage done [10:35:36]OFDSenderStorePacket 192063 [10:35:36]StoreOFDPacket docnum=192063 [10:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 F0 07 01 05 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8A 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EE 02 00 35 04 06 00 AC E7 16 A2 90 7F 61 34 D1 36 06 B1 DD 09 [10:35:36]CheckFolder [10:35:36]dirname=/storage/ofd_packets [10:35:36]CheckFolder done [10:35:36]ProducePacketName [10:35:36]name=ofd_packets/00192063 [10:35:36]NVStorageSaveData ofd_packets/00192063 [10:35:36]File name is /storage/ofd_packets/00192063 [10:35:36]Write 301 bytes [10:35:36]NVStorageSaveData done [10:35:36]OFDSenderStorePacket done [10:35:36]KKMCreateOFDPacket done [10:35:36]NVStorageSaveData kkm_last_timestamp [10:35:36]File name is /storage/kkm_last_timestamp [10:35:36]Write 4 bytes [10:35:36]NVStorageSaveData done [10:35:36]ExternCall_PrintAddStr [10:35:36]wPrintStart [10:35:36]Write to MH i2c: 01 00 00 81 5A DB [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: 01 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: 01 07 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: 01 07 00 81 5A 00 00 00 00 00 FF 0F F0 [10:35:36]RasterBufferAndPrint [10:35:36]line Счет N : (1)31373 [10:35:36]line ИНН: 02508201610067 [10:35:36]line Контрольно-Кассовый Чек [10:35:36]line ПРОДАЖА [10:35:36]line ТРК (МРК, ГНК) : 21 [10:35:36]line Товар: 2710124130 [10:35:36]line Аи-92-К-5 [10:35:36]line 14.950 * 66.90 [10:35:36]line = 1000.16 [10:35:36]line НДС 12% НСП 1% [10:35:36]line > о реализуемом товаре [10:35:36]line ОКРУГЛЕНИЕ: -0.16 [10:35:36]line ИТОГО: 1000.00 [10:35:36]line Внесено: 1000.00 [10:35:36]line СДАЧА: 0.00 [10:35:36]line НСП 1% : 8.85 [10:35:36]line НДС 12% : 106.21 [10:35:36]line Наличными: 1000.00 [10:35:36]line Безнал.: 0.00 [10:35:36]line Место: АЗС № 170 "Партнер Нефть" [10:35:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:35:36]line СНО: Общий режим [10:35:36]line Чек 95 27.10.2024 10:35 [10:35:36]line Смена: 542 ФФД: 1.0 [10:35:36]line ЗНМ: 0300000110 [10:35:36]line РНМ: 0000000000091776 [10:35:36]line Версия ККМ: 001 [10:35:36]line ФМ: 0000000000871754 [10:35:36]line ФД: 192063 [10:35:36]line ФПД: 190108517175423 [10:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192063&fm=190108517175423&tin=02508201610067®Number=0000000000091776&sum=100000 [10:35:37]OFD Sender: Processing packet 192063 [packets to send 75, broken 74] [10:35:37]ProducePacketName [10:35:37]name=ofd_packets/00192063 [10:35:37]OFD Sender: To server: pG, [10:35:37]CommunicateWithHost lk.salyk.kg:30040 [10:35:37]ConnectInit lk.salyk.kg [10:35:37]written 0, free lines is 4095 [10:35:37]Connected sock=8 [10:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 F0 07 01 05 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 8A 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EE 02 00 35 04 06 00 AC E7 16 A2 90 7F 61 34 D1 36 06 B1 DD 09 [10: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 37 35 34 4F 00 00 00 82 D5 47 00 00 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EE 02 00 F4 03 04 00 52 BC 1D 67 B6 04 01 00 00 65 DA D2 7F 7E 85 76 DE [10:35:37]CommunicateWithHost err = 0 [10:35:37]CheckOFDResponse [10:35:37]1017 (14) - 77093643461234 [10:35:37]1041 (16) - 0000000000871754 [10:35:37]1040 (4) - 192063 [10:35:37]1012 (4) - 27.10.2024 04:06 [10:35:37]1206 (1) - 0 [10:35:37]OFD Sender: Remove packet 192063 [10:35:37]ProducePacketName [10:35:37]name=ofd_packets/00192063 [10:35:37]NVStorageDeleteData [10:35:37]Write to MH i2c: 01 00 00 AC 5A 06 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 AC 5A 00 00 00 00 00 9C 0C B5 [10:35:37]RasterBufferAndPrint [10:35:37]line [10:35:37]line [10:35:37]line [10:35:37]line [10:35:37]line [10:35:37]written 0, free lines is 3235 [10:35:37]MH_Cut [10:35:37]Write to MH i2c: D1 01 00 B3 5A 01 DF [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D1 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D1 01 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D1 01 00 B3 5A 00 DE [10:35:37]Write to MH i2c: 01 00 00 B4 5A 0E [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:38]OFD Sender: No OFD packet to send [10:35:38]*** Cut start [10:35:38]*** Partial cut [10:35:38]*** CUTSNS_PIN = 1 [10:35:38]*** CUTSNS_PIN = 0 [10:35:38]*** Brake cut motor [10:35:39]Read from MH i2c: 01 [10:35:39]MH_I2C_Read... [10:35:39]*** Stop cut motor [10:35:39]*** Cut end [10:35:39]Read from MH i2c: 01 07 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 B4 5A 00 00 00 00 00 FF 0F 23 [10:35:39]process_action close_receipt done [10:35:39]requested_data is exist [10:35:39]produce_requested_data [10:35:39]requested_item fm.sn is exist - process it [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 11 00 00 [10:35:39]Write to MH i2c: E2 08 00 B5 5A 80 11 00 00 00 00 00 00 89 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 B5 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [10:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:35:39]wFMCommunicate OK [10:35:39]requested_item fd.num is exist - process it [10:35:39]SAM_PROTO_GetFieldsCounters [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 00 00 [10:35:39]Write to MH i2c: E2 08 00 B6 5A 80 13 00 00 00 00 00 00 8C [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 B6 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:39]wFMCommunicate OK [10:35:39]SAM_PROTO_GetFieldsCounters done [10:35:39]requested_item shift.num is exist - process it [10:35:39]requested_item shift.opened is exist - process it [10:35:39]req_shift_opened [10:35:39]FM_GetShiftState [10:35:39]SAM_PROTO_GetShiftState [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 01 00 [10:35:39]Write to MH i2c: E2 08 00 B7 5A 80 13 01 00 00 00 00 00 8E [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 0E 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 0E 00 B7 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [10:35:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:35:39]wFMCommunicate OK [10:35:39]SAM_PROTO_GetShiftState done [10:35:39]FM_GetShiftState done [10:35:39]req_shift_opened done [10:35:39]requested_item shift.open_date is exist - process it [10:35:39]req_shift_open_date [10:35:39]req_shift_open_date done [10:35:39]produce_requested_data done [10:35:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192063,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:35:39]process_action_free close_receipt [10:35:39]json_value_free [10:35:39]json_value_free done [10:35:39]process_json_proto returns [10:35:39]Send response to host [10:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192063,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:35:39]free response buf [10:35:39]execute_script done [10:35:39]execute_script returns [10:35:39]free content buf [10:35:39]Sock 5.Close socket [10:35:39]Sock 5.Thread stoped [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:08]accept exits with 6 [10:37:08]New connection [10:37:08]New thread 3066817892 created [10:37:08]Thread 3066961252 joined [10:37:08]Waiting for new connection... [10:37:08] Sock 6.Parse request [10:37:08]Sock 6.Check first char [10:37:08]Sock 6.First char is OK [10:37:08]request: POST /json_proto HTTP/1.0 [10:37:08]Method: POST [10:37:08]URL: /json_proto [10:37:08]Method is POST - this is cgi request [10:37:08]url: /json_proto [10:37:08]query_string will be loaded in cgi processing [10:37:08]execute_cgi json_proto POST (null) [10:37:08]execute_cgi path=json_proto method=POST [10:37:08]POST find Content-Length [10:37:08]Host: 172.17.63.131:8080 [10:37:08]Content-Length: 678 [10:37:08]Content-Type: application/json [10:37:08] [10:37:08]POST finish read [10:37:08]Found Content-Length = 678 [10:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31374", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:08]execute_script... [10:37: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)31374", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:08]POST & json_proto [10:37:08]process_json_proto [10:37:08]json parsed OK: [10:37:08]protocol is kg_v1.0 [10:37:08]action value=close_receipt [10:37:08]process_action close_receipt [10:37:08]cmd_close_receipt [10:37:08]MH_GetDate [10:37:08]Write to MH i2c: F0 00 00 B8 5A 01 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: F0 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: F0 09 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: F0 09 00 B8 5A 00 E8 17 1E 67 22 05 6E 64 87 [10:37:08]GetLastDocTimeStamp 1730025354 [10:37:08]current date 1730025448 [10:37:08]FM_GetShiftState [10:37:08]SAM_PROTO_GetShiftState [10:37:08]wFMCommunicate request_size=4 [10:37:08]MH_SAM_APDU [10:37:08]CAPDU: 80 13 01 00 [10:37:08]Write to MH i2c: E2 08 00 B9 5A 80 13 01 00 00 00 00 00 90 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:08]Read from MH i2c: E2 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 0E 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: E2 0E 00 B9 5A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [10:37:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:37:08]wFMCommunicate OK [10:37:08]SAM_PROTO_GetShiftState done [10:37:08]FM_GetShiftState done [10:37:08]opened in 1729989159 [10:37:08]opened+sec_in_day 1730075559 [10:37:08]quantity*price = 150037 [10:37:08]sum+1 = 150039 [10:37:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 96 27.10.2024 10:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192064 ФПД: 64425339336747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192064&fm=64425339336747&tin=02508201610067®Number=0000000000091776&sum=150000 [10:37:09]StoreToDocumentArchive [10:37:09]shift 542 fd 192064 [10:37:09]save to /storage/0542/doc_00192064 [10:37:09]save last doc name /storage/0542/doc_00192064 to /storage/kkm_last_doc_name [10:37:09]save OK [10:37:09]Clear old archive folders... [10:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:09]tlvbuf is 015C8A20 [10:37:09]SAM_PROTO_ClearQueue [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 09 00 00 [10:37:09]Write to MH i2c: E2 08 00 C6 5A 80 09 00 00 00 00 00 00 92 [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 03 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 03 00 C6 5A 00 90 00 94 [10:37:09]RAPDU: 90 00 [10:37:09]wFMCommunicate OK [10:37:09]SAM_PROTO_ClearQueue done [10:37:09]KKMCreateOFDPacket [10:37:09]OFDProtocolAddRootSTLVToBuf [10:37:09]FM_MakeSignedData [10:37:09]FM_MakeSignedData [10:37:09]SAM_PROTO_SignData [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 0D 01 02 [10:37:09]Write to MH i2c: E2 08 00 C7 5A 80 0D 01 02 00 00 00 00 9A [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 03 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 03 00 C7 5A 00 90 00 95 [10:37:09]RAPDU: 90 00 [10:37:09]wFMCommunicate OK [10:37:09]wFMCommunicate request_size=255 [10:37:09]MH_SAM_APDU [10:37: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 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 60 00 00 00 F4 03 04 00 E8 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EE 02 00 35 04 06 00 3A 98 31 77 [10:37:09]Write to MH i2c: E2 02 01 C8 5A 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 60 00 00 00 F4 03 04 00 E8 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EE 02 00 35 04 06 00 3A 98 31 77 00 00 49 [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:09]Read from MH i2c: E2 03 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 03 00 C8 5A 00 90 00 96 [10:37:09]RAPDU: 90 00 [10:37:09]wFMCommunicate OK [10:37:09]wFMCommunicate request_size=7 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 0D 02 02 02 38 2B [10:37:09]Write to MH i2c: E2 0A 00 C9 5A 80 0D 02 02 02 00 38 2B 00 00 04 [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:10]Read from MH i2c: E2 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 03 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 03 00 C9 5A 00 90 00 97 [10:37:10]RAPDU: 90 00 [10:37:10]wFMCommunicate OK [10:37:10]wFMCommunicate request_size=4 [10:37:10]MH_SAM_APDU [10:37:10]CAPDU: 80 0D 03 02 [10:37:10]Write to MH i2c: E2 08 00 CA 5A 80 0D 03 02 00 00 00 00 9F [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:10]Read from MH i2c: E2 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 0B 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 0B 00 CA 5A 00 06 CD DD 41 07 A9 6F 79 90 00 29 [10:37:10]RAPDU: 06 CD DD 41 07 A9 6F 79 90 00 [10:37:10]wFMCommunicate OK [10:37:10]SAM_PROTO_SignData done [10:37:10]FM_MakeSignedData done [10:37:10]CreateOFDProtocolMessage [10:37:10]wFMCommunicate request_size=4 [10:37:10]MH_SAM_APDU [10:37:10]CAPDU: 80 11 00 00 [10:37:10]Write to MH i2c: E2 08 00 CB 5A 80 11 00 00 00 00 00 00 9F [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:10]Read from MH i2c: E2 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 17 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 17 00 CB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [10:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:37:10]wFMCommunicate OK [10:37:10]CreateOFDProtocolMessage done [10:37:10]OFDSenderStorePacket 192064 [10:37:10]StoreOFDPacket docnum=192064 [10:37:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DF 95 04 01 82 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 60 00 00 00 F4 03 04 00 E8 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EE 02 00 35 04 06 00 3A 98 31 77 38 2B 06 CD DD 41 07 A9 6F 79 [10:37:10]CheckFolder [10:37:10]dirname=/storage/ofd_packets [10:37:10]CheckFolder done [10:37:10]ProducePacketName [10:37:10]name=ofd_packets/00192064 [10:37:10]NVStorageSaveData ofd_packets/00192064 [10:37:10]File name is /storage/ofd_packets/00192064 [10:37:10]Write 298 bytes [10:37:10]NVStorageSaveData done [10:37:10]OFDSenderStorePacket done [10:37:10]KKMCreateOFDPacket done [10:37:10]NVStorageSaveData kkm_last_timestamp [10:37:10]File name is /storage/kkm_last_timestamp [10:37:10]Write 4 bytes [10:37:10]NVStorageSaveData done [10:37:10]ExternCall_PrintAddStr [10:37:10]wPrintStart [10:37:10]Write to MH i2c: 01 00 00 CC 5A 26 [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 07 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 07 00 CC 5A 00 00 00 00 00 FF 0F 3B [10:37:10]RasterBufferAndPrint [10:37:10]line Счет N : (1)31374 [10:37:10]line ИНН: 02508201610067 [10:37:10]line Контрольно-Кассовый Чек [10:37:10]line ПРОДАЖА [10:37:10]line ТРК (МРК, ГНК) : 11 [10:37:10]line Товар: 2710194210 [10:37:10]line ДТ-К-5 [10:37:10]line 19.690 * 76.20 [10:37:10]line = 1500.38 [10:37:10]line НДС 12% НСП 1% [10:37:10]line > о реализуемом товаре [10:37:10]line ОКРУГЛЕНИЕ: -0.38 [10:37:10]line ИТОГО: 1500.00 [10:37:10]line Внесено: 1500.00 [10:37:10]line СДАЧА: 0.00 [10:37:10]line НСП 1% : 13.28 [10:37:10]line НДС 12% : 159.33 [10:37:10]line Наличными: 1500.00 [10:37:10]line Безнал.: 0.00 [10:37:10]line Место: АЗС № 170 "Партнер Нефть" [10:37:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:37:10]line СНО: Общий режим [10:37:10]line Чек 96 27.10.2024 10:37 [10:37:10]line Смена: 542 ФФД: 1.0 [10:37:10]line ЗНМ: 0300000110 [10:37:10]line РНМ: 0000000000091776 [10:37:10]line Версия ККМ: 001 [10:37:10]line ФМ: 0000000000871754 [10:37:10]line ФД: 192064 [10:37:10]line ФПД: 64425339336747 [10:37:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192064&fm=64425339336747&tin=02508201610067®Number=0000000000091776&sum=150000 [10:37:10]OFD Sender: Processing packet 192064 [packets to send 75, broken 74] [10:37:10]ProducePacketName [10:37:10]name=ofd_packets/00192064 [10:37:10]OFD Sender: To server: pG, [10:37:10]CommunicateWithHost lk.salyk.kg:30040 [10:37:10]ConnectInit lk.salyk.kg [10:37:10]written 0, free lines is 4095 [10:37:10]Connected sock=8 [10:37:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DF 95 04 01 82 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 60 00 00 00 F4 03 04 00 E8 17 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EE 02 00 35 04 06 00 3A 98 31 77 38 2B 06 CD DD 41 07 A9 6F 79 [10:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF 5E 47 00 20 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EE 02 00 F4 03 04 00 B0 BC 1D 67 B6 04 01 00 00 4D 3C E0 AA BC 71 89 AC [10:37:10]CommunicateWithHost err = 0 [10:37:10]CheckOFDResponse [10:37:10]1017 (14) - 77093643461234 [10:37:10]1041 (16) - 0000000000871754 [10:37:10]1040 (4) - 192064 [10:37:10]1012 (4) - 27.10.2024 04:08 [10:37:10]1206 (1) - 0 [10:37:10]OFD Sender: Remove packet 192064 [10:37:10]ProducePacketName [10:37:10]name=ofd_packets/00192064 [10:37:10]NVStorageDeleteData [10:37:10]Write to MH i2c: 01 00 00 F7 5A 51 [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 07 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: 01 07 00 F7 5A 00 00 00 00 00 A0 0C 04 [10:37:10]RasterBufferAndPrint [10:37:10]line [10:37:10]line [10:37:10]line [10:37:10]line [10:37:10]line [10:37:10]written 0, free lines is 3239 [10:37:10]MH_Cut [10:37:10]Write to MH i2c: D1 01 00 FE 5A 01 2A [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: D1 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: D1 01 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: D1 01 00 FE 5A 00 29 [10:37:10]Write to MH i2c: 01 00 00 FF 5A 59 [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:11]OFD Sender: No OFD packet to send [10:37:11]*** Cut start [10:37:11]*** Partial cut [10:37:11]*** CUTSNS_PIN = 1 [10:37:11]*** CUTSNS_PIN = 0 [10:37:12]*** Brake cut motor [10:37:12]Read from MH i2c: 01 [10:37:12]MH_I2C_Read... [10:37:12]*** Stop cut motor [10:37:12]*** Cut end [10:37:12]Read from MH i2c: 01 07 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: 01 07 00 FF 5A 00 00 00 00 00 FF 0F 6E [10:37:12]process_action close_receipt done [10:37:12]requested_data is exist [10:37:12]produce_requested_data [10:37:12]requested_item fm.sn is exist - process it [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 11 00 00 [10:37:12]Write to MH i2c: E2 08 00 00 5B 80 11 00 00 00 00 00 00 D5 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 17 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 17 00 00 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [10:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:37:12]wFMCommunicate OK [10:37:12]requested_item fd.num is exist - process it [10:37:12]SAM_PROTO_GetFieldsCounters [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 00 00 [10:37:12]Write to MH i2c: E2 08 00 01 5B 80 13 00 00 00 00 00 00 D8 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 62 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 62 00 01 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [10:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetFieldsCounters done [10:37:12]requested_item shift.num is exist - process it [10:37:12]requested_item shift.opened is exist - process it [10:37:12]req_shift_opened [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 02 5B 80 13 01 00 00 00 00 00 DA [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 02 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [10:37:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]req_shift_opened done [10:37:12]requested_item shift.open_date is exist - process it [10:37:12]req_shift_open_date [10:37:12]req_shift_open_date done [10:37:12]produce_requested_data done [10:37:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192064,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:37:12]process_action_free close_receipt [10:37:12]json_value_free [10:37:12]json_value_free done [10:37:12]process_json_proto returns [10:37:12]Send response to host [10:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192064,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:37:12]free response buf [10:37:12]execute_script done [10:37:12]execute_script returns [10:37:12]free content buf [10:37:12]Sock 6.Close socket [10:37:12]Sock 6.Thread stoped [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:28]accept exits with 5 [10:38:28]New connection [10:38:28]New thread 3066961252 created [10:38:28]Thread 3066817892 joined [10:38:28]Waiting for new connection... [10:38:28] Sock 5.Parse request [10:38:28]Sock 5.Check first char [10:38:28]Sock 5.First char is OK [10:38:28]request: POST /json_proto HTTP/1.0 [10:38:28]Method: POST [10:38:28]URL: /json_proto [10:38:28]Method is POST - this is cgi request [10:38:28]url: /json_proto [10:38:28]query_string will be loaded in cgi processing [10:38:28]execute_cgi json_proto POST (null) [10:38:28]execute_cgi path=json_proto method=POST [10:38:28]POST find Content-Length [10:38:28]Host: 172.17.63.131:8080 [10:38:28]Content-Length: 681 [10:38:28]Content-Type: application/json [10:38:28] [10:38:28]POST finish read [10:38:28]Found Content-Length = 681 [10:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:28]execute_script... [10:38: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)31375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:28]POST & json_proto [10:38:28]process_json_proto [10:38:28]json parsed OK: [10:38:28]protocol is kg_v1.0 [10:38:28]action value=close_receipt [10:38:28]process_action close_receipt [10:38:28]cmd_close_receipt [10:38:28]MH_GetDate [10:38:28]Write to MH i2c: F0 00 00 03 5B 4D [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 09 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: F0 09 00 03 5B 00 37 18 1E 67 22 05 6E 64 23 [10:38:28]GetLastDocTimeStamp 1730025448 [10:38:28]current date 1730025527 [10:38:28]FM_GetShiftState [10:38:28]SAM_PROTO_GetShiftState [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 13 01 00 [10:38:28]Write to MH i2c: E2 08 00 04 5B 80 13 01 00 00 00 00 00 DC [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0E 00 04 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [10:38:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_GetShiftState done [10:38:28]FM_GetShiftState done [10:38:28]opened in 1729989159 [10:38:28]opened+sec_in_day 1730075559 [10:38:28]quantity*price = 150056 [10:38:28]sum+1 = 150058 [10:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 97 27.10.2024 10:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192065 ФПД: 221353550683583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192065&fm=221353550683583&tin=02508201610067®Number=0000000000091776&sum=150000 [10:38:29]StoreToDocumentArchive [10:38:29]shift 542 fd 192065 [10:38:29]save to /storage/0542/doc_00192065 [10:38:29]save last doc name /storage/0542/doc_00192065 to /storage/kkm_last_doc_name [10:38:29]save OK [10:38:29]Clear old archive folders... [10:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:29]tlvbuf is 0172E580 [10:38:29]SAM_PROTO_ClearQueue [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 09 00 00 [10:38:29]Write to MH i2c: E2 08 00 11 5B 80 09 00 00 00 00 00 00 DE [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 11 5B 00 90 00 E0 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_ClearQueue done [10:38:29]KKMCreateOFDPacket [10:38:29]OFDProtocolAddRootSTLVToBuf [10:38:29]FM_MakeSignedData [10:38:29]FM_MakeSignedData [10:38:29]SAM_PROTO_SignData [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 01 02 [10:38:29]Write to MH i2c: E2 08 00 12 5B 80 0D 01 02 00 00 00 00 E6 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 12 5B 00 90 00 E1 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=255 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EE 02 00 35 04 06 00 C9 [10:38:29]Write to MH i2c: E2 02 01 13 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EE 02 00 35 04 06 00 C9 00 00 12 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 13 5B 00 90 00 E2 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=10 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 02 02 05 51 E3 C2 1D BF [10:38:29]Write to MH i2c: E2 0D 00 14 5B 80 0D 02 02 05 00 51 E3 C2 1D BF 00 00 C5 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 03 00 14 5B 00 90 00 E3 [10:38:29]RAPDU: 90 00 [10:38:29]wFMCommunicate OK [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 0D 03 02 [10:38:29]Write to MH i2c: E2 08 00 15 5B 80 0D 03 02 00 00 00 00 EB [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0B 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0B 00 15 5B 00 82 D4 69 E7 70 FE 26 B9 90 00 DF [10:38:29]RAPDU: 82 D4 69 E7 70 FE 26 B9 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_SignData done [10:38:29]FM_MakeSignedData done [10:38:29]CreateOFDProtocolMessage [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 11 00 00 [10:38:29]Write to MH i2c: E2 08 00 16 5B 80 11 00 00 00 00 00 00 EB [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 16 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [10:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:29]wFMCommunicate OK [10:38:29]CreateOFDProtocolMessage done [10:38:29]OFDSenderStorePacket 192065 [10:38:29]StoreOFDPacket docnum=192065 [10:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 52 07 01 9F 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EE 02 00 35 04 06 00 C9 51 E3 C2 1D BF 82 D4 69 E7 70 FE 26 B9 [10:38:29]CheckFolder [10:38:29]dirname=/storage/ofd_packets [10:38:29]CheckFolder done [10:38:29]ProducePacketName [10:38:29]name=ofd_packets/00192065 [10:38:29]NVStorageSaveData ofd_packets/00192065 [10:38:29]File name is /storage/ofd_packets/00192065 [10:38:29]Write 301 bytes [10:38:29]NVStorageSaveData done [10:38:29]OFDSenderStorePacket done [10:38:29]KKMCreateOFDPacket done [10:38:29]NVStorageSaveData kkm_last_timestamp [10:38:29]File name is /storage/kkm_last_timestamp [10:38:29]Write 4 bytes [10:38:29]NVStorageSaveData done [10:38:29]ExternCall_PrintAddStr [10:38:29]wPrintStart [10:38:29]Write to MH i2c: 01 00 00 17 5B 72 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 17 5B 00 00 00 00 00 FF 0F 87 [10:38:29]RasterBufferAndPrint [10:38:29]line Счет N : (1)31375 [10:38:29]line ИНН: 02508201610067 [10:38:29]line Контрольно-Кассовый Чек [10:38:29]line ПРОДАЖА [10:38:29]line ТРК (МРК, ГНК) : 21 [10:38:29]line Товар: 2710124130 [10:38:29]line Аи-92-К-5 [10:38:29]line 22.430 * 66.90 [10:38:29]line = 1500.57 [10:38:29]line НДС 12% НСП 1% [10:38:29]line > о реализуемом товаре [10:38:29]line ОКРУГЛЕНИЕ: -0.57 [10:38:29]line ИТОГО: 1500.00 [10:38:29]line Внесено: 1500.00 [10:38:29]line СДАЧА: 0.00 [10:38:29]line НСП 1% : 13.28 [10:38:29]line НДС 12% : 159.35 [10:38:29]line Наличными: 1500.00 [10:38:29]line Безнал.: 0.00 [10:38:29]line Место: АЗС № 170 "Партнер Нефть" [10:38:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:38:29]line СНО: Общий режим [10:38:29]line Чек 97 27.10.2024 10:38 [10:38:29]line Смена: 542 ФФД: 1.0 [10:38:29]line ЗНМ: 0300000110 [10:38:29]line РНМ: 0000000000091776 [10:38:29]line Версия ККМ: 001 [10:38:29]line ФМ: 0000000000871754 [10:38:29]line ФД: 192065 [10:38:29]line ФПД: 221353550683583 [10:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192065&fm=221353550683583&tin=02508201610067®Number=0000000000091776&sum=150000 [10:38:30]OFD Sender: Processing packet 192065 [packets to send 75, broken 74] [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00192065 [10:38:30]OFD Sender: To server: pG, [10:38:30]CommunicateWithHost lk.salyk.kg:30040 [10:38:30]ConnectInit lk.salyk.kg [10:38:30]written 0, free lines is 4095 [10:38:30]Connected sock=8 [10:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 52 07 01 9F 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EE 02 00 35 04 06 00 C9 51 E3 C2 1D BF 82 D4 69 E7 70 FE 26 B9 [10:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 59 7C 47 00 3C FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EE 02 00 F4 03 04 00 FF BC 1D 67 B6 04 01 00 00 E7 4E 05 E1 D7 B7 25 C8 [10:38:30]CommunicateWithHost err = 0 [10:38:30]CheckOFDResponse [10:38:30]1017 (14) - 77093643461234 [10:38:30]1041 (16) - 0000000000871754 [10:38:30]1040 (4) - 192065 [10:38:30]1012 (4) - 27.10.2024 04:09 [10:38:30]1206 (1) - 0 [10:38:30]OFD Sender: Remove packet 192065 [10:38:30]ProducePacketName [10:38:30]name=ofd_packets/00192065 [10:38:30]NVStorageDeleteData [10:38:30]Write to MH i2c: 01 00 00 42 5B 9D [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: 01 07 00 42 5B 00 00 00 00 00 A7 0C 57 [10:38:30]RasterBufferAndPrint [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]line [10:38:30]written 0, free lines is 3245 [10:38:30]MH_Cut [10:38:30]Write to MH i2c: D1 01 00 49 5B 01 76 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: D1 01 00 49 5B 00 75 [10:38:30]Write to MH i2c: 01 00 00 4A 5B A5 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:31]OFD Sender: No OFD packet to send [10:38:31]*** Cut start [10:38:31]*** Partial cut [10:38:31]*** CUTSNS_PIN = 1 [10:38:31]*** CUTSNS_PIN = 0 [10:38:31]*** Brake cut motor [10:38:32]Read from MH i2c: 01 [10:38:32]MH_I2C_Read... [10:38:32]*** Stop cut motor [10:38:32]*** Cut end [10:38:32]Read from MH i2c: 01 07 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 4A 5B 00 00 00 00 00 FF 0F BA [10:38:32]process_action close_receipt done [10:38:32]requested_data is exist [10:38:32]produce_requested_data [10:38:32]requested_item fm.sn is exist - process it [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 11 00 00 [10:38:32]Write to MH i2c: E2 08 00 4B 5B 80 11 00 00 00 00 00 00 20 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 4B 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [10:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:32]wFMCommunicate OK [10:38:32]requested_item fd.num is exist - process it [10:38:32]SAM_PROTO_GetFieldsCounters [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 13 00 00 [10:38:32]Write to MH i2c: E2 08 00 4C 5B 80 13 00 00 00 00 00 00 23 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 62 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 62 00 4C 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [10:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_GetFieldsCounters done [10:38:32]requested_item shift.num is exist - process it [10:38:32]requested_item shift.opened is exist - process it [10:38:32]req_shift_opened [10:38:32]FM_GetShiftState [10:38:32]SAM_PROTO_GetShiftState [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 13 01 00 [10:38:32]Write to MH i2c: E2 08 00 4D 5B 80 13 01 00 00 00 00 00 25 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0E 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0E 00 4D 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [10:38:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_GetShiftState done [10:38:32]FM_GetShiftState done [10:38:32]req_shift_opened done [10:38:32]requested_item shift.open_date is exist - process it [10:38:32]req_shift_open_date [10:38:32]req_shift_open_date done [10:38:32]produce_requested_data done [10:38:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192065,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:38:32]process_action_free close_receipt [10:38:32]json_value_free [10:38:32]json_value_free done [10:38:32]process_json_proto returns [10:38:32]Send response to host [10:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192065,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:38:32]free response buf [10:38:32]execute_script done [10:38:32]execute_script returns [10:38:32]free content buf [10:38:32]Sock 5.Close socket [10:38:32]Sock 5.Thread stoped [10:38:36]OFD Sender: No OFD packet to send [10:38:39]accept exits with 6 [10:38:39]New connection [10:38:39]New thread 3066817892 created [10:38:39]Thread 3066961252 joined [10:38:39]Waiting for new connection... [10:38:39] Sock 6.Parse request [10:38:39]Sock 6.Check first char [10:38:39]Sock 6.First char is OK [10:38:39]request: POST /json_proto HTTP/1.0 [10:38:39]Method: POST [10:38:39]URL: /json_proto [10:38:39]Method is POST - this is cgi request [10:38:39]url: /json_proto [10:38:39]query_string will be loaded in cgi processing [10:38:39]execute_cgi json_proto POST (null) [10:38:39]execute_cgi path=json_proto method=POST [10:38:39]POST find Content-Length [10:38:39]Host: 172.17.63.131:8080 [10:38:39]Content-Length: 676 [10:38:39]Content-Type: application/json [10:38:39] [10:38:39]POST finish read [10:38:39]Found Content-Length = 676 [10:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:39]execute_script... [10:38:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:39]POST & json_proto [10:38:39]process_json_proto [10:38:39]json parsed OK: [10:38:39]protocol is kg_v1.0 [10:38:39]action value=close_receipt [10:38:39]process_action close_receipt [10:38:39]cmd_close_receipt [10:38:39]MH_GetDate [10:38:39]Write to MH i2c: F0 00 00 4E 5B 98 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 09 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 09 00 4E 5B 00 43 18 1E 67 22 05 6E 64 7A [10:38:39]GetLastDocTimeStamp 1730025527 [10:38:39]current date 1730025539 [10:38:39]FM_GetShiftState [10:38:39]SAM_PROTO_GetShiftState [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 13 01 00 [10:38:39]Write to MH i2c: E2 08 00 4F 5B 80 13 01 00 00 00 00 00 27 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 4F 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [10:38:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetShiftState done [10:38:40]FM_GetShiftState done [10:38:40]opened in 1729989159 [10:38:40]opened+sec_in_day 1730075559 [10:38:40]quantity*price = 30038 [10:38:40]sum+1 = 30039 [10:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 98 27.10.2024 10:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192066 ФПД: 14663031124594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192066&fm=14663031124594&tin=02508201610067®Number=0000000000091776&sum=30000 [10:38:41]StoreToDocumentArchive [10:38:41]shift 542 fd 192066 [10:38:41]save to /storage/0542/doc_00192066 [10:38:41]save last doc name /storage/0542/doc_00192066 to /storage/kkm_last_doc_name [10:38:41]save OK [10:38:41]Clear old archive folders... [10:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:41]tlvbuf is 01CAA7F0 [10:38:41]SAM_PROTO_ClearQueue [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 09 00 00 [10:38:41]Write to MH i2c: E2 08 00 5C 5B 80 09 00 00 00 00 00 00 29 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 5C 5B 00 90 00 2B [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_ClearQueue done [10:38:41]KKMCreateOFDPacket [10:38:41]OFDProtocolAddRootSTLVToBuf [10:38:41]FM_MakeSignedData [10:38:41]FM_MakeSignedData [10:38:41]SAM_PROTO_SignData [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 01 02 [10:38:41]Write to MH i2c: E2 08 00 5D 5B 80 0D 01 02 00 00 00 00 31 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 5D 5B 00 90 00 2C [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=255 [10:38:41]MH_SAM_APDU [10:38: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 43 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EE 02 00 35 04 06 00 0D [10:38:41]Write to MH i2c: E2 02 01 5E 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 43 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EE 02 00 35 04 06 00 0D 00 00 5A [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 5E 5B 00 90 00 2D [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=10 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 02 02 05 56 00 C2 F2 72 [10:38:41]Write to MH i2c: E2 0D 00 5F 5B 80 0D 02 02 05 00 56 00 C2 F2 72 00 00 BA [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 5F 5B 00 90 00 2E [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 03 02 [10:38:41]Write to MH i2c: E2 08 00 60 5B 80 0D 03 02 00 00 00 00 36 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0B 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0B 00 60 5B 00 11 78 64 B7 33 01 A2 8F 90 00 40 [10:38:41]RAPDU: 11 78 64 B7 33 01 A2 8F 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_SignData done [10:38:41]FM_MakeSignedData done [10:38:41]CreateOFDProtocolMessage [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 11 00 00 [10:38:41]Write to MH i2c: E2 08 00 61 5B 80 11 00 00 00 00 00 00 36 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 17 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 17 00 61 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [10:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:41]wFMCommunicate OK [10:38:41]CreateOFDProtocolMessage done [10:38:41]OFDSenderStorePacket 192066 [10:38:41]StoreOFDPacket docnum=192066 [10:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 00 07 01 4D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 43 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EE 02 00 35 04 06 00 0D 56 00 C2 F2 72 11 78 64 B7 33 01 A2 8F [10:38:41]CheckFolder [10:38:41]dirname=/storage/ofd_packets [10:38:41]CheckFolder done [10:38:41]ProducePacketName [10:38:41]name=ofd_packets/00192066 [10:38:41]NVStorageSaveData ofd_packets/00192066 [10:38:41]File name is /storage/ofd_packets/00192066 [10:38:41]Write 301 bytes [10:38:41]NVStorageSaveData done [10:38:41]OFDSenderStorePacket done [10:38:41]KKMCreateOFDPacket done [10:38:41]NVStorageSaveData kkm_last_timestamp [10:38:41]File name is /storage/kkm_last_timestamp [10:38:41]Write 4 bytes [10:38:41]NVStorageSaveData done [10:38:41]ExternCall_PrintAddStr [10:38:41]wPrintStart [10:38:41]Write to MH i2c: 01 00 00 62 5B BD [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 07 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 07 00 62 5B 00 00 00 00 00 FF 0F D2 [10:38:41]RasterBufferAndPrint [10:38:41]line Счет N : (1)31376 [10:38:41]line ИНН: 02508201610067 [10:38:41]line Контрольно-Кассовый Чек [10:38:41]line ПРОДАЖА [10:38:41]line ТРК (МРК, ГНК) : 12 [10:38:41]line Товар: 2710124130 [10:38:41]line Аи-92-К-5 [10:38:41]line 4.490 * 66.90 [10:38:41]line = 300.38 [10:38:41]line НДС 12% НСП 1% [10:38:41]line > о реализуемом товаре [10:38:41]line ОКРУГЛЕНИЕ: -0.38 [10:38:41]line ИТОГО: 300.00 [10:38:41]line Внесено: 300.00 [10:38:41]line СДАЧА: 0.00 [10:38:41]line НСП 1% : 2.66 [10:38:41]line НДС 12% : 31.90 [10:38:41]line Наличными: 300.00 [10:38:41]line Безнал.: 0.00 [10:38:41]line Место: АЗС № 170 "Партнер Нефть" [10:38:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:38:41]line СНО: Общий режим [10:38:41]line Чек 98 27.10.2024 10:38 [10:38:41]line Смена: 542 ФФД: 1.0 [10:38:41]line ЗНМ: 0300000110 [10:38:41]line РНМ: 0000000000091776 [10:38:41]line Версия ККМ: 001 [10:38:41]line ФМ: 0000000000871754 [10:38:41]line ФД: 192066 [10:38:41]line ФПД: 14663031124594 [10:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192066&fm=14663031124594&tin=02508201610067®Number=0000000000091776&sum=30000 [10:38:41]written 0, free lines is 4095 [10:38:41]OFD Sender: Processing packet 192066 [packets to send 75, broken 74] [10:38:41]ProducePacketName [10:38:41]name=ofd_packets/00192066 [10:38:41]OFD Sender: To server: pG, [10:38:41]CommunicateWithHost lk.salyk.kg:30040 [10:38:41]ConnectInit lk.salyk.kg [10:38:41]Connected sock=8 [10:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 00 07 01 4D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 43 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EE 02 00 35 04 06 00 0D 56 00 C2 F2 72 11 78 64 B7 33 01 A2 8F [10:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 6D 47 00 31 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EE 02 00 F4 03 04 00 0B BD 1D 67 B6 04 01 00 00 F1 63 A3 E6 B3 D4 B3 58 [10:38:42]CommunicateWithHost err = 0 [10:38:42]CheckOFDResponse [10:38:42]1017 (14) - 77093643461234 [10:38:42]1041 (16) - 0000000000871754 [10:38:42]1040 (4) - 192066 [10:38:42]1012 (4) - 27.10.2024 04:09 [10:38:42]1206 (1) - 0 [10:38:42]OFD Sender: Remove packet 192066 [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00192066 [10:38:42]NVStorageDeleteData [10:38:42]Write to MH i2c: 01 00 00 8D 5B E8 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 8D 5B 00 00 00 00 00 A4 0C 9F [10:38:42]RasterBufferAndPrint [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]written 0, free lines is 3246 [10:38:42]MH_Cut [10:38:42]Write to MH i2c: D1 01 00 94 5B 01 C1 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 01 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 01 00 94 5B 00 C0 [10:38:42]Write to MH i2c: 01 00 00 95 5B F0 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]OFD Sender: No OFD packet to send [10:38:43]*** Cut start [10:38:43]*** Partial cut [10:38:43]*** CUTSNS_PIN = 1 [10:38:43]*** CUTSNS_PIN = 0 [10:38:43]*** Brake cut motor [10:38:43]Read from MH i2c: 01 [10:38:43]MH_I2C_Read... [10:38:43]*** Stop cut motor [10:38:43]*** Cut end [10:38:43]Read from MH i2c: 01 07 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 95 5B 00 00 00 00 00 FF 0F 05 [10:38:43]process_action close_receipt done [10:38:43]requested_data is exist [10:38:43]produce_requested_data [10:38:43]requested_item fm.sn is exist - process it [10:38:43]wFMCommunicate request_size=4 [10:38:43]MH_SAM_APDU [10:38:43]CAPDU: 80 11 00 00 [10:38:43]Write to MH i2c: E2 08 00 96 5B 80 11 00 00 00 00 00 00 6B [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:43]Read from MH i2c: E2 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 17 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 17 00 96 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [10:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:43]wFMCommunicate OK [10:38:43]requested_item fd.num is exist - process it [10:38:43]SAM_PROTO_GetFieldsCounters [10:38:43]wFMCommunicate request_size=4 [10:38:43]MH_SAM_APDU [10:38:43]CAPDU: 80 13 00 00 [10:38:43]Write to MH i2c: E2 08 00 97 5B 80 13 00 00 00 00 00 00 6E [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:43]Read from MH i2c: E2 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 62 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 62 00 97 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [10:38:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:43]wFMCommunicate OK [10:38:43]SAM_PROTO_GetFieldsCounters done [10:38:43]requested_item shift.num is exist - process it [10:38:43]requested_item shift.opened is exist - process it [10:38:43]req_shift_opened [10:38:43]FM_GetShiftState [10:38:43]SAM_PROTO_GetShiftState [10:38:43]wFMCommunicate request_size=4 [10:38:43]MH_SAM_APDU [10:38:43]CAPDU: 80 13 01 00 [10:38:43]Write to MH i2c: E2 08 00 98 5B 80 13 01 00 00 00 00 00 70 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:43]Read from MH i2c: E2 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 0E 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 0E 00 98 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [10:38:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:38:43]wFMCommunicate OK [10:38:43]SAM_PROTO_GetShiftState done [10:38:43]FM_GetShiftState done [10:38:43]req_shift_opened done [10:38:43]requested_item shift.open_date is exist - process it [10:38:43]req_shift_open_date [10:38:43]req_shift_open_date done [10:38:43]produce_requested_data done [10:38:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192066,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:38:43]process_action_free close_receipt [10:38:43]json_value_free [10:38:43]json_value_free done [10:38:43]process_json_proto returns [10:38:43]Send response to host [10:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192066,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:38:43]free response buf [10:38:43]execute_script done [10:38:43]execute_script returns [10:38:43]free content buf [10:38:43]Sock 6.Close socket [10:38:43]Sock 6.Thread stoped [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:24]accept exits with 5 [10:39:24]New connection [10:39:24]New thread 3066961252 created [10:39:24]Thread 3066817892 joined [10:39:24]Waiting for new connection... [10:39:24] Sock 5.Parse request [10:39:24]Sock 5.Check first char [10:39:24]Sock 5.First char is OK [10:39:24]request: POST /json_proto HTTP/1.0 [10:39:24]Method: POST [10:39:24]URL: /json_proto [10:39:24]Method is POST - this is cgi request [10:39:24]url: /json_proto [10:39:24]query_string will be loaded in cgi processing [10:39:24]execute_cgi json_proto POST (null) [10:39:24]execute_cgi path=json_proto method=POST [10:39:24]POST find Content-Length [10:39:24]Host: 172.17.63.131:8080 [10:39:24]Content-Length: 676 [10:39:24]Content-Type: application/json [10:39:24] [10:39:24]POST finish read [10:39:24]Found Content-Length = 676 [10:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:24]execute_script... [10: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)31377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:24]POST & json_proto [10:39:24]process_json_proto [10:39:24]json parsed OK: [10:39:24]protocol is kg_v1.0 [10:39:24]action value=close_receipt [10:39:24]process_action close_receipt [10:39:24]cmd_close_receipt [10:39:24]MH_GetDate [10:39:24]Write to MH i2c: F0 00 00 99 5B E3 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 09 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 09 00 99 5B 00 6F 18 1E 67 22 05 6E 64 F1 [10:39:24]GetLastDocTimeStamp 1730025539 [10:39:24]current date 1730025583 [10:39:24]FM_GetShiftState [10:39:24]SAM_PROTO_GetShiftState [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 13 01 00 [10:39:24]Write to MH i2c: E2 08 00 9A 5B 80 13 01 00 00 00 00 00 72 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 9A 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [10:39:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_GetShiftState done [10:39:24]FM_GetShiftState done [10:39:24]opened in 1729989159 [10:39:24]opened+sec_in_day 1730075559 [10:39:24]quantity*price = 50041 [10:39:24]sum+1 = 50042 [10:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 99 27.10.2024 10:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192067 ФПД: 96418764641218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192067&fm=96418764641218&tin=02508201610067®Number=0000000000091776&sum=50000 [10:39:25]StoreToDocumentArchive [10:39:25]shift 542 fd 192067 [10:39:25]save to /storage/0542/doc_00192067 [10:39:25]save last doc name /storage/0542/doc_00192067 to /storage/kkm_last_doc_name [10:39:25]save OK [10:39:25]Clear old archive folders... [10:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:25]tlvbuf is 019609B0 [10:39:25]SAM_PROTO_ClearQueue [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 09 00 00 [10:39:25]Write to MH i2c: E2 08 00 A7 5B 80 09 00 00 00 00 00 00 74 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 A7 5B 00 90 00 76 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_ClearQueue done [10:39:25]KKMCreateOFDPacket [10:39:25]OFDProtocolAddRootSTLVToBuf [10:39:25]FM_MakeSignedData [10:39:25]FM_MakeSignedData [10:39:25]SAM_PROTO_SignData [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 01 02 [10:39:25]Write to MH i2c: E2 08 00 A8 5B 80 0D 01 02 00 00 00 00 7C [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 A8 5B 00 90 00 77 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]wFMCommunicate request_size=255 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6F 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EE 02 00 35 04 06 00 57 [10:39:25]Write to MH i2c: E2 02 01 A9 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6F 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EE 02 00 35 04 06 00 57 00 00 29 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 A9 5B 00 90 00 78 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]wFMCommunicate request_size=10 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 02 02 05 B1 3E 37 53 C2 [10:39:25]Write to MH i2c: E2 0D 00 AA 5B 80 0D 02 02 05 00 B1 3E 37 53 C2 00 00 C4 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 AA 5B 00 90 00 79 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 03 02 [10:39:25]Write to MH i2c: E2 08 00 AB 5B 80 0D 03 02 00 00 00 00 81 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0B 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0B 00 AB 5B 00 06 7B 1D C7 54 2B 51 7F 90 00 36 [10:39:25]RAPDU: 06 7B 1D C7 54 2B 51 7F 90 00 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_SignData done [10:39:25]FM_MakeSignedData done [10:39:25]CreateOFDProtocolMessage [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 11 00 00 [10:39:25]Write to MH i2c: E2 08 00 AC 5B 80 11 00 00 00 00 00 00 81 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 AC 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [10:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:39:25]wFMCommunicate OK [10:39:25]CreateOFDProtocolMessage done [10:39:25]OFDSenderStorePacket 192067 [10:39:25]StoreOFDPacket docnum=192067 [10:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 7D 07 01 DA 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6F 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EE 02 00 35 04 06 00 57 B1 3E 37 53 C2 06 7B 1D C7 54 2B 51 7F [10:39:25]CheckFolder [10:39:25]dirname=/storage/ofd_packets [10:39:25]CheckFolder done [10:39:25]ProducePacketName [10:39:25]name=ofd_packets/00192067 [10:39:25]NVStorageSaveData ofd_packets/00192067 [10:39:25]File name is /storage/ofd_packets/00192067 [10:39:25]Write 301 bytes [10:39:25]NVStorageSaveData done [10:39:25]OFDSenderStorePacket done [10:39:25]KKMCreateOFDPacket done [10:39:25]NVStorageSaveData kkm_last_timestamp [10:39:25]File name is /storage/kkm_last_timestamp [10:39:25]Write 4 bytes [10:39:25]NVStorageSaveData done [10:39:25]ExternCall_PrintAddStr [10:39:25]wPrintStart [10:39:25]Write to MH i2c: 01 00 00 AD 5B 08 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 AD 5B 00 00 00 00 00 FF 0F 1D [10:39:25]RasterBufferAndPrint [10:39:25]line Счет N : (1)31377 [10:39:25]line ИНН: 02508201610067 [10:39:25]line Контрольно-Кассовый Чек [10:39:25]line ПРОДАЖА [10:39:25]line ТРК (МРК, ГНК) : 12 [10:39:25]line Товар: 2710124130 [10:39:25]line Аи-92-К-5 [10:39:25]line 7.480 * 66.90 [10:39:25]line = 500.41 [10:39:25]line НДС 12% НСП 1% [10:39:25]line > о реализуемом товаре [10:39:25]line ОКРУГЛЕНИЕ: -0.41 [10:39:25]line ИТОГО: 500.00 [10:39:25]line Внесено: 500.00 [10:39:25]line СДАЧА: 0.00 [10:39:25]line НСП 1% : 4.43 [10:39:25]line НДС 12% : 53.14 [10:39:25]line Наличными: 500.00 [10:39:25]line Безнал.: 0.00 [10:39:25]line Место: АЗС № 170 "Партнер Нефть" [10:39:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:39:25]line СНО: Общий режим [10:39:25]line Чек 99 27.10.2024 10:39 [10:39:25]line Смена: 542 ФФД: 1.0 [10:39:25]line ЗНМ: 0300000110 [10:39:25]line РНМ: 0000000000091776 [10:39:25]line Версия ККМ: 001 [10:39:25]line ФМ: 0000000000871754 [10:39:25]line ФД: 192067 [10:39:25]line ФПД: 96418764641218 [10:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192067&fm=96418764641218&tin=02508201610067®Number=0000000000091776&sum=50000 [10:39:26]OFD Sender: Processing packet 192067 [packets to send 75, broken 74] [10:39:26]ProducePacketName [10:39:26]name=ofd_packets/00192067 [10:39:26]OFD Sender: To server: pG, [10:39:26]CommunicateWithHost lk.salyk.kg:30040 [10:39:26]ConnectInit lk.salyk.kg [10:39:26]written 0, free lines is 4095 [10:39:26]Connected sock=8 [10:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 7D 07 01 DA 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6F 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EE 02 00 35 04 06 00 57 B1 3E 37 53 C2 06 7B 1D C7 54 2B 51 7F [10:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B 69 47 00 45 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EE 02 00 F4 03 04 00 37 BD 1D 67 B6 04 01 00 00 75 62 06 4A F5 2F A0 A1 [10:39:26]CommunicateWithHost err = 0 [10:39:26]CheckOFDResponse [10:39:26]1017 (14) - 77093643461234 [10:39:26]1041 (16) - 0000000000871754 [10:39:26]1040 (4) - 192067 [10:39:26]1012 (4) - 27.10.2024 04:10 [10:39:26]1206 (1) - 0 [10:39:26]OFD Sender: Remove packet 192067 [10:39:26]ProducePacketName [10:39:26]name=ofd_packets/00192067 [10:39:26]NVStorageDeleteData [10:39:26]Write to MH i2c: 01 00 00 D8 5B 33 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 D8 5B 00 00 00 00 00 9C 0C E2 [10:39:26]RasterBufferAndPrint [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]written 0, free lines is 3235 [10:39:26]MH_Cut [10:39:26]Write to MH i2c: D1 01 00 DF 5B 01 0C [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 01 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 01 00 DF 5B 00 0B [10:39:26]Write to MH i2c: 01 00 00 E0 5B 3B [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]OFD Sender: No OFD packet to send [10:39:27]*** Cut start [10:39:27]*** Partial cut [10:39:27]*** CUTSNS_PIN = 1 [10:39:27]*** CUTSNS_PIN = 0 [10:39:27]*** Brake cut motor [10:39:28]Read from MH i2c: 01 [10:39:28]MH_I2C_Read... [10:39:28]*** Stop cut motor [10:39:28]*** Cut end [10:39:28]Read from MH i2c: 01 07 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: 01 07 00 E0 5B 00 00 00 00 00 FF 0F 50 [10:39:28]process_action close_receipt done [10:39:28]requested_data is exist [10:39:28]produce_requested_data [10:39:28]requested_item fm.sn is exist - process it [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 11 00 00 [10:39:28]Write to MH i2c: E2 08 00 E1 5B 80 11 00 00 00 00 00 00 B6 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 17 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 17 00 E1 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [10:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:39:28]wFMCommunicate OK [10:39:28]requested_item fd.num is exist - process it [10:39:28]SAM_PROTO_GetFieldsCounters [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 00 00 [10:39:28]Write to MH i2c: E2 08 00 E2 5B 80 13 00 00 00 00 00 00 B9 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 E2 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetFieldsCounters done [10:39:28]requested_item shift.num is exist - process it [10:39:28]requested_item shift.opened is exist - process it [10:39:28]req_shift_opened [10:39:28]FM_GetShiftState [10:39:28]SAM_PROTO_GetShiftState [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 01 00 [10:39:28]Write to MH i2c: E2 08 00 E3 5B 80 13 01 00 00 00 00 00 BB [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 E3 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [10:39:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetShiftState done [10:39:28]FM_GetShiftState done [10:39:28]req_shift_opened done [10:39:28]requested_item shift.open_date is exist - process it [10:39:28]req_shift_open_date [10:39:28]req_shift_open_date done [10:39:28]produce_requested_data done [10:39:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192067,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:39:28]process_action_free close_receipt [10:39:28]json_value_free [10:39:28]json_value_free done [10:39:28]process_json_proto returns [10:39:28]Send response to host [10:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192067,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:39:28]free response buf [10:39:28]execute_script done [10:39:28]execute_script returns [10:39:28]free content buf [10:39:28]Sock 5.Close socket [10:39:28]Sock 5.Thread stoped [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]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:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:33]accept exits with 6 [10:41:33]New connection [10:41:33]New thread 3066817892 created [10:41:33]Thread 3066961252 joined [10:41:33]Waiting for new connection... [10:41:33] Sock 6.Parse request [10:41:33]Sock 6.Check first char [10:41:33]Sock 6.First char is OK [10:41:33]request: POST /json_proto HTTP/1.0 [10:41:33]Method: POST [10:41:33]URL: /json_proto [10:41:33]Method is POST - this is cgi request [10:41:33]url: /json_proto [10:41:33]query_string will be loaded in cgi processing [10:41:33]execute_cgi json_proto POST (null) [10:41:33]execute_cgi path=json_proto method=POST [10:41:33]POST find Content-Length [10:41:33]Host: 172.17.63.131:8080 [10:41:33]Content-Length: 673 [10:41:33]Content-Type: application/json [10:41:33] [10:41:33]POST finish read [10:41:33]Found Content-Length = 673 [10:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31378", "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" ] } } [10:41:33]execute_script... [10:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31378", "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" ] } } [10:41:33]POST & json_proto [10:41:33]process_json_proto [10:41:33]json parsed OK: [10:41:33]protocol is kg_v1.0 [10:41:33]action value=close_receipt [10:41:33]process_action close_receipt [10:41:33]cmd_close_receipt [10:41:33]MH_GetDate [10:41:33]Write to MH i2c: F0 00 00 E4 5B 2E [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: F0 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: F0 09 00 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: F0 09 00 E4 5B 00 F1 18 1E 67 22 05 6E 64 BE [10:41:33]GetLastDocTimeStamp 1730025583 [10:41:33]current date 1730025713 [10:41:33]FM_GetShiftState [10:41:33]SAM_PROTO_GetShiftState [10:41:33]wFMCommunicate request_size=4 [10:41:33]MH_SAM_APDU [10:41:33]CAPDU: 80 13 01 00 [10:41:33]Write to MH i2c: E2 08 00 E5 5B 80 13 01 00 00 00 00 00 BD [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:33]Read from MH i2c: E2 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: E2 0E 00 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: E2 0E 00 E5 5B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [10:41:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:41:33]wFMCommunicate OK [10:41:33]SAM_PROTO_GetShiftState done [10:41:33]FM_GetShiftState done [10:41:33]opened in 1729989159 [10:41:33]opened+sec_in_day 1730075559 [10:41:33]quantity*price = 50063 [10:41:33]sum+1 = 50064 [10:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 100 27.10.2024 10:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192068 ФПД: 131057550001090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192068&fm=131057550001090&tin=02508201610067®Number=0000000000091776&sum=50000 [10:41:35]StoreToDocumentArchive [10:41:35]shift 542 fd 192068 [10:41:35]save to /storage/0542/doc_00192068 [10:41:35]save last doc name /storage/0542/doc_00192068 to /storage/kkm_last_doc_name [10:41:35]save OK [10:41:35]Clear old archive folders... [10:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:35]tlvbuf is 016BC720 [10:41:35]SAM_PROTO_ClearQueue [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 09 00 00 [10:41:35]Write to MH i2c: E2 08 00 F2 5B 80 09 00 00 00 00 00 00 BF [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 F2 5B 00 90 00 C1 [10:41:35]RAPDU: 90 00 [10:41:35]wFMCommunicate OK [10:41:35]SAM_PROTO_ClearQueue done [10:41:35]KKMCreateOFDPacket [10:41:35]OFDProtocolAddRootSTLVToBuf [10:41:35]FM_MakeSignedData [10:41:35]FM_MakeSignedData [10:41:35]SAM_PROTO_SignData [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 0D 01 02 [10:41:35]Write to MH i2c: E2 08 00 F3 5B 80 0D 01 02 00 00 00 00 C7 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 F3 5B 00 90 00 C2 [10:41:35]RAPDU: 90 00 [10:41:35]wFMCommunicate OK [10:41:35]wFMCommunicate request_size=255 [10:41:35]MH_SAM_APDU [10:41: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 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 64 00 00 00 F4 03 04 00 F1 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EE 02 00 35 04 06 00 77 32 36 B6 [10:41:35]Write to MH i2c: E2 02 01 F4 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 F1 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EE 02 00 35 04 06 00 77 32 36 B6 00 00 B4 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 F4 5B 00 90 00 C3 [10:41:35]RAPDU: 90 00 [10:41:35]wFMCommunicate OK [10:41:35]wFMCommunicate request_size=7 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 0D 02 02 02 83 C2 [10:41:35]Write to MH i2c: E2 0A 00 F5 5B 80 0D 02 02 02 00 83 C2 00 00 13 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 03 00 F5 5B 00 90 00 C4 [10:41:35]RAPDU: 90 00 [10:41:35]wFMCommunicate OK [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 0D 03 02 [10:41:35]Write to MH i2c: E2 08 00 F6 5B 80 0D 03 02 00 00 00 00 CC [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 0B 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 0B 00 F6 5B 00 49 26 1F 04 66 44 E8 0B 90 00 FC [10:41:35]RAPDU: 49 26 1F 04 66 44 E8 0B 90 00 [10:41:35]wFMCommunicate OK [10:41:35]SAM_PROTO_SignData done [10:41:35]FM_MakeSignedData done [10:41:35]CreateOFDProtocolMessage [10:41:35]wFMCommunicate request_size=4 [10:41:35]MH_SAM_APDU [10:41:35]CAPDU: 80 11 00 00 [10:41:35]Write to MH i2c: E2 08 00 F7 5B 80 11 00 00 00 00 00 00 CC [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:35]Read from MH i2c: E2 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 17 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: E2 17 00 F7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [10:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:41:35]wFMCommunicate OK [10:41:35]CreateOFDProtocolMessage done [10:41:35]OFDSenderStorePacket 192068 [10:41:35]StoreOFDPacket docnum=192068 [10:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 05 D3 04 01 03 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 64 00 00 00 F4 03 04 00 F1 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EE 02 00 35 04 06 00 77 32 36 B6 83 C2 49 26 1F 04 66 44 E8 0B [10:41:35]CheckFolder [10:41:35]dirname=/storage/ofd_packets [10:41:35]CheckFolder done [10:41:35]ProducePacketName [10:41:35]name=ofd_packets/00192068 [10:41:35]NVStorageSaveData ofd_packets/00192068 [10:41:35]File name is /storage/ofd_packets/00192068 [10:41:35]Write 298 bytes [10:41:35]NVStorageSaveData done [10:41:35]OFDSenderStorePacket done [10:41:35]KKMCreateOFDPacket done [10:41:35]NVStorageSaveData kkm_last_timestamp [10:41:35]File name is /storage/kkm_last_timestamp [10:41:35]Write 4 bytes [10:41:35]NVStorageSaveData done [10:41:35]ExternCall_PrintAddStr [10:41:35]wPrintStart [10:41:35]Write to MH i2c: 01 00 00 F8 5B 53 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 07 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 07 00 F8 5B 00 00 00 00 00 FF 0F 68 [10:41:35]RasterBufferAndPrint [10:41:35]line Счет N : (1)31378 [10:41:35]line ИНН: 02508201610067 [10:41:35]line Контрольно-Кассовый Чек [10:41:35]line ПРОДАЖА [10:41:35]line ТРК (МРК, ГНК) : 11 [10:41:35]line Товар: 2710194210 [10:41:35]line ДТ-К-5 [10:41:35]line 6.570 * 76.20 [10:41:35]line = 500.63 [10:41:35]line НДС 12% НСП 1% [10:41:35]line > о реализуемом товаре [10:41:35]line ОКРУГЛЕНИЕ: -0.63 [10:41:35]line ИТОГО: 500.00 [10:41:35]line Внесено: 500.00 [10:41:35]line СДАЧА: 0.00 [10:41:35]line НСП 1% : 4.43 [10:41:35]line НДС 12% : 53.16 [10:41:35]line Наличными: 500.00 [10:41:35]line Безнал.: 0.00 [10:41:35]line Место: АЗС № 170 "Партнер Нефть" [10:41:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:41:35]line СНО: Общий режим [10:41:35]line Чек 100 27.10.2024 10:41 [10:41:35]line Смена: 542 ФФД: 1.0 [10:41:35]line ЗНМ: 0300000110 [10:41:35]line РНМ: 0000000000091776 [10:41:35]line Версия ККМ: 001 [10:41:35]line ФМ: 0000000000871754 [10:41:35]line ФД: 192068 [10:41:35]line ФПД: 131057550001090 [10:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192068&fm=131057550001090&tin=02508201610067®Number=0000000000091776&sum=50000 [10:41:35]OFD Sender: Processing packet 192068 [packets to send 75, broken 74] [10:41:35]ProducePacketName [10:41:35]name=ofd_packets/00192068 [10:41:35]OFD Sender: To server: pG, [10:41:35]CommunicateWithHost lk.salyk.kg:30040 [10:41:35]ConnectInit lk.salyk.kg [10:41:35]written 0, free lines is 4095 [10:41:35]Connected sock=5 [10:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 05 D3 04 01 03 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 64 00 00 00 F4 03 04 00 F1 18 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EE 02 00 35 04 06 00 77 32 36 B6 83 C2 49 26 1F 04 66 44 E8 0B [10:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A B7 47 00 DA 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EE 02 00 F4 03 04 00 B9 BD 1D 67 B6 04 01 00 00 22 04 BD 8E 64 BC 77 A6 [10:41:36]CommunicateWithHost err = 0 [10:41:36]CheckOFDResponse [10:41:36]1017 (14) - 77093643461234 [10:41:36]1041 (16) - 0000000000871754 [10:41:36]1040 (4) - 192068 [10:41:36]1012 (4) - 27.10.2024 04:12 [10:41:36]1206 (1) - 0 [10:41:36]OFD Sender: Remove packet 192068 [10:41:36]ProducePacketName [10:41:36]name=ofd_packets/00192068 [10:41:36]NVStorageDeleteData [10:41:36]Write to MH i2c: 01 00 00 23 5C 7F [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: 01 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: 01 07 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: 01 07 00 23 5C 00 00 00 00 00 9F 0C 31 [10:41:36]RasterBufferAndPrint [10:41:36]line [10:41:36]line [10:41:36]line [10:41:36]line [10:41:36]line [10:41:36]written 0, free lines is 3240 [10:41:36]MH_Cut [10:41:36]Write to MH i2c: D1 01 00 2A 5C 01 58 [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: D1 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: D1 01 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: D1 01 00 2A 5C 00 57 [10:41:36]Write to MH i2c: 01 00 00 2B 5C 87 [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]OFD Sender: No OFD packet to send [10:41:37]*** Cut start [10:41:37]*** Partial cut [10:41:37]*** CUTSNS_PIN = 1 [10:41:37]*** CUTSNS_PIN = 0 [10:41:37]*** Brake cut motor [10:41:37]Read from MH i2c: 01 [10:41:37]MH_I2C_Read... [10:41:37]*** Stop cut motor [10:41:37]*** Cut end [10:41:37]Read from MH i2c: 01 07 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: 01 07 00 2B 5C 00 00 00 00 00 FF 0F 9C [10:41:37]process_action close_receipt done [10:41:37]requested_data is exist [10:41:37]produce_requested_data [10:41:37]requested_item fm.sn is exist - process it [10:41:37]wFMCommunicate request_size=4 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 11 00 00 [10:41:37]Write to MH i2c: E2 08 00 2C 5C 80 11 00 00 00 00 00 00 02 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:37]Read from MH i2c: E2 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 17 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 17 00 2C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [10:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:41:37]wFMCommunicate OK [10:41:37]requested_item fd.num is exist - process it [10:41:37]SAM_PROTO_GetFieldsCounters [10:41:37]wFMCommunicate request_size=4 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 13 00 00 [10:41:37]Write to MH i2c: E2 08 00 2D 5C 80 13 00 00 00 00 00 00 05 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 62 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 62 00 2D 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:38]wFMCommunicate OK [10:41:38]SAM_PROTO_GetFieldsCounters done [10:41:38]requested_item shift.num is exist - process it [10:41:38]requested_item shift.opened is exist - process it [10:41:38]req_shift_opened [10:41:38]FM_GetShiftState [10:41:38]SAM_PROTO_GetShiftState [10:41:38]wFMCommunicate request_size=4 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 13 01 00 [10:41:38]Write to MH i2c: E2 08 00 2E 5C 80 13 01 00 00 00 00 00 07 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 0E 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 0E 00 2E 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [10:41:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:41:38]wFMCommunicate OK [10:41:38]SAM_PROTO_GetShiftState done [10:41:38]FM_GetShiftState done [10:41:38]req_shift_opened done [10:41:38]requested_item shift.open_date is exist - process it [10:41:38]req_shift_open_date [10:41:38]req_shift_open_date done [10:41:38]produce_requested_data done [10:41:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192068,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:41:38]process_action_free close_receipt [10:41:38]json_value_free [10:41:38]json_value_free done [10:41:38]process_json_proto returns [10:41:38]Send response to host [10:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192068,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:41:38]free response buf [10:41:38]execute_script done [10:41:38]execute_script returns [10:41:38]free content buf [10:41:38]Sock 6.Close socket [10:41:38]Sock 6.Thread stoped [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:18]accept exits with 8 [10:42:18]New connection [10:42:18]New thread 3066961252 created [10:42:18]Thread 3066817892 joined [10:42:18]Waiting for new connection... [10:42:18] Sock 8.Parse request [10:42:18]Sock 8.Check first char [10:42:18]Sock 8.First char is OK [10:42:18]request: POST /json_proto HTTP/1.0 [10:42:18]Method: POST [10:42:18]URL: /json_proto [10:42:18]Method is POST - this is cgi request [10:42:18]url: /json_proto [10:42:18]query_string will be loaded in cgi processing [10:42:18]execute_cgi json_proto POST (null) [10:42:18]execute_cgi path=json_proto method=POST [10:42:18]POST find Content-Length [10:42:18]Host: 172.17.63.131:8080 [10:42:18]Content-Length: 681 [10:42:18]Content-Type: application/json [10:42:18] [10:42:18]POST finish read [10:42:18]Found Content-Length = 681 [10:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:18]execute_script... [10:42: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)31379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:18]POST & json_proto [10:42:18]process_json_proto [10:42:18]json parsed OK: [10:42:18]protocol is kg_v1.0 [10:42:18]action value=close_receipt [10:42:18]process_action close_receipt [10:42:18]cmd_close_receipt [10:42:18]MH_GetDate [10:42:18]Write to MH i2c: F0 00 00 2F 5C 7A [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 09 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 09 00 2F 5C 00 1E 19 1E 67 22 05 6E 64 38 [10:42:18]GetLastDocTimeStamp 1730025713 [10:42:18]current date 1730025758 [10:42:18]FM_GetShiftState [10:42:18]SAM_PROTO_GetShiftState [10:42:18]wFMCommunicate request_size=4 [10:42:18]MH_SAM_APDU [10:42:18]CAPDU: 80 13 01 00 [10:42:18]Write to MH i2c: E2 08 00 30 5C 80 13 01 00 00 00 00 00 09 [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:18]Read from MH i2c: E2 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 0E 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 0E 00 30 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4A [10:42:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:42:18]wFMCommunicate OK [10:42:18]SAM_PROTO_GetShiftState done [10:42:18]FM_GetShiftState done [10:42:18]opened in 1729989159 [10:42:18]opened+sec_in_day 1730075559 [10:42:18]quantity*price = 100015 [10:42:18]sum+1 = 100017 [10:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 101 27.10.2024 10:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192069 ФПД: 157787678857984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192069&fm=157787678857984&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:19]StoreToDocumentArchive [10:42:19]shift 542 fd 192069 [10:42:19]save to /storage/0542/doc_00192069 [10:42:19]save last doc name /storage/0542/doc_00192069 to /storage/kkm_last_doc_name [10:42:19]save OK [10:42:19]Clear old archive folders... [10:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:19]tlvbuf is 016144A0 [10:42:19]SAM_PROTO_ClearQueue [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 09 00 00 [10:42:19]Write to MH i2c: E2 08 00 3D 5C 80 09 00 00 00 00 00 00 0B [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 3D 5C 00 90 00 0D [10:42:19]RAPDU: 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_ClearQueue done [10:42:19]KKMCreateOFDPacket [10:42:19]OFDProtocolAddRootSTLVToBuf [10:42:19]FM_MakeSignedData [10:42:19]FM_MakeSignedData [10:42:19]SAM_PROTO_SignData [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 0D 01 02 [10:42:19]Write to MH i2c: E2 08 00 3E 5C 80 0D 01 02 00 00 00 00 13 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 3E 5C 00 90 00 0E [10:42:19]RAPDU: 90 00 [10:42:19]wFMCommunicate OK [10:42:19]wFMCommunicate request_size=255 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1E 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EE 02 00 35 04 06 00 8F [10:42:19]Write to MH i2c: E2 02 01 3F 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1E 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EE 02 00 35 04 06 00 8F 00 00 A6 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 3F 5C 00 90 00 0F [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=10 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 02 02 05 81 CE 8C 5B 00 [10:42:20]Write to MH i2c: E2 0D 00 40 5C 80 0D 02 02 05 00 81 CE 8C 5B 00 00 00 56 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 40 5C 00 90 00 10 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 03 02 [10:42:20]Write to MH i2c: E2 08 00 41 5C 80 0D 03 02 00 00 00 00 18 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 41 5C 00 47 26 44 58 DF 77 F8 A7 90 00 17 [10:42:20]RAPDU: 47 26 44 58 DF 77 F8 A7 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_SignData done [10:42:20]FM_MakeSignedData done [10:42:20]CreateOFDProtocolMessage [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 11 00 00 [10:42:20]Write to MH i2c: E2 08 00 42 5C 80 11 00 00 00 00 00 00 18 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 42 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [10:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:20]wFMCommunicate OK [10:42:20]CreateOFDProtocolMessage done [10:42:20]OFDSenderStorePacket 192069 [10:42:20]StoreOFDPacket docnum=192069 [10:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 56 07 01 54 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1E 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EE 02 00 35 04 06 00 8F 81 CE 8C 5B 00 47 26 44 58 DF 77 F8 A7 [10:42:20]CheckFolder [10:42:20]dirname=/storage/ofd_packets [10:42:20]CheckFolder done [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00192069 [10:42:20]NVStorageSaveData ofd_packets/00192069 [10:42:20]File name is /storage/ofd_packets/00192069 [10:42:20]Write 301 bytes [10:42:20]NVStorageSaveData done [10:42:20]OFDSenderStorePacket done [10:42:20]KKMCreateOFDPacket done [10:42:20]NVStorageSaveData kkm_last_timestamp [10:42:20]File name is /storage/kkm_last_timestamp [10:42:20]Write 4 bytes [10:42:20]NVStorageSaveData done [10:42:20]ExternCall_PrintAddStr [10:42:20]wPrintStart [10:42:20]Write to MH i2c: 01 00 00 43 5C 9F [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 43 5C 00 00 00 00 00 FF 0F B4 [10:42:20]RasterBufferAndPrint [10:42:20]line Счет N : (1)31379 [10:42:20]line ИНН: 02508201610067 [10:42:20]line Контрольно-Кассовый Чек [10:42:20]line ПРОДАЖА [10:42:20]line ТРК (МРК, ГНК) : 21 [10:42:20]line Товар: 2710124130 [10:42:20]line Аи-92-К-5 [10:42:20]line 14.950 * 66.90 [10:42:20]line = 1000.16 [10:42:20]line НДС 12% НСП 1% [10:42:20]line > о реализуемом товаре [10:42:20]line ОКРУГЛЕНИЕ: -0.16 [10:42:20]line ИТОГО: 1000.00 [10:42:20]line Внесено: 1000.00 [10:42:20]line СДАЧА: 0.00 [10:42:20]line НСП 1% : 8.85 [10:42:20]line НДС 12% : 106.21 [10:42:20]line Наличными: 1000.00 [10:42:20]line Безнал.: 0.00 [10:42:20]line Место: АЗС № 170 "Партнер Нефть" [10:42:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:42:20]line СНО: Общий режим [10:42:20]line Чек 101 27.10.2024 10:42 [10:42:20]line Смена: 542 ФФД: 1.0 [10:42:20]line ЗНМ: 0300000110 [10:42:20]line РНМ: 0000000000091776 [10:42:20]line Версия ККМ: 001 [10:42:20]line ФМ: 0000000000871754 [10:42:20]line ФД: 192069 [10:42:20]line ФПД: 157787678857984 [10:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192069&fm=157787678857984&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:20]OFD Sender: Processing packet 192069 [packets to send 75, broken 74] [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00192069 [10:42:20]OFD Sender: To server: pG, [10:42:20]CommunicateWithHost lk.salyk.kg:30040 [10:42:20]ConnectInit lk.salyk.kg [10:42:20]written 0, free lines is 4095 [10:42:20]Connected sock=6 [10:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 56 07 01 54 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1E 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EE 02 00 35 04 06 00 8F 81 CE 8C 5B 00 47 26 44 58 DF 77 F8 A7 [10:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 94 D2 47 00 04 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EE 02 00 F4 03 04 00 E6 BD 1D 67 B6 04 01 00 00 A9 30 8D BD CB E4 C8 6A [10:42:20]CommunicateWithHost err = 0 [10:42:20]CheckOFDResponse [10:42:20]1017 (14) - 77093643461234 [10:42:20]1041 (16) - 0000000000871754 [10:42:20]1040 (4) - 192069 [10:42:20]1012 (4) - 27.10.2024 04:13 [10:42:20]1206 (1) - 0 [10:42:20]OFD Sender: Remove packet 192069 [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00192069 [10:42:20]NVStorageDeleteData [10:42:21]Write to MH i2c: 01 00 00 6E 5C CA [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 6E 5C 00 00 00 00 00 9B 0C 78 [10:42:21]RasterBufferAndPrint [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]line [10:42:21]written 0, free lines is 3235 [10:42:21]MH_Cut [10:42:21]Write to MH i2c: D1 01 00 75 5C 01 A3 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 01 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: D1 01 00 75 5C 00 A2 [10:42:21]Write to MH i2c: 01 00 00 76 5C D2 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]OFD Sender: No OFD packet to send [10:42:21]*** Cut start [10:42:21]*** Partial cut [10:42:21]*** CUTSNS_PIN = 1 [10:42:21]*** CUTSNS_PIN = 0 [10:42:22]*** Brake cut motor [10:42:22]Read from MH i2c: 01 [10:42:22]MH_I2C_Read... [10:42:22]*** Stop cut motor [10:42:22]*** Cut end [10:42:22]Read from MH i2c: 01 07 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 76 5C 00 00 00 00 00 FF 0F E7 [10:42:22]process_action close_receipt done [10:42:22]requested_data is exist [10:42:22]produce_requested_data [10:42:22]requested_item fm.sn is exist - process it [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 11 00 00 [10:42:22]Write to MH i2c: E2 08 00 77 5C 80 11 00 00 00 00 00 00 4D [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 77 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [10:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:22]wFMCommunicate OK [10:42:22]requested_item fd.num is exist - process it [10:42:22]SAM_PROTO_GetFieldsCounters [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 13 00 00 [10:42:22]Write to MH i2c: E2 08 00 78 5C 80 13 00 00 00 00 00 00 50 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 62 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 62 00 78 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_GetFieldsCounters done [10:42:22]requested_item shift.num is exist - process it [10:42:22]requested_item shift.opened is exist - process it [10:42:22]req_shift_opened [10:42:22]FM_GetShiftState [10:42:22]SAM_PROTO_GetShiftState [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 13 01 00 [10:42:22]Write to MH i2c: E2 08 00 79 5C 80 13 01 00 00 00 00 00 52 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0E 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0E 00 79 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [10:42:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_GetShiftState done [10:42:22]FM_GetShiftState done [10:42:22]req_shift_opened done [10:42:22]requested_item shift.open_date is exist - process it [10:42:22]req_shift_open_date [10:42:22]req_shift_open_date done [10:42:22]produce_requested_data done [10:42:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192069,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:42:22]process_action_free close_receipt [10:42:22]json_value_free [10:42:22]json_value_free done [10:42:22]process_json_proto returns [10:42:22]Send response to host [10:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192069,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:42:22]free response buf [10:42:22]execute_script done [10:42:22]execute_script returns [10:42:22]free content buf [10:42:22]Sock 8.Close socket [10:42:22]Sock 8.Thread stoped [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:19]accept exits with 5 [10:43:19]New connection [10:43:19]New thread 3066817892 created [10:43:19]Thread 3066961252 joined [10:43:19]Waiting for new connection... [10:43:19] Sock 5.Parse request [10:43:19]Sock 5.Check first char [10:43:19]Sock 5.First char is OK [10:43:19]request: POST /json_proto HTTP/1.0 [10:43:19]Method: POST [10:43:19]URL: /json_proto [10:43:19]Method is POST - this is cgi request [10:43:19]url: /json_proto [10:43:19]query_string will be loaded in cgi processing [10:43:19]execute_cgi json_proto POST (null) [10:43:19]execute_cgi path=json_proto method=POST [10:43:19]POST find Content-Length [10:43:19]Host: 172.17.63.131:8080 [10:43:19]Content-Length: 676 [10:43:19]Content-Type: application/json [10:43:19] [10:43:19]POST finish read [10:43:19]Found Content-Length = 676 [10:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:19]execute_script... [10:43: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)31380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:19]POST & json_proto [10:43:19]process_json_proto [10:43:19]json parsed OK: [10:43:19]protocol is kg_v1.0 [10:43:19]action value=close_receipt [10:43:19]process_action close_receipt [10:43:19]cmd_close_receipt [10:43:19]MH_GetDate [10:43:19]Write to MH i2c: F0 00 00 7A 5C C5 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: F0 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: F0 09 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: F0 09 00 7A 5C 00 5B 19 1E 67 22 05 6E 64 C0 [10:43:19]GetLastDocTimeStamp 1730025758 [10:43:19]current date 1730025819 [10:43:19]FM_GetShiftState [10:43:19]SAM_PROTO_GetShiftState [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 13 01 00 [10:43:19]Write to MH i2c: E2 08 00 7B 5C 80 13 01 00 00 00 00 00 54 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0E 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0E 00 7B 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 95 [10:43:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:43:19]wFMCommunicate OK [10:43:19]SAM_PROTO_GetShiftState done [10:43:19]FM_GetShiftState done [10:43:19]opened in 1729989159 [10:43:19]opened+sec_in_day 1730075559 [10:43:19]quantity*price = 30038 [10:43:19]sum+1 = 30039 [10:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 102 27.10.2024 10:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192070 ФПД: 86536210121158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104339&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192070&fm=86536210121158&tin=02508201610067®Number=0000000000091776&sum=30000 [10:43:20]StoreToDocumentArchive [10:43:20]shift 542 fd 192070 [10:43:20]save to /storage/0542/doc_00192070 [10:43:20]save last doc name /storage/0542/doc_00192070 to /storage/kkm_last_doc_name [10:43:20]save OK [10:43:20]Clear old archive folders... [10:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:20]tlvbuf is 019926B0 [10:43:20]SAM_PROTO_ClearQueue [10:43:20]wFMCommunicate request_size=4 [10:43:20]MH_SAM_APDU [10:43:20]CAPDU: 80 09 00 00 [10:43:20]Write to MH i2c: E2 08 00 88 5C 80 09 00 00 00 00 00 00 56 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:20]Read from MH i2c: E2 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 03 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 03 00 88 5C 00 90 00 58 [10:43:20]RAPDU: 90 00 [10:43:20]wFMCommunicate OK [10:43:20]SAM_PROTO_ClearQueue done [10:43:20]KKMCreateOFDPacket [10:43:20]OFDProtocolAddRootSTLVToBuf [10:43:20]FM_MakeSignedData [10:43:20]FM_MakeSignedData [10:43:20]SAM_PROTO_SignData [10:43:20]wFMCommunicate request_size=4 [10:43:20]MH_SAM_APDU [10:43:20]CAPDU: 80 0D 01 02 [10:43:20]Write to MH i2c: E2 08 00 89 5C 80 0D 01 02 00 00 00 00 5E [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:20]Read from MH i2c: E2 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 03 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 03 00 89 5C 00 90 00 59 [10:43:20]RAPDU: 90 00 [10:43:20]wFMCommunicate OK [10:43:20]wFMCommunicate request_size=255 [10:43:20]MH_SAM_APDU [10:43:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EE 02 00 35 04 06 00 4E [10:43:20]Write to MH i2c: E2 02 01 8A 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EE 02 00 35 04 06 00 4E 00 00 E9 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 8A 5C 00 90 00 5A [10:43:21]RAPDU: 90 00 [10:43:21]wFMCommunicate OK [10:43:21]wFMCommunicate request_size=10 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 0D 02 02 05 B4 48 10 81 C6 [10:43:21]Write to MH i2c: E2 0D 00 8B 5C 80 0D 02 02 05 00 B4 48 10 81 C6 00 00 BE [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 03 00 8B 5C 00 90 00 5B [10:43:21]RAPDU: 90 00 [10:43:21]wFMCommunicate OK [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 0D 03 02 [10:43:21]Write to MH i2c: E2 08 00 8C 5C 80 0D 03 02 00 00 00 00 63 [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 0B 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 0B 00 8C 5C 00 41 22 24 71 75 08 52 02 90 00 2D [10:43:21]RAPDU: 41 22 24 71 75 08 52 02 90 00 [10:43:21]wFMCommunicate OK [10:43:21]SAM_PROTO_SignData done [10:43:21]FM_MakeSignedData done [10:43:21]CreateOFDProtocolMessage [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 11 00 00 [10:43:21]Write to MH i2c: E2 08 00 8D 5C 80 11 00 00 00 00 00 00 63 [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:21]Read from MH i2c: E2 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 17 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: E2 17 00 8D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [10:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:43:21]wFMCommunicate OK [10:43:21]CreateOFDProtocolMessage done [10:43:21]OFDSenderStorePacket 192070 [10:43:21]StoreOFDPacket docnum=192070 [10:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 37 07 01 EA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EE 02 00 35 04 06 00 4E B4 48 10 81 C6 41 22 24 71 75 08 52 02 [10:43:21]CheckFolder [10:43:21]dirname=/storage/ofd_packets [10:43:21]CheckFolder done [10:43:21]ProducePacketName [10:43:21]name=ofd_packets/00192070 [10:43:21]NVStorageSaveData ofd_packets/00192070 [10:43:21]File name is /storage/ofd_packets/00192070 [10:43:21]Write 301 bytes [10:43:21]NVStorageSaveData done [10:43:21]OFDSenderStorePacket done [10:43:21]KKMCreateOFDPacket done [10:43:21]NVStorageSaveData kkm_last_timestamp [10:43:21]File name is /storage/kkm_last_timestamp [10:43:21]Write 4 bytes [10:43:21]NVStorageSaveData done [10:43:21]ExternCall_PrintAddStr [10:43:21]wPrintStart [10:43:21]Write to MH i2c: 01 00 00 8E 5C EA [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 8E 5C 00 00 00 00 00 FF 0F FF [10:43:21]RasterBufferAndPrint [10:43:21]line Счет N : (1)31380 [10:43:21]line ИНН: 02508201610067 [10:43:21]line Контрольно-Кассовый Чек [10:43:21]line ПРОДАЖА [10:43:21]line ТРК (МРК, ГНК) : 21 [10:43:21]line Товар: 2710124130 [10:43:21]line Аи-92-К-5 [10:43:21]line 4.490 * 66.90 [10:43:21]line = 300.38 [10:43:21]line НДС 12% НСП 1% [10:43:21]line > о реализуемом товаре [10:43:21]line ОКРУГЛЕНИЕ: -0.38 [10:43:21]line ИТОГО: 300.00 [10:43:21]line Внесено: 300.00 [10:43:21]line СДАЧА: 0.00 [10:43:21]line НСП 1% : 2.66 [10:43:21]line НДС 12% : 31.90 [10:43:21]line Наличными: 300.00 [10:43:21]line Безнал.: 0.00 [10:43:21]line Место: АЗС № 170 "Партнер Нефть" [10:43:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:43:21]line СНО: Общий режим [10:43:21]line Чек 102 27.10.2024 10:43 [10:43:21]line Смена: 542 ФФД: 1.0 [10:43:21]line ЗНМ: 0300000110 [10:43:21]line РНМ: 0000000000091776 [10:43:21]line Версия ККМ: 001 [10:43:21]line ФМ: 0000000000871754 [10:43:21]line ФД: 192070 [10:43:21]line ФПД: 86536210121158 [10:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104339&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192070&fm=86536210121158&tin=02508201610067®Number=0000000000091776&sum=30000 [10:43:21]OFD Sender: Processing packet 192070 [packets to send 75, broken 74] [10:43:21]ProducePacketName [10:43:21]name=ofd_packets/00192070 [10:43:21]OFD Sender: To server: pG, [10:43:21]CommunicateWithHost lk.salyk.kg:30040 [10:43:21]ConnectInit lk.salyk.kg [10:43:21]written 0, free lines is 4095 [10:43:21]Connected sock=8 [10:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 37 07 01 EA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EE 02 00 35 04 06 00 4E B4 48 10 81 C6 41 22 24 71 75 08 52 02 [10:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 C4 47 00 6E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EE 02 00 F4 03 04 00 23 BE 1D 67 B6 04 01 00 00 A7 8D 07 01 7C E5 2B 8C [10:43:21]CommunicateWithHost err = 0 [10:43:21]CheckOFDResponse [10:43:21]1017 (14) - 77093643461234 [10:43:21]1041 (16) - 0000000000871754 [10:43:21]1040 (4) - 192070 [10:43:21]1012 (4) - 27.10.2024 04:14 [10:43:21]1206 (1) - 0 [10:43:21]OFD Sender: Remove packet 192070 [10:43:21]ProducePacketName [10:43:21]name=ofd_packets/00192070 [10:43:21]NVStorageDeleteData [10:43:21]Write to MH i2c: 01 00 00 B9 5C 15 [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 B9 5C 00 00 00 00 00 A3 0C CB [10:43:21]RasterBufferAndPrint [10:43:21]line [10:43:21]line [10:43:21]line [10:43:21]line [10:43:21]line [10:43:21]written 0, free lines is 3241 [10:43:21]MH_Cut [10:43:21]Write to MH i2c: D1 01 00 C0 5C 01 EE [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: D1 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: D1 01 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: D1 01 00 C0 5C 00 ED [10:43:21]Write to MH i2c: 01 00 00 C1 5C 1D [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:22]OFD Sender: No OFD packet to send [10:43:22]*** Cut start [10:43:22]*** Partial cut [10:43:22]*** CUTSNS_PIN = 1 [10:43:22]*** CUTSNS_PIN = 0 [10:43:23]*** Brake cut motor [10:43:23]Read from MH i2c: 01 [10:43:23]MH_I2C_Read... [10:43:23]*** Stop cut motor [10:43:23]*** Cut end [10:43:23]Read from MH i2c: 01 07 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: 01 07 00 C1 5C 00 00 00 00 00 FF 0F 32 [10:43:23]process_action close_receipt done [10:43:23]requested_data is exist [10:43:23]produce_requested_data [10:43:23]requested_item fm.sn is exist - process it [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 11 00 00 [10:43:23]Write to MH i2c: E2 08 00 C2 5C 80 11 00 00 00 00 00 00 98 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 17 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 17 00 C2 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [10:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:43:23]wFMCommunicate OK [10:43:23]requested_item fd.num is exist - process it [10:43:23]SAM_PROTO_GetFieldsCounters [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 13 00 00 [10:43:23]Write to MH i2c: E2 08 00 C3 5C 80 13 00 00 00 00 00 00 9B [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 62 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 62 00 C3 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:43:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:23]wFMCommunicate OK [10:43:23]SAM_PROTO_GetFieldsCounters done [10:43:23]requested_item shift.num is exist - process it [10:43:23]requested_item shift.opened is exist - process it [10:43:23]req_shift_opened [10:43:23]FM_GetShiftState [10:43:23]SAM_PROTO_GetShiftState [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 13 01 00 [10:43:23]Write to MH i2c: E2 08 00 C4 5C 80 13 01 00 00 00 00 00 9D [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:23]Read from MH i2c: E2 0E 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 0E 00 C4 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [10:43:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:43:23]wFMCommunicate OK [10:43:23]SAM_PROTO_GetShiftState done [10:43:23]FM_GetShiftState done [10:43:23]req_shift_opened done [10:43:23]requested_item shift.open_date is exist - process it [10:43:23]req_shift_open_date [10:43:23]req_shift_open_date done [10:43:23]produce_requested_data done [10:43:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192070,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:43:23]process_action_free close_receipt [10:43:23]json_value_free [10:43:23]json_value_free done [10:43:23]process_json_proto returns [10:43:23]Send response to host [10:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192070,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:43:23]free response buf [10:43:23]execute_script done [10:43:23]execute_script returns [10:43:23]free content buf [10:43:23]Sock 5.Close socket [10:43:23]Sock 5.Thread stoped [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:38]accept exits with 6 [10:45:38]New connection [10:45:38]New thread 3066961252 created [10:45:38]Thread 3066817892 joined [10:45:38]Waiting for new connection... [10:45:38] Sock 6.Parse request [10:45:38]Sock 6.Check first char [10:45:38]Sock 6.First char is OK [10:45:38]request: POST /json_proto HTTP/1.0 [10:45:38]Method: POST [10:45:38]URL: /json_proto [10:45:38]Method is POST - this is cgi request [10:45:38]url: /json_proto [10:45:38]query_string will be loaded in cgi processing [10:45:38]execute_cgi json_proto POST (null) [10:45:38]execute_cgi path=json_proto method=POST [10:45:38]POST find Content-Length [10:45:38]Host: 172.17.63.131:8080 [10:45:38]Content-Length: 862 [10:45:38]Content-Type: application/json [10:45:38] [10:45:38]POST finish read [10:45:38]Found Content-Length = 862 [10:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:38]execute_script... [10:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:38]POST & json_proto [10:45:38]process_json_proto [10:45:38]json parsed OK: [10:45:38]protocol is kg_v1.0 [10:45:38]action value=close_receipt [10:45:38]process_action close_receipt [10:45:38]cmd_close_receipt [10:45:38]MH_GetDate [10:45:38]Write to MH i2c: F0 00 00 C5 5C 10 [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 09 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 09 00 C5 5C 00 E6 19 1E 67 22 05 6E 64 96 [10:45:38]GetLastDocTimeStamp 1730025819 [10:45:38]current date 1730025958 [10:45:38]FM_GetShiftState [10:45:38]SAM_PROTO_GetShiftState [10:45:38]wFMCommunicate request_size=4 [10:45:38]MH_SAM_APDU [10:45:38]CAPDU: 80 13 01 00 [10:45:38]Write to MH i2c: E2 08 00 C6 5C 80 13 01 00 00 00 00 00 9F [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0E 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0E 00 C6 5C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [10:45:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:45:38]wFMCommunicate OK [10:45:38]SAM_PROTO_GetShiftState done [10:45:38]FM_GetShiftState done [10:45:38]opened in 1729989159 [10:45:38]opened+sec_in_day 1730075559 [10:45:38]quantity*price = 25020 [10:45:38]sum+1 = 25022 [10:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 103 27.10.2024 10:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192071 ФПД: 250233117786482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192071&fm=250233117786482&tin=02508201610067®Number=0000000000091776&sum=25021 [10:45:39]StoreToDocumentArchive [10:45:39]shift 542 fd 192071 [10:45:39]save to /storage/0542/doc_00192071 [10:45:39]save last doc name /storage/0542/doc_00192071 to /storage/kkm_last_doc_name [10:45:39]save OK [10:45:39]Clear old archive folders... [10:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:39]tlvbuf is 01A244B0 [10:45:39]SAM_PROTO_ClearQueue [10:45:39]wFMCommunicate request_size=4 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 09 00 00 [10:45:39]Write to MH i2c: E2 08 00 D3 5C 80 09 00 00 00 00 00 00 A1 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 D3 5C 00 90 00 A3 [10:45:39]RAPDU: 90 00 [10:45:39]wFMCommunicate OK [10:45:39]SAM_PROTO_ClearQueue done [10:45:39]KKMCreateOFDPacket [10:45:39]OFDProtocolAddRootSTLVToBuf [10:45:39]FM_MakeSignedData [10:45:39]FM_MakeSignedData [10:45:39]SAM_PROTO_SignData [10:45:39]wFMCommunicate request_size=4 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 0D 01 02 [10:45:39]Write to MH i2c: E2 08 00 D4 5C 80 0D 01 02 00 00 00 00 A9 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 D4 5C 00 90 00 A4 [10:45:39]RAPDU: 90 00 [10:45:39]wFMCommunicate OK [10:45:39]wFMCommunicate request_size=255 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EE 02 00 35 04 06 00 E3 [10:45:39]Write to MH i2c: E2 02 01 D5 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EE 02 00 35 04 06 00 E3 00 00 65 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 D5 5C 00 90 00 A5 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=10 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 02 02 05 95 F0 18 C1 72 [10:45:40]Write to MH i2c: E2 0D 00 D6 5C 80 0D 02 02 05 00 95 F0 18 C1 72 00 00 86 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 D6 5C 00 90 00 A6 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 03 02 [10:45:40]Write to MH i2c: E2 08 00 D7 5C 80 0D 03 02 00 00 00 00 AE [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 D7 5C 00 29 F5 54 C1 75 83 CD 9D 90 00 44 [10:45:40]RAPDU: 29 F5 54 C1 75 83 CD 9D 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_SignData done [10:45:40]FM_MakeSignedData done [10:45:40]CreateOFDProtocolMessage [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 11 00 00 [10:45:40]Write to MH i2c: E2 08 00 D8 5C 80 11 00 00 00 00 00 00 AE [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 D8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [10:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:45:40]wFMCommunicate OK [10:45:40]CreateOFDProtocolMessage done [10:45:40]OFDSenderStorePacket 192071 [10:45:40]StoreOFDPacket docnum=192071 [10:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 4A 07 01 E5 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EE 02 00 35 04 06 00 E3 95 F0 18 C1 72 29 F5 54 C1 75 83 CD 9D [10:45:40]CheckFolder [10:45:40]dirname=/storage/ofd_packets [10:45:40]CheckFolder done [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00192071 [10:45:40]NVStorageSaveData ofd_packets/00192071 [10:45:40]File name is /storage/ofd_packets/00192071 [10:45:40]Write 301 bytes [10:45:40]NVStorageSaveData done [10:45:40]OFDSenderStorePacket done [10:45:40]KKMCreateOFDPacket done [10:45:40]NVStorageSaveData kkm_last_timestamp [10:45:40]File name is /storage/kkm_last_timestamp [10:45:40]Write 4 bytes [10:45:40]NVStorageSaveData done [10:45:40]ExternCall_PrintAddStr [10:45:40]wPrintStart [10:45:40]Write to MH i2c: 01 00 00 D9 5C 35 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 D9 5C 00 00 00 00 00 FF 0F 4A [10:45:40]RasterBufferAndPrint [10:45:40]line Счет N : (1)31381 [10:45:40]line ИНН: 02508201610067 [10:45:40]line Контрольно-Кассовый Чек [10:45:40]line ПРОДАЖА [10:45:40]line ТРК (МРК, ГНК) : 21 [10:45:40]line Товар: 2710124130 [10:45:40]line Аи-92-К-5 [10:45:40]line 3.740 * 66.90 [10:45:40]line = 250.21 [10:45:40]line НДС 12% НСП 1% [10:45:40]line > о реализуемом товаре [10:45:40]line ИТОГО: 250.21 [10:45:40]line НСП 1% : 2.21 [10:45:40]line НДС 12% : 26.57 [10:45:40]line Наличными: 0.00 [10:45:40]line Безнал.: 250.21 [10:45:40]line Место: АЗС № 170 "Партнер Нефть" [10:45:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:45:40]line СНО: Общий режим [10:45:40]line Чек 103 27.10.2024 10:45 [10:45:40]line Смена: 542 ФФД: 1.0 [10:45:40]line ЗНМ: 0300000110 [10:45:40]line РНМ: 0000000000091776 [10:45:40]line Версия ККМ: 001 [10:45:40]line Платежная система: Кыргызкоммерцбанк [10:45:40]line ФМ: 0000000000871754 [10:45:40]line ФД: 192071 [10:45:40]line ФПД: 250233117786482 [10:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192071&fm=250233117786482&tin=02508201610067®Number=0000000000091776&sum=25021 [10:45:40]OFD Sender: Processing packet 192071 [packets to send 75, broken 74] [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00192071 [10:45:40]OFD Sender: To server: pG, [10:45:40]CommunicateWithHost lk.salyk.kg:30040 [10:45:40]ConnectInit lk.salyk.kg [10:45:40]written 0, free lines is 4095 [10:45:40]Connected sock=8 [10:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 4A 07 01 E5 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E6 19 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EE 02 00 35 04 06 00 E3 95 F0 18 C1 72 29 F5 54 C1 75 83 CD 9D [10:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 5A 47 00 AC 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EE 02 00 F4 03 04 00 AE BE 1D 67 B6 04 01 00 00 3E FC 4B 08 C6 74 3D BE [10:45:40]CommunicateWithHost err = 0 [10:45:40]CheckOFDResponse [10:45:40]1017 (14) - 77093643461234 [10:45:40]1041 (16) - 0000000000871754 [10:45:40]1040 (4) - 192071 [10:45:40]1012 (4) - 27.10.2024 04:16 [10:45:40]1206 (1) - 0 [10:45:40]OFD Sender: Remove packet 192071 [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00192071 [10:45:40]NVStorageDeleteData [10:45:40]Write to MH i2c: 01 00 00 03 5D 60 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 03 5D 00 00 00 00 00 BD 0C 30 [10:45:40]RasterBufferAndPrint [10:45:40]line [10:45:40]line [10:45:40]line [10:45:40]line [10:45:40]line [10:45:40]written 0, free lines is 3267 [10:45:40]MH_Cut [10:45:40]Write to MH i2c: D1 01 00 0A 5D 01 39 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: D1 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: D1 01 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: D1 01 00 0A 5D 00 38 [10:45:40]Write to MH i2c: 01 00 00 0B 5D 68 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:41]OFD Sender: No OFD packet to send [10:45:41]*** Cut start [10:45:41]*** Partial cut [10:45:41]*** CUTSNS_PIN = 1 [10:45:41]*** CUTSNS_PIN = 0 [10:45:42]*** Brake cut motor [10:45:42]Read from MH i2c: 01 [10:45:42]MH_I2C_Read... [10:45:42]*** Stop cut motor [10:45:42]*** Cut end [10:45:42]Read from MH i2c: 01 07 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: 01 07 00 0B 5D 00 00 00 00 00 FF 0F 7D [10:45:42]process_action close_receipt done [10:45:42]requested_data is exist [10:45:42]produce_requested_data [10:45:42]requested_item fm.sn is exist - process it [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 11 00 00 [10:45:42]Write to MH i2c: E2 08 00 0C 5D 80 11 00 00 00 00 00 00 E3 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 0C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [10:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:45:42]wFMCommunicate OK [10:45:42]requested_item fd.num is exist - process it [10:45:42]SAM_PROTO_GetFieldsCounters [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 13 00 00 [10:45:42]Write to MH i2c: E2 08 00 0D 5D 80 13 00 00 00 00 00 00 E6 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 62 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 62 00 0D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_GetFieldsCounters done [10:45:42]requested_item shift.num is exist - process it [10:45:42]requested_item shift.opened is exist - process it [10:45:42]req_shift_opened [10:45:42]FM_GetShiftState [10:45:42]SAM_PROTO_GetShiftState [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 13 01 00 [10:45:42]Write to MH i2c: E2 08 00 0E 5D 80 13 01 00 00 00 00 00 E8 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0E 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0E 00 0E 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [10:45:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_GetShiftState done [10:45:42]FM_GetShiftState done [10:45:42]req_shift_opened done [10:45:42]requested_item shift.open_date is exist - process it [10:45:42]req_shift_open_date [10:45:42]req_shift_open_date done [10:45:42]produce_requested_data done [10:45:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192071,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:45:42]process_action_free close_receipt [10:45:42]json_value_free [10:45:42]json_value_free done [10:45:42]process_json_proto returns [10:45:42]Send response to host [10:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192071,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:45:42]free response buf [10:45:42]execute_script done [10:45:42]execute_script returns [10:45:42]free content buf [10:45:42]Sock 6.Close socket [10:45:42]Sock 6.Thread stoped [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:52]accept exits with 5 [10:50:52]New connection [10:50:52]New thread 3066817892 created [10:50:52]Thread 3066961252 joined [10:50:52]Waiting for new connection... [10:50:52] Sock 5.Parse request [10:50:52]Sock 5.Check first char [10:50:52]Sock 5.First char is OK [10:50:52]request: POST /json_proto HTTP/1.0 [10:50:52]Method: POST [10:50:52]URL: /json_proto [10:50:52]Method is POST - this is cgi request [10:50:52]url: /json_proto [10:50:52]query_string will be loaded in cgi processing [10:50:52]execute_cgi json_proto POST (null) [10:50:52]execute_cgi path=json_proto method=POST [10:50:52]POST find Content-Length [10:50:52]Host: 172.17.63.131:8080 [10:50:52]Content-Length: 681 [10:50:52]Content-Type: application/json [10:50:52] [10:50:52]POST finish read [10:50:52]Found Content-Length = 681 [10:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:52]execute_script... [10:50: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)31382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:52]POST & json_proto [10:50:52]process_json_proto [10:50:52]json parsed OK: [10:50:52]protocol is kg_v1.0 [10:50:52]action value=close_receipt [10:50:52]process_action close_receipt [10:50:52]cmd_close_receipt [10:50:52]MH_GetDate [10:50:52]Write to MH i2c: F0 00 00 0F 5D 5B [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: F0 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: F0 09 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: F0 09 00 0F 5D 00 20 1B 1E 67 22 05 6E 64 1D [10:50:52]GetLastDocTimeStamp 1730025958 [10:50:52]current date 1730026272 [10:50:52]FM_GetShiftState [10:50:52]SAM_PROTO_GetShiftState [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 13 01 00 [10:50:52]Write to MH i2c: E2 08 00 10 5D 80 13 01 00 00 00 00 00 EA [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 10 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2B [10:50:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_GetShiftState done [10:50:52]FM_GetShiftState done [10:50:52]opened in 1729989159 [10:50:52]opened+sec_in_day 1730075559 [10:50:52]quantity*price = 100015 [10:50:52]sum+1 = 100017 [10:50:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 104 27.10.2024 10:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192072 ФПД: 256783767615991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192072&fm=256783767615991&tin=02508201610067®Number=0000000000091776&sum=100000 [10:50:53]StoreToDocumentArchive [10:50:53]shift 542 fd 192072 [10:50:53]save to /storage/0542/doc_00192072 [10:50:53]save last doc name /storage/0542/doc_00192072 to /storage/kkm_last_doc_name [10:50:53]save OK [10:50:53]Clear old archive folders... [10:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:53]tlvbuf is 019927E0 [10:50:53]SAM_PROTO_ClearQueue [10:50:53]wFMCommunicate request_size=4 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 09 00 00 [10:50:53]Write to MH i2c: E2 08 00 1D 5D 80 09 00 00 00 00 00 00 EC [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 1D 5D 00 90 00 EE [10:50:53]RAPDU: 90 00 [10:50:53]wFMCommunicate OK [10:50:53]SAM_PROTO_ClearQueue done [10:50:53]KKMCreateOFDPacket [10:50:53]OFDProtocolAddRootSTLVToBuf [10:50:53]FM_MakeSignedData [10:50:53]FM_MakeSignedData [10:50:53]SAM_PROTO_SignData [10:50:53]wFMCommunicate request_size=4 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 0D 01 02 [10:50:53]Write to MH i2c: E2 08 00 1E 5D 80 0D 01 02 00 00 00 00 F4 [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 1E 5D 00 90 00 EF [10:50:53]RAPDU: 90 00 [10:50:53]wFMCommunicate OK [10:50:53]wFMCommunicate request_size=255 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 20 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EE 02 00 35 04 06 00 E9 [10:50:53]Write to MH i2c: E2 02 01 1F 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 20 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EE 02 00 35 04 06 00 E9 00 00 EB [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 03 00 1F 5D 00 90 00 F0 [10:50:53]RAPDU: 90 00 [10:50:53]wFMCommunicate OK [10:50:53]wFMCommunicate request_size=10 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 0D 02 02 05 8B 21 40 B9 F7 [10:50:53]Write to MH i2c: E2 0D 00 20 5D 80 0D 02 02 05 00 8B 21 40 B9 F7 00 00 9D [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 03 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 03 00 20 5D 00 90 00 F1 [10:50:54]RAPDU: 90 00 [10:50:54]wFMCommunicate OK [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 0D 03 02 [10:50:54]Write to MH i2c: E2 08 00 21 5D 80 0D 03 02 00 00 00 00 F9 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0B 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0B 00 21 5D 00 EB 21 04 A0 CB FB F4 6A 90 00 CE [10:50:54]RAPDU: EB 21 04 A0 CB FB F4 6A 90 00 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_SignData done [10:50:54]FM_MakeSignedData done [10:50:54]CreateOFDProtocolMessage [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 11 00 00 [10:50:54]Write to MH i2c: E2 08 00 22 5D 80 11 00 00 00 00 00 00 F9 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 22 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [10:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:50:54]wFMCommunicate OK [10:50:54]CreateOFDProtocolMessage done [10:50:54]OFDSenderStorePacket 192072 [10:50:54]StoreOFDPacket docnum=192072 [10:50:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 6E 07 01 A2 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 20 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EE 02 00 35 04 06 00 E9 8B 21 40 B9 F7 EB 21 04 A0 CB FB F4 6A [10:50:54]CheckFolder [10:50:54]dirname=/storage/ofd_packets [10:50:54]CheckFolder done [10:50:54]ProducePacketName [10:50:54]name=ofd_packets/00192072 [10:50:54]NVStorageSaveData ofd_packets/00192072 [10:50:54]File name is /storage/ofd_packets/00192072 [10:50:54]Write 301 bytes [10:50:54]NVStorageSaveData done [10:50:54]OFDSenderStorePacket done [10:50:54]KKMCreateOFDPacket done [10:50:54]NVStorageSaveData kkm_last_timestamp [10:50:54]File name is /storage/kkm_last_timestamp [10:50:54]Write 4 bytes [10:50:54]NVStorageSaveData done [10:50:54]ExternCall_PrintAddStr [10:50:54]wPrintStart [10:50:54]Write to MH i2c: 01 00 00 23 5D 80 [10:50:54]OFD Sender: Processing packet 192072 [packets to send 75, broken 74] [10:50:54]ProducePacketName [10:50:54]name=ofd_packets/00192072 [10:50:54]OFD Sender: To server: pG, [10:50:54]CommunicateWithHost lk.salyk.kg:30040 [10:50:54]ConnectInit lk.salyk.kg [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 07 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 07 00 23 5D 00 00 00 00 00 FF 0F 95 [10:50:54]RasterBufferAndPrint [10:50:54]line Счет N : (1)31382 [10:50:54]line ИНН: 02508201610067 [10:50:54]line Контрольно-Кассовый Чек [10:50:54]line ПРОДАЖА [10:50:54]line ТРК (МРК, ГНК) : 12 [10:50:54]line Товар: 2710124130 [10:50:54]line Аи-92-К-5 [10:50:54]line 14.950 * 66.90 [10:50:54]line = 1000.16 [10:50:54]line НДС 12% НСП 1% [10:50:54]line > о реализуемом товаре [10:50:54]line ОКРУГЛЕНИЕ: -0.16 [10:50:54]line ИТОГО: 1000.00 [10:50:54]line Внесено: 1000.00 [10:50:54]line СДАЧА: 0.00 [10:50:54]line НСП 1% : 8.85 [10:50:54]line НДС 12% : 106.21 [10:50:54]line Наличными: 1000.00 [10:50:54]line Безнал.: 0.00 [10:50:54]line Место: АЗС № 170 "Партнер Нефть" [10:50:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:50:54]line СНО: Общий режим [10:50:54]line Чек 104 27.10.2024 10:51 [10:50:54]line Смена: 542 ФФД: 1.0 [10:50:54]line ЗНМ: 0300000110 [10:50:54]line РНМ: 0000000000091776 [10:50:54]line Версия ККМ: 001 [10:50:54]line ФМ: 0000000000871754 [10:50:54]line ФД: 192072 [10:50:54]line ФПД: 256783767615991 [10:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192072&fm=256783767615991&tin=02508201610067®Number=0000000000091776&sum=100000 [10:50:54]Connected sock=8 [10:50:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 6E written 0, free lines is 4095 [10:50:54]07 01 A2 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 20 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EE 02 00 35 04 06 00 E9 8B 21 40 B9 F7 EB 21 04 A0 CB FB F4 6A [10:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA C5 47 00 22 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EE 02 00 F4 03 04 00 E7 BF 1D 67 B6 04 01 00 00 4D 35 90 01 A6 FD 29 A8 [10:50:54]CommunicateWithHost err = 0 [10:50:54]CheckOFDResponse [10:50:54]1017 (14) - 77093643461234 [10:50:54]1041 (16) - 0000000000871754 [10:50:54]1040 (4) - 192072 [10:50:54]1012 (4) - 27.10.2024 04:21 [10:50:54]1206 (1) - 0 [10:50:54]OFD Sender: Remove packet 192072 [10:50:54]ProducePacketName [10:50:54]name=ofd_packets/00192072 [10:50:54]NVStorageDeleteData [10:50:54]Write to MH i2c: 01 00 00 4E 5D AB [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 07 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 07 00 4E 5D 00 00 00 00 00 9D 0C 5B [10:50:54]RasterBufferAndPrint [10:50:54]line [10:50:54]line [10:50:54]line [10:50:54]line [10:50:54]line [10:50:54]written 0, free lines is 3238 [10:50:54]MH_Cut [10:50:54]Write to MH i2c: D1 01 00 55 5D 01 84 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: D1 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: D1 01 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: D1 01 00 55 5D 00 83 [10:50:54]Write to MH i2c: 01 00 00 56 5D B3 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:55]OFD Sender: No OFD packet to send [10:50:55]*** Cut start [10:50:55]*** Partial cut [10:50:55]*** CUTSNS_PIN = 1 [10:50:55]*** CUTSNS_PIN = 0 [10:50:56]*** Brake cut motor [10:50:56]Read from MH i2c: 01 [10:50:56]MH_I2C_Read... [10:50:56]*** Stop cut motor [10:50:56]*** Cut end [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 56 5D 00 00 00 00 00 FF 0F C8 [10:50:56]process_action close_receipt done [10:50:56]requested_data is exist [10:50:56]produce_requested_data [10:50:56]requested_item fm.sn is exist - process it [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 11 00 00 [10:50:56]Write to MH i2c: E2 08 00 57 5D 80 11 00 00 00 00 00 00 2E [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 17 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 17 00 57 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [10:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:50:56]wFMCommunicate OK [10:50:56]requested_item fd.num is exist - process it [10:50:56]SAM_PROTO_GetFieldsCounters [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 13 00 00 [10:50:56]Write to MH i2c: E2 08 00 58 5D 80 13 00 00 00 00 00 00 31 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 62 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 62 00 58 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:56]wFMCommunicate OK [10:50:56]SAM_PROTO_GetFieldsCounters done [10:50:56]requested_item shift.num is exist - process it [10:50:56]requested_item shift.opened is exist - process it [10:50:56]req_shift_opened [10:50:56]FM_GetShiftState [10:50:56]SAM_PROTO_GetShiftState [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 13 01 00 [10:50:56]Write to MH i2c: E2 08 00 59 5D 80 13 01 00 00 00 00 00 33 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 0E 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 0E 00 59 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [10:50:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:50:56]wFMCommunicate OK [10:50:56]SAM_PROTO_GetShiftState done [10:50:56]FM_GetShiftState done [10:50:56]req_shift_opened done [10:50:56]requested_item shift.open_date is exist - process it [10:50:56]req_shift_open_date [10:50:56]req_shift_open_date done [10:50:56]produce_requested_data done [10:50:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192072,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:50:56]process_action_free close_receipt [10:50:56]json_value_free [10:50:56]json_value_free done [10:50:56]process_json_proto returns [10:50:56]Send response to host [10:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192072,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:50:56]free response buf [10:50:56]execute_script done [10:50:56]execute_script returns [10:50:56]free content buf [10:50:56]Sock 5.Close socket [10:50:56]Sock 5.Thread stoped [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:02]accept exits with 6 [10:52:02]New connection [10:52:02]New thread 3066961252 created [10:52:02]Thread 3066817892 joined [10:52:02]Waiting for new connection... [10:52:02] Sock 6.Parse request [10:52:02]Sock 6.Check first char [10:52:02]Sock 6.First char is OK [10:52:02]request: POST /json_proto HTTP/1.0 [10:52:02]Method: POST [10:52:02]URL: /json_proto [10:52:02]Method is POST - this is cgi request [10:52:02]url: /json_proto [10:52:02]query_string will be loaded in cgi processing [10:52:02]execute_cgi json_proto POST (null) [10:52:02]execute_cgi path=json_proto method=POST [10:52:02]POST find Content-Length [10:52:02]Host: 172.17.63.131:8080 [10:52:02]Content-Length: 807 [10:52:02]Content-Type: application/json [10:52:02] [10:52:02]POST finish read [10:52:02]Found Content-Length = 807 [10:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:02]execute_script... [10:52: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)31383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:02]POST & json_proto [10:52:02]process_json_proto [10:52:02]json parsed OK: [10:52:02]protocol is kg_v1.0 [10:52:02]action value=close_receipt [10:52:02]process_action close_receipt [10:52:02]cmd_close_receipt [10:52:02]MH_GetDate [10:52:02]Write to MH i2c: F0 00 00 5A 5D A6 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 09 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 09 00 5A 5D 00 66 1B 1E 67 22 05 6E 64 AE [10:52:02]GetLastDocTimeStamp 1730026272 [10:52:02]current date 1730026342 [10:52:02]FM_GetShiftState [10:52:02]SAM_PROTO_GetShiftState [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 13 01 00 [10:52:02]Write to MH i2c: E2 08 00 5B 5D 80 13 01 00 00 00 00 00 35 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0E 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0E 00 5B 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 76 [10:52:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:52:03]wFMCommunicate OK [10:52:03]SAM_PROTO_GetShiftState done [10:52:03]FM_GetShiftState done [10:52:03]opened in 1729989159 [10:52:03]opened+sec_in_day 1730075559 [10:52:03]quantity*price = 100015 [10:52:03]sum+1 = 100017 [10:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 105 27.10.2024 10:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192073 ФПД: 155510041782625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192073&fm=155510041782625&tin=02508201610067®Number=0000000000091776&sum=100016 [10:52:04]StoreToDocumentArchive [10:52:04]shift 542 fd 192073 [10:52:04]save to /storage/0542/doc_00192073 [10:52:04]save last doc name /storage/0542/doc_00192073 to /storage/kkm_last_doc_name [10:52:04]save OK [10:52:04]Clear old archive folders... [10:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:04]tlvbuf is 01D13850 [10:52:04]SAM_PROTO_ClearQueue [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 09 00 00 [10:52:04]Write to MH i2c: E2 08 00 68 5D 80 09 00 00 00 00 00 00 37 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 68 5D 00 90 00 39 [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]SAM_PROTO_ClearQueue done [10:52:04]KKMCreateOFDPacket [10:52:04]OFDProtocolAddRootSTLVToBuf [10:52:04]FM_MakeSignedData [10:52:04]FM_MakeSignedData [10:52:04]SAM_PROTO_SignData [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 01 02 [10:52:04]Write to MH i2c: E2 08 00 69 5D 80 0D 01 02 00 00 00 00 3F [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 69 5D 00 90 00 3A [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=255 [10:52:04]MH_SAM_APDU [10:52: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EE 02 00 35 04 06 00 8D [10:52:04]Write to MH i2c: E2 02 01 6A 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EE 02 00 35 04 06 00 8D 00 00 42 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 6A 5D 00 90 00 3B [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=10 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 02 02 05 6F 80 CC A9 61 [10:52:04]Write to MH i2c: E2 0D 00 6B 5D 80 0D 02 02 05 00 6F 80 CC A9 61 00 00 11 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 6B 5D 00 90 00 3C [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 03 02 [10:52:04]Write to MH i2c: E2 08 00 6C 5D 80 0D 03 02 00 00 00 00 44 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 0B 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 0B 00 6C 5D 00 98 47 45 EA EA D8 43 E5 90 00 3D [10:52:04]RAPDU: 98 47 45 EA EA D8 43 E5 90 00 [10:52:04]wFMCommunicate OK [10:52:04]SAM_PROTO_SignData done [10:52:04]FM_MakeSignedData done [10:52:04]CreateOFDProtocolMessage [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 11 00 00 [10:52:04]Write to MH i2c: E2 08 00 6D 5D 80 11 00 00 00 00 00 00 44 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 17 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 17 00 6D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [10:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:52:04]wFMCommunicate OK [10:52:04]CreateOFDProtocolMessage done [10:52:04]OFDSenderStorePacket 192073 [10:52:04]StoreOFDPacket docnum=192073 [10:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 67 07 01 5A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EE 02 00 35 04 06 00 8D 6F 80 CC A9 61 98 47 45 EA EA D8 43 E5 [10:52:04]CheckFolder [10:52:04]dirname=/storage/ofd_packets [10:52:04]CheckFolder done [10:52:04]ProducePacketName [10:52:04]name=ofd_packets/00192073 [10:52:04]NVStorageSaveData ofd_packets/00192073 [10:52:04]File name is /storage/ofd_packets/00192073 [10:52:04]Write 301 bytes [10:52:04]NVStorageSaveData done [10:52:04]OFDSenderStorePacket done [10:52:04]KKMCreateOFDPacket done [10:52:04]NVStorageSaveData kkm_last_timestamp [10:52:04]File name is /storage/kkm_last_timestamp [10:52:04]Write 4 bytes [10:52:04]NVStorageSaveData done [10:52:04]ExternCall_PrintAddStr [10:52:04]wPrintStart [10:52:04]Write to MH i2c: 01 00 00 6E 5D CB [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 6E 5D 00 00 00 00 00 FF 0F E0 [10:52:04]RasterBufferAndPrint [10:52:04]line Счет N : (1)31383 [10:52:04]line ИНН: 02508201610067 [10:52:04]line Контрольно-Кассовый Чек [10:52:04]line ПРОДАЖА [10:52:04]line ТРК (МРК, ГНК) : 21 [10:52:04]line Товар: 2710124130 [10:52:04]line Аи-92-К-5 [10:52:04]line 14.950 * 66.90 [10:52:04]line = 1000.16 [10:52:04]line НДС 12% НСП 1% [10:52:04]line > о реализуемом товаре [10:52:04]line ИТОГО: 1000.16 [10:52:04]line НСП 1% : 8.85 [10:52:04]line НДС 12% : 106.21 [10:52:04]line Наличными: 0.00 [10:52:04]line Безнал.: 1000.16 [10:52:04]line Место: АЗС № 170 "Партнер Нефть" [10:52:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:52:04]line СНО: Общий режим [10:52:04]line Чек 105 27.10.2024 10:52 [10:52:04]line Смена: 542 ФФД: 1.0 [10:52:04]line ЗНМ: 0300000110 [10:52:04]line РНМ: 0000000000091776 [10:52:04]line Версия ККМ: 001 [10:52:04]line Платежная система: О! деньги [10:52:04]line ФМ: 0000000000871754 [10:52:04]line ФД: 192073 [10:52:04]line ФПД: 155510041782625 [10:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192073&fm=155510041782625&tin=02508201610067®Number=0000000000091776&sum=100016 [10:52:04]written 0, free lines is 4095 [10:52:04]OFD Sender: Processing packet 192073 [packets to send 75, broken 74] [10:52:04]ProducePacketName [10:52:04]name=ofd_packets/00192073 [10:52:04]OFD Sender: To server: pG, [10:52:04]CommunicateWithHost lk.salyk.kg:30040 [10:52:04]ConnectInit lk.salyk.kg [10:52:04]Connected sock=9 [10:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 67 07 01 5A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EE 02 00 35 04 06 00 8D 6F 80 CC A9 61 98 47 45 EA EA D8 43 E5 [10:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 C0 47 00 88 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EE 02 00 F4 03 04 00 2E C0 1D 67 B6 04 01 00 00 91 E8 1D FD C2 E1 81 FF [10:52:05]CommunicateWithHost err = 0 [10:52:05]CheckOFDResponse [10:52:05]1017 (14) - 77093643461234 [10:52:05]1041 (16) - 0000000000871754 [10:52:05]1040 (4) - 192073 [10:52:05]1012 (4) - 27.10.2024 04:23 [10:52:05]1206 (1) - 0 [10:52:05]OFD Sender: Remove packet 192073 [10:52:05]ProducePacketName [10:52:05]name=ofd_packets/00192073 [10:52:05]NVStorageDeleteData [10:52:05]Write to MH i2c: 01 00 00 98 5D F5 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 98 5D 00 00 00 00 00 C6 0C CE [10:52:05]RasterBufferAndPrint [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]written 0, free lines is 3276 [10:52:05]MH_Cut [10:52:05]Write to MH i2c: D1 01 00 9F 5D 01 CE [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 01 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 01 00 9F 5D 00 CD [10:52:05]Write to MH i2c: 01 00 00 A0 5D FD [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]OFD Sender: No OFD packet to send [10:52:06]*** Cut start [10:52:06]*** Partial cut [10:52:06]*** CUTSNS_PIN = 1 [10:52:06]*** CUTSNS_PIN = 0 [10:52:06]*** Brake cut motor [10:52:06]Read from MH i2c: 01 [10:52:06]MH_I2C_Read... [10:52:06]*** Stop cut motor [10:52:06]*** Cut end [10:52:06]Read from MH i2c: 01 07 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: 01 07 00 A0 5D 00 00 00 00 00 FF 0F 12 [10:52:06]process_action close_receipt done [10:52:06]requested_data is exist [10:52:06]produce_requested_data [10:52:06]requested_item fm.sn is exist - process it [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 11 00 00 [10:52:06]Write to MH i2c: E2 08 00 A1 5D 80 11 00 00 00 00 00 00 78 [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 17 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 17 00 A1 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [10:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:52:06]wFMCommunicate OK [10:52:06]requested_item fd.num is exist - process it [10:52:06]SAM_PROTO_GetFieldsCounters [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 13 00 00 [10:52:06]Write to MH i2c: E2 08 00 A2 5D 80 13 00 00 00 00 00 00 7B [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 62 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 62 00 A2 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [10:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:06]wFMCommunicate OK [10:52:06]SAM_PROTO_GetFieldsCounters done [10:52:06]requested_item shift.num is exist - process it [10:52:06]requested_item shift.opened is exist - process it [10:52:06]req_shift_opened [10:52:06]FM_GetShiftState [10:52:06]SAM_PROTO_GetShiftState [10:52:06]wFMCommunicate request_size=4 [10:52:06]MH_SAM_APDU [10:52:06]CAPDU: 80 13 01 00 [10:52:06]Write to MH i2c: E2 08 00 A3 5D 80 13 01 00 00 00 00 00 7D [10:52:06]Write i2c OK [10:52:06]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0E 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0E 00 A3 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BE [10:52:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:52:06]wFMCommunicate OK [10:52:06]SAM_PROTO_GetShiftState done [10:52:06]FM_GetShiftState done [10:52:06]req_shift_opened done [10:52:06]requested_item shift.open_date is exist - process it [10:52:06]req_shift_open_date [10:52:06]req_shift_open_date done [10:52:06]produce_requested_data done [10:52:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192073,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:52:06]process_action_free close_receipt [10:52:06]json_value_free [10:52:06]json_value_free done [10:52:06]process_json_proto returns [10:52:06]Send response to host [10:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192073,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:52:06]free response buf [10:52:06]execute_script done [10:52:06]execute_script returns [10:52:06]free content buf [10:52:06]Sock 6.Close socket [10:52:06]Sock 6.Thread stoped [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:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:14]accept exits with 5 [10:53:14]New connection [10:53:14]New thread 3066817892 created [10:53:14]Thread 3066961252 joined [10:53:14]Waiting for new connection... [10:53:14] Sock 5.Parse request [10:53:14]Sock 5.Check first char [10:53:14]Sock 5.First char is OK [10:53:14]request: POST /json_proto HTTP/1.0 [10:53:14]Method: POST [10:53:14]URL: /json_proto [10:53:14]Method is POST - this is cgi request [10:53:14]url: /json_proto [10:53:14]query_string will be loaded in cgi processing [10:53:14]execute_cgi json_proto POST (null) [10:53:14]execute_cgi path=json_proto method=POST [10:53:14]POST find Content-Length [10:53:14]Host: 172.17.63.131:8080 [10:53:14]Content-Length: 676 [10:53:14]Content-Type: application/json [10:53:14] [10:53:14]POST finish read [10:53:14]Found Content-Length = 676 [10:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:14]execute_script... [10:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:14]POST & json_proto [10:53:14]process_json_proto [10:53:14]json parsed OK: [10:53:14]protocol is kg_v1.0 [10:53:14]action value=close_receipt [10:53:14]process_action close_receipt [10:53:14]cmd_close_receipt [10:53:14]MH_GetDate [10:53:14]Write to MH i2c: F0 00 00 A4 5D F0 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 09 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: F0 09 00 A4 5D 00 AE 1B 1E 67 22 05 6E 64 40 [10:53:14]GetLastDocTimeStamp 1730026342 [10:53:14]current date 1730026414 [10:53:14]FM_GetShiftState [10:53:14]SAM_PROTO_GetShiftState [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 01 00 [10:53:14]Write to MH i2c: E2 08 00 A5 5D 80 13 01 00 00 00 00 00 7F [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 A5 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [10:53:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetShiftState done [10:53:14]FM_GetShiftState done [10:53:14]opened in 1729989159 [10:53:14]opened+sec_in_day 1730075559 [10:53:14]quantity*price = 60009 [10:53:14]sum+1 = 60010 [10:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 106 27.10.2024 10:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192074 ФПД: 245285022188471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192074&fm=245285022188471&tin=02508201610067®Number=0000000000091776&sum=60000 [10:53:15]StoreToDocumentArchive [10:53:15]shift 542 fd 192074 [10:53:15]save to /storage/0542/doc_00192074 [10:53:15]save last doc name /storage/0542/doc_00192074 to /storage/kkm_last_doc_name [10:53:15]save OK [10:53:15]Clear old archive folders... [10:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:15]tlvbuf is 01A50710 [10:53:15]SAM_PROTO_ClearQueue [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 09 00 00 [10:53:15]Write to MH i2c: E2 08 00 B2 5D 80 09 00 00 00 00 00 00 81 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 B2 5D 00 90 00 83 [10:53:16]RAPDU: 90 00 [10:53:16]wFMCommunicate OK [10:53:16]SAM_PROTO_ClearQueue done [10:53:16]KKMCreateOFDPacket [10:53:16]OFDProtocolAddRootSTLVToBuf [10:53:16]FM_MakeSignedData [10:53:16]FM_MakeSignedData [10:53:16]SAM_PROTO_SignData [10:53:16]wFMCommunicate request_size=4 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 0D 01 02 [10:53:16]Write to MH i2c: E2 08 00 B3 5D 80 0D 01 02 00 00 00 00 89 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 B3 5D 00 90 00 84 [10:53:16]RAPDU: 90 00 [10:53:16]wFMCommunicate OK [10:53:16]wFMCommunicate request_size=255 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AE 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EE 02 00 35 04 06 00 DF [10:53:16]Write to MH i2c: E2 02 01 B4 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AE 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EE 02 00 35 04 06 00 DF 00 00 EB [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 B4 5D 00 90 00 85 [10:53:16]RAPDU: 90 00 [10:53:16]wFMCommunicate OK [10:53:16]wFMCommunicate request_size=10 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 0D 02 02 05 15 DE 9D C3 B7 [10:53:16]Write to MH i2c: E2 0D 00 B5 5D 80 0D 02 02 05 00 15 DE 9D C3 B7 00 00 A0 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 03 00 B5 5D 00 90 00 86 [10:53:16]RAPDU: 90 00 [10:53:16]wFMCommunicate OK [10:53:16]wFMCommunicate request_size=4 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 0D 03 02 [10:53:16]Write to MH i2c: E2 08 00 B6 5D 80 0D 03 02 00 00 00 00 8E [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 0B 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 0B 00 B6 5D 00 DD EC E8 8F 0F EC FA 3E 90 00 02 [10:53:16]RAPDU: DD EC E8 8F 0F EC FA 3E 90 00 [10:53:16]wFMCommunicate OK [10:53:16]SAM_PROTO_SignData done [10:53:16]FM_MakeSignedData done [10:53:16]CreateOFDProtocolMessage [10:53:16]wFMCommunicate request_size=4 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 11 00 00 [10:53:16]Write to MH i2c: E2 08 00 B7 5D 80 11 00 00 00 00 00 00 8E [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 17 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 17 00 B7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [10:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:16]wFMCommunicate OK [10:53:16]CreateOFDProtocolMessage done [10:53:16]OFDSenderStorePacket 192074 [10:53:16]StoreOFDPacket docnum=192074 [10:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 01 07 01 70 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AE 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EE 02 00 35 04 06 00 DF 15 DE 9D C3 B7 DD EC E8 8F 0F EC FA 3E [10:53:16]CheckFolder [10:53:16]dirname=/storage/ofd_packets [10:53:16]CheckFolder done [10:53:16]ProducePacketName [10:53:16]name=ofd_packets/00192074 [10:53:16]NVStorageSaveData ofd_packets/00192074 [10:53:16]File name is /storage/ofd_packets/00192074 [10:53:16]Write 301 bytes [10:53:16]NVStorageSaveData done [10:53:16]OFDSenderStorePacket done [10:53:16]KKMCreateOFDPacket done [10:53:16]NVStorageSaveData kkm_last_timestamp [10:53:16]File name is /storage/kkm_last_timestamp [10:53:16]Write 4 bytes [10:53:16]NVStorageSaveData done [10:53:16]ExternCall_PrintAddStr [10:53:16]wPrintStart [10:53:16]Write to MH i2c: 01 00 00 B8 5D 15 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 B8 5D 00 00 00 00 00 FF 0F 2A [10:53:16]RasterBufferAndPrint [10:53:16]line Счет N : (1)31384 [10:53:16]line ИНН: 02508201610067 [10:53:16]line Контрольно-Кассовый Чек [10:53:16]line ПРОДАЖА [10:53:16]line ТРК (МРК, ГНК) : 21 [10:53:16]line Товар: 2710124130 [10:53:16]line Аи-92-К-5 [10:53:16]line 8.970 * 66.90 [10:53:16]line = 600.09 [10:53:16]line НДС 12% НСП 1% [10:53:16]line > о реализуемом товаре [10:53:16]line ОКРУГЛЕНИЕ: -0.09 [10:53:16]line ИТОГО: 600.00 [10:53:16]line Внесено: 600.00 [10:53:16]line СДАЧА: 0.00 [10:53:16]line НСП 1% : 5.31 [10:53:16]line НДС 12% : 63.73 [10:53:16]line Наличными: 600.00 [10:53:16]line Безнал.: 0.00 [10:53:16]line Место: АЗС № 170 "Партнер Нефть" [10:53:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:53:16]line СНО: Общий режим [10:53:16]line Чек 106 27.10.2024 10:53 [10:53:16]line Смена: 542 ФФД: 1.0 [10:53:16]line ЗНМ: 0300000110 [10:53:16]line РНМ: 0000000000091776 [10:53:16]line Версия ККМ: 001 [10:53:16]line ФМ: 0000000000871754 [10:53:16]line ФД: 192074 [10:53:16]line ФПД: 245285022188471 [10:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192074&fm=245285022188471&tin=02508201610067®Number=0000000000091776&sum=60000 [10:53:16]OFD Sender: Processing packet 192074 [packets to send 75, broken 74] [10:53:16]ProducePacketName [10:53:16]name=ofd_packets/00192074 [10:53:16]OFD Sender: To server: pG, [10:53:16]CommunicateWithHost lk.salyk.kg:30040 [10:53:16]ConnectInit lk.salyk.kg [10:53:16]written 0, free lines is 4095 [10:53:16]Connected sock=8 [10:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 01 07 01 70 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AE 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EE 02 00 35 04 06 00 DF 15 DE 9D C3 B7 DD EC E8 8F 0F EC FA 3E [10:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D9 CF 47 00 EB 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EE 02 00 F4 03 04 00 76 C0 1D 67 B6 04 01 00 00 E3 B7 7F 44 8F B3 14 F1 [10:53:17]CommunicateWithHost err = 0 [10:53:17]CheckOFDResponse [10:53:17]1017 (14) - 77093643461234 [10:53:17]1041 (16) - 0000000000871754 [10:53:17]1040 (4) - 192074 [10:53:17]1012 (4) - 27.10.2024 04:24 [10:53:17]1206 (1) - 0 [10:53:17]OFD Sender: Remove packet 192074 [10:53:17]ProducePacketName [10:53:17]name=ofd_packets/00192074 [10:53:17]NVStorageDeleteData [10:53:17]Write to MH i2c: 01 00 00 E3 5D 40 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 E3 5D 00 00 00 00 00 AF 0C 02 [10:53:17]RasterBufferAndPrint [10:53:17]line [10:53:17]line [10:53:17]line [10:53:17]line [10:53:17]line [10:53:17]written 0, free lines is 3253 [10:53:17]MH_Cut [10:53:17]Write to MH i2c: D1 01 00 EA 5D 01 19 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: D1 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: D1 01 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: D1 01 00 EA 5D 00 18 [10:53:17]Write to MH i2c: 01 00 00 EB 5D 48 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]OFD Sender: No OFD packet to send [10:53:18]*** Cut start [10:53:18]*** Partial cut [10:53:18]*** CUTSNS_PIN = 1 [10:53:18]*** CUTSNS_PIN = 0 [10:53:18]*** Brake cut motor [10:53:18]Read from MH i2c: 01 [10:53:18]MH_I2C_Read... [10:53:18]*** Stop cut motor [10:53:18]*** Cut end [10:53:18]Read from MH i2c: 01 07 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 07 00 EB 5D 00 00 00 00 00 FF 0F 5D [10:53:18]process_action close_receipt done [10:53:18]requested_data is exist [10:53:18]produce_requested_data [10:53:18]requested_item fm.sn is exist - process it [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 11 00 00 [10:53:18]Write to MH i2c: E2 08 00 EC 5D 80 11 00 00 00 00 00 00 C3 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 17 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 17 00 EC 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [10:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:18]wFMCommunicate OK [10:53:18]requested_item fd.num is exist - process it [10:53:18]SAM_PROTO_GetFieldsCounters [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 13 00 00 [10:53:18]Write to MH i2c: E2 08 00 ED 5D 80 13 00 00 00 00 00 00 C6 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 62 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 62 00 ED 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_GetFieldsCounters done [10:53:18]requested_item shift.num is exist - process it [10:53:18]requested_item shift.opened is exist - process it [10:53:18]req_shift_opened [10:53:18]FM_GetShiftState [10:53:18]SAM_PROTO_GetShiftState [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 13 01 00 [10:53:18]Write to MH i2c: E2 08 00 EE 5D 80 13 01 00 00 00 00 00 C8 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 EE 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 09 [10:53:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_GetShiftState done [10:53:18]FM_GetShiftState done [10:53:18]req_shift_opened done [10:53:18]requested_item shift.open_date is exist - process it [10:53:18]req_shift_open_date [10:53:18]req_shift_open_date done [10:53:18]produce_requested_data done [10:53:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192074,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:53:18]process_action_free close_receipt [10:53:18]json_value_free [10:53:18]json_value_free done [10:53:18]process_json_proto returns [10:53:18]Send response to host [10:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192074,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:53:18]free response buf [10:53:18]execute_script done [10:53:18]execute_script returns [10:53:18]free content buf [10:53:18]Sock 5.Close socket [10:53:18]Sock 5.Thread stoped [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:42]accept exits with 6 [10:53:42]New connection [10:53:42]New thread 3066961252 created [10:53:42]Thread 3066817892 joined [10:53:42]Waiting for new connection... [10:53:42] Sock 6.Parse request [10:53:42]Sock 6.Check first char [10:53:42]Sock 6.First char is OK [10:53:42]request: POST /json_proto HTTP/1.0 [10:53:42]Method: POST [10:53:42]URL: /json_proto [10:53:42]Method is POST - this is cgi request [10:53:42]url: /json_proto [10:53:42]query_string will be loaded in cgi processing [10:53:42]execute_cgi json_proto POST (null) [10:53:42]execute_cgi path=json_proto method=POST [10:53:42]POST find Content-Length [10:53:42]Host: 172.17.63.131:8080 [10:53:42]Content-Length: 676 [10:53:42]Content-Type: application/json [10:53:42] [10:53:42]POST finish read [10:53:42]Found Content-Length = 676 [10:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:42]execute_script... [10:53:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:42]POST & json_proto [10:53:42]process_json_proto [10:53:42]json parsed OK: [10:53:42]protocol is kg_v1.0 [10:53:42]action value=close_receipt [10:53:42]process_action close_receipt [10:53:42]cmd_close_receipt [10:53:42]MH_GetDate [10:53:42]Write to MH i2c: F0 00 00 EF 5D 3B [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 09 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: F0 09 00 EF 5D 00 CA 1B 1E 67 22 05 6E 64 A7 [10:53:42]GetLastDocTimeStamp 1730026414 [10:53:42]current date 1730026442 [10:53:42]FM_GetShiftState [10:53:42]SAM_PROTO_GetShiftState [10:53:42]wFMCommunicate request_size=4 [10:53:42]MH_SAM_APDU [10:53:42]CAPDU: 80 13 01 00 [10:53:42]Write to MH i2c: E2 08 00 F0 5D 80 13 01 00 00 00 00 00 CA [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:42]Read from MH i2c: E2 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: E2 0E 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: E2 0E 00 F0 5D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [10:53:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:53:42]wFMCommunicate OK [10:53:42]SAM_PROTO_GetShiftState done [10:53:42]FM_GetShiftState done [10:53:42]opened in 1729989159 [10:53:42]opened+sec_in_day 1730075559 [10:53:42]quantity*price = 50041 [10:53:42]sum+1 = 50042 [10:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 107 27.10.2024 10:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192075 ФПД: 157018552107337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192075&fm=157018552107337&tin=02508201610067®Number=0000000000091776&sum=50000 [10:53:43]StoreToDocumentArchive [10:53:43]shift 542 fd 192075 [10:53:43]save to /storage/0542/doc_00192075 [10:53:43]save last doc name /storage/0542/doc_00192075 to /storage/kkm_last_doc_name [10:53:43]save OK [10:53:43]Clear old archive folders... [10:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:43]tlvbuf is 015C8AA0 [10:53:43]SAM_PROTO_ClearQueue [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 09 00 00 [10:53:43]Write to MH i2c: E2 08 00 FD 5D 80 09 00 00 00 00 00 00 CC [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 FD 5D 00 90 00 CE [10:53:43]RAPDU: 90 00 [10:53:43]wFMCommunicate OK [10:53:43]SAM_PROTO_ClearQueue done [10:53:43]KKMCreateOFDPacket [10:53:43]OFDProtocolAddRootSTLVToBuf [10:53:43]FM_MakeSignedData [10:53:43]FM_MakeSignedData [10:53:43]SAM_PROTO_SignData [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 0D 01 02 [10:53:43]Write to MH i2c: E2 08 00 FE 5D 80 0D 01 02 00 00 00 00 D4 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 03 00 FE 5D 00 90 00 CF [10:53:43]RAPDU: 90 00 [10:53:43]wFMCommunicate OK [10:53:43]wFMCommunicate request_size=255 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EE 02 00 35 04 06 00 8E [10:53:43]Write to MH i2c: E2 02 01 FF 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EE 02 00 35 04 06 00 8E 00 00 26 [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 FF 5D 00 90 00 D0 [10:53:44]RAPDU: 90 00 [10:53:44]wFMCommunicate OK [10:53:44]wFMCommunicate request_size=10 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 0D 02 02 05 CE BB 05 81 49 [10:53:44]Write to MH i2c: E2 0D 00 00 5E 80 0D 02 02 05 00 CE BB 05 81 49 00 00 3A [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 03 00 00 5E 00 90 00 D2 [10:53:44]RAPDU: 90 00 [10:53:44]wFMCommunicate OK [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 0D 03 02 [10:53:44]Write to MH i2c: E2 08 00 01 5E 80 0D 03 02 00 00 00 00 DA [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0B 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0B 00 01 5E 00 2F 05 24 2A 72 62 03 40 90 00 74 [10:53:44]RAPDU: 2F 05 24 2A 72 62 03 40 90 00 [10:53:44]wFMCommunicate OK [10:53:44]SAM_PROTO_SignData done [10:53:44]FM_MakeSignedData done [10:53:44]CreateOFDProtocolMessage [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 11 00 00 [10:53:44]Write to MH i2c: E2 08 00 02 5E 80 11 00 00 00 00 00 00 DA [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 02 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [10:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:44]wFMCommunicate OK [10:53:44]CreateOFDProtocolMessage done [10:53:44]OFDSenderStorePacket 192075 [10:53:44]StoreOFDPacket docnum=192075 [10:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 15 07 01 C6 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EE 02 00 35 04 06 00 8E CE BB 05 81 49 2F 05 24 2A 72 62 03 40 [10:53:44]CheckFolder [10:53:44]dirname=/storage/ofd_packets [10:53:44]CheckFolder done [10:53:44]ProducePacketName [10:53:44]name=ofd_packets/00192075 [10:53:44]NVStorageSaveData ofd_packets/00192075 [10:53:44]File name is /storage/ofd_packets/00192075 [10:53:44]Write 301 bytes [10:53:44]NVStorageSaveData done [10:53:44]OFDSenderStorePacket done [10:53:44]KKMCreateOFDPacket done [10:53:44]NVStorageSaveData kkm_last_timestamp [10:53:44]File name is /storage/kkm_last_timestamp [10:53:44]Write 4 bytes [10:53:44]NVStorageSaveData done [10:53:44]ExternCall_PrintAddStr [10:53:44]wPrintStart [10:53:44]Write to MH i2c: 01 00 00 03 5E 61 [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 07 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: 01 07 00 03 5E 00 00 00 00 00 FF 0F 76 [10:53:44]RasterBufferAndPrint [10:53:44]line Счет N : (1)31385 [10:53:44]line ИНН: 02508201610067 [10:53:44]line Контрольно-Кассовый Чек [10:53:44]line ПРОДАЖА [10:53:44]line ТРК (МРК, ГНК) : 12 [10:53:44]line Товар: 2710124130 [10:53:44]line Аи-92-К-5 [10:53:44]line 7.480 * 66.90 [10:53:44]line = 500.41 [10:53:44]line НДС 12% НСП 1% [10:53:44]line > о реализуемом товаре [10:53:44]line ОКРУГЛЕНИЕ: -0.41 [10:53:44]line ИТОГО: 500.00 [10:53:44]line Внесено: 500.00 [10:53:44]line СДАЧА: 0.00 [10:53:44]line НСП 1% : 4.43 [10:53:44]line НДС 12% : 53.14 [10:53:44]line Наличными: 500.00 [10:53:44]line Безнал.: 0.00 [10:53:44]line Место: АЗС № 170 "Партнер Нефть" [10:53:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:53:44]line СНО: Общий режим [10:53:44]line Чек 107 27.10.2024 10:54 [10:53:44]line Смена: 542 ФФД: 1.0 [10:53:44]line ЗНМ: 0300000110 [10:53:44]line РНМ: 0000000000091776 [10:53:44]line Версия ККМ: 001 [10:53:44]line ФМ: 0000000000871754 [10:53:44]line ФД: 192075 [10:53:44]line ФПД: 157018552107337 [10:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192075&fm=157018552107337&tin=02508201610067®Number=0000000000091776&sum=50000 [10:53:44]OFD Sender: Processing packet 192075 [packets to send 75, broken 74] [10:53:44]ProducePacketName [10:53:44]name=ofd_packets/00192075 [10:53:44]OFD Sender: To server: pG, [10:53:44]CommunicateWithHost lk.salyk.kg:30040 [10:53:44]ConnectInit lk.salyk.kg [10:53:44]written 0, free lines is 4095 [10:53:44]Connected sock=8 [10:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 15 07 01 C6 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 1B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EE 02 00 35 04 06 00 8E CE BB 05 81 49 2F 05 24 2A 72 62 03 40 [10:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 25 47 00 0C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EE 02 00 F4 03 04 00 92 C0 1D 67 B6 04 01 00 00 48 79 D1 82 38 FD CF 6D [10:53:45]CommunicateWithHost err = 0 [10:53:45]CheckOFDResponse [10:53:45]1017 (14) - 77093643461234 [10:53:45]1041 (16) - 0000000000871754 [10:53:45]1040 (4) - 192075 [10:53:45]1012 (4) - 27.10.2024 04:24 [10:53:45]1206 (1) - 0 [10:53:45]OFD Sender: Remove packet 192075 [10:53:45]ProducePacketName [10:53:45]name=ofd_packets/00192075 [10:53:45]NVStorageDeleteData [10:53:45]Write to MH i2c: 01 00 00 2E 5E 8C [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 07 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: 01 07 00 2E 5E 00 00 00 00 00 B0 0C 4F [10:53:45]RasterBufferAndPrint [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]line [10:53:45]written 0, free lines is 3255 [10:53:45]MH_Cut [10:53:45]Write to MH i2c: D1 01 00 35 5E 01 65 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 01 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: D1 01 00 35 5E 00 64 [10:53:45]Write to MH i2c: 01 00 00 36 5E 94 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]OFD Sender: No OFD packet to send [10:53:46]*** Cut start [10:53:46]*** Partial cut [10:53:46]*** CUTSNS_PIN = 1 [10:53:46]*** CUTSNS_PIN = 0 [10:53:46]*** Brake cut motor [10:53:46]Read from MH i2c: 01 [10:53:46]MH_I2C_Read... [10:53:46]*** Stop cut motor [10:53:46]*** Cut end [10:53:46]Read from MH i2c: 01 07 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 36 5E 00 00 00 00 00 FF 0F A9 [10:53:46]process_action close_receipt done [10:53:46]requested_data is exist [10:53:46]produce_requested_data [10:53:46]requested_item fm.sn is exist - process it [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 11 00 00 [10:53:46]Write to MH i2c: E2 08 00 37 5E 80 11 00 00 00 00 00 00 0F [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 37 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [10:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:46]wFMCommunicate OK [10:53:46]requested_item fd.num is exist - process it [10:53:46]SAM_PROTO_GetFieldsCounters [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 00 00 [10:53:46]Write to MH i2c: E2 08 00 38 5E 80 13 00 00 00 00 00 00 12 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 62 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 62 00 38 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetFieldsCounters done [10:53:46]requested_item shift.num is exist - process it [10:53:46]requested_item shift.opened is exist - process it [10:53:46]req_shift_opened [10:53:46]FM_GetShiftState [10:53:46]SAM_PROTO_GetShiftState [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 01 00 [10:53:46]Write to MH i2c: E2 08 00 39 5E 80 13 01 00 00 00 00 00 14 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 39 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [10:53:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetShiftState done [10:53:46]FM_GetShiftState done [10:53:46]req_shift_opened done [10:53:46]requested_item shift.open_date is exist - process it [10:53:46]req_shift_open_date [10:53:46]req_shift_open_date done [10:53:46]produce_requested_data done [10:53:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192075,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:53:46]process_action_free close_receipt [10:53:46]json_value_free [10:53:46]json_value_free done [10:53:46]process_json_proto returns [10:53:46]Send response to host [10:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192075,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:53:46]free response buf [10:53:46]execute_script done [10:53:46]execute_script returns [10:53:46]free content buf [10:53:46]Sock 6.Close socket [10:53:46]Sock 6.Thread stoped [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:04]accept exits with 5 [10:55:04]New connection [10:55:04]New thread 3066817892 created [10:55:04]Thread 3066961252 joined [10:55:04]Waiting for new connection... [10:55:04] Sock 5.Parse request [10:55:04]Sock 5.Check first char [10:55:04]Sock 5.First char is OK [10:55:04]request: POST /json_proto HTTP/1.0 [10:55:04]Method: POST [10:55:04]URL: /json_proto [10:55:04]Method is POST - this is cgi request [10:55:04]url: /json_proto [10:55:04]query_string will be loaded in cgi processing [10:55:04]execute_cgi json_proto POST (null) [10:55:04]execute_cgi path=json_proto method=POST [10:55:04]POST find Content-Length [10:55:04]Host: 172.17.63.131:8080 [10:55:04]Content-Length: 677 [10:55:04]Content-Type: application/json [10:55:04] [10:55:04]POST finish read [10:55:04]Found Content-Length = 677 [10:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:04]execute_script... [10:55: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)31386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:04]POST & json_proto [10:55:04]process_json_proto [10:55:04]json parsed OK: [10:55:04]protocol is kg_v1.0 [10:55:04]action value=close_receipt [10:55:04]process_action close_receipt [10:55:04]cmd_close_receipt [10:55:04]MH_GetDate [10:55:04]Write to MH i2c: F0 00 00 3A 5E 87 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 3A 5E 00 1C 1C 1E 67 22 05 6E 64 46 [10:55:04]GetLastDocTimeStamp 1730026442 [10:55:04]current date 1730026524 [10:55:04]FM_GetShiftState [10:55:04]SAM_PROTO_GetShiftState [10:55:04]wFMCommunicate request_size=4 [10:55:04]MH_SAM_APDU [10:55:04]CAPDU: 80 13 01 00 [10:55:04]Write to MH i2c: E2 08 00 3B 5E 80 13 01 00 00 00 00 00 16 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:04]Read from MH i2c: E2 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 3B 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [10:55:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:55:04]wFMCommunicate OK [10:55:04]SAM_PROTO_GetShiftState done [10:55:04]FM_GetShiftState done [10:55:04]opened in 1729989159 [10:55:04]opened+sec_in_day 1730075559 [10:55:04]quantity*price = 70044 [10:55:04]sum+1 = 70045 [10:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 108 27.10.2024 10:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192076 ФПД: 242905408088958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192076&fm=242905408088958&tin=02508201610067®Number=0000000000091776&sum=70000 [10:55:05]StoreToDocumentArchive [10:55:05]shift 542 fd 192076 [10:55:05]save to /storage/0542/doc_00192076 [10:55:05]save last doc name /storage/0542/doc_00192076 to /storage/kkm_last_doc_name [10:55:05]save OK [10:55:05]Clear old archive folders... [10:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:05]tlvbuf is 01B4D1B0 [10:55:05]SAM_PROTO_ClearQueue [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 09 00 00 [10:55:05]Write to MH i2c: E2 08 00 48 5E 80 09 00 00 00 00 00 00 18 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:05]Read from MH i2c: E2 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 48 5E 00 90 00 1A [10:55:05]RAPDU: 90 00 [10:55:05]wFMCommunicate OK [10:55:05]SAM_PROTO_ClearQueue done [10:55:05]KKMCreateOFDPacket [10:55:05]OFDProtocolAddRootSTLVToBuf [10:55:05]FM_MakeSignedData [10:55:05]FM_MakeSignedData [10:55:05]SAM_PROTO_SignData [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 0D 01 02 [10:55:05]Write to MH i2c: E2 08 00 49 5E 80 0D 01 02 00 00 00 00 20 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:05]Read from MH i2c: E2 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 49 5E 00 90 00 1B [10:55:05]RAPDU: 90 00 [10:55:05]wFMCommunicate OK [10:55:05]wFMCommunicate request_size=255 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 1C 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EE 02 00 35 04 06 00 DC [10:55:05]Write to MH i2c: E2 02 01 4A 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 1C 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EE 02 00 35 04 06 00 DC 00 00 25 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 4A 5E 00 90 00 1C [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=10 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 02 02 05 EB D2 90 2B 7E [10:55:06]Write to MH i2c: E2 0D 00 4B 5E 80 0D 02 02 05 00 EB D2 90 2B 7E 00 00 23 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 4B 5E 00 90 00 1D [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 03 02 [10:55:06]Write to MH i2c: E2 08 00 4C 5E 80 0D 03 02 00 00 00 00 25 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 4C 5E 00 6E 53 7F CC E7 49 33 A0 90 00 35 [10:55:06]RAPDU: 6E 53 7F CC E7 49 33 A0 90 00 [10:55:06]wFMCommunicate OK [10:55:06]SAM_PROTO_SignData done [10:55:06]FM_MakeSignedData done [10:55:06]CreateOFDProtocolMessage [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 11 00 00 [10:55:06]Write to MH i2c: E2 08 00 4D 5E 80 11 00 00 00 00 00 00 25 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 4D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [10:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:55:06]wFMCommunicate OK [10:55:06]CreateOFDProtocolMessage done [10:55:06]OFDSenderStorePacket 192076 [10:55:06]StoreOFDPacket docnum=192076 [10:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 1E 07 01 F1 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 1C 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EE 02 00 35 04 06 00 DC EB D2 90 2B 7E 6E 53 7F CC E7 49 33 A0 [10:55:06]CheckFolder [10:55:06]dirname=/storage/ofd_packets [10:55:06]CheckFolder done [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00192076 [10:55:06]NVStorageSaveData ofd_packets/00192076 [10:55:06]File name is /storage/ofd_packets/00192076 [10:55:06]Write 301 bytes [10:55:06]NVStorageSaveData done [10:55:06]OFDSenderStorePacket done [10:55:06]KKMCreateOFDPacket done [10:55:06]NVStorageSaveData kkm_last_timestamp [10:55:06]File name is /storage/kkm_last_timestamp [10:55:06]Write 4 bytes [10:55:06]NVStorageSaveData done [10:55:06]ExternCall_PrintAddStr [10:55:06]wPrintStart [10:55:06]Write to MH i2c: 01 00 00 4E 5E AC [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 4E 5E 00 00 00 00 00 FF 0F C1 [10:55:06]RasterBufferAndPrint [10:55:06]line Счет N : (1)31386 [10:55:06]line ИНН: 02508201610067 [10:55:06]line Контрольно-Кассовый Чек [10:55:06]line ПРОДАЖА [10:55:06]line ТРК (МРК, ГНК) : 12 [10:55:06]line Товар: 2710124130 [10:55:06]line Аи-92-К-5 [10:55:06]line 10.470 * 66.90 [10:55:06]line = 700.44 [10:55:06]line НДС 12% НСП 1% [10:55:06]line > о реализуемом товаре [10:55:06]line ОКРУГЛЕНИЕ: -0.44 [10:55:06]line ИТОГО: 700.00 [10:55:06]line Внесено: 700.00 [10:55:06]line СДАЧА: 0.00 [10:55:06]line НСП 1% : 6.20 [10:55:06]line НДС 12% : 74.38 [10:55:06]line Наличными: 700.00 [10:55:06]line Безнал.: 0.00 [10:55:06]line Место: АЗС № 170 "Партнер Нефть" [10:55:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:55:06]line СНО: Общий режим [10:55:06]line Чек 108 27.10.2024 10:55 [10:55:06]line Смена: 542 ФФД: 1.0 [10:55:06]line ЗНМ: 0300000110 [10:55:06]line РНМ: 0000000000091776 [10:55:06]line Версия ККМ: 001 [10:55:06]line ФМ: 0000000000871754 [10:55:06]line ФД: 192076 [10:55:06]line ФПД: 242905408088958 [10:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192076&fm=242905408088958&tin=02508201610067®Number=0000000000091776&sum=70000 [10:55:06]OFD Sender: Processing packet 192076 [packets to send 75, broken 74] [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00192076 [10:55:06]OFD Sender: To server: pG, [10:55:06]CommunicateWithHost lk.salyk.kg:30040 [10:55:06]ConnectInit lk.salyk.kg [10:55:06]written 0, free lines is 4095 [10:55:06]Connected sock=8 [10:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 1E 07 01 F1 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 1C 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EE 02 00 35 04 06 00 DC EB D2 90 2B 7E 6E 53 7F CC E7 49 33 A0 [10:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 22 47 00 0C 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EE 02 00 F4 03 04 00 E4 C0 1D 67 B6 04 01 00 00 B4 25 6E 43 2D 12 65 F5 [10:55:06]CommunicateWithHost err = 0 [10:55:06]CheckOFDResponse [10:55:06]1017 (14) - 77093643461234 [10:55:06]1041 (16) - 0000000000871754 [10:55:06]1040 (4) - 192076 [10:55:06]1012 (4) - 27.10.2024 04:26 [10:55:06]1206 (1) - 0 [10:55:06]OFD Sender: Remove packet 192076 [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00192076 [10:55:06]NVStorageDeleteData [10:55:07]Write to MH i2c: 01 00 00 79 5E D7 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 79 5E 00 00 00 00 00 B7 0C A1 [10:55:07]RasterBufferAndPrint [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]written 0, free lines is 3262 [10:55:07]MH_Cut [10:55:07]Write to MH i2c: D1 01 00 80 5E 01 B0 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 80 5E 00 AF [10:55:07]Write to MH i2c: 01 00 00 81 5E DF [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]OFD Sender: No OFD packet to send [10:55:07]*** Cut start [10:55:07]*** Partial cut [10:55:07]*** CUTSNS_PIN = 1 [10:55:08]*** CUTSNS_PIN = 0 [10:55:08]*** Brake cut motor [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]*** Stop cut motor [10:55:08]*** Cut end [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 81 5E 00 00 00 00 00 FF 0F F4 [10:55:08]process_action close_receipt done [10:55:08]requested_data is exist [10:55:08]produce_requested_data [10:55:08]requested_item fm.sn is exist - process it [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 82 5E 80 11 00 00 00 00 00 00 5A [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 82 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [10:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:55:08]wFMCommunicate OK [10:55:08]requested_item fd.num is exist - process it [10:55:08]SAM_PROTO_GetFieldsCounters [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 00 00 [10:55:08]Write to MH i2c: E2 08 00 83 5E 80 13 00 00 00 00 00 00 5D [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 83 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetFieldsCounters done [10:55:08]requested_item shift.num is exist - process it [10:55:08]requested_item shift.opened is exist - process it [10:55:08]req_shift_opened [10:55:08]FM_GetShiftState [10:55:08]SAM_PROTO_GetShiftState [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 01 00 [10:55:08]Write to MH i2c: E2 08 00 84 5E 80 13 01 00 00 00 00 00 5F [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 84 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A0 [10:55:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetShiftState done [10:55:08]FM_GetShiftState done [10:55:08]req_shift_opened done [10:55:08]requested_item shift.open_date is exist - process it [10:55:08]req_shift_open_date [10:55:08]req_shift_open_date done [10:55:08]produce_requested_data done [10:55:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192076,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:55:08]process_action_free close_receipt [10:55:08]json_value_free [10:55:08]json_value_free done [10:55:08]process_json_proto returns [10:55:08]Send response to host [10:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192076,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:55:08]free response buf [10:55:08]execute_script done [10:55:08]execute_script returns [10:55:08]free content buf [10:55:08]Sock 5.Close socket [10:55:08]Sock 5.Thread stoped [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:35]accept exits with 6 [10:55:35]New connection [10:55:35]New thread 3066961252 created [10:55:35]Thread 3066817892 joined [10:55:35]Waiting for new connection... [10:55:35] Sock 6.Parse request [10:55:35]Sock 6.Check first char [10:55:35]Sock 6.First char is OK [10:55:35]request: POST /json_proto HTTP/1.0 [10:55:35]Method: POST [10:55:35]URL: /json_proto [10:55:35]Method is POST - this is cgi request [10:55:35]url: /json_proto [10:55:35]query_string will be loaded in cgi processing [10:55:35]execute_cgi json_proto POST (null) [10:55:35]execute_cgi path=json_proto method=POST [10:55:35]POST find Content-Length [10:55:35]Host: 172.17.63.131:8080 [10:55:35]Content-Length: 676 [10:55:35]Content-Type: application/json [10:55:35] [10:55:35]POST finish read [10:55:35]Found Content-Length = 676 [10:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:35]execute_script... [10:55: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)31387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:35]POST & json_proto [10:55:35]process_json_proto [10:55:35]json parsed OK: [10:55:35]protocol is kg_v1.0 [10:55:35]action value=close_receipt [10:55:35]process_action close_receipt [10:55:35]cmd_close_receipt [10:55:35]MH_GetDate [10:55:35]Write to MH i2c: F0 00 00 85 5E D2 [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: F0 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: F0 09 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: F0 09 00 85 5E 00 3A 1C 1E 67 22 05 6E 64 AF [10:55:35]GetLastDocTimeStamp 1730026524 [10:55:35]current date 1730026554 [10:55:35]FM_GetShiftState [10:55:35]SAM_PROTO_GetShiftState [10:55:35]wFMCommunicate request_size=4 [10:55:35]MH_SAM_APDU [10:55:35]CAPDU: 80 13 01 00 [10:55:35]Write to MH i2c: E2 08 00 86 5E 80 13 01 00 00 00 00 00 61 [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:35]Read from MH i2c: E2 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 0E 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 0E 00 86 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [10:55:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:55:35]wFMCommunicate OK [10:55:35]SAM_PROTO_GetShiftState done [10:55:35]FM_GetShiftState done [10:55:35]opened in 1729989159 [10:55:35]opened+sec_in_day 1730075559 [10:55:35]quantity*price = 37062 [10:55:35]sum+1 = 37064 [10:55:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 109 27.10.2024 10:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192077 ФПД: 60428347877387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192077&fm=60428347877387&tin=02508201610067®Number=0000000000091776&sum=37000 [10:55:36]StoreToDocumentArchive [10:55:36]shift 542 fd 192077 [10:55:36]save to /storage/0542/doc_00192077 [10:55:36]save last doc name /storage/0542/doc_00192077 to /storage/kkm_last_doc_name [10:55:36]save OK [10:55:36]Clear old archive folders... [10:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:36]tlvbuf is 01B75BC0 [10:55:36]SAM_PROTO_ClearQueue [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 09 00 00 [10:55:36]Write to MH i2c: E2 08 00 93 5E 80 09 00 00 00 00 00 00 63 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 93 5E 00 90 00 65 [10:55:36]RAPDU: 90 00 [10:55:36]wFMCommunicate OK [10:55:36]SAM_PROTO_ClearQueue done [10:55:36]KKMCreateOFDPacket [10:55:36]OFDProtocolAddRootSTLVToBuf [10:55:36]FM_MakeSignedData [10:55:36]FM_MakeSignedData [10:55:36]SAM_PROTO_SignData [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 0D 01 02 [10:55:36]Write to MH i2c: E2 08 00 94 5E 80 0D 01 02 00 00 00 00 6B [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 94 5E 00 90 00 66 [10:55:36]RAPDU: 90 00 [10:55:36]wFMCommunicate OK [10:55:36]wFMCommunicate request_size=255 [10:55:36]MH_SAM_APDU [10:55: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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 6D 00 00 00 F4 03 04 00 3A 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EE 02 00 35 04 06 00 36 [10:55:36]Write to MH i2c: E2 02 01 95 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 6D 00 00 00 F4 03 04 00 3A 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EE 02 00 35 04 06 00 36 00 00 89 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 95 5E 00 90 00 67 [10:55:36]RAPDU: 90 00 [10:55:36]wFMCommunicate OK [10:55:36]wFMCommunicate request_size=10 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 0D 02 02 05 F5 92 35 A8 0B [10:55:36]Write to MH i2c: E2 0D 00 96 5E 80 0D 02 02 05 00 F5 92 35 A8 0B 00 00 E7 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 03 00 96 5E 00 90 00 68 [10:55:36]RAPDU: 90 00 [10:55:36]wFMCommunicate OK [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 0D 03 02 [10:55:36]Write to MH i2c: E2 08 00 97 5E 80 0D 03 02 00 00 00 00 70 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 0B 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 0B 00 97 5E 00 DF D8 E3 D9 92 0B 2E 47 90 00 F6 [10:55:36]RAPDU: DF D8 E3 D9 92 0B 2E 47 90 00 [10:55:36]wFMCommunicate OK [10:55:36]SAM_PROTO_SignData done [10:55:36]FM_MakeSignedData done [10:55:36]CreateOFDProtocolMessage [10:55:36]wFMCommunicate request_size=4 [10:55:36]MH_SAM_APDU [10:55:36]CAPDU: 80 11 00 00 [10:55:36]Write to MH i2c: E2 08 00 98 5E 80 11 00 00 00 00 00 00 70 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:36]Read from MH i2c: E2 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 17 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: E2 17 00 98 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [10:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:55:36]wFMCommunicate OK [10:55:36]CreateOFDProtocolMessage done [10:55:36]OFDSenderStorePacket 192077 [10:55:36]StoreOFDPacket docnum=192077 [10:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 B2 07 01 8B 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 6D 00 00 00 F4 03 04 00 3A 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EE 02 00 35 04 06 00 36 F5 92 35 A8 0B DF D8 E3 D9 92 0B 2E 47 [10:55:36]CheckFolder [10:55:36]dirname=/storage/ofd_packets [10:55:36]CheckFolder done [10:55:36]ProducePacketName [10:55:36]name=ofd_packets/00192077 [10:55:36]NVStorageSaveData ofd_packets/00192077 [10:55:36]File name is /storage/ofd_packets/00192077 [10:55:36]Write 301 bytes [10:55:36]NVStorageSaveData done [10:55:36]OFDSenderStorePacket done [10:55:36]KKMCreateOFDPacket done [10:55:36]NVStorageSaveData kkm_last_timestamp [10:55:36]File name is /storage/kkm_last_timestamp [10:55:36]Write 4 bytes [10:55:36]NVStorageSaveData done [10:55:36]ExternCall_PrintAddStr [10:55:36]wPrintStart [10:55:36]Write to MH i2c: 01 00 00 99 5E F7 [10:55:36]Write i2c OK [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 [10:55:36]MH_I2C_Read... [10:55:36]Read from MH i2c: 01 07 00 99 5E 00 00 00 00 00 FF 0F 0C [10:55:36]RasterBufferAndPrint [10:55:36]line Счет N : (1)31387 [10:55:36]line ИНН: 02508201610067 [10:55:36]line Контрольно-Кассовый Чек [10:55:36]line ПРОДАЖА [10:55:36]line ТРК (МРК, ГНК) : 12 [10:55:36]line Товар: 2710124130 [10:55:36]line Аи-92-К-5 [10:55:36]line 5.540 * 66.90 [10:55:36]line = 370.63 [10:55:36]line НДС 12% НСП 1% [10:55:36]line > о реализуемом товаре [10:55:36]line ОКРУГЛЕНИЕ: -0.63 [10:55:36]line ИТОГО: 370.00 [10:55:36]line Внесено: 370.00 [10:55:36]line СДАЧА: 0.00 [10:55:36]line НСП 1% : 3.28 [10:55:36]line НДС 12% : 39.36 [10:55:36]line Наличными: 370.00 [10:55:36]line Безнал.: 0.00 [10:55:36]line Место: АЗС № 170 "Партнер Нефть" [10:55:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:55:36]line СНО: Общий режим [10:55:36]line Чек 109 27.10.2024 10:55 [10:55:36]line Смена: 542 ФФД: 1.0 [10:55:36]line ЗНМ: 0300000110 [10:55:36]line РНМ: 0000000000091776 [10:55:36]line Версия ККМ: 001 [10:55:36]line ФМ: 0000000000871754 [10:55:36]line ФД: 192077 [10:55:36]line ФПД: 60428347877387 [10:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192077&fm=60428347877387&tin=02508201610067®Number=0000000000091776&sum=37000 [10:55:37]OFD Sender: Processing packet 192077 [packets to send 75, broken 74] [10:55:37]ProducePacketName [10:55:37]name=ofd_packets/00192077 [10:55:37]OFD Sender: To server: pG, [10:55:37]CommunicateWithHost lk.salyk.kg:30040 [10:55:37]ConnectInit lk.salyk.kg [10:55:37]written 0, free lines is 4095 [10:55:37]Connected sock=8 [10:55:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 B2 07 01 8B 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 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 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 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 6D 00 00 00 F4 03 04 00 3A 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EE 02 00 35 04 06 00 36 F5 92 35 A8 0B DF D8 E3 D9 92 0B 2E 47 [10:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 87 EF 47 00 16 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EE 02 00 F4 03 04 00 02 C1 1D 67 B6 04 01 00 00 CE 2F B3 18 94 A7 82 B1 [10:55:37]CommunicateWithHost err = 0 [10:55:37]CheckOFDResponse [10:55:37]1017 (14) - 77093643461234 [10:55:37]1041 (16) - 0000000000871754 [10:55:37]1040 (4) - 192077 [10:55:37]1012 (4) - 27.10.2024 04:26 [10:55:37]1206 (1) - 0 [10:55:37]OFD Sender: Remove packet 192077 [10:55:37]ProducePacketName [10:55:37]name=ofd_packets/00192077 [10:55:37]NVStorageDeleteData [10:55:37]Write to MH i2c: 01 00 00 C4 5E 22 [10:55:37]Write i2c OK [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: 01 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: 01 07 00 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: 01 07 00 C4 5E 00 00 00 00 00 AD 0C E2 [10:55:37]RasterBufferAndPrint [10:55:37]line [10:55:37]line [10:55:37]line [10:55:37]line [10:55:37]line [10:55:37]written 0, free lines is 3250 [10:55:37]MH_Cut [10:55:37]Write to MH i2c: D1 01 00 CB 5E 01 FB [10:55:37]Write i2c OK [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: D1 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: D1 01 00 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: D1 01 00 CB 5E 00 FA [10:55:37]Write to MH i2c: 01 00 00 CC 5E 2A [10:55:37]Write i2c OK [10:55:37]MH_I2C_Read... [10:55:38]OFD Sender: No OFD packet to send [10:55:38]*** Cut start [10:55:38]*** Partial cut [10:55:38]*** CUTSNS_PIN = 1 [10:55:38]*** CUTSNS_PIN = 0 [10:55:38]*** Brake cut motor [10:55:39]Read from MH i2c: 01 [10:55:39]MH_I2C_Read... [10:55:39]*** Stop cut motor [10:55:39]*** Cut end [10:55:39]Read from MH i2c: 01 07 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: 01 07 00 CC 5E 00 00 00 00 00 FF 0F 3F [10:55:39]process_action close_receipt done [10:55:39]requested_data is exist [10:55:39]produce_requested_data [10:55:39]requested_item fm.sn is exist - process it [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 11 00 00 [10:55:39]Write to MH i2c: E2 08 00 CD 5E 80 11 00 00 00 00 00 00 A5 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 CD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [10:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:55:39]wFMCommunicate OK [10:55:39]requested_item fd.num is exist - process it [10:55:39]SAM_PROTO_GetFieldsCounters [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 13 00 00 [10:55:39]Write to MH i2c: E2 08 00 CE 5E 80 13 00 00 00 00 00 00 A8 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 62 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 62 00 CE 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:55:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:39]wFMCommunicate OK [10:55:39]SAM_PROTO_GetFieldsCounters done [10:55:39]requested_item shift.num is exist - process it [10:55:39]requested_item shift.opened is exist - process it [10:55:39]req_shift_opened [10:55:39]FM_GetShiftState [10:55:39]SAM_PROTO_GetShiftState [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 13 01 00 [10:55:39]Write to MH i2c: E2 08 00 CF 5E 80 13 01 00 00 00 00 00 AA [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0E 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0E 00 CF 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EB [10:55:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:55:39]wFMCommunicate OK [10:55:39]SAM_PROTO_GetShiftState done [10:55:39]FM_GetShiftState done [10:55:39]req_shift_opened done [10:55:39]requested_item shift.open_date is exist - process it [10:55:39]req_shift_open_date [10:55:39]req_shift_open_date done [10:55:39]produce_requested_data done [10:55:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192077,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:55:39]process_action_free close_receipt [10:55:39]json_value_free [10:55:39]json_value_free done [10:55:39]process_json_proto returns [10:55:39]Send response to host [10:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192077,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:55:39]free response buf [10:55:39]execute_script done [10:55:39]execute_script returns [10:55:39]free content buf [10:55:39]Sock 6.Close socket [10:55:39]Sock 6.Thread stoped [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]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:04]accept exits with 5 [10:57:04]New connection [10:57:04]New thread 3066817892 created [10:57:04]Thread 3066961252 joined [10:57:04]Waiting for new connection... [10:57:04] Sock 5.Parse request [10:57:04]Sock 5.Check first char [10:57:04]Sock 5.First char is OK [10:57:04]request: POST /json_proto HTTP/1.0 [10:57:04]Method: POST [10:57:04]URL: /json_proto [10:57:04]Method is POST - this is cgi request [10:57:04]url: /json_proto [10:57:04]query_string will be loaded in cgi processing [10:57:04]execute_cgi json_proto POST (null) [10:57:04]execute_cgi path=json_proto method=POST [10:57:04]POST find Content-Length [10:57:04]Host: 172.17.63.131:8080 [10:57:04]Content-Length: 677 [10:57:04]Content-Type: application/json [10:57:04] [10:57:04]POST finish read [10:57:04]Found Content-Length = 677 [10:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:04]execute_script... [10:57:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:04]POST & json_proto [10:57:04]process_json_proto [10:57:04]json parsed OK: [10:57:04]protocol is kg_v1.0 [10:57:04]action value=close_receipt [10:57:04]process_action close_receipt [10:57:04]cmd_close_receipt [10:57:04]MH_GetDate [10:57:04]Write to MH i2c: F0 00 00 D0 5E 1D [10:57:04]Write i2c OK [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 09 00 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: F0 09 00 D0 5E 00 94 1C 1E 67 22 05 6E 64 54 [10:57:04]GetLastDocTimeStamp 1730026554 [10:57:04]current date 1730026644 [10:57:04]FM_GetShiftState [10:57:04]SAM_PROTO_GetShiftState [10:57:04]wFMCommunicate request_size=4 [10:57:04]MH_SAM_APDU [10:57:04]CAPDU: 80 13 01 00 [10:57:04]Write to MH i2c: E2 08 00 D1 5E 80 13 01 00 00 00 00 00 AC [10:57:04]Write i2c OK [10:57:04]MH_I2C_Read... [10:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:04]Read from MH i2c: E2 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: E2 0E 00 [10:57:04]MH_I2C_Read... [10:57:04]Read from MH i2c: E2 0E 00 D1 5E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [10:57:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:57:04]wFMCommunicate OK [10:57:04]SAM_PROTO_GetShiftState done [10:57:04]FM_GetShiftState done [10:57:04]opened in 1729989159 [10:57:04]opened+sec_in_day 1730075559 [10:57:04]quantity*price = 70044 [10:57:04]sum+1 = 70045 [10:57:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 110 27.10.2024 10:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192078 ФПД: 120809670558638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192078&fm=120809670558638&tin=02508201610067®Number=0000000000091776&sum=70000 [10:57:05]StoreToDocumentArchive [10:57:05]shift 542 fd 192078 [10:57:05]save to /storage/0542/doc_00192078 [10:57:05]save last doc name /storage/0542/doc_00192078 to /storage/kkm_last_doc_name [10:57:05]save OK [10:57:05]Clear old archive folders... [10:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:05]tlvbuf is 015C8AB0 [10:57:05]SAM_PROTO_ClearQueue [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 09 00 00 [10:57:05]Write to MH i2c: E2 08 00 DE 5E 80 09 00 00 00 00 00 00 AE [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 DE 5E 00 90 00 B0 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]SAM_PROTO_ClearQueue done [10:57:05]KKMCreateOFDPacket [10:57:05]OFDProtocolAddRootSTLVToBuf [10:57:05]FM_MakeSignedData [10:57:05]FM_MakeSignedData [10:57:05]SAM_PROTO_SignData [10:57:05]wFMCommunicate request_size=4 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 01 02 [10:57:05]Write to MH i2c: E2 08 00 DF 5E 80 0D 01 02 00 00 00 00 B6 [10:57:05]Write i2c OK [10:57:05]MH_I2C_Read... [10:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:05]Read from MH i2c: E2 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 [10:57:05]MH_I2C_Read... [10:57:05]Read from MH i2c: E2 03 00 DF 5E 00 90 00 B1 [10:57:05]RAPDU: 90 00 [10:57:05]wFMCommunicate OK [10:57:05]wFMCommunicate request_size=255 [10:57:05]MH_SAM_APDU [10:57:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EE 02 00 35 04 06 00 6D [10:57:05]Write to MH i2c: E2 02 01 E0 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EE 02 00 35 04 06 00 6D 00 00 C8 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 E0 5E 00 90 00 B2 [10:57:06]RAPDU: 90 00 [10:57:06]wFMCommunicate OK [10:57:06]wFMCommunicate request_size=10 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 0D 02 02 05 E0 31 7F C3 AE [10:57:06]Write to MH i2c: E2 0D 00 E1 5E 80 0D 02 02 05 00 E0 31 7F C3 AE 00 00 C4 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 03 00 E1 5E 00 90 00 B3 [10:57:06]RAPDU: 90 00 [10:57:06]wFMCommunicate OK [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 0D 03 02 [10:57:06]Write to MH i2c: E2 08 00 E2 5E 80 0D 03 02 00 00 00 00 BB [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0B 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0B 00 E2 5E 00 87 5E F1 2F 11 61 8F 7E 90 00 40 [10:57:06]RAPDU: 87 5E F1 2F 11 61 8F 7E 90 00 [10:57:06]wFMCommunicate OK [10:57:06]SAM_PROTO_SignData done [10:57:06]FM_MakeSignedData done [10:57:06]CreateOFDProtocolMessage [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 11 00 00 [10:57:06]Write to MH i2c: E2 08 00 E3 5E 80 11 00 00 00 00 00 00 BB [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 17 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 17 00 E3 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [10:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:06]wFMCommunicate OK [10:57:06]CreateOFDProtocolMessage done [10:57:06]OFDSenderStorePacket 192078 [10:57:06]StoreOFDPacket docnum=192078 [10:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 B8 07 01 00 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EE 02 00 35 04 06 00 6D E0 31 7F C3 AE 87 5E F1 2F 11 61 8F 7E [10:57:06]CheckFolder [10:57:06]dirname=/storage/ofd_packets [10:57:06]CheckFolder done [10:57:06]ProducePacketName [10:57:06]name=ofd_packets/00192078 [10:57:06]NVStorageSaveData ofd_packets/00192078 [10:57:06]File name is /storage/ofd_packets/00192078 [10:57:06]Write 301 bytes [10:57:06]NVStorageSaveData done [10:57:06]OFDSenderStorePacket done [10:57:06]KKMCreateOFDPacket done [10:57:06]NVStorageSaveData kkm_last_timestamp [10:57:06]File name is /storage/kkm_last_timestamp [10:57:06]Write 4 bytes [10:57:06]NVStorageSaveData done [10:57:06]ExternCall_PrintAddStr [10:57:06]wPrintStart [10:57:06]Write to MH i2c: 01 00 00 E4 5E 42 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: 01 07 00 E4 5E 00 00 00 00 00 FF 0F 57 [10:57:06]RasterBufferAndPrint [10:57:06]line Счет N : (1)31388 [10:57:06]line ИНН: 02508201610067 [10:57:06]line Контрольно-Кассовый Чек [10:57:06]line ПРОДАЖА [10:57:06]line ТРК (МРК, ГНК) : 12 [10:57:06]line Товар: 2710124130 [10:57:06]line Аи-92-К-5 [10:57:06]line 10.470 * 66.90 [10:57:06]line = 700.44 [10:57:06]line НДС 12% НСП 1% [10:57:06]line > о реализуемом товаре [10:57:06]line ОКРУГЛЕНИЕ: -0.44 [10:57:06]line ИТОГО: 700.00 [10:57:06]line Внесено: 700.00 [10:57:06]line СДАЧА: 0.00 [10:57:06]line НСП 1% : 6.20 [10:57:06]line НДС 12% : 74.38 [10:57:06]line Наличными: 700.00 [10:57:06]line Безнал.: 0.00 [10:57:06]line Место: АЗС № 170 "Партнер Нефть" [10:57:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:57:06]line СНО: Общий режим [10:57:06]line Чек 110 27.10.2024 10:57 [10:57:06]line Смена: 542 ФФД: 1.0 [10:57:06]line ЗНМ: 0300000110 [10:57:06]line РНМ: 0000000000091776 [10:57:06]line Версия ККМ: 001 [10:57:06]line ФМ: 0000000000871754 [10:57:06]line ФД: 192078 [10:57:06]line ФПД: 120809670558638 [10:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192078&fm=120809670558638&tin=02508201610067®Number=0000000000091776&sum=70000 [10:57:06]OFD Sender: Processing packet 192078 [packets to send 75, broken 74] [10:57:06]ProducePacketName [10:57:06]name=ofd_packets/00192078 [10:57:06]OFD Sender: To server: pG, [10:57:06]CommunicateWithHost lk.salyk.kg:30040 [10:57:06]ConnectInit lk.salyk.kg [10:57:06]written 0, free lines is 4095 [10:57:06]Connected sock=9 [10:57:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 B8 07 01 00 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 94 1C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EE 02 00 35 04 06 00 6D E0 31 7F C3 AE 87 5E F1 2F 11 61 8F 7E [10:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 54 47 00 98 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 37 35 34 10 04 04 00 4E EE 02 00 F4 03 04 00 5C C1 1D 67 B6 04 01 00 00 D8 C3 C6 01 45 1F E5 C5 [10:57:07]CommunicateWithHost err = 0 [10:57:07]CheckOFDResponse [10:57:07]1017 (14) - 77093643461234 [10:57:07]1041 (16) - 0000000000871754 [10:57:07]1040 (4) - 192078 [10:57:07]1012 (4) - 27.10.2024 04:28 [10:57:07]1206 (1) - 0 [10:57:07]OFD Sender: Remove packet 192078 [10:57:07]ProducePacketName [10:57:07]name=ofd_packets/00192078 [10:57:07]NVStorageDeleteData [10:57:07]Write to MH i2c: 01 00 00 0F 5F 6E [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 07 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: 01 07 00 0F 5F 00 00 00 00 00 AA 0C 2B [10:57:07]RasterBufferAndPrint [10:57:07]line [10:57:07]line [10:57:07]line [10:57:07]line [10:57:07]line [10:57:07]written 0, free lines is 3248 [10:57:07]MH_Cut [10:57:07]Write to MH i2c: D1 01 00 16 5F 01 47 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: D1 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: D1 01 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: D1 01 00 16 5F 00 46 [10:57:07]Write to MH i2c: 01 00 00 17 5F 76 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]OFD Sender: No OFD packet to send [10:57:08]*** Cut start [10:57:08]*** Partial cut [10:57:08]*** CUTSNS_PIN = 1 [10:57:08]*** CUTSNS_PIN = 0 [10:57:08]*** Brake cut motor [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]*** Stop cut motor [10:57:08]*** Cut end [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 17 5F 00 00 00 00 00 FF 0F 8B [10:57:08]process_action close_receipt done [10:57:08]requested_data is exist [10:57:08]produce_requested_data [10:57:08]requested_item fm.sn is exist - process it [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 11 00 00 [10:57:08]Write to MH i2c: E2 08 00 18 5F 80 11 00 00 00 00 00 00 F1 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 18 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [10:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:08]wFMCommunicate OK [10:57:08]requested_item fd.num is exist - process it [10:57:08]SAM_PROTO_GetFieldsCounters [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 13 00 00 [10:57:08]Write to MH i2c: E2 08 00 19 5F 80 13 00 00 00 00 00 00 F4 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 62 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 62 00 19 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_GetFieldsCounters done [10:57:08]requested_item shift.num is exist - process it [10:57:08]requested_item shift.opened is exist - process it [10:57:08]req_shift_opened [10:57:08]FM_GetShiftState [10:57:08]SAM_PROTO_GetShiftState [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 13 01 00 [10:57:08]Write to MH i2c: E2 08 00 1A 5F 80 13 01 00 00 00 00 00 F6 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 1A 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 37 [10:57:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_GetShiftState done [10:57:08]FM_GetShiftState done [10:57:08]req_shift_opened done [10:57:08]requested_item shift.open_date is exist - process it [10:57:08]req_shift_open_date [10:57:08]req_shift_open_date done [10:57:08]produce_requested_data done [10:57:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192078,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:57:08]process_action_free close_receipt [10:57:08]json_value_free [10:57:08]json_value_free done [10:57:08]process_json_proto returns [10:57:08]Send response to host [10:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192078,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:57:08]free response buf [10:57:08]execute_script done [10:57:08]execute_script returns [10:57:08]free content buf [10:57:08]Sock 5.Close socket [10:57:08]Sock 5.Thread stoped [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10: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]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:18]accept exits with 6 [10:59:18]New connection [10:59:18]New thread 3066961252 created [10:59:18]Thread 3066817892 joined [10:59:18]Waiting for new connection... [10:59:18] Sock 6.Parse request [10:59:18]Sock 6.Check first char [10:59:18]Sock 6.First char is OK [10:59:18]request: POST /json_proto HTTP/1.0 [10:59:18]Method: POST [10:59:18]URL: /json_proto [10:59:18]Method is POST - this is cgi request [10:59:18]url: /json_proto [10:59:18]query_string will be loaded in cgi processing [10:59:18]execute_cgi json_proto POST (null) [10:59:18]execute_cgi path=json_proto method=POST [10:59:18]POST find Content-Length [10:59:18]Host: 172.17.63.131:8080 [10:59:18]Content-Length: 676 [10:59:18]Content-Type: application/json [10:59:18] [10:59:18]POST finish read [10:59:18]Found Content-Length = 676 [10:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:18]execute_script... [10:59: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)31389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:18]POST & json_proto [10:59:18]process_json_proto [10:59:18]json parsed OK: [10:59:18]protocol is kg_v1.0 [10:59:18]action value=close_receipt [10:59:18]process_action close_receipt [10:59:18]cmd_close_receipt [10:59:18]MH_GetDate [10:59:18]Write to MH i2c: F0 00 00 1B 5F 69 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: F0 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: F0 09 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: F0 09 00 1B 5F 00 1A 1D 1E 67 22 05 6E 64 27 [10:59:18]GetLastDocTimeStamp 1730026644 [10:59:18]current date 1730026778 [10:59:18]FM_GetShiftState [10:59:18]SAM_PROTO_GetShiftState [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 13 01 00 [10:59:18]Write to MH i2c: E2 08 00 1C 5F 80 13 01 00 00 00 00 00 F8 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0E 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0E 00 1C 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [10:59:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_GetShiftState done [10:59:18]FM_GetShiftState done [10:59:18]opened in 1729989159 [10:59:18]opened+sec_in_day 1730075559 [10:59:18]quantity*price = 50041 [10:59:18]sum+1 = 50042 [10:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 111 27.10.2024 10:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192079 ФПД: 84116183687140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192079&fm=84116183687140&tin=02508201610067®Number=0000000000091776&sum=50000 [10:59:20]StoreToDocumentArchive [10:59:20]shift 542 fd 192079 [10:59:20]save to /storage/0542/doc_00192079 [10:59:20]save last doc name /storage/0542/doc_00192079 to /storage/kkm_last_doc_name [10:59:20]save OK [10:59:20]Clear old archive folders... [10:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:20]tlvbuf is 018CA9F0 [10:59:20]SAM_PROTO_ClearQueue [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 09 00 00 [10:59:20]Write to MH i2c: E2 08 00 29 5F 80 09 00 00 00 00 00 00 FA [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 29 5F 00 90 00 FC [10:59:20]RAPDU: 90 00 [10:59:20]wFMCommunicate OK [10:59:20]SAM_PROTO_ClearQueue done [10:59:20]KKMCreateOFDPacket [10:59:20]OFDProtocolAddRootSTLVToBuf [10:59:20]FM_MakeSignedData [10:59:20]FM_MakeSignedData [10:59:20]SAM_PROTO_SignData [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 0D 01 02 [10:59:20]Write to MH i2c: E2 08 00 2A 5F 80 0D 01 02 00 00 00 00 02 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 2A 5F 00 90 00 FD [10:59:20]RAPDU: 90 00 [10:59:20]wFMCommunicate OK [10:59:20]wFMCommunicate request_size=255 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1A 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EE 02 00 35 04 06 00 4C [10:59:20]Write to MH i2c: E2 02 01 2B 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1A 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EE 02 00 35 04 06 00 4C 00 00 6C [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 2B 5F 00 90 00 FE [10:59:20]RAPDU: 90 00 [10:59:20]wFMCommunicate OK [10:59:20]wFMCommunicate request_size=10 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 0D 02 02 05 80 D3 3F 9F E4 [10:59:20]Write to MH i2c: E2 0D 00 2C 5F 80 0D 02 02 05 00 80 D3 3F 9F E4 00 00 24 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 03 00 2C 5F 00 90 00 FF [10:59:20]RAPDU: 90 00 [10:59:20]wFMCommunicate OK [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 0D 03 02 [10:59:20]Write to MH i2c: E2 08 00 2D 5F 80 0D 03 02 00 00 00 00 07 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 0B 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 0B 00 2D 5F 00 21 48 55 9F 73 03 81 84 90 00 E0 [10:59:20]RAPDU: 21 48 55 9F 73 03 81 84 90 00 [10:59:20]wFMCommunicate OK [10:59:20]SAM_PROTO_SignData done [10:59:20]FM_MakeSignedData done [10:59:20]CreateOFDProtocolMessage [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 11 00 00 [10:59:20]Write to MH i2c: E2 08 00 2E 5F 80 11 00 00 00 00 00 00 07 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 17 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 17 00 2E 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [10:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:20]wFMCommunicate OK [10:59:20]CreateOFDProtocolMessage done [10:59:20]OFDSenderStorePacket 192079 [10:59:20]StoreOFDPacket docnum=192079 [10:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 A7 07 01 D6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1A 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EE 02 00 35 04 06 00 4C 80 D3 3F 9F E4 21 48 55 9F 73 03 81 84 [10:59:20]CheckFolder [10:59:20]dirname=/storage/ofd_packets [10:59:20]CheckFolder done [10:59:20]ProducePacketName [10:59:20]name=ofd_packets/00192079 [10:59:20]NVStorageSaveData ofd_packets/00192079 [10:59:20]File name is /storage/ofd_packets/00192079 [10:59:20]Write 301 bytes [10:59:20]NVStorageSaveData done [10:59:20]OFDSenderStorePacket done [10:59:20]KKMCreateOFDPacket done [10:59:20]NVStorageSaveData kkm_last_timestamp [10:59:20]File name is /storage/kkm_last_timestamp [10:59:20]Write 4 bytes [10:59:20]NVStorageSaveData done [10:59:20]ExternCall_PrintAddStr [10:59:20]wPrintStart [10:59:20]Write to MH i2c: 01 00 00 2F 5F 8E [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 07 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 07 00 2F 5F 00 00 00 00 00 FF 0F A3 [10:59:20]RasterBufferAndPrint [10:59:20]line Счет N : (1)31389 [10:59:20]line ИНН: 02508201610067 [10:59:20]line Контрольно-Кассовый Чек [10:59:20]line ПРОДАЖА [10:59:20]line ТРК (МРК, ГНК) : 21 [10:59:20]line Товар: 2710124130 [10:59:20]line Аи-92-К-5 [10:59:20]line 7.480 * 66.90 [10:59:20]line = 500.41 [10:59:20]line НДС 12% НСП 1% [10:59:20]line > о реализуемом товаре [10:59:20]line ОКРУГЛЕНИЕ: -0.41 [10:59:20]line ИТОГО: 500.00 [10:59:20]line Внесено: 500.00 [10:59:20]line СДАЧА: 0.00 [10:59:20]line НСП 1% : 4.43 [10:59:20]line НДС 12% : 53.14 [10:59:20]line Наличными: 500.00 [10:59:20]line Безнал.: 0.00 [10:59:20]line Место: АЗС № 170 "Партнер Нефть" [10:59:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:59:20]line СНО: Общий режим [10:59:20]line Чек 111 27.10.2024 10:59 [10:59:20]line Смена: 542 ФФД: 1.0 [10:59:20]line ЗНМ: 0300000110 [10:59:20]line РНМ: 0000000000091776 [10:59:20]line Версия ККМ: 001 [10:59:20]line ФМ: 0000000000871754 [10:59:20]line ФД: 192079 [10:59:20]line ФПД: 84116183687140 [10:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192079&fm=84116183687140&tin=02508201610067®Number=0000000000091776&sum=50000 [10:59:20]OFD Sender: Processing packet 192079 [packets to send 75, broken 74] [10:59:20]ProducePacketName [10:59:20]name=ofd_packets/00192079 [10:59:20]OFD Sender: To server: pG, [10:59:20]CommunicateWithHost lk.salyk.kg:30040 [10:59:20]ConnectInit lk.salyk.kg [10:59:20]written 0, free lines is 4095 [10:59:21]Connected sock=8 [10:59:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 A7 07 01 D6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1A 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EE 02 00 35 04 06 00 4C 80 D3 3F 9F E4 21 48 55 9F 73 03 81 84 [10:59:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 0F 47 00 97 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EE 02 00 F4 03 04 00 E2 C1 1D 67 B6 04 01 00 00 15 A6 DA AE 11 74 D7 DD [10:59:21]CommunicateWithHost err = 0 [10:59:21]CheckOFDResponse [10:59:21]1017 (14) - 77093643461234 [10:59:21]1041 (16) - 0000000000871754 [10:59:21]1040 (4) - 192079 [10:59:21]1012 (4) - 27.10.2024 04:30 [10:59:21]1206 (1) - 0 [10:59:21]OFD Sender: Remove packet 192079 [10:59:21]ProducePacketName [10:59:21]name=ofd_packets/00192079 [10:59:21]NVStorageDeleteData [10:59:21]Write to MH i2c: 01 00 00 5A 5F B9 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: 01 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: 01 07 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: 01 07 00 5A 5F 00 00 00 00 00 B5 0C 81 [10:59:21]RasterBufferAndPrint [10:59:21]line [10:59:21]line [10:59:21]line [10:59:21]line [10:59:21]line [10:59:21]written 0, free lines is 3260 [10:59:21]MH_Cut [10:59:21]Write to MH i2c: D1 01 00 61 5F 01 92 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: D1 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: D1 01 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: D1 01 00 61 5F 00 91 [10:59:21]Write to MH i2c: 01 00 00 62 5F C1 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]OFD Sender: No OFD packet to send [10:59:22]*** Cut start [10:59:22]*** Partial cut [10:59:22]*** CUTSNS_PIN = 1 [10:59:22]*** CUTSNS_PIN = 0 [10:59:22]*** Brake cut motor [10:59:22]Read from MH i2c: 01 [10:59:22]MH_I2C_Read... [10:59:22]*** Stop cut motor [10:59:22]*** Cut end [10:59:22]Read from MH i2c: 01 07 00 [10:59:22]MH_I2C_Read... [10:59:22]Read from MH i2c: 01 07 00 62 5F 00 00 00 00 00 FF 0F D6 [10:59:22]process_action close_receipt done [10:59:22]requested_data is exist [10:59:22]produce_requested_data [10:59:22]requested_item fm.sn is exist - process it [10:59:22]wFMCommunicate request_size=4 [10:59:22]MH_SAM_APDU [10:59:22]CAPDU: 80 11 00 00 [10:59:22]Write to MH i2c: E2 08 00 63 5F 80 11 00 00 00 00 00 00 3C [10:59:22]Write i2c OK [10:59:22]MH_I2C_Read... [10:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:22]Read from MH i2c: E2 [10:59:22]MH_I2C_Read... [10:59:22]Read from MH i2c: E2 17 00 [10:59:22]MH_I2C_Read... [10:59:22]Read from MH i2c: E2 17 00 63 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [10:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:22]wFMCommunicate OK [10:59:22]requested_item fd.num is exist - process it [10:59:22]SAM_PROTO_GetFieldsCounters [10:59:22]wFMCommunicate request_size=4 [10:59:22]MH_SAM_APDU [10:59:22]CAPDU: 80 13 00 00 [10:59:22]Write to MH i2c: E2 08 00 64 5F 80 13 00 00 00 00 00 00 3F [10:59:22]Write i2c OK [10:59:22]MH_I2C_Read... [10:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:23]Read from MH i2c: E2 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 62 00 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 62 00 64 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:23]wFMCommunicate OK [10:59:23]SAM_PROTO_GetFieldsCounters done [10:59:23]requested_item shift.num is exist - process it [10:59:23]requested_item shift.opened is exist - process it [10:59:23]req_shift_opened [10:59:23]FM_GetShiftState [10:59:23]SAM_PROTO_GetShiftState [10:59:23]wFMCommunicate request_size=4 [10:59:23]MH_SAM_APDU [10:59:23]CAPDU: 80 13 01 00 [10:59:23]Write to MH i2c: E2 08 00 65 5F 80 13 01 00 00 00 00 00 41 [10:59:23]Write i2c OK [10:59:23]MH_I2C_Read... [10:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:23]Read from MH i2c: E2 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 0E 00 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: E2 0E 00 65 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 82 [10:59:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [10:59:23]wFMCommunicate OK [10:59:23]SAM_PROTO_GetShiftState done [10:59:23]FM_GetShiftState done [10:59:23]req_shift_opened done [10:59:23]requested_item shift.open_date is exist - process it [10:59:23]req_shift_open_date [10:59:23]req_shift_open_date done [10:59:23]produce_requested_data done [10:59:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192079,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [10:59:23]process_action_free close_receipt [10:59:23]json_value_free [10:59:23]json_value_free done [10:59:23]process_json_proto returns [10:59:23]Send response to host [10:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192079,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [10:59:23]free response buf [10:59:23]execute_script done [10:59:23]execute_script returns [10:59:23]free content buf [10:59:23]Sock 6.Close socket [10:59:23]Sock 6.Thread stoped [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:09]accept exits with 5 [11:01:09]New connection [11:01:09]New thread 3066817892 created [11:01:09]Thread 3066961252 joined [11:01:09]Waiting for new connection... [11:01:09] Sock 5.Parse request [11:01:09]Sock 5.Check first char [11:01:09]Sock 5.First char is OK [11:01:09]request: POST /json_proto HTTP/1.0 [11:01:09]Method: POST [11:01:09]URL: /json_proto [11:01:09]Method is POST - this is cgi request [11:01:09]url: /json_proto [11:01:09]query_string will be loaded in cgi processing [11:01:09]execute_cgi json_proto POST (null) [11:01:09]execute_cgi path=json_proto method=POST [11:01:09]POST find Content-Length [11:01:09]Host: 172.17.63.131:8080 [11:01:09]Content-Length: 676 [11:01:09]Content-Type: application/json [11:01:09] [11:01:09]POST finish read [11:01:09]Found Content-Length = 676 [11:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]execute_script... [11:01: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)31390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]POST & json_proto [11:01:09]process_json_proto [11:01:09]json parsed OK: [11:01:09]protocol is kg_v1.0 [11:01:09]action value=close_receipt [11:01:09]process_action close_receipt [11:01:09]cmd_close_receipt [11:01:09]MH_GetDate [11:01:09]Write to MH i2c: F0 00 00 66 5F B4 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 66 5F 00 89 1D 1E 67 22 05 6E 64 E1 [11:01:09]GetLastDocTimeStamp 1730026778 [11:01:09]current date 1730026889 [11:01:09]FM_GetShiftState [11:01:09]SAM_PROTO_GetShiftState [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 01 00 [11:01:09]Write to MH i2c: E2 08 00 67 5F 80 13 01 00 00 00 00 00 43 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 67 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [11:01:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_GetShiftState done [11:01:09]FM_GetShiftState done [11:01:09]opened in 1729989159 [11:01:09]opened+sec_in_day 1730075559 [11:01:09]quantity*price = 30038 [11:01:09]sum+1 = 30039 [11:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 112 27.10.2024 11:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192080 ФПД: 14633397435891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110129&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192080&fm=14633397435891&tin=02508201610067®Number=0000000000091776&sum=30000 [11:01:10]StoreToDocumentArchive [11:01:10]shift 542 fd 192080 [11:01:10]save to /storage/0542/doc_00192080 [11:01:10]save last doc name /storage/0542/doc_00192080 to /storage/kkm_last_doc_name [11:01:10]save OK [11:01:10]Clear old archive folders... [11:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:10]tlvbuf is 015E5670 [11:01:10]SAM_PROTO_ClearQueue [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 09 00 00 [11:01:10]Write to MH i2c: E2 08 00 74 5F 80 09 00 00 00 00 00 00 45 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 74 5F 00 90 00 47 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_ClearQueue done [11:01:10]KKMCreateOFDPacket [11:01:10]OFDProtocolAddRootSTLVToBuf [11:01:10]FM_MakeSignedData [11:01:10]FM_MakeSignedData [11:01:10]SAM_PROTO_SignData [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 01 02 [11:01:10]Write to MH i2c: E2 08 00 75 5F 80 0D 01 02 00 00 00 00 4D [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 75 5F 00 90 00 48 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=255 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 89 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EE 02 00 35 04 06 00 0D [11:01:10]Write to MH i2c: E2 02 01 76 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 89 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EE 02 00 35 04 06 00 0D 00 00 DD [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 76 5F 00 90 00 49 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=10 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 02 02 05 4F 1A 74 BD F3 [11:01:10]Write to MH i2c: E2 0D 00 77 5F 80 0D 02 02 05 00 4F 1A 74 BD F3 00 00 E7 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 77 5F 00 90 00 4A [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 03 02 [11:01:10]Write to MH i2c: E2 08 00 78 5F 80 0D 03 02 00 00 00 00 52 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0B 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0B 00 78 5F 00 02 9C A6 1E 85 A7 51 A6 90 00 D8 [11:01:10]RAPDU: 02 9C A6 1E 85 A7 51 A6 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_SignData done [11:01:10]FM_MakeSignedData done [11:01:10]CreateOFDProtocolMessage [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 11 00 00 [11:01:10]Write to MH i2c: E2 08 00 79 5F 80 11 00 00 00 00 00 00 52 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 79 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [11:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:01:11]wFMCommunicate OK [11:01:11]CreateOFDProtocolMessage done [11:01:11]OFDSenderStorePacket 192080 [11:01:11]StoreOFDPacket docnum=192080 [11:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF CA 07 01 2C 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 89 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EE 02 00 35 04 06 00 0D 4F 1A 74 BD F3 02 9C A6 1E 85 A7 51 A6 [11:01:11]CheckFolder [11:01:11]dirname=/storage/ofd_packets [11:01:11]CheckFolder done [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00192080 [11:01:11]NVStorageSaveData ofd_packets/00192080 [11:01:11]File name is /storage/ofd_packets/00192080 [11:01:11]Write 301 bytes [11:01:11]NVStorageSaveData done [11:01:11]OFDSenderStorePacket done [11:01:11]KKMCreateOFDPacket done [11:01:11]NVStorageSaveData kkm_last_timestamp [11:01:11]File name is /storage/kkm_last_timestamp [11:01:11]Write 4 bytes [11:01:11]NVStorageSaveData done [11:01:11]ExternCall_PrintAddStr [11:01:11]wPrintStart [11:01:11]Write to MH i2c: 01 00 00 7A 5F D9 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 7A 5F 00 00 00 00 00 FF 0F EE [11:01:11]RasterBufferAndPrint [11:01:11]line Счет N : (1)31390 [11:01:11]line ИНН: 02508201610067 [11:01:11]line Контрольно-Кассовый Чек [11:01:11]line ПРОДАЖА [11:01:11]line ТРК (МРК, ГНК) : 21 [11:01:11]line Товар: 2710124130 [11:01:11]line Аи-92-К-5 [11:01:11]line 4.490 * 66.90 [11:01:11]line = 300.38 [11:01:11]line НДС 12% НСП 1% [11:01:11]line > о реализуемом товаре [11:01:11]line ОКРУГЛЕНИЕ: -0.38 [11:01:11]line ИТОГО: 300.00 [11:01:11]line Внесено: 300.00 [11:01:11]line СДАЧА: 0.00 [11:01:11]line НСП 1% : 2.66 [11:01:11]line НДС 12% : 31.90 [11:01:11]line Наличными: 300.00 [11:01:11]line Безнал.: 0.00 [11:01:11]line Место: АЗС № 170 "Партнер Нефть" [11:01:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:01:11]line СНО: Общий режим [11:01:11]line Чек 112 27.10.2024 11:01 [11:01:11]line Смена: 542 ФФД: 1.0 [11:01:11]line ЗНМ: 0300000110 [11:01:11]line РНМ: 0000000000091776 [11:01:11]line Версия ККМ: 001 [11:01:11]line ФМ: 0000000000871754 [11:01:11]line ФД: 192080 [11:01:11]line ФПД: 14633397435891 [11:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110129&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192080&fm=14633397435891&tin=02508201610067®Number=0000000000091776&sum=30000 [11:01:11]OFD Sender: Processing packet 192080 [packets to send 75, broken 74] [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00192080 [11:01:11]OFD Sender: To server: pG, [11:01:11]CommunicateWithHost lk.salyk.kg:30040 [11:01:11]ConnectInit lk.salyk.kg [11:01:11]written 0, free lines is 4095 [11:01:11]Connected sock=8 [11:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF CA 07 01 2C 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 89 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EE 02 00 35 04 06 00 0D 4F 1A 74 BD F3 02 9C A6 1E 85 A7 51 A6 [11:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 39 C8 47 00 E7 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EE 02 00 F4 03 04 00 51 C2 1D 67 B6 04 01 00 00 66 42 74 14 C9 E2 9C 8B [11:01:11]CommunicateWithHost err = 0 [11:01:11]CheckOFDResponse [11:01:11]1017 (14) - 77093643461234 [11:01:11]1041 (16) - 0000000000871754 [11:01:11]1040 (4) - 192080 [11:01:11]1012 (4) - 27.10.2024 04:32 [11:01:11]1206 (1) - 0 [11:01:11]OFD Sender: Remove packet 192080 [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00192080 [11:01:11]NVStorageDeleteData [11:01:11]Write to MH i2c: 01 00 00 A5 5F 04 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 A5 5F 00 00 00 00 00 A7 0C BE [11:01:11]RasterBufferAndPrint [11:01:11]line [11:01:11]line [11:01:11]line [11:01:11]line [11:01:11]line [11:01:11]written 0, free lines is 3245 [11:01:11]MH_Cut [11:01:11]Write to MH i2c: D1 01 00 AC 5F 01 DD [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: D1 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: D1 01 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: D1 01 00 AC 5F 00 DC [11:01:11]Write to MH i2c: 01 00 00 AD 5F 0C [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:12]OFD Sender: No OFD packet to send [11:01:12]*** Cut start [11:01:12]*** Partial cut [11:01:12]*** CUTSNS_PIN = 1 [11:01:12]*** CUTSNS_PIN = 0 [11:01:12]*** Brake cut motor [11:01:13]Read from MH i2c: 01 [11:01:13]MH_I2C_Read... [11:01:13]*** Stop cut motor [11:01:13]*** Cut end [11:01:13]Read from MH i2c: 01 07 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: 01 07 00 AD 5F 00 00 00 00 00 FF 0F 21 [11:01:13]process_action close_receipt done [11:01:13]requested_data is exist [11:01:13]produce_requested_data [11:01:13]requested_item fm.sn is exist - process it [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 11 00 00 [11:01:13]Write to MH i2c: E2 08 00 AE 5F 80 11 00 00 00 00 00 00 87 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 17 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 17 00 AE 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [11:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:01:13]wFMCommunicate OK [11:01:13]requested_item fd.num is exist - process it [11:01:13]SAM_PROTO_GetFieldsCounters [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 13 00 00 [11:01:13]Write to MH i2c: E2 08 00 AF 5F 80 13 00 00 00 00 00 00 8A [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 62 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 62 00 AF 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_GetFieldsCounters done [11:01:13]requested_item shift.num is exist - process it [11:01:13]requested_item shift.opened is exist - process it [11:01:13]req_shift_opened [11:01:13]FM_GetShiftState [11:01:13]SAM_PROTO_GetShiftState [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 13 01 00 [11:01:13]Write to MH i2c: E2 08 00 B0 5F 80 13 01 00 00 00 00 00 8C [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 0E 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 0E 00 B0 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [11:01:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_GetShiftState done [11:01:13]FM_GetShiftState done [11:01:13]req_shift_opened done [11:01:13]requested_item shift.open_date is exist - process it [11:01:13]req_shift_open_date [11:01:13]req_shift_open_date done [11:01:13]produce_requested_data done [11:01:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192080,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:01:13]process_action_free close_receipt [11:01:13]json_value_free [11:01:13]json_value_free done [11:01:13]process_json_proto returns [11:01:13]Send response to host [11:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192080,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:01:13]free response buf [11:01:13]execute_script done [11:01:13]execute_script returns [11:01:13]free content buf [11:01:13]Sock 5.Close socket [11:01:13]Sock 5.Thread stoped [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:43]accept exits with 6 [11:01:43]New connection [11:01:43]New thread 3066961252 created [11:01:43]Thread 3066817892 joined [11:01:43]Waiting for new connection... [11:01:43] Sock 6.Parse request [11:01:43]Sock 6.Check first char [11:01:43]Sock 6.First char is OK [11:01:43]request: POST /json_proto HTTP/1.0 [11:01:43]Method: POST [11:01:43]URL: /json_proto [11:01:43]Method is POST - this is cgi request [11:01:43]url: /json_proto [11:01:43]query_string will be loaded in cgi processing [11:01:43]execute_cgi json_proto POST (null) [11:01:43]execute_cgi path=json_proto method=POST [11:01:43]POST find Content-Length [11:01:43]Host: 172.17.63.131:8080 [11:01:43]Content-Length: 676 [11:01:43]Content-Type: application/json [11:01:43] [11:01:43]POST finish read [11:01:43]Found Content-Length = 676 [11:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:43]execute_script... [11:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:43]POST & json_proto [11:01:43]process_json_proto [11:01:43]json parsed OK: [11:01:43]protocol is kg_v1.0 [11:01:43]action value=close_receipt [11:01:43]process_action close_receipt [11:01:43]cmd_close_receipt [11:01:43]MH_GetDate [11:01:43]Write to MH i2c: F0 00 00 B1 5F FF [11:01:43]Write i2c OK [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 09 00 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 09 00 B1 5F 00 AB 1D 1E 67 22 05 6E 64 4E [11:01:43]GetLastDocTimeStamp 1730026889 [11:01:43]current date 1730026923 [11:01:43]FM_GetShiftState [11:01:43]SAM_PROTO_GetShiftState [11:01:43]wFMCommunicate request_size=4 [11:01:43]MH_SAM_APDU [11:01:43]CAPDU: 80 13 01 00 [11:01:43]Write to MH i2c: E2 08 00 B2 5F 80 13 01 00 00 00 00 00 8E [11:01:43]Write i2c OK [11:01:43]MH_I2C_Read... [11:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:43]Read from MH i2c: E2 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: E2 0E 00 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: E2 0E 00 B2 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [11:01:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:01:43]wFMCommunicate OK [11:01:43]SAM_PROTO_GetShiftState done [11:01:43]FM_GetShiftState done [11:01:43]opened in 1729989159 [11:01:43]opened+sec_in_day 1730075559 [11:01:43]quantity*price = 22010 [11:01:43]sum+1 = 22011 [11:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 113 27.10.2024 11:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192081 ФПД: 85130188610050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110203&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192081&fm=85130188610050&tin=02508201610067®Number=0000000000091776&sum=22000 [11:01:44]StoreToDocumentArchive [11:01:44]shift 542 fd 192081 [11:01:44]save to /storage/0542/doc_00192081 [11:01:44]save last doc name /storage/0542/doc_00192081 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 016BBFA0 [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 BF 5F 80 09 00 00 00 00 00 00 90 [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 BF 5F 00 90 00 92 [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 C0 5F 80 0D 01 02 00 00 00 00 98 [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 C0 5F 00 90 00 93 [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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 AB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EE 02 00 35 04 06 00 4D [11:01:44]Write to MH i2c: E2 02 01 C1 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 AB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EE 02 00 35 04 06 00 4D 00 00 FB [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 C1 5F 00 90 00 94 [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 6C EA A6 DA 02 [11:01:44]Write to MH i2c: E2 0D 00 C2 5F 80 0D 02 02 05 00 6C EA A6 DA 02 00 00 7D [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 C2 5F 00 90 00 95 [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 C3 5F 80 0D 03 02 00 00 00 00 9D [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0B 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0B 00 C3 5F 00 3F 62 AB 75 B9 C8 41 40 90 00 61 [11:01:45]RAPDU: 3F 62 AB 75 B9 C8 41 40 90 00 [11:01:45]wFMCommunicate OK [11:01:45]SAM_PROTO_SignData done [11:01:45]FM_MakeSignedData done [11:01:45]CreateOFDProtocolMessage [11:01:45]wFMCommunicate request_size=4 [11:01:45]MH_SAM_APDU [11:01:45]CAPDU: 80 11 00 00 [11:01:45]Write to MH i2c: E2 08 00 C4 5F 80 11 00 00 00 00 00 00 9D [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 17 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 17 00 C4 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [11:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:01:45]wFMCommunicate OK [11:01:45]CreateOFDProtocolMessage done [11:01:45]OFDSenderStorePacket 192081 [11:01:45]StoreOFDPacket docnum=192081 [11:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED D9 07 01 C2 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 AB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EE 02 00 35 04 06 00 4D 6C EA A6 DA 02 3F 62 AB 75 B9 C8 41 40 [11:01:45]CheckFolder [11:01:45]dirname=/storage/ofd_packets [11:01:45]CheckFolder done [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00192081 [11:01:45]NVStorageSaveData ofd_packets/00192081 [11:01:45]File name is /storage/ofd_packets/00192081 [11:01:45]Write 301 bytes [11:01:45]NVStorageSaveData done [11:01:45]OFDSenderStorePacket done [11:01:45]KKMCreateOFDPacket done [11:01:45]NVStorageSaveData kkm_last_timestamp [11:01:45]File name is /storage/kkm_last_timestamp [11:01:45]Write 4 bytes [11:01:45]NVStorageSaveData done [11:01:45]ExternCall_PrintAddStr [11:01:45]wPrintStart [11:01:45]Write to MH i2c: 01 00 00 C5 5F 24 [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 C5 5F 00 00 00 00 00 FF 0F 39 [11:01:45]RasterBufferAndPrint [11:01:45]line Счет N : (1)31391 [11:01:45]line ИНН: 02508201610067 [11:01:45]line Контрольно-Кассовый Чек [11:01:45]line ПРОДАЖА [11:01:45]line ТРК (МРК, ГНК) : 21 [11:01:45]line Товар: 2710124130 [11:01:45]line Аи-92-К-5 [11:01:45]line 3.290 * 66.90 [11:01:45]line = 220.10 [11:01:45]line НДС 12% НСП 1% [11:01:45]line > о реализуемом товаре [11:01:45]line ОКРУГЛЕНИЕ: -0.10 [11:01:45]line ИТОГО: 220.00 [11:01:45]line Внесено: 220.00 [11:01:45]line СДАЧА: 0.00 [11:01:45]line НСП 1% : 1.95 [11:01:45]line НДС 12% : 23.37 [11:01:45]line Наличными: 220.00 [11:01:45]line Безнал.: 0.00 [11:01:45]line Место: АЗС № 170 "Партнер Нефть" [11:01:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:01:45]line СНО: Общий режим [11:01:45]line Чек 113 27.10.2024 11:02 [11:01:45]line Смена: 542 ФФД: 1.0 [11:01:45]line ЗНМ: 0300000110 [11:01:45]line РНМ: 0000000000091776 [11:01:45]line Версия ККМ: 001 [11:01:45]line ФМ: 0000000000871754 [11:01:45]line ФД: 192081 [11:01:45]line ФПД: 85130188610050 [11:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110203&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192081&fm=85130188610050&tin=02508201610067®Number=0000000000091776&sum=22000 [11:01:45]OFD Sender: Processing packet 192081 [packets to send 75, broken 74] [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00192081 [11:01:45]OFD Sender: To server: pG, [11:01:45]CommunicateWithHost lk.salyk.kg:30040 [11:01:45]ConnectInit lk.salyk.kg [11:01:45]written 0, free lines is 4095 [11:01:45]Connected sock=8 [11:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED D9 07 01 C2 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 AB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EE 02 00 35 04 06 00 4D 6C EA A6 DA 02 3F 62 AB 75 B9 C8 41 40 [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 37 35 34 4F 00 00 00 04 A5 47 00 BE E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EE 02 00 F4 03 04 00 73 C2 1D 67 B6 04 01 00 00 E3 B8 84 66 38 BB 0A 12 [11:01:45]CommunicateWithHost err = 0 [11:01:45]CheckOFDResponse [11:01:45]1017 (14) - 77093643461234 [11:01:45]1041 (16) - 0000000000871754 [11:01:45]1040 (4) - 192081 [11:01:45]1012 (4) - 27.10.2024 04:32 [11:01:45]1206 (1) - 0 [11:01:45]OFD Sender: Remove packet 192081 [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00192081 [11:01:45]NVStorageDeleteData [11:01:45]Write to MH i2c: 01 00 00 F0 5F 4F [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 F0 5F 00 00 00 00 00 AA 0C 0C [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 3251 [11:01:45]MH_Cut [11:01:45]Write to MH i2c: D1 01 00 F7 5F 01 28 [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 F7 5F 00 27 [11:01:45]Write to MH i2c: 01 00 00 F8 5F 57 [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:46]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:47]*** Brake cut motor [11:01:47]Read from MH i2c: 01 [11:01:47]MH_I2C_Read... [11:01:47]*** Stop cut motor [11:01:47]*** Cut end [11:01:47]Read from MH i2c: 01 07 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: 01 07 00 F8 5F 00 00 00 00 00 FF 0F 6C [11:01:47]process_action close_receipt done [11:01:47]requested_data is exist [11:01:47]produce_requested_data [11:01:47]requested_item fm.sn is exist - process it [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 11 00 00 [11:01:47]Write to MH i2c: E2 08 00 F9 5F 80 11 00 00 00 00 00 00 D2 [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 17 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 17 00 F9 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [11:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:01:47]wFMCommunicate OK [11:01:47]requested_item fd.num is exist - process it [11:01:47]SAM_PROTO_GetFieldsCounters [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 13 00 00 [11:01:47]Write to MH i2c: E2 08 00 FA 5F 80 13 00 00 00 00 00 00 D5 [11:01:47]Write i2c OK [11:01:47]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 FA 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 FB 5F 80 13 01 00 00 00 00 00 D7 [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 FB 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 18 [11:01:47]RAPDU: 09 00 01 27 8A 1D 67 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":"0000000000871754","fd.num":192081,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [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":"0000000000871754","fd.num":192081,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [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 6.Close socket [11:01:47]Sock 6.Thread stoped [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:00]accept exits with 5 [11:02:00]New connection [11:02:00]New thread 3066817892 created [11:02:00]Thread 3066961252 joined [11:02:00]Waiting for new connection... [11:02:00] Sock 5.Parse request [11:02:00]Sock 5.Check first char [11:02:00]Sock 5.First char is OK [11:02:00]request: POST /json_proto HTTP/1.0 [11:02:00]Method: POST [11:02:00]URL: /json_proto [11:02:00]Method is POST - this is cgi request [11:02:00]url: /json_proto [11:02:00]query_string will be loaded in cgi processing [11:02:00]execute_cgi json_proto POST (null) [11:02:00]execute_cgi path=json_proto method=POST [11:02:00]POST find Content-Length [11:02:00]Host: 172.17.63.131:8080 [11:02:00]Content-Length: 862 [11:02:00]Content-Type: application/json [11:02:00] [11:02:00]POST finish read [11:02:00]Found Content-Length = 862 [11:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:00]execute_script... [11:02: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)31392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:00]POST & json_proto [11:02:00]process_json_proto [11:02:00]json parsed OK: [11:02:00]protocol is kg_v1.0 [11:02:00]action value=close_receipt [11:02:00]process_action close_receipt [11:02:00]cmd_close_receipt [11:02:00]MH_GetDate [11:02:00]Write to MH i2c: F0 00 00 FC 5F 4A [11:02:00]Write i2c OK [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 09 00 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 09 00 FC 5F 00 BB 1D 1E 67 22 05 6E 64 A9 [11:02:00]GetLastDocTimeStamp 1730026923 [11:02:00]current date 1730026939 [11:02:00]FM_GetShiftState [11:02:00]SAM_PROTO_GetShiftState [11:02:00]wFMCommunicate request_size=4 [11:02:00]MH_SAM_APDU [11:02:00]CAPDU: 80 13 01 00 [11:02:00]Write to MH i2c: E2 08 00 FD 5F 80 13 01 00 00 00 00 00 D9 [11:02:00]Write i2c OK [11:02:00]MH_I2C_Read... [11:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:00]Read from MH i2c: E2 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: E2 0E 00 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: E2 0E 00 FD 5F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1A [11:02:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:02:00]wFMCommunicate OK [11:02:00]SAM_PROTO_GetShiftState done [11:02:00]FM_GetShiftState done [11:02:00]opened in 1729989159 [11:02:00]opened+sec_in_day 1730075559 [11:02:00]quantity*price = 15052 [11:02:00]sum+1 = 15054 [11:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.53 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.53 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 114 27.10.2024 11:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192082 ФПД: 143715270918882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192082&fm=143715270918882&tin=02508201610067®Number=0000000000091776&sum=15053 [11:02:01]StoreToDocumentArchive [11:02:01]shift 542 fd 192082 [11:02:01]save to /storage/0542/doc_00192082 [11:02:01]save last doc name /storage/0542/doc_00192082 to /storage/kkm_last_doc_name [11:02:01]save OK [11:02:01]Clear old archive folders... [11:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:01]tlvbuf is 01D133C0 [11:02:01]SAM_PROTO_ClearQueue [11:02:01]wFMCommunicate request_size=4 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 09 00 00 [11:02:01]Write to MH i2c: E2 08 00 0A 60 80 09 00 00 00 00 00 00 DC [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 0A 60 00 90 00 DE [11:02:01]RAPDU: 90 00 [11:02:01]wFMCommunicate OK [11:02:01]SAM_PROTO_ClearQueue done [11:02:01]KKMCreateOFDPacket [11:02:01]OFDProtocolAddRootSTLVToBuf [11:02:01]FM_MakeSignedData [11:02:01]FM_MakeSignedData [11:02:01]SAM_PROTO_SignData [11:02:01]wFMCommunicate request_size=4 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 0D 01 02 [11:02:01]Write to MH i2c: E2 08 00 0B 60 80 0D 01 02 00 00 00 00 E4 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 0B 60 00 90 00 DF [11:02:01]RAPDU: 90 00 [11:02:01]wFMCommunicate OK [11:02:01]wFMCommunicate request_size=255 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EE 02 00 35 04 06 00 82 [11:02:01]Write to MH i2c: E2 02 01 0C 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EE 02 00 35 04 06 00 82 00 00 92 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 0C 60 00 90 00 E0 [11:02:01]RAPDU: 90 00 [11:02:01]wFMCommunicate OK [11:02:01]wFMCommunicate request_size=10 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 0D 02 02 05 B5 51 AC 02 E2 [11:02:01]Write to MH i2c: E2 0D 00 0D 60 80 0D 02 02 05 00 B5 51 AC 02 E2 00 00 87 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 03 00 0D 60 00 90 00 E1 [11:02:01]RAPDU: 90 00 [11:02:01]wFMCommunicate OK [11:02:01]wFMCommunicate request_size=4 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 0D 03 02 [11:02:01]Write to MH i2c: E2 08 00 0E 60 80 0D 03 02 00 00 00 00 E9 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 0B 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 0B 00 0E 60 00 FB 95 71 9C 02 DC B9 F1 90 00 0F [11:02:01]RAPDU: FB 95 71 9C 02 DC B9 F1 90 00 [11:02:01]wFMCommunicate OK [11:02:01]SAM_PROTO_SignData done [11:02:01]FM_MakeSignedData done [11:02:01]CreateOFDProtocolMessage [11:02:01]wFMCommunicate request_size=4 [11:02:01]MH_SAM_APDU [11:02:01]CAPDU: 80 11 00 00 [11:02:01]Write to MH i2c: E2 08 00 0F 60 80 11 00 00 00 00 00 00 E9 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:01]Read from MH i2c: E2 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 17 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: E2 17 00 0F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [11:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:01]wFMCommunicate OK [11:02:01]CreateOFDProtocolMessage done [11:02:01]OFDSenderStorePacket 192082 [11:02:01]StoreOFDPacket docnum=192082 [11:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 78 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EE 02 00 35 04 06 00 82 B5 51 AC 02 E2 FB 95 71 9C 02 DC B9 F1 [11:02:01]CheckFolder [11:02:01]dirname=/storage/ofd_packets [11:02:01]CheckFolder done [11:02:01]ProducePacketName [11:02:01]name=ofd_packets/00192082 [11:02:01]NVStorageSaveData ofd_packets/00192082 [11:02:01]File name is /storage/ofd_packets/00192082 [11:02:01]Write 301 bytes [11:02:01]NVStorageSaveData done [11:02:01]OFDSenderStorePacket done [11:02:01]KKMCreateOFDPacket done [11:02:01]NVStorageSaveData kkm_last_timestamp [11:02:01]File name is /storage/kkm_last_timestamp [11:02:01]Write 4 bytes [11:02:01]NVStorageSaveData done [11:02:01]ExternCall_PrintAddStr [11:02:01]wPrintStart [11:02:01]Write to MH i2c: 01 00 00 10 60 70 [11:02:01]Write i2c OK [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: 01 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: 01 07 00 [11:02:01]MH_I2C_Read... [11:02:01]Read from MH i2c: 01 07 00 10 60 00 00 00 00 00 FF 0F 85 [11:02:01]RasterBufferAndPrint [11:02:01]line Счет N : (1)31392 [11:02:01]line ИНН: 02508201610067 [11:02:01]line Контрольно-Кассовый Чек [11:02:01]line ПРОДАЖА [11:02:01]line ТРК (МРК, ГНК) : 12 [11:02:01]line Товар: 2710124130 [11:02:01]line Аи-92-К-5 [11:02:01]line 2.250 * 66.90 [11:02:01]line = 150.53 [11:02:01]line НДС 12% НСП 1% [11:02:01]line > о реализуемом товаре [11:02:01]line ИТОГО: 150.53 [11:02:01]line НСП 1% : 1.33 [11:02:01]line НДС 12% : 15.98 [11:02:01]line Наличными: 0.00 [11:02:01]line Безнал.: 150.53 [11:02:01]line Место: АЗС № 170 "Партнер Нефть" [11:02:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:02:01]line СНО: Общий режим [11:02:01]line Чек 114 27.10.2024 11:02 [11:02:01]line Смена: 542 ФФД: 1.0 [11:02:01]line ЗНМ: 0300000110 [11:02:01]line РНМ: 0000000000091776 [11:02:01]line Версия ККМ: 001 [11:02:01]line Платежная система: Кыргызкоммерцбанк [11:02:01]line ФМ: 0000000000871754 [11:02:01]line ФД: 192082 [11:02:01]line ФПД: 143715270918882 [11:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192082&fm=143715270918882&tin=02508201610067®Number=0000000000091776&sum=15053 [11:02:02]OFD Sender: Processing packet 192082 [packets to send 75, broken 74] [11:02:02]ProducePacketName [11:02:02]name=ofd_packets/00192082 [11:02:02]OFD Sender: To server: pG, [11:02:02]CommunicateWithHost lk.salyk.kg:30040 [11:02:02]ConnectInit lk.salyk.kg [11:02:02]written 0, free lines is 4095 [11:02:02]Connected sock=8 [11:02:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 78 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BB 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EE 02 00 35 04 06 00 82 B5 51 AC 02 E2 FB 95 71 9C 02 DC B9 F1 [11:02:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E8 45 47 00 43 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EE 02 00 F4 03 04 00 83 C2 1D 67 B6 04 01 00 00 C0 40 D7 43 E5 21 90 5A [11:02:02]CommunicateWithHost err = 0 [11:02:02]CheckOFDResponse [11:02:02]1017 (14) - 77093643461234 [11:02:02]1041 (16) - 0000000000871754 [11:02:02]1040 (4) - 192082 [11:02:02]1012 (4) - 27.10.2024 04:33 [11:02:02]1206 (1) - 0 [11:02:02]OFD Sender: Remove packet 192082 [11:02:02]ProducePacketName [11:02:02]name=ofd_packets/00192082 [11:02:02]NVStorageDeleteData [11:02:02]Write to MH i2c: 01 00 00 3A 60 9A [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 07 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 07 00 3A 60 00 00 00 00 00 CC 0C 79 [11:02:02]RasterBufferAndPrint [11:02:02]line [11:02:02]line [11:02:02]line [11:02:02]line [11:02:02]line [11:02:02]written 0, free lines is 3284 [11:02:02]MH_Cut [11:02:02]Write to MH i2c: D1 01 00 41 60 01 73 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: D1 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: D1 01 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: D1 01 00 41 60 00 72 [11:02:02]Write to MH i2c: 01 00 00 42 60 A2 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:03]OFD Sender: No OFD packet to send [11:02:03]*** Cut start [11:02:03]*** Partial cut [11:02:03]*** CUTSNS_PIN = 1 [11:02:03]*** CUTSNS_PIN = 0 [11:02:03]*** Brake cut motor [11:02:04]Read from MH i2c: 01 [11:02:04]MH_I2C_Read... [11:02:04]*** Stop cut motor [11:02:04]*** Cut end [11:02:04]Read from MH i2c: 01 07 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: 01 07 00 42 60 00 00 00 00 00 FF 0F B7 [11:02:04]process_action close_receipt done [11:02:04]requested_data is exist [11:02:04]produce_requested_data [11:02:04]requested_item fm.sn is exist - process it [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 11 00 00 [11:02:04]Write to MH i2c: E2 08 00 43 60 80 11 00 00 00 00 00 00 1D [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 17 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 17 00 43 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [11:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:04]wFMCommunicate OK [11:02:04]requested_item fd.num is exist - process it [11:02:04]SAM_PROTO_GetFieldsCounters [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 13 00 00 [11:02:04]Write to MH i2c: E2 08 00 44 60 80 13 00 00 00 00 00 00 20 [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 62 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 62 00 44 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:04]wFMCommunicate OK [11:02:04]SAM_PROTO_GetFieldsCounters done [11:02:04]requested_item shift.num is exist - process it [11:02:04]requested_item shift.opened is exist - process it [11:02:04]req_shift_opened [11:02:04]FM_GetShiftState [11:02:04]SAM_PROTO_GetShiftState [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 13 01 00 [11:02:04]Write to MH i2c: E2 08 00 45 60 80 13 01 00 00 00 00 00 22 [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 0E 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 0E 00 45 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 63 [11:02:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:02:04]wFMCommunicate OK [11:02:04]SAM_PROTO_GetShiftState done [11:02:04]FM_GetShiftState done [11:02:04]req_shift_opened done [11:02:04]requested_item shift.open_date is exist - process it [11:02:04]req_shift_open_date [11:02:04]req_shift_open_date done [11:02:04]produce_requested_data done [11:02:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192082,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:02:04]process_action_free close_receipt [11:02:04]json_value_free [11:02:04]json_value_free done [11:02:04]process_json_proto returns [11:02:04]Send response to host [11:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192082,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:02:04]free response buf [11:02:04]execute_script done [11:02:04]execute_script returns [11:02:04]free content buf [11:02:04]Sock 5.Close socket [11:02:04]Sock 5.Thread stoped [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:49]accept exits with 6 [11:02:49]New connection [11:02:49]New thread 3066961252 created [11:02:49]Thread 3066817892 joined [11:02:49]Waiting for new connection... [11:02:49] Sock 6.Parse request [11:02:49]Sock 6.Check first char [11:02:49]Sock 6.First char is OK [11:02:49]request: POST /json_proto HTTP/1.0 [11:02:49]Method: POST [11:02:49]URL: /json_proto [11:02:49]Method is POST - this is cgi request [11:02:49]url: /json_proto [11:02:49]query_string will be loaded in cgi processing [11:02:49]execute_cgi json_proto POST (null) [11:02:49]execute_cgi path=json_proto method=POST [11:02:49]POST find Content-Length [11:02:49]Host: 172.17.63.131:8080 [11:02:49]Content-Length: 676 [11:02:49]Content-Type: application/json [11:02:49] [11:02:49]POST finish read [11:02:49]Found Content-Length = 676 [11:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:49]execute_script... [11:02: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)31393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:49]POST & json_proto [11:02:49]process_json_proto [11:02:49]json parsed OK: [11:02:49]protocol is kg_v1.0 [11:02:49]action value=close_receipt [11:02:49]process_action close_receipt [11:02:49]cmd_close_receipt [11:02:49]MH_GetDate [11:02:49]Write to MH i2c: F0 00 00 46 60 95 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: F0 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: F0 09 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: F0 09 00 46 60 00 ED 1D 1E 67 22 05 6E 64 26 [11:02:49]GetLastDocTimeStamp 1730026939 [11:02:49]current date 1730026989 [11:02:49]FM_GetShiftState [11:02:49]SAM_PROTO_GetShiftState [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 13 01 00 [11:02:49]Write to MH i2c: E2 08 00 47 60 80 13 01 00 00 00 00 00 24 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0E 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0E 00 47 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 65 [11:02:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:02:49]wFMCommunicate OK [11:02:49]SAM_PROTO_GetShiftState done [11:02:49]FM_GetShiftState done [11:02:49]opened in 1729989159 [11:02:49]opened+sec_in_day 1730075559 [11:02:49]quantity*price = 20003 [11:02:49]sum+1 = 20004 [11:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 115 27.10.2024 11:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192083 ФПД: 130881208396520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192083&fm=130881208396520&tin=02508201610067®Number=0000000000091776&sum=20000 [11:02:50]StoreToDocumentArchive [11:02:50]shift 542 fd 192083 [11:02:50]save to /storage/0542/doc_00192083 [11:02:50]save last doc name /storage/0542/doc_00192083 to /storage/kkm_last_doc_name [11:02:50]save OK [11:02:50]Clear old archive folders... [11:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:50]tlvbuf is 01960D50 [11:02:50]SAM_PROTO_ClearQueue [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 09 00 00 [11:02:50]Write to MH i2c: E2 08 00 54 60 80 09 00 00 00 00 00 00 26 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 54 60 00 90 00 28 [11:02:50]RAPDU: 90 00 [11:02:50]wFMCommunicate OK [11:02:50]SAM_PROTO_ClearQueue done [11:02:50]KKMCreateOFDPacket [11:02:50]OFDProtocolAddRootSTLVToBuf [11:02:50]FM_MakeSignedData [11:02:50]FM_MakeSignedData [11:02:50]SAM_PROTO_SignData [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 0D 01 02 [11:02:50]Write to MH i2c: E2 08 00 55 60 80 0D 01 02 00 00 00 00 2E [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 55 60 00 90 00 29 [11:02:50]RAPDU: 90 00 [11:02:50]wFMCommunicate OK [11:02:50]wFMCommunicate request_size=255 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 ED 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EE 02 00 35 04 06 00 77 [11:02:50]Write to MH i2c: E2 02 01 56 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 ED 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EE 02 00 35 04 06 00 77 00 00 60 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 56 60 00 90 00 2A [11:02:50]RAPDU: 90 00 [11:02:50]wFMCommunicate OK [11:02:50]wFMCommunicate request_size=10 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 0D 02 02 05 09 27 EF 2A E8 [11:02:50]Write to MH i2c: E2 0D 00 57 60 80 0D 02 02 05 00 09 27 EF 2A E8 00 00 6C [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 03 00 57 60 00 90 00 2B [11:02:50]RAPDU: 90 00 [11:02:50]wFMCommunicate OK [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 0D 03 02 [11:02:50]Write to MH i2c: E2 08 00 58 60 80 0D 03 02 00 00 00 00 33 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 0B 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 0B 00 58 60 00 E5 1A 87 3F 54 44 7F 3C 90 00 4C [11:02:50]RAPDU: E5 1A 87 3F 54 44 7F 3C 90 00 [11:02:50]wFMCommunicate OK [11:02:50]SAM_PROTO_SignData done [11:02:50]FM_MakeSignedData done [11:02:50]CreateOFDProtocolMessage [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 11 00 00 [11:02:50]Write to MH i2c: E2 08 00 59 60 80 11 00 00 00 00 00 00 33 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 17 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 17 00 59 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [11:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:51]wFMCommunicate OK [11:02:51]CreateOFDProtocolMessage done [11:02:51]OFDSenderStorePacket 192083 [11:02:51]StoreOFDPacket docnum=192083 [11:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 94 07 01 26 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 ED 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EE 02 00 35 04 06 00 77 09 27 EF 2A E8 E5 1A 87 3F 54 44 7F 3C [11:02:51]CheckFolder [11:02:51]dirname=/storage/ofd_packets [11:02:51]CheckFolder done [11:02:51]ProducePacketName [11:02:51]name=ofd_packets/00192083 [11:02:51]NVStorageSaveData ofd_packets/00192083 [11:02:51]File name is /storage/ofd_packets/00192083 [11:02:51]Write 301 bytes [11:02:51]NVStorageSaveData done [11:02:51]OFDSenderStorePacket done [11:02:51]KKMCreateOFDPacket done [11:02:51]NVStorageSaveData kkm_last_timestamp [11:02:51]File name is /storage/kkm_last_timestamp [11:02:51]Write 4 bytes [11:02:51]NVStorageSaveData done [11:02:51]ExternCall_PrintAddStr [11:02:51]wPrintStart [11:02:51]Write to MH i2c: 01 00 00 5A 60 BA [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 07 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 07 00 5A 60 00 00 00 00 00 FF 0F CF [11:02:51]RasterBufferAndPrint [11:02:51]line Счет N : (1)31393 [11:02:51]line ИНН: 02508201610067 [11:02:51]line Контрольно-Кассовый Чек [11:02:51]line ПРОДАЖА [11:02:51]line ТРК (МРК, ГНК) : 12 [11:02:51]line Товар: 2710124130 [11:02:51]line Аи-92-К-5 [11:02:51]line 2.990 * 66.90 [11:02:51]line = 200.03 [11:02:51]line НДС 12% НСП 1% [11:02:51]line > о реализуемом товаре [11:02:51]line ОКРУГЛЕНИЕ: -0.03 [11:02:51]line ИТОГО: 200.00 [11:02:51]line Внесено: 200.00 [11:02:51]line СДАЧА: 0.00 [11:02:51]line НСП 1% : 1.77 [11:02:51]line НДС 12% : 21.24 [11:02:51]line Наличными: 200.00 [11:02:51]line Безнал.: 0.00 [11:02:51]line Место: АЗС № 170 "Партнер Нефть" [11:02:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:02:51]line СНО: Общий режим [11:02:51]line Чек 115 27.10.2024 11:03 [11:02:51]line Смена: 542 ФФД: 1.0 [11:02:51]line ЗНМ: 0300000110 [11:02:51]line РНМ: 0000000000091776 [11:02:51]line Версия ККМ: 001 [11:02:51]line ФМ: 0000000000871754 [11:02:51]line ФД: 192083 [11:02:51]line ФПД: 130881208396520 [11:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192083&fm=130881208396520&tin=02508201610067®Number=0000000000091776&sum=20000 [11:02:51]OFD Sender: Processing packet 192083 [packets to send 75, broken 74] [11:02:51]ProducePacketName [11:02:51]name=ofd_packets/00192083 [11:02:51]OFD Sender: To server: pG, [11:02:51]CommunicateWithHost lk.salyk.kg:30040 [11:02:51]ConnectInit lk.salyk.kg [11:02:51]written 0, free lines is 4095 [11:02:51]Connected sock=9 [11: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 37 35 34 0F 01 00 00 84 94 07 01 26 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 ED 1D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EE 02 00 35 04 06 00 77 09 27 EF 2A E8 E5 1A 87 3F 54 44 7F 3C [11:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 AF 47 00 DB 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EE 02 00 F4 03 04 00 B4 C2 1D 67 B6 04 01 00 00 D1 69 3D 8E F5 78 06 E0 [11:02:51]CommunicateWithHost err = 0 [11:02:51]CheckOFDResponse [11:02:51]1017 (14) - 77093643461234 [11:02:51]1041 (16) - 0000000000871754 [11:02:51]1040 (4) - 192083 [11:02:51]1012 (4) - 27.10.2024 04:33 [11:02:51]1206 (1) - 0 [11:02:51]OFD Sender: Remove packet 192083 [11:02:51]ProducePacketName [11:02:51]name=ofd_packets/00192083 [11:02:51]NVStorageDeleteData [11:02:51]Write to MH i2c: 01 00 00 85 60 E5 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 07 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: 01 07 00 85 60 00 00 00 00 00 B0 0C A8 [11:02:51]RasterBufferAndPrint [11:02:51]line [11:02:51]line [11:02:51]line [11:02:51]line [11:02:51]line [11:02:51]written 0, free lines is 3255 [11:02:51]MH_Cut [11:02:51]Write to MH i2c: D1 01 00 8C 60 01 BE [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: D1 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: D1 01 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: D1 01 00 8C 60 00 BD [11:02:51]Write to MH i2c: 01 00 00 8D 60 ED [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:52]OFD Sender: No OFD packet to send [11:02:52]*** Cut start [11:02:52]*** Partial cut [11:02:52]*** CUTSNS_PIN = 1 [11:02:52]*** CUTSNS_PIN = 0 [11:02:52]*** Brake cut motor [11:02:53]Read from MH i2c: 01 [11:02:53]MH_I2C_Read... [11:02:53]*** Stop cut motor [11:02:53]*** Cut end [11:02:53]Read from MH i2c: 01 07 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: 01 07 00 8D 60 00 00 00 00 00 FF 0F 02 [11:02:53]process_action close_receipt done [11:02:53]requested_data is exist [11:02:53]produce_requested_data [11:02:53]requested_item fm.sn is exist - process it [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 11 00 00 [11:02:53]Write to MH i2c: E2 08 00 8E 60 80 11 00 00 00 00 00 00 68 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 17 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 17 00 8E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [11:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:53]wFMCommunicate OK [11:02:53]requested_item fd.num is exist - process it [11:02:53]SAM_PROTO_GetFieldsCounters [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 13 00 00 [11:02:53]Write to MH i2c: E2 08 00 8F 60 80 13 00 00 00 00 00 00 6B [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 62 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 62 00 8F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_GetFieldsCounters done [11:02:53]requested_item shift.num is exist - process it [11:02:53]requested_item shift.opened is exist - process it [11:02:53]req_shift_opened [11:02:53]FM_GetShiftState [11:02:53]SAM_PROTO_GetShiftState [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 13 01 00 [11:02:53]Write to MH i2c: E2 08 00 90 60 80 13 01 00 00 00 00 00 6D [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0E 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0E 00 90 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AE [11:02:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_GetShiftState done [11:02:53]FM_GetShiftState done [11:02:53]req_shift_opened done [11:02:53]requested_item shift.open_date is exist - process it [11:02:53]req_shift_open_date [11:02:53]req_shift_open_date done [11:02:53]produce_requested_data done [11:02:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192083,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:02:53]process_action_free close_receipt [11:02:53]json_value_free [11:02:53]json_value_free done [11:02:53]process_json_proto returns [11:02:53]Send response to host [11:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192083,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:02:53]free response buf [11:02:53]execute_script done [11:02:53]execute_script returns [11:02:53]free content buf [11:02:53]Sock 6.Close socket [11:02:53]Sock 6.Thread stoped [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:49]accept exits with 5 [11:03:49]New connection [11:03:49]New thread 3066817892 created [11:03:49]Thread 3066961252 joined [11:03:49]Waiting for new connection... [11:03:49] Sock 5.Parse request [11:03:49]Sock 5.Check first char [11:03:49]Sock 5.First char is OK [11:03:49]request: POST /json_proto HTTP/1.0 [11:03:49]Method: POST [11:03:49]URL: /json_proto [11:03:49]Method is POST - this is cgi request [11:03:49]url: /json_proto [11:03:49]query_string will be loaded in cgi processing [11:03:49]execute_cgi json_proto POST (null) [11:03:49]execute_cgi path=json_proto method=POST [11:03:49]POST find Content-Length [11:03:49]Host: 172.17.63.131:8080 [11:03:49]Content-Length: 681 [11:03:49]Content-Type: application/json [11:03:49] [11:03:49]POST finish read [11:03:49]Found Content-Length = 681 [11:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:49]execute_script... [11:03: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)31394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:49]POST & json_proto [11:03:49]process_json_proto [11:03:49]json parsed OK: [11:03:49]protocol is kg_v1.0 [11:03:49]action value=close_receipt [11:03:49]process_action close_receipt [11:03:49]cmd_close_receipt [11:03:49]MH_GetDate [11:03:49]Write to MH i2c: F0 00 00 91 60 E0 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 09 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: F0 09 00 91 60 00 28 1E 1E 67 22 05 6E 64 AD [11:03:49]GetLastDocTimeStamp 1730026989 [11:03:49]current date 1730027048 [11:03:49]FM_GetShiftState [11:03:49]SAM_PROTO_GetShiftState [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 13 01 00 [11:03:49]Write to MH i2c: E2 08 00 92 60 80 13 01 00 00 00 00 00 6F [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 92 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [11:03:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_GetShiftState done [11:03:49]FM_GetShiftState done [11:03:49]opened in 1729989159 [11:03:49]opened+sec_in_day 1730075559 [11:03:49]quantity*price = 100015 [11:03:49]sum+1 = 100017 [11:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 116 27.10.2024 11:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192084 ФПД: 115415280906593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192084&fm=115415280906593&tin=02508201610067®Number=0000000000091776&sum=100000 [11:03:50]StoreToDocumentArchive [11:03:50]shift 542 fd 192084 [11:03:50]save to /storage/0542/doc_00192084 [11:03:50]save last doc name /storage/0542/doc_00192084 to /storage/kkm_last_doc_name [11:03:50]save OK [11:03:50]Clear old archive folders... [11:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:50]tlvbuf is 01B4CDE0 [11:03:50]SAM_PROTO_ClearQueue [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 09 00 00 [11:03:50]Write to MH i2c: E2 08 00 9F 60 80 09 00 00 00 00 00 00 71 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 9F 60 00 90 00 73 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_ClearQueue done [11:03:50]KKMCreateOFDPacket [11:03:50]OFDProtocolAddRootSTLVToBuf [11:03:50]FM_MakeSignedData [11:03:50]FM_MakeSignedData [11:03:50]SAM_PROTO_SignData [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 01 02 [11:03:50]Write to MH i2c: E2 08 00 A0 60 80 0D 01 02 00 00 00 00 79 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 A0 60 00 90 00 74 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=255 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 28 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EE 02 00 35 04 06 00 68 [11:03:50]Write to MH i2c: E2 02 01 A1 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 28 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EE 02 00 35 04 06 00 68 00 00 12 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 A1 60 00 90 00 75 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=10 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 02 02 05 F8 36 D1 F1 61 [11:03:50]Write to MH i2c: E2 0D 00 A2 60 80 0D 02 02 05 00 F8 36 D1 F1 61 00 00 D7 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 03 00 A2 60 00 90 00 76 [11:03:50]RAPDU: 90 00 [11:03:50]wFMCommunicate OK [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 0D 03 02 [11:03:50]Write to MH i2c: E2 08 00 A3 60 80 0D 03 02 00 00 00 00 7E [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0B 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0B 00 A3 60 00 AC E0 94 93 8A 13 C9 61 90 00 F9 [11:03:50]RAPDU: AC E0 94 93 8A 13 C9 61 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_SignData done [11:03:50]FM_MakeSignedData done [11:03:50]CreateOFDProtocolMessage [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 11 00 00 [11:03:50]Write to MH i2c: E2 08 00 A4 60 80 11 00 00 00 00 00 00 7E [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 A4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [11:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:03:50]wFMCommunicate OK [11:03:50]CreateOFDProtocolMessage done [11:03:50]OFDSenderStorePacket 192084 [11:03:50]StoreOFDPacket docnum=192084 [11:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 67 07 01 EA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 28 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EE 02 00 35 04 06 00 68 F8 36 D1 F1 61 AC E0 94 93 8A 13 C9 61 [11:03:50]CheckFolder [11:03:50]dirname=/storage/ofd_packets [11:03:50]CheckFolder done [11:03:50]ProducePacketName [11:03:50]name=ofd_packets/00192084 [11:03:50]NVStorageSaveData ofd_packets/00192084 [11:03:50]File name is /storage/ofd_packets/00192084 [11:03:50]Write 301 bytes [11:03:50]NVStorageSaveData done [11:03:50]OFDSenderStorePacket done [11:03:50]KKMCreateOFDPacket done [11:03:50]NVStorageSaveData kkm_last_timestamp [11:03:50]File name is /storage/kkm_last_timestamp [11:03:50]Write 4 bytes [11:03:50]NVStorageSaveData done [11:03:50]ExternCall_PrintAddStr [11:03:50]wPrintStart [11:03:50]Write to MH i2c: 01 00 00 A5 60 05 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 A5 60 00 00 00 00 00 FF 0F 1A [11:03:50]RasterBufferAndPrint [11:03:50]line Счет N : (1)31394 [11:03:50]line ИНН: 02508201610067 [11:03:50]line Контрольно-Кассовый Чек [11:03:50]line ПРОДАЖА [11:03:50]line ТРК (МРК, ГНК) : 21 [11:03:50]line Товар: 2710124130 [11:03:50]line Аи-92-К-5 [11:03:50]line 14.950 * 66.90 [11:03:50]line = 1000.16 [11:03:50]line НДС 12% НСП 1% [11:03:50]line > о реализуемом товаре [11:03:50]line ОКРУГЛЕНИЕ: -0.16 [11:03:50]line ИТОГО: 1000.00 [11:03:50]line Внесено: 1000.00 [11:03:50]line СДАЧА: 0.00 [11:03:50]line НСП 1% : 8.85 [11:03:50]line НДС 12% : 106.21 [11:03:50]line Наличными: 1000.00 [11:03:50]line Безнал.: 0.00 [11:03:50]line Место: АЗС № 170 "Партнер Нефть" [11:03:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:03:50]line СНО: Общий режим [11:03:50]line Чек 116 27.10.2024 11:04 [11:03:50]line Смена: 542 ФФД: 1.0 [11:03:50]line ЗНМ: 0300000110 [11:03:50]line РНМ: 0000000000091776 [11:03:50]line Версия ККМ: 001 [11:03:50]line ФМ: 0000000000871754 [11:03:50]line ФД: 192084 [11:03:50]line ФПД: 115415280906593 [11:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192084&fm=115415280906593&tin=02508201610067®Number=0000000000091776&sum=100000 [11:03:51]OFD Sender: Processing packet 192084 [packets to send 75, broken 74] [11:03:51]ProducePacketName [11:03:51]name=ofd_packets/00192084 [11:03:51]OFD Sender: To server: pG, [11:03:51]CommunicateWithHost lk.salyk.kg:30040 [11:03:51]ConnectInit lk.salyk.kg [11:03:51]written 0, free lines is 4095 [11:03:51]Connected sock=8 [11:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 67 07 01 EA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 28 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EE 02 00 35 04 06 00 68 F8 36 D1 F1 61 AC E0 94 93 8A 13 C9 61 [11:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 E5 47 00 DA 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EE 02 00 F4 03 04 00 F0 C2 1D 67 B6 04 01 00 00 8D D1 E3 A4 9D 47 14 B6 [11:03:51]CommunicateWithHost err = 0 [11:03:51]CheckOFDResponse [11:03:51]1017 (14) - 77093643461234 [11:03:51]1041 (16) - 0000000000871754 [11:03:51]1040 (4) - 192084 [11:03:51]1012 (4) - 27.10.2024 04:34 [11:03:51]1206 (1) - 0 [11:03:51]OFD Sender: Remove packet 192084 [11:03:51]ProducePacketName [11:03:51]name=ofd_packets/00192084 [11:03:51]NVStorageDeleteData [11:03:51]Write to MH i2c: 01 00 00 D0 60 30 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 07 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: 01 07 00 D0 60 00 00 00 00 00 B3 0C F6 [11:03:51]RasterBufferAndPrint [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]line [11:03:51]written 0, free lines is 3258 [11:03:51]MH_Cut [11:03:51]Write to MH i2c: D1 01 00 D7 60 01 09 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 01 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: D1 01 00 D7 60 00 08 [11:03:51]Write to MH i2c: 01 00 00 D8 60 38 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:52]OFD Sender: No OFD packet to send [11:03:52]*** Cut start [11:03:52]*** Partial cut [11:03:52]*** CUTSNS_PIN = 1 [11:03:52]*** CUTSNS_PIN = 0 [11:03:52]*** Brake cut motor [11:03:53]Read from MH i2c: 01 [11:03:53]MH_I2C_Read... [11:03:53]*** Stop cut motor [11:03:53]*** Cut end [11:03:53]Read from MH i2c: 01 07 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: 01 07 00 D8 60 00 00 00 00 00 FF 0F 4D [11:03:53]process_action close_receipt done [11:03:53]requested_data is exist [11:03:53]produce_requested_data [11:03:53]requested_item fm.sn is exist - process it [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 11 00 00 [11:03:53]Write to MH i2c: E2 08 00 D9 60 80 11 00 00 00 00 00 00 B3 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 D9 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [11:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:03:53]wFMCommunicate OK [11:03:53]requested_item fd.num is exist - process it [11:03:53]SAM_PROTO_GetFieldsCounters [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 00 00 [11:03:53]Write to MH i2c: E2 08 00 DA 60 80 13 00 00 00 00 00 00 B6 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 DA 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetFieldsCounters done [11:03:53]requested_item shift.num is exist - process it [11:03:53]requested_item shift.opened is exist - process it [11:03:53]req_shift_opened [11:03:53]FM_GetShiftState [11:03:53]SAM_PROTO_GetShiftState [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 01 00 [11:03:53]Write to MH i2c: E2 08 00 DB 60 80 13 01 00 00 00 00 00 B8 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 DB 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F9 [11:03:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetShiftState done [11:03:53]FM_GetShiftState done [11:03:53]req_shift_opened done [11:03:53]requested_item shift.open_date is exist - process it [11:03:53]req_shift_open_date [11:03:53]req_shift_open_date done [11:03:53]produce_requested_data done [11:03:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192084,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:03:53]process_action_free close_receipt [11:03:53]json_value_free [11:03:53]json_value_free done [11:03:53]process_json_proto returns [11:03:53]Send response to host [11:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192084,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:03:53]free response buf [11:03:53]execute_script done [11:03:53]execute_script returns [11:03:53]free content buf [11:03:53]Sock 5.Close socket [11:03:53]Sock 5.Thread stoped [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:19]accept exits with 6 [11:04:19]New connection [11:04:19]New thread 3066961252 created [11:04:19]Thread 3066817892 joined [11:04:19]Waiting for new connection... [11:04:19] Sock 6.Parse request [11:04:19]Sock 6.Check first char [11:04:19]Sock 6.First char is OK [11:04:19]request: POST /json_proto HTTP/1.0 [11:04:19]Method: POST [11:04:19]URL: /json_proto [11:04:19]Method is POST - this is cgi request [11:04:19]url: /json_proto [11:04:19]query_string will be loaded in cgi processing [11:04:19]execute_cgi json_proto POST (null) [11:04:19]execute_cgi path=json_proto method=POST [11:04:19]POST find Content-Length [11:04:19]Host: 172.17.63.131:8080 [11:04:19]Content-Length: 676 [11:04:19]Content-Type: application/json [11:04:19] [11:04:19]POST finish read [11:04:19]Found Content-Length = 676 [11:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:19]execute_script... [11:04: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)31395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:19]POST & json_proto [11:04:19]process_json_proto [11:04:19]json parsed OK: [11:04:19]protocol is kg_v1.0 [11:04:19]action value=close_receipt [11:04:19]process_action close_receipt [11:04:19]cmd_close_receipt [11:04:19]MH_GetDate [11:04:19]Write to MH i2c: F0 00 00 DC 60 2B [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 09 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 09 00 DC 60 00 47 1E 1E 67 22 05 6E 64 17 [11:04:19]GetLastDocTimeStamp 1730027048 [11:04:19]current date 1730027079 [11:04:19]FM_GetShiftState [11:04:19]SAM_PROTO_GetShiftState [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 13 01 00 [11:04:19]Write to MH i2c: E2 08 00 DD 60 80 13 01 00 00 00 00 00 BA [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 DD 60 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [11:04:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:04:19]wFMCommunicate OK [11:04:19]SAM_PROTO_GetShiftState done [11:04:19]FM_GetShiftState done [11:04:19]opened in 1729989159 [11:04:19]opened+sec_in_day 1730075559 [11:04:19]quantity*price = 60009 [11:04:19]sum+1 = 60010 [11:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 117 27.10.2024 11:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192085 ФПД: 134830807086280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110439&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192085&fm=134830807086280&tin=02508201610067®Number=0000000000091776&sum=60000 [11:04:20]StoreToDocumentArchive [11:04:20]shift 542 fd 192085 [11:04:20]save to /storage/0542/doc_00192085 [11:04:20]save last doc name /storage/0542/doc_00192085 to /storage/kkm_last_doc_name [11:04:20]save OK [11:04:20]Clear old archive folders... [11:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:20]tlvbuf is 01D13810 [11:04:20]SAM_PROTO_ClearQueue [11:04:20]wFMCommunicate request_size=4 [11:04:20]MH_SAM_APDU [11:04:20]CAPDU: 80 09 00 00 [11:04:20]Write to MH i2c: E2 08 00 EA 60 80 09 00 00 00 00 00 00 BC [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:20]Read from MH i2c: E2 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 EA 60 00 90 00 BE [11:04:20]RAPDU: 90 00 [11:04:20]wFMCommunicate OK [11:04:20]SAM_PROTO_ClearQueue done [11:04:20]KKMCreateOFDPacket [11:04:20]OFDProtocolAddRootSTLVToBuf [11:04:20]FM_MakeSignedData [11:04:20]FM_MakeSignedData [11:04:20]SAM_PROTO_SignData [11:04:20]wFMCommunicate request_size=4 [11:04:20]MH_SAM_APDU [11:04:20]CAPDU: 80 0D 01 02 [11:04:20]Write to MH i2c: E2 08 00 EB 60 80 0D 01 02 00 00 00 00 C4 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:20]Read from MH i2c: E2 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 EB 60 00 90 00 BF [11:04:20]RAPDU: 90 00 [11:04:20]wFMCommunicate OK [11:04:20]wFMCommunicate request_size=255 [11:04:20]MH_SAM_APDU [11:04:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EE 02 00 35 04 06 00 7A [11:04:20]Write to MH i2c: E2 02 01 EC 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EE 02 00 35 04 06 00 7A 00 00 73 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 EC 60 00 90 00 C0 [11:04:21]RAPDU: 90 00 [11:04:21]wFMCommunicate OK [11:04:21]wFMCommunicate request_size=10 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 0D 02 02 05 A0 BE 5C 74 C8 [11:04:21]Write to MH i2c: E2 0D 00 ED 60 80 0D 02 02 05 00 A0 BE 5C 74 C8 00 00 C7 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 ED 60 00 90 00 C1 [11:04:21]RAPDU: 90 00 [11:04:21]wFMCommunicate OK [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 0D 03 02 [11:04:21]Write to MH i2c: E2 08 00 EE 60 80 0D 03 02 00 00 00 00 C9 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0B 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0B 00 EE 60 00 35 4A 9B 21 48 28 BA 70 90 00 9F [11:04:21]RAPDU: 35 4A 9B 21 48 28 BA 70 90 00 [11:04:21]wFMCommunicate OK [11:04:21]SAM_PROTO_SignData done [11:04:21]FM_MakeSignedData done [11:04:21]CreateOFDProtocolMessage [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 11 00 00 [11:04:21]Write to MH i2c: E2 08 00 EF 60 80 11 00 00 00 00 00 00 C9 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 EF 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [11:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:04:21]wFMCommunicate OK [11:04:21]CreateOFDProtocolMessage done [11:04:21]OFDSenderStorePacket 192085 [11:04:21]StoreOFDPacket docnum=192085 [11:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C A3 07 01 FD 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EE 02 00 35 04 06 00 7A A0 BE 5C 74 C8 35 4A 9B 21 48 28 BA 70 [11:04:21]CheckFolder [11:04:21]dirname=/storage/ofd_packets [11:04:21]CheckFolder done [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00192085 [11:04:21]NVStorageSaveData ofd_packets/00192085 [11:04:21]File name is /storage/ofd_packets/00192085 [11:04:21]Write 301 bytes [11:04:21]NVStorageSaveData done [11:04:21]OFDSenderStorePacket done [11:04:21]KKMCreateOFDPacket done [11:04:21]NVStorageSaveData kkm_last_timestamp [11:04:21]File name is /storage/kkm_last_timestamp [11:04:21]Write 4 bytes [11:04:21]NVStorageSaveData done [11:04:21]ExternCall_PrintAddStr [11:04:21]wPrintStart [11:04:21]Write to MH i2c: 01 00 00 F0 60 50 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 F0 60 00 00 00 00 00 FF 0F 65 [11:04:21]RasterBufferAndPrint [11:04:21]line Счет N : (1)31395 [11:04:21]line ИНН: 02508201610067 [11:04:21]line Контрольно-Кассовый Чек [11:04:21]line ПРОДАЖА [11:04:21]line ТРК (МРК, ГНК) : 12 [11:04:21]line Товар: 2710124130 [11:04:21]line Аи-92-К-5 [11:04:21]line 8.970 * 66.90 [11:04:21]line = 600.09 [11:04:21]line НДС 12% НСП 1% [11:04:21]line > о реализуемом товаре [11:04:21]line ОКРУГЛЕНИЕ: -0.09 [11:04:21]line ИТОГО: 600.00 [11:04:21]line Внесено: 600.00 [11:04:21]line СДАЧА: 0.00 [11:04:21]line НСП 1% : 5.31 [11:04:21]line НДС 12% : 63.73 [11:04:21]line Наличными: 600.00 [11:04:21]line Безнал.: 0.00 [11:04:21]line Место: АЗС № 170 "Партнер Нефть" [11:04:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:04:21]line СНО: Общий режим [11:04:21]line Чек 117 27.10.2024 11:04 [11:04:21]line Смена: 542 ФФД: 1.0 [11:04:21]line ЗНМ: 0300000110 [11:04:21]line РНМ: 0000000000091776 [11:04:21]line Версия ККМ: 001 [11:04:21]line ФМ: 0000000000871754 [11:04:21]line ФД: 192085 [11:04:21]line ФПД: 134830807086280 [11:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110439&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192085&fm=134830807086280&tin=02508201610067®Number=0000000000091776&sum=60000 [11:04:21]OFD Sender: Processing packet 192085 [packets to send 75, broken 74] [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00192085 [11:04:21]OFD Sender: To server: pG, [11:04:21]CommunicateWithHost lk.salyk.kg:30040 [11:04:21]ConnectInit lk.salyk.kg [11:04:21]written 0, free lines is 4095 [11:04:21]Connected sock=8 [11:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C A3 07 01 FD 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EE 02 00 35 04 06 00 7A A0 BE 5C 74 C8 35 4A 9B 21 48 28 BA 70 [11:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C C9 47 00 69 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EE 02 00 F4 03 04 00 0F C3 1D 67 B6 04 01 00 00 DF 52 10 C5 81 42 0B 2D [11:04:21]CommunicateWithHost err = 0 [11:04:21]CheckOFDResponse [11:04:21]1017 (14) - 77093643461234 [11:04:21]1041 (16) - 0000000000871754 [11:04:21]1040 (4) - 192085 [11:04:21]1012 (4) - 27.10.2024 04:35 [11:04:21]1206 (1) - 0 [11:04:21]OFD Sender: Remove packet 192085 [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00192085 [11:04:21]NVStorageDeleteData [11:04:22]Write to MH i2c: 01 00 00 1B 61 7C [11:04:22]Write i2c OK [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: 01 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: 01 07 00 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: 01 07 00 1B 61 00 00 00 00 00 B8 0C 47 [11:04:22]RasterBufferAndPrint [11:04:22]line [11:04:22]line [11:04:22]line [11:04:22]line [11:04:22]line [11:04:22]written 0, free lines is 3263 [11:04:22]MH_Cut [11:04:22]Write to MH i2c: D1 01 00 22 61 01 55 [11:04:22]Write i2c OK [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: D1 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: D1 01 00 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: D1 01 00 22 61 00 54 [11:04:22]Write to MH i2c: 01 00 00 23 61 84 [11:04:22]Write i2c OK [11:04:22]MH_I2C_Read... [11:04:22]OFD Sender: No OFD packet to send [11:04:22]*** Cut start [11:04:22]*** Partial cut [11:04:22]*** CUTSNS_PIN = 1 [11:04:23]*** CUTSNS_PIN = 0 [11:04:23]*** Brake cut motor [11:04:23]Read from MH i2c: 01 [11:04:23]MH_I2C_Read... [11:04:23]*** Stop cut motor [11:04:23]*** Cut end [11:04:23]Read from MH i2c: 01 07 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 23 61 00 00 00 00 00 FF 0F 99 [11:04:23]process_action close_receipt done [11:04:23]requested_data is exist [11:04:23]produce_requested_data [11:04:23]requested_item fm.sn is exist - process it [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 11 00 00 [11:04:23]Write to MH i2c: E2 08 00 24 61 80 11 00 00 00 00 00 00 FF [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 24 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [11:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:04:23]wFMCommunicate OK [11:04:23]requested_item fd.num is exist - process it [11:04:23]SAM_PROTO_GetFieldsCounters [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 13 00 00 [11:04:23]Write to MH i2c: E2 08 00 25 61 80 13 00 00 00 00 00 00 02 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 62 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 62 00 25 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_GetFieldsCounters done [11:04:23]requested_item shift.num is exist - process it [11:04:23]requested_item shift.opened is exist - process it [11:04:23]req_shift_opened [11:04:23]FM_GetShiftState [11:04:23]SAM_PROTO_GetShiftState [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 13 01 00 [11:04:23]Write to MH i2c: E2 08 00 26 61 80 13 01 00 00 00 00 00 04 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 26 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 45 [11:04:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_GetShiftState done [11:04:23]FM_GetShiftState done [11:04:23]req_shift_opened done [11:04:23]requested_item shift.open_date is exist - process it [11:04:23]req_shift_open_date [11:04:23]req_shift_open_date done [11:04:23]produce_requested_data done [11:04:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192085,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:04:23]process_action_free close_receipt [11:04:23]json_value_free [11:04:23]json_value_free done [11:04:23]process_json_proto returns [11:04:23]Send response to host [11:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192085,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:04:23]free response buf [11:04:23]execute_script done [11:04:23]execute_script returns [11:04:23]free content buf [11:04:23]Sock 6.Close socket [11:04:23]Sock 6.Thread stoped [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:51]accept exits with 5 [11:05:51]New connection [11:05:51]New thread 3066817892 created [11:05:51]Thread 3066961252 joined [11:05:51]Waiting for new connection... [11:05:51] Sock 5.Parse request [11:05:51]Sock 5.Check first char [11:05:51]Sock 5.First char is OK [11:05:51]request: POST /json_proto HTTP/1.0 [11:05:51]Method: POST [11:05:51]URL: /json_proto [11:05:51]Method is POST - this is cgi request [11:05:51]url: /json_proto [11:05:51]query_string will be loaded in cgi processing [11:05:51]execute_cgi json_proto POST (null) [11:05:51]execute_cgi path=json_proto method=POST [11:05:51]POST find Content-Length [11:05:51]Host: 172.17.63.131:8080 [11:05:51]Content-Length: 677 [11:05:51]Content-Type: application/json [11:05:51] [11:05:51]POST finish read [11:05:51]Found Content-Length = 677 [11:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:51]execute_script... [11:05: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)31396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:51]POST & json_proto [11:05:51]process_json_proto [11:05:51]json parsed OK: [11:05:51]protocol is kg_v1.0 [11:05:51]action value=close_receipt [11:05:51]process_action close_receipt [11:05:51]cmd_close_receipt [11:05:51]MH_GetDate [11:05:51]Write to MH i2c: F0 00 00 27 61 77 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: F0 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: F0 09 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: F0 09 00 27 61 00 A3 1E 1E 67 22 05 6E 64 BF [11:05:51]GetLastDocTimeStamp 1730027079 [11:05:51]current date 1730027171 [11:05:51]FM_GetShiftState [11:05:51]SAM_PROTO_GetShiftState [11:05:51]wFMCommunicate request_size=4 [11:05:51]MH_SAM_APDU [11:05:51]CAPDU: 80 13 01 00 [11:05:51]Write to MH i2c: E2 08 00 28 61 80 13 01 00 00 00 00 00 06 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:51]Read from MH i2c: E2 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 0E 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: E2 0E 00 28 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [11:05:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:05:51]wFMCommunicate OK [11:05:51]SAM_PROTO_GetShiftState done [11:05:51]FM_GetShiftState done [11:05:51]opened in 1729989159 [11:05:51]opened+sec_in_day 1730075559 [11:05:51]quantity*price = 70044 [11:05:51]sum+1 = 70045 [11:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 118 27.10.2024 11:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192086 ФПД: 119638425774307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110611&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192086&fm=119638425774307&tin=02508201610067®Number=0000000000091776&sum=70000 [11:05:52]StoreToDocumentArchive [11:05:52]shift 542 fd 192086 [11:05:52]save to /storage/0542/doc_00192086 [11:05:52]save last doc name /storage/0542/doc_00192086 to /storage/kkm_last_doc_name [11:05:52]save OK [11:05:52]Clear old archive folders... [11:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:52]tlvbuf is 015C8790 [11:05:52]SAM_PROTO_ClearQueue [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 09 00 00 [11:05:52]Write to MH i2c: E2 08 00 35 61 80 09 00 00 00 00 00 00 08 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 03 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 03 00 35 61 00 90 00 0A [11:05:52]RAPDU: 90 00 [11:05:52]wFMCommunicate OK [11:05:52]SAM_PROTO_ClearQueue done [11:05:52]KKMCreateOFDPacket [11:05:52]OFDProtocolAddRootSTLVToBuf [11:05:52]FM_MakeSignedData [11:05:52]FM_MakeSignedData [11:05:52]SAM_PROTO_SignData [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 0D 01 02 [11:05:52]Write to MH i2c: E2 08 00 36 61 80 0D 01 02 00 00 00 00 10 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 03 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 03 00 36 61 00 90 00 0B [11:05:52]RAPDU: 90 00 [11:05:52]wFMCommunicate OK [11:05:52]wFMCommunicate request_size=255 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A3 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EE 02 00 35 04 06 00 6C [11:05:52]Write to MH i2c: E2 02 01 37 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A3 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EE 02 00 35 04 06 00 6C 00 00 42 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 03 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 03 00 37 61 00 90 00 0C [11:05:53]RAPDU: 90 00 [11:05:53]wFMCommunicate OK [11:05:53]wFMCommunicate request_size=10 [11:05:53]MH_SAM_APDU [11:05:53]CAPDU: 80 0D 02 02 05 CF 7D DE A8 E3 [11:05:53]Write to MH i2c: E2 0D 00 38 61 80 0D 02 02 05 00 CF 7D DE A8 E3 00 00 D2 [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 03 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 03 00 38 61 00 90 00 0D [11:05:53]RAPDU: 90 00 [11:05:53]wFMCommunicate OK [11:05:53]wFMCommunicate request_size=4 [11:05:53]MH_SAM_APDU [11:05:53]CAPDU: 80 0D 03 02 [11:05:53]Write to MH i2c: E2 08 00 39 61 80 0D 03 02 00 00 00 00 15 [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0B 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0B 00 39 61 00 13 0A 2D F2 BF D0 1F FE 90 00 FE [11:05:53]RAPDU: 13 0A 2D F2 BF D0 1F FE 90 00 [11:05:53]wFMCommunicate OK [11:05:53]SAM_PROTO_SignData done [11:05:53]FM_MakeSignedData done [11:05:53]CreateOFDProtocolMessage [11:05:53]wFMCommunicate request_size=4 [11:05:53]MH_SAM_APDU [11:05:53]CAPDU: 80 11 00 00 [11:05:53]Write to MH i2c: E2 08 00 3A 61 80 11 00 00 00 00 00 00 15 [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 17 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 17 00 3A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [11:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:05:53]wFMCommunicate OK [11:05:53]CreateOFDProtocolMessage done [11:05:53]OFDSenderStorePacket 192086 [11:05:53]StoreOFDPacket docnum=192086 [11:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 E6 07 01 CE 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A3 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EE 02 00 35 04 06 00 6C CF 7D DE A8 E3 13 0A 2D F2 BF D0 1F FE [11:05:53]CheckFolder [11:05:53]dirname=/storage/ofd_packets [11:05:53]CheckFolder done [11:05:53]ProducePacketName [11:05:53]name=ofd_packets/00192086 [11:05:53]NVStorageSaveData ofd_packets/00192086 [11:05:53]File name is /storage/ofd_packets/00192086 [11:05:53]Write 301 bytes [11:05:53]NVStorageSaveData done [11:05:53]OFDSenderStorePacket done [11:05:53]KKMCreateOFDPacket done [11:05:53]NVStorageSaveData kkm_last_timestamp [11:05:53]File name is /storage/kkm_last_timestamp [11:05:53]Write 4 bytes [11:05:53]NVStorageSaveData done [11:05:53]ExternCall_PrintAddStr [11:05:53]wPrintStart [11:05:53]Write to MH i2c: 01 00 00 3B 61 9C [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: 01 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: 01 07 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: 01 07 00 3B 61 00 00 00 00 00 FF 0F B1 [11:05:53]RasterBufferAndPrint [11:05:53]line Счет N : (1)31396 [11:05:53]line ИНН: 02508201610067 [11:05:53]line Контрольно-Кассовый Чек [11:05:53]line ПРОДАЖА [11:05:53]line ТРК (МРК, ГНК) : 12 [11:05:53]line Товар: 2710124130 [11:05:53]line Аи-92-К-5 [11:05:53]line 10.470 * 66.90 [11:05:53]line = 700.44 [11:05:53]line НДС 12% НСП 1% [11:05:53]line > о реализуемом товаре [11:05:53]line ОКРУГЛЕНИЕ: -0.44 [11:05:53]line ИТОГО: 700.00 [11:05:53]line Внесено: 700.00 [11:05:53]line СДАЧА: 0.00 [11:05:53]line НСП 1% : 6.20 [11:05:53]line НДС 12% : 74.38 [11:05:53]line Наличными: 700.00 [11:05:53]line Безнал.: 0.00 [11:05:53]line Место: АЗС № 170 "Партнер Нефть" [11:05:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:05:53]line СНО: Общий режим [11:05:53]line Чек 118 27.10.2024 11:06 [11:05:53]line Смена: 542 ФФД: 1.0 [11:05:53]line ЗНМ: 0300000110 [11:05:53]line РНМ: 0000000000091776 [11:05:53]line Версия ККМ: 001 [11:05:53]line ФМ: 0000000000871754 [11:05:53]line ФД: 192086 [11:05:53]line ФПД: 119638425774307 [11:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110611&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192086&fm=119638425774307&tin=02508201610067®Number=0000000000091776&sum=70000 [11:05:53]OFD Sender: Processing packet 192086 [packets to send 75, broken 74] [11:05:53]ProducePacketName [11:05:53]name=ofd_packets/00192086 [11:05:53]OFD Sender: To server: pG, [11:05:53]CommunicateWithHost lk.salyk.kg:30040 [11:05:53]ConnectInit lk.salyk.kg [11:05:53]written 0, free lines is 4095 [11:05:53]Connected sock=6 [11:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 E6 07 01 CE 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A3 1E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EE 02 00 35 04 06 00 6C CF 7D DE A8 E3 13 0A 2D F2 BF D0 1F FE [11:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 13 11 47 00 27 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EE 02 00 F4 03 04 00 6B C3 1D 67 B6 04 01 00 00 E0 E6 2D 83 91 1F E1 95 [11:05:53]CommunicateWithHost err = 0 [11:05:53]CheckOFDResponse [11:05:53]1017 (14) - 77093643461234 [11:05:53]1041 (16) - 0000000000871754 [11:05:53]1040 (4) - 192086 [11:05:53]1012 (4) - 27.10.2024 04:36 [11:05:53]1206 (1) - 0 [11:05:53]OFD Sender: Remove packet 192086 [11:05:53]ProducePacketName [11:05:53]name=ofd_packets/00192086 [11:05:53]NVStorageDeleteData [11:05:54]Write to MH i2c: 01 00 00 66 61 C7 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 66 61 00 00 00 00 00 9A 0C 74 [11:05:54]RasterBufferAndPrint [11:05:54]line [11:05:54]line [11:05:54]line [11:05:54]line [11:05:54]line [11:05:54]written 0, free lines is 3233 [11:05:54]MH_Cut [11:05:54]Write to MH i2c: D1 01 00 6D 61 01 A0 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: D1 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: D1 01 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: D1 01 00 6D 61 00 9F [11:05:54]Write to MH i2c: 01 00 00 6E 61 CF [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]OFD Sender: No OFD packet to send [11:05:54]*** Cut start [11:05:54]*** Partial cut [11:05:54]*** CUTSNS_PIN = 1 [11:05:55]*** CUTSNS_PIN = 0 [11:05:55]*** Brake cut motor [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]*** Stop cut motor [11:05:55]*** Cut end [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 6E 61 00 00 00 00 00 FF 0F E4 [11:05:55]process_action close_receipt done [11:05:55]requested_data is exist [11:05:55]produce_requested_data [11:05:55]requested_item fm.sn is exist - process it [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 11 00 00 [11:05:55]Write to MH i2c: E2 08 00 6F 61 80 11 00 00 00 00 00 00 4A [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 17 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 17 00 6F 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [11:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:05:55]wFMCommunicate OK [11:05:55]requested_item fd.num is exist - process it [11:05:55]SAM_PROTO_GetFieldsCounters [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 13 00 00 [11:05:55]Write to MH i2c: E2 08 00 70 61 80 13 00 00 00 00 00 00 4D [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 62 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 62 00 70 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:55]wFMCommunicate OK [11:05:55]SAM_PROTO_GetFieldsCounters done [11:05:55]requested_item shift.num is exist - process it [11:05:55]requested_item shift.opened is exist - process it [11:05:55]req_shift_opened [11:05:55]FM_GetShiftState [11:05:55]SAM_PROTO_GetShiftState [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 13 01 00 [11:05:55]Write to MH i2c: E2 08 00 71 61 80 13 01 00 00 00 00 00 4F [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 0E 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 0E 00 71 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 90 [11:05:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:05:55]wFMCommunicate OK [11:05:55]SAM_PROTO_GetShiftState done [11:05:55]FM_GetShiftState done [11:05:55]req_shift_opened done [11:05:55]requested_item shift.open_date is exist - process it [11:05:55]req_shift_open_date [11:05:55]req_shift_open_date done [11:05:55]produce_requested_data done [11:05:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192086,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:05:55]process_action_free close_receipt [11:05:55]json_value_free [11:05:55]json_value_free done [11:05:55]process_json_proto returns [11:05:55]Send response to host [11:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192086,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:05:55]free response buf [11:05:55]execute_script done [11:05:55]execute_script returns [11:05:55]free content buf [11:05:55]Sock 5.Close socket [11:05:55]Sock 5.Thread stoped [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:31]accept exits with 8 [11:07:31]New connection [11:07:31]New thread 3066961252 created [11:07:31]Thread 3066817892 joined [11:07:31]Waiting for new connection... [11:07:31] Sock 8.Parse request [11:07:31]Sock 8.Check first char [11:07:31]Sock 8.First char is OK [11:07:31]request: POST /json_proto HTTP/1.0 [11:07:31]Method: POST [11:07:31]URL: /json_proto [11:07:31]Method is POST - this is cgi request [11:07:31]url: /json_proto [11:07:31]query_string will be loaded in cgi processing [11:07:31]execute_cgi json_proto POST (null) [11:07:31]execute_cgi path=json_proto method=POST [11:07:31]POST find Content-Length [11:07:31]Host: 172.17.63.131:8080 [11:07:31]Content-Length: 676 [11:07:31]Content-Type: application/json [11:07:31] [11:07:31]POST finish read [11:07:31]Found Content-Length = 676 [11:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:31]execute_script... [11:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:31]POST & json_proto [11:07:31]process_json_proto [11:07:31]json parsed OK: [11:07:31]protocol is kg_v1.0 [11:07:31]action value=close_receipt [11:07:31]process_action close_receipt [11:07:31]cmd_close_receipt [11:07:31]MH_GetDate [11:07:31]Write to MH i2c: F0 00 00 72 61 C2 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 09 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: F0 09 00 72 61 00 07 1F 1E 67 22 05 6E 64 6F [11:07:31]GetLastDocTimeStamp 1730027171 [11:07:31]current date 1730027271 [11:07:31]FM_GetShiftState [11:07:31]SAM_PROTO_GetShiftState [11:07:31]wFMCommunicate request_size=4 [11:07:31]MH_SAM_APDU [11:07:31]CAPDU: 80 13 01 00 [11:07:31]Write to MH i2c: E2 08 00 73 61 80 13 01 00 00 00 00 00 51 [11:07:31]Write i2c OK [11:07:31]MH_I2C_Read... [11:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:31]Read from MH i2c: E2 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 [11:07:31]MH_I2C_Read... [11:07:31]Read from MH i2c: E2 0E 00 73 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [11:07:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:07:31]wFMCommunicate OK [11:07:31]SAM_PROTO_GetShiftState done [11:07:31]FM_GetShiftState done [11:07:31]opened in 1729989159 [11:07:31]opened+sec_in_day 1730075559 [11:07:31]quantity*price = 40006 [11:07:31]sum+1 = 40007 [11:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 119 27.10.2024 11:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192087 ФПД: 180219409928837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192087&fm=180219409928837&tin=02508201610067®Number=0000000000091776&sum=40000 [11:07:32]StoreToDocumentArchive [11:07:32]shift 542 fd 192087 [11:07:32]save to /storage/0542/doc_00192087 [11:07:32]save last doc name /storage/0542/doc_00192087 to /storage/kkm_last_doc_name [11:07:32]save OK [11:07:32]Clear old archive folders... [11:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:32]tlvbuf is 017E2510 [11:07:32]SAM_PROTO_ClearQueue [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 09 00 00 [11:07:32]Write to MH i2c: E2 08 00 80 61 80 09 00 00 00 00 00 00 53 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 80 61 00 90 00 55 [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]SAM_PROTO_ClearQueue done [11:07:32]KKMCreateOFDPacket [11:07:32]OFDProtocolAddRootSTLVToBuf [11:07:32]FM_MakeSignedData [11:07:32]FM_MakeSignedData [11:07:32]SAM_PROTO_SignData [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 01 02 [11:07:32]Write to MH i2c: E2 08 00 81 61 80 0D 01 02 00 00 00 00 5B [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 81 61 00 90 00 56 [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]wFMCommunicate request_size=255 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 07 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EE 02 00 35 04 06 00 A3 [11:07:32]Write to MH i2c: E2 02 01 82 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 07 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EE 02 00 35 04 06 00 A3 00 00 EA [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 82 61 00 90 00 57 [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]wFMCommunicate request_size=10 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 02 02 05 E8 99 E9 12 85 [11:07:32]Write to MH i2c: E2 0D 00 83 61 80 0D 02 02 05 00 E8 99 E9 12 85 00 00 69 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 03 00 83 61 00 90 00 58 [11:07:32]RAPDU: 90 00 [11:07:32]wFMCommunicate OK [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 0D 03 02 [11:07:32]Write to MH i2c: E2 08 00 84 61 80 0D 03 02 00 00 00 00 60 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 0B 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 0B 00 84 61 00 5A EA CB ED 85 17 B5 83 90 00 31 [11:07:32]RAPDU: 5A EA CB ED 85 17 B5 83 90 00 [11:07:32]wFMCommunicate OK [11:07:32]SAM_PROTO_SignData done [11:07:32]FM_MakeSignedData done [11:07:32]CreateOFDProtocolMessage [11:07:32]wFMCommunicate request_size=4 [11:07:32]MH_SAM_APDU [11:07:32]CAPDU: 80 11 00 00 [11:07:32]Write to MH i2c: E2 08 00 85 61 80 11 00 00 00 00 00 00 60 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:32]Read from MH i2c: E2 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 17 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: E2 17 00 85 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [11:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:07:32]wFMCommunicate OK [11:07:32]CreateOFDProtocolMessage done [11:07:32]OFDSenderStorePacket 192087 [11:07:32]StoreOFDPacket docnum=192087 [11:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 9C 07 01 7E DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 07 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EE 02 00 35 04 06 00 A3 E8 99 E9 12 85 5A EA CB ED 85 17 B5 83 [11:07:32]CheckFolder [11:07:32]dirname=/storage/ofd_packets [11:07:32]CheckFolder done [11:07:32]ProducePacketName [11:07:32]name=ofd_packets/00192087 [11:07:32]NVStorageSaveData ofd_packets/00192087 [11:07:32]File name is /storage/ofd_packets/00192087 [11:07:32]Write 301 bytes [11:07:32]NVStorageSaveData done [11:07:32]OFDSenderStorePacket done [11:07:32]KKMCreateOFDPacket done [11:07:32]NVStorageSaveData kkm_last_timestamp [11:07:32]File name is /storage/kkm_last_timestamp [11:07:32]Write 4 bytes [11:07:32]NVStorageSaveData done [11:07:32]ExternCall_PrintAddStr [11:07:32]wPrintStart [11:07:32]Write to MH i2c: 01 00 00 86 61 E7 [11:07:32]Write i2c OK [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: 01 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: 01 07 00 [11:07:32]MH_I2C_Read... [11:07:32]Read from MH i2c: 01 07 00 86 61 00 00 00 00 00 FF 0F FC [11:07:32]RasterBufferAndPrint [11:07:32]line Счет N : (1)31397 [11:07:32]line ИНН: 02508201610067 [11:07:32]line Контрольно-Кассовый Чек [11:07:32]line ПРОДАЖА [11:07:32]line ТРК (МРК, ГНК) : 21 [11:07:32]line Товар: 2710124130 [11:07:32]line Аи-92-К-5 [11:07:32]line 5.980 * 66.90 [11:07:32]line = 400.06 [11:07:32]line НДС 12% НСП 1% [11:07:32]line > о реализуемом товаре [11:07:32]line ОКРУГЛЕНИЕ: -0.06 [11:07:32]line ИТОГО: 400.00 [11:07:32]line Внесено: 400.00 [11:07:32]line СДАЧА: 0.00 [11:07:32]line НСП 1% : 3.54 [11:07:32]line НДС 12% : 42.48 [11:07:32]line Наличными: 400.00 [11:07:32]line Безнал.: 0.00 [11:07:32]line Место: АЗС № 170 "Партнер Нефть" [11:07:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:07:32]line СНО: Общий режим [11:07:32]line Чек 119 27.10.2024 11:07 [11:07:32]line Смена: 542 ФФД: 1.0 [11:07:32]line ЗНМ: 0300000110 [11:07:32]line РНМ: 0000000000091776 [11:07:32]line Версия ККМ: 001 [11:07:32]line ФМ: 0000000000871754 [11:07:32]line ФД: 192087 [11:07:32]line ФПД: 180219409928837 [11:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192087&fm=180219409928837&tin=02508201610067®Number=0000000000091776&sum=40000 [11:07:33]OFD Sender: Processing packet 192087 [packets to send 75, broken 74] [11:07:33]ProducePacketName [11:07:33]name=ofd_packets/00192087 [11:07:33]OFD Sender: To server: pG, [11:07:33]CommunicateWithHost lk.salyk.kg:30040 [11:07:33]ConnectInit lk.salyk.kg [11:07:33]written 0, free lines is 4095 [11:07:33]Connected sock=6 [11:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 9C 07 01 7E DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 07 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EE 02 00 35 04 06 00 A3 E8 99 E9 12 85 5A EA CB ED 85 17 B5 83 [11:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BC 71 47 00 2F AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EE 02 00 F4 03 04 00 CE C3 1D 67 B6 04 01 00 00 8D AE CA 79 17 74 08 6B [11:07:33]CommunicateWithHost err = 0 [11:07:33]CheckOFDResponse [11:07:33]1017 (14) - 77093643461234 [11:07:33]1041 (16) - 0000000000871754 [11:07:33]1040 (4) - 192087 [11:07:33]1012 (4) - 27.10.2024 04:38 [11:07:33]1206 (1) - 0 [11:07:33]OFD Sender: Remove packet 192087 [11:07:33]ProducePacketName [11:07:33]name=ofd_packets/00192087 [11:07:33]NVStorageDeleteData [11:07:33]Write to MH i2c: 01 00 00 B1 61 12 [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: 01 07 00 B1 61 00 00 00 00 00 A7 0C CC [11:07:33]RasterBufferAndPrint [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]line [11:07:33]written 0, free lines is 3245 [11:07:33]MH_Cut [11:07:33]Write to MH i2c: D1 01 00 B8 61 01 EB [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 01 00 [11:07:33]MH_I2C_Read... [11:07:33]Read from MH i2c: D1 01 00 B8 61 00 EA [11:07:33]Write to MH i2c: 01 00 00 B9 61 1A [11:07:33]Write i2c OK [11:07:33]MH_I2C_Read... [11:07:34]OFD Sender: No OFD packet to send [11:07:34]*** Cut start [11:07:34]*** Partial cut [11:07:34]*** CUTSNS_PIN = 1 [11:07:34]*** CUTSNS_PIN = 0 [11:07:34]*** Brake cut motor [11:07:35]Read from MH i2c: 01 [11:07:35]MH_I2C_Read... [11:07:35]*** Stop cut motor [11:07:35]*** Cut end [11:07:35]Read from MH i2c: 01 07 00 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: 01 07 00 B9 61 00 00 00 00 00 FF 0F 2F [11:07:35]process_action close_receipt done [11:07:35]requested_data is exist [11:07:35]produce_requested_data [11:07:35]requested_item fm.sn is exist - process it [11:07:35]wFMCommunicate request_size=4 [11:07:35]MH_SAM_APDU [11:07:35]CAPDU: 80 11 00 00 [11:07:35]Write to MH i2c: E2 08 00 BA 61 80 11 00 00 00 00 00 00 95 [11:07:35]Write i2c OK [11:07:35]MH_I2C_Read... [11:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:35]Read from MH i2c: E2 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 17 00 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 17 00 BA 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [11:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:07:35]wFMCommunicate OK [11:07:35]requested_item fd.num is exist - process it [11:07:35]SAM_PROTO_GetFieldsCounters [11:07:35]wFMCommunicate request_size=4 [11:07:35]MH_SAM_APDU [11:07:35]CAPDU: 80 13 00 00 [11:07:35]Write to MH i2c: E2 08 00 BB 61 80 13 00 00 00 00 00 00 98 [11:07:35]Write i2c OK [11:07:35]MH_I2C_Read... [11:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:35]Read from MH i2c: E2 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 62 00 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 62 00 BB 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [11:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:35]wFMCommunicate OK [11:07:35]SAM_PROTO_GetFieldsCounters done [11:07:35]requested_item shift.num is exist - process it [11:07:35]requested_item shift.opened is exist - process it [11:07:35]req_shift_opened [11:07:35]FM_GetShiftState [11:07:35]SAM_PROTO_GetShiftState [11:07:35]wFMCommunicate request_size=4 [11:07:35]MH_SAM_APDU [11:07:35]CAPDU: 80 13 01 00 [11:07:35]Write to MH i2c: E2 08 00 BC 61 80 13 01 00 00 00 00 00 9A [11:07:35]Write i2c OK [11:07:35]MH_I2C_Read... [11:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:35]Read from MH i2c: E2 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 0E 00 [11:07:35]MH_I2C_Read... [11:07:35]Read from MH i2c: E2 0E 00 BC 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DB [11:07:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:07:35]wFMCommunicate OK [11:07:35]SAM_PROTO_GetShiftState done [11:07:35]FM_GetShiftState done [11:07:35]req_shift_opened done [11:07:35]requested_item shift.open_date is exist - process it [11:07:35]req_shift_open_date [11:07:35]req_shift_open_date done [11:07:35]produce_requested_data done [11:07:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192087,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:07:35]process_action_free close_receipt [11:07:35]json_value_free [11:07:35]json_value_free done [11:07:35]process_json_proto returns [11:07:35]Send response to host [11:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192087,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:07:35]free response buf [11:07:35]execute_script done [11:07:35]execute_script returns [11:07:35]free content buf [11:07:35]Sock 8.Close socket [11:07:35]Sock 8.Thread stoped [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:13]accept exits with 5 [11:09:13]New connection [11:09:13]New thread 3066817892 created [11:09:13]Thread 3066961252 joined [11:09:13]Waiting for new connection... [11:09:13] Sock 5.Parse request [11:09:13]Sock 5.Check first char [11:09:13]Sock 5.First char is OK [11:09:13]request: POST /json_proto HTTP/1.0 [11:09:13]Method: POST [11:09:13]URL: /json_proto [11:09:13]Method is POST - this is cgi request [11:09:13]url: /json_proto [11:09:13]query_string will be loaded in cgi processing [11:09:13]execute_cgi json_proto POST (null) [11:09:13]execute_cgi path=json_proto method=POST [11:09:13]POST find Content-Length [11:09:13]Host: 172.17.63.131:8080 [11:09:13]Content-Length: 681 [11:09:13]Content-Type: application/json [11:09:13] [11:09:13]POST finish read [11:09:13]Found Content-Length = 681 [11:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:13]execute_script... [11:09:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:13]POST & json_proto [11:09:13]process_json_proto [11:09:13]json parsed OK: [11:09:13]protocol is kg_v1.0 [11:09:13]action value=close_receipt [11:09:13]process_action close_receipt [11:09:13]cmd_close_receipt [11:09:13]MH_GetDate [11:09:13]Write to MH i2c: F0 00 00 BD 61 0D [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: F0 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: F0 09 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: F0 09 00 BD 61 00 6C 1F 1E 67 22 05 6E 64 1F [11:09:13]GetLastDocTimeStamp 1730027271 [11:09:13]current date 1730027372 [11:09:13]FM_GetShiftState [11:09:13]SAM_PROTO_GetShiftState [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 13 01 00 [11:09:13]Write to MH i2c: E2 08 00 BE 61 80 13 01 00 00 00 00 00 9C [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 BE 61 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [11:09:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_GetShiftState done [11:09:13]FM_GetShiftState done [11:09:13]opened in 1729989159 [11:09:13]opened+sec_in_day 1730075559 [11:09:13]quantity*price = 100015 [11:09:13]sum+1 = 100017 [11:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 120 27.10.2024 11:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192088 ФПД: 57945735150714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110932&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192088&fm=57945735150714&tin=02508201610067®Number=0000000000091776&sum=100000 [11:09:14]StoreToDocumentArchive [11:09:14]shift 542 fd 192088 [11:09:14]save to /storage/0542/doc_00192088 [11:09:14]save last doc name /storage/0542/doc_00192088 to /storage/kkm_last_doc_name [11:09:14]save OK [11:09:14]Clear old archive folders... [11:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:14]tlvbuf is 017E2220 [11:09:14]SAM_PROTO_ClearQueue [11:09:14]wFMCommunicate request_size=4 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 09 00 00 [11:09:14]Write to MH i2c: E2 08 00 CB 61 80 09 00 00 00 00 00 00 9E [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 CB 61 00 90 00 A0 [11:09:14]RAPDU: 90 00 [11:09:14]wFMCommunicate OK [11:09:14]SAM_PROTO_ClearQueue done [11:09:14]KKMCreateOFDPacket [11:09:14]OFDProtocolAddRootSTLVToBuf [11:09:14]FM_MakeSignedData [11:09:14]FM_MakeSignedData [11:09:14]SAM_PROTO_SignData [11:09:14]wFMCommunicate request_size=4 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 0D 01 02 [11:09:14]Write to MH i2c: E2 08 00 CC 61 80 0D 01 02 00 00 00 00 A6 [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 CC 61 00 90 00 A1 [11:09:14]RAPDU: 90 00 [11:09:14]wFMCommunicate OK [11:09:14]wFMCommunicate request_size=255 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6C 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EE 02 00 35 04 06 00 34 [11:09:14]Write to MH i2c: E2 02 01 CD 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6C 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EE 02 00 35 04 06 00 34 00 00 58 [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 CD 61 00 90 00 A2 [11:09:14]RAPDU: 90 00 [11:09:14]wFMCommunicate OK [11:09:14]wFMCommunicate request_size=10 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 0D 02 02 05 B3 8A F5 BC 7A [11:09:14]Write to MH i2c: E2 0D 00 CE 61 80 0D 02 02 05 00 B3 8A F5 BC 7A 00 00 1B [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 03 00 CE 61 00 90 00 A3 [11:09:14]RAPDU: 90 00 [11:09:14]wFMCommunicate OK [11:09:14]wFMCommunicate request_size=4 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 0D 03 02 [11:09:14]Write to MH i2c: E2 08 00 CF 61 80 0D 03 02 00 00 00 00 AB [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 0B 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 0B 00 CF 61 00 F1 1A 89 A7 61 DA 01 72 90 00 95 [11:09:14]RAPDU: F1 1A 89 A7 61 DA 01 72 90 00 [11:09:14]wFMCommunicate OK [11:09:14]SAM_PROTO_SignData done [11:09:14]FM_MakeSignedData done [11:09:14]CreateOFDProtocolMessage [11:09:14]wFMCommunicate request_size=4 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 11 00 00 [11:09:14]Write to MH i2c: E2 08 00 D0 61 80 11 00 00 00 00 00 00 AB [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 17 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 17 00 D0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [11:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:09:14]wFMCommunicate OK [11:09:14]CreateOFDProtocolMessage done [11:09:14]OFDSenderStorePacket 192088 [11:09:14]StoreOFDPacket docnum=192088 [11:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 00 07 01 D3 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6C 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EE 02 00 35 04 06 00 34 B3 8A F5 BC 7A F1 1A 89 A7 61 DA 01 72 [11:09:14]CheckFolder [11:09:14]dirname=/storage/ofd_packets [11:09:14]CheckFolder done [11:09:14]ProducePacketName [11:09:14]name=ofd_packets/00192088 [11:09:14]NVStorageSaveData ofd_packets/00192088 [11:09:14]File name is /storage/ofd_packets/00192088 [11:09:14]Write 301 bytes [11:09:14]NVStorageSaveData done [11:09:14]OFDSenderStorePacket done [11:09:14]KKMCreateOFDPacket done [11:09:14]NVStorageSaveData kkm_last_timestamp [11:09:14]File name is /storage/kkm_last_timestamp [11:09:14]Write 4 bytes [11:09:14]NVStorageSaveData done [11:09:14]ExternCall_PrintAddStr [11:09:14]wPrintStart [11:09:14]Write to MH i2c: 01 00 00 D1 61 32 [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 07 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 07 00 D1 61 00 00 00 00 00 FF 0F 47 [11:09:14]RasterBufferAndPrint [11:09:14]line Счет N : (1)31398 [11:09:14]line ИНН: 02508201610067 [11:09:14]line Контрольно-Кассовый Чек [11:09:14]line ПРОДАЖА [11:09:14]line ТРК (МРК, ГНК) : 12 [11:09:14]line Товар: 2710124130 [11:09:14]line Аи-92-К-5 [11:09:14]line 14.950 * 66.90 [11:09:14]line = 1000.16 [11:09:14]line НДС 12% НСП 1% [11:09:14]line > о реализуемом товаре [11:09:14]line ОКРУГЛЕНИЕ: -0.16 [11:09:14]line ИТОГО: 1000.00 [11:09:14]line Внесено: 1000.00 [11:09:14]line СДАЧА: 0.00 [11:09:14]line НСП 1% : 8.85 [11:09:14]line НДС 12% : 106.21 [11:09:14]line Наличными: 1000.00 [11:09:14]line Безнал.: 0.00 [11:09:14]line Место: АЗС № 170 "Партнер Нефть" [11:09:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:09:14]line СНО: Общий режим [11:09:14]line Чек 120 27.10.2024 11:09 [11:09:14]line Смена: 542 ФФД: 1.0 [11:09:14]line ЗНМ: 0300000110 [11:09:14]line РНМ: 0000000000091776 [11:09:14]line Версия ККМ: 001 [11:09:14]line ФМ: 0000000000871754 [11:09:14]line ФД: 192088 [11:09:14]line ФПД: 57945735150714 [11:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110932&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192088&fm=57945735150714&tin=02508201610067®Number=0000000000091776&sum=100000 [11:09:15]OFD Sender: Processing packet 192088 [packets to send 75, broken 74] [11:09:15]ProducePacketName [11:09:15]name=ofd_packets/00192088 [11:09:15]OFD Sender: To server: pG, [11:09:15]CommunicateWithHost lk.salyk.kg:30040 [11:09:15]ConnectInit lk.salyk.kg [11:09:15]written 0, free lines is 4095 [11:09:15]Connected sock=8 [11:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 00 07 01 D3 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6C 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EE 02 00 35 04 06 00 34 B3 8A F5 BC 7A F1 1A 89 A7 61 DA 01 72 [11:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 C7 47 00 11 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EE 02 00 F4 03 04 00 34 C4 1D 67 B6 04 01 00 00 4B F3 C7 FB C1 D3 05 05 [11:09:15]CommunicateWithHost err = 0 [11:09:15]CheckOFDResponse [11:09:15]1017 (14) - 77093643461234 [11:09:15]1041 (16) - 0000000000871754 [11:09:15]1040 (4) - 192088 [11:09:15]1012 (4) - 27.10.2024 04:40 [11:09:15]1206 (1) - 0 [11:09:15]OFD Sender: Remove packet 192088 [11:09:15]ProducePacketName [11:09:15]name=ofd_packets/00192088 [11:09:15]NVStorageDeleteData [11:09:15]Write to MH i2c: 01 00 00 FC 61 5D [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 07 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 07 00 FC 61 00 00 00 00 00 9A 0C 0A [11:09:15]RasterBufferAndPrint [11:09:15]line [11:09:15]line [11:09:15]line [11:09:15]line [11:09:15]line [11:09:15]written 0, free lines is 3233 [11:09:15]MH_Cut [11:09:15]Write to MH i2c: D1 01 00 03 62 01 37 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: D1 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: D1 01 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: D1 01 00 03 62 00 36 [11:09:15]Write to MH i2c: 01 00 00 04 62 66 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:16]OFD Sender: No OFD packet to send [11:09:16]*** Cut start [11:09:16]*** Partial cut [11:09:16]*** CUTSNS_PIN = 1 [11:09:16]*** CUTSNS_PIN = 0 [11:09:16]*** Brake cut motor [11:09:17]Read from MH i2c: 01 [11:09:17]MH_I2C_Read... [11:09:17]*** Stop cut motor [11:09:17]*** Cut end [11:09:17]Read from MH i2c: 01 07 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: 01 07 00 04 62 00 00 00 00 00 FF 0F 7B [11:09:17]process_action close_receipt done [11:09:17]requested_data is exist [11:09:17]produce_requested_data [11:09:17]requested_item fm.sn is exist - process it [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 11 00 00 [11:09:17]Write to MH i2c: E2 08 00 05 62 80 11 00 00 00 00 00 00 E1 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 17 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 17 00 05 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [11:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:09:17]wFMCommunicate OK [11:09:17]requested_item fd.num is exist - process it [11:09:17]SAM_PROTO_GetFieldsCounters [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 13 00 00 [11:09:17]Write to MH i2c: E2 08 00 06 62 80 13 00 00 00 00 00 00 E4 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 62 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 62 00 06 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [11:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_GetFieldsCounters done [11:09:17]requested_item shift.num is exist - process it [11:09:17]requested_item shift.opened is exist - process it [11:09:17]req_shift_opened [11:09:17]FM_GetShiftState [11:09:17]SAM_PROTO_GetShiftState [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 13 01 00 [11:09:17]Write to MH i2c: E2 08 00 07 62 80 13 01 00 00 00 00 00 E6 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 07 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 27 [11:09:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_GetShiftState done [11:09:17]FM_GetShiftState done [11:09:17]req_shift_opened done [11:09:17]requested_item shift.open_date is exist - process it [11:09:17]req_shift_open_date [11:09:17]req_shift_open_date done [11:09:17]produce_requested_data done [11:09:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192088,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:09:17]process_action_free close_receipt [11:09:17]json_value_free [11:09:17]json_value_free done [11:09:17]process_json_proto returns [11:09:17]Send response to host [11:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192088,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:09:17]free response buf [11:09:17]execute_script done [11:09:17]execute_script returns [11:09:17]free content buf [11:09:17]Sock 5.Close socket [11:09:17]Sock 5.Thread stoped [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:37]accept exits with 6 [11:09:37]New connection [11:09:37]New thread 3066961252 created [11:09:37]Thread 3066817892 joined [11:09:37]Waiting for new connection... [11:09:37] Sock 6.Parse request [11:09:37]Sock 6.Check first char [11:09:37]Sock 6.First char is OK [11:09:37]request: POST /json_proto HTTP/1.0 [11:09:37]Method: POST [11:09:37]URL: /json_proto [11:09:37]Method is POST - this is cgi request [11:09:37]url: /json_proto [11:09:37]query_string will be loaded in cgi processing [11:09:37]execute_cgi json_proto POST (null) [11:09:37]execute_cgi path=json_proto method=POST [11:09:37]POST find Content-Length [11:09:37]Host: 172.17.63.131:8080 [11:09:37]Content-Length: 681 [11:09:37]Content-Type: application/json [11:09:37] [11:09:37]POST finish read [11:09:37]Found Content-Length = 681 [11:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:37]execute_script... [11:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:37]POST & json_proto [11:09:37]process_json_proto [11:09:37]json parsed OK: [11:09:37]protocol is kg_v1.0 [11:09:37]action value=close_receipt [11:09:37]process_action close_receipt [11:09:37]cmd_close_receipt [11:09:37]MH_GetDate [11:09:37]Write to MH i2c: F0 00 00 08 62 59 [11:09:37]Write i2c OK [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: F0 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: F0 09 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: F0 09 00 08 62 00 84 1F 1E 67 22 05 6E 64 83 [11:09:37]GetLastDocTimeStamp 1730027372 [11:09:37]current date 1730027396 [11:09:37]FM_GetShiftState [11:09:37]SAM_PROTO_GetShiftState [11:09:37]wFMCommunicate request_size=4 [11:09:37]MH_SAM_APDU [11:09:37]CAPDU: 80 13 01 00 [11:09:37]Write to MH i2c: E2 08 00 09 62 80 13 01 00 00 00 00 00 E8 [11:09:37]Write i2c OK [11:09:37]MH_I2C_Read... [11:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:37]Read from MH i2c: E2 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 0E 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 0E 00 09 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [11:09:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:09:37]wFMCommunicate OK [11:09:37]SAM_PROTO_GetShiftState done [11:09:37]FM_GetShiftState done [11:09:37]opened in 1729989159 [11:09:37]opened+sec_in_day 1730075559 [11:09:37]quantity*price = 150056 [11:09:37]sum+1 = 150058 [11:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 121 27.10.2024 11:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192089 ФПД: 7426048581362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192089&fm=7426048581362&tin=02508201610067®Number=0000000000091776&sum=150000 [11:09:38]StoreToDocumentArchive [11:09:38]shift 542 fd 192089 [11:09:38]save to /storage/0542/doc_00192089 [11:09:38]save last doc name /storage/0542/doc_00192089 to /storage/kkm_last_doc_name [11:09:38]save OK [11:09:38]Clear old archive folders... [11:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:38]tlvbuf is 018DC4A0 [11:09:38]SAM_PROTO_ClearQueue [11:09:38]wFMCommunicate request_size=4 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 09 00 00 [11:09:38]Write to MH i2c: E2 08 00 16 62 80 09 00 00 00 00 00 00 EA [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 16 62 00 90 00 EC [11:09:38]RAPDU: 90 00 [11:09:38]wFMCommunicate OK [11:09:38]SAM_PROTO_ClearQueue done [11:09:38]KKMCreateOFDPacket [11:09:38]OFDProtocolAddRootSTLVToBuf [11:09:38]FM_MakeSignedData [11:09:38]FM_MakeSignedData [11:09:38]SAM_PROTO_SignData [11:09:38]wFMCommunicate request_size=4 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 0D 01 02 [11:09:38]Write to MH i2c: E2 08 00 17 62 80 0D 01 02 00 00 00 00 F2 [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 17 62 00 90 00 ED [11:09:38]RAPDU: 90 00 [11:09:38]wFMCommunicate OK [11:09:38]wFMCommunicate request_size=255 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 84 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EE 02 00 35 04 06 00 06 [11:09:38]Write to MH i2c: E2 02 01 18 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 84 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EE 02 00 35 04 06 00 06 00 00 DF [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 18 62 00 90 00 EE [11:09:38]RAPDU: 90 00 [11:09:38]wFMCommunicate OK [11:09:38]wFMCommunicate request_size=10 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 0D 02 02 05 C1 02 FC DE F2 [11:09:38]Write to MH i2c: E2 0D 00 19 62 80 0D 02 02 05 00 C1 02 FC DE F2 00 00 8E [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 03 00 19 62 00 90 00 EF [11:09:38]RAPDU: 90 00 [11:09:38]wFMCommunicate OK [11:09:38]wFMCommunicate request_size=4 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 0D 03 02 [11:09:38]Write to MH i2c: E2 08 00 1A 62 80 0D 03 02 00 00 00 00 F7 [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 0B 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 0B 00 1A 62 00 79 23 7C 86 73 0C 00 71 90 00 86 [11:09:38]RAPDU: 79 23 7C 86 73 0C 00 71 90 00 [11:09:38]wFMCommunicate OK [11:09:38]SAM_PROTO_SignData done [11:09:38]FM_MakeSignedData done [11:09:38]CreateOFDProtocolMessage [11:09:38]wFMCommunicate request_size=4 [11:09:38]MH_SAM_APDU [11:09:38]CAPDU: 80 11 00 00 [11:09:38]Write to MH i2c: E2 08 00 1B 62 80 11 00 00 00 00 00 00 F7 [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:38]Read from MH i2c: E2 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 17 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: E2 17 00 1B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [11:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:09:38]wFMCommunicate OK [11:09:38]CreateOFDProtocolMessage done [11:09:38]OFDSenderStorePacket 192089 [11:09:38]StoreOFDPacket docnum=192089 [11:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F E3 07 01 91 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 84 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EE 02 00 35 04 06 00 06 C1 02 FC DE F2 79 23 7C 86 73 0C 00 71 [11:09:38]CheckFolder [11:09:38]dirname=/storage/ofd_packets [11:09:38]CheckFolder done [11:09:38]ProducePacketName [11:09:38]name=ofd_packets/00192089 [11:09:38]NVStorageSaveData ofd_packets/00192089 [11:09:38]File name is /storage/ofd_packets/00192089 [11:09:38]Write 301 bytes [11:09:38]NVStorageSaveData done [11:09:38]OFDSenderStorePacket done [11:09:38]KKMCreateOFDPacket done [11:09:38]NVStorageSaveData kkm_last_timestamp [11:09:38]File name is /storage/kkm_last_timestamp [11:09:38]Write 4 bytes [11:09:38]NVStorageSaveData done [11:09:38]ExternCall_PrintAddStr [11:09:38]wPrintStart [11:09:38]Write to MH i2c: 01 00 00 1C 62 7E [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 07 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 07 00 1C 62 00 00 00 00 00 FF 0F 93 [11:09:38]RasterBufferAndPrint [11:09:38]line Счет N : (1)31399 [11:09:38]line ИНН: 02508201610067 [11:09:38]line Контрольно-Кассовый Чек [11:09:38]line ПРОДАЖА [11:09:38]line ТРК (МРК, ГНК) : 21 [11:09:38]line Товар: 2710124130 [11:09:38]line Аи-92-К-5 [11:09:38]line 22.430 * 66.90 [11:09:38]line = 1500.57 [11:09:38]line НДС 12% НСП 1% [11:09:38]line > о реализуемом товаре [11:09:38]line ОКРУГЛЕНИЕ: -0.57 [11:09:38]line ИТОГО: 1500.00 [11:09:38]line Внесено: 1500.00 [11:09:38]line СДАЧА: 0.00 [11:09:38]line НСП 1% : 13.28 [11:09:38]line НДС 12% : 159.35 [11:09:38]line Наличными: 1500.00 [11:09:38]line Безнал.: 0.00 [11:09:38]line Место: АЗС № 170 "Партнер Нефть" [11:09:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:09:38]line СНО: Общий режим [11:09:38]line Чек 121 27.10.2024 11:09 [11:09:38]line Смена: 542 ФФД: 1.0 [11:09:38]line ЗНМ: 0300000110 [11:09:38]line РНМ: 0000000000091776 [11:09:38]line Версия ККМ: 001 [11:09:38]line ФМ: 0000000000871754 [11:09:38]line ФД: 192089 [11:09:38]line ФПД: 7426048581362 [11:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192089&fm=7426048581362&tin=02508201610067®Number=0000000000091776&sum=150000 [11:09:39]OFD Sender: Processing packet 192089 [packets to send 75, broken 74] [11:09:39]ProducePacketName [11:09:39]name=ofd_packets/00192089 [11:09:39]OFD Sender: To server: pG, [11:09:39]CommunicateWithHost lk.salyk.kg:30040 [11:09:39]ConnectInit lk.salyk.kg [11:09:39]written 0, free lines is 4095 [11:09:39]Write to MH i2c: 01 00 00 47 62 A9 [11:09:39]Write i2c OK [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 47 62 00 00 00 00 00 98 0C 54 [11:09:39]RasterBufferAndPrint [11:09:39]line [11:09:39]line [11:09:39]line [11:09:39]line [11:09:39]line [11:09:39]written 0, free lines is 3228 [11:09:39]MH_Cut [11:09:39]Write to MH i2c: D1 01 00 4E 62 01 82 [11:09:39]Write i2c OK [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: D1 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: D1 01 00 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: D1 01 00 4E 62 00 81 [11:09:39]Write to MH i2c: 01 00 00 4F 62 B1 [11:09:39]Write i2c OK [11:09:39]MH_I2C_Read... [11:09:40]*** Cut start [11:09:40]*** Partial cut [11:09:40]*** CUTSNS_PIN = 1 [11:09:40]*** CUTSNS_PIN = 0 [11:09:40]*** Brake cut motor [11:09:41]Read from MH i2c: 01 [11:09:41]MH_I2C_Read... [11:09:41]*** Stop cut motor [11:09:41]*** Cut end [11:09:41]Read from MH i2c: 01 07 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: 01 07 00 4F 62 00 00 00 00 00 FF 0F C6 [11:09:41]process_action close_receipt done [11:09:41]requested_data is exist [11:09:41]produce_requested_data [11:09:41]requested_item fm.sn is exist - process it [11:09:41]wFMCommunicate request_size=4 [11:09:41]MH_SAM_APDU [11:09:41]CAPDU: 80 11 00 00 [11:09:41]Write to MH i2c: E2 08 00 50 62 80 11 00 00 00 00 00 00 2C [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:41]Read from MH i2c: E2 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 17 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 17 00 50 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [11:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:09:41]wFMCommunicate OK [11:09:41]requested_item fd.num is exist - process it [11:09:41]SAM_PROTO_GetFieldsCounters [11:09:41]wFMCommunicate request_size=4 [11:09:41]MH_SAM_APDU [11:09:41]CAPDU: 80 13 00 00 [11:09:41]Write to MH i2c: E2 08 00 51 62 80 13 00 00 00 00 00 00 2F [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:41]Read from MH i2c: E2 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 62 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 62 00 51 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:41]wFMCommunicate OK [11:09:41]SAM_PROTO_GetFieldsCounters done [11:09:41]requested_item shift.num is exist - process it [11:09:41]requested_item shift.opened is exist - process it [11:09:41]req_shift_opened [11:09:41]FM_GetShiftState [11:09:41]SAM_PROTO_GetShiftState [11:09:41]wFMCommunicate request_size=4 [11:09:41]MH_SAM_APDU [11:09:41]CAPDU: 80 13 01 00 [11:09:41]Write to MH i2c: E2 08 00 52 62 80 13 01 00 00 00 00 00 31 [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:41]Read from MH i2c: E2 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 0E 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 0E 00 52 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 72 [11:09:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:09:41]wFMCommunicate OK [11:09:41]SAM_PROTO_GetShiftState done [11:09:41]FM_GetShiftState done [11:09:41]req_shift_opened done [11:09:41]requested_item shift.open_date is exist - process it [11:09:41]req_shift_open_date [11:09:41]req_shift_open_date done [11:09:41]produce_requested_data done [11:09:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192089,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:09:41]process_action_free close_receipt [11:09:41]json_value_free [11:09:41]json_value_free done [11:09:41]process_json_proto returns [11:09:41]Send response to host [11:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192089,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:09:41]free response buf [11:09:41]execute_script done [11:09:41]execute_script returns [11:09:41]free content buf [11:09:41]Sock 6.Close socket [11:09:41]Sock 6.Thread stoped [11:11:53]ConnectInit Can't connect to host [11:11:53]CommunicateWithHost connect error [11:11:53]CommunicateWithHost err = -1 [11:11:53]OFD Sender: Server communicate error [11:11:58]OFD Sender: Processing packet 192089 [packets to send 75, broken 74] [11:11:58]ProducePacketName [11:11:58]name=ofd_packets/00192089 [11:11:58]OFD Sender: To server: pG, [11:11:58]CommunicateWithHost lk.salyk.kg:30040 [11:11:58]ConnectInit lk.salyk.kg [11:11:58]Connected sock=6 [11:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F E3 07 01 91 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 84 1F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EE 02 00 35 04 06 00 06 C1 02 FC DE F2 79 23 7C 86 73 0C 00 71 [11:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A2 EE 47 00 46 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EE 02 00 F4 03 04 00 D7 C4 1D 67 B6 04 01 00 00 14 23 BB 4D CF D2 5B B3 [11:11:58]CommunicateWithHost err = 0 [11:11:58]CheckOFDResponse [11:11:58]1017 (14) - 77093643461234 [11:11:58]1041 (16) - 0000000000871754 [11:11:58]1040 (4) - 192089 [11:11:58]1012 (4) - 27.10.2024 04:43 [11:11:58]1206 (1) - 0 [11:11:58]OFD Sender: Remove packet 192089 [11:11:58]ProducePacketName [11:11:58]name=ofd_packets/00192089 [11:11:58]NVStorageDeleteData [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:22]accept exits with 5 [11:12:22]New connection [11:12:22]New thread 3066817892 created [11:12:22]Thread 3066961252 joined [11:12:22]Waiting for new connection... [11:12:22] Sock 5.Parse request [11:12:22]Sock 5.Check first char [11:12:22]Sock 5.First char is OK [11:12:22]request: POST /json_proto HTTP/1.0 [11:12:22]Method: POST [11:12:22]URL: /json_proto [11:12:22]Method is POST - this is cgi request [11:12:22]url: /json_proto [11:12:22]query_string will be loaded in cgi processing [11:12:22]execute_cgi json_proto POST (null) [11:12:22]execute_cgi path=json_proto method=POST [11:12:22]POST find Content-Length [11:12:22]Host: 172.17.63.131:8080 [11:12:22]Content-Length: 681 [11:12:22]Content-Type: application/json [11:12:22] [11:12:22]POST finish read [11:12:22]Found Content-Length = 681 [11:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:22]execute_script... [11:12: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)31400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:22]POST & json_proto [11:12:22]process_json_proto [11:12:22]json parsed OK: [11:12:22]protocol is kg_v1.0 [11:12:22]action value=close_receipt [11:12:22]process_action close_receipt [11:12:22]cmd_close_receipt [11:12:22]MH_GetDate [11:12:22]Write to MH i2c: F0 00 00 53 62 A4 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 09 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 09 00 53 62 00 2A 20 1E 67 22 05 6E 64 75 [11:12:22]GetLastDocTimeStamp 1730027396 [11:12:22]current date 1730027562 [11:12:22]FM_GetShiftState [11:12:22]SAM_PROTO_GetShiftState [11:12:22]wFMCommunicate request_size=4 [11:12:22]MH_SAM_APDU [11:12:22]CAPDU: 80 13 01 00 [11:12:22]Write to MH i2c: E2 08 00 54 62 80 13 01 00 00 00 00 00 33 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:22]Read from MH i2c: E2 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: E2 0E 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: E2 0E 00 54 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [11:12:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:12:22]wFMCommunicate OK [11:12:22]SAM_PROTO_GetShiftState done [11:12:22]FM_GetShiftState done [11:12:22]opened in 1729989159 [11:12:22]opened+sec_in_day 1730075559 [11:12:22]quantity*price = 100015 [11:12:22]sum+1 = 100017 [11:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 122 27.10.2024 11:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192090 ФПД: 152294866151433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192090&fm=152294866151433&tin=02508201610067®Number=0000000000091776&sum=100000 [11:12:23]StoreToDocumentArchive [11:12:23]shift 542 fd 192090 [11:12:23]save to /storage/0542/doc_00192090 [11:12:23]save last doc name /storage/0542/doc_00192090 to /storage/kkm_last_doc_name [11:12:23]save OK [11:12:23]Clear old archive folders... [11:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:23]tlvbuf is 01D4C4A0 [11:12:23]SAM_PROTO_ClearQueue [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 09 00 00 [11:12:23]Write to MH i2c: E2 08 00 61 62 80 09 00 00 00 00 00 00 35 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 61 62 00 90 00 37 [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]SAM_PROTO_ClearQueue done [11:12:23]KKMCreateOFDPacket [11:12:23]OFDProtocolAddRootSTLVToBuf [11:12:23]FM_MakeSignedData [11:12:23]FM_MakeSignedData [11:12:23]SAM_PROTO_SignData [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 01 02 [11:12:23]Write to MH i2c: E2 08 00 62 62 80 0D 01 02 00 00 00 00 3D [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 62 62 00 90 00 38 [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=255 [11:12:23]MH_SAM_APDU [11:12: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EE 02 00 35 04 06 00 8A [11:12:23]Write to MH i2c: E2 02 01 63 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EE 02 00 35 04 06 00 8A 00 00 08 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 63 62 00 90 00 39 [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=10 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 02 02 05 82 E9 65 E8 09 [11:12:23]Write to MH i2c: E2 0D 00 64 62 80 0D 02 02 05 00 82 E9 65 E8 09 00 00 0B [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 64 62 00 90 00 3A [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 03 02 [11:12:23]Write to MH i2c: E2 08 00 65 62 80 0D 03 02 00 00 00 00 42 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:24]Read from MH i2c: E2 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0B 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0B 00 65 62 00 B1 2D B8 84 2E F1 EA C3 90 00 29 [11:12:24]RAPDU: B1 2D B8 84 2E F1 EA C3 90 00 [11:12:24]wFMCommunicate OK [11:12:24]SAM_PROTO_SignData done [11:12:24]FM_MakeSignedData done [11:12:24]CreateOFDProtocolMessage [11:12:24]wFMCommunicate request_size=4 [11:12:24]MH_SAM_APDU [11:12:24]CAPDU: 80 11 00 00 [11:12:24]Write to MH i2c: E2 08 00 66 62 80 11 00 00 00 00 00 00 42 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:24]Read from MH i2c: E2 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 17 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 17 00 66 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [11:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:24]wFMCommunicate OK [11:12:24]CreateOFDProtocolMessage done [11:12:24]OFDSenderStorePacket 192090 [11:12:24]StoreOFDPacket docnum=192090 [11:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA C2 07 01 C2 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EE 02 00 35 04 06 00 8A 82 E9 65 E8 09 B1 2D B8 84 2E F1 EA C3 [11:12:24]CheckFolder [11:12:24]dirname=/storage/ofd_packets [11:12:24]CheckFolder done [11:12:24]ProducePacketName [11:12:24]name=ofd_packets/00192090 [11:12:24]NVStorageSaveData ofd_packets/00192090 [11:12:24]File name is /storage/ofd_packets/00192090 [11:12:24]Write 301 bytes [11:12:24]NVStorageSaveData done [11:12:24]OFDSenderStorePacket done [11:12:24]KKMCreateOFDPacket done [11:12:24]NVStorageSaveData kkm_last_timestamp [11:12:24]File name is /storage/kkm_last_timestamp [11:12:24]Write 4 bytes [11:12:24]NVStorageSaveData done [11:12:24]ExternCall_PrintAddStr [11:12:24]wPrintStart [11:12:24]Write to MH i2c: 01 00 00 67 62 C9 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 67 62 00 00 00 00 00 FF 0F DE [11:12:24]RasterBufferAndPrint [11:12:24]line Счет N : (1)31400 [11:12:24]line ИНН: 02508201610067 [11:12:24]line Контрольно-Кассовый Чек [11:12:24]line ПРОДАЖА [11:12:24]line ТРК (МРК, ГНК) : 12 [11:12:24]line Товар: 2710124130 [11:12:24]line Аи-92-К-5 [11:12:24]line 14.950 * 66.90 [11:12:24]line = 1000.16 [11:12:24]line НДС 12% НСП 1% [11:12:24]line > о реализуемом товаре [11:12:24]line ОКРУГЛЕНИЕ: -0.16 [11:12:24]line ИТОГО: 1000.00 [11:12:24]line Внесено: 1000.00 [11:12:24]line СДАЧА: 0.00 [11:12:24]line НСП 1% : 8.85 [11:12:24]line НДС 12% : 106.21 [11:12:24]line Наличными: 1000.00 [11:12:24]line Безнал.: 0.00 [11:12:24]line Место: АЗС № 170 "Партнер Нефть" [11:12:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:12:24]line СНО: Общий режим [11:12:24]line Чек 122 27.10.2024 11:12 [11:12:24]line Смена: 542 ФФД: 1.0 [11:12:24]line ЗНМ: 0300000110 [11:12:24]line РНМ: 0000000000091776 [11:12:24]line Версия ККМ: 001 [11:12:24]line ФМ: 0000000000871754 [11:12:24]line ФД: 192090 [11:12:24]line ФПД: 152294866151433 [11:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192090&fm=152294866151433&tin=02508201610067®Number=0000000000091776&sum=100000 [11:12:24]OFD Sender: Processing packet 192090 [packets to send 75, broken 74] [11:12:24]ProducePacketName [11:12:24]name=ofd_packets/00192090 [11:12:24]OFD Sender: To server: pG, [11:12:24]CommunicateWithHost lk.salyk.kg:30040 [11:12:24]ConnectInit lk.salyk.kg [11:12:24]written 0, free lines is 4095 [11:12:24]Connected sock=8 [11:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA C2 07 01 C2 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EE 02 00 35 04 06 00 8A 82 E9 65 E8 09 B1 2D B8 84 2E F1 EA C3 [11:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0D 6F 47 00 E5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EE 02 00 F4 03 04 00 F2 C4 1D 67 B6 04 01 00 00 43 2D 71 B2 BC 0F 3E D8 [11:12:24]CommunicateWithHost err = 0 [11:12:24]CheckOFDResponse [11:12:24]1017 (14) - 77093643461234 [11:12:24]1041 (16) - 0000000000871754 [11:12:24]1040 (4) - 192090 [11:12:24]1012 (4) - 27.10.2024 04:43 [11:12:24]1206 (1) - 0 [11:12:24]OFD Sender: Remove packet 192090 [11:12:24]ProducePacketName [11:12:24]name=ofd_packets/00192090 [11:12:24]NVStorageDeleteData [11:12:24]Write to MH i2c: 01 00 00 92 62 F4 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 92 62 00 00 00 00 00 A3 0C AA [11:12:24]RasterBufferAndPrint [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]written 0, free lines is 3242 [11:12:24]MH_Cut [11:12:24]Write to MH i2c: D1 01 00 99 62 01 CD [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 01 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 01 00 99 62 00 CC [11:12:24]Write to MH i2c: 01 00 00 9A 62 FC [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:25]OFD Sender: No OFD packet to send [11:12:25]*** Cut start [11:12:25]*** Partial cut [11:12:25]*** CUTSNS_PIN = 1 [11:12:25]*** CUTSNS_PIN = 0 [11:12:26]*** Brake cut motor [11:12:26]Read from MH i2c: 01 [11:12:26]MH_I2C_Read... [11:12:26]*** Stop cut motor [11:12:26]*** Cut end [11:12:26]Read from MH i2c: 01 07 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 07 00 9A 62 00 00 00 00 00 FF 0F 11 [11:12:26]process_action close_receipt done [11:12:26]requested_data is exist [11:12:26]produce_requested_data [11:12:26]requested_item fm.sn is exist - process it [11:12:26]wFMCommunicate request_size=4 [11:12:26]MH_SAM_APDU [11:12:26]CAPDU: 80 11 00 00 [11:12:26]Write to MH i2c: E2 08 00 9B 62 80 11 00 00 00 00 00 00 77 [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:26]Read from MH i2c: E2 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 17 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 17 00 9B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [11:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:26]wFMCommunicate OK [11:12:26]requested_item fd.num is exist - process it [11:12:26]SAM_PROTO_GetFieldsCounters [11:12:26]wFMCommunicate request_size=4 [11:12:26]MH_SAM_APDU [11:12:26]CAPDU: 80 13 00 00 [11:12:26]Write to MH i2c: E2 08 00 9C 62 80 13 00 00 00 00 00 00 7A [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:26]Read from MH i2c: E2 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 62 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 62 00 9C 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:26]wFMCommunicate OK [11:12:26]SAM_PROTO_GetFieldsCounters done [11:12:26]requested_item shift.num is exist - process it [11:12:26]requested_item shift.opened is exist - process it [11:12:26]req_shift_opened [11:12:26]FM_GetShiftState [11:12:26]SAM_PROTO_GetShiftState [11:12:26]wFMCommunicate request_size=4 [11:12:26]MH_SAM_APDU [11:12:26]CAPDU: 80 13 01 00 [11:12:26]Write to MH i2c: E2 08 00 9D 62 80 13 01 00 00 00 00 00 7C [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:26]Read from MH i2c: E2 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 0E 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: E2 0E 00 9D 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [11:12:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:12:26]wFMCommunicate OK [11:12:26]SAM_PROTO_GetShiftState done [11:12:26]FM_GetShiftState done [11:12:26]req_shift_opened done [11:12:26]requested_item shift.open_date is exist - process it [11:12:26]req_shift_open_date [11:12:26]req_shift_open_date done [11:12:26]produce_requested_data done [11:12:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192090,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:12:26]process_action_free close_receipt [11:12:26]json_value_free [11:12:26]json_value_free done [11:12:26]process_json_proto returns [11:12:26]Send response to host [11:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192090,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:12:26]free response buf [11:12:26]execute_script done [11:12:26]execute_script returns [11:12:26]free content buf [11:12:26]Sock 5.Close socket [11:12:26]Sock 5.Thread stoped [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:43]accept exits with 6 [11:12:43]New connection [11:12:43]New thread 3066961252 created [11:12:43]Thread 3066817892 joined [11:12:43]Waiting for new connection... [11:12:43] Sock 6.Parse request [11:12:43]Sock 6.Check first char [11:12:43]Sock 6.First char is OK [11:12:43]request: POST /json_proto HTTP/1.0 [11:12:43]Method: POST [11:12:43]URL: /json_proto [11:12:43]Method is POST - this is cgi request [11:12:43]url: /json_proto [11:12:43]query_string will be loaded in cgi processing [11:12:43]execute_cgi json_proto POST (null) [11:12:43]execute_cgi path=json_proto method=POST [11:12:43]POST find Content-Length [11:12:43]Host: 172.17.63.131:8080 [11:12:43]Content-Length: 676 [11:12:43]Content-Type: application/json [11:12:43] [11:12:43]POST finish read [11:12:43]Found Content-Length = 676 [11:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:43]execute_script... [11:12: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)31401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:43]POST & json_proto [11:12:43]process_json_proto [11:12:43]json parsed OK: [11:12:43]protocol is kg_v1.0 [11:12:43]action value=close_receipt [11:12:43]process_action close_receipt [11:12:43]cmd_close_receipt [11:12:43]MH_GetDate [11:12:43]Write to MH i2c: F0 00 00 9E 62 EF [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: F0 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: F0 09 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: F0 09 00 9E 62 00 3E 20 1E 67 22 05 6E 64 D4 [11:12:43]GetLastDocTimeStamp 1730027562 [11:12:43]current date 1730027582 [11:12:43]FM_GetShiftState [11:12:43]SAM_PROTO_GetShiftState [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 13 01 00 [11:12:43]Write to MH i2c: E2 08 00 9F 62 80 13 01 00 00 00 00 00 7E [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0E 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0E 00 9F 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [11:12:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_GetShiftState done [11:12:43]FM_GetShiftState done [11:12:43]opened in 1729989159 [11:12:43]opened+sec_in_day 1730075559 [11:12:43]quantity*price = 40006 [11:12:43]sum+1 = 40007 [11:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 123 27.10.2024 11:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192091 ФПД: 97321221997397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111302&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192091&fm=97321221997397&tin=02508201610067®Number=0000000000091776&sum=40000 [11:12:44]StoreToDocumentArchive [11:12:44]shift 542 fd 192091 [11:12:44]save to /storage/0542/doc_00192091 [11:12:44]save last doc name /storage/0542/doc_00192091 to /storage/kkm_last_doc_name [11:12:44]save OK [11:12:44]Clear old archive folders... [11:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:44]tlvbuf is 018DC4B0 [11:12:44]SAM_PROTO_ClearQueue [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 09 00 00 [11:12:44]Write to MH i2c: E2 08 00 AC 62 80 09 00 00 00 00 00 00 80 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 AC 62 00 90 00 82 [11:12:44]RAPDU: 90 00 [11:12:44]wFMCommunicate OK [11:12:44]SAM_PROTO_ClearQueue done [11:12:44]KKMCreateOFDPacket [11:12:44]OFDProtocolAddRootSTLVToBuf [11:12:44]FM_MakeSignedData [11:12:44]FM_MakeSignedData [11:12:44]SAM_PROTO_SignData [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 0D 01 02 [11:12:44]Write to MH i2c: E2 08 00 AD 62 80 0D 01 02 00 00 00 00 88 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 AD 62 00 90 00 83 [11:12:44]RAPDU: 90 00 [11:12:44]wFMCommunicate OK [11:12:44]wFMCommunicate request_size=255 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3E 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EE 02 00 35 04 06 00 58 [11:12:44]Write to MH i2c: E2 02 01 AE 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3E 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EE 02 00 35 04 06 00 58 00 00 0C [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 AE 62 00 90 00 84 [11:12:44]RAPDU: 90 00 [11:12:44]wFMCommunicate OK [11:12:44]wFMCommunicate request_size=10 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 0D 02 02 05 83 5C DD C3 55 [11:12:44]Write to MH i2c: E2 0D 00 AF 62 80 0D 02 02 05 00 83 5C DD C3 55 00 00 69 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 03 00 AF 62 00 90 00 85 [11:12:44]RAPDU: 90 00 [11:12:44]wFMCommunicate OK [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 0D 03 02 [11:12:44]Write to MH i2c: E2 08 00 B0 62 80 0D 03 02 00 00 00 00 8D [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0B 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0B 00 B0 62 00 80 1F 0F C7 F3 DB AD 67 90 00 E5 [11:12:44]RAPDU: 80 1F 0F C7 F3 DB AD 67 90 00 [11:12:44]wFMCommunicate OK [11:12:44]SAM_PROTO_SignData done [11:12:44]FM_MakeSignedData done [11:12:44]CreateOFDProtocolMessage [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 11 00 00 [11:12:44]Write to MH i2c: E2 08 00 B1 62 80 11 00 00 00 00 00 00 8D [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 17 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 17 00 B1 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [11:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:44]wFMCommunicate OK [11:12:44]CreateOFDProtocolMessage done [11:12:44]OFDSenderStorePacket 192091 [11:12:44]StoreOFDPacket docnum=192091 [11:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 07 07 01 52 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3E 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EE 02 00 35 04 06 00 58 83 5C DD C3 55 80 1F 0F C7 F3 DB AD 67 [11:12:44]CheckFolder [11:12:44]dirname=/storage/ofd_packets [11:12:44]CheckFolder done [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00192091 [11:12:44]NVStorageSaveData ofd_packets/00192091 [11:12:44]File name is /storage/ofd_packets/00192091 [11:12:44]Write 301 bytes [11:12:44]NVStorageSaveData done [11:12:44]OFDSenderStorePacket done [11:12:44]KKMCreateOFDPacket done [11:12:44]NVStorageSaveData kkm_last_timestamp [11:12:44]File name is /storage/kkm_last_timestamp [11:12:44]Write 4 bytes [11:12:44]NVStorageSaveData done [11:12:44]ExternCall_PrintAddStr [11:12:44]wPrintStart [11:12:44]Write to MH i2c: 01 00 00 B2 62 14 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 B2 62 00 00 00 00 00 FF 0F 29 [11:12:44]RasterBufferAndPrint [11:12:44]line Счет N : (1)31401 [11:12:44]line ИНН: 02508201610067 [11:12:44]line Контрольно-Кассовый Чек [11:12:44]line ПРОДАЖА [11:12:44]line ТРК (МРК, ГНК) : 21 [11:12:44]line Товар: 2710124130 [11:12:44]line Аи-92-К-5 [11:12:44]line 5.980 * 66.90 [11:12:44]line = 400.06 [11:12:44]line НДС 12% НСП 1% [11:12:44]line > о реализуемом товаре [11:12:44]line ОКРУГЛЕНИЕ: -0.06 [11:12:44]line ИТОГО: 400.00 [11:12:44]line Внесено: 400.00 [11:12:44]line СДАЧА: 0.00 [11:12:44]line НСП 1% : 3.54 [11:12:44]line НДС 12% : 42.48 [11:12:44]line Наличными: 400.00 [11:12:44]line Безнал.: 0.00 [11:12:44]line Место: АЗС № 170 "Партнер Нефть" [11:12:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:12:44]line СНО: Общий режим [11:12:44]line Чек 123 27.10.2024 11:13 [11:12:44]line Смена: 542 ФФД: 1.0 [11:12:44]line ЗНМ: 0300000110 [11:12:44]line РНМ: 0000000000091776 [11:12:44]line Версия ККМ: 001 [11:12:44]line ФМ: 0000000000871754 [11:12:44]line ФД: 192091 [11:12:44]line ФПД: 97321221997397 [11:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111302&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192091&fm=97321221997397&tin=02508201610067®Number=0000000000091776&sum=40000 [11:12:45]OFD Sender: Processing packet 192091 [packets to send 75, broken 74] [11:12:45]ProducePacketName [11:12:45]name=ofd_packets/00192091 [11:12:45]OFD Sender: To server: pG, [11:12:45]CommunicateWithHost lk.salyk.kg:30040 [11:12:45]ConnectInit lk.salyk.kg [11:12:45]written 0, free lines is 4095 [11:12:45]Connected sock=8 [11:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 07 07 01 52 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3E 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EE 02 00 35 04 06 00 58 83 5C DD C3 55 80 1F 0F C7 F3 DB AD 67 [11:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 A8 47 00 EA B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EE 02 00 F4 03 04 00 06 C5 1D 67 B6 04 01 00 00 DF 6A A9 A3 22 09 3C 1C [11:12:45]CommunicateWithHost err = 0 [11:12:45]CheckOFDResponse [11:12:45]1017 (14) - 77093643461234 [11:12:45]1041 (16) - 0000000000871754 [11:12:45]1040 (4) - 192091 [11:12:45]1012 (4) - 27.10.2024 04:43 [11:12:45]1206 (1) - 0 [11:12:45]OFD Sender: Remove packet 192091 [11:12:45]ProducePacketName [11:12:45]name=ofd_packets/00192091 [11:12:45]NVStorageDeleteData [11:12:45]Write to MH i2c: 01 00 00 DD 62 3F [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 DD 62 00 00 00 00 00 9D 0C EF [11:12:45]RasterBufferAndPrint [11:12:45]line [11:12:45]line [11:12:45]line [11:12:45]line [11:12:45]line [11:12:45]written 0, free lines is 3237 [11:12:45]MH_Cut [11:12:45]Write to MH i2c: D1 01 00 E4 62 01 18 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D1 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D1 01 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D1 01 00 E4 62 00 17 [11:12:45]Write to MH i2c: 01 00 00 E5 62 47 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:46]OFD Sender: No OFD packet to send [11:12:46]*** Cut start [11:12:46]*** Partial cut [11:12:46]*** CUTSNS_PIN = 1 [11:12:46]*** CUTSNS_PIN = 0 [11:12:46]*** Brake cut motor [11:12:47]Read from MH i2c: 01 [11:12:47]MH_I2C_Read... [11:12:47]*** Stop cut motor [11:12:47]*** Cut end [11:12:47]Read from MH i2c: 01 07 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: 01 07 00 E5 62 00 00 00 00 00 FF 0F 5C [11:12:47]process_action close_receipt done [11:12:47]requested_data is exist [11:12:47]produce_requested_data [11:12:47]requested_item fm.sn is exist - process it [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 11 00 00 [11:12:47]Write to MH i2c: E2 08 00 E6 62 80 11 00 00 00 00 00 00 C2 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 17 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 17 00 E6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [11:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:47]wFMCommunicate OK [11:12:47]requested_item fd.num is exist - process it [11:12:47]SAM_PROTO_GetFieldsCounters [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 13 00 00 [11:12:47]Write to MH i2c: E2 08 00 E7 62 80 13 00 00 00 00 00 00 C5 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 62 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 62 00 E7 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_GetFieldsCounters done [11:12:47]requested_item shift.num is exist - process it [11:12:47]requested_item shift.opened is exist - process it [11:12:47]req_shift_opened [11:12:47]FM_GetShiftState [11:12:47]SAM_PROTO_GetShiftState [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 13 01 00 [11:12:47]Write to MH i2c: E2 08 00 E8 62 80 13 01 00 00 00 00 00 C7 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 E8 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 08 [11:12:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_GetShiftState done [11:12:47]FM_GetShiftState done [11:12:47]req_shift_opened done [11:12:47]requested_item shift.open_date is exist - process it [11:12:47]req_shift_open_date [11:12:47]req_shift_open_date done [11:12:47]produce_requested_data done [11:12:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192091,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:12:47]process_action_free close_receipt [11:12:47]json_value_free [11:12:47]json_value_free done [11:12:47]process_json_proto returns [11:12:47]Send response to host [11:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192091,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:12:47]free response buf [11:12:47]execute_script done [11:12:47]execute_script returns [11:12:47]free content buf [11:12:47]Sock 6.Close socket [11:12:47]Sock 6.Thread stoped [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:10]accept exits with 5 [11:13:10]New connection [11:13:10]New thread 3066817892 created [11:13:10]Thread 3066961252 joined [11:13:10]Waiting for new connection... [11:13:10] Sock 5.Parse request [11:13:10]Sock 5.Check first char [11:13:10]Sock 5.First char is OK [11:13:10]request: POST /json_proto HTTP/1.0 [11:13:10]Method: POST [11:13:10]URL: /json_proto [11:13:10]Method is POST - this is cgi request [11:13:10]url: /json_proto [11:13:10]query_string will be loaded in cgi processing [11:13:10]execute_cgi json_proto POST (null) [11:13:10]execute_cgi path=json_proto method=POST [11:13:10]POST find Content-Length [11:13:10]Host: 172.17.63.131:8080 [11:13:10]Content-Length: 676 [11:13:10]Content-Type: application/json [11:13:10] [11:13:10]POST finish read [11:13:10]Found Content-Length = 676 [11:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:10]execute_script... [11:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:10]POST & json_proto [11:13:10]process_json_proto [11:13:10]json parsed OK: [11:13:10]protocol is kg_v1.0 [11:13:10]action value=close_receipt [11:13:10]process_action close_receipt [11:13:10]cmd_close_receipt [11:13:10]MH_GetDate [11:13:10]Write to MH i2c: F0 00 00 E9 62 3A [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 09 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 09 00 E9 62 00 59 20 1E 67 22 05 6E 64 3A [11:13:10]GetLastDocTimeStamp 1730027582 [11:13:10]current date 1730027609 [11:13:10]FM_GetShiftState [11:13:10]SAM_PROTO_GetShiftState [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 13 01 00 [11:13:10]Write to MH i2c: E2 08 00 EA 62 80 13 01 00 00 00 00 00 C9 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 EA 62 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [11:13:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_GetShiftState done [11:13:10]FM_GetShiftState done [11:13:10]opened in 1729989159 [11:13:10]opened+sec_in_day 1730075559 [11:13:10]quantity*price = 50041 [11:13:10]sum+1 = 50042 [11:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 124 27.10.2024 11:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192092 ФПД: 237890704636400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192092&fm=237890704636400&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:11]StoreToDocumentArchive [11:13:11]shift 542 fd 192092 [11:13:11]save to /storage/0542/doc_00192092 [11:13:11]save last doc name /storage/0542/doc_00192092 to /storage/kkm_last_doc_name [11:13:11]save OK [11:13:11]Clear old archive folders... [11:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:11]tlvbuf is 01B75BC0 [11:13:11]SAM_PROTO_ClearQueue [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 09 00 00 [11:13:11]Write to MH i2c: E2 08 00 F7 62 80 09 00 00 00 00 00 00 CB [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 F7 62 00 90 00 CD [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_ClearQueue done [11:13:11]KKMCreateOFDPacket [11:13:11]OFDProtocolAddRootSTLVToBuf [11:13:11]FM_MakeSignedData [11:13:11]FM_MakeSignedData [11:13:11]SAM_PROTO_SignData [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 01 02 [11:13:11]Write to MH i2c: E2 08 00 F8 62 80 0D 01 02 00 00 00 00 D3 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 F8 62 00 90 00 CE [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=255 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EE 02 00 35 04 06 00 D8 [11:13:11]Write to MH i2c: E2 02 01 F9 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EE 02 00 35 04 06 00 D8 00 00 26 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 F9 62 00 90 00 CF [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=10 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 02 02 05 5C 3E F1 F9 F0 [11:13:11]Write to MH i2c: E2 0D 00 FA 62 80 0D 02 02 05 00 5C 3E F1 F9 F0 00 00 54 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 FA 62 00 90 00 D0 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 03 02 [11:13:11]Write to MH i2c: E2 08 00 FB 62 80 0D 03 02 00 00 00 00 D8 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 FB 62 00 A2 6C AB F0 AC 42 E0 FF 90 00 4F [11:13:11]RAPDU: A2 6C AB F0 AC 42 E0 FF 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_SignData done [11:13:11]FM_MakeSignedData done [11:13:11]CreateOFDProtocolMessage [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 11 00 00 [11:13:11]Write to MH i2c: E2 08 00 FC 62 80 11 00 00 00 00 00 00 D8 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 FC 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [11:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:11]wFMCommunicate OK [11:13:11]CreateOFDProtocolMessage done [11:13:11]OFDSenderStorePacket 192092 [11:13:11]StoreOFDPacket docnum=192092 [11:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A F1 07 01 3A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EE 02 00 35 04 06 00 D8 5C 3E F1 F9 F0 A2 6C AB F0 AC 42 E0 FF [11:13:11]CheckFolder [11:13:11]dirname=/storage/ofd_packets [11:13:11]CheckFolder done [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00192092 [11:13:11]NVStorageSaveData ofd_packets/00192092 [11:13:11]File name is /storage/ofd_packets/00192092 [11:13:11]Write 301 bytes [11:13:11]NVStorageSaveData done [11:13:11]OFDSenderStorePacket done [11:13:11]KKMCreateOFDPacket done [11:13:11]NVStorageSaveData kkm_last_timestamp [11:13:11]File name is /storage/kkm_last_timestamp [11:13:11]Write 4 bytes [11:13:11]NVStorageSaveData done [11:13:11]ExternCall_PrintAddStr [11:13:11]wPrintStart [11:13:11]Write to MH i2c: 01 00 00 FD 62 5F [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 FD 62 00 00 00 00 00 FF 0F 74 [11:13:11]RasterBufferAndPrint [11:13:11]line Счет N : (1)31402 [11:13:11]line ИНН: 02508201610067 [11:13:11]line Контрольно-Кассовый Чек [11:13:11]line ПРОДАЖА [11:13:11]line ТРК (МРК, ГНК) : 12 [11:13:11]line Товар: 2710124130 [11:13:11]line Аи-92-К-5 [11:13:11]line 7.480 * 66.90 [11:13:11]line = 500.41 [11:13:11]line НДС 12% НСП 1% [11:13:11]line > о реализуемом товаре [11:13:11]line ОКРУГЛЕНИЕ: -0.41 [11:13:11]line ИТОГО: 500.00 [11:13:11]line Внесено: 500.00 [11:13:11]line СДАЧА: 0.00 [11:13:11]line НСП 1% : 4.43 [11:13:11]line НДС 12% : 53.14 [11:13:11]line Наличными: 500.00 [11:13:11]line Безнал.: 0.00 [11:13:11]line Место: АЗС № 170 "Партнер Нефть" [11:13:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:13:11]line СНО: Общий режим [11:13:11]line Чек 124 27.10.2024 11:13 [11:13:11]line Смена: 542 ФФД: 1.0 [11:13:11]line ЗНМ: 0300000110 [11:13:11]line РНМ: 0000000000091776 [11:13:11]line Версия ККМ: 001 [11:13:11]line ФМ: 0000000000871754 [11:13:11]line ФД: 192092 [11:13:11]line ФПД: 237890704636400 [11:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192092&fm=237890704636400&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:12]OFD Sender: Processing packet 192092 [packets to send 75, broken 74] [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00192092 [11:13:12]OFD Sender: To server: pG, [11:13:12]CommunicateWithHost lk.salyk.kg:30040 [11:13:12]ConnectInit lk.salyk.kg [11:13:12]written 0, free lines is 4095 [11:13:12]Connected sock=8 [11:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A F1 07 01 3A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EE 02 00 35 04 06 00 D8 5C 3E F1 F9 F0 A2 6C AB F0 AC 42 E0 FF [11:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 6C 47 00 39 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EE 02 00 F4 03 04 00 21 C5 1D 67 B6 04 01 00 00 93 CD DC 1C 5C 1E 67 00 [11:13:12]CommunicateWithHost err = 0 [11:13:12]CheckOFDResponse [11:13:12]1017 (14) - 77093643461234 [11:13:12]1041 (16) - 0000000000871754 [11:13:12]1040 (4) - 192092 [11:13:12]1012 (4) - 27.10.2024 04:44 [11:13:12]1206 (1) - 0 [11:13:12]OFD Sender: Remove packet 192092 [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00192092 [11:13:12]NVStorageDeleteData [11:13:12]Write to MH i2c: 01 00 00 28 63 8B [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 28 63 00 00 00 00 00 9E 0C 3C [11:13:12]RasterBufferAndPrint [11:13:12]line [11:13:12]line [11:13:12]line [11:13:12]line [11:13:12]line [11:13:12]written 0, free lines is 3238 [11:13:12]MH_Cut [11:13:12]Write to MH i2c: D1 01 00 2F 63 01 64 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: D1 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: D1 01 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: D1 01 00 2F 63 00 63 [11:13:12]Write to MH i2c: 01 00 00 30 63 93 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:13]OFD Sender: No OFD packet to send [11:13:13]*** Cut start [11:13:13]*** Partial cut [11:13:13]*** CUTSNS_PIN = 1 [11:13:13]*** CUTSNS_PIN = 0 [11:13:13]*** Brake cut motor [11:13:14]Read from MH i2c: 01 [11:13:14]MH_I2C_Read... [11:13:14]*** Stop cut motor [11:13:14]*** Cut end [11:13:14]Read from MH i2c: 01 07 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 30 63 00 00 00 00 00 FF 0F A8 [11:13:14]process_action close_receipt done [11:13:14]requested_data is exist [11:13:14]produce_requested_data [11:13:14]requested_item fm.sn is exist - process it [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 11 00 00 [11:13:14]Write to MH i2c: E2 08 00 31 63 80 11 00 00 00 00 00 00 0E [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 31 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [11:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:14]wFMCommunicate OK [11:13:14]requested_item fd.num is exist - process it [11:13:14]SAM_PROTO_GetFieldsCounters [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 00 00 [11:13:14]Write to MH i2c: E2 08 00 32 63 80 13 00 00 00 00 00 00 11 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 32 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetFieldsCounters done [11:13:14]requested_item shift.num is exist - process it [11:13:14]requested_item shift.opened is exist - process it [11:13:14]req_shift_opened [11:13:14]FM_GetShiftState [11:13:14]SAM_PROTO_GetShiftState [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 01 00 [11:13:14]Write to MH i2c: E2 08 00 33 63 80 13 01 00 00 00 00 00 13 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 33 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 54 [11:13:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetShiftState done [11:13:14]FM_GetShiftState done [11:13:14]req_shift_opened done [11:13:14]requested_item shift.open_date is exist - process it [11:13:14]req_shift_open_date [11:13:14]req_shift_open_date done [11:13:14]produce_requested_data done [11:13:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192092,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:13:14]process_action_free close_receipt [11:13:14]json_value_free [11:13:14]json_value_free done [11:13:14]process_json_proto returns [11:13:14]Send response to host [11:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192092,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:13:14]free response buf [11:13:14]execute_script done [11:13:14]execute_script returns [11:13:14]free content buf [11:13:14]Sock 5.Close socket [11:13:14]Sock 5.Thread stoped [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:30]accept exits with 6 [11:14:30]New connection [11:14:30]New thread 3066961252 created [11:14:30]Thread 3066817892 joined [11:14:30]Waiting for new connection... [11:14:30] Sock 6.Parse request [11:14:30]Sock 6.Check first char [11:14:30]Sock 6.First char is OK [11:14:30]request: POST /json_proto HTTP/1.0 [11:14:30]Method: POST [11:14:30]URL: /json_proto [11:14:30]Method is POST - this is cgi request [11:14:30]url: /json_proto [11:14:30]query_string will be loaded in cgi processing [11:14:30]execute_cgi json_proto POST (null) [11:14:30]execute_cgi path=json_proto method=POST [11:14:30]POST find Content-Length [11:14:30]Host: 172.17.63.131:8080 [11:14:30]Content-Length: 676 [11:14:30]Content-Type: application/json [11:14:30] [11:14:30]POST finish read [11:14:30]Found Content-Length = 676 [11:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:30]execute_script... [11:14: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)31403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:30]POST & json_proto [11:14:30]process_json_proto [11:14:30]json parsed OK: [11:14:30]protocol is kg_v1.0 [11:14:30]action value=close_receipt [11:14:30]process_action close_receipt [11:14:30]cmd_close_receipt [11:14:30]MH_GetDate [11:14:30]Write to MH i2c: F0 00 00 34 63 86 [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: F0 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: F0 09 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: F0 09 00 34 63 00 AA 20 1E 67 22 05 6E 64 D7 [11:14:30]GetLastDocTimeStamp 1730027610 [11:14:30]current date 1730027690 [11:14:30]FM_GetShiftState [11:14:30]SAM_PROTO_GetShiftState [11:14:30]wFMCommunicate request_size=4 [11:14:30]MH_SAM_APDU [11:14:30]CAPDU: 80 13 01 00 [11:14:30]Write to MH i2c: E2 08 00 35 63 80 13 01 00 00 00 00 00 15 [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:30]Read from MH i2c: E2 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 0E 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 0E 00 35 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [11:14:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:14:30]wFMCommunicate OK [11:14:30]SAM_PROTO_GetShiftState done [11:14:30]FM_GetShiftState done [11:14:30]opened in 1729989159 [11:14:30]opened+sec_in_day 1730075559 [11:14:30]quantity*price = 25020 [11:14:30]sum+1 = 25022 [11:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 125 27.10.2024 11:14 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192093 ФПД: 47237068963871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192093&fm=47237068963871&tin=02508201610067®Number=0000000000091776&sum=25000 [11:14:31]StoreToDocumentArchive [11:14:31]shift 542 fd 192093 [11:14:31]save to /storage/0542/doc_00192093 [11:14:31]save last doc name /storage/0542/doc_00192093 to /storage/kkm_last_doc_name [11:14:31]save OK [11:14:31]Clear old archive folders... [11:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:31]tlvbuf is 015C85F0 [11:14:31]SAM_PROTO_ClearQueue [11:14:31]wFMCommunicate request_size=4 [11:14:31]MH_SAM_APDU [11:14:31]CAPDU: 80 09 00 00 [11:14:31]Write to MH i2c: E2 08 00 42 63 80 09 00 00 00 00 00 00 17 [11:14:31]Write i2c OK [11:14:31]MH_I2C_Read... [11:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:31]Read from MH i2c: E2 [11:14:31]MH_I2C_Read... [11:14:31]Read from MH i2c: E2 03 00 [11:14:31]MH_I2C_Read... [11:14:31]Read from MH i2c: E2 03 00 42 63 00 90 00 19 [11:14:31]RAPDU: 90 00 [11:14:31]wFMCommunicate OK [11:14:31]SAM_PROTO_ClearQueue done [11:14:31]KKMCreateOFDPacket [11:14:31]OFDProtocolAddRootSTLVToBuf [11:14:31]FM_MakeSignedData [11:14:31]FM_MakeSignedData [11:14:31]SAM_PROTO_SignData [11:14:31]wFMCommunicate request_size=4 [11:14:31]MH_SAM_APDU [11:14:31]CAPDU: 80 0D 01 02 [11:14:31]Write to MH i2c: E2 08 00 43 63 80 0D 01 02 00 00 00 00 1F [11:14:31]Write i2c OK [11:14:31]MH_I2C_Read... [11:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:31]Read from MH i2c: E2 [11:14:31]MH_I2C_Read... [11:14:31]Read from MH i2c: E2 03 00 [11:14:31]MH_I2C_Read... [11:14:31]Read from MH i2c: E2 03 00 43 63 00 90 00 1A [11:14:31]RAPDU: 90 00 [11:14:31]wFMCommunicate OK [11:14:31]wFMCommunicate request_size=255 [11:14:31]MH_SAM_APDU [11:14: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AA 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EE 02 00 35 04 06 00 2A [11:14:31]Write to MH i2c: E2 02 01 44 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AA 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EE 02 00 35 04 06 00 2A 00 00 EF [11:14:31]Write i2c OK [11:14:31]MH_I2C_Read... [11:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 03 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 03 00 44 63 00 90 00 1B [11:14:32]RAPDU: 90 00 [11:14:32]wFMCommunicate OK [11:14:32]wFMCommunicate request_size=10 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 0D 02 02 05 F6 3C B7 40 1F [11:14:32]Write to MH i2c: E2 0D 00 45 63 80 0D 02 02 05 00 F6 3C B7 40 1F 00 00 74 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 03 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 03 00 45 63 00 90 00 1C [11:14:32]RAPDU: 90 00 [11:14:32]wFMCommunicate OK [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 0D 03 02 [11:14:32]Write to MH i2c: E2 08 00 46 63 80 0D 03 02 00 00 00 00 24 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0B 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0B 00 46 63 00 9B F5 92 63 7C 2E EB 8F 90 00 CE [11:14:32]RAPDU: 9B F5 92 63 7C 2E EB 8F 90 00 [11:14:32]wFMCommunicate OK [11:14:32]SAM_PROTO_SignData done [11:14:32]FM_MakeSignedData done [11:14:32]CreateOFDProtocolMessage [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 11 00 00 [11:14:32]Write to MH i2c: E2 08 00 47 63 80 11 00 00 00 00 00 00 24 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 17 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 17 00 47 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [11:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:14:32]wFMCommunicate OK [11:14:32]CreateOFDProtocolMessage done [11:14:32]OFDSenderStorePacket 192093 [11:14:32]StoreOFDPacket docnum=192093 [11:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 5B 07 01 26 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AA 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EE 02 00 35 04 06 00 2A F6 3C B7 40 1F 9B F5 92 63 7C 2E EB 8F [11:14:32]CheckFolder [11:14:32]dirname=/storage/ofd_packets [11:14:32]CheckFolder done [11:14:32]ProducePacketName [11:14:32]name=ofd_packets/00192093 [11:14:32]NVStorageSaveData ofd_packets/00192093 [11:14:32]File name is /storage/ofd_packets/00192093 [11:14:32]Write 301 bytes [11:14:32]NVStorageSaveData done [11:14:32]OFDSenderStorePacket done [11:14:32]KKMCreateOFDPacket done [11:14:32]NVStorageSaveData kkm_last_timestamp [11:14:32]File name is /storage/kkm_last_timestamp [11:14:32]Write 4 bytes [11:14:32]NVStorageSaveData done [11:14:32]ExternCall_PrintAddStr [11:14:32]wPrintStart [11:14:32]Write to MH i2c: 01 00 00 48 63 AB [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 48 63 00 00 00 00 00 FF 0F C0 [11:14:32]RasterBufferAndPrint [11:14:32]line Счет N : (1)31403 [11:14:32]line ИНН: 02508201610067 [11:14:32]line Контрольно-Кассовый Чек [11:14:32]line ПРОДАЖА [11:14:32]line ТРК (МРК, ГНК) : 21 [11:14:32]line Товар: 2710124130 [11:14:32]line Аи-92-К-5 [11:14:32]line 3.740 * 66.90 [11:14:32]line = 250.21 [11:14:32]line НДС 12% НСП 1% [11:14:32]line > о реализуемом товаре [11:14:32]line ОКРУГЛЕНИЕ: -0.21 [11:14:32]line ИТОГО: 250.00 [11:14:32]line Внесено: 250.00 [11:14:32]line СДАЧА: 0.00 [11:14:32]line НСП 1% : 2.21 [11:14:32]line НДС 12% : 26.57 [11:14:32]line Наличными: 250.00 [11:14:32]line Безнал.: 0.00 [11:14:32]line Место: АЗС № 170 "Партнер Нефть" [11:14:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:14:32]line СНО: Общий режим [11:14:32]line Чек 125 27.10.2024 11:14 [11:14:32]line Смена: 542 ФФД: 1.0 [11:14:32]line ЗНМ: 0300000110 [11:14:32]line РНМ: 0000000000091776 [11:14:32]line Версия ККМ: 001 [11:14:32]line ФМ: 0000000000871754 [11:14:32]line ФД: 192093 [11:14:32]line ФПД: 47237068963871 [11:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192093&fm=47237068963871&tin=02508201610067®Number=0000000000091776&sum=25000 [11:14:32]OFD Sender: Processing packet 192093 [packets to send 75, broken 74] [11:14:32]ProducePacketName [11:14:32]name=ofd_packets/00192093 [11:14:32]OFD Sender: To server: pG, [11:14:32]CommunicateWithHost lk.salyk.kg:30040 [11:14:32]ConnectInit lk.salyk.kg [11:14:32]written 0, free lines is 4095 [11:14:32]Connected sock=8 [11:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 5B 07 01 26 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 AA 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EE 02 00 35 04 06 00 2A F6 3C B7 40 1F 9B F5 92 63 7C 2E EB 8F [11:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2E 1F 47 00 71 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EE 02 00 F4 03 04 00 72 C5 1D 67 B6 04 01 00 00 77 BE 4B D5 22 6F 98 89 [11:14:32]CommunicateWithHost err = 0 [11:14:32]CheckOFDResponse [11:14:32]1017 (14) - 77093643461234 [11:14:32]1041 (16) - 0000000000871754 [11:14:32]1040 (4) - 192093 [11:14:32]1012 (4) - 27.10.2024 04:45 [11:14:32]1206 (1) - 0 [11:14:32]OFD Sender: Remove packet 192093 [11:14:32]ProducePacketName [11:14:32]name=ofd_packets/00192093 [11:14:32]NVStorageDeleteData [11:14:32]Write to MH i2c: 01 00 00 73 63 D6 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 73 63 00 00 00 00 00 A7 0C 90 [11:14:32]RasterBufferAndPrint [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]written 0, free lines is 3245 [11:14:32]MH_Cut [11:14:32]Write to MH i2c: D1 01 00 7A 63 01 AF [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 01 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 01 00 7A 63 00 AE [11:14:32]Write to MH i2c: 01 00 00 7B 63 DE [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:33]OFD Sender: No OFD packet to send [11:14:33]*** Cut start [11:14:33]*** Partial cut [11:14:33]*** CUTSNS_PIN = 1 [11:14:33]*** CUTSNS_PIN = 0 [11:14:34]*** Brake cut motor [11:14:34]Read from MH i2c: 01 [11:14:34]MH_I2C_Read... [11:14:34]*** Stop cut motor [11:14:34]*** Cut end [11:14:34]Read from MH i2c: 01 07 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 7B 63 00 00 00 00 00 FF 0F F3 [11:14:34]process_action close_receipt done [11:14:34]requested_data is exist [11:14:34]produce_requested_data [11:14:34]requested_item fm.sn is exist - process it [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 11 00 00 [11:14:34]Write to MH i2c: E2 08 00 7C 63 80 11 00 00 00 00 00 00 59 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 17 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 17 00 7C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [11:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:14:34]wFMCommunicate OK [11:14:34]requested_item fd.num is exist - process it [11:14:34]SAM_PROTO_GetFieldsCounters [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 13 00 00 [11:14:34]Write to MH i2c: E2 08 00 7D 63 80 13 00 00 00 00 00 00 5C [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 62 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 62 00 7D 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_GetFieldsCounters done [11:14:34]requested_item shift.num is exist - process it [11:14:34]requested_item shift.opened is exist - process it [11:14:34]req_shift_opened [11:14:34]FM_GetShiftState [11:14:34]SAM_PROTO_GetShiftState [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 13 01 00 [11:14:34]Write to MH i2c: E2 08 00 7E 63 80 13 01 00 00 00 00 00 5E [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0E 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0E 00 7E 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9F [11:14:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_GetShiftState done [11:14:34]FM_GetShiftState done [11:14:34]req_shift_opened done [11:14:34]requested_item shift.open_date is exist - process it [11:14:34]req_shift_open_date [11:14:34]req_shift_open_date done [11:14:34]produce_requested_data done [11:14:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192093,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:14:34]process_action_free close_receipt [11:14:34]json_value_free [11:14:34]json_value_free done [11:14:34]process_json_proto returns [11:14:34]Send response to host [11:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192093,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:14:34]free response buf [11:14:34]execute_script done [11:14:34]execute_script returns [11:14:34]free content buf [11:14:34]Sock 6.Close socket [11:14:34]Sock 6.Thread stoped [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:31]accept exits with 5 [11:15:31]New connection [11:15:31]New thread 3066817892 created [11:15:31]Thread 3066961252 joined [11:15:31]Waiting for new connection... [11:15:31] Sock 5.Parse request [11:15:31]Sock 5.Check first char [11:15:31]Sock 5.First char is OK [11:15:31]request: POST /json_proto HTTP/1.0 [11:15:31]Method: POST [11:15:31]URL: /json_proto [11:15:31]Method is POST - this is cgi request [11:15:31]url: /json_proto [11:15:31]query_string will be loaded in cgi processing [11:15:31]execute_cgi json_proto POST (null) [11:15:31]execute_cgi path=json_proto method=POST [11:15:31]POST find Content-Length [11:15:31]Host: 172.17.63.131:8080 [11:15:31]Content-Length: 676 [11:15:31]Content-Type: application/json [11:15:31] [11:15:31]POST finish read [11:15:31]Found Content-Length = 676 [11:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:31]execute_script... [11:15: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)31404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:31]POST & json_proto [11:15:31]process_json_proto [11:15:31]json parsed OK: [11:15:31]protocol is kg_v1.0 [11:15:31]action value=close_receipt [11:15:31]process_action close_receipt [11:15:31]cmd_close_receipt [11:15:31]MH_GetDate [11:15:31]Write to MH i2c: F0 00 00 7F 63 D1 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: F0 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: F0 09 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: F0 09 00 7F 63 00 E6 20 1E 67 22 05 6E 64 5E [11:15:31]GetLastDocTimeStamp 1730027690 [11:15:31]current date 1730027750 [11:15:31]FM_GetShiftState [11:15:31]SAM_PROTO_GetShiftState [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 13 01 00 [11:15:31]Write to MH i2c: E2 08 00 80 63 80 13 01 00 00 00 00 00 60 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 80 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [11:15:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_GetShiftState done [11:15:31]FM_GetShiftState done [11:15:31]opened in 1729989159 [11:15:31]opened+sec_in_day 1730075559 [11:15:31]quantity*price = 30038 [11:15:31]sum+1 = 30039 [11:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 126 27.10.2024 11:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192094 ФПД: 252777570351496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192094&fm=252777570351496&tin=02508201610067®Number=0000000000091776&sum=30000 [11:15:32]StoreToDocumentArchive [11:15:32]shift 542 fd 192094 [11:15:32]save to /storage/0542/doc_00192094 [11:15:32]save last doc name /storage/0542/doc_00192094 to /storage/kkm_last_doc_name [11:15:32]save OK [11:15:32]Clear old archive folders... [11:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:32]tlvbuf is 01B0C970 [11:15:32]SAM_PROTO_ClearQueue [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 09 00 00 [11:15:32]Write to MH i2c: E2 08 00 8D 63 80 09 00 00 00 00 00 00 62 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 8D 63 00 90 00 64 [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]SAM_PROTO_ClearQueue done [11:15:32]KKMCreateOFDPacket [11:15:32]OFDProtocolAddRootSTLVToBuf [11:15:32]FM_MakeSignedData [11:15:32]FM_MakeSignedData [11:15:32]SAM_PROTO_SignData [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 01 02 [11:15:32]Write to MH i2c: E2 08 00 8E 63 80 0D 01 02 00 00 00 00 6A [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 8E 63 00 90 00 65 [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=255 [11:15:32]MH_SAM_APDU [11:15: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EE 02 00 35 04 06 00 E5 [11:15:32]Write to MH i2c: E2 02 01 8F 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EE 02 00 35 04 06 00 E5 00 00 4E [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 8F 63 00 90 00 66 [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=10 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 02 02 05 E6 5D 49 B9 88 [11:15:32]Write to MH i2c: E2 0D 00 90 63 80 0D 02 02 05 00 E6 5D 49 B9 88 00 00 44 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 90 63 00 90 00 67 [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 03 02 [11:15:32]Write to MH i2c: E2 08 00 91 63 80 0D 03 02 00 00 00 00 6F [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 91 63 00 EB E6 9A 1E C6 F4 5F 1E 90 00 30 [11:15:32]RAPDU: EB E6 9A 1E C6 F4 5F 1E 90 00 [11:15:32]wFMCommunicate OK [11:15:32]SAM_PROTO_SignData done [11:15:32]FM_MakeSignedData done [11:15:32]CreateOFDProtocolMessage [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 11 00 00 [11:15:32]Write to MH i2c: E2 08 00 92 63 80 11 00 00 00 00 00 00 6F [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 92 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [11:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:15:32]wFMCommunicate OK [11:15:32]CreateOFDProtocolMessage done [11:15:32]OFDSenderStorePacket 192094 [11:15:32]StoreOFDPacket docnum=192094 [11:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 C6 07 01 82 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EE 02 00 35 04 06 00 E5 E6 5D 49 B9 88 EB E6 9A 1E C6 F4 5F 1E [11:15:32]CheckFolder [11:15:32]dirname=/storage/ofd_packets [11:15:32]CheckFolder done [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00192094 [11:15:32]NVStorageSaveData ofd_packets/00192094 [11:15:32]File name is /storage/ofd_packets/00192094 [11:15:32]Write 301 bytes [11:15:32]NVStorageSaveData done [11:15:32]OFDSenderStorePacket done [11:15:32]KKMCreateOFDPacket done [11:15:32]NVStorageSaveData kkm_last_timestamp [11:15:32]File name is /storage/kkm_last_timestamp [11:15:32]Write 4 bytes [11:15:32]NVStorageSaveData done [11:15:32]ExternCall_PrintAddStr [11:15:32]wPrintStart [11:15:32]Write to MH i2c: 01 00 00 93 63 F6 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 93 63 00 00 00 00 00 FF 0F 0B [11:15:32]RasterBufferAndPrint [11:15:32]line Счет N : (1)31404 [11:15:32]line ИНН: 02508201610067 [11:15:32]line Контрольно-Кассовый Чек [11:15:32]line ПРОДАЖА [11:15:32]line ТРК (МРК, ГНК) : 12 [11:15:32]line Товар: 2710124130 [11:15:32]line Аи-92-К-5 [11:15:32]line 4.490 * 66.90 [11:15:32]line = 300.38 [11:15:32]line НДС 12% НСП 1% [11:15:32]line > о реализуемом товаре [11:15:32]line ОКРУГЛЕНИЕ: -0.38 [11:15:32]line ИТОГО: 300.00 [11:15:32]line Внесено: 300.00 [11:15:32]line СДАЧА: 0.00 [11:15:32]line НСП 1% : 2.66 [11:15:32]line НДС 12% : 31.90 [11:15:32]line Наличными: 300.00 [11:15:32]line Безнал.: 0.00 [11:15:32]line Место: АЗС № 170 "Партнер Нефть" [11:15:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:15:32]line СНО: Общий режим [11:15:32]line Чек 126 27.10.2024 11:15 [11:15:32]line Смена: 542 ФФД: 1.0 [11:15:32]line ЗНМ: 0300000110 [11:15:32]line РНМ: 0000000000091776 [11:15:32]line Версия ККМ: 001 [11:15:32]line ФМ: 0000000000871754 [11:15:32]line ФД: 192094 [11:15:32]line ФПД: 252777570351496 [11:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192094&fm=252777570351496&tin=02508201610067®Number=0000000000091776&sum=30000 [11:15:33]OFD Sender: Processing packet 192094 [packets to send 75, broken 74] [11:15:33]ProducePacketName [11:15:33]name=ofd_packets/00192094 [11:15:33]OFD Sender: To server: pG, [11:15:33]CommunicateWithHost lk.salyk.kg:30040 [11:15:33]ConnectInit lk.salyk.kg [11:15:33]written 0, free lines is 4095 [11:15:33]Connected sock=8 [11:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 15 C6 07 01 82 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 20 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EE 02 00 35 04 06 00 E5 E6 5D 49 B9 88 EB E6 9A 1E C6 F4 5F 1E [11:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA EE 47 00 CA 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EE 02 00 F4 03 04 00 AE C5 1D 67 B6 04 01 00 00 8F 49 35 E5 34 1F F0 3F [11:15:33]CommunicateWithHost err = 0 [11:15:33]CheckOFDResponse [11:15:33]1017 (14) - 77093643461234 [11:15:33]1041 (16) - 0000000000871754 [11:15:33]1040 (4) - 192094 [11:15:33]1012 (4) - 27.10.2024 04:46 [11:15:33]1206 (1) - 0 [11:15:33]OFD Sender: Remove packet 192094 [11:15:33]ProducePacketName [11:15:33]name=ofd_packets/00192094 [11:15:33]NVStorageDeleteData [11:15:33]Write to MH i2c: 01 00 00 BE 63 21 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 07 00 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: 01 07 00 BE 63 00 00 00 00 00 A7 0C DB [11:15:33]RasterBufferAndPrint [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]line [11:15:33]written 0, free lines is 3245 [11:15:33]MH_Cut [11:15:33]Write to MH i2c: D1 01 00 C5 63 01 FA [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 C5 63 00 F9 [11:15:33]Write to MH i2c: 01 00 00 C6 63 29 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:34]OFD Sender: No OFD packet to send [11:15:34]*** Cut start [11:15:34]*** Partial cut [11:15:34]*** CUTSNS_PIN = 1 [11:15:34]*** CUTSNS_PIN = 0 [11:15:34]*** Brake cut motor [11:15:35]Read from MH i2c: 01 [11:15:35]MH_I2C_Read... [11:15:35]*** Stop cut motor [11:15:35]*** Cut end [11:15:35]Read from MH i2c: 01 07 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: 01 07 00 C6 63 00 00 00 00 00 FF 0F 3E [11:15:35]process_action close_receipt done [11:15:35]requested_data is exist [11:15:35]produce_requested_data [11:15:35]requested_item fm.sn is exist - process it [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 11 00 00 [11:15:35]Write to MH i2c: E2 08 00 C7 63 80 11 00 00 00 00 00 00 A4 [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 17 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 17 00 C7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [11:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:15:35]wFMCommunicate OK [11:15:35]requested_item fd.num is exist - process it [11:15:35]SAM_PROTO_GetFieldsCounters [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 13 00 00 [11:15:35]Write to MH i2c: E2 08 00 C8 63 80 13 00 00 00 00 00 00 A7 [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 62 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 62 00 C8 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:35]wFMCommunicate OK [11:15:35]SAM_PROTO_GetFieldsCounters done [11:15:35]requested_item shift.num is exist - process it [11:15:35]requested_item shift.opened is exist - process it [11:15:35]req_shift_opened [11:15:35]FM_GetShiftState [11:15:35]SAM_PROTO_GetShiftState [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 13 01 00 [11:15:35]Write to MH i2c: E2 08 00 C9 63 80 13 01 00 00 00 00 00 A9 [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 C9 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EA [11:15:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:15:35]wFMCommunicate OK [11:15:35]SAM_PROTO_GetShiftState done [11:15:35]FM_GetShiftState done [11:15:35]req_shift_opened done [11:15:35]requested_item shift.open_date is exist - process it [11:15:35]req_shift_open_date [11:15:35]req_shift_open_date done [11:15:35]produce_requested_data done [11:15:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192094,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:15:35]process_action_free close_receipt [11:15:35]json_value_free [11:15:35]json_value_free done [11:15:35]process_json_proto returns [11:15:35]Send response to host [11:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192094,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:15:35]free response buf [11:15:35]execute_script done [11:15:35]execute_script returns [11:15:35]free content buf [11:15:35]Sock 5.Close socket [11:15:35]Sock 5.Thread stoped [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:33]accept exits with 6 [11:17:33]New connection [11:17:33]New thread 3066961252 created [11:17:33]Thread 3066817892 joined [11:17:33]Waiting for new connection... [11:17:33] Sock 6.Parse request [11:17:33]Sock 6.Check first char [11:17:33]Sock 6.First char is OK [11:17:33]request: POST /json_proto HTTP/1.0 [11:17:33]Method: POST [11:17:33]URL: /json_proto [11:17:33]Method is POST - this is cgi request [11:17:33]url: /json_proto [11:17:33]query_string will be loaded in cgi processing [11:17:33]execute_cgi json_proto POST (null) [11:17:33]execute_cgi path=json_proto method=POST [11:17:33]POST find Content-Length [11:17:33]Host: 172.17.63.131:8080 [11:17:33]Content-Length: 677 [11:17:33]Content-Type: application/json [11:17:33] [11:17:33]POST finish read [11:17:33]Found Content-Length = 677 [11:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]execute_script... [11: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 : (1)31405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]POST & json_proto [11:17:33]process_json_proto [11:17:33]json parsed OK: [11:17:33]protocol is kg_v1.0 [11:17:33]action value=close_receipt [11:17:33]process_action close_receipt [11:17:33]cmd_close_receipt [11:17:33]MH_GetDate [11:17:33]Write to MH i2c: F0 00 00 CA 63 1C [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 CA 63 00 61 21 1E 67 22 05 6E 64 25 [11:17:33]GetLastDocTimeStamp 1730027750 [11:17:33]current date 1730027873 [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 CB 63 80 13 01 00 00 00 00 00 AB [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 CB 63 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [11:17:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]opened in 1729989159 [11:17:33]opened+sec_in_day 1730075559 [11:17:33]quantity*price = 70044 [11:17:33]sum+1 = 70045 [11:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 127 27.10.2024 11:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192095 ФПД: 49947720758824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111753&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192095&fm=49947720758824&tin=02508201610067®Number=0000000000091776&sum=70000 [11:17:34]StoreToDocumentArchive [11:17:34]shift 542 fd 192095 [11:17:34]save to /storage/0542/doc_00192095 [11:17:34]save last doc name /storage/0542/doc_00192095 to /storage/kkm_last_doc_name [11:17:34]save OK [11:17:34]Clear old archive folders... [11:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:34]tlvbuf is 015BFD20 [11:17:34]SAM_PROTO_ClearQueue [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 09 00 00 [11:17:34]Write to MH i2c: E2 08 00 D8 63 80 09 00 00 00 00 00 00 AD [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 D8 63 00 90 00 AF [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_ClearQueue done [11:17:34]KKMCreateOFDPacket [11:17:34]OFDProtocolAddRootSTLVToBuf [11:17:34]FM_MakeSignedData [11:17:34]FM_MakeSignedData [11:17:34]SAM_PROTO_SignData [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 01 02 [11:17:34]Write to MH i2c: E2 08 00 D9 63 80 0D 01 02 00 00 00 00 B5 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 D9 63 00 90 00 B0 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=255 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 61 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EE 02 00 35 04 06 00 2D [11:17:34]Write to MH i2c: E2 02 01 DA 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 61 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EE 02 00 35 04 06 00 2D 00 00 7B [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 DA 63 00 90 00 B1 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=10 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 02 02 05 6D 5C 27 36 28 [11:17:34]Write to MH i2c: E2 0D 00 DB 63 80 0D 02 02 05 00 6D 5C 27 36 28 00 00 10 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 DB 63 00 90 00 B2 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 03 02 [11:17:34]Write to MH i2c: E2 08 00 DC 63 80 0D 03 02 00 00 00 00 BA [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 DC 63 00 4D 0E 14 5C 5B CD 8D 4A 90 00 85 [11:17:34]RAPDU: 4D 0E 14 5C 5B CD 8D 4A 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_SignData done [11:17:34]FM_MakeSignedData done [11:17:34]CreateOFDProtocolMessage [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 11 00 00 [11:17:34]Write to MH i2c: E2 08 00 DD 63 80 11 00 00 00 00 00 00 BA [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 DD 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [11:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:17:35]wFMCommunicate OK [11:17:35]CreateOFDProtocolMessage done [11:17:35]OFDSenderStorePacket 192095 [11:17:35]StoreOFDPacket docnum=192095 [11:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B FA 07 01 41 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 61 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EE 02 00 35 04 06 00 2D 6D 5C 27 36 28 4D 0E 14 5C 5B CD 8D 4A [11:17:35]CheckFolder [11:17:35]dirname=/storage/ofd_packets [11:17:35]CheckFolder done [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00192095 [11:17:35]NVStorageSaveData ofd_packets/00192095 [11:17:35]File name is /storage/ofd_packets/00192095 [11:17:35]Write 301 bytes [11:17:35]NVStorageSaveData done [11:17:35]OFDSenderStorePacket done [11:17:35]KKMCreateOFDPacket done [11:17:35]NVStorageSaveData kkm_last_timestamp [11:17:35]File name is /storage/kkm_last_timestamp [11:17:35]Write 4 bytes [11:17:35]NVStorageSaveData done [11:17:35]ExternCall_PrintAddStr [11:17:35]wPrintStart [11:17:35]Write to MH i2c: 01 00 00 DE 63 41 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 DE 63 00 00 00 00 00 FF 0F 56 [11:17:35]RasterBufferAndPrint [11:17:35]line Счет N : (1)31405 [11:17:35]line ИНН: 02508201610067 [11:17:35]line Контрольно-Кассовый Чек [11:17:35]line ПРОДАЖА [11:17:35]line ТРК (МРК, ГНК) : 12 [11:17:35]line Товар: 2710124130 [11:17:35]line Аи-92-К-5 [11:17:35]line 10.470 * 66.90 [11:17:35]line = 700.44 [11:17:35]line НДС 12% НСП 1% [11:17:35]line > о реализуемом товаре [11:17:35]line ОКРУГЛЕНИЕ: -0.44 [11:17:35]line ИТОГО: 700.00 [11:17:35]line Внесено: 700.00 [11:17:35]line СДАЧА: 0.00 [11:17:35]line НСП 1% : 6.20 [11:17:35]line НДС 12% : 74.38 [11:17:35]line Наличными: 700.00 [11:17:35]line Безнал.: 0.00 [11:17:35]line Место: АЗС № 170 "Партнер Нефть" [11:17:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:17:35]line СНО: Общий режим [11:17:35]line Чек 127 27.10.2024 11:17 [11:17:35]line Смена: 542 ФФД: 1.0 [11:17:35]line ЗНМ: 0300000110 [11:17:35]line РНМ: 0000000000091776 [11:17:35]line Версия ККМ: 001 [11:17:35]line ФМ: 0000000000871754 [11:17:35]line ФД: 192095 [11:17:35]line ФПД: 49947720758824 [11:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111753&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192095&fm=49947720758824&tin=02508201610067®Number=0000000000091776&sum=70000 [11:17:35]OFD Sender: Processing packet 192095 [packets to send 75, broken 74] [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00192095 [11:17:35]OFD Sender: To server: pG, [11:17:35]CommunicateWithHost lk.salyk.kg:30040 [11:17:35]ConnectInit lk.salyk.kg [11:17:35]written 0, free lines is 4095 [11:17:35]Connected sock=8 [11: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 37 35 34 0F 01 00 00 5B FA 07 01 41 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 61 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EE 02 00 35 04 06 00 2D 6D 5C 27 36 28 4D 0E 14 5C 5B CD 8D 4A [11:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF E5 47 00 B1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EE 02 00 F4 03 04 00 29 C6 1D 67 B6 04 01 00 00 6E 98 23 B6 B2 61 3D 5D [11:17:35]CommunicateWithHost err = 0 [11:17:35]CheckOFDResponse [11:17:35]1017 (14) - 77093643461234 [11:17:35]1041 (16) - 0000000000871754 [11:17:35]1040 (4) - 192095 [11:17:35]1012 (4) - 27.10.2024 04:48 [11:17:35]1206 (1) - 0 [11:17:35]OFD Sender: Remove packet 192095 [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00192095 [11:17:35]NVStorageDeleteData [11:17:35]Write to MH i2c: 01 00 00 09 64 6D [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 09 64 00 00 00 00 00 AF 0C 2F [11:17:35]RasterBufferAndPrint [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]written 0, free lines is 3253 [11:17:35]MH_Cut [11:17:35]Write to MH i2c: D1 01 00 10 64 01 46 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 10 64 00 45 [11:17:35]Write to MH i2c: 01 00 00 11 64 75 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:36]OFD Sender: No OFD packet to send [11:17:36]*** Cut start [11:17:36]*** Partial cut [11:17:36]*** CUTSNS_PIN = 1 [11:17:36]*** CUTSNS_PIN = 0 [11:17:36]*** Brake cut motor [11:17:37]Read from MH i2c: 01 [11:17:37]MH_I2C_Read... [11:17:37]*** Stop cut motor [11:17:37]*** Cut end [11:17:37]Read from MH i2c: 01 07 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 11 64 00 00 00 00 00 FF 0F 8A [11:17:37]process_action close_receipt done [11:17:37]requested_data is exist [11:17:37]produce_requested_data [11:17:37]requested_item fm.sn is exist - process it [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 11 00 00 [11:17:37]Write to MH i2c: E2 08 00 12 64 80 11 00 00 00 00 00 00 F0 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 12 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [11:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:17:37]wFMCommunicate OK [11:17:37]requested_item fd.num is exist - process it [11:17:37]SAM_PROTO_GetFieldsCounters [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 00 00 [11:17:37]Write to MH i2c: E2 08 00 13 64 80 13 00 00 00 00 00 00 F3 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 13 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [11:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetFieldsCounters done [11:17:37]requested_item shift.num is exist - process it [11:17:37]requested_item shift.opened is exist - process it [11:17:37]req_shift_opened [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 14 64 80 13 01 00 00 00 00 00 F5 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 14 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 36 [11:17:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]req_shift_opened done [11:17:37]requested_item shift.open_date is exist - process it [11:17:37]req_shift_open_date [11:17:37]req_shift_open_date done [11:17:37]produce_requested_data done [11:17:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192095,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:17:37]process_action_free close_receipt [11:17:37]json_value_free [11:17:37]json_value_free done [11:17:37]process_json_proto returns [11:17:37]Send response to host [11:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192095,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:17:37]free response buf [11:17:37]execute_script done [11:17:37]execute_script returns [11:17:37]free content buf [11:17:37]Sock 6.Close socket [11:17:37]Sock 6.Thread stoped [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:29]accept exits with 5 [11:19:29]New connection [11:19:29]New thread 3066817892 created [11:19:29]Thread 3066961252 joined [11:19:29]Waiting for new connection... [11:19:29] Sock 5.Parse request [11:19:29]Sock 5.Check first char [11:19:29]Sock 5.First char is OK [11:19:29]request: POST /json_proto HTTP/1.0 [11:19:29]Method: POST [11:19:29]URL: /json_proto [11:19:29]Method is POST - this is cgi request [11:19:29]url: /json_proto [11:19:29]query_string will be loaded in cgi processing [11:19:29]execute_cgi json_proto POST (null) [11:19:29]execute_cgi path=json_proto method=POST [11:19:29]POST find Content-Length [11:19:29]Host: 172.17.63.131:8080 [11:19:29]Content-Length: 681 [11:19:29]Content-Type: application/json [11:19:29] [11:19:29]POST finish read [11:19:29]Found Content-Length = 681 [11:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:29]execute_script... [11:19: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)31406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:29]POST & json_proto [11:19:29]process_json_proto [11:19:29]json parsed OK: [11:19:29]protocol is kg_v1.0 [11:19:29]action value=close_receipt [11:19:29]process_action close_receipt [11:19:29]cmd_close_receipt [11:19:29]MH_GetDate [11:19:29]Write to MH i2c: F0 00 00 15 64 68 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: F0 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: F0 09 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: F0 09 00 15 64 00 D5 21 1E 67 22 05 6E 64 E5 [11:19:29]GetLastDocTimeStamp 1730027873 [11:19:29]current date 1730027989 [11:19:29]FM_GetShiftState [11:19:29]SAM_PROTO_GetShiftState [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 13 01 00 [11:19:29]Write to MH i2c: E2 08 00 16 64 80 13 01 00 00 00 00 00 F7 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0E 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0E 00 16 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [11:19:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:19:29]wFMCommunicate OK [11:19:29]SAM_PROTO_GetShiftState done [11:19:29]FM_GetShiftState done [11:19:29]opened in 1729989159 [11:19:29]opened+sec_in_day 1730075559 [11:19:29]quantity*price = 100015 [11:19:29]sum+1 = 100017 [11:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 128 27.10.2024 11:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192096 ФПД: 107189504277396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192096&fm=107189504277396&tin=02508201610067®Number=0000000000091776&sum=100000 [11:19:30]StoreToDocumentArchive [11:19:30]shift 542 fd 192096 [11:19:30]save to /storage/0542/doc_00192096 [11:19:30]save last doc name /storage/0542/doc_00192096 to /storage/kkm_last_doc_name [11:19:30]save OK [11:19:30]Clear old archive folders... [11:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:30]tlvbuf is 01A50AF0 [11:19:30]SAM_PROTO_ClearQueue [11:19:30]wFMCommunicate request_size=4 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 09 00 00 [11:19:30]Write to MH i2c: E2 08 00 23 64 80 09 00 00 00 00 00 00 F9 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 23 64 00 90 00 FB [11:19:30]RAPDU: 90 00 [11:19:30]wFMCommunicate OK [11:19:30]SAM_PROTO_ClearQueue done [11:19:30]KKMCreateOFDPacket [11:19:30]OFDProtocolAddRootSTLVToBuf [11:19:30]FM_MakeSignedData [11:19:30]FM_MakeSignedData [11:19:30]SAM_PROTO_SignData [11:19:30]wFMCommunicate request_size=4 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 0D 01 02 [11:19:30]Write to MH i2c: E2 08 00 24 64 80 0D 01 02 00 00 00 00 01 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 24 64 00 90 00 FC [11:19:30]RAPDU: 90 00 [11:19:30]wFMCommunicate OK [11:19:30]wFMCommunicate request_size=255 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D5 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EE 02 00 35 04 06 00 61 [11:19:30]Write to MH i2c: E2 02 01 25 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D5 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EE 02 00 35 04 06 00 61 00 00 5B [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 25 64 00 90 00 FD [11:19:30]RAPDU: 90 00 [11:19:30]wFMCommunicate OK [11:19:30]wFMCommunicate request_size=10 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 0D 02 02 05 7D 00 53 7B 94 [11:19:30]Write to MH i2c: E2 0D 00 26 64 80 0D 02 02 05 00 7D 00 53 7B 94 00 00 ED [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 03 00 26 64 00 90 00 FE [11:19:30]RAPDU: 90 00 [11:19:30]wFMCommunicate OK [11:19:30]wFMCommunicate request_size=4 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 0D 03 02 [11:19:30]Write to MH i2c: E2 08 00 27 64 80 0D 03 02 00 00 00 00 06 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 0B 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 0B 00 27 64 00 07 DC 50 B2 5E B5 7A 11 90 00 8A [11:19:30]RAPDU: 07 DC 50 B2 5E B5 7A 11 90 00 [11:19:30]wFMCommunicate OK [11:19:30]SAM_PROTO_SignData done [11:19:30]FM_MakeSignedData done [11:19:30]CreateOFDProtocolMessage [11:19:30]wFMCommunicate request_size=4 [11:19:30]MH_SAM_APDU [11:19:30]CAPDU: 80 11 00 00 [11:19:30]Write to MH i2c: E2 08 00 28 64 80 11 00 00 00 00 00 00 06 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:30]Read from MH i2c: E2 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 17 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: E2 17 00 28 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [11:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:19:30]wFMCommunicate OK [11:19:30]CreateOFDProtocolMessage done [11:19:30]OFDSenderStorePacket 192096 [11:19:30]StoreOFDPacket docnum=192096 [11:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 0F 07 01 70 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D5 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EE 02 00 35 04 06 00 61 7D 00 53 7B 94 07 DC 50 B2 5E B5 7A 11 [11:19:30]CheckFolder [11:19:30]dirname=/storage/ofd_packets [11:19:30]CheckFolder done [11:19:30]ProducePacketName [11:19:30]name=ofd_packets/00192096 [11:19:30]NVStorageSaveData ofd_packets/00192096 [11:19:30]File name is /storage/ofd_packets/00192096 [11:19:30]Write 301 bytes [11:19:30]NVStorageSaveData done [11:19:30]OFDSenderStorePacket done [11:19:30]KKMCreateOFDPacket done [11:19:30]NVStorageSaveData kkm_last_timestamp [11:19:30]File name is /storage/kkm_last_timestamp [11:19:30]Write 4 bytes [11:19:30]NVStorageSaveData done [11:19:30]ExternCall_PrintAddStr [11:19:30]wPrintStart [11:19:30]Write to MH i2c: 01 00 00 29 64 8D [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 29 64 00 00 00 00 00 FF 0F A2 [11:19:30]RasterBufferAndPrint [11:19:30]line Счет N : (1)31406 [11:19:30]line ИНН: 02508201610067 [11:19:30]line Контрольно-Кассовый Чек [11:19:30]line ПРОДАЖА [11:19:30]line ТРК (МРК, ГНК) : 12 [11:19:30]line Товар: 2710124130 [11:19:30]line Аи-92-К-5 [11:19:30]line 14.950 * 66.90 [11:19:30]line = 1000.16 [11:19:30]line НДС 12% НСП 1% [11:19:30]line > о реализуемом товаре [11:19:30]line ОКРУГЛЕНИЕ: -0.16 [11:19:30]line ИТОГО: 1000.00 [11:19:30]line Внесено: 1000.00 [11:19:30]line СДАЧА: 0.00 [11:19:30]line НСП 1% : 8.85 [11:19:30]line НДС 12% : 106.21 [11:19:30]line Наличными: 1000.00 [11:19:30]line Безнал.: 0.00 [11:19:30]line Место: АЗС № 170 "Партнер Нефть" [11:19:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:19:30]line СНО: Общий режим [11:19:30]line Чек 128 27.10.2024 11:19 [11:19:30]line Смена: 542 ФФД: 1.0 [11:19:30]line ЗНМ: 0300000110 [11:19:30]line РНМ: 0000000000091776 [11:19:30]line Версия ККМ: 001 [11:19:30]line ФМ: 0000000000871754 [11:19:30]line ФД: 192096 [11:19:30]line ФПД: 107189504277396 [11:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192096&fm=107189504277396&tin=02508201610067®Number=0000000000091776&sum=100000 [11:19:31]OFD Sender: Processing packet 192096 [packets to send 75, broken 74] [11:19:31]ProducePacketName [11:19:31]name=ofd_packets/00192096 [11:19:31]OFD Sender: To server: pG, [11:19:31]CommunicateWithHost lk.salyk.kg:30040 [11:19:31]ConnectInit lk.salyk.kg [11:19:31]written 0, free lines is 4095 [11:19:31]Connected sock=8 [11:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 0F 07 01 70 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D5 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EE 02 00 35 04 06 00 61 7D 00 53 7B 94 07 DC 50 B2 5E B5 7A 11 [11:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 DD 47 00 B6 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EE 02 00 F4 03 04 00 9C C6 1D 67 B6 04 01 00 00 9F 6D 40 5D 24 30 75 0A [11:19:31]CommunicateWithHost err = 0 [11:19:31]CheckOFDResponse [11:19:31]1017 (14) - 77093643461234 [11:19:31]1041 (16) - 0000000000871754 [11:19:31]1040 (4) - 192096 [11:19:31]1012 (4) - 27.10.2024 04:50 [11:19:31]1206 (1) - 0 [11:19:31]OFD Sender: Remove packet 192096 [11:19:31]ProducePacketName [11:19:31]name=ofd_packets/00192096 [11:19:31]NVStorageDeleteData [11:19:31]Write to MH i2c: 01 00 00 54 64 B8 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 54 64 00 00 00 00 00 AA 0C 75 [11:19:31]RasterBufferAndPrint [11:19:31]line [11:19:31]line [11:19:31]line [11:19:31]line [11:19:31]line [11:19:31]written 0, free lines is 3248 [11:19:31]MH_Cut [11:19:31]Write to MH i2c: D1 01 00 5B 64 01 91 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: D1 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: D1 01 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: D1 01 00 5B 64 00 90 [11:19:31]Write to MH i2c: 01 00 00 5C 64 C0 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:32]OFD Sender: No OFD packet to send [11:19:32]*** Cut start [11:19:32]*** Partial cut [11:19:32]*** CUTSNS_PIN = 1 [11:19:32]*** CUTSNS_PIN = 0 [11:19:32]*** Brake cut motor [11:19:33]Read from MH i2c: 01 [11:19:33]MH_I2C_Read... [11:19:33]*** Stop cut motor [11:19:33]*** Cut end [11:19:33]Read from MH i2c: 01 07 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 07 00 5C 64 00 00 00 00 00 FF 0F D5 [11:19:33]process_action close_receipt done [11:19:33]requested_data is exist [11:19:33]produce_requested_data [11:19:33]requested_item fm.sn is exist - process it [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 11 00 00 [11:19:33]Write to MH i2c: E2 08 00 5D 64 80 11 00 00 00 00 00 00 3B [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 17 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 17 00 5D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [11:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:19:33]wFMCommunicate OK [11:19:33]requested_item fd.num is exist - process it [11:19:33]SAM_PROTO_GetFieldsCounters [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 13 00 00 [11:19:33]Write to MH i2c: E2 08 00 5E 64 80 13 00 00 00 00 00 00 3E [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 62 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 62 00 5E 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [11:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_GetFieldsCounters done [11:19:33]requested_item shift.num is exist - process it [11:19:33]requested_item shift.opened is exist - process it [11:19:33]req_shift_opened [11:19:33]FM_GetShiftState [11:19:33]SAM_PROTO_GetShiftState [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 13 01 00 [11:19:33]Write to MH i2c: E2 08 00 5F 64 80 13 01 00 00 00 00 00 40 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 5F 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 81 [11:19:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_GetShiftState done [11:19:33]FM_GetShiftState done [11:19:33]req_shift_opened done [11:19:33]requested_item shift.open_date is exist - process it [11:19:33]req_shift_open_date [11:19:33]req_shift_open_date done [11:19:33]produce_requested_data done [11:19:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192096,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:19:33]process_action_free close_receipt [11:19:33]json_value_free [11:19:33]json_value_free done [11:19:33]process_json_proto returns [11:19:33]Send response to host [11:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192096,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:19:33]free response buf [11:19:33]execute_script done [11:19:33]execute_script returns [11:19:33]free content buf [11:19:33]Sock 5.Close socket [11:19:33]Sock 5.Thread stoped [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:02]accept exits with 6 [11:20:02]New connection [11:20:02]New thread 3066961252 created [11:20:02]Thread 3066817892 joined [11:20:02]Waiting for new connection... [11:20:02] Sock 6.Parse request [11:20:02]Sock 6.Check first char [11:20:02]Sock 6.First char is OK [11:20:02]request: POST /json_proto HTTP/1.0 [11:20:02]Method: POST [11:20:02]URL: /json_proto [11:20:02]Method is POST - this is cgi request [11:20:02]url: /json_proto [11:20:02]query_string will be loaded in cgi processing [11:20:02]execute_cgi json_proto POST (null) [11:20:02]execute_cgi path=json_proto method=POST [11:20:02]POST find Content-Length [11:20:02]Host: 172.17.63.131:8080 [11:20:02]Content-Length: 676 [11:20:02]Content-Type: application/json [11:20:02] [11:20:02]POST finish read [11:20:02]Found Content-Length = 676 [11:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:02]execute_script... [11:20: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)31407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:02]POST & json_proto [11:20:02]process_json_proto [11:20:02]json parsed OK: [11:20:02]protocol is kg_v1.0 [11:20:02]action value=close_receipt [11:20:02]process_action close_receipt [11:20:02]cmd_close_receipt [11:20:02]MH_GetDate [11:20:02]Write to MH i2c: F0 00 00 60 64 B3 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: F0 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: F0 09 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: F0 09 00 60 64 00 F6 21 1E 67 22 05 6E 64 51 [11:20:02]GetLastDocTimeStamp 1730027989 [11:20:02]current date 1730028022 [11:20:02]FM_GetShiftState [11:20:02]SAM_PROTO_GetShiftState [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 13 01 00 [11:20:02]Write to MH i2c: E2 08 00 61 64 80 13 01 00 00 00 00 00 42 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 0E 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 0E 00 61 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [11:20:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:20:02]wFMCommunicate OK [11:20:02]SAM_PROTO_GetShiftState done [11:20:02]FM_GetShiftState done [11:20:02]opened in 1729989159 [11:20:02]opened+sec_in_day 1730075559 [11:20:02]quantity*price = 50041 [11:20:02]sum+1 = 50042 [11:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 129 27.10.2024 11:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192097 ФПД: 25167037727579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112022&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192097&fm=25167037727579&tin=02508201610067®Number=0000000000091776&sum=50000 [11:20:03]StoreToDocumentArchive [11:20:03]shift 542 fd 192097 [11:20:03]save to /storage/0542/doc_00192097 [11:20:03]save last doc name /storage/0542/doc_00192097 to /storage/kkm_last_doc_name [11:20:03]save OK [11:20:03]Clear old archive folders... [11:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:03]tlvbuf is 015C8CA0 [11:20:03]SAM_PROTO_ClearQueue [11:20:03]wFMCommunicate request_size=4 [11:20:03]MH_SAM_APDU [11:20:03]CAPDU: 80 09 00 00 [11:20:03]Write to MH i2c: E2 08 00 6E 64 80 09 00 00 00 00 00 00 44 [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:03]Read from MH i2c: E2 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 03 00 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 03 00 6E 64 00 90 00 46 [11:20:03]RAPDU: 90 00 [11:20:03]wFMCommunicate OK [11:20:03]SAM_PROTO_ClearQueue done [11:20:03]KKMCreateOFDPacket [11:20:03]OFDProtocolAddRootSTLVToBuf [11:20:03]FM_MakeSignedData [11:20:03]FM_MakeSignedData [11:20:03]SAM_PROTO_SignData [11:20:03]wFMCommunicate request_size=4 [11:20:03]MH_SAM_APDU [11:20:03]CAPDU: 80 0D 01 02 [11:20:03]Write to MH i2c: E2 08 00 6F 64 80 0D 01 02 00 00 00 00 4C [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:03]Read from MH i2c: E2 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 03 00 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: E2 03 00 6F 64 00 90 00 47 [11:20:03]RAPDU: 90 00 [11:20:03]wFMCommunicate OK [11:20:03]wFMCommunicate request_size=255 [11:20:03]MH_SAM_APDU [11:20:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F6 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EE 02 00 35 04 06 00 16 [11:20:03]Write to MH i2c: E2 02 01 70 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F6 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EE 02 00 35 04 06 00 16 00 00 84 [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:04]Read from MH i2c: E2 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 03 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 03 00 70 64 00 90 00 48 [11:20:04]RAPDU: 90 00 [11:20:04]wFMCommunicate OK [11:20:04]wFMCommunicate request_size=10 [11:20:04]MH_SAM_APDU [11:20:04]CAPDU: 80 0D 02 02 05 E3 A8 58 03 5B [11:20:04]Write to MH i2c: E2 0D 00 71 64 80 0D 02 02 05 00 E3 A8 58 03 5B 00 00 9A [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:04]Read from MH i2c: E2 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 03 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 03 00 71 64 00 90 00 49 [11:20:04]RAPDU: 90 00 [11:20:04]wFMCommunicate OK [11:20:04]wFMCommunicate request_size=4 [11:20:04]MH_SAM_APDU [11:20:04]CAPDU: 80 0D 03 02 [11:20:04]Write to MH i2c: E2 08 00 72 64 80 0D 03 02 00 00 00 00 51 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:04]Read from MH i2c: E2 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 0B 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 0B 00 72 64 00 81 BD 35 18 73 53 38 47 90 00 22 [11:20:04]RAPDU: 81 BD 35 18 73 53 38 47 90 00 [11:20:04]wFMCommunicate OK [11:20:04]SAM_PROTO_SignData done [11:20:04]FM_MakeSignedData done [11:20:04]CreateOFDProtocolMessage [11:20:04]wFMCommunicate request_size=4 [11:20:04]MH_SAM_APDU [11:20:04]CAPDU: 80 11 00 00 [11:20:04]Write to MH i2c: E2 08 00 73 64 80 11 00 00 00 00 00 00 51 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:04]Read from MH i2c: E2 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 17 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 17 00 73 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [11:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:20:04]wFMCommunicate OK [11:20:04]CreateOFDProtocolMessage done [11:20:04]OFDSenderStorePacket 192097 [11:20:04]StoreOFDPacket docnum=192097 [11:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 77 07 01 1D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F6 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EE 02 00 35 04 06 00 16 E3 A8 58 03 5B 81 BD 35 18 73 53 38 47 [11:20:04]CheckFolder [11:20:04]dirname=/storage/ofd_packets [11:20:04]CheckFolder done [11:20:04]ProducePacketName [11:20:04]name=ofd_packets/00192097 [11:20:04]NVStorageSaveData ofd_packets/00192097 [11:20:04]File name is /storage/ofd_packets/00192097 [11:20:04]Write 301 bytes [11:20:04]NVStorageSaveData done [11:20:04]OFDSenderStorePacket done [11:20:04]KKMCreateOFDPacket done [11:20:04]NVStorageSaveData kkm_last_timestamp [11:20:04]File name is /storage/kkm_last_timestamp [11:20:04]Write 4 bytes [11:20:04]NVStorageSaveData done [11:20:04]ExternCall_PrintAddStr [11:20:04]wPrintStart [11:20:04]Write to MH i2c: 01 00 00 74 64 D8 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: 01 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: 01 07 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: 01 07 00 74 64 00 00 00 00 00 FF 0F ED [11:20:04]RasterBufferAndPrint [11:20:04]line Счет N : (1)31407 [11:20:04]line ИНН: 02508201610067 [11:20:04]line Контрольно-Кассовый Чек [11:20:04]line ПРОДАЖА [11:20:04]line ТРК (МРК, ГНК) : 21 [11:20:04]line Товар: 2710124130 [11:20:04]line Аи-92-К-5 [11:20:04]line 7.480 * 66.90 [11:20:04]line = 500.41 [11:20:04]line НДС 12% НСП 1% [11:20:04]line > о реализуемом товаре [11:20:04]line ОКРУГЛЕНИЕ: -0.41 [11:20:04]line ИТОГО: 500.00 [11:20:04]line Внесено: 500.00 [11:20:04]line СДАЧА: 0.00 [11:20:04]line НСП 1% : 4.43 [11:20:04]line НДС 12% : 53.14 [11:20:04]line Наличными: 500.00 [11:20:04]line Безнал.: 0.00 [11:20:04]line Место: АЗС № 170 "Партнер Нефть" [11:20:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:20:04]line СНО: Общий режим [11:20:04]line Чек 129 27.10.2024 11:20 [11:20:04]line Смена: 542 ФФД: 1.0 [11:20:04]line ЗНМ: 0300000110 [11:20:04]line РНМ: 0000000000091776 [11:20:04]line Версия ККМ: 001 [11:20:04]line ФМ: 0000000000871754 [11:20:04]line ФД: 192097 [11:20:04]line ФПД: 25167037727579 [11:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112022&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192097&fm=25167037727579&tin=02508201610067®Number=0000000000091776&sum=50000 [11:20:04]OFD Sender: Processing packet 192097 [packets to send 75, broken 74] [11:20:04]ProducePacketName [11:20:04]name=ofd_packets/00192097 [11:20:04]OFD Sender: To server: pG, [11:20:04]CommunicateWithHost lk.salyk.kg:30040 [11:20:04]ConnectInit lk.salyk.kg [11:20:04]written 0, free lines is 4095 [11:20:04]Connected sock=8 [11:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 77 07 01 1D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F6 21 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EE 02 00 35 04 06 00 16 E3 A8 58 03 5B 81 BD 35 18 73 53 38 47 [11:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 1B 47 00 C8 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EE 02 00 F4 03 04 00 BE C6 1D 67 B6 04 01 00 00 6F 0E 2E D8 B5 03 AD D2 [11:20:05]CommunicateWithHost err = 0 [11:20:05]CheckOFDResponse [11:20:05]1017 (14) - 77093643461234 [11:20:05]1041 (16) - 0000000000871754 [11:20:05]1040 (4) - 192097 [11:20:05]1012 (4) - 27.10.2024 04:51 [11:20:05]1206 (1) - 0 [11:20:05]OFD Sender: Remove packet 192097 [11:20:05]ProducePacketName [11:20:05]name=ofd_packets/00192097 [11:20:05]NVStorageDeleteData [11:20:05]Write to MH i2c: 01 00 00 9F 64 03 [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: 01 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: 01 07 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: 01 07 00 9F 64 00 00 00 00 00 AA 0C C0 [11:20:05]RasterBufferAndPrint [11:20:05]line [11:20:05]line [11:20:05]line [11:20:05]line [11:20:05]line [11:20:05]written 0, free lines is 3248 [11:20:05]MH_Cut [11:20:05]Write to MH i2c: D1 01 00 A6 64 01 DC [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: D1 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: D1 01 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: D1 01 00 A6 64 00 DB [11:20:05]Write to MH i2c: 01 00 00 A7 64 0B [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]OFD Sender: No OFD packet to send [11:20:06]*** Cut start [11:20:06]*** Partial cut [11:20:06]*** CUTSNS_PIN = 1 [11:20:06]*** CUTSNS_PIN = 0 [11:20:06]*** Brake cut motor [11:20:06]Read from MH i2c: 01 [11:20:06]MH_I2C_Read... [11:20:06]*** Stop cut motor [11:20:06]*** Cut end [11:20:06]Read from MH i2c: 01 07 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 07 00 A7 64 00 00 00 00 00 FF 0F 20 [11:20:06]process_action close_receipt done [11:20:06]requested_data is exist [11:20:06]produce_requested_data [11:20:06]requested_item fm.sn is exist - process it [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 11 00 00 [11:20:06]Write to MH i2c: E2 08 00 A8 64 80 11 00 00 00 00 00 00 86 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 17 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 17 00 A8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [11:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:20:06]wFMCommunicate OK [11:20:06]requested_item fd.num is exist - process it [11:20:06]SAM_PROTO_GetFieldsCounters [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 13 00 00 [11:20:06]Write to MH i2c: E2 08 00 A9 64 80 13 00 00 00 00 00 00 89 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 62 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 62 00 A9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:06]wFMCommunicate OK [11:20:06]SAM_PROTO_GetFieldsCounters done [11:20:06]requested_item shift.num is exist - process it [11:20:06]requested_item shift.opened is exist - process it [11:20:06]req_shift_opened [11:20:06]FM_GetShiftState [11:20:06]SAM_PROTO_GetShiftState [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 13 01 00 [11:20:06]Write to MH i2c: E2 08 00 AA 64 80 13 01 00 00 00 00 00 8B [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 0E 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 0E 00 AA 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CC [11:20:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:20:06]wFMCommunicate OK [11:20:06]SAM_PROTO_GetShiftState done [11:20:06]FM_GetShiftState done [11:20:06]req_shift_opened done [11:20:06]requested_item shift.open_date is exist - process it [11:20:06]req_shift_open_date [11:20:06]req_shift_open_date done [11:20:06]produce_requested_data done [11:20:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192097,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:20:06]process_action_free close_receipt [11:20:06]json_value_free [11:20:06]json_value_free done [11:20:06]process_json_proto returns [11:20:06]Send response to host [11:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192097,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:20:06]free response buf [11:20:06]execute_script done [11:20:06]execute_script returns [11:20:06]free content buf [11:20:06]Sock 6.Close socket [11:20:06]Sock 6.Thread stoped [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:01]accept exits with 5 [11:23:01]New connection [11:23:01]New thread 3066817892 created [11:23:01]Thread 3066961252 joined [11:23:01]Waiting for new connection... [11:23:01] Sock 5.Parse request [11:23:01]Sock 5.Check first char [11:23:01]Sock 5.First char is OK [11:23:01]request: POST /json_proto HTTP/1.0 [11:23:01]Method: POST [11:23:01]URL: /json_proto [11:23:01]Method is POST - this is cgi request [11:23:01]url: /json_proto [11:23:01]query_string will be loaded in cgi processing [11:23:01]execute_cgi json_proto POST (null) [11:23:01]execute_cgi path=json_proto method=POST [11:23:01]POST find Content-Length [11:23:01]Host: 172.17.63.131:8080 [11:23:01]Content-Length: 676 [11:23:01]Content-Type: application/json [11:23:01] [11:23:01]POST finish read [11:23:01]Found Content-Length = 676 [11:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]execute_script... [11:23: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)31408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]POST & json_proto [11:23:01]process_json_proto [11:23:01]json parsed OK: [11:23:01]protocol is kg_v1.0 [11:23:01]action value=close_receipt [11:23:01]process_action close_receipt [11:23:01]cmd_close_receipt [11:23:01]MH_GetDate [11:23:01]Write to MH i2c: F0 00 00 AB 64 FE [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 AB 64 00 A8 22 1E 67 22 05 6E 64 4F [11:23:01]GetLastDocTimeStamp 1730028022 [11:23:01]current date 1730028200 [11:23:01]FM_GetShiftState [11:23:01]SAM_PROTO_GetShiftState [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 01 00 [11:23:01]Write to MH i2c: E2 08 00 AC 64 80 13 01 00 00 00 00 00 8D [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 AC 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CE [11:23:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:23:01]wFMCommunicate OK [11:23:01]SAM_PROTO_GetShiftState done [11:23:01]FM_GetShiftState done [11:23:01]opened in 1729989159 [11:23:01]opened+sec_in_day 1730075559 [11:23:01]quantity*price = 50041 [11:23:01]sum+1 = 50042 [11:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 130 27.10.2024 11:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192098 ФПД: 91237570581744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192098&fm=91237570581744&tin=02508201610067®Number=0000000000091776&sum=50000 [11:23:02]StoreToDocumentArchive [11:23:02]shift 542 fd 192098 [11:23:02]save to /storage/0542/doc_00192098 [11:23:02]save last doc name /storage/0542/doc_00192098 to /storage/kkm_last_doc_name [11:23:02]save OK [11:23:02]Clear old archive folders... [11:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:02]tlvbuf is 018CA980 [11:23:02]SAM_PROTO_ClearQueue [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 09 00 00 [11:23:02]Write to MH i2c: E2 08 00 B9 64 80 09 00 00 00 00 00 00 8F [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 B9 64 00 90 00 91 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_ClearQueue done [11:23:02]KKMCreateOFDPacket [11:23:02]OFDProtocolAddRootSTLVToBuf [11:23:02]FM_MakeSignedData [11:23:02]FM_MakeSignedData [11:23:02]SAM_PROTO_SignData [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 01 02 [11:23:02]Write to MH i2c: E2 08 00 BA 64 80 0D 01 02 00 00 00 00 97 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 BA 64 00 90 00 92 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]wFMCommunicate request_size=255 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A8 22 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EE 02 00 35 04 06 00 52 [11:23:02]Write to MH i2c: E2 02 01 BB 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A8 22 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EE 02 00 35 04 06 00 52 00 00 C0 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 BB 64 00 90 00 93 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]wFMCommunicate request_size=10 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 02 02 05 FA E6 FC 14 F0 [11:23:02]Write to MH i2c: E2 0D 00 BC 64 80 0D 02 02 05 00 FA E6 FC 14 F0 00 00 84 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 BC 64 00 90 00 94 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 03 02 [11:23:02]Write to MH i2c: E2 08 00 BD 64 80 0D 03 02 00 00 00 00 9C [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0B 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0B 00 BD 64 00 8E 6C 93 0A 49 40 01 BA 90 00 78 [11:23:02]RAPDU: 8E 6C 93 0A 49 40 01 BA 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_SignData done [11:23:02]FM_MakeSignedData done [11:23:02]CreateOFDProtocolMessage [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 11 00 00 [11:23:02]Write to MH i2c: E2 08 00 BE 64 80 11 00 00 00 00 00 00 9C [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 17 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 17 00 BE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [11:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:23:02]wFMCommunicate OK [11:23:02]CreateOFDProtocolMessage done [11:23:02]OFDSenderStorePacket 192098 [11:23:02]StoreOFDPacket docnum=192098 [11:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 A6 07 01 9D 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A8 22 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EE 02 00 35 04 06 00 52 FA E6 FC 14 F0 8E 6C 93 0A 49 40 01 BA [11:23:02]CheckFolder [11:23:02]dirname=/storage/ofd_packets [11:23:02]CheckFolder done [11:23:02]ProducePacketName [11:23:02]name=ofd_packets/00192098 [11:23:02]NVStorageSaveData ofd_packets/00192098 [11:23:02]File name is /storage/ofd_packets/00192098 [11:23:02]Write 301 bytes [11:23:02]NVStorageSaveData done [11:23:02]OFDSenderStorePacket done [11:23:02]KKMCreateOFDPacket done [11:23:02]NVStorageSaveData kkm_last_timestamp [11:23:02]File name is /storage/kkm_last_timestamp [11:23:02]Write 4 bytes [11:23:02]NVStorageSaveData done [11:23:02]ExternCall_PrintAddStr [11:23:02]wPrintStart [11:23:02]Write to MH i2c: 01 00 00 BF 64 23 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: 01 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: 01 07 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: 01 07 00 BF 64 00 00 00 00 00 FF 0F 38 [11:23:02]RasterBufferAndPrint [11:23:02]line Счет N : (1)31408 [11:23:02]line ИНН: 02508201610067 [11:23:02]line Контрольно-Кассовый Чек [11:23:02]line ПРОДАЖА [11:23:02]line ТРК (МРК, ГНК) : 12 [11:23:02]line Товар: 2710124130 [11:23:02]line Аи-92-К-5 [11:23:02]line 7.480 * 66.90 [11:23:02]line = 500.41 [11:23:02]line НДС 12% НСП 1% [11:23:02]line > о реализуемом товаре [11:23:02]line ОКРУГЛЕНИЕ: -0.41 [11:23:02]line ИТОГО: 500.00 [11:23:02]line Внесено: 500.00 [11:23:02]line СДАЧА: 0.00 [11:23:02]line НСП 1% : 4.43 [11:23:02]line НДС 12% : 53.14 [11:23:02]line Наличными: 500.00 [11:23:02]line Безнал.: 0.00 [11:23:02]line Место: АЗС № 170 "Партнер Нефть" [11:23:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:23:02]line СНО: Общий режим [11:23:02]line Чек 130 27.10.2024 11:23 [11:23:02]line Смена: 542 ФФД: 1.0 [11:23:02]line ЗНМ: 0300000110 [11:23:02]line РНМ: 0000000000091776 [11:23:02]line Версия ККМ: 001 [11:23:02]line ФМ: 0000000000871754 [11:23:02]line ФД: 192098 [11:23:02]line ФПД: 91237570581744 [11:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192098&fm=91237570581744&tin=02508201610067®Number=0000000000091776&sum=50000 [11:23:03]OFD Sender: Processing packet 192098 [packets to send 75, broken 74] [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00192098 [11:23:03]OFD Sender: To server: pG, [11:23:03]CommunicateWithHost lk.salyk.kg:30040 [11:23:03]ConnectInit lk.salyk.kg [11:23:03]written 0, free lines is 4095 [11:23:03]Connected sock=9 [11:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 A6 07 01 9D 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A8 22 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EE 02 00 35 04 06 00 52 FA E6 FC 14 F0 8E 6C 93 0A 49 40 01 BA [11:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2C D4 47 00 85 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EE 02 00 F4 03 04 00 70 C7 1D 67 B6 04 01 00 00 B5 CB 4C B1 E6 3A 73 B9 [11:23:03]CommunicateWithHost err = 0 [11:23:03]CheckOFDResponse [11:23:03]1017 (14) - 77093643461234 [11:23:03]1041 (16) - 0000000000871754 [11:23:03]1040 (4) - 192098 [11:23:03]1012 (4) - 27.10.2024 04:54 [11:23:03]1206 (1) - 0 [11:23:03]OFD Sender: Remove packet 192098 [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00192098 [11:23:03]NVStorageDeleteData [11:23:03]Write to MH i2c: 01 00 00 EA 64 4E [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 EA 64 00 00 00 00 00 A5 0C 06 [11:23:03]RasterBufferAndPrint [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]written 0, free lines is 3242 [11:23:03]MH_Cut [11:23:03]Write to MH i2c: D1 01 00 F1 64 01 27 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 01 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 01 00 F1 64 00 26 [11:23:03]Write to MH i2c: 01 00 00 F2 64 56 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]OFD Sender: No OFD packet to send [11:23:04]*** Cut start [11:23:04]*** Partial cut [11:23:04]*** CUTSNS_PIN = 1 [11:23:04]*** CUTSNS_PIN = 0 [11:23:04]*** Brake cut motor [11:23:05]Read from MH i2c: 01 [11:23:05]MH_I2C_Read... [11:23:05]*** Stop cut motor [11:23:05]*** Cut end [11:23:05]Read from MH i2c: 01 07 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 F2 64 00 00 00 00 00 FF 0F 6B [11:23:05]process_action close_receipt done [11:23:05]requested_data is exist [11:23:05]produce_requested_data [11:23:05]requested_item fm.sn is exist - process it [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 11 00 00 [11:23:05]Write to MH i2c: E2 08 00 F3 64 80 11 00 00 00 00 00 00 D1 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 F3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [11:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:23:05]wFMCommunicate OK [11:23:05]requested_item fd.num is exist - process it [11:23:05]SAM_PROTO_GetFieldsCounters [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 00 00 [11:23:05]Write to MH i2c: E2 08 00 F4 64 80 13 00 00 00 00 00 00 D4 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 F4 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetFieldsCounters done [11:23:05]requested_item shift.num is exist - process it [11:23:05]requested_item shift.opened is exist - process it [11:23:05]req_shift_opened [11:23:05]FM_GetShiftState [11:23:05]SAM_PROTO_GetShiftState [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 01 00 [11:23:05]Write to MH i2c: E2 08 00 F5 64 80 13 01 00 00 00 00 00 D6 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 F5 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 17 [11:23:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetShiftState done [11:23:05]FM_GetShiftState done [11:23:05]req_shift_opened done [11:23:05]requested_item shift.open_date is exist - process it [11:23:05]req_shift_open_date [11:23:05]req_shift_open_date done [11:23:05]produce_requested_data done [11:23:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192098,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:23:05]process_action_free close_receipt [11:23:05]json_value_free [11:23:05]json_value_free done [11:23:05]process_json_proto returns [11:23:05]Send response to host [11:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192098,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:23:05]free response buf [11:23:05]execute_script done [11:23:05]execute_script returns [11:23:05]free content buf [11:23:05]Sock 5.Close socket [11:23:05]Sock 5.Thread stoped [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:00]accept exits with 6 [11:26:00]New connection [11:26:00]New thread 3066961252 created [11:26:00]Thread 3066817892 joined [11:26:00]Waiting for new connection... [11:26:00] Sock 6.Parse request [11:26:00]Sock 6.Check first char [11:26:00]Sock 6.First char is OK [11:26:00]request: POST /json_proto HTTP/1.0 [11:26:00]Method: POST [11:26:00]URL: /json_proto [11:26:00]Method is POST - this is cgi request [11:26:00]url: /json_proto [11:26:00]query_string will be loaded in cgi processing [11:26:00]execute_cgi json_proto POST (null) [11:26:00]execute_cgi path=json_proto method=POST [11:26:00]POST find Content-Length [11:26:00]Host: 172.17.63.131:8080 [11:26:00]Content-Length: 676 [11:26:00]Content-Type: application/json [11:26:00] [11:26:00]POST finish read [11:26:00]Found Content-Length = 676 [11:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:00]execute_script... [11:26: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)31409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:00]POST & json_proto [11:26:00]process_json_proto [11:26:00]json parsed OK: [11:26:00]protocol is kg_v1.0 [11:26:00]action value=close_receipt [11:26:00]process_action close_receipt [11:26:00]cmd_close_receipt [11:26:00]MH_GetDate [11:26:00]Write to MH i2c: F0 00 00 F6 64 49 [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: F0 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: F0 09 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: F0 09 00 F6 64 00 5B 23 1E 67 22 05 6E 64 4E [11:26:00]GetLastDocTimeStamp 1730028200 [11:26:00]current date 1730028379 [11:26:00]FM_GetShiftState [11:26:00]SAM_PROTO_GetShiftState [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 13 01 00 [11:26:00]Write to MH i2c: E2 08 00 F7 64 80 13 01 00 00 00 00 00 D8 [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 F7 64 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [11:26:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:26:00]wFMCommunicate OK [11:26:00]SAM_PROTO_GetShiftState done [11:26:00]FM_GetShiftState done [11:26:00]opened in 1729989159 [11:26:00]opened+sec_in_day 1730075559 [11:26:00]quantity*price = 40006 [11:26:00]sum+1 = 40007 [11:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 131 27.10.2024 11:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192099 ФПД: 185712545361375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192099&fm=185712545361375&tin=02508201610067®Number=0000000000091776&sum=40000 [11:26:01]StoreToDocumentArchive [11:26:01]shift 542 fd 192099 [11:26:01]save to /storage/0542/doc_00192099 [11:26:01]save last doc name /storage/0542/doc_00192099 to /storage/kkm_last_doc_name [11:26:01]save OK [11:26:01]Clear old archive folders... [11:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:01]tlvbuf is 01D4BFF0 [11:26:01]SAM_PROTO_ClearQueue [11:26:01]wFMCommunicate request_size=4 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 09 00 00 [11:26:01]Write to MH i2c: E2 08 00 04 65 80 09 00 00 00 00 00 00 DB [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [11:26:01]RAPDU: 90 00 [11:26:01]wFMCommunicate OK [11:26:01]SAM_PROTO_ClearQueue done [11:26:01]KKMCreateOFDPacket [11:26:01]OFDProtocolAddRootSTLVToBuf [11:26:01]FM_MakeSignedData [11:26:01]FM_MakeSignedData [11:26:01]SAM_PROTO_SignData [11:26:01]wFMCommunicate request_size=4 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 0D 01 02 [11:26:01]Write to MH i2c: E2 08 00 05 65 80 0D 01 02 00 00 00 00 E3 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [11:26:01]RAPDU: 90 00 [11:26:01]wFMCommunicate OK [11:26:01]wFMCommunicate request_size=255 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5B 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EE 02 00 35 04 06 00 A8 [11:26:01]Write to MH i2c: E2 02 01 06 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5B 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EE 02 00 35 04 06 00 A8 00 00 E7 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [11:26:01]RAPDU: 90 00 [11:26:01]wFMCommunicate OK [11:26:01]wFMCommunicate request_size=10 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 0D 02 02 05 E7 92 4B ED DF [11:26:01]Write to MH i2c: E2 0D 00 07 65 80 0D 02 02 05 00 E7 92 4B ED DF 00 00 80 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 03 00 07 65 00 90 00 E0 [11:26:01]RAPDU: 90 00 [11:26:01]wFMCommunicate OK [11:26:01]wFMCommunicate request_size=4 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 0D 03 02 [11:26:01]Write to MH i2c: E2 08 00 08 65 80 0D 03 02 00 00 00 00 E8 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 0B 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 0B 00 08 65 00 EC 03 15 3D C5 44 E8 FA 90 00 15 [11:26:01]RAPDU: EC 03 15 3D C5 44 E8 FA 90 00 [11:26:01]wFMCommunicate OK [11:26:01]SAM_PROTO_SignData done [11:26:01]FM_MakeSignedData done [11:26:01]CreateOFDProtocolMessage [11:26:01]wFMCommunicate request_size=4 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 11 00 00 [11:26:01]Write to MH i2c: E2 08 00 09 65 80 11 00 00 00 00 00 00 E8 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 17 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 17 00 09 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [11:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:26:01]wFMCommunicate OK [11:26:01]CreateOFDProtocolMessage done [11:26:01]OFDSenderStorePacket 192099 [11:26:01]StoreOFDPacket docnum=192099 [11:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 C9 07 01 DC 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5B 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EE 02 00 35 04 06 00 A8 E7 92 4B ED DF EC 03 15 3D C5 44 E8 FA [11:26:01]CheckFolder [11:26:01]dirname=/storage/ofd_packets [11:26:01]CheckFolder done [11:26:01]ProducePacketName [11:26:01]name=ofd_packets/00192099 [11:26:01]NVStorageSaveData ofd_packets/00192099 [11:26:01]File name is /storage/ofd_packets/00192099 [11:26:01]Write 301 bytes [11:26:01]NVStorageSaveData done [11:26:01]OFDSenderStorePacket done [11:26:01]KKMCreateOFDPacket done [11:26:01]NVStorageSaveData kkm_last_timestamp [11:26:01]File name is /storage/kkm_last_timestamp [11:26:01]Write 4 bytes [11:26:01]NVStorageSaveData done [11:26:01]ExternCall_PrintAddStr [11:26:01]wPrintStart [11:26:01]Write to MH i2c: 01 00 00 0A 65 6F [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 0A 65 00 00 00 00 00 FF 0F 84 [11:26:01]RasterBufferAndPrint [11:26:01]line Счет N : (1)31409 [11:26:01]line ИНН: 02508201610067 [11:26:01]line Контрольно-Кассовый Чек [11:26:01]line ПРОДАЖА [11:26:01]line ТРК (МРК, ГНК) : 21 [11:26:01]line Товар: 2710124130 [11:26:01]line Аи-92-К-5 [11:26:01]line 5.980 * 66.90 [11:26:01]line = 400.06 [11:26:01]line НДС 12% НСП 1% [11:26:01]line > о реализуемом товаре [11:26:01]line ОКРУГЛЕНИЕ: -0.06 [11:26:01]line ИТОГО: 400.00 [11:26:01]line Внесено: 400.00 [11:26:01]line СДАЧА: 0.00 [11:26:01]line НСП 1% : 3.54 [11:26:01]line НДС 12% : 42.48 [11:26:01]line Наличными: 400.00 [11:26:01]line Безнал.: 0.00 [11:26:01]line Место: АЗС № 170 "Партнер Нефть" [11:26:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:26:01]line СНО: Общий режим [11:26:01]line Чек 131 27.10.2024 11:26 [11:26:01]line Смена: 542 ФФД: 1.0 [11:26:01]line ЗНМ: 0300000110 [11:26:01]line РНМ: 0000000000091776 [11:26:01]line Версия ККМ: 001 [11:26:01]line ФМ: 0000000000871754 [11:26:01]line ФД: 192099 [11:26:01]line ФПД: 185712545361375 [11:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192099&fm=185712545361375&tin=02508201610067®Number=0000000000091776&sum=40000 [11:26:02]OFD Sender: Processing packet 192099 [packets to send 75, broken 74] [11:26:02]ProducePacketName [11:26:02]name=ofd_packets/00192099 [11:26:02]OFD Sender: To server: pG, [11:26:02]CommunicateWithHost lk.salyk.kg:30040 [11:26:02]ConnectInit lk.salyk.kg [11:26:02]written 0, free lines is 4095 [11:26:02]Connected sock=8 [11:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 C9 07 01 DC 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5B 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EE 02 00 35 04 06 00 A8 E7 92 4B ED DF EC 03 15 3D C5 44 E8 FA [11:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A BD 47 00 54 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EE 02 00 F4 03 04 00 23 C8 1D 67 B6 04 01 00 00 4A E4 D7 04 FE A3 DF 86 [11:26:02]CommunicateWithHost err = 0 [11:26:02]CheckOFDResponse [11:26:02]1017 (14) - 77093643461234 [11:26:02]1041 (16) - 0000000000871754 [11:26:02]1040 (4) - 192099 [11:26:02]1012 (4) - 27.10.2024 04:57 [11:26:02]1206 (1) - 0 [11:26:02]OFD Sender: Remove packet 192099 [11:26:02]ProducePacketName [11:26:02]name=ofd_packets/00192099 [11:26:02]NVStorageDeleteData [11:26:02]Write to MH i2c: 01 00 00 35 65 9A [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: 01 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: 01 07 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: 01 07 00 35 65 00 00 00 00 00 A3 0C 50 [11:26:02]RasterBufferAndPrint [11:26:02]line [11:26:02]line [11:26:02]line [11:26:02]line [11:26:02]line [11:26:02]written 0, free lines is 3242 [11:26:02]MH_Cut [11:26:02]Write to MH i2c: D1 01 00 3C 65 01 73 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: D1 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: D1 01 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: D1 01 00 3C 65 00 72 [11:26:02]Write to MH i2c: 01 00 00 3D 65 A2 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]OFD Sender: No OFD packet to send [11:26:03]*** Cut start [11:26:03]*** Partial cut [11:26:03]*** CUTSNS_PIN = 1 [11:26:03]*** CUTSNS_PIN = 0 [11:26:03]*** Brake cut motor [11:26:04]Read from MH i2c: 01 [11:26:04]MH_I2C_Read... [11:26:04]*** Stop cut motor [11:26:04]*** Cut end [11:26:04]Read from MH i2c: 01 07 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 07 00 3D 65 00 00 00 00 00 FF 0F B7 [11:26:04]process_action close_receipt done [11:26:04]requested_data is exist [11:26:04]produce_requested_data [11:26:04]requested_item fm.sn is exist - process it [11:26:04]wFMCommunicate request_size=4 [11:26:04]MH_SAM_APDU [11:26:04]CAPDU: 80 11 00 00 [11:26:04]Write to MH i2c: E2 08 00 3E 65 80 11 00 00 00 00 00 00 1D [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:04]Read from MH i2c: E2 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 17 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 17 00 3E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [11:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:26:04]wFMCommunicate OK [11:26:04]requested_item fd.num is exist - process it [11:26:04]SAM_PROTO_GetFieldsCounters [11:26:04]wFMCommunicate request_size=4 [11:26:04]MH_SAM_APDU [11:26:04]CAPDU: 80 13 00 00 [11:26:04]Write to MH i2c: E2 08 00 3F 65 80 13 00 00 00 00 00 00 20 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:04]Read from MH i2c: E2 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 62 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 62 00 3F 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:04]wFMCommunicate OK [11:26:04]SAM_PROTO_GetFieldsCounters done [11:26:04]requested_item shift.num is exist - process it [11:26:04]requested_item shift.opened is exist - process it [11:26:04]req_shift_opened [11:26:04]FM_GetShiftState [11:26:04]SAM_PROTO_GetShiftState [11:26:04]wFMCommunicate request_size=4 [11:26:04]MH_SAM_APDU [11:26:04]CAPDU: 80 13 01 00 [11:26:04]Write to MH i2c: E2 08 00 40 65 80 13 01 00 00 00 00 00 22 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:04]Read from MH i2c: E2 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 40 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 63 [11:26:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:26:04]wFMCommunicate OK [11:26:04]SAM_PROTO_GetShiftState done [11:26:04]FM_GetShiftState done [11:26:04]req_shift_opened done [11:26:04]requested_item shift.open_date is exist - process it [11:26:04]req_shift_open_date [11:26:04]req_shift_open_date done [11:26:04]produce_requested_data done [11:26:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192099,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:26:04]process_action_free close_receipt [11:26:04]json_value_free [11:26:04]json_value_free done [11:26:04]process_json_proto returns [11:26:04]Send response to host [11:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192099,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:26:04]free response buf [11:26:04]execute_script done [11:26:04]execute_script returns [11:26:04]free content buf [11:26:04]Sock 6.Close socket [11:26:04]Sock 6.Thread stoped [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:13]accept exits with 5 [11:26:13]New connection [11:26:13]New thread 3066817892 created [11:26:13]Thread 3066961252 joined [11:26:13]Waiting for new connection... [11:26:13] Sock 5.Parse request [11:26:13]Sock 5.Check first char [11:26:13]Sock 5.First char is OK [11:26:13]request: POST /json_proto HTTP/1.0 [11:26:13]Method: POST [11:26:13]URL: /json_proto [11:26:13]Method is POST - this is cgi request [11:26:13]url: /json_proto [11:26:13]query_string will be loaded in cgi processing [11:26:13]execute_cgi json_proto POST (null) [11:26:13]execute_cgi path=json_proto method=POST [11:26:13]POST find Content-Length [11:26:13]Host: 172.17.63.131:8080 [11:26:13]Content-Length: 676 [11:26:13]Content-Type: application/json [11:26:13] [11:26:13]POST finish read [11:26:13]Found Content-Length = 676 [11:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:13]execute_script... [11:26:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:13]POST & json_proto [11:26:13]process_json_proto [11:26:13]json parsed OK: [11:26:13]protocol is kg_v1.0 [11:26:13]action value=close_receipt [11:26:13]process_action close_receipt [11:26:13]cmd_close_receipt [11:26:13]MH_GetDate [11:26:13]Write to MH i2c: F0 00 00 41 65 95 [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 09 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 09 00 41 65 00 69 23 1E 67 22 05 6E 64 A8 [11:26:13]GetLastDocTimeStamp 1730028379 [11:26:13]current date 1730028393 [11:26:13]FM_GetShiftState [11:26:13]SAM_PROTO_GetShiftState [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 01 00 [11:26:13]Write to MH i2c: E2 08 00 42 65 80 13 01 00 00 00 00 00 24 [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 42 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 65 [11:26:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:26:13]wFMCommunicate OK [11:26:13]SAM_PROTO_GetShiftState done [11:26:13]FM_GetShiftState done [11:26:13]opened in 1729989159 [11:26:13]opened+sec_in_day 1730075559 [11:26:13]quantity*price = 36059 [11:26:13]sum+1 = 36060 [11:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 132 27.10.2024 11:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192100 ФПД: 121945062041322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112633&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192100&fm=121945062041322&tin=02508201610067®Number=0000000000091776&sum=36000 [11:26:14]StoreToDocumentArchive [11:26:14]shift 542 fd 192100 [11:26:14]save to /storage/0542/doc_00192100 [11:26:14]save last doc name /storage/0542/doc_00192100 to /storage/kkm_last_doc_name [11:26:14]save OK [11:26:14]Clear old archive folders... [11:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:14]tlvbuf is 01960E80 [11:26:14]SAM_PROTO_ClearQueue [11:26:14]wFMCommunicate request_size=4 [11:26:14]MH_SAM_APDU [11:26:14]CAPDU: 80 09 00 00 [11:26:14]Write to MH i2c: E2 08 00 4F 65 80 09 00 00 00 00 00 00 26 [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:14]Read from MH i2c: E2 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 4F 65 00 90 00 28 [11:26:14]RAPDU: 90 00 [11:26:14]wFMCommunicate OK [11:26:14]SAM_PROTO_ClearQueue done [11:26:14]KKMCreateOFDPacket [11:26:14]OFDProtocolAddRootSTLVToBuf [11:26:14]FM_MakeSignedData [11:26:14]FM_MakeSignedData [11:26:14]SAM_PROTO_SignData [11:26:14]wFMCommunicate request_size=4 [11:26:14]MH_SAM_APDU [11:26:14]CAPDU: 80 0D 01 02 [11:26:14]Write to MH i2c: E2 08 00 50 65 80 0D 01 02 00 00 00 00 2E [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:14]Read from MH i2c: E2 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 50 65 00 90 00 29 [11:26:14]RAPDU: 90 00 [11:26:14]wFMCommunicate OK [11:26:14]wFMCommunicate request_size=255 [11:26:14]MH_SAM_APDU [11:26:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 69 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EE 02 00 35 04 06 00 6E [11:26:14]Write to MH i2c: E2 02 01 51 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 69 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EE 02 00 35 04 06 00 6E 00 00 15 [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 51 65 00 90 00 2A [11:26:15]RAPDU: 90 00 [11:26:15]wFMCommunicate OK [11:26:15]wFMCommunicate request_size=10 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 0D 02 02 05 E8 8C 1A E6 EA [11:26:15]Write to MH i2c: E2 0D 00 52 65 80 0D 02 02 05 00 E8 8C 1A E6 EA 00 00 99 [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 52 65 00 90 00 2B [11:26:15]RAPDU: 90 00 [11:26:15]wFMCommunicate OK [11:26:15]wFMCommunicate request_size=4 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 0D 03 02 [11:26:15]Write to MH i2c: E2 08 00 53 65 80 0D 03 02 00 00 00 00 33 [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 0B 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 0B 00 53 65 00 3C CA AE 25 7F D1 E4 99 90 00 DA [11:26:15]RAPDU: 3C CA AE 25 7F D1 E4 99 90 00 [11:26:15]wFMCommunicate OK [11:26:15]SAM_PROTO_SignData done [11:26:15]FM_MakeSignedData done [11:26:15]CreateOFDProtocolMessage [11:26:15]wFMCommunicate request_size=4 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 11 00 00 [11:26:15]Write to MH i2c: E2 08 00 54 65 80 11 00 00 00 00 00 00 33 [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 17 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 17 00 54 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [11:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:26:15]wFMCommunicate OK [11:26:15]CreateOFDProtocolMessage done [11:26:15]OFDSenderStorePacket 192100 [11:26:15]StoreOFDPacket docnum=192100 [11:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 9E 07 01 A6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 69 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EE 02 00 35 04 06 00 6E E8 8C 1A E6 EA 3C CA AE 25 7F D1 E4 99 [11:26:15]CheckFolder [11:26:15]dirname=/storage/ofd_packets [11:26:15]CheckFolder done [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00192100 [11:26:15]NVStorageSaveData ofd_packets/00192100 [11:26:15]File name is /storage/ofd_packets/00192100 [11:26:15]Write 301 bytes [11:26:15]NVStorageSaveData done [11:26:15]OFDSenderStorePacket done [11:26:15]KKMCreateOFDPacket done [11:26:15]NVStorageSaveData kkm_last_timestamp [11:26:15]File name is /storage/kkm_last_timestamp [11:26:15]Write 4 bytes [11:26:15]NVStorageSaveData done [11:26:15]ExternCall_PrintAddStr [11:26:15]wPrintStart [11:26:15]Write to MH i2c: 01 00 00 55 65 BA [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 55 65 00 00 00 00 00 FF 0F CF [11:26:15]RasterBufferAndPrint [11:26:15]line Счет N : (1)31410 [11:26:15]line ИНН: 02508201610067 [11:26:15]line Контрольно-Кассовый Чек [11:26:15]line ПРОДАЖА [11:26:15]line ТРК (МРК, ГНК) : 12 [11:26:15]line Товар: 2710124130 [11:26:15]line Аи-92-К-5 [11:26:15]line 5.390 * 66.90 [11:26:15]line = 360.59 [11:26:15]line НДС 12% НСП 1% [11:26:15]line > о реализуемом товаре [11:26:15]line ОКРУГЛЕНИЕ: -0.59 [11:26:15]line ИТОГО: 360.00 [11:26:15]line Внесено: 360.00 [11:26:15]line СДАЧА: 0.00 [11:26:15]line НСП 1% : 3.19 [11:26:15]line НДС 12% : 38.29 [11:26:15]line Наличными: 360.00 [11:26:15]line Безнал.: 0.00 [11:26:15]line Место: АЗС № 170 "Партнер Нефть" [11:26:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:26:15]line СНО: Общий режим [11:26:15]line Чек 132 27.10.2024 11:26 [11:26:15]line Смена: 542 ФФД: 1.0 [11:26:15]line ЗНМ: 0300000110 [11:26:15]line РНМ: 0000000000091776 [11:26:15]line Версия ККМ: 001 [11:26:15]line ФМ: 0000000000871754 [11:26:15]line ФД: 192100 [11:26:15]line ФПД: 121945062041322 [11:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112633&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192100&fm=121945062041322&tin=02508201610067®Number=0000000000091776&sum=36000 [11:26:15]OFD Sender: Processing packet 192100 [packets to send 75, broken 74] [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00192100 [11:26:15]OFD Sender: To server: pG, [11:26:15]CommunicateWithHost lk.salyk.kg:30040 [11:26:15]ConnectInit lk.salyk.kg [11:26:15]written 0, free lines is 4095 [11:26:15]Connected sock=8 [11: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 37 35 34 0F 01 00 00 77 9E 07 01 A6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 69 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EE 02 00 35 04 06 00 6E E8 8C 1A E6 EA 3C CA AE 25 7F D1 E4 99 [11: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 37 35 34 4F 00 00 00 7D 92 47 00 5E 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EE 02 00 F4 03 04 00 31 C8 1D 67 B6 04 01 00 00 A5 12 54 55 64 08 87 CA [11:26:15]CommunicateWithHost err = 0 [11:26:15]CheckOFDResponse [11:26:15]1017 (14) - 77093643461234 [11:26:15]1041 (16) - 0000000000871754 [11:26:15]1040 (4) - 192100 [11:26:15]1012 (4) - 27.10.2024 04:57 [11:26:15]1206 (1) - 0 [11:26:15]OFD Sender: Remove packet 192100 [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00192100 [11:26:15]NVStorageDeleteData [11:26:15]Write to MH i2c: 01 00 00 80 65 E5 [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 80 65 00 00 00 00 00 A3 0C 9B [11:26:15]RasterBufferAndPrint [11:26:15]line [11:26:15]line [11:26:15]line [11:26:15]line [11:26:15]line [11:26:15]written 0, free lines is 3242 [11:26:15]MH_Cut [11:26:15]Write to MH i2c: D1 01 00 87 65 01 BE [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: D1 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: D1 01 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: D1 01 00 87 65 00 BD [11:26:15]Write to MH i2c: 01 00 00 88 65 ED [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:16]OFD Sender: No OFD packet to send [11:26:16]*** Cut start [11:26:16]*** Partial cut [11:26:16]*** CUTSNS_PIN = 1 [11:26:16]*** CUTSNS_PIN = 0 [11:26:17]*** Brake cut motor [11:26:17]Read from MH i2c: 01 [11:26:17]MH_I2C_Read... [11:26:17]*** Stop cut motor [11:26:17]*** Cut end [11:26:17]Read from MH i2c: 01 07 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 88 65 00 00 00 00 00 FF 0F 02 [11:26:17]process_action close_receipt done [11:26:17]requested_data is exist [11:26:17]produce_requested_data [11:26:17]requested_item fm.sn is exist - process it [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 11 00 00 [11:26:17]Write to MH i2c: E2 08 00 89 65 80 11 00 00 00 00 00 00 68 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 89 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [11:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:26:17]wFMCommunicate OK [11:26:17]requested_item fd.num is exist - process it [11:26:17]SAM_PROTO_GetFieldsCounters [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 13 00 00 [11:26:17]Write to MH i2c: E2 08 00 8A 65 80 13 00 00 00 00 00 00 6B [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 62 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 62 00 8A 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_GetFieldsCounters done [11:26:17]requested_item shift.num is exist - process it [11:26:17]requested_item shift.opened is exist - process it [11:26:17]req_shift_opened [11:26:17]FM_GetShiftState [11:26:17]SAM_PROTO_GetShiftState [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 13 01 00 [11:26:17]Write to MH i2c: E2 08 00 8B 65 80 13 01 00 00 00 00 00 6D [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0E 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0E 00 8B 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AE [11:26:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_GetShiftState done [11:26:17]FM_GetShiftState done [11:26:17]req_shift_opened done [11:26:17]requested_item shift.open_date is exist - process it [11:26:17]req_shift_open_date [11:26:17]req_shift_open_date done [11:26:17]produce_requested_data done [11:26:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192100,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:26:17]process_action_free close_receipt [11:26:17]json_value_free [11:26:17]json_value_free done [11:26:17]process_json_proto returns [11:26:17]Send response to host [11:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192100,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:26:17]free response buf [11:26:17]execute_script done [11:26:17]execute_script returns [11:26:17]free content buf [11:26:17]Sock 5.Close socket [11:26:17]Sock 5.Thread stoped [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:10]accept exits with 6 [11:28:10]New connection [11:28:10]New thread 3066961252 created [11:28:10]Thread 3066817892 joined [11:28:10]Waiting for new connection... [11:28:10] Sock 6.Parse request [11:28:10]Sock 6.Check first char [11:28:10]Sock 6.First char is OK [11:28:10]request: POST /json_proto HTTP/1.0 [11:28:10]Method: POST [11:28:10]URL: /json_proto [11:28:10]Method is POST - this is cgi request [11:28:10]url: /json_proto [11:28:10]query_string will be loaded in cgi processing [11:28:10]execute_cgi json_proto POST (null) [11:28:10]execute_cgi path=json_proto method=POST [11:28:10]POST find Content-Length [11:28:10]Host: 172.17.63.131:8080 [11:28:10]Content-Length: 681 [11:28:10]Content-Type: application/json [11:28:10] [11:28:10]POST finish read [11:28:10]Found Content-Length = 681 [11:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:10]execute_script... [11:28:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:10]POST & json_proto [11:28:10]process_json_proto [11:28:10]json parsed OK: [11:28:10]protocol is kg_v1.0 [11:28:10]action value=close_receipt [11:28:10]process_action close_receipt [11:28:10]cmd_close_receipt [11:28:10]MH_GetDate [11:28:10]Write to MH i2c: F0 00 00 8C 65 E0 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: F0 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: F0 09 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: F0 09 00 8C 65 00 DD 23 1E 67 22 05 6E 64 67 [11:28:10]GetLastDocTimeStamp 1730028393 [11:28:10]current date 1730028509 [11:28:10]FM_GetShiftState [11:28:10]SAM_PROTO_GetShiftState [11:28:10]wFMCommunicate request_size=4 [11:28:10]MH_SAM_APDU [11:28:10]CAPDU: 80 13 01 00 [11:28:10]Write to MH i2c: E2 08 00 8D 65 80 13 01 00 00 00 00 00 6F [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:10]Read from MH i2c: E2 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 0E 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 0E 00 8D 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [11:28:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:28:10]wFMCommunicate OK [11:28:10]SAM_PROTO_GetShiftState done [11:28:10]FM_GetShiftState done [11:28:10]opened in 1729989159 [11:28:10]opened+sec_in_day 1730075559 [11:28:10]quantity*price = 100015 [11:28:10]sum+1 = 100017 [11:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 133 27.10.2024 11:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192101 ФПД: 274832918622560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192101&fm=274832918622560&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:11]StoreToDocumentArchive [11:28:11]shift 542 fd 192101 [11:28:11]save to /storage/0542/doc_00192101 [11:28:11]save last doc name /storage/0542/doc_00192101 to /storage/kkm_last_doc_name [11:28:11]save OK [11:28:11]Clear old archive folders... [11:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:11]tlvbuf is 01B4D370 [11:28:11]SAM_PROTO_ClearQueue [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 09 00 00 [11:28:11]Write to MH i2c: E2 08 00 9A 65 80 09 00 00 00 00 00 00 71 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 9A 65 00 90 00 73 [11:28:11]RAPDU: 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_ClearQueue done [11:28:11]KKMCreateOFDPacket [11:28:11]OFDProtocolAddRootSTLVToBuf [11:28:11]FM_MakeSignedData [11:28:11]FM_MakeSignedData [11:28:11]SAM_PROTO_SignData [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 0D 01 02 [11:28:11]Write to MH i2c: E2 08 00 9B 65 80 0D 01 02 00 00 00 00 79 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 9B 65 00 90 00 74 [11:28:11]RAPDU: 90 00 [11:28:11]wFMCommunicate OK [11:28:11]wFMCommunicate request_size=255 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DD 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EE 02 00 35 04 06 00 F9 [11:28:11]Write to MH i2c: E2 02 01 9C 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DD 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EE 02 00 35 04 06 00 F9 00 00 7F [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]OFD Sender: No OFD packet to send [11:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 9C 65 00 90 00 75 [11:28:11]RAPDU: 90 00 [11:28:11]wFMCommunicate OK [11:28:11]wFMCommunicate request_size=10 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 0D 02 02 05 F5 86 7C B1 60 [11:28:11]Write to MH i2c: E2 0D 00 9D 65 80 0D 02 02 05 00 F5 86 7C B1 60 00 00 8E [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 03 00 9D 65 00 90 00 76 [11:28:11]RAPDU: 90 00 [11:28:11]wFMCommunicate OK [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 0D 03 02 [11:28:11]Write to MH i2c: E2 08 00 9E 65 80 0D 03 02 00 00 00 00 7E [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0B 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0B 00 9E 65 00 53 E2 B2 36 14 8B 63 BF 90 00 5D [11:28:11]RAPDU: 53 E2 B2 36 14 8B 63 BF 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_SignData done [11:28:11]FM_MakeSignedData done [11:28:11]CreateOFDProtocolMessage [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 11 00 00 [11:28:11]Write to MH i2c: E2 08 00 9F 65 80 11 00 00 00 00 00 00 7E [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 9F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [11:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:11]wFMCommunicate OK [11:28:11]CreateOFDProtocolMessage done [11:28:11]OFDSenderStorePacket 192101 [11:28:11]StoreOFDPacket docnum=192101 [11:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 51 07 01 87 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DD 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EE 02 00 35 04 06 00 F9 F5 86 7C B1 60 53 E2 B2 36 14 8B 63 BF [11:28:11]CheckFolder [11:28:11]dirname=/storage/ofd_packets [11:28:11]CheckFolder done [11:28:11]ProducePacketName [11:28:11]name=ofd_packets/00192101 [11:28:11]NVStorageSaveData ofd_packets/00192101 [11:28:11]File name is /storage/ofd_packets/00192101 [11:28:11]Write 301 bytes [11:28:11]NVStorageSaveData done [11:28:11]OFDSenderStorePacket done [11:28:11]KKMCreateOFDPacket done [11:28:11]NVStorageSaveData kkm_last_timestamp [11:28:11]File name is /storage/kkm_last_timestamp [11:28:11]Write 4 bytes [11:28:11]NVStorageSaveData done [11:28:11]ExternCall_PrintAddStr [11:28:11]wPrintStart [11:28:11]Write to MH i2c: 01 00 00 A0 65 05 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 07 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 07 00 A0 65 00 00 00 00 00 FF 0F 1A [11:28:11]RasterBufferAndPrint [11:28:11]line Счет N : (1)31411 [11:28:11]line ИНН: 02508201610067 [11:28:11]line Контрольно-Кассовый Чек [11:28:11]line ПРОДАЖА [11:28:11]line ТРК (МРК, ГНК) : 21 [11:28:11]line Товар: 2710124130 [11:28:11]line Аи-92-К-5 [11:28:11]line 14.950 * 66.90 [11:28:11]line = 1000.16 [11:28:11]line НДС 12% НСП 1% [11:28:11]line > о реализуемом товаре [11:28:11]line ОКРУГЛЕНИЕ: -0.16 [11:28:11]line ИТОГО: 1000.00 [11:28:11]line Внесено: 1000.00 [11:28:11]line СДАЧА: 0.00 [11:28:11]line НСП 1% : 8.85 [11:28:11]line НДС 12% : 106.21 [11:28:11]line Наличными: 1000.00 [11:28:11]line Безнал.: 0.00 [11:28:11]line Место: АЗС № 170 "Партнер Нефть" [11:28:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:11]line СНО: Общий режим [11:28:11]line Чек 133 27.10.2024 11:28 [11:28:11]line Смена: 542 ФФД: 1.0 [11:28:11]line ЗНМ: 0300000110 [11:28:11]line РНМ: 0000000000091776 [11:28:11]line Версия ККМ: 001 [11:28:11]line ФМ: 0000000000871754 [11:28:11]line ФД: 192101 [11:28:11]line ФПД: 274832918622560 [11:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192101&fm=274832918622560&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:12]OFD Sender: Processing packet 192101 [packets to send 75, broken 74] [11:28:12]ProducePacketName [11:28:12]name=ofd_packets/00192101 [11:28:12]OFD Sender: To server: pG, [11:28:12]CommunicateWithHost lk.salyk.kg:30040 [11:28:12]ConnectInit lk.salyk.kg [11:28:12]written 0, free lines is 4095 [11:28:12]Connected sock=8 [11:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 51 07 01 87 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DD 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EE 02 00 35 04 06 00 F9 F5 86 7C B1 60 53 E2 B2 36 14 8B 63 BF [11:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 A8 47 00 E1 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EE 02 00 F4 03 04 00 A5 C8 1D 67 B6 04 01 00 00 75 FF 3E 43 79 22 EF EE [11:28:12]CommunicateWithHost err = 0 [11:28:12]CheckOFDResponse [11:28:12]1017 (14) - 77093643461234 [11:28:12]1041 (16) - 0000000000871754 [11:28:12]1040 (4) - 192101 [11:28:12]1012 (4) - 27.10.2024 04:59 [11:28:12]1206 (1) - 0 [11:28:12]OFD Sender: Remove packet 192101 [11:28:12]ProducePacketName [11:28:12]name=ofd_packets/00192101 [11:28:12]NVStorageDeleteData [11:28:12]Write to MH i2c: 01 00 00 CB 65 30 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 07 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 07 00 CB 65 00 00 00 00 00 9E 0C E1 [11:28:12]RasterBufferAndPrint [11:28:12]line [11:28:12]line [11:28:12]line [11:28:12]line [11:28:12]line [11:28:12]written 0, free lines is 3238 [11:28:12]MH_Cut [11:28:12]Write to MH i2c: D1 01 00 D2 65 01 09 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: D1 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: D1 01 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: D1 01 00 D2 65 00 08 [11:28:12]Write to MH i2c: 01 00 00 D3 65 38 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]OFD Sender: No OFD packet to send [11:28:13]*** Cut start [11:28:13]*** Partial cut [11:28:13]*** CUTSNS_PIN = 1 [11:28:13]*** CUTSNS_PIN = 0 [11:28:13]*** Brake cut motor [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]*** Stop cut motor [11:28:14]*** Cut end [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 D3 65 00 00 00 00 00 FF 0F 4D [11:28:14]process_action close_receipt done [11:28:14]requested_data is exist [11:28:14]produce_requested_data [11:28:14]requested_item fm.sn is exist - process it [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 11 00 00 [11:28:14]Write to MH i2c: E2 08 00 D4 65 80 11 00 00 00 00 00 00 B3 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 D4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [11:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:14]wFMCommunicate OK [11:28:14]requested_item fd.num is exist - process it [11:28:14]SAM_PROTO_GetFieldsCounters [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 13 00 00 [11:28:14]Write to MH i2c: E2 08 00 D5 65 80 13 00 00 00 00 00 00 B6 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 62 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 62 00 D5 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:28:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_GetFieldsCounters done [11:28:14]requested_item shift.num is exist - process it [11:28:14]requested_item shift.opened is exist - process it [11:28:14]req_shift_opened [11:28:14]FM_GetShiftState [11:28:14]SAM_PROTO_GetShiftState [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 13 01 00 [11:28:14]Write to MH i2c: E2 08 00 D6 65 80 13 01 00 00 00 00 00 B8 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 D6 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F9 [11:28:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_GetShiftState done [11:28:14]FM_GetShiftState done [11:28:14]req_shift_opened done [11:28:14]requested_item shift.open_date is exist - process it [11:28:14]req_shift_open_date [11:28:14]req_shift_open_date done [11:28:14]produce_requested_data done [11:28:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192101,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:28:14]process_action_free close_receipt [11:28:14]json_value_free [11:28:14]json_value_free done [11:28:14]process_json_proto returns [11:28:14]Send response to host [11:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192101,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:28:14]free response buf [11:28:14]execute_script done [11:28:14]execute_script returns [11:28:14]free content buf [11:28:14]Sock 6.Close socket [11:28:14]Sock 6.Thread stoped [11:28:15]accept exits with 5 [11:28:15]New connection [11:28:15]New thread 3066817892 created [11:28:15]Thread 3066961252 joined [11:28:15]Waiting for new connection... [11:28:15] Sock 5.Parse request [11:28:15]Sock 5.Check first char [11:28:15]Sock 5.First char is OK [11:28:15]request: POST /json_proto HTTP/1.0 [11:28:15]Method: POST [11:28:15]URL: /json_proto [11:28:15]Method is POST - this is cgi request [11:28:15]url: /json_proto [11:28:15]query_string will be loaded in cgi processing [11:28:15]execute_cgi json_proto POST (null) [11:28:15]execute_cgi path=json_proto method=POST [11:28:15]POST find Content-Length [11:28:15]Host: 172.17.63.131:8080 [11:28:15]Content-Length: 676 [11:28:15]Content-Type: application/json [11:28:15] [11:28:15]POST finish read [11:28:15]Found Content-Length = 676 [11:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:15]execute_script... [11:28: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)31413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:15]POST & json_proto [11:28:15]process_json_proto [11:28:15]json parsed OK: [11:28:15]protocol is kg_v1.0 [11:28:15]action value=close_receipt [11:28:15]process_action close_receipt [11:28:15]cmd_close_receipt [11:28:15]MH_GetDate [11:28:15]Write to MH i2c: F0 00 00 D7 65 2B [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 09 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 09 00 D7 65 00 E2 23 1E 67 22 05 6E 64 B7 [11:28:15]GetLastDocTimeStamp 1730028509 [11:28:15]current date 1730028514 [11:28:15]FM_GetShiftState [11:28:15]SAM_PROTO_GetShiftState [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 01 00 [11:28:15]Write to MH i2c: E2 08 00 D8 65 80 13 01 00 00 00 00 00 BA [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 D8 65 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [11:28:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetShiftState done [11:28:15]FM_GetShiftState done [11:28:15]opened in 1729989159 [11:28:15]opened+sec_in_day 1730075559 [11:28:15]quantity*price = 50041 [11:28:15]sum+1 = 50042 [11:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 134 27.10.2024 11:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192102 ФПД: 244201388229033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112834&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192102&fm=244201388229033&tin=02508201610067®Number=0000000000091776&sum=50000 [11:28:16]StoreToDocumentArchive [11:28:16]shift 542 fd 192102 [11:28:16]save to /storage/0542/doc_00192102 [11:28:16]save last doc name /storage/0542/doc_00192102 to /storage/kkm_last_doc_name [11:28:16]save OK [11:28:16]Clear old archive folders... [11:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:16]tlvbuf is 0185FFE0 [11:28:16]SAM_PROTO_ClearQueue [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 09 00 00 [11:28:16]Write to MH i2c: E2 08 00 E5 65 80 09 00 00 00 00 00 00 BC [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 E5 65 00 90 00 BE [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_ClearQueue done [11:28:16]KKMCreateOFDPacket [11:28:16]OFDProtocolAddRootSTLVToBuf [11:28:16]FM_MakeSignedData [11:28:16]FM_MakeSignedData [11:28:16]SAM_PROTO_SignData [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 01 02 [11:28:16]Write to MH i2c: E2 08 00 E6 65 80 0D 01 02 00 00 00 00 C4 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 E6 65 00 90 00 BF [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=255 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 E2 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EE 02 00 35 04 06 00 DE [11:28:16]Write to MH i2c: E2 02 01 E7 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E2 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EE 02 00 35 04 06 00 DE 00 00 BC [11:28:16]Write i2c OK [11:28:16]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 E7 65 00 90 00 C0 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=10 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 02 02 05 19 90 FF C1 A9 [11:28:17]Write to MH i2c: E2 0D 00 E8 65 80 0D 02 02 05 00 19 90 FF C1 A9 00 00 E3 [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 E8 65 00 90 00 C1 [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 E9 65 80 0D 03 02 00 00 00 00 C9 [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 E9 65 00 4D 16 56 0E DE AC 3E 02 90 00 5B [11:28:17]RAPDU: 4D 16 56 0E DE AC 3E 02 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 EA 65 80 11 00 00 00 00 00 00 C9 [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 EA 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [11:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:17]wFMCommunicate OK [11:28:17]CreateOFDProtocolMessage done [11:28:17]OFDSenderStorePacket 192102 [11:28:17]StoreOFDPacket docnum=192102 [11:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 E2 07 01 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E2 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EE 02 00 35 04 06 00 DE 19 90 FF C1 A9 4D 16 56 0E DE AC 3E 02 [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/00192102 [11:28:17]NVStorageSaveData ofd_packets/00192102 [11:28:17]File name is /storage/ofd_packets/00192102 [11:28:17]Write 301 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 EB 65 50 [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 EB 65 00 00 00 00 00 FF 0F 65 [11:28:17]RasterBufferAndPrint [11:28:17]line Счет N : (1)31413 [11:28:17]line ИНН: 02508201610067 [11:28:17]line Контрольно-Кассовый Чек [11:28:17]line ПРОДАЖА [11:28:17]line ТРК (МРК, ГНК) : 12 [11:28:17]line Товар: 2710124130 [11:28:17]line Аи-92-К-5 [11:28:17]line 7.480 * 66.90 [11:28:17]line = 500.41 [11:28:17]line НДС 12% НСП 1% [11:28:17]line > о реализуемом товаре [11:28:17]line ОКРУГЛЕНИЕ: -0.41 [11:28:17]line ИТОГО: 500.00 [11:28:17]line Внесено: 500.00 [11:28:17]line СДАЧА: 0.00 [11:28:17]line НСП 1% : 4.43 [11:28:17]line НДС 12% : 53.14 [11:28:17]line Наличными: 500.00 [11:28:17]line Безнал.: 0.00 [11:28:17]line Место: АЗС № 170 "Партнер Нефть" [11:28:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:17]line СНО: Общий режим [11:28:17]line Чек 134 27.10.2024 11:28 [11:28:17]line Смена: 542 ФФД: 1.0 [11:28:17]line ЗНМ: 0300000110 [11:28:17]line РНМ: 0000000000091776 [11:28:17]line Версия ККМ: 001 [11:28:17]line ФМ: 0000000000871754 [11:28:17]line ФД: 192102 [11:28:17]line ФПД: 244201388229033 [11:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112834&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192102&fm=244201388229033&tin=02508201610067®Number=0000000000091776&sum=50000 [11:28:17]written 0, free lines is 4095 [11:28:17]OFD Sender: Processing packet 192102 [packets to send 75, broken 74] [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00192102 [11:28:17]OFD Sender: To server: pG, [11:28:17]CommunicateWithHost lk.salyk.kg:30040 [11:28:17]ConnectInit lk.salyk.kg [11:28:17]Connected sock=8 [11:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 E2 07 01 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E2 23 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EE 02 00 35 04 06 00 DE 19 90 FF C1 A9 4D 16 56 0E DE AC 3E 02 [11:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 AC 47 00 1E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 EE 02 00 F4 03 04 00 AB C8 1D 67 B6 04 01 00 00 14 A5 A8 60 6C E9 90 2F [11:28:17]CommunicateWithHost err = 0 [11:28:17]CheckOFDResponse [11:28:17]1017 (14) - 77093643461234 [11:28:17]1041 (16) - 0000000000871754 [11:28:17]1040 (4) - 192102 [11:28:17]1012 (4) - 27.10.2024 04:59 [11:28:17]1206 (1) - 0 [11:28:17]OFD Sender: Remove packet 192102 [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00192102 [11:28:17]NVStorageDeleteData [11:28:17]Write to MH i2c: 01 00 00 16 66 7C [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 16 66 00 00 00 00 00 B0 0C 3F [11:28:17]RasterBufferAndPrint [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]written 0, free lines is 3262 [11:28:17]MH_Cut [11:28:17]Write to MH i2c: D1 01 00 1D 66 01 55 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 1D 66 00 54 [11:28:17]Write to MH i2c: 01 00 00 1E 66 84 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:18]OFD Sender: No OFD packet to send [11:28:18]*** Cut start [11:28:18]*** Partial cut [11:28:18]*** CUTSNS_PIN = 1 [11:28:18]*** CUTSNS_PIN = 0 [11:28:18]*** Brake cut motor [11:28:19]Read from MH i2c: 01 [11:28:19]MH_I2C_Read... [11:28:19]*** Stop cut motor [11:28:19]*** Cut end [11:28:19]Read from MH i2c: 01 07 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: 01 07 00 1E 66 00 00 00 00 00 FF 0F 99 [11:28:19]process_action close_receipt done [11:28:19]requested_data is exist [11:28:19]produce_requested_data [11:28:19]requested_item fm.sn is exist - process it [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 11 00 00 [11:28:19]Write to MH i2c: E2 08 00 1F 66 80 11 00 00 00 00 00 00 FF [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 17 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 17 00 1F 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [11:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:19]wFMCommunicate OK [11:28:19]requested_item fd.num is exist - process it [11:28:19]SAM_PROTO_GetFieldsCounters [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 13 00 00 [11:28:19]Write to MH i2c: E2 08 00 20 66 80 13 00 00 00 00 00 00 02 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 20 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetFieldsCounters done [11:28:19]requested_item shift.num is exist - process it [11:28:19]requested_item shift.opened is exist - process it [11:28:19]req_shift_opened [11:28:19]FM_GetShiftState [11:28:19]SAM_PROTO_GetShiftState [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 13 01 00 [11:28:19]Write to MH i2c: E2 08 00 21 66 80 13 01 00 00 00 00 00 04 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 21 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 45 [11:28:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetShiftState done [11:28:19]FM_GetShiftState done [11:28:19]req_shift_opened done [11:28:19]requested_item shift.open_date is exist - process it [11:28:19]req_shift_open_date [11:28:19]req_shift_open_date done [11:28:19]produce_requested_data done [11:28:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192102,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:28:19]process_action_free close_receipt [11:28:19]json_value_free [11:28:19]json_value_free done [11:28:19]process_json_proto returns [11:28:19]Send response to host [11:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192102,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:28:19]free response buf [11:28:19]execute_script done [11:28:19]execute_script returns [11:28:19]free content buf [11:28:19]Sock 5.Close socket [11:28:19]Sock 5.Thread stoped [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]accept exits with 6 [11:28:48]New connection [11:28:48]New thread 3066961252 created [11:28:48]Thread 3066817892 joined [11:28:48]Waiting for new connection... [11:28:48] Sock 6.Parse request [11:28:48]Sock 6.Check first char [11:28:48]Sock 6.First char is OK [11:28:48]request: POST /json_proto HTTP/1.0 [11:28:48]Method: POST [11:28:48]URL: /json_proto [11:28:48]Method is POST - this is cgi request [11:28:48]url: /json_proto [11:28:48]query_string will be loaded in cgi processing [11:28:48]execute_cgi json_proto POST (null) [11:28:48]execute_cgi path=json_proto method=POST [11:28:48]POST find Content-Length [11:28:48]Host: 172.17.63.131:8080 [11:28:48]Content-Length: 678 [11:28:48]Content-Type: application/json [11:28:48] [11:28:48]POST finish read [11:28:48]Found Content-Length = 678 [11:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31412", "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" : 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:28:48]execute_script... [11:28: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)31412", "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" : 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:28:48]POST & json_proto [11:28:48]process_json_proto [11:28:48]json parsed OK: [11:28:48]protocol is kg_v1.0 [11:28:48]action value=close_receipt [11:28:48]process_action close_receipt [11:28:48]cmd_close_receipt [11:28:48]MH_GetDate [11:28:48]Write to MH i2c: F0 00 00 22 66 77 [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 09 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: F0 09 00 22 66 00 03 24 1E 67 22 05 6E 64 25 [11:28:48]GetLastDocTimeStamp 1730028514 [11:28:48]current date 1730028547 [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 23 66 80 13 01 00 00 00 00 00 06 [11:28:48]Write i2c OK [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 [11:28:48]MH_I2C_Read... [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 23 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [11:28:48]RAPDU: 09 00 01 27 8A 1D 67 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]opened in 1729989159 [11:28:48]opened+sec_in_day 1730075559 [11:28:48]quantity*price = 100050 [11:28:48]sum+1 = 100052 [11:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 135 27.10.2024 11:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192103 ФПД: 246045425615907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192103&fm=246045425615907&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:49]StoreToDocumentArchive [11:28:49]shift 542 fd 192103 [11:28:49]save to /storage/0542/doc_00192103 [11:28:49]save last doc name /storage/0542/doc_00192103 to /storage/kkm_last_doc_name [11:28:49]save OK [11:28:49]Clear old archive folders... [11:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:49]tlvbuf is 01B4D0F0 [11:28:49]SAM_PROTO_ClearQueue [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 09 00 00 [11:28:49]Write to MH i2c: E2 08 00 30 66 80 09 00 00 00 00 00 00 08 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 30 66 00 90 00 0A [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_ClearQueue done [11:28:49]KKMCreateOFDPacket [11:28:49]OFDProtocolAddRootSTLVToBuf [11:28:49]FM_MakeSignedData [11:28:49]FM_MakeSignedData [11:28:49]SAM_PROTO_SignData [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 0D 01 02 [11:28:49]Write to MH i2c: E2 08 00 31 66 80 0D 01 02 00 00 00 00 10 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 31 66 00 90 00 0B [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]wFMCommunicate request_size=255 [11:28:49]MH_SAM_APDU [11:28: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 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 87 00 00 00 F4 03 04 00 03 24 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EE 02 00 35 04 06 00 DF C6 EA 31 [11:28:49]Write to MH i2c: E2 02 01 32 66 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 87 00 00 00 F4 03 04 00 03 24 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EE 02 00 35 04 06 00 DF C6 EA 31 00 00 04 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 32 66 00 90 00 0C [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]wFMCommunicate request_size=7 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 0D 02 02 02 44 23 [11:28:49]Write to MH i2c: E2 0A 00 33 66 80 0D 02 02 02 00 44 23 00 00 7E [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 03 00 33 66 00 90 00 0D [11:28:49]RAPDU: 90 00 [11:28:49]wFMCommunicate OK [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 0D 03 02 [11:28:49]Write to MH i2c: E2 08 00 34 66 80 0D 03 02 00 00 00 00 15 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 0B 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 0B 00 34 66 00 56 9A 56 96 3F 91 83 5C 90 00 A1 [11:28:49]RAPDU: 56 9A 56 96 3F 91 83 5C 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_SignData done [11:28:49]FM_MakeSignedData done [11:28:49]CreateOFDProtocolMessage [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 11 00 00 [11:28:49]Write to MH i2c: E2 08 00 35 66 80 11 00 00 00 00 00 00 15 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 17 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 17 00 35 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [11:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:49]wFMCommunicate OK [11:28:49]CreateOFDProtocolMessage done [11:28:49]OFDSenderStorePacket 192103 [11:28:49]StoreOFDPacket docnum=192103 [11:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8F 90 04 01 6E 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 87 00 00 00 F4 03 04 00 03 24 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EE 02 00 35 04 06 00 DF C6 EA 31 44 23 56 9A 56 96 3F 91 83 5C [11:28:49]CheckFolder [11:28:49]dirname=/storage/ofd_packets [11:28:49]CheckFolder done [11:28:49]ProducePacketName [11:28:49]name=ofd_packets/00192103 [11:28:49]NVStorageSaveData ofd_packets/00192103 [11:28:49]File name is /storage/ofd_packets/00192103 [11:28:49]Write 298 bytes [11:28:49]NVStorageSaveData done [11:28:49]OFDSenderStorePacket done [11:28:49]KKMCreateOFDPacket done [11:28:49]NVStorageSaveData kkm_last_timestamp [11:28:49]File name is /storage/kkm_last_timestamp [11:28:49]Write 4 bytes [11:28:49]NVStorageSaveData done [11:28:49]ExternCall_PrintAddStr [11:28:49]wPrintStart [11:28:49]Write to MH i2c: 01 00 00 36 66 9C [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: 01 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: 01 07 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: 01 07 00 36 66 00 00 00 00 00 FF 0F B1 [11:28:49]RasterBufferAndPrint [11:28:49]line Счет N : (1)31412 [11:28:49]line ИНН: 02508201610067 [11:28:49]line Контрольно-Кассовый Чек [11:28:49]line ПРОДАЖА [11:28:49]line ТРК (МРК, ГНК) : 11 [11:28:49]line Товар: 2710194210 [11:28:49]line ДТ-К-5 [11:28:49]line 13.130 * 76.20 [11:28:49]line = 1000.51 [11:28:49]line НДС 12% НСП 1% [11:28:49]line > о реализуемом товаре [11:28:49]line ОКРУГЛЕНИЕ: -0.51 [11:28:49]line ИТОГО: 1000.00 [11:28:49]line Внесено: 1000.00 [11:28:49]line СДАЧА: 0.00 [11:28:49]line НСП 1% : 8.85 [11:28:49]line НДС 12% : 106.25 [11:28:49]line Наличными: 1000.00 [11:28:49]line Безнал.: 0.00 [11:28:49]line Место: АЗС № 170 "Партнер Нефть" [11:28:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:49]line СНО: Общий режим [11:28:49]line Чек 135 27.10.2024 11:29 [11:28:49]line Смена: 542 ФФД: 1.0 [11:28:49]line ЗНМ: 0300000110 [11:28:49]line РНМ: 0000000000091776 [11:28:49]line Версия ККМ: 001 [11:28:49]line ФМ: 0000000000871754 [11:28:49]line ФД: 192103 [11:28:49]line ФПД: 246045425615907 [11:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192103&fm=246045425615907&tin=02508201610067®Number=0000000000091776&sum=100000 [11:28:50]OFD Sender: Processing packet 192103 [packets to send 75, broken 74] [11:28:50]ProducePacketName [11:28:50]name=ofd_packets/00192103 [11:28:50]OFD Sender: To server: pG, [11:28:50]CommunicateWithHost lk.salyk.kg:30040 [11:28:50]ConnectInit lk.salyk.kg [11:28:50]written 0, free lines is 4095 [11:28:50]Connected sock=5 [11:28:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8F 90 04 01 6E 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 87 00 00 00 F4 03 04 00 03 24 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EE 02 00 35 04 06 00 DF C6 EA 31 44 23 56 9A 56 96 3F 91 83 5C [11:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3E A3 47 00 D1 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EE 02 00 F4 03 04 00 CB C8 1D 67 B6 04 01 00 00 7C 5C DE 84 31 52 85 04 [11:28:50]CommunicateWithHost err = 0 [11:28:50]CheckOFDResponse [11:28:50]1017 (14) - 77093643461234 [11:28:50]1041 (16) - 0000000000871754 [11:28:50]1040 (4) - 192103 [11:28:50]1012 (4) - 27.10.2024 04:59 [11:28:50]1206 (1) - 0 [11:28:50]OFD Sender: Remove packet 192103 [11:28:50]ProducePacketName [11:28:50]name=ofd_packets/00192103 [11:28:50]NVStorageDeleteData [11:28:50]Write to MH i2c: 01 00 00 61 66 C7 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 07 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: 01 07 00 61 66 00 00 00 00 00 B5 0C 8F [11:28:50]RasterBufferAndPrint [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]line [11:28:50]written 0, free lines is 3260 [11:28:50]MH_Cut [11:28:50]Write to MH i2c: D1 01 00 68 66 01 A0 [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 01 00 [11:28:50]MH_I2C_Read... [11:28:50]Read from MH i2c: D1 01 00 68 66 00 9F [11:28:50]Write to MH i2c: 01 00 00 69 66 CF [11:28:50]Write i2c OK [11:28:50]MH_I2C_Read... [11:28:50]OFD Sender: No OFD packet to send [11:28:51]*** Cut start [11:28:51]*** Partial cut [11:28:51]*** CUTSNS_PIN = 1 [11:28:51]*** CUTSNS_PIN = 0 [11:28:51]*** Brake cut motor [11:28:52]Read from MH i2c: 01 [11:28:52]MH_I2C_Read... [11:28:52]*** Stop cut motor [11:28:52]*** Cut end [11:28:52]Read from MH i2c: 01 07 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 69 66 00 00 00 00 00 FF 0F E4 [11:28:52]process_action close_receipt done [11:28:52]requested_data is exist [11:28:52]produce_requested_data [11:28:52]requested_item fm.sn is exist - process it [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 11 00 00 [11:28:52]Write to MH i2c: E2 08 00 6A 66 80 11 00 00 00 00 00 00 4A [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 6A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [11:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:52]wFMCommunicate OK [11:28:52]requested_item fd.num is exist - process it [11:28:52]SAM_PROTO_GetFieldsCounters [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 00 00 [11:28:52]Write to MH i2c: E2 08 00 6B 66 80 13 00 00 00 00 00 00 4D [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 62 00 6B 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [11:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetFieldsCounters done [11:28:52]requested_item shift.num is exist - process it [11:28:52]requested_item shift.opened is exist - process it [11:28:52]req_shift_opened [11:28:52]FM_GetShiftState [11:28:52]SAM_PROTO_GetShiftState [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 01 00 [11:28:52]Write to MH i2c: E2 08 00 6C 66 80 13 01 00 00 00 00 00 4F [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0E 00 6C 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 90 [11:28:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_GetShiftState done [11:28:52]FM_GetShiftState done [11:28:52]req_shift_opened done [11:28:52]requested_item shift.open_date is exist - process it [11:28:52]req_shift_open_date [11:28:52]req_shift_open_date done [11:28:52]produce_requested_data done [11:28:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192103,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:28:52]process_action_free close_receipt [11:28:52]json_value_free [11:28:52]json_value_free done [11:28:52]process_json_proto returns [11:28:52]Send response to host [11:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192103,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:28:52]free response buf [11:28:52]execute_script done [11:28:52]execute_script returns [11:28:52]free content buf [11:28:52]Sock 6.Close socket [11:28:52]Sock 6.Thread stoped [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:12]accept exits with 8 [11:33:12]New connection [11:33:12]New thread 3066817892 created [11:33:12]Thread 3066961252 joined [11:33:12]Waiting for new connection... [11:33:12] Sock 8.Parse request [11:33:12]Sock 8.Check first char [11:33:12]Sock 8.First char is OK [11:33:12]request: POST /json_proto HTTP/1.0 [11:33:12]Method: POST [11:33:12]URL: /json_proto [11:33:12]Method is POST - this is cgi request [11:33:12]url: /json_proto [11:33:12]query_string will be loaded in cgi processing [11:33:12]execute_cgi json_proto POST (null) [11:33:12]execute_cgi path=json_proto method=POST [11:33:12]POST find Content-Length [11:33:12]Host: 172.17.63.131:8080 [11:33:12]Content-Length: 681 [11:33:12]Content-Type: application/json [11:33:12] [11:33:12]POST finish read [11:33:12]Found Content-Length = 681 [11:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:12]execute_script... [11:33: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)31414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:12]POST & json_proto [11:33:12]process_json_proto [11:33:12]json parsed OK: [11:33:12]protocol is kg_v1.0 [11:33:12]action value=close_receipt [11:33:12]process_action close_receipt [11:33:12]cmd_close_receipt [11:33:12]MH_GetDate [11:33:12]Write to MH i2c: F0 00 00 6D 66 C2 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: F0 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: F0 09 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: F0 09 00 6D 66 00 0C 25 1E 67 22 05 6E 64 7A [11:33:12]GetLastDocTimeStamp 1730028547 [11:33:12]current date 1730028812 [11:33:12]FM_GetShiftState [11:33:12]SAM_PROTO_GetShiftState [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 13 01 00 [11:33:12]Write to MH i2c: E2 08 00 6E 66 80 13 01 00 00 00 00 00 51 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 6E 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [11:33:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:33:12]wFMCommunicate OK [11:33:12]SAM_PROTO_GetShiftState done [11:33:12]FM_GetShiftState done [11:33:12]opened in 1729989159 [11:33:12]opened+sec_in_day 1730075559 [11:33:12]quantity*price = 100015 [11:33:12]sum+1 = 100017 [11:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 136 27.10.2024 11:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192104 ФПД: 18723669518062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192104&fm=18723669518062&tin=02508201610067®Number=0000000000091776&sum=100000 [11:33:13]StoreToDocumentArchive [11:33:13]shift 542 fd 192104 [11:33:13]save to /storage/0542/doc_00192104 [11:33:13]save last doc name /storage/0542/doc_00192104 to /storage/kkm_last_doc_name [11:33:13]save OK [11:33:13]Clear old archive folders... [11:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:13]tlvbuf is 01614410 [11:33:13]SAM_PROTO_ClearQueue [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 09 00 00 [11:33:13]Write to MH i2c: E2 08 00 7B 66 80 09 00 00 00 00 00 00 53 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 7B 66 00 90 00 55 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]SAM_PROTO_ClearQueue done [11:33:14]KKMCreateOFDPacket [11:33:14]OFDProtocolAddRootSTLVToBuf [11:33:14]FM_MakeSignedData [11:33:14]FM_MakeSignedData [11:33:14]SAM_PROTO_SignData [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 0D 01 02 [11:33:14]Write to MH i2c: E2 08 00 7C 66 80 0D 01 02 00 00 00 00 5B [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 7C 66 00 90 00 56 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]wFMCommunicate request_size=255 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 0C 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EE 02 00 35 04 06 00 11 [11:33:14]Write to MH i2c: E2 02 01 7D 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 0C 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EE 02 00 35 04 06 00 11 00 00 B0 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 7D 66 00 90 00 57 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]wFMCommunicate request_size=10 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 0D 02 02 05 07 71 AB A6 EE [11:33:14]Write to MH i2c: E2 0D 00 7E 66 80 0D 02 02 05 00 07 71 AB A6 EE 00 00 1F [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 7E 66 00 90 00 58 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 0D 03 02 [11:33:14]Write to MH i2c: E2 08 00 7F 66 80 0D 03 02 00 00 00 00 60 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 0B 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 0B 00 7F 66 00 3F 85 5F C9 B1 41 8F 06 90 00 D4 [11:33:14]RAPDU: 3F 85 5F C9 B1 41 8F 06 90 00 [11:33:14]wFMCommunicate OK [11:33:14]SAM_PROTO_SignData done [11:33:14]FM_MakeSignedData done [11:33:14]CreateOFDProtocolMessage [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 11 00 00 [11:33:14]Write to MH i2c: E2 08 00 80 66 80 11 00 00 00 00 00 00 60 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 17 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 17 00 80 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [11:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:33:14]wFMCommunicate OK [11:33:14]CreateOFDProtocolMessage done [11:33:14]OFDSenderStorePacket 192104 [11:33:14]StoreOFDPacket docnum=192104 [11:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 1D 07 01 44 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 0C 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EE 02 00 35 04 06 00 11 07 71 AB A6 EE 3F 85 5F C9 B1 41 8F 06 [11:33:14]CheckFolder [11:33:14]dirname=/storage/ofd_packets [11:33:14]CheckFolder done [11:33:14]ProducePacketName [11:33:14]name=ofd_packets/00192104 [11:33:14]NVStorageSaveData ofd_packets/00192104 [11:33:14]File name is /storage/ofd_packets/00192104 [11:33:14]Write 301 bytes [11:33:14]NVStorageSaveData done [11:33:14]OFDSenderStorePacket done [11:33:14]KKMCreateOFDPacket done [11:33:14]NVStorageSaveData kkm_last_timestamp [11:33:14]File name is /storage/kkm_last_timestamp [11:33:14]Write 4 bytes [11:33:14]NVStorageSaveData done [11:33:14]ExternCall_PrintAddStr [11:33:14]wPrintStart [11:33:14]Write to MH i2c: 01 00 00 81 66 E7 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 07 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 07 00 81 66 00 00 00 00 00 FF 0F FC [11:33:14]RasterBufferAndPrint [11:33:14]line Счет N : (1)31414 [11:33:14]line ИНН: 02508201610067 [11:33:14]line Контрольно-Кассовый Чек [11:33:14]line ПРОДАЖА [11:33:14]line ТРК (МРК, ГНК) : 12 [11:33:14]line Товар: 2710124130 [11:33:14]line Аи-92-К-5 [11:33:14]line 14.950 * 66.90 [11:33:14]line = 1000.16 [11:33:14]line НДС 12% НСП 1% [11:33:14]line > о реализуемом товаре [11:33:14]line ОКРУГЛЕНИЕ: -0.16 [11:33:14]line ИТОГО: 1000.00 [11:33:14]line Внесено: 1000.00 [11:33:14]line СДАЧА: 0.00 [11:33:14]line НСП 1% : 8.85 [11:33:14]line НДС 12% : 106.21 [11:33:14]line Наличными: 1000.00 [11:33:14]line Безнал.: 0.00 [11:33:14]line Место: АЗС № 170 "Партнер Нефть" [11:33:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:33:14]line СНО: Общий режим [11:33:14]line Чек 136 27.10.2024 11:33 [11:33:14]line Смена: 542 ФФД: 1.0 [11:33:14]line ЗНМ: 0300000110 [11:33:14]line РНМ: 0000000000091776 [11:33:14]line Версия ККМ: 001 [11:33:14]line ФМ: 0000000000871754 [11:33:14]line ФД: 192104 [11:33:14]line ФПД: 18723669518062 [11:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192104&fm=18723669518062&tin=02508201610067®Number=0000000000091776&sum=100000 [11:33:14]OFD Sender: Processing packet 192104 [packets to send 75, broken 74] [11:33:14]ProducePacketName [11:33:14]name=ofd_packets/00192104 [11:33:14]OFD Sender: To server: pG, [11:33:14]CommunicateWithHost lk.salyk.kg:30040 [11:33:14]ConnectInit lk.salyk.kg [11:33:14]written 0, free lines is 4095 [11:33:14]Connected sock=6 [11:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 1D 07 01 44 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 0C 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EE 02 00 35 04 06 00 11 07 71 AB A6 EE 3F 85 5F C9 B1 41 8F 06 [11:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FE CC 47 00 BE 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EE 02 00 F4 03 04 00 D4 C9 1D 67 B6 04 01 00 00 4C 71 97 13 6E F2 A4 0D [11:33:15]CommunicateWithHost err = 0 [11:33:15]CheckOFDResponse [11:33:15]1017 (14) - 77093643461234 [11:33:15]1041 (16) - 0000000000871754 [11:33:15]1040 (4) - 192104 [11:33:15]1012 (4) - 27.10.2024 05:04 [11:33:15]1206 (1) - 0 [11:33:15]OFD Sender: Remove packet 192104 [11:33:15]ProducePacketName [11:33:15]name=ofd_packets/00192104 [11:33:15]NVStorageDeleteData [11:33:15]Write to MH i2c: 01 00 00 AC 66 12 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 07 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 07 00 AC 66 00 00 00 00 00 B3 0C D8 [11:33:15]RasterBufferAndPrint [11:33:15]line [11:33:15]line [11:33:15]line [11:33:15]line [11:33:15]line [11:33:15]written 0, free lines is 3258 [11:33:15]MH_Cut [11:33:15]Write to MH i2c: D1 01 00 B3 66 01 EB [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: D1 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: D1 01 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: D1 01 00 B3 66 00 EA [11:33:15]Write to MH i2c: 01 00 00 B4 66 1A [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]OFD Sender: No OFD packet to send [11:33:16]*** Cut start [11:33:16]*** Partial cut [11:33:16]*** CUTSNS_PIN = 1 [11:33:16]*** CUTSNS_PIN = 0 [11:33:16]*** Brake cut motor [11:33:16]Read from MH i2c: 01 [11:33:16]MH_I2C_Read... [11:33:16]*** Stop cut motor [11:33:16]*** Cut end [11:33:16]Read from MH i2c: 01 07 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 07 00 B4 66 00 00 00 00 00 FF 0F 2F [11:33:16]process_action close_receipt done [11:33:16]requested_data is exist [11:33:16]produce_requested_data [11:33:16]requested_item fm.sn is exist - process it [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 11 00 00 [11:33:16]Write to MH i2c: E2 08 00 B5 66 80 11 00 00 00 00 00 00 95 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 B5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [11:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:33:16]wFMCommunicate OK [11:33:16]requested_item fd.num is exist - process it [11:33:16]SAM_PROTO_GetFieldsCounters [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 13 00 00 [11:33:16]Write to MH i2c: E2 08 00 B6 66 80 13 00 00 00 00 00 00 98 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 B6 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetFieldsCounters done [11:33:17]requested_item shift.num is exist - process it [11:33:17]requested_item shift.opened is exist - process it [11:33:17]req_shift_opened [11:33:17]FM_GetShiftState [11:33:17]SAM_PROTO_GetShiftState [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 13 01 00 [11:33:17]Write to MH i2c: E2 08 00 B7 66 80 13 01 00 00 00 00 00 9A [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 B7 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DB [11:33:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetShiftState done [11:33:17]FM_GetShiftState done [11:33:17]req_shift_opened done [11:33:17]requested_item shift.open_date is exist - process it [11:33:17]req_shift_open_date [11:33:17]req_shift_open_date done [11:33:17]produce_requested_data done [11:33:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192104,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:33:17]process_action_free close_receipt [11:33:17]json_value_free [11:33:17]json_value_free done [11:33:17]process_json_proto returns [11:33:17]Send response to host [11:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192104,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:33:17]free response buf [11:33:17]execute_script done [11:33:17]execute_script returns [11:33:17]free content buf [11:33:17]Sock 8.Close socket [11:33:17]Sock 8.Thread stoped [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:33:56]accept exits with 5 [11:33:56]New connection [11:33:56]New thread 3066961252 created [11:33:56]Thread 3066817892 joined [11:33:56]Waiting for new connection... [11:33:56] Sock 5.Parse request [11:33:56]Sock 5.Check first char [11:33:56]Sock 5.First char is OK [11:33:56]request: POST /json_proto HTTP/1.0 [11:33:56]Method: POST [11:33:56]URL: /json_proto [11:33:56]Method is POST - this is cgi request [11:33:56]url: /json_proto [11:33:56]query_string will be loaded in cgi processing [11:33:56]execute_cgi json_proto POST (null) [11:33:56]execute_cgi path=json_proto method=POST [11:33:56]POST find Content-Length [11:33:56]Host: 172.17.63.131:8080 [11:33:56]Content-Length: 676 [11:33:56]Content-Type: application/json [11:33:56] [11:33:56]POST finish read [11:33:56]Found Content-Length = 676 [11:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:56]execute_script... [11:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:56]POST & json_proto [11:33:56]process_json_proto [11:33:56]json parsed OK: [11:33:56]protocol is kg_v1.0 [11:33:56]action value=close_receipt [11:33:56]process_action close_receipt [11:33:56]cmd_close_receipt [11:33:56]MH_GetDate [11:33:56]Write to MH i2c: F0 00 00 B8 66 0D [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 09 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 09 00 B8 66 00 38 25 1E 67 22 05 6E 64 F1 [11:33:56]GetLastDocTimeStamp 1730028812 [11:33:56]current date 1730028856 [11:33:56]FM_GetShiftState [11:33:56]SAM_PROTO_GetShiftState [11:33:56]wFMCommunicate request_size=4 [11:33:56]MH_SAM_APDU [11:33:56]CAPDU: 80 13 01 00 [11:33:56]Write to MH i2c: E2 08 00 B9 66 80 13 01 00 00 00 00 00 9C [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:56]Read from MH i2c: E2 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 B9 66 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [11:33:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:33:56]wFMCommunicate OK [11:33:56]SAM_PROTO_GetShiftState done [11:33:56]FM_GetShiftState done [11:33:56]opened in 1729989159 [11:33:56]opened+sec_in_day 1730075559 [11:33:56]quantity*price = 60009 [11:33:56]sum+1 = 60010 [11:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 137 27.10.2024 11:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192105 ФПД: 172073886508030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192105&fm=172073886508030&tin=02508201610067®Number=0000000000091776&sum=60000 [11:33:58]StoreToDocumentArchive [11:33:58]shift 542 fd 192105 [11:33:58]save to /storage/0542/doc_00192105 [11:33:58]save last doc name /storage/0542/doc_00192105 to /storage/kkm_last_doc_name [11:33:58]save OK [11:33:58]Clear old archive folders... [11:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:58]tlvbuf is 01D4C130 [11:33:58]SAM_PROTO_ClearQueue [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 09 00 00 [11:33:58]Write to MH i2c: E2 08 00 C6 66 80 09 00 00 00 00 00 00 9E [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 C6 66 00 90 00 A0 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_ClearQueue done [11:33:58]KKMCreateOFDPacket [11:33:58]OFDProtocolAddRootSTLVToBuf [11:33:58]FM_MakeSignedData [11:33:58]FM_MakeSignedData [11:33:58]SAM_PROTO_SignData [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 01 02 [11:33:58]Write to MH i2c: E2 08 00 C7 66 80 0D 01 02 00 00 00 00 A6 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 C7 66 00 90 00 A1 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=255 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 38 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EE 02 00 35 04 06 00 9C [11:33:58]Write to MH i2c: E2 02 01 C8 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 38 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EE 02 00 35 04 06 00 9C 00 00 97 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 C8 66 00 90 00 A2 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=10 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 02 02 05 80 12 E1 63 FE [11:33:58]Write to MH i2c: E2 0D 00 C9 66 80 0D 02 02 05 00 80 12 E1 63 FE 00 00 87 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 C9 66 00 90 00 A3 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 03 02 [11:33:58]Write to MH i2c: E2 08 00 CA 66 80 0D 03 02 00 00 00 00 AB [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0B 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0B 00 CA 66 00 D4 A2 1A 60 80 3A CC FF 90 00 21 [11:33:58]RAPDU: D4 A2 1A 60 80 3A CC FF 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_SignData done [11:33:58]FM_MakeSignedData done [11:33:58]CreateOFDProtocolMessage [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 11 00 00 [11:33:58]Write to MH i2c: E2 08 00 CB 66 80 11 00 00 00 00 00 00 AB [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 17 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 17 00 CB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [11:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:33:58]wFMCommunicate OK [11:33:58]CreateOFDProtocolMessage done [11:33:58]OFDSenderStorePacket 192105 [11:33:58]StoreOFDPacket docnum=192105 [11:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 3A 07 01 CD 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 38 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EE 02 00 35 04 06 00 9C 80 12 E1 63 FE D4 A2 1A 60 80 3A CC FF [11:33:58]CheckFolder [11:33:58]dirname=/storage/ofd_packets [11:33:58]CheckFolder done [11:33:58]ProducePacketName [11:33:58]name=ofd_packets/00192105 [11:33:58]NVStorageSaveData ofd_packets/00192105 [11:33:58]File name is /storage/ofd_packets/00192105 [11:33:58]Write 301 bytes [11:33:58]NVStorageSaveData done [11:33:58]OFDSenderStorePacket done [11:33:58]KKMCreateOFDPacket done [11:33:58]NVStorageSaveData kkm_last_timestamp [11:33:58]File name is /storage/kkm_last_timestamp [11:33:58]Write 4 bytes [11:33:58]NVStorageSaveData done [11:33:58]ExternCall_PrintAddStr [11:33:58]wPrintStart [11:33:58]Write to MH i2c: 01 00 00 CC 66 32 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 CC 66 00 00 00 00 00 FF 0F 47 [11:33:58]RasterBufferAndPrint [11:33:58]line Счет N : (1)31415 [11:33:58]line ИНН: 02508201610067 [11:33:58]line Контрольно-Кассовый Чек [11:33:58]line ПРОДАЖА [11:33:58]line ТРК (МРК, ГНК) : 12 [11:33:58]line Товар: 2710124130 [11:33:58]line Аи-92-К-5 [11:33:58]line 8.970 * 66.90 [11:33:58]line = 600.09 [11:33:58]line НДС 12% НСП 1% [11:33:58]line > о реализуемом товаре [11:33:58]line ОКРУГЛЕНИЕ: -0.09 [11:33:58]line ИТОГО: 600.00 [11:33:58]line Внесено: 600.00 [11:33:58]line СДАЧА: 0.00 [11:33:58]line НСП 1% : 5.31 [11:33:58]line НДС 12% : 63.73 [11:33:58]line Наличными: 600.00 [11:33:58]line Безнал.: 0.00 [11:33:58]line Место: АЗС № 170 "Партнер Нефть" [11:33:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:33:58]line СНО: Общий режим [11:33:58]line Чек 137 27.10.2024 11:34 [11:33:58]line Смена: 542 ФФД: 1.0 [11:33:58]line ЗНМ: 0300000110 [11:33:58]line РНМ: 0000000000091776 [11:33:58]line Версия ККМ: 001 [11:33:58]line ФМ: 0000000000871754 [11:33:58]line ФД: 192105 [11:33:58]line ФПД: 172073886508030 [11:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192105&fm=172073886508030&tin=02508201610067®Number=0000000000091776&sum=60000 [11:33:58]OFD Sender: Processing packet 192105 [packets to send 75, broken 74] [11:33:58]ProducePacketName [11:33:58]name=ofd_packets/00192105 [11:33:58]OFD Sender: To server: pG, [11:33:58]CommunicateWithHost lk.salyk.kg:30040 [11:33:58]written 0, free lines is 4095 [11:33:58]ConnectInit lk.salyk.kg [11:33:59]Connected sock=8 [11:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 3A 07 01 CD 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 38 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EE 02 00 35 04 06 00 9C 80 12 E1 63 FE D4 A2 1A 60 80 3A CC FF [11:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 53 47 00 4E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EE 02 00 F4 03 04 00 00 CA 1D 67 B6 04 01 00 00 80 2B 8A 61 8B 14 29 E8 [11:33:59]CommunicateWithHost err = 0 [11:33:59]CheckOFDResponse [11:33:59]1017 (14) - 77093643461234 [11:33:59]1041 (16) - 0000000000871754 [11:33:59]1040 (4) - 192105 [11:33:59]1012 (4) - 27.10.2024 05:05 [11:33:59]1206 (1) - 0 [11:33:59]OFD Sender: Remove packet 192105 [11:33:59]ProducePacketName [11:33:59]name=ofd_packets/00192105 [11:33:59]NVStorageDeleteData [11:33:59]Write to MH i2c: 01 00 00 F7 66 5D [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 F7 66 00 00 00 00 00 AA 0C 1A [11:33:59]RasterBufferAndPrint [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]written 0, free lines is 3248 [11:33:59]MH_Cut [11:33:59]Write to MH i2c: D1 01 00 FE 66 01 36 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 01 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 01 00 FE 66 00 35 [11:33:59]Write to MH i2c: 01 00 00 FF 66 65 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]OFD Sender: No OFD packet to send [11:34:00]*** Cut start [11:34:00]*** Partial cut [11:34:00]*** CUTSNS_PIN = 1 [11:34:00]*** CUTSNS_PIN = 0 [11:34:00]*** Brake cut motor [11:34:00]Read from MH i2c: 01 [11:34:00]MH_I2C_Read... [11:34:00]*** Stop cut motor [11:34:00]*** Cut end [11:34:00]Read from MH i2c: 01 07 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 07 00 FF 66 00 00 00 00 00 FF 0F 7A [11:34:00]process_action close_receipt done [11:34:00]requested_data is exist [11:34:00]produce_requested_data [11:34:00]requested_item fm.sn is exist - process it [11:34:00]wFMCommunicate request_size=4 [11:34:00]MH_SAM_APDU [11:34:00]CAPDU: 80 11 00 00 [11:34:00]Write to MH i2c: E2 08 00 00 67 80 11 00 00 00 00 00 00 E1 [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:00]Read from MH i2c: E2 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 17 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 17 00 00 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [11:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:34:00]wFMCommunicate OK [11:34:00]requested_item fd.num is exist - process it [11:34:00]SAM_PROTO_GetFieldsCounters [11:34:00]wFMCommunicate request_size=4 [11:34:00]MH_SAM_APDU [11:34:00]CAPDU: 80 13 00 00 [11:34:00]Write to MH i2c: E2 08 00 01 67 80 13 00 00 00 00 00 00 E4 [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 62 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 62 00 01 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_GetFieldsCounters done [11:34:01]requested_item shift.num is exist - process it [11:34:01]requested_item shift.opened is exist - process it [11:34:01]req_shift_opened [11:34:01]FM_GetShiftState [11:34:01]SAM_PROTO_GetShiftState [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 13 01 00 [11:34:01]Write to MH i2c: E2 08 00 02 67 80 13 01 00 00 00 00 00 E6 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0E 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0E 00 02 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 27 [11:34:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_GetShiftState done [11:34:01]FM_GetShiftState done [11:34:01]req_shift_opened done [11:34:01]requested_item shift.open_date is exist - process it [11:34:01]req_shift_open_date [11:34:01]req_shift_open_date done [11:34:01]produce_requested_data done [11:34:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192105,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:34:01]process_action_free close_receipt [11:34:01]json_value_free [11:34:01]json_value_free done [11:34:01]process_json_proto returns [11:34:01]Send response to host [11:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192105,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:34:01]free response buf [11:34:01]execute_script done [11:34:01]execute_script returns [11:34:01]free content buf [11:34:01]Sock 5.Close socket [11:34:01]Sock 5.Thread stoped [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:10]accept exits with 6 [11:36:10]New connection [11:36:10]New thread 3066817892 created [11:36:10]Thread 3066961252 joined [11:36:10]Waiting for new connection... [11:36:10] Sock 6.Parse request [11:36:10]Sock 6.Check first char [11:36:10]Sock 6.First char is OK [11:36:10]request: POST /json_proto HTTP/1.0 [11:36:10]Method: POST [11:36:10]URL: /json_proto [11:36:10]Method is POST - this is cgi request [11:36:10]url: /json_proto [11:36:10]query_string will be loaded in cgi processing [11:36:10]execute_cgi json_proto POST (null) [11:36:10]execute_cgi path=json_proto method=POST [11:36:10]POST find Content-Length [11:36:10]Host: 172.17.63.131:8080 [11:36:10]Content-Length: 678 [11:36:10]Content-Type: application/json [11:36:10] [11:36:10]POST finish read [11:36:10]Found Content-Length = 678 [11:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31416", "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" : 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:36:10]execute_script... [11: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 : (1)31416", "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" : 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:36:10]POST & json_proto [11:36:10]process_json_proto [11:36:10]json parsed OK: [11:36:10]protocol is kg_v1.0 [11:36:10]action value=close_receipt [11:36:10]process_action close_receipt [11:36:10]cmd_close_receipt [11:36:10]MH_GetDate [11:36:10]Write to MH i2c: F0 00 00 03 67 59 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 09 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 09 00 03 67 00 BE 25 1E 67 22 05 6E 64 C3 [11:36:10]GetLastDocTimeStamp 1730028856 [11:36:10]current date 1730028990 [11:36:10]FM_GetShiftState [11:36:10]SAM_PROTO_GetShiftState [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 13 01 00 [11:36:10]Write to MH i2c: E2 08 00 04 67 80 13 01 00 00 00 00 00 E8 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0E 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0E 00 04 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [11:36:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:36:10]wFMCommunicate OK [11:36:10]SAM_PROTO_GetShiftState done [11:36:10]FM_GetShiftState done [11:36:10]opened in 1729989159 [11:36:10]opened+sec_in_day 1730075559 [11:36:10]quantity*price = 100050 [11:36:10]sum+1 = 100052 [11:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 138 27.10.2024 11:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192106 ФПД: 247844409036934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192106&fm=247844409036934&tin=02508201610067®Number=0000000000091776&sum=100000 [11:36:11]StoreToDocumentArchive [11:36:11]shift 542 fd 192106 [11:36:11]save to /storage/0542/doc_00192106 [11:36:11]save last doc name /storage/0542/doc_00192106 to /storage/kkm_last_doc_name [11:36:11]save OK [11:36:11]Clear old archive folders... [11:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:11]tlvbuf is 0172EB80 [11:36:11]SAM_PROTO_ClearQueue [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 09 00 00 [11:36:11]Write to MH i2c: E2 08 00 11 67 80 09 00 00 00 00 00 00 EA [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 11 67 00 90 00 EC [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]SAM_PROTO_ClearQueue done [11:36:11]KKMCreateOFDPacket [11:36:11]OFDProtocolAddRootSTLVToBuf [11:36:11]FM_MakeSignedData [11:36:11]FM_MakeSignedData [11:36:11]SAM_PROTO_SignData [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 0D 01 02 [11:36:11]Write to MH i2c: E2 08 00 12 67 80 0D 01 02 00 00 00 00 F2 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 03 00 12 67 00 90 00 ED [11:36:11]RAPDU: 90 00 [11:36:11]wFMCommunicate OK [11:36:11]wFMCommunicate request_size=255 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 BE 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EE 02 00 35 04 06 00 E1 69 C5 F5 [11:36:11]Write to MH i2c: E2 02 01 13 67 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 8A 00 00 00 F4 03 04 00 BE 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EE 02 00 35 04 06 00 E1 69 C5 F5 00 00 EC [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 13 67 00 90 00 EE [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]wFMCommunicate request_size=7 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 0D 02 02 02 D0 86 [11:36:12]Write to MH i2c: E2 0A 00 14 67 80 0D 02 02 02 00 D0 86 00 00 4F [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 14 67 00 90 00 EF [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 0D 03 02 [11:36:12]Write to MH i2c: E2 08 00 15 67 80 0D 03 02 00 00 00 00 F7 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 0B 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 0B 00 15 67 00 39 0E C9 13 A2 AB 80 72 90 00 5A [11:36:12]RAPDU: 39 0E C9 13 A2 AB 80 72 90 00 [11:36:12]wFMCommunicate OK [11:36:12]SAM_PROTO_SignData done [11:36:12]FM_MakeSignedData done [11:36:12]CreateOFDProtocolMessage [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 11 00 00 [11:36:12]Write to MH i2c: E2 08 00 16 67 80 11 00 00 00 00 00 00 F7 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 16 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [11:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:36:12]wFMCommunicate OK [11:36:12]CreateOFDProtocolMessage done [11:36:12]OFDSenderStorePacket 192106 [11:36:12]StoreOFDPacket docnum=192106 [11:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 EA 04 01 29 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8A 00 00 00 F4 03 04 00 BE 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EE 02 00 35 04 06 00 E1 69 C5 F5 D0 86 39 0E C9 13 A2 AB 80 72 [11:36:12]CheckFolder [11:36:12]dirname=/storage/ofd_packets [11:36:12]CheckFolder done [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00192106 [11:36:12]NVStorageSaveData ofd_packets/00192106 [11:36:12]File name is /storage/ofd_packets/00192106 [11:36:12]Write 298 bytes [11:36:12]NVStorageSaveData done [11:36:12]OFDSenderStorePacket done [11:36:12]KKMCreateOFDPacket done [11:36:12]NVStorageSaveData kkm_last_timestamp [11:36:12]File name is /storage/kkm_last_timestamp [11:36:12]Write 4 bytes [11:36:12]NVStorageSaveData done [11:36:12]ExternCall_PrintAddStr [11:36:12]wPrintStart [11:36:12]Write to MH i2c: 01 00 00 17 67 7E [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 17 67 00 00 00 00 00 FF 0F 93 [11:36:12]RasterBufferAndPrint [11:36:12]line Счет N : (1)31416 [11:36:12]line ИНН: 02508201610067 [11:36:12]line Контрольно-Кассовый Чек [11:36:12]line ПРОДАЖА [11:36:12]line ТРК (МРК, ГНК) : 11 [11:36:12]line Товар: 2710194210 [11:36:12]line ДТ-К-5 [11:36:12]line 13.130 * 76.20 [11:36:12]line = 1000.51 [11:36:12]line НДС 12% НСП 1% [11:36:12]line > о реализуемом товаре [11:36:12]line ОКРУГЛЕНИЕ: -0.51 [11:36:12]line ИТОГО: 1000.00 [11:36:12]line Внесено: 1000.00 [11:36:12]line СДАЧА: 0.00 [11:36:12]line НСП 1% : 8.85 [11:36:12]line НДС 12% : 106.25 [11:36:12]line Наличными: 1000.00 [11:36:12]line Безнал.: 0.00 [11:36:12]line Место: АЗС № 170 "Партнер Нефть" [11:36:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:36:12]line СНО: Общий режим [11:36:12]line Чек 138 27.10.2024 11:36 [11:36:12]line Смена: 542 ФФД: 1.0 [11:36:12]line ЗНМ: 0300000110 [11:36:12]line РНМ: 0000000000091776 [11:36:12]line Версия ККМ: 001 [11:36:12]line ФМ: 0000000000871754 [11:36:12]line ФД: 192106 [11:36:12]line ФПД: 247844409036934 [11:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192106&fm=247844409036934&tin=02508201610067®Number=0000000000091776&sum=100000 [11:36:12]OFD Sender: Processing packet 192106 [packets to send 75, broken 74] [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00192106 [11:36:12]OFD Sender: To server: pG, [11:36:12]CommunicateWithHost lk.salyk.kg:30040 [11:36:12]ConnectInit lk.salyk.kg [11:36:12]written 0, free lines is 4095 [11:36:12]Connected sock=8 [11:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 EA 04 01 29 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8A 00 00 00 F4 03 04 00 BE 25 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EE 02 00 35 04 06 00 E1 69 C5 F5 D0 86 39 0E C9 13 A2 AB 80 72 [11:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 33 47 00 80 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EE 02 00 F4 03 04 00 86 CA 1D 67 B6 04 01 00 00 2D 90 CA F6 25 D4 70 9D [11:36:12]CommunicateWithHost err = 0 [11:36:12]CheckOFDResponse [11:36:12]1017 (14) - 77093643461234 [11:36:12]1041 (16) - 0000000000871754 [11:36:12]1040 (4) - 192106 [11:36:12]1012 (4) - 27.10.2024 05:07 [11:36:12]1206 (1) - 0 [11:36:12]OFD Sender: Remove packet 192106 [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00192106 [11:36:12]NVStorageDeleteData [11:36:12]Write to MH i2c: 01 00 00 42 67 A9 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 42 67 00 00 00 00 00 B6 0C 72 [11:36:12]RasterBufferAndPrint [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]line [11:36:12]written 0, free lines is 3263 [11:36:12]MH_Cut [11:36:12]Write to MH i2c: D1 01 00 49 67 01 82 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 01 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: D1 01 00 49 67 00 81 [11:36:12]Write to MH i2c: 01 00 00 4A 67 B1 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:13]OFD Sender: No OFD packet to send [11:36:13]*** Cut start [11:36:13]*** Partial cut [11:36:13]*** CUTSNS_PIN = 1 [11:36:13]*** CUTSNS_PIN = 0 [11:36:14]*** Brake cut motor [11:36:14]Read from MH i2c: 01 [11:36:14]MH_I2C_Read... [11:36:14]*** Stop cut motor [11:36:14]*** Cut end [11:36:14]Read from MH i2c: 01 07 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: 01 07 00 4A 67 00 00 00 00 00 FF 0F C6 [11:36:14]process_action close_receipt done [11:36:14]requested_data is exist [11:36:14]produce_requested_data [11:36:14]requested_item fm.sn is exist - process it [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 11 00 00 [11:36:14]Write to MH i2c: E2 08 00 4B 67 80 11 00 00 00 00 00 00 2C [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 17 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 17 00 4B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [11:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:36:14]wFMCommunicate OK [11:36:14]requested_item fd.num is exist - process it [11:36:14]SAM_PROTO_GetFieldsCounters [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 13 00 00 [11:36:14]Write to MH i2c: E2 08 00 4C 67 80 13 00 00 00 00 00 00 2F [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 62 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 62 00 4C 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [11:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:14]wFMCommunicate OK [11:36:14]SAM_PROTO_GetFieldsCounters done [11:36:14]requested_item shift.num is exist - process it [11:36:14]requested_item shift.opened is exist - process it [11:36:14]req_shift_opened [11:36:14]FM_GetShiftState [11:36:14]SAM_PROTO_GetShiftState [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 13 01 00 [11:36:14]Write to MH i2c: E2 08 00 4D 67 80 13 01 00 00 00 00 00 31 [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 0E 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 0E 00 4D 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 72 [11:36:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:36:14]wFMCommunicate OK [11:36:14]SAM_PROTO_GetShiftState done [11:36:14]FM_GetShiftState done [11:36:14]req_shift_opened done [11:36:14]requested_item shift.open_date is exist - process it [11:36:14]req_shift_open_date [11:36:14]req_shift_open_date done [11:36:14]produce_requested_data done [11:36:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192106,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:36:14]process_action_free close_receipt [11:36:14]json_value_free [11:36:14]json_value_free done [11:36:14]process_json_proto returns [11:36:14]Send response to host [11:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192106,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:36:14]free response buf [11:36:14]execute_script done [11:36:14]execute_script returns [11:36:14]free content buf [11:36:14]Sock 6.Close socket [11:36:14]Sock 6.Thread stoped [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:00]accept exits with 5 [11:40:00]New connection [11:40:00]New thread 3066961252 created [11:40:00]Thread 3066817892 joined [11:40:00]Waiting for new connection... [11:40:00] Sock 5.Parse request [11:40:00]Sock 5.Check first char [11:40:00]Sock 5.First char is OK [11:40:00]request: POST /json_proto HTTP/1.0 [11:40:00]Method: POST [11:40:00]URL: /json_proto [11:40:00]Method is POST - this is cgi request [11:40:00]url: /json_proto [11:40:00]query_string will be loaded in cgi processing [11:40:00]execute_cgi json_proto POST (null) [11:40:00]execute_cgi path=json_proto method=POST [11:40:00]POST find Content-Length [11:40:00]Host: 172.17.63.131:8080 [11:40:00]Content-Length: 676 [11:40:00]Content-Type: application/json [11:40:00] [11:40:00]POST finish read [11:40:00]Found Content-Length = 676 [11:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:00]execute_script... [11:40:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:00]POST & json_proto [11:40:00]process_json_proto [11:40:00]json parsed OK: [11:40:00]protocol is kg_v1.0 [11:40:00]action value=close_receipt [11:40:00]process_action close_receipt [11:40:00]cmd_close_receipt [11:40:00]MH_GetDate [11:40:00]Write to MH i2c: F0 00 00 4E 67 A4 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: F0 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: F0 09 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: F0 09 00 4E 67 00 A4 26 1E 67 22 05 6E 64 F5 [11:40:00]GetLastDocTimeStamp 1730028990 [11:40:00]current date 1730029220 [11:40:00]FM_GetShiftState [11:40:00]SAM_PROTO_GetShiftState [11:40:00]wFMCommunicate request_size=4 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 13 01 00 [11:40:00]Write to MH i2c: E2 08 00 4F 67 80 13 01 00 00 00 00 00 33 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 0E 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 0E 00 4F 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [11:40:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:40:00]wFMCommunicate OK [11:40:00]SAM_PROTO_GetShiftState done [11:40:00]FM_GetShiftState done [11:40:00]opened in 1729989159 [11:40:00]opened+sec_in_day 1730075559 [11:40:00]quantity*price = 22010 [11:40:00]sum+1 = 22011 [11:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 139 27.10.2024 11:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192107 ФПД: 161715488519730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192107&fm=161715488519730&tin=02508201610067®Number=0000000000091776&sum=22000 [11:40:01]StoreToDocumentArchive [11:40:01]shift 542 fd 192107 [11:40:01]save to /storage/0542/doc_00192107 [11:40:01]save last doc name /storage/0542/doc_00192107 to /storage/kkm_last_doc_name [11:40:01]save OK [11:40:01]Clear old archive folders... [11:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:01]tlvbuf is 015BFD50 [11:40:01]SAM_PROTO_ClearQueue [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 09 00 00 [11:40:01]Write to MH i2c: E2 08 00 5C 67 80 09 00 00 00 00 00 00 35 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 5C 67 00 90 00 37 [11:40:01]RAPDU: 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_ClearQueue done [11:40:01]KKMCreateOFDPacket [11:40:01]OFDProtocolAddRootSTLVToBuf [11:40:01]FM_MakeSignedData [11:40:01]FM_MakeSignedData [11:40:01]SAM_PROTO_SignData [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 0D 01 02 [11:40:01]Write to MH i2c: E2 08 00 5D 67 80 0D 01 02 00 00 00 00 3D [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 5D 67 00 90 00 38 [11:40:01]RAPDU: 90 00 [11:40:01]wFMCommunicate OK [11:40:01]wFMCommunicate request_size=255 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A4 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EE 02 00 35 04 06 00 93 [11:40:01]Write to MH i2c: E2 02 01 5E 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A4 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EE 02 00 35 04 06 00 93 00 00 1C [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 5E 67 00 90 00 39 [11:40:01]RAPDU: 90 00 [11:40:01]wFMCommunicate OK [11:40:01]wFMCommunicate request_size=10 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 0D 02 02 05 14 52 3F 76 32 [11:40:01]Write to MH i2c: E2 0D 00 5F 67 80 0D 02 02 05 00 14 52 3F 76 32 00 00 97 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 03 00 5F 67 00 90 00 3A [11:40:01]RAPDU: 90 00 [11:40:01]wFMCommunicate OK [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 0D 03 02 [11:40:01]Write to MH i2c: E2 08 00 60 67 80 0D 03 02 00 00 00 00 42 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0B 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0B 00 60 67 00 6B 40 1F 84 B8 E3 94 6B 90 00 2B [11:40:01]RAPDU: 6B 40 1F 84 B8 E3 94 6B 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_SignData done [11:40:01]FM_MakeSignedData done [11:40:01]CreateOFDProtocolMessage [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 11 00 00 [11:40:01]Write to MH i2c: E2 08 00 61 67 80 11 00 00 00 00 00 00 42 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 61 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [11:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:40:01]wFMCommunicate OK [11:40:01]CreateOFDProtocolMessage done [11:40:01]OFDSenderStorePacket 192107 [11:40:01]StoreOFDPacket docnum=192107 [11:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C A2 07 01 1D C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A4 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EE 02 00 35 04 06 00 93 14 52 3F 76 32 6B 40 1F 84 B8 E3 94 6B [11:40:01]CheckFolder [11:40:01]dirname=/storage/ofd_packets [11:40:01]CheckFolder done [11:40:01]ProducePacketName [11:40:01]name=ofd_packets/00192107 [11:40:01]NVStorageSaveData ofd_packets/00192107 [11:40:01]File name is /storage/ofd_packets/00192107 [11:40:01]Write 301 bytes [11:40:01]NVStorageSaveData done [11:40:01]OFDSenderStorePacket done [11:40:01]KKMCreateOFDPacket done [11:40:01]NVStorageSaveData kkm_last_timestamp [11:40:01]File name is /storage/kkm_last_timestamp [11:40:01]Write 4 bytes [11:40:01]NVStorageSaveData done [11:40:01]ExternCall_PrintAddStr [11:40:01]wPrintStart [11:40:01]Write to MH i2c: 01 00 00 62 67 C9 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 62 67 00 00 00 00 00 FF 0F DE [11:40:01]RasterBufferAndPrint [11:40:01]line Счет N : (1)31417 [11:40:01]line ИНН: 02508201610067 [11:40:01]line Контрольно-Кассовый Чек [11:40:01]line ПРОДАЖА [11:40:01]line ТРК (МРК, ГНК) : 21 [11:40:01]line Товар: 2710124130 [11:40:01]line Аи-92-К-5 [11:40:01]line 3.290 * 66.90 [11:40:01]line = 220.10 [11:40:01]line НДС 12% НСП 1% [11:40:01]line > о реализуемом товаре [11:40:01]line ОКРУГЛЕНИЕ: -0.10 [11:40:01]line ИТОГО: 220.00 [11:40:01]line Внесено: 220.00 [11:40:01]line СДАЧА: 0.00 [11:40:01]line НСП 1% : 1.95 [11:40:01]line НДС 12% : 23.37 [11:40:01]line Наличными: 220.00 [11:40:01]line Безнал.: 0.00 [11:40:01]line Место: АЗС № 170 "Партнер Нефть" [11:40:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:40:01]line СНО: Общий режим [11:40:01]line Чек 139 27.10.2024 11:40 [11:40:01]line Смена: 542 ФФД: 1.0 [11:40:01]line ЗНМ: 0300000110 [11:40:01]line РНМ: 0000000000091776 [11:40:01]line Версия ККМ: 001 [11:40:01]line ФМ: 0000000000871754 [11:40:01]line ФД: 192107 [11:40:01]line ФПД: 161715488519730 [11:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192107&fm=161715488519730&tin=02508201610067®Number=0000000000091776&sum=22000 [11:40:02]OFD Sender: Processing packet 192107 [packets to send 75, broken 74] [11:40:02]ProducePacketName [11:40:02]name=ofd_packets/00192107 [11:40:02]OFD Sender: To server: pG, [11:40:02]CommunicateWithHost lk.salyk.kg:30040 [11:40:02]ConnectInit lk.salyk.kg [11:40:02]written 0, free lines is 4095 [11:40:02]Connected sock=8 [11:40:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C A2 07 01 1D C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A4 26 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EE 02 00 35 04 06 00 93 14 52 3F 76 32 6B 40 1F 84 B8 E3 94 6B [11:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F 96 47 00 88 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EE 02 00 F4 03 04 00 6B CB 1D 67 B6 04 01 00 00 5A 0A 3B F7 C4 69 FC 6E [11:40:02]CommunicateWithHost err = 0 [11:40:02]CheckOFDResponse [11:40:02]1017 (14) - 77093643461234 [11:40:02]1041 (16) - 0000000000871754 [11:40:02]1040 (4) - 192107 [11:40:02]1012 (4) - 27.10.2024 05:11 [11:40:02]1206 (1) - 0 [11:40:02]OFD Sender: Remove packet 192107 [11:40:02]ProducePacketName [11:40:02]name=ofd_packets/00192107 [11:40:02]NVStorageDeleteData [11:40:02]Write to MH i2c: 01 00 00 8D 67 F4 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: 01 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: 01 07 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: 01 07 00 8D 67 00 00 00 00 00 AB 0C B2 [11:40:02]RasterBufferAndPrint [11:40:02]line [11:40:02]line [11:40:02]line [11:40:02]line [11:40:02]line [11:40:02]written 0, free lines is 3249 [11:40:02]MH_Cut [11:40:02]Write to MH i2c: D1 01 00 94 67 01 CD [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: D1 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: D1 01 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: D1 01 00 94 67 00 CC [11:40:02]Write to MH i2c: 01 00 00 95 67 FC [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:03]OFD Sender: No OFD packet to send [11:40:03]*** Cut start [11:40:03]*** Partial cut [11:40:03]*** CUTSNS_PIN = 1 [11:40:03]*** CUTSNS_PIN = 0 [11:40:03]*** Brake cut motor [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]*** Stop cut motor [11:40:04]*** Cut end [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 95 67 00 00 00 00 00 FF 0F 11 [11:40:04]process_action close_receipt done [11:40:04]requested_data is exist [11:40:04]produce_requested_data [11:40:04]requested_item fm.sn is exist - process it [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 11 00 00 [11:40:04]Write to MH i2c: E2 08 00 96 67 80 11 00 00 00 00 00 00 77 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 96 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [11:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:40:04]wFMCommunicate OK [11:40:04]requested_item fd.num is exist - process it [11:40:04]SAM_PROTO_GetFieldsCounters [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 13 00 00 [11:40:04]Write to MH i2c: E2 08 00 97 67 80 13 00 00 00 00 00 00 7A [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 62 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 62 00 97 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:04]wFMCommunicate OK [11:40:04]SAM_PROTO_GetFieldsCounters done [11:40:04]requested_item shift.num is exist - process it [11:40:04]requested_item shift.opened is exist - process it [11:40:04]req_shift_opened [11:40:04]FM_GetShiftState [11:40:04]SAM_PROTO_GetShiftState [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 13 01 00 [11:40:04]Write to MH i2c: E2 08 00 98 67 80 13 01 00 00 00 00 00 7C [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0E 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0E 00 98 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [11:40:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:40:04]wFMCommunicate OK [11:40:04]SAM_PROTO_GetShiftState done [11:40:04]FM_GetShiftState done [11:40:04]req_shift_opened done [11:40:04]requested_item shift.open_date is exist - process it [11:40:04]req_shift_open_date [11:40:04]req_shift_open_date done [11:40:04]produce_requested_data done [11:40:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192107,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:40:04]process_action_free close_receipt [11:40:04]json_value_free [11:40:04]json_value_free done [11:40:04]process_json_proto returns [11:40:04]Send response to host [11:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192107,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:40:04]free response buf [11:40:04]execute_script done [11:40:04]execute_script returns [11:40:04]free content buf [11:40:04]Sock 5.Close socket [11:40:04]Sock 5.Thread stoped [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:37]accept exits with 6 [11:42:37]New connection [11:42:37]New thread 3066817892 created [11:42:37]Thread 3066961252 joined [11:42:37]Waiting for new connection... [11:42:37] Sock 6.Parse request [11:42:37]Sock 6.Check first char [11:42:37]Sock 6.First char is OK [11:42:37]request: POST /json_proto HTTP/1.0 [11:42:37]Method: POST [11:42:37]URL: /json_proto [11:42:37]Method is POST - this is cgi request [11:42:37]url: /json_proto [11:42:37]query_string will be loaded in cgi processing [11:42:37]execute_cgi json_proto POST (null) [11:42:37]execute_cgi path=json_proto method=POST [11:42:37]POST find Content-Length [11:42:37]Host: 172.17.63.131:8080 [11:42:37]Content-Length: 681 [11:42:37]Content-Type: application/json [11:42:37] [11:42:37]POST finish read [11:42:37]Found Content-Length = 681 [11:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:37]execute_script... [11:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:37]POST & json_proto [11:42:37]process_json_proto [11:42:37]json parsed OK: [11:42:37]protocol is kg_v1.0 [11:42:37]action value=close_receipt [11:42:37]process_action close_receipt [11:42:37]cmd_close_receipt [11:42:37]MH_GetDate [11:42:37]Write to MH i2c: F0 00 00 99 67 EF [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 09 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 09 00 99 67 00 40 27 1E 67 22 05 6E 64 DD [11:42:37]GetLastDocTimeStamp 1730029220 [11:42:37]current date 1730029376 [11:42:37]FM_GetShiftState [11:42:37]SAM_PROTO_GetShiftState [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 01 00 [11:42:37]Write to MH i2c: E2 08 00 9A 67 80 13 01 00 00 00 00 00 7E [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 9A 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [11:42:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetShiftState done [11:42:37]FM_GetShiftState done [11:42:37]opened in 1729989159 [11:42:37]opened+sec_in_day 1730075559 [11:42:37]quantity*price = 100015 [11:42:37]sum+1 = 100017 [11:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 140 27.10.2024 11:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192108 ФПД: 245534663039326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192108&fm=245534663039326&tin=02508201610067®Number=0000000000091776&sum=100000 [11:42:38]StoreToDocumentArchive [11:42:38]shift 542 fd 192108 [11:42:38]save to /storage/0542/doc_00192108 [11:42:38]save last doc name /storage/0542/doc_00192108 to /storage/kkm_last_doc_name [11:42:38]save OK [11:42:38]Clear old archive folders... [11:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:38]tlvbuf is 01608CF0 [11:42:38]SAM_PROTO_ClearQueue [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 09 00 00 [11:42:38]Write to MH i2c: E2 08 00 A7 67 80 09 00 00 00 00 00 00 80 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:38]OFD Sender: No OFD packet to send [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 A7 67 00 90 00 82 [11:42:38]RAPDU: 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_ClearQueue done [11:42:38]KKMCreateOFDPacket [11:42:38]OFDProtocolAddRootSTLVToBuf [11:42:38]FM_MakeSignedData [11:42:38]FM_MakeSignedData [11:42:38]SAM_PROTO_SignData [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 0D 01 02 [11:42:38]Write to MH i2c: E2 08 00 A8 67 80 0D 01 02 00 00 00 00 88 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 A8 67 00 90 00 83 [11:42:38]RAPDU: 90 00 [11:42:38]wFMCommunicate OK [11:42:38]wFMCommunicate request_size=255 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 40 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EE 02 00 35 04 06 00 DF [11:42:38]Write to MH i2c: E2 02 01 A9 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 40 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EE 02 00 35 04 06 00 DF 00 00 E9 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 A9 67 00 90 00 84 [11:42:38]RAPDU: 90 00 [11:42:38]wFMCommunicate OK [11:42:38]wFMCommunicate request_size=10 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 0D 02 02 05 4F FE 5E D9 5E [11:42:38]Write to MH i2c: E2 0D 00 AA 67 80 0D 02 02 05 00 4F FE 5E D9 5E 00 00 77 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 03 00 AA 67 00 90 00 85 [11:42:38]RAPDU: 90 00 [11:42:38]wFMCommunicate OK [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 0D 03 02 [11:42:38]Write to MH i2c: E2 08 00 AB 67 80 0D 03 02 00 00 00 00 8D [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0B 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0B 00 AB 67 00 27 8E 01 B6 44 1F EF 60 90 00 AC [11:42:38]RAPDU: 27 8E 01 B6 44 1F EF 60 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_SignData done [11:42:38]FM_MakeSignedData done [11:42:38]CreateOFDProtocolMessage [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 11 00 00 [11:42:38]Write to MH i2c: E2 08 00 AC 67 80 11 00 00 00 00 00 00 8D [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 AC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [11:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:38]wFMCommunicate OK [11:42:38]CreateOFDProtocolMessage done [11:42:38]OFDSenderStorePacket 192108 [11:42:38]StoreOFDPacket docnum=192108 [11:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 91 07 01 50 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 40 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EE 02 00 35 04 06 00 DF 4F FE 5E D9 5E 27 8E 01 B6 44 1F EF 60 [11:42:38]CheckFolder [11:42:38]dirname=/storage/ofd_packets [11:42:38]CheckFolder done [11:42:38]ProducePacketName [11:42:38]name=ofd_packets/00192108 [11:42:38]NVStorageSaveData ofd_packets/00192108 [11:42:38]File name is /storage/ofd_packets/00192108 [11:42:38]Write 301 bytes [11:42:38]NVStorageSaveData done [11:42:38]OFDSenderStorePacket done [11:42:38]KKMCreateOFDPacket done [11:42:38]NVStorageSaveData kkm_last_timestamp [11:42:38]File name is /storage/kkm_last_timestamp [11:42:38]Write 4 bytes [11:42:38]NVStorageSaveData done [11:42:38]ExternCall_PrintAddStr [11:42:38]wPrintStart [11:42:38]Write to MH i2c: 01 00 00 AD 67 14 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 AD 67 00 00 00 00 00 FF 0F 29 [11:42:38]RasterBufferAndPrint [11:42:38]line Счет N : (1)31418 [11:42:38]line ИНН: 02508201610067 [11:42:38]line Контрольно-Кассовый Чек [11:42:38]line ПРОДАЖА [11:42:38]line ТРК (МРК, ГНК) : 12 [11:42:38]line Товар: 2710124130 [11:42:38]line Аи-92-К-5 [11:42:38]line 14.950 * 66.90 [11:42:38]line = 1000.16 [11:42:38]line НДС 12% НСП 1% [11:42:38]line > о реализуемом товаре [11:42:38]line ОКРУГЛЕНИЕ: -0.16 [11:42:38]line ИТОГО: 1000.00 [11:42:38]line Внесено: 1000.00 [11:42:38]line СДАЧА: 0.00 [11:42:38]line НСП 1% : 8.85 [11:42:38]line НДС 12% : 106.21 [11:42:38]line Наличными: 1000.00 [11:42:38]line Безнал.: 0.00 [11:42:38]line Место: АЗС № 170 "Партнер Нефть" [11:42:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:42:38]line СНО: Общий режим [11:42:38]line Чек 140 27.10.2024 11:42 [11:42:38]line Смена: 542 ФФД: 1.0 [11:42:38]line ЗНМ: 0300000110 [11:42:38]line РНМ: 0000000000091776 [11:42:38]line Версия ККМ: 001 [11:42:38]line ФМ: 0000000000871754 [11:42:38]line ФД: 192108 [11:42:38]line ФПД: 245534663039326 [11:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114256&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192108&fm=245534663039326&tin=02508201610067®Number=0000000000091776&sum=100000 [11:42:39]OFD Sender: Processing packet 192108 [packets to send 75, broken 74] [11:42:39]ProducePacketName [11:42:39]name=ofd_packets/00192108 [11:42:39]OFD Sender: To server: pG, [11:42:39]CommunicateWithHost lk.salyk.kg:30040 [11:42:39]ConnectInit lk.salyk.kg [11:42:39]written 0, free lines is 4095 [11:42:39]Connected sock=8 [11:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 91 07 01 50 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 40 27 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EE 02 00 35 04 06 00 DF 4F FE 5E D9 5E 27 8E 01 B6 44 1F EF 60 [11: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 37 35 34 4F 00 00 00 0E 30 47 00 1A 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EE 02 00 F4 03 04 00 08 CC 1D 67 B6 04 01 00 00 A2 00 77 AE C1 2B DB 9C [11:42:39]CommunicateWithHost err = 0 [11:42:39]CheckOFDResponse [11:42:39]1017 (14) - 77093643461234 [11:42:39]1041 (16) - 0000000000871754 [11:42:39]1040 (4) - 192108 [11:42:39]1012 (4) - 27.10.2024 05:13 [11:42:39]1206 (1) - 0 [11:42:39]OFD Sender: Remove packet 192108 [11:42:39]ProducePacketName [11:42:39]name=ofd_packets/00192108 [11:42:39]NVStorageDeleteData [11:42:39]Write to MH i2c: 01 00 00 D8 67 3F [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 07 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 07 00 D8 67 00 00 00 00 00 B9 0C 0B [11:42:39]RasterBufferAndPrint [11:42:39]line [11:42:39]line [11:42:39]line [11:42:39]line [11:42:39]line [11:42:39]written 0, free lines is 3265 [11:42:39]MH_Cut [11:42:39]Write to MH i2c: D1 01 00 DF 67 01 18 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: D1 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: D1 01 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: D1 01 00 DF 67 00 17 [11:42:39]Write to MH i2c: 01 00 00 E0 67 47 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]OFD Sender: No OFD packet to send [11:42:40]*** Cut start [11:42:40]*** Partial cut [11:42:40]*** CUTSNS_PIN = 1 [11:42:40]*** CUTSNS_PIN = 0 [11:42:40]*** Brake cut motor [11:42:41]Read from MH i2c: 01 [11:42:41]MH_I2C_Read... [11:42:41]*** Stop cut motor [11:42:41]*** Cut end [11:42:41]Read from MH i2c: 01 07 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 E0 67 00 00 00 00 00 FF 0F 5C [11:42:41]process_action close_receipt done [11:42:41]requested_data is exist [11:42:41]produce_requested_data [11:42:41]requested_item fm.sn is exist - process it [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 11 00 00 [11:42:41]Write to MH i2c: E2 08 00 E1 67 80 11 00 00 00 00 00 00 C2 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 E1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [11:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:41]wFMCommunicate OK [11:42:41]requested_item fd.num is exist - process it [11:42:41]SAM_PROTO_GetFieldsCounters [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 13 00 00 [11:42:41]Write to MH i2c: E2 08 00 E2 67 80 13 00 00 00 00 00 00 C5 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 62 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 62 00 E2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:41]wFMCommunicate OK [11:42:41]SAM_PROTO_GetFieldsCounters done [11:42:41]requested_item shift.num is exist - process it [11:42:41]requested_item shift.opened is exist - process it [11:42:41]req_shift_opened [11:42:41]FM_GetShiftState [11:42:41]SAM_PROTO_GetShiftState [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 13 01 00 [11:42:41]Write to MH i2c: E2 08 00 E3 67 80 13 01 00 00 00 00 00 C7 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 0E 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 0E 00 E3 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 08 [11:42:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:42:41]wFMCommunicate OK [11:42:41]SAM_PROTO_GetShiftState done [11:42:41]FM_GetShiftState done [11:42:41]req_shift_opened done [11:42:41]requested_item shift.open_date is exist - process it [11:42:41]req_shift_open_date [11:42:41]req_shift_open_date done [11:42:41]produce_requested_data done [11:42:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192108,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:42:41]process_action_free close_receipt [11:42:41]json_value_free [11:42:41]json_value_free done [11:42:41]process_json_proto returns [11:42:41]Send response to host [11:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192108,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:42:41]free response buf [11:42:41]execute_script done [11:42:41]execute_script returns [11:42:41]free content buf [11:42:41]Sock 6.Close socket [11:42:41]Sock 6.Thread stoped [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]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:45:58]accept exits with 5 [11:45:58]New connection [11:45:58]New thread 3066961252 created [11:45:58]Thread 3066817892 joined [11:45:58]Waiting for new connection... [11:45:58] Sock 5.Parse request [11:45:58]Sock 5.Check first char [11:45:58]Sock 5.First char is OK [11:45:58]request: POST /json_proto HTTP/1.0 [11:45:58]Method: POST [11:45:58]URL: /json_proto [11:45:58]Method is POST - this is cgi request [11:45:58]url: /json_proto [11:45:58]query_string will be loaded in cgi processing [11:45:58]execute_cgi json_proto POST (null) [11:45:58]execute_cgi path=json_proto method=POST [11:45:58]POST find Content-Length [11:45:58]Host: 172.17.63.131:8080 [11:45:58]Content-Length: 681 [11:45:58]Content-Type: application/json [11:45:58] [11:45:58]POST finish read [11:45:58]Found Content-Length = 681 [11:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:58]execute_script... [11:45:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:58]POST & json_proto [11:45:58]process_json_proto [11:45:58]json parsed OK: [11:45:58]protocol is kg_v1.0 [11:45:58]action value=close_receipt [11:45:58]process_action close_receipt [11:45:58]cmd_close_receipt [11:45:58]MH_GetDate [11:45:58]Write to MH i2c: F0 00 00 E4 67 3A [11:45:58]Write i2c OK [11:45:58]MH_I2C_Read... [11:45:58]Read from MH i2c: F0 [11:45:58]MH_I2C_Read... [11:45:58]Read from MH i2c: F0 09 00 [11:45:58]MH_I2C_Read... [11:45:58]Read from MH i2c: F0 09 00 E4 67 00 09 28 1E 67 22 05 6E 64 F2 [11:45:58]GetLastDocTimeStamp 1730029376 [11:45:58]current date 1730029577 [11:45:58]FM_GetShiftState [11:45:58]SAM_PROTO_GetShiftState [11:45:58]wFMCommunicate request_size=4 [11:45:58]MH_SAM_APDU [11:45:58]CAPDU: 80 13 01 00 [11:45:58]Write to MH i2c: E2 08 00 E5 67 80 13 01 00 00 00 00 00 C9 [11:45:58]Write i2c OK [11:45:58]MH_I2C_Read... [11:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:58]Read from MH i2c: E2 [11:45:58]MH_I2C_Read... [11:45:58]Read from MH i2c: E2 0E 00 [11:45:58]MH_I2C_Read... [11:45:58]Read from MH i2c: E2 0E 00 E5 67 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [11:45:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:45:58]wFMCommunicate OK [11:45:58]SAM_PROTO_GetShiftState done [11:45:58]FM_GetShiftState done [11:45:58]opened in 1729989159 [11:45:58]opened+sec_in_day 1730075559 [11:45:58]quantity*price = 130053 [11:45:58]sum+1 = 130055 [11:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 141 27.10.2024 11:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192109 ФПД: 96887876200927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192109&fm=96887876200927&tin=02508201610067®Number=0000000000091776&sum=130000 [11:45:59]StoreToDocumentArchive [11:45:59]shift 542 fd 192109 [11:45:59]save to /storage/0542/doc_00192109 [11:45:59]save last doc name /storage/0542/doc_00192109 to /storage/kkm_last_doc_name [11:45:59]save OK [11:45:59]Clear old archive folders... [11:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:59]tlvbuf is 01609130 [11:45:59]SAM_PROTO_ClearQueue [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 09 00 00 [11:45:59]Write to MH i2c: E2 08 00 F2 67 80 09 00 00 00 00 00 00 CB [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 F2 67 00 90 00 CD [11:45:59]RAPDU: 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_ClearQueue done [11:45:59]KKMCreateOFDPacket [11:45:59]OFDProtocolAddRootSTLVToBuf [11:45:59]FM_MakeSignedData [11:45:59]FM_MakeSignedData [11:45:59]SAM_PROTO_SignData [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 0D 01 02 [11:45:59]Write to MH i2c: E2 08 00 F3 67 80 0D 01 02 00 00 00 00 D3 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 F3 67 00 90 00 CE [11:45:59]RAPDU: 90 00 [11:45:59]wFMCommunicate OK [11:45:59]wFMCommunicate request_size=255 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 09 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EE 02 00 35 04 06 00 58 [11:45:59]Write to MH i2c: E2 02 01 F4 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 09 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EE 02 00 35 04 06 00 58 00 00 B7 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 F4 67 00 90 00 CF [11:45:59]RAPDU: 90 00 [11:45:59]wFMCommunicate OK [11:45:59]wFMCommunicate request_size=10 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 0D 02 02 05 1E 77 71 A9 DF [11:45:59]Write to MH i2c: E2 0D 00 F5 67 80 0D 02 02 05 00 1E 77 71 A9 DF 00 00 6E [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 03 00 F5 67 00 90 00 D0 [11:45:59]RAPDU: 90 00 [11:45:59]wFMCommunicate OK [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 0D 03 02 [11:45:59]Write to MH i2c: E2 08 00 F6 67 80 0D 03 02 00 00 00 00 D8 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0B 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0B 00 F6 67 00 22 A2 76 44 B7 D0 38 39 90 00 4F [11:45:59]RAPDU: 22 A2 76 44 B7 D0 38 39 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_SignData done [11:45:59]FM_MakeSignedData done [11:45:59]CreateOFDProtocolMessage [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 11 00 00 [11:45:59]Write to MH i2c: E2 08 00 F7 67 80 11 00 00 00 00 00 00 D8 [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 F7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [11:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:45:59]wFMCommunicate OK [11:45:59]CreateOFDProtocolMessage done [11:45:59]OFDSenderStorePacket 192109 [11:45:59]StoreOFDPacket docnum=192109 [11:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 92 07 01 4E 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 09 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EE 02 00 35 04 06 00 58 1E 77 71 A9 DF 22 A2 76 44 B7 D0 38 39 [11:45:59]CheckFolder [11:45:59]dirname=/storage/ofd_packets [11:45:59]CheckFolder done [11:45:59]ProducePacketName [11:45:59]name=ofd_packets/00192109 [11:45:59]NVStorageSaveData ofd_packets/00192109 [11:45:59]File name is /storage/ofd_packets/00192109 [11:45:59]Write 301 bytes [11:45:59]NVStorageSaveData done [11:45:59]OFDSenderStorePacket done [11:45:59]KKMCreateOFDPacket done [11:45:59]NVStorageSaveData kkm_last_timestamp [11:45:59]File name is /storage/kkm_last_timestamp [11:45:59]Write 4 bytes [11:45:59]NVStorageSaveData done [11:45:59]ExternCall_PrintAddStr [11:45:59]wPrintStart [11:45:59]Write to MH i2c: 01 00 00 F8 67 5F [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: 01 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: 01 07 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: 01 07 00 F8 67 00 00 00 00 00 FF 0F 74 [11:45:59]RasterBufferAndPrint [11:45:59]line Счет N : (1)31419 [11:45:59]line ИНН: 02508201610067 [11:45:59]line Контрольно-Кассовый Чек [11:45:59]line ПРОДАЖА [11:45:59]line ТРК (МРК, ГНК) : 21 [11:45:59]line Товар: 2710124130 [11:45:59]line Аи-92-К-5 [11:45:59]line 19.440 * 66.90 [11:45:59]line = 1300.54 [11:45:59]line НДС 12% НСП 1% [11:45:59]line > о реализуемом товаре [11:45:59]line ОКРУГЛЕНИЕ: -0.54 [11:45:59]line ИТОГО: 1300.00 [11:45:59]line Внесено: 1300.00 [11:45:59]line СДАЧА: 0.00 [11:45:59]line НСП 1% : 11.51 [11:45:59]line НДС 12% : 138.11 [11:45:59]line Наличными: 1300.00 [11:45:59]line Безнал.: 0.00 [11:45:59]line Место: АЗС № 170 "Партнер Нефть" [11:45:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:45:59]line СНО: Общий режим [11:45:59]line Чек 141 27.10.2024 11:46 [11:45:59]line Смена: 542 ФФД: 1.0 [11:45:59]line ЗНМ: 0300000110 [11:45:59]line РНМ: 0000000000091776 [11:45:59]line Версия ККМ: 001 [11:45:59]line ФМ: 0000000000871754 [11:45:59]line ФД: 192109 [11:45:59]line ФПД: 96887876200927 [11:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192109&fm=96887876200927&tin=02508201610067®Number=0000000000091776&sum=130000 [11:46:00]OFD Sender: Processing packet 192109 [packets to send 75, broken 74] [11:46:00]ProducePacketName [11:46:00]name=ofd_packets/00192109 [11:46:00]OFD Sender: To server: pG, [11:46:00]CommunicateWithHost lk.salyk.kg:30040 [11:46:00]ConnectInit lk.salyk.kg [11:46:00]written 0, free lines is 4095 [11:46:00]Connected sock=8 [11:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E 92 07 01 4E 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 09 28 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EE 02 00 35 04 06 00 58 1E 77 71 A9 DF 22 A2 76 44 B7 D0 38 39 [11:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA 0C 47 00 D3 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EE 02 00 F4 03 04 00 D1 CC 1D 67 B6 04 01 00 00 34 64 FC 9C 27 78 27 5E [11:46:00]CommunicateWithHost err = 0 [11:46:00]CheckOFDResponse [11:46:00]1017 (14) - 77093643461234 [11:46:00]1041 (16) - 0000000000871754 [11:46:00]1040 (4) - 192109 [11:46:00]1012 (4) - 27.10.2024 05:17 [11:46:00]1206 (1) - 0 [11:46:00]OFD Sender: Remove packet 192109 [11:46:00]ProducePacketName [11:46:00]name=ofd_packets/00192109 [11:46:00]NVStorageDeleteData [11:46:00]Write to MH i2c: 01 00 00 23 68 8B [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 07 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: 01 07 00 23 68 00 00 00 00 00 B6 0C 54 [11:46:00]RasterBufferAndPrint [11:46:00]line [11:46:00]line [11:46:00]line [11:46:00]line [11:46:00]line [11:46:00]written 0, free lines is 3262 [11:46:00]MH_Cut [11:46:00]Write to MH i2c: D1 01 00 2A 68 01 64 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: D1 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: D1 01 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: D1 01 00 2A 68 00 63 [11:46:00]Write to MH i2c: 01 00 00 2B 68 93 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]OFD Sender: No OFD packet to send [11:46:01]*** Cut start [11:46:01]*** Partial cut [11:46:01]*** CUTSNS_PIN = 1 [11:46:01]*** CUTSNS_PIN = 0 [11:46:01]*** Brake cut motor [11:46:02]Read from MH i2c: 01 [11:46:02]MH_I2C_Read... [11:46:02]*** Stop cut motor [11:46:02]*** Cut end [11:46:02]Read from MH i2c: 01 07 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 2B 68 00 00 00 00 00 FF 0F A8 [11:46:02]process_action close_receipt done [11:46:02]requested_data is exist [11:46:02]produce_requested_data [11:46:02]requested_item fm.sn is exist - process it [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 11 00 00 [11:46:02]Write to MH i2c: E2 08 00 2C 68 80 11 00 00 00 00 00 00 0E [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 2C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [11:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:46:02]wFMCommunicate OK [11:46:02]requested_item fd.num is exist - process it [11:46:02]SAM_PROTO_GetFieldsCounters [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 13 00 00 [11:46:02]Write to MH i2c: E2 08 00 2D 68 80 13 00 00 00 00 00 00 11 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 62 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 62 00 2D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:02]wFMCommunicate OK [11:46:02]SAM_PROTO_GetFieldsCounters done [11:46:02]requested_item shift.num is exist - process it [11:46:02]requested_item shift.opened is exist - process it [11:46:02]req_shift_opened [11:46:02]FM_GetShiftState [11:46:02]SAM_PROTO_GetShiftState [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 13 01 00 [11:46:02]Write to MH i2c: E2 08 00 2E 68 80 13 01 00 00 00 00 00 13 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 2E 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 54 [11:46:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:46:02]wFMCommunicate OK [11:46:02]SAM_PROTO_GetShiftState done [11:46:02]FM_GetShiftState done [11:46:02]req_shift_opened done [11:46:02]requested_item shift.open_date is exist - process it [11:46:02]req_shift_open_date [11:46:02]req_shift_open_date done [11:46:02]produce_requested_data done [11:46:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192109,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:46:02]process_action_free close_receipt [11:46:02]json_value_free [11:46:02]json_value_free done [11:46:02]process_json_proto returns [11:46:02]Send response to host [11:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192109,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:46:02]free response buf [11:46:02]execute_script done [11:46:02]execute_script returns [11:46:02]free content buf [11:46:02]Sock 5.Close socket [11:46:02]Sock 5.Thread stoped [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:39]accept exits with 6 [11:51:39]New connection [11:51:39]New thread 3066817892 created [11:51:39]Thread 3066961252 joined [11:51:39]Waiting for new connection... [11:51:39] Sock 6.Parse request [11:51:39]Sock 6.Check first char [11:51:39]Sock 6.First char is OK [11:51:39]request: POST /json_proto HTTP/1.0 [11:51:39]Method: POST [11:51:39]URL: /json_proto [11:51:39]Method is POST - this is cgi request [11:51:39]url: /json_proto [11:51:39]query_string will be loaded in cgi processing [11:51:39]execute_cgi json_proto POST (null) [11:51:39]execute_cgi path=json_proto method=POST [11:51:39]POST find Content-Length [11:51:39]Host: 172.17.63.131:8080 [11:51:39]Content-Length: 674 [11:51:39]Content-Type: application/json [11:51:39] [11:51:39]POST finish read [11:51:39]Found Content-Length = 674 [11:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31420", "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" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:39]execute_script... [11:51:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31420", "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" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:39]POST & json_proto [11:51:39]process_json_proto [11:51:39]json parsed OK: [11:51:39]protocol is kg_v1.0 [11:51:39]action value=close_receipt [11:51:39]process_action close_receipt [11:51:39]cmd_close_receipt [11:51:39]MH_GetDate [11:51:39]Write to MH i2c: F0 00 00 2F 68 86 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 2F 68 00 5F 29 1E 67 22 05 6E 64 95 [11:51:39]GetLastDocTimeStamp 1730029577 [11:51:39]current date 1730029919 [11:51:39]FM_GetShiftState [11:51:39]SAM_PROTO_GetShiftState [11:51:39]wFMCommunicate request_size=4 [11:51:39]MH_SAM_APDU [11:51:39]CAPDU: 80 13 01 00 [11:51:39]Write to MH i2c: E2 08 00 30 68 80 13 01 00 00 00 00 00 15 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:39]Read from MH i2c: E2 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 30 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [11:51:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:51:39]wFMCommunicate OK [11:51:39]SAM_PROTO_GetShiftState done [11:51:39]FM_GetShiftState done [11:51:39]opened in 1729989159 [11:51:39]opened+sec_in_day 1730075559 [11:51:39]quantity*price = 90068 [11:51:39]sum+1 = 90069 [11:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 142 27.10.2024 11:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192110 ФПД: 17502018966033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192110&fm=17502018966033&tin=02508201610067®Number=0000000000091776&sum=90000 [11:51:41]StoreToDocumentArchive [11:51:41]shift 542 fd 192110 [11:51:41]save to /storage/0542/doc_00192110 [11:51:41]save last doc name /storage/0542/doc_00192110 to /storage/kkm_last_doc_name [11:51:41]save OK [11:51:41]Clear old archive folders... [11:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:41]tlvbuf is 01808630 [11:51:41]SAM_PROTO_ClearQueue [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 09 00 00 [11:51:41]Write to MH i2c: E2 08 00 3D 68 80 09 00 00 00 00 00 00 17 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 3D 68 00 90 00 19 [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_ClearQueue done [11:51:41]KKMCreateOFDPacket [11:51:41]OFDProtocolAddRootSTLVToBuf [11:51:41]FM_MakeSignedData [11:51:41]FM_MakeSignedData [11:51:41]SAM_PROTO_SignData [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 01 02 [11:51:41]Write to MH i2c: E2 08 00 3E 68 80 0D 01 02 00 00 00 00 1F [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 3E 68 00 90 00 1A [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]wFMCommunicate request_size=255 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 5F 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EE 02 00 35 04 06 00 0F EB 01 9F [11:51:41]Write to MH i2c: E2 02 01 3F 68 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 5F 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EE 02 00 35 04 06 00 0F EB 01 9F 00 00 25 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]OFD Sender: No OFD packet to send [11:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 3F 68 00 90 00 1B [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]wFMCommunicate request_size=7 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 02 02 02 92 11 [11:51:41]Write to MH i2c: E2 0A 00 40 68 80 0D 02 02 02 00 92 11 00 00 C9 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 40 68 00 90 00 1C [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 03 02 [11:51:41]Write to MH i2c: E2 08 00 41 68 80 0D 03 02 00 00 00 00 24 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0B 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0B 00 41 68 00 82 4E 07 B2 D4 37 95 53 90 00 A1 [11:51:41]RAPDU: 82 4E 07 B2 D4 37 95 53 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_SignData done [11:51:41]FM_MakeSignedData done [11:51:41]CreateOFDProtocolMessage [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 11 00 00 [11:51:41]Write to MH i2c: E2 08 00 42 68 80 11 00 00 00 00 00 00 24 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 42 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [11:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:41]wFMCommunicate OK [11:51:41]CreateOFDProtocolMessage done [11:51:41]OFDSenderStorePacket 192110 [11:51:41]StoreOFDPacket docnum=192110 [11:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B1 15 04 01 6B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 5F 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EE 02 00 35 04 06 00 0F EB 01 9F 92 11 82 4E 07 B2 D4 37 95 53 [11:51:41]CheckFolder [11:51:41]dirname=/storage/ofd_packets [11:51:41]CheckFolder done [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00192110 [11:51:41]NVStorageSaveData ofd_packets/00192110 [11:51:41]File name is /storage/ofd_packets/00192110 [11:51:41]Write 298 bytes [11:51:41]NVStorageSaveData done [11:51:41]OFDSenderStorePacket done [11:51:41]KKMCreateOFDPacket done [11:51:41]NVStorageSaveData kkm_last_timestamp [11:51:41]File name is /storage/kkm_last_timestamp [11:51:41]Write 4 bytes [11:51:41]NVStorageSaveData done [11:51:41]ExternCall_PrintAddStr [11:51:41]wPrintStart [11:51:41]Write to MH i2c: 01 00 00 43 68 AB [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 43 68 00 00 00 00 00 FF 0F C0 [11:51:41]RasterBufferAndPrint [11:51:41]line Счет N : (1)31420 [11:51:41]line ИНН: 02508201610067 [11:51:41]line Контрольно-Кассовый Чек [11:51:41]line ПРОДАЖА [11:51:41]line ТРК (МРК, ГНК) : 11 [11:51:41]line Товар: 2710194210 [11:51:41]line ДТ-К-5 [11:51:41]line 11.820 * 76.20 [11:51:41]line = 900.68 [11:51:41]line НДС 12% НСП 1% [11:51:41]line > о реализуемом товаре [11:51:41]line ОКРУГЛЕНИЕ: -0.68 [11:51:41]line ИТОГО: 900.00 [11:51:41]line Внесено: 900.00 [11:51:41]line СДАЧА: 0.00 [11:51:41]line НСП 1% : 7.97 [11:51:41]line НДС 12% : 95.65 [11:51:41]line Наличными: 900.00 [11:51:41]line Безнал.: 0.00 [11:51:41]line Место: АЗС № 170 "Партнер Нефть" [11:51:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:51:41]line СНО: Общий режим [11:51:41]line Чек 142 27.10.2024 11:51 [11:51:41]line Смена: 542 ФФД: 1.0 [11:51:41]line ЗНМ: 0300000110 [11:51:41]line РНМ: 0000000000091776 [11:51:41]line Версия ККМ: 001 [11:51:41]line ФМ: 0000000000871754 [11:51:41]line ФД: 192110 [11:51:41]line ФПД: 17502018966033 [11:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192110&fm=17502018966033&tin=02508201610067®Number=0000000000091776&sum=90000 [11:51:41]OFD Sender: Processing packet 192110 [packets to send 75, broken 74] [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00192110 [11:51:41]OFD Sender: To server: pG, [11:51:41]CommunicateWithHost lk.salyk.kg:30040 [11:51:41]ConnectInit lk.salyk.kg [11:51:41]written 0, free lines is 4095 [11:51:41]Connected sock=9 [11:51:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B1 15 04 01 6B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 5F 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EE 02 00 35 04 06 00 0F EB 01 9F 92 11 82 4E 07 B2 D4 37 95 53 [11:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 19 47 00 B3 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EE 02 00 F4 03 04 00 27 CE 1D 67 B6 04 01 00 00 13 2B 1A 2E 01 80 BB D3 [11:51:42]CommunicateWithHost err = 0 [11:51:42]CheckOFDResponse [11:51:42]1017 (14) - 77093643461234 [11:51:42]1041 (16) - 0000000000871754 [11:51:42]1040 (4) - 192110 [11:51:42]1012 (4) - 27.10.2024 05:22 [11:51:42]1206 (1) - 0 [11:51:42]OFD Sender: Remove packet 192110 [11:51:42]ProducePacketName [11:51:42]name=ofd_packets/00192110 [11:51:42]NVStorageDeleteData [11:51:42]Write to MH i2c: 01 00 00 6E 68 D6 [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 07 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 07 00 6E 68 00 00 00 00 00 A9 0C 92 [11:51:42]RasterBufferAndPrint [11:51:42]line [11:51:42]line [11:51:42]line [11:51:42]line [11:51:42]line [11:51:42]written 0, free lines is 3245 [11:51:42]MH_Cut [11:51:42]Write to MH i2c: D1 01 00 75 68 01 AF [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: D1 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: D1 01 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: D1 01 00 75 68 00 AE [11:51:42]Write to MH i2c: 01 00 00 76 68 DE [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]OFD Sender: No OFD packet to send [11:51:43]*** Cut start [11:51:43]*** Partial cut [11:51:43]*** CUTSNS_PIN = 1 [11:51:43]*** CUTSNS_PIN = 0 [11:51:43]*** Brake cut motor [11:51:43]Read from MH i2c: 01 [11:51:43]*** Stop cut motor [11:51:43]*** Cut end [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 76 68 00 00 00 00 00 FF 0F F3 [11:51:43]process_action close_receipt done [11:51:43]requested_data is exist [11:51:43]produce_requested_data [11:51:43]requested_item fm.sn is exist - process it [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 11 00 00 [11:51:43]Write to MH i2c: E2 08 00 77 68 80 11 00 00 00 00 00 00 59 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 77 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [11:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:43]wFMCommunicate OK [11:51:43]requested_item fd.num is exist - process it [11:51:43]SAM_PROTO_GetFieldsCounters [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 13 00 00 [11:51:43]Write to MH i2c: E2 08 00 78 68 80 13 00 00 00 00 00 00 5C [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 62 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 62 00 78 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:44]wFMCommunicate OK [11:51:44]SAM_PROTO_GetFieldsCounters done [11:51:44]requested_item shift.num is exist - process it [11:51:44]requested_item shift.opened is exist - process it [11:51:44]req_shift_opened [11:51:44]FM_GetShiftState [11:51:44]SAM_PROTO_GetShiftState [11:51:44]wFMCommunicate request_size=4 [11:51:44]MH_SAM_APDU [11:51:44]CAPDU: 80 13 01 00 [11:51:44]Write to MH i2c: E2 08 00 79 68 80 13 01 00 00 00 00 00 5E [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 79 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9F [11:51:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:51:44]wFMCommunicate OK [11:51:44]SAM_PROTO_GetShiftState done [11:51:44]FM_GetShiftState done [11:51:44]req_shift_opened done [11:51:44]requested_item shift.open_date is exist - process it [11:51:44]req_shift_open_date [11:51:44]req_shift_open_date done [11:51:44]produce_requested_data done [11:51:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192110,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:51:44]process_action_free close_receipt [11:51:44]json_value_free [11:51:44]json_value_free done [11:51:44]process_json_proto returns [11:51:44]Send response to host [11:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192110,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:51:44]free response buf [11:51:44]execute_script done [11:51:44]execute_script returns [11:51:44]free content buf [11:51:44]Sock 6.Close socket [11:51:44]Sock 6.Thread stoped [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:05]accept exits with 5 [11:52:05]New connection [11:52:05]New thread 3066961252 created [11:52:05]Thread 3066817892 joined [11:52:05]Waiting for new connection... [11:52:05] Sock 5.Parse request [11:52:05]Sock 5.Check first char [11:52:05]Sock 5.First char is OK [11:52:05]request: POST /json_proto HTTP/1.0 [11:52:05]Method: POST [11:52:05]URL: /json_proto [11:52:05]Method is POST - this is cgi request [11:52:05]url: /json_proto [11:52:05]query_string will be loaded in cgi processing [11:52:05]execute_cgi json_proto POST (null) [11:52:05]execute_cgi path=json_proto method=POST [11:52:05]POST find Content-Length [11:52:05]Host: 172.17.63.131:8080 [11:52:05]Content-Length: 676 [11:52:05]Content-Type: application/json [11:52:05] [11:52:05]POST finish read [11:52:05]Found Content-Length = 676 [11:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.720, "sum" : 583.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 583.00, "payments": [ { "type": 0, "sum" : 583.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:05]execute_script... [11:52: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)31421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.720, "sum" : 583.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 583.00, "payments": [ { "type": 0, "sum" : 583.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:05]POST & json_proto [11:52:05]process_json_proto [11:52:05]json parsed OK: [11:52:05]protocol is kg_v1.0 [11:52:05]action value=close_receipt [11:52:05]process_action close_receipt [11:52:05]cmd_close_receipt [11:52:05]MH_GetDate [11:52:05]Write to MH i2c: F0 00 00 7A 68 D1 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: F0 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: F0 09 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: F0 09 00 7A 68 00 79 29 1E 67 22 05 6E 64 FA [11:52:05]GetLastDocTimeStamp 1730029919 [11:52:05]current date 1730029945 [11:52:05]FM_GetShiftState [11:52:05]SAM_PROTO_GetShiftState [11:52:05]wFMCommunicate request_size=4 [11:52:05]MH_SAM_APDU [11:52:05]CAPDU: 80 13 01 00 [11:52:05]Write to MH i2c: E2 08 00 7B 68 80 13 01 00 00 00 00 00 60 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:05]Read from MH i2c: E2 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: E2 0E 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: E2 0E 00 7B 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [11:52:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:52:05]wFMCommunicate OK [11:52:05]SAM_PROTO_GetShiftState done [11:52:05]FM_GetShiftState done [11:52:05]opened in 1729989159 [11:52:05]opened+sec_in_day 1730075559 [11:52:05]quantity*price = 58336 [11:52:05]sum+1 = 58338 [11:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 583.00 Внесено: 600.00 СДАЧА: 17.00 НСП 1% : 5.16 НДС 12% : 61.95 Наличными: 583.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 143 27.10.2024 11:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192111 ФПД: 76312102547353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192111&fm=76312102547353&tin=02508201610067®Number=0000000000091776&sum=58300 [11:52:06]StoreToDocumentArchive [11:52:06]shift 542 fd 192111 [11:52:06]save to /storage/0542/doc_00192111 [11:52:06]save last doc name /storage/0542/doc_00192111 to /storage/kkm_last_doc_name [11:52:06]save OK [11:52:06]Clear old archive folders... [11:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:06]tlvbuf is 015F2630 [11:52:06]SAM_PROTO_ClearQueue [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 09 00 00 [11:52:06]Write to MH i2c: E2 08 00 88 68 80 09 00 00 00 00 00 00 62 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 88 68 00 90 00 64 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]SAM_PROTO_ClearQueue done [11:52:07]KKMCreateOFDPacket [11:52:07]OFDProtocolAddRootSTLVToBuf [11:52:07]FM_MakeSignedData [11:52:07]FM_MakeSignedData [11:52:07]SAM_PROTO_SignData [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 01 02 [11:52:07]Write to MH i2c: E2 08 00 89 68 80 0D 01 02 00 00 00 00 6A [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 89 68 00 90 00 65 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=255 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 E3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 18 00 00 00 00 07 04 06 00 BC E3 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 79 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EE 02 00 35 04 06 00 45 [11:52:07]Write to MH i2c: E2 02 01 8A 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 E3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 18 00 00 00 00 07 04 06 00 BC E3 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 79 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EE 02 00 35 04 06 00 45 00 00 B4 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 8A 68 00 90 00 66 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=10 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 02 02 05 67 CB C3 AF 99 [11:52:07]Write to MH i2c: E2 0D 00 8B 68 80 0D 02 02 05 00 67 CB C3 AF 99 00 00 B4 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 03 00 8B 68 00 90 00 67 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 03 02 [11:52:07]Write to MH i2c: E2 08 00 8C 68 80 0D 03 02 00 00 00 00 6F [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0B 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0B 00 8C 68 00 CE D8 0D 76 67 95 A4 AF 90 00 E8 [11:52:07]RAPDU: CE D8 0D 76 67 95 A4 AF 90 00 [11:52:07]wFMCommunicate OK [11:52:07]SAM_PROTO_SignData done [11:52:07]FM_MakeSignedData done [11:52:07]CreateOFDProtocolMessage [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 11 00 00 [11:52:07]Write to MH i2c: E2 08 00 8D 68 80 11 00 00 00 00 00 00 6F [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 17 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 17 00 8D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [11:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:52:07]wFMCommunicate OK [11:52:07]CreateOFDProtocolMessage done [11:52:07]OFDSenderStorePacket 192111 [11:52:07]StoreOFDPacket docnum=192111 [11:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 B3 07 01 F5 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 E3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 18 00 00 00 00 07 04 06 00 BC E3 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 79 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EE 02 00 35 04 06 00 45 67 CB C3 AF 99 CE D8 0D 76 67 95 A4 AF [11:52:07]CheckFolder [11:52:07]dirname=/storage/ofd_packets [11:52:07]CheckFolder done [11:52:07]ProducePacketName [11:52:07]name=ofd_packets/00192111 [11:52:07]NVStorageSaveData ofd_packets/00192111 [11:52:07]File name is /storage/ofd_packets/00192111 [11:52:07]Write 301 bytes [11:52:07]NVStorageSaveData done [11:52:07]OFDSenderStorePacket done [11:52:07]KKMCreateOFDPacket done [11:52:07]NVStorageSaveData kkm_last_timestamp [11:52:07]File name is /storage/kkm_last_timestamp [11:52:07]Write 4 bytes [11:52:07]NVStorageSaveData done [11:52:07]ExternCall_PrintAddStr [11:52:07]wPrintStart [11:52:07]Write to MH i2c: 01 00 00 8E 68 F6 [11:52:07]OFD Sender: Processing packet 192111 [packets to send 75, broken 74] [11:52:07]ProducePacketName [11:52:07]name=ofd_packets/00192111 [11:52:07]OFD Sender: To server: pG, [11:52:07]CommunicateWithHost lk.salyk.kg:30040 [11:52:07]ConnectInit lk.salyk.kg [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 07 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 07 00 8E 68 00 00 00 00 00 FF 0F 0B [11:52:07]RasterBufferAndPrint [11:52:07]line Счет N : (1)31421 [11:52:07]line ИНН: 02508201610067 [11:52:07]line Контрольно-Кассовый Чек [11:52:07]line ПРОДАЖА [11:52:07]line ТРК (МРК, ГНК) : 12 [11:52:07]line Товар: 2710124130 [11:52:07]line Аи-92-К-5 [11:52:07]line 8.720 * 66.90 [11:52:07]line = 583.37 [11:52:07]line НДС 12% НСП 1% [11:52:07]line > о реализуемом товаре [11:52:07]line ОКРУГЛЕНИЕ: -0.37 [11:52:07]line ИТОГО: 583.00 [11:52:07]line Внесено: 600.00 [11:52:07]line СДАЧА: 17.00 [11:52:07]line НСП 1% : 5.16 [11:52:07]line НДС 12% : 61.95 [11:52:07]line Наличными: 583.00 [11:52:07]line Безнал.: 0.00 [11:52:07]line Место: АЗС № 170 "Партнер Нефть" [11:52:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:52:07]line СНО: Общий режим [11:52:07]line Чек 143 27.10.2024 11:52 [11:52:07]line Смена: 542 ФФД: 1.0 [11:52:07]line ЗНМ: 0300000110 [11:52:07]line РНМ: 0000000000091776 [11:52:07]line Версия ККМ: 001 [11:52:07]line ФМ: 0000000000871754 [11:52:07]line ФД: 192111 [11:52:07]line ФПД: 76312102547353 [11:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192111&fm=76312102547353&tin=02508201610067®Number=0000000000091776&sum=58300 [11:52:07]written 0, free lines is 4095 [11:52:07]Connected sock=9 [11:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 B3 07 01 F5 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 E3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC E3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 18 00 00 00 00 07 04 06 00 BC E3 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 79 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EE 02 00 35 04 06 00 45 67 CB C3 AF 99 CE D8 0D 76 67 95 A4 AF [11:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 1A 47 00 46 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EE 02 00 F4 03 04 00 41 CE 1D 67 B6 04 01 00 00 E5 E2 58 14 D2 67 57 5E [11:52:07]CommunicateWithHost err = 0 [11:52:07]CheckOFDResponse [11:52:07]1017 (14) - 77093643461234 [11:52:07]1041 (16) - 0000000000871754 [11:52:07]1040 (4) - 192111 [11:52:07]1012 (4) - 27.10.2024 05:23 [11:52:07]1206 (1) - 0 [11:52:07]OFD Sender: Remove packet 192111 [11:52:07]ProducePacketName [11:52:07]name=ofd_packets/00192111 [11:52:07]NVStorageDeleteData [11:52:08]Write to MH i2c: 01 00 00 B9 68 21 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 07 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: 01 07 00 B9 68 00 00 00 00 00 C3 0C F7 [11:52:08]RasterBufferAndPrint [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]written 0, free lines is 3282 [11:52:08]MH_Cut [11:52:08]Write to MH i2c: D1 01 00 C0 68 01 FA [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 01 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 01 00 C0 68 00 F9 [11:52:08]Write to MH i2c: 01 00 00 C1 68 29 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]OFD Sender: No OFD packet to send [11:52:08]*** Cut start [11:52:08]*** Partial cut [11:52:08]*** CUTSNS_PIN = 1 [11:52:08]*** CUTSNS_PIN = 0 [11:52:09]*** Brake cut motor [11:52:09]Read from MH i2c: 01 [11:52:09]MH_I2C_Read... [11:52:09]*** Stop cut motor [11:52:09]*** Cut end [11:52:09]Read from MH i2c: 01 07 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 C1 68 00 00 00 00 00 FF 0F 3E [11:52:09]process_action close_receipt done [11:52:09]requested_data is exist [11:52:09]produce_requested_data [11:52:09]requested_item fm.sn is exist - process it [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 11 00 00 [11:52:09]Write to MH i2c: E2 08 00 C2 68 80 11 00 00 00 00 00 00 A4 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 17 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 17 00 C2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [11:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:52:09]wFMCommunicate OK [11:52:09]requested_item fd.num is exist - process it [11:52:09]SAM_PROTO_GetFieldsCounters [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 13 00 00 [11:52:09]Write to MH i2c: E2 08 00 C3 68 80 13 00 00 00 00 00 00 A7 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 62 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 62 00 C3 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [11:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_GetFieldsCounters done [11:52:09]requested_item shift.num is exist - process it [11:52:09]requested_item shift.opened is exist - process it [11:52:09]req_shift_opened [11:52:09]FM_GetShiftState [11:52:09]SAM_PROTO_GetShiftState [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 13 01 00 [11:52:09]Write to MH i2c: E2 08 00 C4 68 80 13 01 00 00 00 00 00 A9 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0E 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0E 00 C4 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EA [11:52:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_GetShiftState done [11:52:09]FM_GetShiftState done [11:52:09]req_shift_opened done [11:52:09]requested_item shift.open_date is exist - process it [11:52:09]req_shift_open_date [11:52:09]req_shift_open_date done [11:52:09]produce_requested_data done [11:52:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192111,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:52:09]process_action_free close_receipt [11:52:09]json_value_free [11:52:09]json_value_free done [11:52:09]process_json_proto returns [11:52:09]Send response to host [11:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192111,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:52:09]free response buf [11:52:09]execute_script done [11:52:09]execute_script returns [11:52:09]free content buf [11:52:09]Sock 5.Close socket [11:52:09]Sock 5.Thread stoped [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:31]accept exits with 6 [11:53:31]New connection [11:53:31]New thread 3066817892 created [11:53:31]Thread 3066961252 joined [11:53:31]Waiting for new connection... [11:53:31] Sock 6.Parse request [11:53:31]Sock 6.Check first char [11:53:31]Sock 6.First char is OK [11:53:31]request: POST /json_proto HTTP/1.0 [11:53:31]Method: POST [11:53:31]URL: /json_proto [11:53:31]Method is POST - this is cgi request [11:53:31]url: /json_proto [11:53:31]query_string will be loaded in cgi processing [11:53:31]execute_cgi json_proto POST (null) [11:53:31]execute_cgi path=json_proto method=POST [11:53:31]POST find Content-Length [11:53:31]Host: 172.17.63.131:8080 [11:53:31]Content-Length: 676 [11:53:31]Content-Type: application/json [11:53:31] [11:53:31]POST finish read [11:53:31]Found Content-Length = 676 [11:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:31]execute_script... [11:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:31]POST & json_proto [11:53:31]process_json_proto [11:53:31]json parsed OK: [11:53:31]protocol is kg_v1.0 [11:53:31]action value=close_receipt [11:53:31]process_action close_receipt [11:53:31]cmd_close_receipt [11:53:31]MH_GetDate [11:53:31]Write to MH i2c: F0 00 00 C5 68 1C [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 09 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 09 00 C5 68 00 CF 29 1E 67 22 05 6E 64 9B [11:53:31]GetLastDocTimeStamp 1730029945 [11:53:31]current date 1730030031 [11:53:31]FM_GetShiftState [11:53:31]SAM_PROTO_GetShiftState [11:53:31]wFMCommunicate request_size=4 [11:53:31]MH_SAM_APDU [11:53:31]CAPDU: 80 13 01 00 [11:53:31]Write to MH i2c: E2 08 00 C6 68 80 13 01 00 00 00 00 00 AB [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:31]Read from MH i2c: E2 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: E2 0E 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: E2 0E 00 C6 68 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [11:53:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:53:31]wFMCommunicate OK [11:53:31]SAM_PROTO_GetShiftState done [11:53:31]FM_GetShiftState done [11:53:31]opened in 1729989159 [11:53:31]opened+sec_in_day 1730075559 [11:53:31]quantity*price = 50041 [11:53:31]sum+1 = 50042 [11:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 144 27.10.2024 11:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192112 ФПД: 113799119564415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192112&fm=113799119564415&tin=02508201610067®Number=0000000000091776&sum=50000 [11:53:32]StoreToDocumentArchive [11:53:32]shift 542 fd 192112 [11:53:32]save to /storage/0542/doc_00192112 [11:53:32]save last doc name /storage/0542/doc_00192112 to /storage/kkm_last_doc_name [11:53:32]save OK [11:53:32]Clear old archive folders... [11:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:32]tlvbuf is 01699120 [11:53:32]SAM_PROTO_ClearQueue [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 09 00 00 [11:53:32]Write to MH i2c: E2 08 00 D3 68 80 09 00 00 00 00 00 00 AD [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 D3 68 00 90 00 AF [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]SAM_PROTO_ClearQueue done [11:53:32]KKMCreateOFDPacket [11:53:32]OFDProtocolAddRootSTLVToBuf [11:53:32]FM_MakeSignedData [11:53:32]FM_MakeSignedData [11:53:32]SAM_PROTO_SignData [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 0D 01 02 [11:53:32]Write to MH i2c: E2 08 00 D4 68 80 0D 01 02 00 00 00 00 B5 [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 D4 68 00 90 00 B0 [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]wFMCommunicate request_size=255 [11:53:32]MH_SAM_APDU [11:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EE 02 00 35 04 06 00 67 [11:53:32]Write to MH i2c: E2 02 01 D5 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 CF 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EE 02 00 35 04 06 00 67 00 00 3D [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 D5 68 00 90 00 B1 [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]wFMCommunicate request_size=10 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 0D 02 02 05 7F EC 18 EE 7F [11:53:32]Write to MH i2c: E2 0D 00 D6 68 80 0D 02 02 05 00 7F EC 18 EE 7F 00 00 B2 [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 D6 68 00 90 00 B2 [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 0D 03 02 [11:53:32]Write to MH i2c: E2 08 00 D7 68 80 0D 03 02 00 00 00 00 BA [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 0B 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 0B 00 D7 68 00 3D B2 53 F9 1B 91 A4 0B 90 00 51 [11:53:32]RAPDU: 3D B2 53 F9 1B 91 A4 0B 90 00 [11:53:32]wFMCommunicate OK [11:53:32]SAM_PROTO_SignData done [11:53:32]FM_MakeSignedData done [11:53:32]CreateOFDProtocolMessage [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 11 00 00 [11:53:32]Write to MH i2c: E2 08 00 D8 68 80 11 00 00 00 00 00 00 BA [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:32]Read from MH i2c: E2 17 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 17 00 D8 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [11:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:53:32]wFMCommunicate OK [11:53:32]CreateOFDProtocolMessage done [11:53:32]OFDSenderStorePacket 192112 [11:53:32]StoreOFDPacket docnum=192112 [11:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 62 07 01 41 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EE 02 00 35 04 06 00 67 7F EC 18 EE 7F 3D B2 53 F9 1B 91 A4 0B [11:53:32]CheckFolder [11:53:32]dirname=/storage/ofd_packets [11:53:32]CheckFolder done [11:53:32]ProducePacketName [11:53:32]name=ofd_packets/00192112 [11:53:32]NVStorageSaveData ofd_packets/00192112 [11:53:32]File name is /storage/ofd_packets/00192112 [11:53:32]Write 301 bytes [11:53:32]NVStorageSaveData done [11:53:32]OFDSenderStorePacket done [11:53:32]KKMCreateOFDPacket done [11:53:32]NVStorageSaveData kkm_last_timestamp [11:53:32]File name is /storage/kkm_last_timestamp [11:53:32]Write 4 bytes [11:53:32]NVStorageSaveData done [11:53:32]ExternCall_PrintAddStr [11:53:32]wPrintStart [11:53:32]Write to MH i2c: 01 00 00 D9 68 41 [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: 01 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: 01 07 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: 01 07 00 D9 68 00 00 00 00 00 FF 0F 56 [11:53:32]RasterBufferAndPrint [11:53:32]line Счет N : (1)31422 [11:53:32]line ИНН: 02508201610067 [11:53:32]line Контрольно-Кассовый Чек [11:53:32]line ПРОДАЖА [11:53:32]line ТРК (МРК, ГНК) : 12 [11:53:32]line Товар: 2710124130 [11:53:33]line Аи-92-К-5 [11:53:33]line 7.480 * 66.90 [11:53:33]line = 500.41 [11:53:33]line НДС 12% НСП 1% [11:53:33]line > о реализуемом товаре [11:53:33]line ОКРУГЛЕНИЕ: -0.41 [11:53:33]line ИТОГО: 500.00 [11:53:33]line Внесено: 500.00 [11:53:33]line СДАЧА: 0.00 [11:53:33]line НСП 1% : 4.43 [11:53:33]line НДС 12% : 53.14 [11:53:33]line Наличными: 500.00 [11:53:33]line Безнал.: 0.00 [11:53:33]line Место: АЗС № 170 "Партнер Нефть" [11:53:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:53:33]line СНО: Общий режим [11:53:33]line Чек 144 27.10.2024 11:53 [11:53:33]line Смена: 542 ФФД: 1.0 [11:53:33]line ЗНМ: 0300000110 [11:53:33]line РНМ: 0000000000091776 [11:53:33]line Версия ККМ: 001 [11:53:33]line ФМ: 0000000000871754 [11:53:33]line ФД: 192112 [11:53:33]line ФПД: 113799119564415 [11:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192112&fm=113799119564415&tin=02508201610067®Number=0000000000091776&sum=50000 [11:53:33]written 0, free lines is 4095 [11:53:33]OFD Sender: Processing packet 192112 [packets to send 75, broken 74] [11:53:33]ProducePacketName [11:53:33]name=ofd_packets/00192112 [11:53:33]OFD Sender: To server: pG, [11:53:33]CommunicateWithHost lk.salyk.kg:30040 [11:53:33]ConnectInit lk.salyk.kg [11:53:33]Connected sock=9 [11:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 62 07 01 41 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF 29 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EE 02 00 35 04 06 00 67 7F EC 18 EE 7F 3D B2 53 F9 1B 91 A4 0B [11:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB 79 47 00 50 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EE 02 00 F4 03 04 00 96 CE 1D 67 B6 04 01 00 00 1B BC C2 F4 71 EE F3 9E [11:53:33]CommunicateWithHost err = 0 [11:53:33]CheckOFDResponse [11:53:33]1017 (14) - 77093643461234 [11:53:33]1041 (16) - 0000000000871754 [11:53:33]1040 (4) - 192112 [11:53:33]1012 (4) - 27.10.2024 05:24 [11:53:33]1206 (1) - 0 [11:53:33]OFD Sender: Remove packet 192112 [11:53:33]ProducePacketName [11:53:33]name=ofd_packets/00192112 [11:53:33]NVStorageDeleteData [11:53:33]Write to MH i2c: 01 00 00 04 69 6D [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 07 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 07 00 04 69 00 00 00 00 00 09 0D 8A [11:53:33]RasterBufferAndPrint [11:53:33]line [11:53:33]line [11:53:33]line [11:53:33]line [11:53:33]line [11:53:33]written 0, free lines is 3361 [11:53:33]MH_Cut [11:53:33]Write to MH i2c: D1 01 00 0B 69 01 46 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: D1 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: D1 01 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: D1 01 00 0B 69 00 45 [11:53:33]Write to MH i2c: 01 00 00 0C 69 75 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:34]OFD Sender: No OFD packet to send [11:53:34]*** Cut start [11:53:34]*** Partial cut [11:53:34]*** CUTSNS_PIN = 1 [11:53:34]*** CUTSNS_PIN = 0 [11:53:34]*** Brake cut motor [11:53:34]Read from MH i2c: 01 [11:53:34]MH_I2C_Read... [11:53:34]*** Stop cut motor [11:53:34]*** Cut end [11:53:34]Read from MH i2c: 01 07 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 07 00 0C 69 00 00 00 00 00 FF 0F 8A [11:53:34]process_action close_receipt done [11:53:34]requested_data is exist [11:53:34]produce_requested_data [11:53:34]requested_item fm.sn is exist - process it [11:53:34]wFMCommunicate request_size=4 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 11 00 00 [11:53:34]Write to MH i2c: E2 08 00 0D 69 80 11 00 00 00 00 00 00 F0 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 0D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [11:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:53:35]wFMCommunicate OK [11:53:35]requested_item fd.num is exist - process it [11:53:35]SAM_PROTO_GetFieldsCounters [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 13 00 00 [11:53:35]Write to MH i2c: E2 08 00 0E 69 80 13 00 00 00 00 00 00 F3 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 62 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 62 00 0E 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_GetFieldsCounters done [11:53:35]requested_item shift.num is exist - process it [11:53:35]requested_item shift.opened is exist - process it [11:53:35]req_shift_opened [11:53:35]FM_GetShiftState [11:53:35]SAM_PROTO_GetShiftState [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 13 01 00 [11:53:35]Write to MH i2c: E2 08 00 0F 69 80 13 01 00 00 00 00 00 F5 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0E 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0E 00 0F 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 36 [11:53:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_GetShiftState done [11:53:35]FM_GetShiftState done [11:53:35]req_shift_opened done [11:53:35]requested_item shift.open_date is exist - process it [11:53:35]req_shift_open_date [11:53:35]req_shift_open_date done [11:53:35]produce_requested_data done [11:53:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192112,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:53:35]process_action_free close_receipt [11:53:35]json_value_free [11:53:35]json_value_free done [11:53:35]process_json_proto returns [11:53:35]Send response to host [11:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192112,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:53:35]free response buf [11:53:35]execute_script done [11:53:35]execute_script returns [11:53:35]free content buf [11:53:35]Sock 6.Close socket [11:53:35]Sock 6.Thread stoped [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [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:57]accept exits with 8 [11:54:57]New connection [11:54:57]New thread 3066961252 created [11:54:57]Thread 3066817892 joined [11:54:57]Waiting for new connection... [11:54:57] Sock 8.Parse request [11:54:57]Sock 8.Check first char [11:54:57]Sock 8.First char is OK [11:54:57]request: POST /json_proto HTTP/1.0 [11:54:57]Method: POST [11:54:57]URL: /json_proto [11:54:57]Method is POST - this is cgi request [11:54:57]url: /json_proto [11:54:57]query_string will be loaded in cgi processing [11:54:57]execute_cgi json_proto POST (null) [11:54:57]execute_cgi path=json_proto method=POST [11:54:57]POST find Content-Length [11:54:57]Host: 172.17.63.131:8080 [11:54:57]Content-Length: 676 [11:54:57]Content-Type: application/json [11:54:57] [11:54:57]POST finish read [11:54:57]Found Content-Length = 676 [11:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:57]execute_script... [11:54:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:57]POST & json_proto [11:54:57]process_json_proto [11:54:57]json parsed OK: [11:54:57]protocol is kg_v1.0 [11:54:57]action value=close_receipt [11:54:57]process_action close_receipt [11:54:57]cmd_close_receipt [11:54:57]MH_GetDate [11:54:57]Write to MH i2c: F0 00 00 10 69 68 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: F0 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: F0 09 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: F0 09 00 10 69 00 25 2A 1E 67 22 05 6E 64 3E [11:54:57]GetLastDocTimeStamp 1730030031 [11:54:57]current date 1730030117 [11:54:57]FM_GetShiftState [11:54:57]SAM_PROTO_GetShiftState [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 13 01 00 [11:54:57]Write to MH i2c: E2 08 00 11 69 80 13 01 00 00 00 00 00 F7 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 11 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [11:54:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:54:57]wFMCommunicate OK [11:54:57]SAM_PROTO_GetShiftState done [11:54:57]FM_GetShiftState done [11:54:57]opened in 1729989159 [11:54:57]opened+sec_in_day 1730075559 [11:54:57]quantity*price = 30038 [11:54:57]sum+1 = 30039 [11:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 145 27.10.2024 11:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192113 ФПД: 128055773352140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192113&fm=128055773352140&tin=02508201610067®Number=0000000000091776&sum=30000 [11:54:58]StoreToDocumentArchive [11:54:58]shift 542 fd 192113 [11:54:58]save to /storage/0542/doc_00192113 [11:54:58]save last doc name /storage/0542/doc_00192113 to /storage/kkm_last_doc_name [11:54:58]save OK [11:54:58]Clear old archive folders... [11:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:58]tlvbuf is 01A508D0 [11:54:58]SAM_PROTO_ClearQueue [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 09 00 00 [11:54:58]Write to MH i2c: E2 08 00 1E 69 80 09 00 00 00 00 00 00 F9 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 1E 69 00 90 00 FB [11:54:58]RAPDU: 90 00 [11:54:58]wFMCommunicate OK [11:54:58]SAM_PROTO_ClearQueue done [11:54:58]KKMCreateOFDPacket [11:54:58]OFDProtocolAddRootSTLVToBuf [11:54:58]FM_MakeSignedData [11:54:58]FM_MakeSignedData [11:54:58]SAM_PROTO_SignData [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 0D 01 02 [11:54:58]Write to MH i2c: E2 08 00 1F 69 80 0D 01 02 00 00 00 00 01 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 1F 69 00 90 00 FC [11:54:58]RAPDU: 90 00 [11:54:58]wFMCommunicate OK [11:54:58]wFMCommunicate request_size=255 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 25 2A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EE 02 00 35 04 06 00 74 [11:54:58]Write to MH i2c: E2 02 01 20 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 25 2A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EE 02 00 35 04 06 00 74 00 00 E3 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 20 69 00 90 00 FD [11:54:58]RAPDU: 90 00 [11:54:58]wFMCommunicate OK [11:54:58]wFMCommunicate request_size=10 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 0D 02 02 05 77 4E E1 D0 CC [11:54:58]Write to MH i2c: E2 0D 00 21 69 80 0D 02 02 05 00 77 4E E1 D0 CC 00 00 50 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 03 00 21 69 00 90 00 FE [11:54:58]RAPDU: 90 00 [11:54:58]wFMCommunicate OK [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 0D 03 02 [11:54:58]Write to MH i2c: E2 08 00 22 69 80 0D 03 02 00 00 00 00 06 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0B 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0B 00 22 69 00 F2 B8 26 35 06 A9 99 58 90 00 AC [11:54:58]RAPDU: F2 B8 26 35 06 A9 99 58 90 00 [11:54:58]wFMCommunicate OK [11:54:58]SAM_PROTO_SignData done [11:54:58]FM_MakeSignedData done [11:54:58]CreateOFDProtocolMessage [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 11 00 00 [11:54:58]Write to MH i2c: E2 08 00 23 69 80 11 00 00 00 00 00 00 06 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 23 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [11:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:54:58]wFMCommunicate OK [11:54:58]CreateOFDProtocolMessage done [11:54:58]OFDSenderStorePacket 192113 [11:54:58]StoreOFDPacket docnum=192113 [11:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 03 07 01 AB 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 25 2A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EE 02 00 35 04 06 00 74 77 4E E1 D0 CC F2 B8 26 35 06 A9 99 58 [11:54:58]CheckFolder [11:54:58]dirname=/storage/ofd_packets [11:54:58]CheckFolder done [11:54:58]ProducePacketName [11:54:58]name=ofd_packets/00192113 [11:54:58]NVStorageSaveData ofd_packets/00192113 [11:54:58]File name is /storage/ofd_packets/00192113 [11:54:58]Write 301 bytes [11:54:58]NVStorageSaveData done [11:54:58]OFDSenderStorePacket done [11:54:58]KKMCreateOFDPacket done [11:54:58]NVStorageSaveData kkm_last_timestamp [11:54:58]File name is /storage/kkm_last_timestamp [11:54:58]Write 4 bytes [11:54:58]NVStorageSaveData done [11:54:58]ExternCall_PrintAddStr [11:54:58]wPrintStart [11:54:58]Write to MH i2c: 01 00 00 24 69 8D [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: 01 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: 01 07 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: 01 07 00 24 69 00 00 00 00 00 FF 0F A2 [11:54:58]RasterBufferAndPrint [11:54:58]line Счет N : (1)31423 [11:54:58]line ИНН: 02508201610067 [11:54:58]line Контрольно-Кассовый Чек [11:54:58]line ПРОДАЖА [11:54:58]line ТРК (МРК, ГНК) : 21 [11:54:58]line Товар: 2710124130 [11:54:58]line Аи-92-К-5 [11:54:58]line 4.490 * 66.90 [11:54:58]line = 300.38 [11:54:58]line НДС 12% НСП 1% [11:54:58]line > о реализуемом товаре [11:54:58]line ОКРУГЛЕНИЕ: -0.38 [11:54:58]line ИТОГО: 300.00 [11:54:58]line Внесено: 300.00 [11:54:58]line СДАЧА: 0.00 [11:54:58]line НСП 1% : 2.66 [11:54:58]line НДС 12% : 31.90 [11:54:58]line Наличными: 300.00 [11:54:58]line Безнал.: 0.00 [11:54:58]line Место: АЗС № 170 "Партнер Нефть" [11:54:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:54:58]line СНО: Общий режим [11:54:58]line Чек 145 27.10.2024 11:55 [11:54:58]line Смена: 542 ФФД: 1.0 [11:54:58]line ЗНМ: 0300000110 [11:54:58]line РНМ: 0000000000091776 [11:54:58]line Версия ККМ: 001 [11:54:58]line ФМ: 0000000000871754 [11:54:58]line ФД: 192113 [11:54:58]line ФПД: 128055773352140 [11:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192113&fm=128055773352140&tin=02508201610067®Number=0000000000091776&sum=30000 [11:54:59]OFD Sender: Processing packet 192113 [packets to send 75, broken 74] [11:54:59]ProducePacketName [11:54:59]name=ofd_packets/00192113 [11:54:59]OFD Sender: To server: pG, [11:54:59]CommunicateWithHost lk.salyk.kg:30040 [11:54:59]ConnectInit lk.salyk.kg [11:54:59]written 0, free lines is 4095 [11:54:59]Connected sock=6 [11:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 03 07 01 AB 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 25 2A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EE 02 00 35 04 06 00 74 77 4E E1 D0 CC F2 B8 26 35 06 A9 99 58 [11:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 45 E2 47 00 E2 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EE 02 00 F4 03 04 00 ED CE 1D 67 B6 04 01 00 00 8D AE 27 E2 B8 BE 5C 3E [11:54:59]CommunicateWithHost err = 0 [11:54:59]CheckOFDResponse [11:54:59]1017 (14) - 77093643461234 [11:54:59]1041 (16) - 0000000000871754 [11:54:59]1040 (4) - 192113 [11:54:59]1012 (4) - 27.10.2024 05:26 [11:54:59]1206 (1) - 0 [11:54:59]OFD Sender: Remove packet 192113 [11:54:59]ProducePacketName [11:54:59]name=ofd_packets/00192113 [11:54:59]NVStorageDeleteData [11:54:59]Write to MH i2c: 01 00 00 4F 69 B8 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: 01 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: 01 07 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: 01 07 00 4F 69 00 00 00 00 00 B9 0C 84 [11:54:59]RasterBufferAndPrint [11:54:59]line [11:54:59]line [11:54:59]line [11:54:59]line [11:54:59]line [11:54:59]written 0, free lines is 3264 [11:54:59]MH_Cut [11:54:59]Write to MH i2c: D1 01 00 56 69 01 91 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: D1 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: D1 01 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: D1 01 00 56 69 00 90 [11:54:59]Write to MH i2c: 01 00 00 57 69 C0 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:55:00]OFD Sender: No OFD packet to send [11:55:00]*** Cut start [11:55:00]*** Partial cut [11:55:00]*** CUTSNS_PIN = 1 [11:55:00]*** CUTSNS_PIN = 0 [11:55:00]*** Brake cut motor [11:55:01]Read from MH i2c: 01 [11:55:01]MH_I2C_Read... [11:55:01]*** Stop cut motor [11:55:01]*** Cut end [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 57 69 00 00 00 00 00 FF 0F D5 [11:55:01]process_action close_receipt done [11:55:01]requested_data is exist [11:55:01]produce_requested_data [11:55:01]requested_item fm.sn is exist - process it [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 11 00 00 [11:55:01]Write to MH i2c: E2 08 00 58 69 80 11 00 00 00 00 00 00 3B [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 17 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 17 00 58 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [11:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:55:01]wFMCommunicate OK [11:55:01]requested_item fd.num is exist - process it [11:55:01]SAM_PROTO_GetFieldsCounters [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 13 00 00 [11:55:01]Write to MH i2c: E2 08 00 59 69 80 13 00 00 00 00 00 00 3E [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 62 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 62 00 59 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:01]wFMCommunicate OK [11:55:01]SAM_PROTO_GetFieldsCounters done [11:55:01]requested_item shift.num is exist - process it [11:55:01]requested_item shift.opened is exist - process it [11:55:01]req_shift_opened [11:55:01]FM_GetShiftState [11:55:01]SAM_PROTO_GetShiftState [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 13 01 00 [11:55:01]Write to MH i2c: E2 08 00 5A 69 80 13 01 00 00 00 00 00 40 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0E 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0E 00 5A 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 81 [11:55:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:55:01]wFMCommunicate OK [11:55:01]SAM_PROTO_GetShiftState done [11:55:01]FM_GetShiftState done [11:55:01]req_shift_opened done [11:55:01]requested_item shift.open_date is exist - process it [11:55:01]req_shift_open_date [11:55:01]req_shift_open_date done [11:55:01]produce_requested_data done [11:55:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192113,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:55:01]process_action_free close_receipt [11:55:01]json_value_free [11:55:01]json_value_free done [11:55:01]process_json_proto returns [11:55:01]Send response to host [11:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192113,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:55:01]free response buf [11:55:01]execute_script done [11:55:01]execute_script returns [11:55:01]free content buf [11:55:01]Sock 8.Close socket [11:55:01]Sock 8.Thread stoped [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [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:58:59]accept exits with 5 [11:58:59]New connection [11:58:59]New thread 3066817892 created [11:58:59]Thread 3066961252 joined [11:58:59]Waiting for new connection... [11:58:59] Sock 5.Parse request [11:58:59]Sock 5.Check first char [11:58:59]Sock 5.First char is OK [11:58:59]request: POST /json_proto HTTP/1.0 [11:58:59]Method: POST [11:58:59]URL: /json_proto [11:58:59]Method is POST - this is cgi request [11:58:59]url: /json_proto [11:58:59]query_string will be loaded in cgi processing [11:58:59]execute_cgi json_proto POST (null) [11:58:59]execute_cgi path=json_proto method=POST [11:58:59]POST find Content-Length [11:58:59]Host: 172.17.63.131:8080 [11:58:59]Content-Length: 676 [11:58:59]Content-Type: application/json [11:58:59] [11:58:59]POST finish read [11:58:59]Found Content-Length = 676 [11:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:59]execute_script... [11:58: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)31424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:59]POST & json_proto [11:58:59]process_json_proto [11:58:59]json parsed OK: [11:58:59]protocol is kg_v1.0 [11:58:59]action value=close_receipt [11:58:59]process_action close_receipt [11:58:59]cmd_close_receipt [11:58:59]MH_GetDate [11:58:59]Write to MH i2c: F0 00 00 5B 69 B3 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 09 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: F0 09 00 5B 69 00 17 2B 1E 67 22 05 6E 64 7C [11:58:59]GetLastDocTimeStamp 1730030117 [11:58:59]current date 1730030359 [11:58:59]FM_GetShiftState [11:58:59]SAM_PROTO_GetShiftState [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 13 01 00 [11:58:59]Write to MH i2c: E2 08 00 5C 69 80 13 01 00 00 00 00 00 42 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 0E 00 5C 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [11:58:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:58:59]wFMCommunicate OK [11:58:59]SAM_PROTO_GetShiftState done [11:58:59]FM_GetShiftState done [11:58:59]opened in 1729989159 [11:58:59]opened+sec_in_day 1730075559 [11:58:59]quantity*price = 60009 [11:58:59]sum+1 = 60010 [11:58:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 146 27.10.2024 11:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192114 ФПД: 32160301901643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192114&fm=32160301901643&tin=02508201610067®Number=0000000000091776&sum=60000 [11:59:00]StoreToDocumentArchive [11:59:00]shift 542 fd 192114 [11:59:00]save to /storage/0542/doc_00192114 [11:59:00]save last doc name /storage/0542/doc_00192114 to /storage/kkm_last_doc_name [11:59:00]save OK [11:59:00]Clear old archive folders... [11:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:00]tlvbuf is 01A506C0 [11:59:00]SAM_PROTO_ClearQueue [11:59:00]wFMCommunicate request_size=4 [11:59:00]MH_SAM_APDU [11:59:00]CAPDU: 80 09 00 00 [11:59:00]Write to MH i2c: E2 08 00 69 69 80 09 00 00 00 00 00 00 44 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 69 69 00 90 00 46 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]SAM_PROTO_ClearQueue done [11:59:01]KKMCreateOFDPacket [11:59:01]OFDProtocolAddRootSTLVToBuf [11:59:01]FM_MakeSignedData [11:59:01]FM_MakeSignedData [11:59:01]SAM_PROTO_SignData [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 01 02 [11:59:01]Write to MH i2c: E2 08 00 6A 69 80 0D 01 02 00 00 00 00 4C [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 6A 69 00 90 00 47 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=255 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EE 02 00 35 04 06 00 1D [11:59:01]Write to MH i2c: E2 02 01 6B 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EE 02 00 35 04 06 00 1D 00 00 B5 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 6B 69 00 90 00 48 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=10 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 02 02 05 3F E7 5E E7 4B [11:59:01]Write to MH i2c: E2 0D 00 6C 69 80 0D 02 02 05 00 3F E7 5E E7 4B 00 00 0F [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 6C 69 00 90 00 49 [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 03 02 [11:59:01]Write to MH i2c: E2 08 00 6D 69 80 0D 03 02 00 00 00 00 51 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 0B 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 0B 00 6D 69 00 96 FE F5 DE 91 8A 54 E9 90 00 11 [11:59:01]RAPDU: 96 FE F5 DE 91 8A 54 E9 90 00 [11:59:01]wFMCommunicate OK [11:59:01]SAM_PROTO_SignData done [11:59:01]FM_MakeSignedData done [11:59:01]CreateOFDProtocolMessage [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 11 00 00 [11:59:01]Write to MH i2c: E2 08 00 6E 69 80 11 00 00 00 00 00 00 51 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 17 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 17 00 6E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [11:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:01]wFMCommunicate OK [11:59:01]CreateOFDProtocolMessage done [11:59:01]OFDSenderStorePacket 192114 [11:59:01]StoreOFDPacket docnum=192114 [11:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 55 07 01 36 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EE 02 00 35 04 06 00 1D 3F E7 5E E7 4B 96 FE F5 DE 91 8A 54 E9 [11:59:01]CheckFolder [11:59:01]dirname=/storage/ofd_packets [11:59:01]CheckFolder done [11:59:01]ProducePacketName [11:59:01]name=ofd_packets/00192114 [11:59:01]NVStorageSaveData ofd_packets/00192114 [11:59:01]File name is /storage/ofd_packets/00192114 [11:59:01]Write 301 bytes [11:59:01]NVStorageSaveData done [11:59:01]OFDSenderStorePacket done [11:59:01]KKMCreateOFDPacket done [11:59:01]NVStorageSaveData kkm_last_timestamp [11:59:01]File name is /storage/kkm_last_timestamp [11:59:01]Write 4 bytes [11:59:01]NVStorageSaveData done [11:59:01]ExternCall_PrintAddStr [11:59:01]wPrintStart [11:59:01]Write to MH i2c: 01 00 00 6F 69 D8 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 07 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: 01 07 00 6F 69 00 00 00 00 00 FF 0F ED [11:59:01]RasterBufferAndPrint [11:59:01]line Счет N : (1)31424 [11:59:01]line ИНН: 02508201610067 [11:59:01]line Контрольно-Кассовый Чек [11:59:01]line ПРОДАЖА [11:59:01]line ТРК (МРК, ГНК) : 21 [11:59:01]line Товар: 2710124130 [11:59:01]line Аи-92-К-5 [11:59:01]line 8.970 * 66.90 [11:59:01]line = 600.09 [11:59:01]line НДС 12% НСП 1% [11:59:01]line > о реализуемом товаре [11:59:01]line ОКРУГЛЕНИЕ: -0.09 [11:59:01]line ИТОГО: 600.00 [11:59:01]line Внесено: 600.00 [11:59:01]line СДАЧА: 0.00 [11:59:01]line НСП 1% : 5.31 [11:59:01]line НДС 12% : 63.73 [11:59:01]line Наличными: 600.00 [11:59:01]line Безнал.: 0.00 [11:59:01]line Место: АЗС № 170 "Партнер Нефть" [11:59:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:59:01]line СНО: Общий режим [11:59:01]line Чек 146 27.10.2024 11:59 [11:59:01]line Смена: 542 ФФД: 1.0 [11:59:01]line ЗНМ: 0300000110 [11:59:01]line РНМ: 0000000000091776 [11:59:01]line Версия ККМ: 001 [11:59:01]line ФМ: 0000000000871754 [11:59:01]line ФД: 192114 [11:59:01]line ФПД: 32160301901643 [11:59:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192114&fm=32160301901643&tin=02508201610067®Number=0000000000091776&sum=60000 [11:59:01]OFD Sender: Processing packet 192114 [packets to send 75, broken 74] [11:59:01]ProducePacketName [11:59:01]name=ofd_packets/00192114 [11:59:01]OFD Sender: To server: pG, [11:59:01]CommunicateWithHost lk.salyk.kg:30040 [11:59:01]ConnectInit lk.salyk.kg [11:59:01]written 0, free lines is 4095 [11:59:01]Connected sock=8 [11:59:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 55 07 01 36 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EE 02 00 35 04 06 00 1D 3F E7 5E E7 4B 96 FE F5 DE 91 8A 54 E9 [11:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B 13 47 00 3B BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EE 02 00 F4 03 04 00 DF CF 1D 67 B6 04 01 00 00 58 55 F6 5F 63 FC 00 40 [11:59:02]CommunicateWithHost err = 0 [11:59:02]CheckOFDResponse [11:59:02]1017 (14) - 77093643461234 [11:59:02]1041 (16) - 0000000000871754 [11:59:02]1040 (4) - 192114 [11:59:02]1012 (4) - 27.10.2024 05:30 [11:59:02]1206 (1) - 0 [11:59:02]OFD Sender: Remove packet 192114 [11:59:02]ProducePacketName [11:59:02]name=ofd_packets/00192114 [11:59:02]NVStorageDeleteData [11:59:02]Write to MH i2c: 01 00 00 9A 69 03 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 9A 69 00 00 00 00 00 AD 0C C3 [11:59:02]RasterBufferAndPrint [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]written 0, free lines is 3251 [11:59:02]MH_Cut [11:59:02]Write to MH i2c: D1 01 00 A1 69 01 DC [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 A1 69 00 DB [11:59:02]Write to MH i2c: 01 00 00 A2 69 0B [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]OFD Sender: No OFD packet to send [11:59:03]*** Cut start [11:59:03]*** Partial cut [11:59:03]*** CUTSNS_PIN = 1 [11:59:03]*** CUTSNS_PIN = 0 [11:59:03]*** Brake cut motor [11:59:03]Read from MH i2c: 01 [11:59:03]MH_I2C_Read... [11:59:03]*** Stop cut motor [11:59:03]*** Cut end [11:59:03]Read from MH i2c: 01 07 00 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: 01 07 00 A2 69 00 00 00 00 00 FF 0F 20 [11:59:03]process_action close_receipt done [11:59:03]requested_data is exist [11:59:03]produce_requested_data [11:59:03]requested_item fm.sn is exist - process it [11:59:03]wFMCommunicate request_size=4 [11:59:03]MH_SAM_APDU [11:59:03]CAPDU: 80 11 00 00 [11:59:03]Write to MH i2c: E2 08 00 A3 69 80 11 00 00 00 00 00 00 86 [11:59:03]Write i2c OK [11:59:03]MH_I2C_Read... [11:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:03]Read from MH i2c: E2 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: E2 17 00 [11:59:03]MH_I2C_Read... [11:59:03]Read from MH i2c: E2 17 00 A3 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [11:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:03]wFMCommunicate OK [11:59:03]requested_item fd.num is exist - process it [11:59:03]SAM_PROTO_GetFieldsCounters [11:59:03]wFMCommunicate request_size=4 [11:59:03]MH_SAM_APDU [11:59:03]CAPDU: 80 13 00 00 [11:59:03]Write to MH i2c: E2 08 00 A4 69 80 13 00 00 00 00 00 00 89 [11:59:03]Write i2c OK [11:59:03]MH_I2C_Read... [11:59:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 62 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 62 00 A4 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [11:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetFieldsCounters done [11:59:04]requested_item shift.num is exist - process it [11:59:04]requested_item shift.opened is exist - process it [11:59:04]req_shift_opened [11:59:04]FM_GetShiftState [11:59:04]SAM_PROTO_GetShiftState [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 01 00 [11:59:04]Write to MH i2c: E2 08 00 A5 69 80 13 01 00 00 00 00 00 8B [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 A5 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CC [11:59:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetShiftState done [11:59:04]FM_GetShiftState done [11:59:04]req_shift_opened done [11:59:04]requested_item shift.open_date is exist - process it [11:59:04]req_shift_open_date [11:59:04]req_shift_open_date done [11:59:04]produce_requested_data done [11:59:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192114,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:59:04]process_action_free close_receipt [11:59:04]json_value_free [11:59:04]json_value_free done [11:59:04]process_json_proto returns [11:59:04]Send response to host [11:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192114,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:59:04]free response buf [11:59:04]execute_script done [11:59:04]execute_script returns [11:59:04]free content buf [11:59:04]Sock 5.Close socket [11:59:04]Sock 5.Thread stoped [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:54]accept exits with 6 [11:59:54]New connection [11:59:54]New thread 3066961252 created [11:59:54]Thread 3066817892 joined [11:59:54]Waiting for new connection... [11:59:54] Sock 6.Parse request [11:59:54]Sock 6.Check first char [11:59:54]Sock 6.First char is OK [11:59:54]request: POST /json_proto HTTP/1.0 [11:59:54]Method: POST [11:59:54]URL: /json_proto [11:59:54]Method is POST - this is cgi request [11:59:54]url: /json_proto [11:59:54]query_string will be loaded in cgi processing [11:59:54]execute_cgi json_proto POST (null) [11:59:54]execute_cgi path=json_proto method=POST [11:59:54]POST find Content-Length [11:59:54]Host: 172.17.63.131:8080 [11:59:54]Content-Length: 804 [11:59:54]Content-Type: application/json [11:59:54] [11:59:54]POST finish read [11:59:54]Found Content-Length = 804 [11:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:54]execute_script... [11:59: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)31425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:54]POST & json_proto [11:59:54]process_json_proto [11:59:54]json parsed OK: [11:59:54]protocol is kg_v1.0 [11:59:54]action value=close_receipt [11:59:54]process_action close_receipt [11:59:54]cmd_close_receipt [11:59:54]MH_GetDate [11:59:54]Write to MH i2c: F0 00 00 A6 69 FE [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 09 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 09 00 A6 69 00 4E 2B 1E 67 22 05 6E 64 FE [11:59:54]GetLastDocTimeStamp 1730030359 [11:59:54]current date 1730030414 [11:59:54]FM_GetShiftState [11:59:54]SAM_PROTO_GetShiftState [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 13 01 00 [11:59:54]Write to MH i2c: E2 08 00 A7 69 80 13 01 00 00 00 00 00 8D [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 A7 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CE [11:59:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_GetShiftState done [11:59:54]FM_GetShiftState done [11:59:54]opened in 1729989159 [11:59:54]opened+sec_in_day 1730075559 [11:59:54]quantity*price = 50041 [11:59:54]sum+1 = 50042 [11:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 147 27.10.2024 12:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192115 ФПД: 28571646028026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192115&fm=28571646028026&tin=02508201610067®Number=0000000000091776&sum=50041 [11:59:55]StoreToDocumentArchive [11:59:55]shift 542 fd 192115 [11:59:55]save to /storage/0542/doc_00192115 [11:59:55]save last doc name /storage/0542/doc_00192115 to /storage/kkm_last_doc_name [11:59:55]save OK [11:59:55]Clear old archive folders... [11:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:55]tlvbuf is 0172E440 [11:59:55]SAM_PROTO_ClearQueue [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 09 00 00 [11:59:55]Write to MH i2c: E2 08 00 B4 69 80 09 00 00 00 00 00 00 8F [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 B4 69 00 90 00 91 [11:59:55]RAPDU: 90 00 [11:59:55]wFMCommunicate OK [11:59:55]SAM_PROTO_ClearQueue done [11:59:55]KKMCreateOFDPacket [11:59:55]OFDProtocolAddRootSTLVToBuf [11:59:55]FM_MakeSignedData [11:59:55]FM_MakeSignedData [11:59:55]SAM_PROTO_SignData [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 0D 01 02 [11:59:55]Write to MH i2c: E2 08 00 B5 69 80 0D 01 02 00 00 00 00 97 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 B5 69 00 90 00 92 [11:59:55]RAPDU: 90 00 [11:59:55]wFMCommunicate OK [11:59:55]wFMCommunicate request_size=255 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 4E 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EE 02 00 35 04 06 00 19 [11:59:55]Write to MH i2c: E2 02 01 B6 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 4E 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EE 02 00 35 04 06 00 19 00 00 AA [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 B6 69 00 90 00 93 [11:59:56]RAPDU: 90 00 [11:59:56]wFMCommunicate OK [11:59:56]wFMCommunicate request_size=10 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 0D 02 02 05 FC 5A CF E8 FA [11:59:56]Write to MH i2c: E2 0D 00 B7 69 80 0D 02 02 05 00 FC 5A CF E8 FA 00 00 AB [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 B7 69 00 90 00 94 [11:59:56]RAPDU: 90 00 [11:59:56]wFMCommunicate OK [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 0D 03 02 [11:59:56]Write to MH i2c: E2 08 00 B8 69 80 0D 03 02 00 00 00 00 9C [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0B 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0B 00 B8 69 00 52 1D AC 85 2F CD A4 69 90 00 46 [11:59:56]RAPDU: 52 1D AC 85 2F CD A4 69 90 00 [11:59:56]wFMCommunicate OK [11:59:56]SAM_PROTO_SignData done [11:59:56]FM_MakeSignedData done [11:59:56]CreateOFDProtocolMessage [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 11 00 00 [11:59:56]Write to MH i2c: E2 08 00 B9 69 80 11 00 00 00 00 00 00 9C [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 17 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 17 00 B9 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [11:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:56]wFMCommunicate OK [11:59:56]CreateOFDProtocolMessage done [11:59:56]OFDSenderStorePacket 192115 [11:59:56]StoreOFDPacket docnum=192115 [11:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 7F 07 01 4F 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 4E 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EE 02 00 35 04 06 00 19 FC 5A CF E8 FA 52 1D AC 85 2F CD A4 69 [11:59:56]CheckFolder [11:59:56]dirname=/storage/ofd_packets [11:59:56]CheckFolder done [11:59:56]ProducePacketName [11:59:56]name=ofd_packets/00192115 [11:59:56]NVStorageSaveData ofd_packets/00192115 [11:59:56]File name is /storage/ofd_packets/00192115 [11:59:56]Write 301 bytes [11:59:56]NVStorageSaveData done [11:59:56]OFDSenderStorePacket done [11:59:56]KKMCreateOFDPacket done [11:59:56]NVStorageSaveData kkm_last_timestamp [11:59:56]File name is /storage/kkm_last_timestamp [11:59:56]Write 4 bytes [11:59:56]NVStorageSaveData done [11:59:56]ExternCall_PrintAddStr [11:59:56]wPrintStart [11:59:56]Write to MH i2c: 01 00 00 BA 69 23 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 BA 69 00 00 00 00 00 FF 0F 38 [11:59:56]RasterBufferAndPrint [11:59:56]line Счет N : (1)31425 [11:59:56]line ИНН: 02508201610067 [11:59:56]line Контрольно-Кассовый Чек [11:59:56]line ПРОДАЖА [11:59:56]line ТРК (МРК, ГНК) : 12 [11:59:56]line Товар: 2710124130 [11:59:56]line Аи-92-К-5 [11:59:56]line 7.480 * 66.90 [11:59:56]line = 500.41 [11:59:56]line НДС 12% НСП 1% [11:59:56]line > о реализуемом товаре [11:59:56]line ИТОГО: 500.41 [11:59:56]line НСП 1% : 4.43 [11:59:56]line НДС 12% : 53.14 [11:59:56]line Наличными: 0.00 [11:59:56]line Безнал.: 500.41 [11:59:56]line Место: АЗС № 170 "Партнер Нефть" [11:59:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:59:56]line СНО: Общий режим [11:59:56]line Чек 147 27.10.2024 12:00 [11:59:56]line Смена: 542 ФФД: 1.0 [11:59:56]line ЗНМ: 0300000110 [11:59:56]line РНМ: 0000000000091776 [11:59:56]line Версия ККМ: 001 [11:59:56]line Платежная система: О! деньги [11:59:56]line ФМ: 0000000000871754 [11:59:56]line ФД: 192115 [11:59:56]line ФПД: 28571646028026 [11:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192115&fm=28571646028026&tin=02508201610067®Number=0000000000091776&sum=50041 [11:59:56]written 0, free lines is 4095 [11:59:56]OFD Sender: Processing packet 192115 [packets to send 75, broken 74] [11:59:56]ProducePacketName [11:59:56]name=ofd_packets/00192115 [11:59:56]OFD Sender: To server: pG, [11:59:56]CommunicateWithHost lk.salyk.kg:30040 [11:59:56]ConnectInit lk.salyk.kg [11:59:56]Connected sock=9 [11:59:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 7F 07 01 4F 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 4E 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EE 02 00 35 04 06 00 19 FC 5A CF E8 FA 52 1D AC 85 2F CD A4 69 [11:59:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8E 49 47 00 AD CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EE 02 00 F4 03 04 00 16 D0 1D 67 B6 04 01 00 00 14 42 42 24 E0 A4 BB 5D [11:59:57]CommunicateWithHost err = 0 [11:59:57]CheckOFDResponse [11:59:57]1017 (14) - 77093643461234 [11:59:57]1041 (16) - 0000000000871754 [11:59:57]1040 (4) - 192115 [11:59:57]1012 (4) - 27.10.2024 05:31 [11:59:57]1206 (1) - 0 [11:59:57]OFD Sender: Remove packet 192115 [11:59:57]ProducePacketName [11:59:57]name=ofd_packets/00192115 [11:59:57]NVStorageDeleteData [11:59:57]Write to MH i2c: 01 00 00 E4 69 4D [11:59:57]Write i2c OK [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: 01 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: 01 07 00 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: 01 07 00 E4 69 00 00 00 00 00 B5 0C 15 [11:59:57]RasterBufferAndPrint [11:59:57]line [11:59:57]line [11:59:57]line [11:59:57]line [11:59:57]line [11:59:57]written 0, free lines is 3258 [11:59:57]MH_Cut [11:59:57]Write to MH i2c: D1 01 00 EB 69 01 26 [11:59:57]Write i2c OK [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: D1 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: D1 01 00 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: D1 01 00 EB 69 00 25 [11:59:57]Write to MH i2c: 01 00 00 EC 69 55 [11:59:57]Write i2c OK [11:59:57]MH_I2C_Read... [11:59:57]OFD Sender: No OFD packet to send [11:59:57]*** Cut start [11:59:57]*** Partial cut [11:59:57]*** CUTSNS_PIN = 1 [11:59:58]*** CUTSNS_PIN = 0 [11:59:58]*** Brake cut motor [11:59:58]Read from MH i2c: 01 [11:59:58]MH_I2C_Read... [11:59:58]*** Stop cut motor [11:59:58]*** Cut end [11:59:58]Read from MH i2c: 01 07 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: 01 07 00 EC 69 00 00 00 00 00 FF 0F 6A [11:59:58]process_action close_receipt done [11:59:58]requested_data is exist [11:59:58]produce_requested_data [11:59:58]requested_item fm.sn is exist - process it [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 11 00 00 [11:59:58]Write to MH i2c: E2 08 00 ED 69 80 11 00 00 00 00 00 00 D0 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 ED 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [11:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:58]wFMCommunicate OK [11:59:58]requested_item fd.num is exist - process it [11:59:58]SAM_PROTO_GetFieldsCounters [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 13 00 00 [11:59:58]Write to MH i2c: E2 08 00 EE 69 80 13 00 00 00 00 00 00 D3 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 62 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 62 00 EE 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:59:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_GetFieldsCounters done [11:59:58]requested_item shift.num is exist - process it [11:59:58]requested_item shift.opened is exist - process it [11:59:58]req_shift_opened [11:59:58]FM_GetShiftState [11:59:58]SAM_PROTO_GetShiftState [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 13 01 00 [11:59:58]Write to MH i2c: E2 08 00 EF 69 80 13 01 00 00 00 00 00 D5 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0E 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0E 00 EF 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 16 [11:59:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_GetShiftState done [11:59:58]FM_GetShiftState done [11:59:58]req_shift_opened done [11:59:58]requested_item shift.open_date is exist - process it [11:59:58]req_shift_open_date [11:59:58]req_shift_open_date done [11:59:58]produce_requested_data done [11:59:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192115,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [11:59:58]process_action_free close_receipt [11:59:58]json_value_free [11:59:58]json_value_free done [11:59:58]process_json_proto returns [11:59:58]Send response to host [11:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192115,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [11:59:58]free response buf [11:59:58]execute_script done [11:59:58]execute_script returns [11:59:58]free content buf [11:59:58]Sock 6.Close socket [11:59:58]Sock 6.Thread stoped [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:30]accept exits with 5 [12:01:30]New connection [12:01:30]New thread 3066817892 created [12:01:30]Thread 3066961252 joined [12:01:30]Waiting for new connection... [12:01:30] Sock 5.Parse request [12:01:30]Sock 5.Check first char [12:01:30]Sock 5.First char is OK [12:01:30]request: POST /json_proto HTTP/1.0 [12:01:30]Method: POST [12:01:30]URL: /json_proto [12:01:30]Method is POST - this is cgi request [12:01:30]url: /json_proto [12:01:30]query_string will be loaded in cgi processing [12:01:30]execute_cgi json_proto POST (null) [12:01:30]execute_cgi path=json_proto method=POST [12:01:30]POST find Content-Length [12:01:30]Host: 172.17.63.131:8080 [12:01:30]Content-Length: 676 [12:01:30]Content-Type: application/json [12:01:30] [12:01:30]POST finish read [12:01:30]Found Content-Length = 676 [12:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:30]execute_script... [12:01: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)31426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:30]POST & json_proto [12:01:30]process_json_proto [12:01:30]json parsed OK: [12:01:30]protocol is kg_v1.0 [12:01:30]action value=close_receipt [12:01:30]process_action close_receipt [12:01:30]cmd_close_receipt [12:01:30]MH_GetDate [12:01:30]Write to MH i2c: F0 00 00 F0 69 48 [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 09 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 09 00 F0 69 00 AE 2B 1E 67 22 05 6E 64 A8 [12:01:30]GetLastDocTimeStamp 1730030414 [12:01:30]current date 1730030510 [12:01:30]FM_GetShiftState [12:01:30]SAM_PROTO_GetShiftState [12:01:30]wFMCommunicate request_size=4 [12:01:30]MH_SAM_APDU [12:01:30]CAPDU: 80 13 01 00 [12:01:30]Write to MH i2c: E2 08 00 F1 69 80 13 01 00 00 00 00 00 D7 [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 0E 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 0E 00 F1 69 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 18 [12:01:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:01:30]wFMCommunicate OK [12:01:30]SAM_PROTO_GetShiftState done [12:01:30]FM_GetShiftState done [12:01:30]opened in 1729989159 [12:01:30]opened+sec_in_day 1730075559 [12:01:30]quantity*price = 60009 [12:01:30]sum+1 = 60010 [12:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 148 27.10.2024 12:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192116 ФПД: 237263761508825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120150&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192116&fm=237263761508825&tin=02508201610067®Number=0000000000091776&sum=60000 [12:01:31]StoreToDocumentArchive [12:01:31]shift 542 fd 192116 [12:01:31]save to /storage/0542/doc_00192116 [12:01:31]save last doc name /storage/0542/doc_00192116 to /storage/kkm_last_doc_name [12:01:31]save OK [12:01:31]Clear old archive folders... [12:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:31]tlvbuf is 01DE95F0 [12:01:31]SAM_PROTO_ClearQueue [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 09 00 00 [12:01:31]Write to MH i2c: E2 08 00 FE 69 80 09 00 00 00 00 00 00 D9 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 FE 69 00 90 00 DB [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_ClearQueue done [12:01:31]KKMCreateOFDPacket [12:01:31]OFDProtocolAddRootSTLVToBuf [12:01:31]FM_MakeSignedData [12:01:31]FM_MakeSignedData [12:01:31]SAM_PROTO_SignData [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 01 02 [12:01:31]Write to MH i2c: E2 08 00 FF 69 80 0D 01 02 00 00 00 00 E1 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 FF 69 00 90 00 DC [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=255 [12:01:31]MH_SAM_APDU [12:01: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AE 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EE 02 00 35 04 06 00 D7 [12:01:31]Write to MH i2c: E2 02 01 00 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AE 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EE 02 00 35 04 06 00 D7 00 00 A0 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 00 6A 00 90 00 DE [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=10 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 02 02 05 CA 46 39 09 D9 [12:01:31]Write to MH i2c: E2 0D 00 01 6A 80 0D 02 02 05 00 CA 46 39 09 D9 00 00 1A [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 01 6A 00 90 00 DF [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 03 02 [12:01:31]Write to MH i2c: E2 08 00 02 6A 80 0D 03 02 00 00 00 00 E7 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 02 6A 00 FA 17 CE D9 AE 22 8C 3E 90 00 3A [12:01:32]RAPDU: FA 17 CE D9 AE 22 8C 3E 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_SignData done [12:01:32]FM_MakeSignedData done [12:01:32]CreateOFDProtocolMessage [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 11 00 00 [12:01:32]Write to MH i2c: E2 08 00 03 6A 80 11 00 00 00 00 00 00 E7 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 03 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [12:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:01:32]wFMCommunicate OK [12:01:32]CreateOFDProtocolMessage done [12:01:32]OFDSenderStorePacket 192116 [12:01:32]StoreOFDPacket docnum=192116 [12:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E D2 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AE 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EE 02 00 35 04 06 00 D7 CA 46 39 09 D9 FA 17 CE D9 AE 22 8C 3E [12:01:32]CheckFolder [12:01:32]dirname=/storage/ofd_packets [12:01:32]CheckFolder done [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00192116 [12:01:32]NVStorageSaveData ofd_packets/00192116 [12:01:32]File name is /storage/ofd_packets/00192116 [12:01:32]Write 301 bytes [12:01:32]NVStorageSaveData done [12:01:32]OFDSenderStorePacket done [12:01:32]KKMCreateOFDPacket done [12:01:32]NVStorageSaveData kkm_last_timestamp [12:01:32]File name is /storage/kkm_last_timestamp [12:01:32]Write 4 bytes [12:01:32]NVStorageSaveData done [12:01:32]ExternCall_PrintAddStr [12:01:32]wPrintStart [12:01:32]Write to MH i2c: 01 00 00 04 6A 6E [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 04 6A 00 00 00 00 00 FF 0F 83 [12:01:32]RasterBufferAndPrint [12:01:32]line Счет N : (1)31426 [12:01:32]line ИНН: 02508201610067 [12:01:32]line Контрольно-Кассовый Чек [12:01:32]line ПРОДАЖА [12:01:32]line ТРК (МРК, ГНК) : 21 [12:01:32]line Товар: 2710124130 [12:01:32]line Аи-92-К-5 [12:01:32]line 8.970 * 66.90 [12:01:32]line = 600.09 [12:01:32]line НДС 12% НСП 1% [12:01:32]line > о реализуемом товаре [12:01:32]line ОКРУГЛЕНИЕ: -0.09 [12:01:32]line ИТОГО: 600.00 [12:01:32]line Внесено: 600.00 [12:01:32]line СДАЧА: 0.00 [12:01:32]line НСП 1% : 5.31 [12:01:32]line НДС 12% : 63.73 [12:01:32]line Наличными: 600.00 [12:01:32]line Безнал.: 0.00 [12:01:32]line Место: АЗС № 170 "Партнер Нефть" [12:01:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:01:32]line СНО: Общий режим [12:01:32]line Чек 148 27.10.2024 12:01 [12:01:32]line Смена: 542 ФФД: 1.0 [12:01:32]line ЗНМ: 0300000110 [12:01:32]line РНМ: 0000000000091776 [12:01:32]line Версия ККМ: 001 [12:01:32]line ФМ: 0000000000871754 [12:01:32]line ФД: 192116 [12:01:32]line ФПД: 237263761508825 [12:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120150&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192116&fm=237263761508825&tin=02508201610067®Number=0000000000091776&sum=60000 [12:01:32]OFD Sender: Processing packet 192116 [packets to send 75, broken 74] [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00192116 [12:01:32]OFD Sender: To server: pG, [12:01:32]CommunicateWithHost lk.salyk.kg:30040 [12:01:32]ConnectInit lk.salyk.kg [12:01:32]written 0, free lines is 4095 [12:01:32]Connected sock=9 [12:01:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E D2 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AE 2B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EE 02 00 35 04 06 00 D7 CA 46 39 09 D9 FA 17 CE D9 AE 22 8C 3E [12:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 59 2F 47 00 7C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EE 02 00 F4 03 04 00 76 D0 1D 67 B6 04 01 00 00 A0 96 56 C0 A7 2C 75 8C [12:01:32]CommunicateWithHost err = 0 [12:01:32]CheckOFDResponse [12:01:32]1017 (14) - 77093643461234 [12:01:32]1041 (16) - 0000000000871754 [12:01:32]1040 (4) - 192116 [12:01:32]1012 (4) - 27.10.2024 05:32 [12:01:32]1206 (1) - 0 [12:01:32]OFD Sender: Remove packet 192116 [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00192116 [12:01:32]NVStorageDeleteData [12:01:32]Write to MH i2c: 01 00 00 2F 6A 99 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 2F 6A 00 00 00 00 00 B3 0C 5F [12:01:32]RasterBufferAndPrint [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]written 0, free lines is 3258 [12:01:32]MH_Cut [12:01:32]Write to MH i2c: D1 01 00 36 6A 01 72 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 01 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 01 00 36 6A 00 71 [12:01:32]Write to MH i2c: 01 00 00 37 6A A1 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:33]OFD Sender: No OFD packet to send [12:01:33]*** Cut start [12:01:33]*** Partial cut [12:01:33]*** CUTSNS_PIN = 1 [12:01:33]*** CUTSNS_PIN = 0 [12:01:34]*** Brake cut motor [12:01:34]Read from MH i2c: 01 [12:01:34]MH_I2C_Read... [12:01:34]*** Stop cut motor [12:01:34]*** Cut end [12:01:34]Read from MH i2c: 01 07 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 37 6A 00 00 00 00 00 FF 0F B6 [12:01:34]process_action close_receipt done [12:01:34]requested_data is exist [12:01:34]produce_requested_data [12:01:34]requested_item fm.sn is exist - process it [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 11 00 00 [12:01:34]Write to MH i2c: E2 08 00 38 6A 80 11 00 00 00 00 00 00 1C [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 38 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [12:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:01:34]wFMCommunicate OK [12:01:34]requested_item fd.num is exist - process it [12:01:34]SAM_PROTO_GetFieldsCounters [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 13 00 00 [12:01:34]Write to MH i2c: E2 08 00 39 6A 80 13 00 00 00 00 00 00 1F [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 62 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 62 00 39 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_GetFieldsCounters done [12:01:34]requested_item shift.num is exist - process it [12:01:34]requested_item shift.opened is exist - process it [12:01:34]req_shift_opened [12:01:34]FM_GetShiftState [12:01:34]SAM_PROTO_GetShiftState [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 13 01 00 [12:01:34]Write to MH i2c: E2 08 00 3A 6A 80 13 01 00 00 00 00 00 21 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0E 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0E 00 3A 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 62 [12:01:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_GetShiftState done [12:01:34]FM_GetShiftState done [12:01:34]req_shift_opened done [12:01:34]requested_item shift.open_date is exist - process it [12:01:34]req_shift_open_date [12:01:34]req_shift_open_date done [12:01:34]produce_requested_data done [12:01:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192116,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:01:34]process_action_free close_receipt [12:01:34]json_value_free [12:01:34]json_value_free done [12:01:34]process_json_proto returns [12:01:34]Send response to host [12:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192116,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:01:34]free response buf [12:01:34]execute_script done [12:01:34]execute_script returns [12:01:34]free content buf [12:01:34]Sock 5.Close socket [12:01:34]Sock 5.Thread stoped [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:40]accept exits with 6 [12:03:40]New connection [12:03:40]New thread 3066961252 created [12:03:40]Thread 3066817892 joined [12:03:40]Waiting for new connection... [12:03:40] Sock 6.Parse request [12:03:40]Sock 6.Check first char [12:03:40]Sock 6.First char is OK [12:03:40]request: POST /json_proto HTTP/1.0 [12:03:40]Method: POST [12:03:40]URL: /json_proto [12:03:40]Method is POST - this is cgi request [12:03:40]url: /json_proto [12:03:40]query_string will be loaded in cgi processing [12:03:40]execute_cgi json_proto POST (null) [12:03:40]execute_cgi path=json_proto method=POST [12:03:40]POST find Content-Length [12:03:40]Host: 172.17.63.131:8080 [12:03:40]Content-Length: 677 [12:03:40]Content-Type: application/json [12:03:40] [12:03:40]POST finish read [12:03:40]Found Content-Length = 677 [12:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:40]execute_script... [12:03: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)31427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:40]POST & json_proto [12:03:40]process_json_proto [12:03:40]json parsed OK: [12:03:40]protocol is kg_v1.0 [12:03:40]action value=close_receipt [12:03:40]process_action close_receipt [12:03:40]cmd_close_receipt [12:03:40]MH_GetDate [12:03:40]Write to MH i2c: F0 00 00 3B 6A 94 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: F0 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: F0 09 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: F0 09 00 3B 6A 00 30 2C 1E 67 22 05 6E 64 77 [12:03:40]GetLastDocTimeStamp 1730030510 [12:03:40]current date 1730030640 [12:03:40]FM_GetShiftState [12:03:40]SAM_PROTO_GetShiftState [12:03:40]wFMCommunicate request_size=4 [12:03:40]MH_SAM_APDU [12:03:40]CAPDU: 80 13 01 00 [12:03:40]Write to MH i2c: E2 08 00 3C 6A 80 13 01 00 00 00 00 00 23 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:40]Read from MH i2c: E2 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 3C 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 64 [12:03:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:03:40]wFMCommunicate OK [12:03:40]SAM_PROTO_GetShiftState done [12:03:40]FM_GetShiftState done [12:03:40]opened in 1729989159 [12:03:40]opened+sec_in_day 1730075559 [12:03:40]quantity*price = 80012 [12:03:40]sum+1 = 80013 [12:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 149 27.10.2024 12:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192117 ФПД: 135675091133510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192117&fm=135675091133510&tin=02508201610067®Number=0000000000091776&sum=80000 [12:03:41]StoreToDocumentArchive [12:03:41]shift 542 fd 192117 [12:03:41]save to /storage/0542/doc_00192117 [12:03:41]save last doc name /storage/0542/doc_00192117 to /storage/kkm_last_doc_name [12:03:41]save OK [12:03:41]Clear old archive folders... [12:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:41]tlvbuf is 01992260 [12:03:41]SAM_PROTO_ClearQueue [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 09 00 00 [12:03:41]Write to MH i2c: E2 08 00 49 6A 80 09 00 00 00 00 00 00 25 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 49 6A 00 90 00 27 [12:03:41]RAPDU: 90 00 [12:03:41]wFMCommunicate OK [12:03:41]SAM_PROTO_ClearQueue done [12:03:41]KKMCreateOFDPacket [12:03:41]OFDProtocolAddRootSTLVToBuf [12:03:41]FM_MakeSignedData [12:03:41]FM_MakeSignedData [12:03:41]SAM_PROTO_SignData [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 0D 01 02 [12:03:41]Write to MH i2c: E2 08 00 4A 6A 80 0D 01 02 00 00 00 00 2D [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 4A 6A 00 90 00 28 [12:03:41]RAPDU: 90 00 [12:03:41]wFMCommunicate OK [12:03:41]wFMCommunicate request_size=255 [12:03:41]MH_SAM_APDU [12:03: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 30 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EE 02 00 35 04 06 00 7B [12:03:41]Write to MH i2c: E2 02 01 4B 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 30 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EE 02 00 35 04 06 00 7B 00 00 23 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 4B 6A 00 90 00 29 [12:03:41]RAPDU: 90 00 [12:03:41]wFMCommunicate OK [12:03:41]wFMCommunicate request_size=10 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 0D 02 02 05 65 51 9C A4 46 [12:03:41]Write to MH i2c: E2 0D 00 4C 6A 80 0D 02 02 05 00 65 51 9C A4 46 00 00 76 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 03 00 4C 6A 00 90 00 2A [12:03:41]RAPDU: 90 00 [12:03:41]wFMCommunicate OK [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 0D 03 02 [12:03:41]Write to MH i2c: E2 08 00 4D 6A 80 0D 03 02 00 00 00 00 32 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0B 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0B 00 4D 6A 00 06 75 B8 D3 63 59 EB 43 90 00 23 [12:03:41]RAPDU: 06 75 B8 D3 63 59 EB 43 90 00 [12:03:41]wFMCommunicate OK [12:03:41]SAM_PROTO_SignData done [12:03:41]FM_MakeSignedData done [12:03:41]CreateOFDProtocolMessage [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 11 00 00 [12:03:41]Write to MH i2c: E2 08 00 4E 6A 80 11 00 00 00 00 00 00 32 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 17 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 17 00 4E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [12:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:03:41]wFMCommunicate OK [12:03:41]CreateOFDProtocolMessage done [12:03:41]OFDSenderStorePacket 192117 [12:03:41]StoreOFDPacket docnum=192117 [12:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 08 07 01 D9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 30 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EE 02 00 35 04 06 00 7B 65 51 9C A4 46 06 75 B8 D3 63 59 EB 43 [12:03:41]CheckFolder [12:03:41]dirname=/storage/ofd_packets [12:03:41]CheckFolder done [12:03:41]ProducePacketName [12:03:41]name=ofd_packets/00192117 [12:03:41]NVStorageSaveData ofd_packets/00192117 [12:03:41]File name is /storage/ofd_packets/00192117 [12:03:41]Write 301 bytes [12:03:41]NVStorageSaveData done [12:03:41]OFDSenderStorePacket done [12:03:41]KKMCreateOFDPacket done [12:03:41]NVStorageSaveData kkm_last_timestamp [12:03:41]File name is /storage/kkm_last_timestamp [12:03:41]Write 4 bytes [12:03:41]NVStorageSaveData done [12:03:41]ExternCall_PrintAddStr [12:03:41]wPrintStart [12:03:41]Write to MH i2c: 01 00 00 4F 6A B9 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: 01 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: 01 07 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: 01 07 00 4F 6A 00 00 00 00 00 FF 0F CE [12:03:41]RasterBufferAndPrint [12:03:41]line Счет N : (1)31427 [12:03:41]line ИНН: 02508201610067 [12:03:41]line Контрольно-Кассовый Чек [12:03:41]line ПРОДАЖА [12:03:41]line ТРК (МРК, ГНК) : 12 [12:03:41]line Товар: 2710124130 [12:03:41]line Аи-92-К-5 [12:03:41]line 11.960 * 66.90 [12:03:41]line = 800.12 [12:03:41]line НДС 12% НСП 1% [12:03:41]line > о реализуемом товаре [12:03:41]line ОКРУГЛЕНИЕ: -0.12 [12:03:41]line ИТОГО: 800.00 [12:03:41]line Внесено: 800.00 [12:03:41]line СДАЧА: 0.00 [12:03:41]line НСП 1% : 7.08 [12:03:41]line НДС 12% : 84.97 [12:03:41]line Наличными: 800.00 [12:03:41]line Безнал.: 0.00 [12:03:41]line Место: АЗС № 170 "Партнер Нефть" [12:03:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:03:41]line СНО: Общий режим [12:03:41]line Чек 149 27.10.2024 12:04 [12:03:41]line Смена: 542 ФФД: 1.0 [12:03:41]line ЗНМ: 0300000110 [12:03:41]line РНМ: 0000000000091776 [12:03:41]line Версия ККМ: 001 [12:03:41]line ФМ: 0000000000871754 [12:03:41]line ФД: 192117 [12:03:41]line ФПД: 135675091133510 [12:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192117&fm=135675091133510&tin=02508201610067®Number=0000000000091776&sum=80000 [12:03:42]OFD Sender: Processing packet 192117 [packets to send 75, broken 74] [12:03:42]ProducePacketName [12:03:42]name=ofd_packets/00192117 [12:03:42]OFD Sender: To server: pG, [12:03:42]CommunicateWithHost lk.salyk.kg:30040 [12:03:42]ConnectInit lk.salyk.kg [12:03:42]written 0, free lines is 4095 [12:03:42]Connected sock=8 [12:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 08 07 01 D9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 30 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EE 02 00 35 04 06 00 7B 65 51 9C A4 46 06 75 B8 D3 63 59 EB 43 [12:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F EC 47 00 F6 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EE 02 00 F4 03 04 00 F7 D0 1D 67 B6 04 01 00 00 2C 2D C1 83 31 B4 87 3C [12:03:42]CommunicateWithHost err = 0 [12:03:42]CheckOFDResponse [12:03:42]1017 (14) - 77093643461234 [12:03:42]1041 (16) - 0000000000871754 [12:03:42]1040 (4) - 192117 [12:03:42]1012 (4) - 27.10.2024 05:34 [12:03:42]1206 (1) - 0 [12:03:42]OFD Sender: Remove packet 192117 [12:03:42]ProducePacketName [12:03:42]name=ofd_packets/00192117 [12:03:42]NVStorageDeleteData [12:03:42]Write to MH i2c: 01 00 00 7A 6A E4 [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: 01 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: 01 07 00 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: 01 07 00 7A 6A 00 00 00 00 00 BC 0C B3 [12:03:42]RasterBufferAndPrint [12:03:42]line [12:03:42]line [12:03:42]line [12:03:42]line [12:03:42]line [12:03:42]written 0, free lines is 3268 [12:03:42]MH_Cut [12:03:42]Write to MH i2c: D1 01 00 81 6A 01 BD [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: D1 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: D1 01 00 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: D1 01 00 81 6A 00 BC [12:03:42]Write to MH i2c: 01 00 00 82 6A EC [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:43]OFD Sender: No OFD packet to send [12:03:43]*** Cut start [12:03:43]*** Partial cut [12:03:43]*** CUTSNS_PIN = 1 [12:03:43]*** CUTSNS_PIN = 0 [12:03:43]*** Brake cut motor [12:03:44]Read from MH i2c: 01 [12:03:44]MH_I2C_Read... [12:03:44]*** Stop cut motor [12:03:44]*** Cut end [12:03:44]Read from MH i2c: 01 07 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 07 00 82 6A 00 00 00 00 00 FF 0F 01 [12:03:44]process_action close_receipt done [12:03:44]requested_data is exist [12:03:44]produce_requested_data [12:03:44]requested_item fm.sn is exist - process it [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 11 00 00 [12:03:44]Write to MH i2c: E2 08 00 83 6A 80 11 00 00 00 00 00 00 67 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 17 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 17 00 83 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [12:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:03:44]wFMCommunicate OK [12:03:44]requested_item fd.num is exist - process it [12:03:44]SAM_PROTO_GetFieldsCounters [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 13 00 00 [12:03:44]Write to MH i2c: E2 08 00 84 6A 80 13 00 00 00 00 00 00 6A [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 62 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 62 00 84 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_GetFieldsCounters done [12:03:44]requested_item shift.num is exist - process it [12:03:44]requested_item shift.opened is exist - process it [12:03:44]req_shift_opened [12:03:44]FM_GetShiftState [12:03:44]SAM_PROTO_GetShiftState [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 13 01 00 [12:03:44]Write to MH i2c: E2 08 00 85 6A 80 13 01 00 00 00 00 00 6C [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 85 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AD [12:03:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_GetShiftState done [12:03:44]FM_GetShiftState done [12:03:44]req_shift_opened done [12:03:44]requested_item shift.open_date is exist - process it [12:03:44]req_shift_open_date [12:03:44]req_shift_open_date done [12:03:44]produce_requested_data done [12:03:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192117,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:03:44]process_action_free close_receipt [12:03:44]json_value_free [12:03:44]json_value_free done [12:03:44]process_json_proto returns [12:03:44]Send response to host [12:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192117,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:03:44]free response buf [12:03:44]execute_script done [12:03:44]execute_script returns [12:03:44]free content buf [12:03:44]Sock 6.Close socket [12:03:44]Sock 6.Thread stoped [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:40]accept exits with 5 [12:06:40]New connection [12:06:40]New thread 3066817892 created [12:06:40]Thread 3066961252 joined [12:06:40]Waiting for new connection... [12:06:40] Sock 5.Parse request [12:06:40]Sock 5.Check first char [12:06:40]Sock 5.First char is OK [12:06:40]request: POST /json_proto HTTP/1.0 [12:06:40]Method: POST [12:06:40]URL: /json_proto [12:06:40]Method is POST - this is cgi request [12:06:40]url: /json_proto [12:06:40]query_string will be loaded in cgi processing [12:06:40]execute_cgi json_proto POST (null) [12:06:40]execute_cgi path=json_proto method=POST [12:06:40]POST find Content-Length [12:06:40]Host: 172.17.63.131:8080 [12:06:40]Content-Length: 676 [12:06:40]Content-Type: application/json [12:06:40] [12:06:40]POST finish read [12:06:40]Found Content-Length = 676 [12:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]execute_script... [12:06: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)31429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:40]POST & json_proto [12:06:40]process_json_proto [12:06:40]json parsed OK: [12:06:40]protocol is kg_v1.0 [12:06:40]action value=close_receipt [12:06:40]process_action close_receipt [12:06:40]cmd_close_receipt [12:06:40]MH_GetDate [12:06:40]Write to MH i2c: F0 00 00 86 6A DF [12:06:40]Write i2c OK [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 [12:06:40]MH_I2C_Read... [12:06:40]Read from MH i2c: F0 09 00 86 6A 00 E4 2C 1E 67 22 05 6E 64 76 [12:06:40]GetLastDocTimeStamp 1730030640 [12:06:40]current date 1730030820 [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 87 6A 80 13 01 00 00 00 00 00 6E [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 87 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AF [12:06:40]RAPDU: 09 00 01 27 8A 1D 67 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]opened in 1729989159 [12:06:40]opened+sec_in_day 1730075559 [12:06:40]quantity*price = 30038 [12:06:40]sum+1 = 30039 [12:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 150 27.10.2024 12:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192118 ФПД: 222347528809851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192118&fm=222347528809851&tin=02508201610067®Number=0000000000091776&sum=30000 [12:06:41]StoreToDocumentArchive [12:06:41]shift 542 fd 192118 [12:06:41]save to /storage/0542/doc_00192118 [12:06:41]save last doc name /storage/0542/doc_00192118 to /storage/kkm_last_doc_name [12:06:41]save OK [12:06:41]Clear old archive folders... [12:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:41]tlvbuf is 01DFBF50 [12:06:41]SAM_PROTO_ClearQueue [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 09 00 00 [12:06:41]Write to MH i2c: E2 08 00 94 6A 80 09 00 00 00 00 00 00 70 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:41]Read from MH i2c: E2 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 94 6A 00 90 00 72 [12:06:41]RAPDU: 90 00 [12:06:41]wFMCommunicate OK [12:06:41]SAM_PROTO_ClearQueue done [12:06:41]KKMCreateOFDPacket [12:06:41]OFDProtocolAddRootSTLVToBuf [12:06:41]FM_MakeSignedData [12:06:41]FM_MakeSignedData [12:06:41]SAM_PROTO_SignData [12:06:41]wFMCommunicate request_size=4 [12:06:41]MH_SAM_APDU [12:06:41]CAPDU: 80 0D 01 02 [12:06:41]Write to MH i2c: E2 08 00 95 6A 80 0D 01 02 00 00 00 00 78 [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:41]Read from MH i2c: E2 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 [12:06:41]MH_I2C_Read... [12:06:41]Read from MH i2c: E2 03 00 95 6A 00 90 00 73 [12:06:41]RAPDU: 90 00 [12:06:41]wFMCommunicate OK [12:06:41]wFMCommunicate request_size=255 [12:06:41]MH_SAM_APDU [12:06: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E4 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EE 02 00 35 04 06 00 CA [12:06:41]Write to MH i2c: E2 02 01 96 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E4 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EE 02 00 35 04 06 00 CA 00 00 7B [12:06:41]Write i2c OK [12:06:41]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 96 6A 00 90 00 74 [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=10 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 02 02 05 39 51 78 AD 7B [12:06:42]Write to MH i2c: E2 0D 00 97 6A 80 0D 02 02 05 00 39 51 78 AD 7B 00 00 AF [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 03 00 97 6A 00 90 00 75 [12:06:42]RAPDU: 90 00 [12:06:42]wFMCommunicate OK [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 0D 03 02 [12:06:42]Write to MH i2c: E2 08 00 98 6A 80 0D 03 02 00 00 00 00 7D [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 0B 00 98 6A 00 80 44 13 1E CA 59 51 9A 90 00 81 [12:06:42]RAPDU: 80 44 13 1E CA 59 51 9A 90 00 [12:06:42]wFMCommunicate OK [12:06:42]SAM_PROTO_SignData done [12:06:42]FM_MakeSignedData done [12:06:42]CreateOFDProtocolMessage [12:06:42]wFMCommunicate request_size=4 [12:06:42]MH_SAM_APDU [12:06:42]CAPDU: 80 11 00 00 [12:06:42]Write to MH i2c: E2 08 00 99 6A 80 11 00 00 00 00 00 00 7D [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:42]Read from MH i2c: E2 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: E2 17 00 99 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [12:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:42]wFMCommunicate OK [12:06:42]CreateOFDProtocolMessage done [12:06:42]OFDSenderStorePacket 192118 [12:06:42]StoreOFDPacket docnum=192118 [12:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 F9 07 01 0F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E4 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EE 02 00 35 04 06 00 CA 39 51 78 AD 7B 80 44 13 1E CA 59 51 9A [12:06:42]CheckFolder [12:06:42]dirname=/storage/ofd_packets [12:06:42]CheckFolder done [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00192118 [12:06:42]NVStorageSaveData ofd_packets/00192118 [12:06:42]File name is /storage/ofd_packets/00192118 [12:06:42]Write 301 bytes [12:06:42]NVStorageSaveData done [12:06:42]OFDSenderStorePacket done [12:06:42]KKMCreateOFDPacket done [12:06:42]NVStorageSaveData kkm_last_timestamp [12:06:42]File name is /storage/kkm_last_timestamp [12:06:42]Write 4 bytes [12:06:42]NVStorageSaveData done [12:06:42]ExternCall_PrintAddStr [12:06:42]wPrintStart [12:06:42]Write to MH i2c: 01 00 00 9A 6A 04 [12:06:42]Write i2c OK [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 [12:06:42]MH_I2C_Read... [12:06:42]Read from MH i2c: 01 07 00 9A 6A 00 00 00 00 00 FF 0F 19 [12:06:42]RasterBufferAndPrint [12:06:42]line Счет N : (1)31429 [12:06:42]line ИНН: 02508201610067 [12:06:42]line Контрольно-Кассовый Чек [12:06:42]line ПРОДАЖА [12:06:42]line ТРК (МРК, ГНК) : 21 [12:06:42]line Товар: 2710124130 [12:06:42]line Аи-92-К-5 [12:06:42]line 4.490 * 66.90 [12:06:42]line = 300.38 [12:06:42]line НДС 12% НСП 1% [12:06:42]line > о реализуемом товаре [12:06:42]line ОКРУГЛЕНИЕ: -0.38 [12:06:42]line ИТОГО: 300.00 [12:06:42]line Внесено: 300.00 [12:06:42]line СДАЧА: 0.00 [12:06:42]line НСП 1% : 2.66 [12:06:42]line НДС 12% : 31.90 [12:06:42]line Наличными: 300.00 [12:06:42]line Безнал.: 0.00 [12:06:42]line Место: АЗС № 170 "Партнер Нефть" [12:06:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:06:42]line СНО: Общий режим [12:06:42]line Чек 150 27.10.2024 12:07 [12:06:42]line Смена: 542 ФФД: 1.0 [12:06:42]line ЗНМ: 0300000110 [12:06:42]line РНМ: 0000000000091776 [12:06:42]line Версия ККМ: 001 [12:06:42]line ФМ: 0000000000871754 [12:06:42]line ФД: 192118 [12:06:42]line ФПД: 222347528809851 [12:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192118&fm=222347528809851&tin=02508201610067®Number=0000000000091776&sum=30000 [12:06:42]OFD Sender: Processing packet 192118 [packets to send 75, broken 74] [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00192118 [12:06:42]OFD Sender: To server: pG, [12:06:42]CommunicateWithHost lk.salyk.kg:30040 [12:06:42]ConnectInit lk.salyk.kg [12:06:42]written 0, free lines is 4095 [12:06:42]Connected sock=8 [12:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 F9 07 01 0F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E4 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EE 02 00 35 04 06 00 CA 39 51 78 AD 7B 80 44 13 1E CA 59 51 9A [12:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 45 47 00 84 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EE 02 00 F4 03 04 00 AC D1 1D 67 B6 04 01 00 00 9F 3C C0 D6 05 C2 57 CA [12:06:42]CommunicateWithHost err = 0 [12:06:42]CheckOFDResponse [12:06:42]1017 (14) - 77093643461234 [12:06:42]1041 (16) - 0000000000871754 [12:06:42]1040 (4) - 192118 [12:06:42]1012 (4) - 27.10.2024 05:37 [12:06:42]1206 (1) - 0 [12:06:42]OFD Sender: Remove packet 192118 [12:06:42]ProducePacketName [12:06:42]name=ofd_packets/00192118 [12:06:42]NVStorageDeleteData [12:06:43]Write to MH i2c: 01 00 00 C5 6A 2F [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 07 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: 01 07 00 C5 6A 00 00 00 00 00 B8 0C FA [12:06:43]RasterBufferAndPrint [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]line [12:06:43]written 0, free lines is 3263 [12:06:43]MH_Cut [12:06:43]Write to MH i2c: D1 01 00 CC 6A 01 08 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 01 00 [12:06:43]MH_I2C_Read... [12:06:43]Read from MH i2c: D1 01 00 CC 6A 00 07 [12:06:43]Write to MH i2c: 01 00 00 CD 6A 37 [12:06:43]Write i2c OK [12:06:43]MH_I2C_Read... [12:06:43]OFD Sender: No OFD packet to send [12:06:43]*** Cut start [12:06:43]*** Partial cut [12:06:43]*** CUTSNS_PIN = 1 [12:06:43]*** CUTSNS_PIN = 0 [12:06:44]*** Brake cut motor [12:06:44]Read from MH i2c: 01 [12:06:44]MH_I2C_Read... [12:06:44]*** Stop cut motor [12:06:44]*** Cut end [12:06:44]Read from MH i2c: 01 07 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: 01 07 00 CD 6A 00 00 00 00 00 FF 0F 4C [12:06:44]process_action close_receipt done [12:06:44]requested_data is exist [12:06:44]produce_requested_data [12:06:44]requested_item fm.sn is exist - process it [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 11 00 00 [12:06:44]Write to MH i2c: E2 08 00 CE 6A 80 11 00 00 00 00 00 00 B2 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 17 00 CE 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [12:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:44]wFMCommunicate OK [12:06:44]requested_item fd.num is exist - process it [12:06:44]SAM_PROTO_GetFieldsCounters [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 00 00 [12:06:44]Write to MH i2c: E2 08 00 CF 6A 80 13 00 00 00 00 00 00 B5 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 62 00 CF 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:44]wFMCommunicate OK [12:06:44]SAM_PROTO_GetFieldsCounters done [12:06:44]requested_item shift.num is exist - process it [12:06:44]requested_item shift.opened is exist - process it [12:06:44]req_shift_opened [12:06:44]FM_GetShiftState [12:06:44]SAM_PROTO_GetShiftState [12:06:44]wFMCommunicate request_size=4 [12:06:44]MH_SAM_APDU [12:06:44]CAPDU: 80 13 01 00 [12:06:44]Write to MH i2c: E2 08 00 D0 6A 80 13 01 00 00 00 00 00 B7 [12:06:44]Write i2c OK [12:06:44]MH_I2C_Read... [12:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:44]Read from MH i2c: E2 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 0E 00 [12:06:44]MH_I2C_Read... [12:06:44]Read from MH i2c: E2 0E 00 D0 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F8 [12:06:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:06:44]wFMCommunicate OK [12:06:44]SAM_PROTO_GetShiftState done [12:06:44]FM_GetShiftState done [12:06:44]req_shift_opened done [12:06:44]requested_item shift.open_date is exist - process it [12:06:44]req_shift_open_date [12:06:44]req_shift_open_date done [12:06:44]produce_requested_data done [12:06:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192118,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:06:44]process_action_free close_receipt [12:06:44]json_value_free [12:06:44]json_value_free done [12:06:44]process_json_proto returns [12:06:44]Send response to host [12:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192118,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:06:44]free response buf [12:06:44]execute_script done [12:06:44]execute_script returns [12:06:44]free content buf [12:06:44]Sock 5.Close socket [12:06:44]Sock 5.Thread stoped [12:06:45]accept exits with 6 [12:06:45]New connection [12:06:45]New thread 3066961252 created [12:06:45]Thread 3066817892 joined [12:06:45]Waiting for new connection... [12:06:45] Sock 6.Parse request [12:06:45]Sock 6.Check first char [12:06:45]Sock 6.First char is OK [12:06:45]request: POST /json_proto HTTP/1.0 [12:06:45]Method: POST [12:06:45]URL: /json_proto [12:06:45]Method is POST - this is cgi request [12:06:45]url: /json_proto [12:06:45]query_string will be loaded in cgi processing [12:06:45]execute_cgi json_proto POST (null) [12:06:45]execute_cgi path=json_proto method=POST [12:06:45]POST find Content-Length [12:06:45]Host: 172.17.63.131:8080 [12:06:45]Content-Length: 678 [12:06:45]Content-Type: application/json [12:06:45] [12:06:45]POST finish read [12:06:45]Found Content-Length = 678 [12:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31428", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:45]execute_script... [12:06: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)31428", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:45]POST & json_proto [12:06:45]process_json_proto [12:06:45]json parsed OK: [12:06:45]protocol is kg_v1.0 [12:06:45]action value=close_receipt [12:06:45]process_action close_receipt [12:06:45]cmd_close_receipt [12:06:45]MH_GetDate [12:06:45]Write to MH i2c: F0 00 00 D1 6A 2A [12:06:45]Write i2c OK [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: F0 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: F0 09 00 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: F0 09 00 D1 6A 00 E9 2C 1E 67 22 05 6E 64 C6 [12:06:45]GetLastDocTimeStamp 1730030820 [12:06:45]current date 1730030825 [12:06:45]FM_GetShiftState [12:06:45]SAM_PROTO_GetShiftState [12:06:45]wFMCommunicate request_size=4 [12:06:45]MH_SAM_APDU [12:06:45]CAPDU: 80 13 01 00 [12:06:45]Write to MH i2c: E2 08 00 D2 6A 80 13 01 00 00 00 00 00 B9 [12:06:45]Write i2c OK [12:06:45]MH_I2C_Read... [12:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:45]Read from MH i2c: E2 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: E2 0E 00 [12:06:45]MH_I2C_Read... [12:06:45]Read from MH i2c: E2 0E 00 D2 6A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FA [12:06:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:06:45]wFMCommunicate OK [12:06:45]SAM_PROTO_GetShiftState done [12:06:45]FM_GetShiftState done [12:06:45]opened in 1729989159 [12:06:45]opened+sec_in_day 1730075559 [12:06:45]quantity*price = 250012 [12:06:45]sum+1 = 250013 [12:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 151 27.10.2024 12:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192119 ФПД: 28153530645998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192119&fm=28153530645998&tin=02508201610067®Number=0000000000091776&sum=250000 [12:06:46]StoreToDocumentArchive [12:06:46]shift 542 fd 192119 [12:06:46]save to /storage/0542/doc_00192119 [12:06:46]save last doc name /storage/0542/doc_00192119 to /storage/kkm_last_doc_name [12:06:46]save OK [12:06:46]Clear old archive folders... [12:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:46]tlvbuf is 01D098D0 [12:06:46]SAM_PROTO_ClearQueue [12:06:46]wFMCommunicate request_size=4 [12:06:46]MH_SAM_APDU [12:06:46]CAPDU: 80 09 00 00 [12:06:46]Write to MH i2c: E2 08 00 DF 6A 80 09 00 00 00 00 00 00 BB [12:06:46]Write i2c OK [12:06:46]MH_I2C_Read... [12:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:46]Read from MH i2c: E2 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 03 00 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 03 00 DF 6A 00 90 00 BD [12:06:46]RAPDU: 90 00 [12:06:46]wFMCommunicate OK [12:06:46]SAM_PROTO_ClearQueue done [12:06:46]KKMCreateOFDPacket [12:06:46]OFDProtocolAddRootSTLVToBuf [12:06:46]FM_MakeSignedData [12:06:46]FM_MakeSignedData [12:06:46]SAM_PROTO_SignData [12:06:46]wFMCommunicate request_size=4 [12:06:46]MH_SAM_APDU [12:06:46]CAPDU: 80 0D 01 02 [12:06:46]Write to MH i2c: E2 08 00 E0 6A 80 0D 01 02 00 00 00 00 C3 [12:06:46]Write i2c OK [12:06:46]MH_I2C_Read... [12:06:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:46]Read from MH i2c: E2 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 03 00 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 03 00 E0 6A 00 90 00 BE [12:06:46]RAPDU: 90 00 [12:06:46]wFMCommunicate OK [12:06:46]wFMCommunicate request_size=255 [12:06:46]MH_SAM_APDU [12:06: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E9 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EE 02 00 35 04 06 00 19 9B 01 31 [12:06:46]Write to MH i2c: E2 02 01 E1 6A 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E9 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EE 02 00 35 04 06 00 19 9B 01 31 00 00 4C [12:06:46]Write i2c OK [12:06:46]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 E1 6A 00 90 00 BF [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]wFMCommunicate request_size=7 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 02 02 02 7D EE [12:06:47]Write to MH i2c: E2 0A 00 E2 6A 80 0D 02 02 02 00 7D EE 00 00 35 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 E2 6A 00 90 00 C0 [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 03 02 [12:06:47]Write to MH i2c: E2 08 00 E3 6A 80 0D 03 02 00 00 00 00 C8 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 0B 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 0B 00 E3 6A 00 B6 52 F7 F2 D5 02 62 24 90 00 17 [12:06:47]RAPDU: B6 52 F7 F2 D5 02 62 24 90 00 [12:06:47]wFMCommunicate OK [12:06:47]SAM_PROTO_SignData done [12:06:47]FM_MakeSignedData done [12:06:47]CreateOFDProtocolMessage [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 11 00 00 [12:06:47]Write to MH i2c: E2 08 00 E4 6A 80 11 00 00 00 00 00 00 C8 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 17 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 17 00 E4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [12:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:47]wFMCommunicate OK [12:06:47]CreateOFDProtocolMessage done [12:06:47]OFDSenderStorePacket 192119 [12:06:47]StoreOFDPacket docnum=192119 [12:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0B CA 04 01 B8 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E9 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EE 02 00 35 04 06 00 19 9B 01 31 7D EE B6 52 F7 F2 D5 02 62 24 [12:06:47]CheckFolder [12:06:47]dirname=/storage/ofd_packets [12:06:47]CheckFolder done [12:06:47]ProducePacketName [12:06:47]name=ofd_packets/00192119 [12:06:47]NVStorageSaveData ofd_packets/00192119 [12:06:47]File name is /storage/ofd_packets/00192119 [12:06:47]Write 298 bytes [12:06:47]NVStorageSaveData done [12:06:47]OFDSenderStorePacket done [12:06:47]KKMCreateOFDPacket done [12:06:47]NVStorageSaveData kkm_last_timestamp [12:06:47]File name is /storage/kkm_last_timestamp [12:06:47]Write 4 bytes [12:06:47]NVStorageSaveData done [12:06:47]ExternCall_PrintAddStr [12:06:47]wPrintStart [12:06:47]Write to MH i2c: 01 00 00 E5 6A 4F [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 E5 6A 00 00 00 00 00 FF 0F 64 [12:06:47]RasterBufferAndPrint [12:06:47]line Счет N : (1)31428 [12:06:47]line ИНН: 02508201610067 [12:06:47]line Контрольно-Кассовый Чек [12:06:47]line ПРОДАЖА [12:06:47]line ТРК (МРК, ГНК) : 11 [12:06:47]line Товар: 2710194210 [12:06:47]line ДТ-К-5 [12:06:47]line 32.810 * 76.20 [12:06:47]line = 2500.12 [12:06:47]line НДС 12% НСП 1% [12:06:47]line > о реализуемом товаре [12:06:47]line ОКРУГЛЕНИЕ: -0.12 [12:06:47]line ИТОГО: 2500.00 [12:06:47]line Внесено: 2500.00 [12:06:47]line СДАЧА: 0.00 [12:06:47]line НСП 1% : 22.12 [12:06:47]line НДС 12% : 265.50 [12:06:47]line Наличными: 2500.00 [12:06:47]line Безнал.: 0.00 [12:06:47]line Место: АЗС № 170 "Партнер Нефть" [12:06:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:06:47]line СНО: Общий режим [12:06:47]line Чек 151 27.10.2024 12:07 [12:06:47]line Смена: 542 ФФД: 1.0 [12:06:47]line ЗНМ: 0300000110 [12:06:47]line РНМ: 0000000000091776 [12:06:47]line Версия ККМ: 001 [12:06:47]line ФМ: 0000000000871754 [12:06:47]line ФД: 192119 [12:06:47]line ФПД: 28153530645998 [12:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192119&fm=28153530645998&tin=02508201610067®Number=0000000000091776&sum=250000 [12:06:47]OFD Sender: Processing packet 192119 [packets to send 75, broken 74] [12:06:47]ProducePacketName [12:06:47]name=ofd_packets/00192119 [12:06:47]OFD Sender: To server: pG, [12:06:47]CommunicateWithHost lk.salyk.kg:30040 [12:06:47]ConnectInit lk.salyk.kg [12:06:47]written 0, free lines is 4095 [12:06:47]Connected sock=5 [12:06:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 0B CA 04 01 B8 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E9 2C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EE 02 00 35 04 06 00 19 9B 01 31 7D EE B6 52 F7 F2 D5 02 62 24 [12:06:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC 2B 47 00 B0 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EE 02 00 F4 03 04 00 B1 D1 1D 67 B6 04 01 00 00 A8 B9 E5 F3 42 20 99 F9 [12:06:48]CommunicateWithHost err = 0 [12:06:48]CheckOFDResponse [12:06:48]1017 (14) - 77093643461234 [12:06:48]1041 (16) - 0000000000871754 [12:06:48]1040 (4) - 192119 [12:06:48]1012 (4) - 27.10.2024 05:37 [12:06:48]1206 (1) - 0 [12:06:48]OFD Sender: Remove packet 192119 [12:06:48]ProducePacketName [12:06:48]name=ofd_packets/00192119 [12:06:48]NVStorageDeleteData [12:06:48]Write to MH i2c: 01 00 00 10 6B 7B [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 10 6B 00 00 00 00 00 B7 0C 45 [12:06:48]RasterBufferAndPrint [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]written 0, free lines is 3271 [12:06:48]MH_Cut [12:06:48]Write to MH i2c: D1 01 00 17 6B 01 54 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 17 6B 00 53 [12:06:48]Write to MH i2c: 01 00 00 18 6B 83 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]OFD Sender: No OFD packet to send [12:06:48]*** Cut start [12:06:48]*** Partial cut [12:06:48]*** CUTSNS_PIN = 1 [12:06:49]*** CUTSNS_PIN = 0 [12:06:49]*** Brake cut motor [12:06:49]Read from MH i2c: 01 [12:06:49]MH_I2C_Read... [12:06:49]*** Stop cut motor [12:06:49]*** Cut end [12:06:49]Read from MH i2c: 01 07 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: 01 07 00 18 6B 00 00 00 00 00 FF 0F 98 [12:06:49]process_action close_receipt done [12:06:49]requested_data is exist [12:06:49]produce_requested_data [12:06:49]requested_item fm.sn is exist - process it [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 11 00 00 [12:06:49]Write to MH i2c: E2 08 00 19 6B 80 11 00 00 00 00 00 00 FE [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 17 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 17 00 19 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [12:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:49]wFMCommunicate OK [12:06:49]requested_item fd.num is exist - process it [12:06:49]SAM_PROTO_GetFieldsCounters [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 13 00 00 [12:06:49]Write to MH i2c: E2 08 00 1A 6B 80 13 00 00 00 00 00 00 01 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 62 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 62 00 1A 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [12:06:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_GetFieldsCounters done [12:06:49]requested_item shift.num is exist - process it [12:06:49]requested_item shift.opened is exist - process it [12:06:49]req_shift_opened [12:06:49]FM_GetShiftState [12:06:49]SAM_PROTO_GetShiftState [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 13 01 00 [12:06:49]Write to MH i2c: E2 08 00 1B 6B 80 13 01 00 00 00 00 00 03 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 1B 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 44 [12:06:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_GetShiftState done [12:06:49]FM_GetShiftState done [12:06:49]req_shift_opened done [12:06:49]requested_item shift.open_date is exist - process it [12:06:49]req_shift_open_date [12:06:49]req_shift_open_date done [12:06:49]produce_requested_data done [12:06:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192119,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:06:49]process_action_free close_receipt [12:06:49]json_value_free [12:06:49]json_value_free done [12:06:49]process_json_proto returns [12:06:49]Send response to host [12:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192119,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:06:49]free response buf [12:06:49]execute_script done [12:06:49]execute_script returns [12:06:49]free content buf [12:06:49]Sock 6.Close socket [12:06:49]Sock 6.Thread stoped [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:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:44]accept exits with 8 [12:08:44]New connection [12:08:44]New thread 3066817892 created [12:08:44]Thread 3066961252 joined [12:08:44]Waiting for new connection... [12:08:44] Sock 8.Parse request [12:08:44]Sock 8.Check first char [12:08:44]Sock 8.First char is OK [12:08:44]request: POST /json_proto HTTP/1.0 [12:08:44]Method: POST [12:08:44]URL: /json_proto [12:08:44]Method is POST - this is cgi request [12:08:44]url: /json_proto [12:08:44]query_string will be loaded in cgi processing [12:08:44]execute_cgi json_proto POST (null) [12:08:44]execute_cgi path=json_proto method=POST [12:08:44]POST find Content-Length [12:08:44]Host: 172.17.63.131:8080 [12:08:44]Content-Length: 673 [12:08:44]Content-Type: application/json [12:08:44] [12:08:44]POST finish read [12:08:44]Found Content-Length = 673 [12:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31430", "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" ] } } [12:08:44]execute_script... [12:08:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31430", "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" ] } } [12:08:44]POST & json_proto [12:08:44]process_json_proto [12:08:44]json parsed OK: [12:08:44]protocol is kg_v1.0 [12:08:44]action value=close_receipt [12:08:44]process_action close_receipt [12:08:44]cmd_close_receipt [12:08:44]MH_GetDate [12:08:44]Write to MH i2c: F0 00 00 1C 6B 76 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 09 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 09 00 1C 6B 00 60 2D 1E 67 22 05 6E 64 8A [12:08:44]GetLastDocTimeStamp 1730030825 [12:08:44]current date 1730030944 [12:08:44]FM_GetShiftState [12:08:44]SAM_PROTO_GetShiftState [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 13 01 00 [12:08:44]Write to MH i2c: E2 08 00 1D 6B 80 13 01 00 00 00 00 00 05 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0E 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0E 00 1D 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 46 [12:08:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:08:44]wFMCommunicate OK [12:08:44]SAM_PROTO_GetShiftState done [12:08:44]FM_GetShiftState done [12:08:44]opened in 1729989159 [12:08:44]opened+sec_in_day 1730075559 [12:08:44]quantity*price = 50063 [12:08:44]sum+1 = 50064 [12:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 152 27.10.2024 12:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192120 ФПД: 108963176686582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192120&fm=108963176686582&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:45]StoreToDocumentArchive [12:08:45]shift 542 fd 192120 [12:08:45]save to /storage/0542/doc_00192120 [12:08:45]save last doc name /storage/0542/doc_00192120 to /storage/kkm_last_doc_name [12:08:45]save OK [12:08:45]Clear old archive folders... [12:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:08:45]tlvbuf is 01A24180 [12:08:45]SAM_PROTO_ClearQueue [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 09 00 00 [12:08:45]Write to MH i2c: E2 08 00 2A 6B 80 09 00 00 00 00 00 00 07 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 2A 6B 00 90 00 09 [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]SAM_PROTO_ClearQueue done [12:08:45]KKMCreateOFDPacket [12:08:45]OFDProtocolAddRootSTLVToBuf [12:08:45]FM_MakeSignedData [12:08:45]FM_MakeSignedData [12:08:45]SAM_PROTO_SignData [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 01 02 [12:08:45]Write to MH i2c: E2 08 00 2B 6B 80 0D 01 02 00 00 00 00 0F [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 2B 6B 00 90 00 0A [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=255 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 98 00 00 00 F4 03 04 00 60 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EE 02 00 35 04 06 00 63 19 F7 70 [12:08:45]Write to MH i2c: E2 02 01 2C 6B 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 98 00 00 00 F4 03 04 00 60 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EE 02 00 35 04 06 00 63 19 F7 70 00 00 36 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 2C 6B 00 90 00 0B [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=7 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 02 02 02 A3 F6 [12:08:45]Write to MH i2c: E2 0A 00 2D 6B 80 0D 02 02 02 00 A3 F6 00 00 AF [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 2D 6B 00 90 00 0C [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 03 02 [12:08:45]Write to MH i2c: E2 08 00 2E 6B 80 0D 03 02 00 00 00 00 14 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:46]Read from MH i2c: E2 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 0B 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 0B 00 2E 6B 00 6B 41 D2 89 53 1D BB ED 90 00 34 [12:08:46]RAPDU: 6B 41 D2 89 53 1D BB ED 90 00 [12:08:46]wFMCommunicate OK [12:08:46]SAM_PROTO_SignData done [12:08:46]FM_MakeSignedData done [12:08:46]CreateOFDProtocolMessage [12:08:46]wFMCommunicate request_size=4 [12:08:46]MH_SAM_APDU [12:08:46]CAPDU: 80 11 00 00 [12:08:46]Write to MH i2c: E2 08 00 2F 6B 80 11 00 00 00 00 00 00 14 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:46]Read from MH i2c: E2 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 17 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 17 00 2F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [12:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:46]wFMCommunicate OK [12:08:46]CreateOFDProtocolMessage done [12:08:46]OFDSenderStorePacket 192120 [12:08:46]StoreOFDPacket docnum=192120 [12:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 43 E8 04 01 23 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 98 00 00 00 F4 03 04 00 60 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EE 02 00 35 04 06 00 63 19 F7 70 A3 F6 6B 41 D2 89 53 1D BB ED [12:08:46]CheckFolder [12:08:46]dirname=/storage/ofd_packets [12:08:46]CheckFolder done [12:08:46]ProducePacketName [12:08:46]name=ofd_packets/00192120 [12:08:46]NVStorageSaveData ofd_packets/00192120 [12:08:46]File name is /storage/ofd_packets/00192120 [12:08:46]Write 298 bytes [12:08:46]NVStorageSaveData done [12:08:46]OFDSenderStorePacket done [12:08:46]KKMCreateOFDPacket done [12:08:46]NVStorageSaveData kkm_last_timestamp [12:08:46]File name is /storage/kkm_last_timestamp [12:08:46]Write 4 bytes [12:08:46]NVStorageSaveData done [12:08:46]ExternCall_PrintAddStr [12:08:46]wPrintStart [12:08:46]Write to MH i2c: 01 00 00 30 6B 9B [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 30 6B 00 00 00 00 00 FF 0F B0 [12:08:46]RasterBufferAndPrint [12:08:46]line Счет N : (1)31430 [12:08:46]line ИНН: 02508201610067 [12:08:46]line Контрольно-Кассовый Чек [12:08:46]line ПРОДАЖА [12:08:46]line ТРК (МРК, ГНК) : 11 [12:08:46]line Товар: 2710194210 [12:08:46]line ДТ-К-5 [12:08:46]line 6.570 * 76.20 [12:08:46]line = 500.63 [12:08:46]line НДС 12% НСП 1% [12:08:46]line > о реализуемом товаре [12:08:46]line ОКРУГЛЕНИЕ: -0.63 [12:08:46]line ИТОГО: 500.00 [12:08:46]line Внесено: 500.00 [12:08:46]line СДАЧА: 0.00 [12:08:46]line НСП 1% : 4.43 [12:08:46]line НДС 12% : 53.16 [12:08:46]line Наличными: 500.00 [12:08:46]line Безнал.: 0.00 [12:08:46]line Место: АЗС № 170 "Партнер Нефть" [12:08:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:08:46]line СНО: Общий режим [12:08:46]line Чек 152 27.10.2024 12:09 [12:08:46]line Смена: 542 ФФД: 1.0 [12:08:46]line ЗНМ: 0300000110 [12:08:46]line РНМ: 0000000000091776 [12:08:46]line Версия ККМ: 001 [12:08:46]line ФМ: 0000000000871754 [12:08:46]line ФД: 192120 [12:08:46]line ФПД: 108963176686582 [12:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192120&fm=108963176686582&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:46]OFD Sender: Processing packet 192120 [packets to send 75, broken 74] [12:08:46]ProducePacketName [12:08:46]name=ofd_packets/00192120 [12:08:46]OFD Sender: To server: pG, [12:08:46]CommunicateWithHost lk.salyk.kg:30040 [12:08:46]ConnectInit lk.salyk.kg [12:08:46]written 0, free lines is 4095 [12:08:46]Connected sock=6 [12:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 43 E8 04 01 23 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 98 00 00 00 F4 03 04 00 60 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EE 02 00 35 04 06 00 63 19 F7 70 A3 F6 6B 41 D2 89 53 1D BB ED [12:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 9D 47 00 03 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EE 02 00 F4 03 04 00 28 D2 1D 67 B6 04 01 00 00 0A 38 48 FB 59 0B 84 6B [12:08:46]CommunicateWithHost err = 0 [12:08:46]CheckOFDResponse [12:08:46]1017 (14) - 77093643461234 [12:08:46]1041 (16) - 0000000000871754 [12:08:46]1040 (4) - 192120 [12:08:46]1012 (4) - 27.10.2024 05:39 [12:08:46]1206 (1) - 0 [12:08:46]OFD Sender: Remove packet 192120 [12:08:46]ProducePacketName [12:08:46]name=ofd_packets/00192120 [12:08:46]NVStorageDeleteData [12:08:46]Write to MH i2c: 01 00 00 5B 6B C6 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 5B 6B 00 00 00 00 00 BC 0C 95 [12:08:46]RasterBufferAndPrint [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]written 0, free lines is 3267 [12:08:46]MH_Cut [12:08:46]Write to MH i2c: D1 01 00 62 6B 01 9F [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 01 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 01 00 62 6B 00 9E [12:08:46]Write to MH i2c: 01 00 00 63 6B CE [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:47]OFD Sender: No OFD packet to send [12:08:47]*** Cut start [12:08:47]*** Partial cut [12:08:47]*** CUTSNS_PIN = 1 [12:08:47]*** CUTSNS_PIN = 0 [12:08:48]*** Brake cut motor [12:08:48]Read from MH i2c: 01 [12:08:48]MH_I2C_Read... [12:08:48]*** Stop cut motor [12:08:48]*** Cut end [12:08:48]Read from MH i2c: 01 07 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: 01 07 00 63 6B 00 00 00 00 00 FF 0F E3 [12:08:48]process_action close_receipt done [12:08:48]requested_data is exist [12:08:48]produce_requested_data [12:08:48]requested_item fm.sn is exist - process it [12:08:48]wFMCommunicate request_size=4 [12:08:48]MH_SAM_APDU [12:08:48]CAPDU: 80 11 00 00 [12:08:48]Write to MH i2c: E2 08 00 64 6B 80 11 00 00 00 00 00 00 49 [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:48]Read from MH i2c: E2 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 17 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 17 00 64 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [12:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:48]wFMCommunicate OK [12:08:48]requested_item fd.num is exist - process it [12:08:48]SAM_PROTO_GetFieldsCounters [12:08:48]wFMCommunicate request_size=4 [12:08:48]MH_SAM_APDU [12:08:48]CAPDU: 80 13 00 00 [12:08:48]Write to MH i2c: E2 08 00 65 6B 80 13 00 00 00 00 00 00 4C [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:48]Read from MH i2c: E2 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 62 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 62 00 65 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [12:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:48]wFMCommunicate OK [12:08:48]SAM_PROTO_GetFieldsCounters done [12:08:48]requested_item shift.num is exist - process it [12:08:48]requested_item shift.opened is exist - process it [12:08:48]req_shift_opened [12:08:48]FM_GetShiftState [12:08:48]SAM_PROTO_GetShiftState [12:08:48]wFMCommunicate request_size=4 [12:08:48]MH_SAM_APDU [12:08:48]CAPDU: 80 13 01 00 [12:08:48]Write to MH i2c: E2 08 00 66 6B 80 13 01 00 00 00 00 00 4E [12:08:48]Write i2c OK [12:08:48]MH_I2C_Read... [12:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:48]Read from MH i2c: E2 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 0E 00 [12:08:48]MH_I2C_Read... [12:08:48]Read from MH i2c: E2 0E 00 66 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8F [12:08:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:08:48]wFMCommunicate OK [12:08:48]SAM_PROTO_GetShiftState done [12:08:48]FM_GetShiftState done [12:08:48]req_shift_opened done [12:08:48]requested_item shift.open_date is exist - process it [12:08:48]req_shift_open_date [12:08:48]req_shift_open_date done [12:08:48]produce_requested_data done [12:08:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192120,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:08:48]process_action_free close_receipt [12:08:48]json_value_free [12:08:48]json_value_free done [12:08:48]process_json_proto returns [12:08:48]Send response to host [12:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192120,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:08:48]free response buf [12:08:48]execute_script done [12:08:48]execute_script returns [12:08:48]free content buf [12:08:48]Sock 8.Close socket [12:08:48]Sock 8.Thread stoped [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]accept exits with 5 [12:11:07]New connection [12:11:07]New thread 3066961252 created [12:11:07]Thread 3066817892 joined [12:11:07]Waiting for new connection... [12:11:07] Sock 5.Parse request [12:11:07]Sock 5.Check first char [12:11:07]Sock 5.First char is OK [12:11:07]request: POST /json_proto HTTP/1.0 [12:11:07]Method: POST [12:11:07]URL: /json_proto [12:11:07]Method is POST - this is cgi request [12:11:07]url: /json_proto [12:11:07]query_string will be loaded in cgi processing [12:11:07]execute_cgi json_proto POST (null) [12:11:07]execute_cgi path=json_proto method=POST [12:11:07]POST find Content-Length [12:11:07]Host: 172.17.63.131:8080 [12:11:07]Content-Length: 676 [12:11:07]Content-Type: application/json [12:11:07] [12:11:07]POST finish read [12:11:07]Found Content-Length = 676 [12:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:07]execute_script... [12: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 : (1)31432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:07]POST & json_proto [12:11:07]process_json_proto [12:11:07]json parsed OK: [12:11:07]protocol is kg_v1.0 [12:11:07]action value=close_receipt [12:11:07]process_action close_receipt [12:11:07]cmd_close_receipt [12:11:07]MH_GetDate [12:11:07]Write to MH i2c: F0 00 00 67 6B C1 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: F0 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: F0 09 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: F0 09 00 67 6B 00 EF 2D 1E 67 22 05 6E 64 64 [12:11:07]GetLastDocTimeStamp 1730030944 [12:11:07]current date 1730031087 [12:11:07]FM_GetShiftState [12:11:07]SAM_PROTO_GetShiftState [12:11:07]wFMCommunicate request_size=4 [12:11:07]MH_SAM_APDU [12:11:07]CAPDU: 80 13 01 00 [12:11:07]Write to MH i2c: E2 08 00 68 6B 80 13 01 00 00 00 00 00 50 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:07]Read from MH i2c: E2 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 0E 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: E2 0E 00 68 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 91 [12:11:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:11:07]wFMCommunicate OK [12:11:07]SAM_PROTO_GetShiftState done [12:11:07]FM_GetShiftState done [12:11:07]opened in 1729989159 [12:11:07]opened+sec_in_day 1730075559 [12:11:07]quantity*price = 50041 [12:11:07]sum+1 = 50042 [12:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 153 27.10.2024 12:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192121 ФПД: 161042079580986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121127&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192121&fm=161042079580986&tin=02508201610067®Number=0000000000091776&sum=50000 [12:11:08]StoreToDocumentArchive [12:11:08]shift 542 fd 192121 [12:11:08]save to /storage/0542/doc_00192121 [12:11:08]save last doc name /storage/0542/doc_00192121 to /storage/kkm_last_doc_name [12:11:08]save OK [12:11:08]Clear old archive folders... [12:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:08]tlvbuf is 01A11AE0 [12:11:08]SAM_PROTO_ClearQueue [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 09 00 00 [12:11:08]Write to MH i2c: E2 08 00 75 6B 80 09 00 00 00 00 00 00 52 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 75 6B 00 90 00 54 [12:11:08]RAPDU: 90 00 [12:11:08]wFMCommunicate OK [12:11:08]SAM_PROTO_ClearQueue done [12:11:08]KKMCreateOFDPacket [12:11:08]OFDProtocolAddRootSTLVToBuf [12:11:08]FM_MakeSignedData [12:11:08]FM_MakeSignedData [12:11:08]SAM_PROTO_SignData [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 0D 01 02 [12:11:08]Write to MH i2c: E2 08 00 76 6B 80 0D 01 02 00 00 00 00 5A [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 76 6B 00 90 00 55 [12:11:08]RAPDU: 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=255 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 EF 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EE 02 00 35 04 06 00 92 [12:11:08]Write to MH i2c: E2 02 01 77 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 EF 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EE 02 00 35 04 06 00 92 00 00 43 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 77 6B 00 90 00 56 [12:11:08]RAPDU: 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=10 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 0D 02 02 05 77 87 F2 83 3A [12:11:08]Write to MH i2c: E2 0D 00 78 6B 80 0D 02 02 05 00 77 87 F2 83 3A 00 00 14 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 03 00 78 6B 00 90 00 57 [12:11:08]RAPDU: 90 00 [12:11:08]wFMCommunicate OK [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 0D 03 02 [12:11:08]Write to MH i2c: E2 08 00 79 6B 80 0D 03 02 00 00 00 00 5F [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 0B 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 0B 00 79 6B 00 77 74 D8 18 CB D6 64 C7 90 00 07 [12:11:08]RAPDU: 77 74 D8 18 CB D6 64 C7 90 00 [12:11:08]wFMCommunicate OK [12:11:08]SAM_PROTO_SignData done [12:11:08]FM_MakeSignedData done [12:11:08]CreateOFDProtocolMessage [12:11:08]wFMCommunicate request_size=4 [12:11:08]MH_SAM_APDU [12:11:08]CAPDU: 80 11 00 00 [12:11:08]Write to MH i2c: E2 08 00 7A 6B 80 11 00 00 00 00 00 00 5F [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:08]Read from MH i2c: E2 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 17 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: E2 17 00 7A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [12:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:11:08]wFMCommunicate OK [12:11:08]CreateOFDProtocolMessage done [12:11:08]OFDSenderStorePacket 192121 [12:11:08]StoreOFDPacket docnum=192121 [12:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 CF 07 01 E0 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 EF 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EE 02 00 35 04 06 00 92 77 87 F2 83 3A 77 74 D8 18 CB D6 64 C7 [12:11:08]CheckFolder [12:11:08]dirname=/storage/ofd_packets [12:11:08]CheckFolder done [12:11:08]ProducePacketName [12:11:08]name=ofd_packets/00192121 [12:11:08]NVStorageSaveData ofd_packets/00192121 [12:11:08]File name is /storage/ofd_packets/00192121 [12:11:08]Write 301 bytes [12:11:08]NVStorageSaveData done [12:11:08]OFDSenderStorePacket done [12:11:08]KKMCreateOFDPacket done [12:11:08]NVStorageSaveData kkm_last_timestamp [12:11:08]File name is /storage/kkm_last_timestamp [12:11:08]Write 4 bytes [12:11:08]NVStorageSaveData done [12:11:08]ExternCall_PrintAddStr [12:11:08]wPrintStart [12:11:08]Write to MH i2c: 01 00 00 7B 6B E6 [12:11:08]Write i2c OK [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 07 00 [12:11:08]MH_I2C_Read... [12:11:08]Read from MH i2c: 01 07 00 7B 6B 00 00 00 00 00 FF 0F FB [12:11:08]RasterBufferAndPrint [12:11:08]line Счет N : (1)31432 [12:11:08]line ИНН: 02508201610067 [12:11:08]line Контрольно-Кассовый Чек [12:11:08]line ПРОДАЖА [12:11:08]line ТРК (МРК, ГНК) : 12 [12:11:08]line Товар: 2710124130 [12:11:08]line Аи-92-К-5 [12:11:08]line 7.480 * 66.90 [12:11:08]line = 500.41 [12:11:08]line НДС 12% НСП 1% [12:11:08]line > о реализуемом товаре [12:11:08]line ОКРУГЛЕНИЕ: -0.41 [12:11:08]line ИТОГО: 500.00 [12:11:08]line Внесено: 500.00 [12:11:08]line СДАЧА: 0.00 [12:11:08]line НСП 1% : 4.43 [12:11:08]line НДС 12% : 53.14 [12:11:08]line Наличными: 500.00 [12:11:08]line Безнал.: 0.00 [12:11:08]line Место: АЗС № 170 "Партнер Нефть" [12:11:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:11:08]line СНО: Общий режим [12:11:08]line Чек 153 27.10.2024 12:11 [12:11:08]line Смена: 542 ФФД: 1.0 [12:11:08]line ЗНМ: 0300000110 [12:11:08]line РНМ: 0000000000091776 [12:11:08]line Версия ККМ: 001 [12:11:08]line ФМ: 0000000000871754 [12:11:08]line ФД: 192121 [12:11:08]line ФПД: 161042079580986 [12:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121127&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192121&fm=161042079580986&tin=02508201610067®Number=0000000000091776&sum=50000 [12:11:09]OFD Sender: Processing packet 192121 [packets to send 75, broken 74] [12:11:09]ProducePacketName [12:11:09]name=ofd_packets/00192121 [12:11:09]OFD Sender: To server: pG, [12:11:09]CommunicateWithHost lk.salyk.kg:30040 [12:11:09]ConnectInit lk.salyk.kg [12:11:09]written 0, free lines is 4095 [12:11:09]Connected sock=8 [12:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 CF 07 01 E0 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 EF 2D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EE 02 00 35 04 06 00 92 77 87 F2 83 3A 77 74 D8 18 CB D6 64 C7 [12:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D4 19 47 00 00 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EE 02 00 F4 03 04 00 B6 D2 1D 67 B6 04 01 00 00 19 94 F4 BD 4B 6E F0 CD [12:11:09]CommunicateWithHost err = 0 [12:11:09]CheckOFDResponse [12:11:09]1017 (14) - 77093643461234 [12:11:09]1041 (16) - 0000000000871754 [12:11:09]1040 (4) - 192121 [12:11:09]1012 (4) - 27.10.2024 05:42 [12:11:09]1206 (1) - 0 [12:11:09]OFD Sender: Remove packet 192121 [12:11:09]ProducePacketName [12:11:09]name=ofd_packets/00192121 [12:11:09]NVStorageDeleteData [12:11:09]Write to MH i2c: 01 00 00 A6 6B 11 [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: 01 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: 01 07 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: 01 07 00 A6 6B 00 00 00 00 00 AD 0C D1 [12:11:09]RasterBufferAndPrint [12:11:09]line [12:11:09]line [12:11:09]line [12:11:09]line [12:11:09]line [12:11:09]written 0, free lines is 3251 [12:11:09]MH_Cut [12:11:09]Write to MH i2c: D1 01 00 AD 6B 01 EA [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: D1 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: D1 01 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: D1 01 00 AD 6B 00 E9 [12:11:09]Write to MH i2c: 01 00 00 AE 6B 19 [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:10]OFD Sender: No OFD packet to send [12:11:10]*** Cut start [12:11:10]*** Partial cut [12:11:10]*** CUTSNS_PIN = 1 [12:11:10]*** CUTSNS_PIN = 0 [12:11:10]*** Brake cut motor [12:11:11]Read from MH i2c: 01 [12:11:11]MH_I2C_Read... [12:11:11]*** Stop cut motor [12:11:11]*** Cut end [12:11:11]Read from MH i2c: 01 07 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 AE 6B 00 00 00 00 00 FF 0F 2E [12:11:11]process_action close_receipt done [12:11:11]requested_data is exist [12:11:11]produce_requested_data [12:11:11]requested_item fm.sn is exist - process it [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 11 00 00 [12:11:11]Write to MH i2c: E2 08 00 AF 6B 80 11 00 00 00 00 00 00 94 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 AF 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [12:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:11:11]wFMCommunicate OK [12:11:11]requested_item fd.num is exist - process it [12:11:11]SAM_PROTO_GetFieldsCounters [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 13 00 00 [12:11:11]Write to MH i2c: E2 08 00 B0 6B 80 13 00 00 00 00 00 00 97 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 62 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 62 00 B0 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [12:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_GetFieldsCounters done [12:11:11]requested_item shift.num is exist - process it [12:11:11]requested_item shift.opened is exist - process it [12:11:11]req_shift_opened [12:11:11]FM_GetShiftState [12:11:11]SAM_PROTO_GetShiftState [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 13 01 00 [12:11:11]Write to MH i2c: E2 08 00 B1 6B 80 13 01 00 00 00 00 00 99 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 B1 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DA [12:11:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_GetShiftState done [12:11:11]FM_GetShiftState done [12:11:11]req_shift_opened done [12:11:11]requested_item shift.open_date is exist - process it [12:11:11]req_shift_open_date [12:11:11]req_shift_open_date done [12:11:11]produce_requested_data done [12:11:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192121,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:11:11]process_action_free close_receipt [12:11:11]json_value_free [12:11:11]json_value_free done [12:11:11]process_json_proto returns [12:11:11]Send response to host [12:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192121,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:11:11]free response buf [12:11:11]execute_script done [12:11:11]execute_script returns [12:11:11]free content buf [12:11:11]Sock 5.Close socket [12:11:11]Sock 5.Thread stoped [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:44]accept exits with 6 [12:11:44]New connection [12:11:44]New thread 3066817892 created [12:11:44]Thread 3066961252 joined [12:11:44]Waiting for new connection... [12:11:44] Sock 6.Parse request [12:11:44]Sock 6.Check first char [12:11:44]Sock 6.First char is OK [12:11:44]request: POST /json_proto HTTP/1.0 [12:11:44]Method: POST [12:11:44]URL: /json_proto [12:11:44]Method is POST - this is cgi request [12:11:44]url: /json_proto [12:11:44]query_string will be loaded in cgi processing [12:11:44]execute_cgi json_proto POST (null) [12:11:44]execute_cgi path=json_proto method=POST [12:11:44]POST find Content-Length [12:11:44]Host: 172.17.63.131:8080 [12:11:44]Content-Length: 862 [12:11:44]Content-Type: application/json [12:11:44] [12:11:44]POST finish read [12:11:44]Found Content-Length = 862 [12:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31431", "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" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:44]execute_script... [12:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31431", "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" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:44]POST & json_proto [12:11:44]process_json_proto [12:11:44]json parsed OK: [12:11:44]protocol is kg_v1.0 [12:11:44]action value=close_receipt [12:11:44]process_action close_receipt [12:11:44]cmd_close_receipt [12:11:44]MH_GetDate [12:11:44]Write to MH i2c: F0 00 00 B2 6B 0C [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 B2 6B 00 14 2E 1E 67 22 05 6E 64 D5 [12:11:44]GetLastDocTimeStamp 1730031087 [12:11:44]current date 1730031124 [12:11:44]FM_GetShiftState [12:11:44]SAM_PROTO_GetShiftState [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 13 01 00 [12:11:44]Write to MH i2c: E2 08 00 B3 6B 80 13 01 00 00 00 00 00 9B [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 B3 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DC [12:11:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetShiftState done [12:11:44]FM_GetShiftState done [12:11:44]opened in 1729989159 [12:11:44]opened+sec_in_day 1730075559 [12:11:44]quantity*price = 200025 [12:11:44]sum+1 = 200026 [12:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 154 27.10.2024 12:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192122 ФПД: 270113173408560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121204&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192122&fm=270113173408560&tin=02508201610067®Number=0000000000091776&sum=200025 [12:11:45]StoreToDocumentArchive [12:11:45]shift 542 fd 192122 [12:11:45]save to /storage/0542/doc_00192122 [12:11:45]save last doc name /storage/0542/doc_00192122 to /storage/kkm_last_doc_name [12:11:45]save OK [12:11:45]Clear old archive folders... [12:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:45]tlvbuf is 018CADE0 [12:11:45]SAM_PROTO_ClearQueue [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 09 00 00 [12:11:45]Write to MH i2c: E2 08 00 C0 6B 80 09 00 00 00 00 00 00 9D [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 C0 6B 00 90 00 9F [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_ClearQueue done [12:11:45]KKMCreateOFDPacket [12:11:45]OFDProtocolAddRootSTLVToBuf [12:11:45]FM_MakeSignedData [12:11:45]FM_MakeSignedData [12:11:45]SAM_PROTO_SignData [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 01 02 [12:11:45]Write to MH i2c: E2 08 00 C1 6B 80 0D 01 02 00 00 00 00 A5 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 C1 6B 00 90 00 A0 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]wFMCommunicate request_size=255 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9A 00 00 00 F4 03 04 00 14 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EE 02 00 35 04 06 00 F5 AA 9F C0 [12:11:45]Write to MH i2c: E2 02 01 C2 6B 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 9A 00 00 00 F4 03 04 00 14 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EE 02 00 35 04 06 00 F5 AA 9F C0 00 00 38 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 C2 6B 00 90 00 A1 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=7 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 02 0B 30 [12:11:46]Write to MH i2c: E2 0A 00 C3 6B 80 0D 02 02 02 00 0B 30 00 00 E7 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 C3 6B 00 90 00 A2 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 03 02 [12:11:46]Write to MH i2c: E2 08 00 C4 6B 80 0D 03 02 00 00 00 00 AA [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 C4 6B 00 80 92 F0 94 AC 83 EE E7 90 00 45 [12:11:46]RAPDU: 80 92 F0 94 AC 83 EE E7 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_SignData done [12:11:46]FM_MakeSignedData done [12:11:46]CreateOFDProtocolMessage [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 C5 6B 80 11 00 00 00 00 00 00 AA [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 C5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [12:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:11:46]wFMCommunicate OK [12:11:46]CreateOFDProtocolMessage done [12:11:46]OFDSenderStorePacket 192122 [12:11:46]StoreOFDPacket docnum=192122 [12:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 39 5E 04 01 E6 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9A 00 00 00 F4 03 04 00 14 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EE 02 00 35 04 06 00 F5 AA 9F C0 0B 30 80 92 F0 94 AC 83 EE E7 [12:11:46]CheckFolder [12:11:46]dirname=/storage/ofd_packets [12:11:46]CheckFolder done [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00192122 [12:11:46]NVStorageSaveData ofd_packets/00192122 [12:11:46]File name is /storage/ofd_packets/00192122 [12:11:46]Write 298 bytes [12:11:46]NVStorageSaveData done [12:11:46]OFDSenderStorePacket done [12:11:46]KKMCreateOFDPacket done [12:11:46]NVStorageSaveData kkm_last_timestamp [12:11:46]File name is /storage/kkm_last_timestamp [12:11:46]Write 4 bytes [12:11:46]NVStorageSaveData done [12:11:46]ExternCall_PrintAddStr [12:11:46]wPrintStart [12:11:46]Write to MH i2c: 01 00 00 C6 6B 31 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 C6 6B 00 00 00 00 00 FF 0F 46 [12:11:46]RasterBufferAndPrint [12:11:46]line Счет N : (1)31431 [12:11:46]line ИНН: 02508201610067 [12:11:46]line Контрольно-Кассовый Чек [12:11:46]line ПРОДАЖА [12:11:46]line ТРК (МРК, ГНК) : 11 [12:11:46]line Товар: 2710194210 [12:11:46]line ДТ-К-5 [12:11:46]line 26.250 * 76.20 [12:11:46]line = 2000.25 [12:11:46]line НДС 12% НСП 1% [12:11:46]line > о реализуемом товаре [12:11:46]line ИТОГО: 2000.25 [12:11:46]line НСП 1% : 17.70 [12:11:46]line НДС 12% : 212.42 [12:11:46]line Наличными: 0.00 [12:11:46]line Безнал.: 2000.25 [12:11:46]line Место: АЗС № 170 "Партнер Нефть" [12:11:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:11:46]line СНО: Общий режим [12:11:46]line Чек 154 27.10.2024 12:12 [12:11:46]line Смена: 542 ФФД: 1.0 [12:11:46]line ЗНМ: 0300000110 [12:11:46]line РНМ: 0000000000091776 [12:11:46]line Версия ККМ: 001 [12:11:46]line Платежная система: Кыргызкоммерцбанк [12:11:46]line ФМ: 0000000000871754 [12:11:46]line ФД: 192122 [12:11:46]line ФПД: 270113173408560 [12:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121204&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192122&fm=270113173408560&tin=02508201610067®Number=0000000000091776&sum=200025 [12:11:46]OFD Sender: Processing packet 192122 [packets to send 75, broken 74] [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00192122 [12:11:46]OFD Sender: To server: pG, [12:11:46]CommunicateWithHost lk.salyk.kg:30040 [12:11:46]ConnectInit lk.salyk.kg [12:11:46]written 0, free lines is 4095 [12:11:46]Connected sock=8 [12:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 39 5E 04 01 E6 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9A 00 00 00 F4 03 04 00 14 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EE 02 00 35 04 06 00 F5 AA 9F C0 0B 30 80 92 F0 94 AC 83 EE E7 [12:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 30 47 00 E9 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EE 02 00 F4 03 04 00 DC D2 1D 67 B6 04 01 00 00 B9 84 19 36 69 D8 43 07 [12:11:46]CommunicateWithHost err = 0 [12:11:46]CheckOFDResponse [12:11:46]1017 (14) - 77093643461234 [12:11:46]1041 (16) - 0000000000871754 [12:11:46]1040 (4) - 192122 [12:11:46]1012 (4) - 27.10.2024 05:42 [12:11:46]1206 (1) - 0 [12:11:46]OFD Sender: Remove packet 192122 [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00192122 [12:11:46]NVStorageDeleteData [12:11:47]Write to MH i2c: 01 00 00 F0 6B 5B [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 F0 6B 00 00 00 00 00 C8 0C 36 [12:11:47]RasterBufferAndPrint [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]written 0, free lines is 3281 [12:11:47]MH_Cut [12:11:47]Write to MH i2c: D1 01 00 F7 6B 01 34 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 01 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 01 00 F7 6B 00 33 [12:11:47]Write to MH i2c: 01 00 00 F8 6B 63 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]OFD Sender: No OFD packet to send [12:11:47]*** Cut start [12:11:47]*** Partial cut [12:11:47]*** CUTSNS_PIN = 1 [12:11:47]*** CUTSNS_PIN = 0 [12:11:48]*** Brake cut motor [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]*** Stop cut motor [12:11:48]*** Cut end [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 F8 6B 00 00 00 00 00 FF 0F 78 [12:11:48]process_action close_receipt done [12:11:48]requested_data is exist [12:11:48]produce_requested_data [12:11:48]requested_item fm.sn is exist - process it [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 11 00 00 [12:11:48]Write to MH i2c: E2 08 00 F9 6B 80 11 00 00 00 00 00 00 DE [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 F9 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [12:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:11:48]wFMCommunicate OK [12:11:48]requested_item fd.num is exist - process it [12:11:48]SAM_PROTO_GetFieldsCounters [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 00 00 [12:11:48]Write to MH i2c: E2 08 00 FA 6B 80 13 00 00 00 00 00 00 E1 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 FA 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetFieldsCounters done [12:11:48]requested_item shift.num is exist - process it [12:11:48]requested_item shift.opened is exist - process it [12:11:48]req_shift_opened [12:11:48]FM_GetShiftState [12:11:48]SAM_PROTO_GetShiftState [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 01 00 [12:11:48]Write to MH i2c: E2 08 00 FB 6B 80 13 01 00 00 00 00 00 E3 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 FB 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 24 [12:11:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetShiftState done [12:11:48]FM_GetShiftState done [12:11:48]req_shift_opened done [12:11:48]requested_item shift.open_date is exist - process it [12:11:48]req_shift_open_date [12:11:48]req_shift_open_date done [12:11:48]produce_requested_data done [12:11:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192122,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:11:48]process_action_free close_receipt [12:11:48]json_value_free [12:11:48]json_value_free done [12:11:48]process_json_proto returns [12:11:48]Send response to host [12:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192122,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:11:48]free response buf [12:11:48]execute_script done [12:11:48]execute_script returns [12:11:48]free content buf [12:11:48]Sock 6.Close socket [12:11:48]Sock 6.Thread stoped [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:48]accept exits with 5 [12:12:48]New connection [12:12:48]New thread 3066961252 created [12:12:48]Thread 3066817892 joined [12:12:48]Waiting for new connection... [12:12:48] Sock 5.Parse request [12:12:48]Sock 5.Check first char [12:12:48]Sock 5.First char is OK [12:12:48]request: POST /json_proto HTTP/1.0 [12:12:48]Method: POST [12:12:48]URL: /json_proto [12:12:48]Method is POST - this is cgi request [12:12:48]url: /json_proto [12:12:48]query_string will be loaded in cgi processing [12:12:48]execute_cgi json_proto POST (null) [12:12:48]execute_cgi path=json_proto method=POST [12:12:48]POST find Content-Length [12:12:48]Host: 172.17.63.131:8080 [12:12:48]Content-Length: 676 [12:12:48]Content-Type: application/json [12:12:48] [12:12:48]POST finish read [12:12:48]Found Content-Length = 676 [12:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:48]execute_script... [12:12: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)31434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:48]POST & json_proto [12:12:48]process_json_proto [12:12:48]json parsed OK: [12:12:48]protocol is kg_v1.0 [12:12:48]action value=close_receipt [12:12:48]process_action close_receipt [12:12:48]cmd_close_receipt [12:12:48]MH_GetDate [12:12:48]Write to MH i2c: F0 00 00 FC 6B 56 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: F0 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: F0 09 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: F0 09 00 FC 6B 00 54 2E 1E 67 22 05 6E 64 5F [12:12:48]GetLastDocTimeStamp 1730031124 [12:12:48]current date 1730031188 [12:12:48]FM_GetShiftState [12:12:48]SAM_PROTO_GetShiftState [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 13 01 00 [12:12:48]Write to MH i2c: E2 08 00 FD 6B 80 13 01 00 00 00 00 00 E5 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0E 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0E 00 FD 6B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 26 [12:12:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:12:48]wFMCommunicate OK [12:12:48]SAM_PROTO_GetShiftState done [12:12:48]FM_GetShiftState done [12:12:48]opened in 1729989159 [12:12:48]opened+sec_in_day 1730075559 [12:12:48]quantity*price = 29034 [12:12:48]sum+1 = 29036 [12:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 155 27.10.2024 12:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192123 ФПД: 100059805189626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192123&fm=100059805189626&tin=02508201610067®Number=0000000000091776&sum=29000 [12:12:49]StoreToDocumentArchive [12:12:49]shift 542 fd 192123 [12:12:49]save to /storage/0542/doc_00192123 [12:12:49]save last doc name /storage/0542/doc_00192123 to /storage/kkm_last_doc_name [12:12:49]save OK [12:12:49]Clear old archive folders... [12:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:49]tlvbuf is 015A9A00 [12:12:49]SAM_PROTO_ClearQueue [12:12:49]wFMCommunicate request_size=4 [12:12:49]MH_SAM_APDU [12:12:49]CAPDU: 80 09 00 00 [12:12:49]Write to MH i2c: E2 08 00 0A 6C 80 09 00 00 00 00 00 00 E8 [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:49]Read from MH i2c: E2 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: E2 03 00 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: E2 03 00 0A 6C 00 90 00 EA [12:12:49]RAPDU: 90 00 [12:12:49]wFMCommunicate OK [12:12:49]SAM_PROTO_ClearQueue done [12:12:49]KKMCreateOFDPacket [12:12:49]OFDProtocolAddRootSTLVToBuf [12:12:49]FM_MakeSignedData [12:12:49]FM_MakeSignedData [12:12:49]SAM_PROTO_SignData [12:12:49]wFMCommunicate request_size=4 [12:12:49]MH_SAM_APDU [12:12:49]CAPDU: 80 0D 01 02 [12:12:49]Write to MH i2c: E2 08 00 0B 6C 80 0D 01 02 00 00 00 00 F0 [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:49]Read from MH i2c: E2 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: E2 03 00 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: E2 03 00 0B 6C 00 90 00 EB [12:12:49]RAPDU: 90 00 [12:12:49]wFMCommunicate OK [12:12:49]wFMCommunicate request_size=255 [12:12:49]MH_SAM_APDU [12:12: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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EE 02 00 35 04 06 00 5B [12:12:49]Write to MH i2c: E2 02 01 0C 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EE 02 00 35 04 06 00 5B 00 00 2E [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 03 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 03 00 0C 6C 00 90 00 EC [12:12:50]RAPDU: 90 00 [12:12:50]wFMCommunicate OK [12:12:50]wFMCommunicate request_size=10 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 0D 02 02 05 00 FD 25 05 FA [12:12:50]Write to MH i2c: E2 0D 00 0D 6C 80 0D 02 02 05 00 00 FD 25 05 FA 00 00 1E [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 03 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 03 00 0D 6C 00 90 00 ED [12:12:50]RAPDU: 90 00 [12:12:50]wFMCommunicate OK [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 0D 03 02 [12:12:50]Write to MH i2c: E2 08 00 0E 6C 80 0D 03 02 00 00 00 00 F5 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0B 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0B 00 0E 6C 00 52 72 80 0C B3 D4 51 D6 90 00 F4 [12:12:50]RAPDU: 52 72 80 0C B3 D4 51 D6 90 00 [12:12:50]wFMCommunicate OK [12:12:50]SAM_PROTO_SignData done [12:12:50]FM_MakeSignedData done [12:12:50]CreateOFDProtocolMessage [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 11 00 00 [12:12:50]Write to MH i2c: E2 08 00 0F 6C 80 11 00 00 00 00 00 00 F5 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 17 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 17 00 0F 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [12:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:12:50]wFMCommunicate OK [12:12:50]CreateOFDProtocolMessage done [12:12:50]OFDSenderStorePacket 192123 [12:12:50]StoreOFDPacket docnum=192123 [12:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 3B 07 01 11 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EE 02 00 35 04 06 00 5B 00 FD 25 05 FA 52 72 80 0C B3 D4 51 D6 [12:12:50]CheckFolder [12:12:50]dirname=/storage/ofd_packets [12:12:50]CheckFolder done [12:12:50]ProducePacketName [12:12:50]name=ofd_packets/00192123 [12:12:50]NVStorageSaveData ofd_packets/00192123 [12:12:50]File name is /storage/ofd_packets/00192123 [12:12:50]Write 301 bytes [12:12:50]NVStorageSaveData done [12:12:50]OFDSenderStorePacket done [12:12:50]KKMCreateOFDPacket done [12:12:50]NVStorageSaveData kkm_last_timestamp [12:12:50]File name is /storage/kkm_last_timestamp [12:12:50]Write 4 bytes [12:12:50]NVStorageSaveData done [12:12:50]ExternCall_PrintAddStr [12:12:50]wPrintStart [12:12:50]Write to MH i2c: 01 00 00 10 6C 7C [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: 01 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: 01 07 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: 01 07 00 10 6C 00 00 00 00 00 FF 0F 91 [12:12:50]RasterBufferAndPrint [12:12:50]line Счет N : (1)31434 [12:12:50]line ИНН: 02508201610067 [12:12:50]line Контрольно-Кассовый Чек [12:12:50]line ПРОДАЖА [12:12:50]line ТРК (МРК, ГНК) : 12 [12:12:50]line Товар: 2710124130 [12:12:50]line Аи-92-К-5 [12:12:50]line 4.340 * 66.90 [12:12:50]line = 290.35 [12:12:50]line НДС 12% НСП 1% [12:12:50]line > о реализуемом товаре [12:12:50]line ОКРУГЛЕНИЕ: -0.35 [12:12:50]line ИТОГО: 290.00 [12:12:50]line Внесено: 290.00 [12:12:50]line СДАЧА: 0.00 [12:12:50]line НСП 1% : 2.57 [12:12:50]line НДС 12% : 30.83 [12:12:50]line Наличными: 290.00 [12:12:50]line Безнал.: 0.00 [12:12:50]line Место: АЗС № 170 "Партнер Нефть" [12:12:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:12:50]line СНО: Общий режим [12:12:50]line Чек 155 27.10.2024 12:13 [12:12:50]line Смена: 542 ФФД: 1.0 [12:12:50]line ЗНМ: 0300000110 [12:12:50]line РНМ: 0000000000091776 [12:12:50]line Версия ККМ: 001 [12:12:50]line ФМ: 0000000000871754 [12:12:50]line ФД: 192123 [12:12:50]line ФПД: 100059805189626 [12:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192123&fm=100059805189626&tin=02508201610067®Number=0000000000091776&sum=29000 [12:12:50]OFD Sender: Processing packet 192123 [packets to send 75, broken 74] [12:12:50]ProducePacketName [12:12:50]name=ofd_packets/00192123 [12:12:50]OFD Sender: To server: pG, [12:12:50]CommunicateWithHost lk.salyk.kg:30040 [12:12:50]ConnectInit lk.salyk.kg [12:12:50]written 0, free lines is 4095 [12:12:51]Write to MH i2c: 01 00 00 3B 6C A7 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 07 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 07 00 3B 6C 00 00 00 00 00 AD 0C 67 [12:12:51]RasterBufferAndPrint [12:12:51]line [12:12:51]line [12:12:51]line [12:12:51]line [12:12:51]line [12:12:51]written 0, free lines is 3248 [12:12:51]MH_Cut [12:12:51]Write to MH i2c: D1 01 00 42 6C 01 80 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: D1 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: D1 01 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: D1 01 00 42 6C 00 7F [12:12:51]Write to MH i2c: 01 00 00 43 6C AF [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** Cut start [12:12:51]*** Partial cut [12:12:51]*** CUTSNS_PIN = 1 [12:12:52]*** CUTSNS_PIN = 0 [12:12:52]*** Brake cut motor [12:12:52]Read from MH i2c: 01 [12:12:52]MH_I2C_Read... [12:12:52]*** Stop cut motor [12:12:52]*** Cut end [12:12:52]Read from MH i2c: 01 07 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: 01 07 00 43 6C 00 00 00 00 00 FF 0F C4 [12:12:52]process_action close_receipt done [12:12:52]requested_data is exist [12:12:52]produce_requested_data [12:12:52]requested_item fm.sn is exist - process it [12:12:52]wFMCommunicate request_size=4 [12:12:52]MH_SAM_APDU [12:12:52]CAPDU: 80 11 00 00 [12:12:52]Write to MH i2c: E2 08 00 44 6C 80 11 00 00 00 00 00 00 2A [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:52]Read from MH i2c: E2 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 17 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 17 00 44 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [12:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:12:52]wFMCommunicate OK [12:12:52]requested_item fd.num is exist - process it [12:12:52]SAM_PROTO_GetFieldsCounters [12:12:52]wFMCommunicate request_size=4 [12:12:52]MH_SAM_APDU [12:12:52]CAPDU: 80 13 00 00 [12:12:52]Write to MH i2c: E2 08 00 45 6C 80 13 00 00 00 00 00 00 2D [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:52]Read from MH i2c: E2 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 62 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 62 00 45 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:52]wFMCommunicate OK [12:12:52]SAM_PROTO_GetFieldsCounters done [12:12:52]requested_item shift.num is exist - process it [12:12:52]requested_item shift.opened is exist - process it [12:12:52]req_shift_opened [12:12:52]FM_GetShiftState [12:12:52]SAM_PROTO_GetShiftState [12:12:52]wFMCommunicate request_size=4 [12:12:52]MH_SAM_APDU [12:12:52]CAPDU: 80 13 01 00 [12:12:52]Write to MH i2c: E2 08 00 46 6C 80 13 01 00 00 00 00 00 2F [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:52]Read from MH i2c: E2 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 0E 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: E2 0E 00 46 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 70 [12:12:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:12:52]wFMCommunicate OK [12:12:52]SAM_PROTO_GetShiftState done [12:12:52]FM_GetShiftState done [12:12:52]req_shift_opened done [12:12:52]requested_item shift.open_date is exist - process it [12:12:52]req_shift_open_date [12:12:52]req_shift_open_date done [12:12:52]produce_requested_data done [12:12:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192123,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:12:52]process_action_free close_receipt [12:12:52]json_value_free [12:12:52]json_value_free done [12:12:52]process_json_proto returns [12:12:52]Send response to host [12:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192123,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:12:52]free response buf [12:12:52]execute_script done [12:12:52]execute_script returns [12:12:52]free content buf [12:12:52]Sock 5.Close socket [12:12:52]Sock 5.Thread stoped [12:13:14]accept exits with 6 [12:13:14]New connection [12:13:14]New thread 3066817892 created [12:13:14]Thread 3066961252 joined [12:13:14]Waiting for new connection... [12:13:14] Sock 6.Parse request [12:13:14]Sock 6.Check first char [12:13:14]Sock 6.First char is OK [12:13:14]request: POST /json_proto HTTP/1.0 [12:13:14]Method: POST [12:13:14]URL: /json_proto [12:13:14]Method is POST - this is cgi request [12:13:14]url: /json_proto [12:13:14]query_string will be loaded in cgi processing [12:13:14]execute_cgi json_proto POST (null) [12:13:14]execute_cgi path=json_proto method=POST [12:13:14]POST find Content-Length [12:13:14]Host: 172.17.63.131:8080 [12:13:14]Content-Length: 673 [12:13:14]Content-Type: application/json [12:13:14] [12:13:14]POST finish read [12:13:14]Found Content-Length = 673 [12:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31433", "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" : 4.800, "sum" : 365.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 365.00, "payments": [ { "type": 0, "sum" : 365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:14]execute_script... [12:13:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31433", "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" : 4.800, "sum" : 365.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 365.00, "payments": [ { "type": 0, "sum" : 365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:14]POST & json_proto [12:13:14]process_json_proto [12:13:14]json parsed OK: [12:13:14]protocol is kg_v1.0 [12:13:14]action value=close_receipt [12:13:14]process_action close_receipt [12:13:14]cmd_close_receipt [12:13:14]MH_GetDate [12:13:14]Write to MH i2c: F0 00 00 47 6C A2 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: F0 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: F0 09 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: F0 09 00 47 6C 00 6E 2E 1E 67 22 05 6E 64 C5 [12:13:14]GetLastDocTimeStamp 1730031188 [12:13:14]current date 1730031214 [12:13:14]FM_GetShiftState [12:13:14]SAM_PROTO_GetShiftState [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 13 01 00 [12:13:14]Write to MH i2c: E2 08 00 48 6C 80 13 01 00 00 00 00 00 31 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 0E 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 0E 00 48 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 72 [12:13:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:13:14]wFMCommunicate OK [12:13:14]SAM_PROTO_GetShiftState done [12:13:14]FM_GetShiftState done [12:13:14]opened in 1729989159 [12:13:14]opened+sec_in_day 1730075559 [12:13:14]quantity*price = 36576 [12:13:14]sum+1 = 36577 [12:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 365.00 Внесено: 400.00 СДАЧА: 35.00 НСП 1% : 3.24 НДС 12% : 38.84 Наличными: 365.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 156 27.10.2024 12:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192124 ФПД: 42059692270126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192124&fm=42059692270126&tin=02508201610067®Number=0000000000091776&sum=36500 [12:13:16]StoreToDocumentArchive [12:13:16]shift 542 fd 192124 [12:13:16]save to /storage/0542/doc_00192124 [12:13:16]save last doc name /storage/0542/doc_00192124 to /storage/kkm_last_doc_name [12:13:16]save OK [12:13:16]Clear old archive folders... [12:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:16]tlvbuf is 0187D3F0 [12:13:16]SAM_PROTO_ClearQueue [12:13:16]wFMCommunicate request_size=4 [12:13:16]MH_SAM_APDU [12:13:16]CAPDU: 80 09 00 00 [12:13:16]Write to MH i2c: E2 08 00 55 6C 80 09 00 00 00 00 00 00 33 [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 55 6C 00 90 00 35 [12:13:16]RAPDU: 90 00 [12:13:16]wFMCommunicate OK [12:13:16]SAM_PROTO_ClearQueue done [12:13:16]KKMCreateOFDPacket [12:13:16]OFDProtocolAddRootSTLVToBuf [12:13:16]FM_MakeSignedData [12:13:16]FM_MakeSignedData [12:13:16]SAM_PROTO_SignData [12:13:16]wFMCommunicate request_size=4 [12:13:16]MH_SAM_APDU [12:13:16]CAPDU: 80 0D 01 02 [12:13:16]Write to MH i2c: E2 08 00 56 6C 80 0D 01 02 00 00 00 00 3B [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 56 6C 00 90 00 36 [12:13:16]RAPDU: 90 00 [12:13:16]wFMCommunicate OK [12:13:16]wFMCommunicate request_size=255 [12:13:16]MH_SAM_APDU [12: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 C0 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 8E 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 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 9C 00 00 00 F4 03 04 00 6E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EE 02 00 35 04 06 00 26 40 C9 04 [12:13:16]Write to MH i2c: E2 02 01 57 6C 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 C0 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 8E 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 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 9C 00 00 00 F4 03 04 00 6E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EE 02 00 35 04 06 00 26 40 C9 04 00 00 FE [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 57 6C 00 90 00 37 [12:13:16]RAPDU: 90 00 [12:13:16]wFMCommunicate OK [12:13:16]wFMCommunicate request_size=7 [12:13:16]MH_SAM_APDU [12:13:16]CAPDU: 80 0D 02 02 02 62 2E [12:13:16]Write to MH i2c: E2 0A 00 58 6C 80 0D 02 02 02 00 62 2E 00 00 D2 [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 03 00 58 6C 00 90 00 38 [12:13:16]RAPDU: 90 00 [12:13:16]wFMCommunicate OK [12:13:16]wFMCommunicate request_size=4 [12:13:16]MH_SAM_APDU [12:13:16]CAPDU: 80 0D 03 02 [12:13:16]Write to MH i2c: E2 08 00 59 6C 80 0D 03 02 00 00 00 00 40 [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 0B 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 0B 00 59 6C 00 4B E3 8A A4 BF 9F B8 64 90 00 17 [12:13:16]RAPDU: 4B E3 8A A4 BF 9F B8 64 90 00 [12:13:16]wFMCommunicate OK [12:13:16]SAM_PROTO_SignData done [12:13:16]FM_MakeSignedData done [12:13:16]CreateOFDProtocolMessage [12:13:16]wFMCommunicate request_size=4 [12:13:16]MH_SAM_APDU [12:13:16]CAPDU: 80 11 00 00 [12:13:16]Write to MH i2c: E2 08 00 5A 6C 80 11 00 00 00 00 00 00 40 [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:16]Read from MH i2c: E2 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 17 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: E2 17 00 5A 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [12:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:13:16]wFMCommunicate OK [12:13:16]CreateOFDProtocolMessage done [12:13:16]OFDSenderStorePacket 192124 [12:13:16]StoreOFDPacket docnum=192124 [12:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 E4 04 01 3D 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 8E 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 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 9C 00 00 00 F4 03 04 00 6E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EE 02 00 35 04 06 00 26 40 C9 04 62 2E 4B E3 8A A4 BF 9F B8 64 [12:13:16]CheckFolder [12:13:16]dirname=/storage/ofd_packets [12:13:16]CheckFolder done [12:13:16]ProducePacketName [12:13:16]name=ofd_packets/00192124 [12:13:16]NVStorageSaveData ofd_packets/00192124 [12:13:16]File name is /storage/ofd_packets/00192124 [12:13:16]Write 298 bytes [12:13:16]NVStorageSaveData done [12:13:16]OFDSenderStorePacket done [12:13:16]KKMCreateOFDPacket done [12:13:16]NVStorageSaveData kkm_last_timestamp [12:13:16]File name is /storage/kkm_last_timestamp [12:13:16]Write 4 bytes [12:13:16]NVStorageSaveData done [12:13:16]ExternCall_PrintAddStr [12:13:16]wPrintStart [12:13:16]Write to MH i2c: 01 00 00 5B 6C C7 [12:13:16]Write i2c OK [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: 01 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: 01 07 00 [12:13:16]MH_I2C_Read... [12:13:16]Read from MH i2c: 01 07 00 5B 6C 00 00 00 00 00 FF 0F DC [12:13:16]RasterBufferAndPrint [12:13:16]line Счет N : (1)31433 [12:13:16]line ИНН: 02508201610067 [12:13:16]line Контрольно-Кассовый Чек [12:13:16]line ПРОДАЖА [12:13:16]line ТРК (МРК, ГНК) : 11 [12:13:16]line Товар: 2710194210 [12:13:16]line ДТ-К-5 [12:13:16]line 4.800 * 76.20 [12:13:16]line = 365.76 [12:13:16]line НДС 12% НСП 1% [12:13:16]line > о реализуемом товаре [12:13:16]line ОКРУГЛЕНИЕ: -0.76 [12:13:16]line ИТОГО: 365.00 [12:13:16]line Внесено: 400.00 [12:13:16]line СДАЧА: 35.00 [12:13:16]line НСП 1% : 3.24 [12:13:16]line НДС 12% : 38.84 [12:13:16]line Наличными: 365.00 [12:13:16]line Безнал.: 0.00 [12:13:16]line Место: АЗС № 170 "Партнер Нефть" [12:13:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:13:16]line СНО: Общий режим [12:13:16]line Чек 156 27.10.2024 12:13 [12:13:16]line Смена: 542 ФФД: 1.0 [12:13:16]line ЗНМ: 0300000110 [12:13:16]line РНМ: 0000000000091776 [12:13:16]line Версия ККМ: 001 [12:13:16]line ФМ: 0000000000871754 [12:13:16]line ФД: 192124 [12:13:16]line ФПД: 42059692270126 [12:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192124&fm=42059692270126&tin=02508201610067®Number=0000000000091776&sum=36500 [12:13:16]written 0, free lines is 4095 [12:13:17]Write to MH i2c: 01 00 00 86 6C F2 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: 01 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: 01 07 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: 01 07 00 86 6C 00 00 00 00 00 A7 0C AC [12:13:17]RasterBufferAndPrint [12:13:17]line [12:13:17]line [12:13:17]line [12:13:17]line [12:13:17]line [12:13:17]written 0, free lines is 3242 [12:13:17]MH_Cut [12:13:17]Write to MH i2c: D1 01 00 8D 6C 01 CB [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: D1 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: D1 01 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: D1 01 00 8D 6C 00 CA [12:13:17]Write to MH i2c: 01 00 00 8E 6C FA [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:18]*** Cut start [12:13:18]*** Partial cut [12:13:18]*** CUTSNS_PIN = 1 [12:13:18]*** CUTSNS_PIN = 0 [12:13:18]*** Brake cut motor [12:13:18]Read from MH i2c: 01 [12:13:18]MH_I2C_Read... [12:13:18]*** Stop cut motor [12:13:18]*** Cut end [12:13:18]Read from MH i2c: 01 07 00 [12:13:18]MH_I2C_Read... [12:13:18]Read from MH i2c: 01 07 00 8E 6C 00 00 00 00 00 FF 0F 0F [12:13:18]process_action close_receipt done [12:13:18]requested_data is exist [12:13:18]produce_requested_data [12:13:18]requested_item fm.sn is exist - process it [12:13:18]wFMCommunicate request_size=4 [12:13:18]MH_SAM_APDU [12:13:18]CAPDU: 80 11 00 00 [12:13:18]Write to MH i2c: E2 08 00 8F 6C 80 11 00 00 00 00 00 00 75 [12:13:18]Write i2c OK [12:13:18]MH_I2C_Read... [12:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:18]Read from MH i2c: E2 [12:13:18]MH_I2C_Read... [12:13:18]Read from MH i2c: E2 17 00 [12:13:18]MH_I2C_Read... [12:13:18]Read from MH i2c: E2 17 00 8F 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [12:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:13:18]wFMCommunicate OK [12:13:18]requested_item fd.num is exist - process it [12:13:18]SAM_PROTO_GetFieldsCounters [12:13:18]wFMCommunicate request_size=4 [12:13:18]MH_SAM_APDU [12:13:18]CAPDU: 80 13 00 00 [12:13:18]Write to MH i2c: E2 08 00 90 6C 80 13 00 00 00 00 00 00 78 [12:13:18]Write i2c OK [12:13:18]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 62 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 62 00 90 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:19]wFMCommunicate OK [12:13:19]SAM_PROTO_GetFieldsCounters done [12:13:19]requested_item shift.num is exist - process it [12:13:19]requested_item shift.opened is exist - process it [12:13:19]req_shift_opened [12:13:19]FM_GetShiftState [12:13:19]SAM_PROTO_GetShiftState [12:13:19]wFMCommunicate request_size=4 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 13 01 00 [12:13:19]Write to MH i2c: E2 08 00 91 6C 80 13 01 00 00 00 00 00 7A [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 0E 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 0E 00 91 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BB [12:13:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:13:19]wFMCommunicate OK [12:13:19]SAM_PROTO_GetShiftState done [12:13:19]FM_GetShiftState done [12:13:19]req_shift_opened done [12:13:19]requested_item shift.open_date is exist - process it [12:13:19]req_shift_open_date [12:13:19]req_shift_open_date done [12:13:19]produce_requested_data done [12:13:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192124,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:13:19]process_action_free close_receipt [12:13:19]json_value_free [12:13:19]json_value_free done [12:13:19]process_json_proto returns [12:13:19]Send response to host [12:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192124,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:13:19]free response buf [12:13:19]execute_script done [12:13:19]execute_script returns [12:13:19]free content buf [12:13:19]Sock 6.Close socket [12:13:19]Sock 6.Thread stoped [12:14:42]accept exits with 5 [12:14:42]New connection [12:14:42]New thread 3066961252 created [12:14:42]Thread 3066817892 joined [12:14:42]Waiting for new connection... [12:14:42] Sock 5.Parse request [12:14:42]Sock 5.Check first char [12:14:42]Sock 5.First char is OK [12:14:42]request: POST /json_proto HTTP/1.0 [12:14:42]Method: POST [12:14:42]URL: /json_proto [12:14:42]Method is POST - this is cgi request [12:14:42]url: /json_proto [12:14:42]query_string will be loaded in cgi processing [12:14:42]execute_cgi json_proto POST (null) [12:14:42]execute_cgi path=json_proto method=POST [12:14:42]POST find Content-Length [12:14:42]Host: 172.17.63.131:8080 [12:14:42]Content-Length: 865 [12:14:42]Content-Type: application/json [12:14:42] [12:14:42]POST finish read [12:14:42]Found Content-Length = 865 [12:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:42]execute_script... [12:14: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)31435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:42]POST & json_proto [12:14:42]process_json_proto [12:14:42]json parsed OK: [12:14:42]protocol is kg_v1.0 [12:14:42]action value=close_receipt [12:14:42]process_action close_receipt [12:14:42]cmd_close_receipt [12:14:42]MH_GetDate [12:14:42]Write to MH i2c: F0 00 00 92 6C ED [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 09 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 09 00 92 6C 00 C6 2E 1E 67 22 05 6E 64 68 [12:14:42]GetLastDocTimeStamp 1730031214 [12:14:42]current date 1730031302 [12:14:42]FM_GetShiftState [12:14:42]SAM_PROTO_GetShiftState [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 13 01 00 [12:14:42]Write to MH i2c: E2 08 00 93 6C 80 13 01 00 00 00 00 00 7C [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 93 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [12:14:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_GetShiftState done [12:14:42]FM_GetShiftState done [12:14:42]opened in 1729989159 [12:14:42]opened+sec_in_day 1730075559 [12:14:42]quantity*price = 100015 [12:14:42]sum+1 = 100017 [12:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 157 27.10.2024 12:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192125 ФПД: 225424468041389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192125&fm=225424468041389&tin=02508201610067®Number=0000000000091776&sum=100016 [12:14:43]StoreToDocumentArchive [12:14:43]shift 542 fd 192125 [12:14:43]save to /storage/0542/doc_00192125 [12:14:43]save last doc name /storage/0542/doc_00192125 to /storage/kkm_last_doc_name [12:14:43]save OK [12:14:43]Clear old archive folders... [12:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:43]tlvbuf is 01C6F880 [12:14:43]SAM_PROTO_ClearQueue [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 09 00 00 [12:14:43]Write to MH i2c: E2 08 00 A0 6C 80 09 00 00 00 00 00 00 7E [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 A0 6C 00 90 00 80 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_ClearQueue done [12:14:43]KKMCreateOFDPacket [12:14:43]OFDProtocolAddRootSTLVToBuf [12:14:43]FM_MakeSignedData [12:14:43]FM_MakeSignedData [12:14:43]SAM_PROTO_SignData [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 01 02 [12:14:43]Write to MH i2c: E2 08 00 A1 6C 80 0D 01 02 00 00 00 00 86 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 A1 6C 00 90 00 81 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]wFMCommunicate request_size=255 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C6 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EE 02 00 35 04 06 00 CD [12:14:43]Write to MH i2c: E2 02 01 A2 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C6 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EE 02 00 35 04 06 00 CD 00 00 A4 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 03 00 A2 6C 00 90 00 82 [12:14:43]RAPDU: 90 00 [12:14:43]wFMCommunicate OK [12:14:43]wFMCommunicate request_size=10 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 0D 02 02 05 05 B9 57 5E AD [12:14:43]Write to MH i2c: E2 0D 00 A3 6C 80 0D 02 02 05 00 05 B9 57 5E AD 00 00 B3 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 A3 6C 00 90 00 83 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 03 02 [12:14:44]Write to MH i2c: E2 08 00 A4 6C 80 0D 03 02 00 00 00 00 8B [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0B 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0B 00 A4 6C 00 F6 79 EF 8F 96 BE 5E 88 90 00 B3 [12:14:44]RAPDU: F6 79 EF 8F 96 BE 5E 88 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_SignData done [12:14:44]FM_MakeSignedData done [12:14:44]CreateOFDProtocolMessage [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 11 00 00 [12:14:44]Write to MH i2c: E2 08 00 A5 6C 80 11 00 00 00 00 00 00 8B [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 A5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [12:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:44]wFMCommunicate OK [12:14:44]CreateOFDProtocolMessage done [12:14:44]OFDSenderStorePacket 192125 [12:14:44]StoreOFDPacket docnum=192125 [12:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3D 72 07 01 B7 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C6 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EE 02 00 35 04 06 00 CD 05 B9 57 5E AD F6 79 EF 8F 96 BE 5E 88 [12:14:44]CheckFolder [12:14:44]dirname=/storage/ofd_packets [12:14:44]CheckFolder done [12:14:44]ProducePacketName [12:14:44]name=ofd_packets/00192125 [12:14:44]NVStorageSaveData ofd_packets/00192125 [12:14:44]File name is /storage/ofd_packets/00192125 [12:14:44]Write 301 bytes [12:14:44]NVStorageSaveData done [12:14:44]OFDSenderStorePacket done [12:14:44]KKMCreateOFDPacket done [12:14:44]NVStorageSaveData kkm_last_timestamp [12:14:44]File name is /storage/kkm_last_timestamp [12:14:44]Write 4 bytes [12:14:44]NVStorageSaveData done [12:14:44]ExternCall_PrintAddStr [12:14:44]wPrintStart [12:14:44]Write to MH i2c: 01 00 00 A6 6C 12 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 A6 6C 00 00 00 00 00 FF 0F 27 [12:14:44]RasterBufferAndPrint [12:14:44]line Счет N : (1)31435 [12:14:44]line ИНН: 02508201610067 [12:14:44]line Контрольно-Кассовый Чек [12:14:44]line ПРОДАЖА [12:14:44]line ТРК (МРК, ГНК) : 21 [12:14:44]line Товар: 2710124130 [12:14:44]line Аи-92-К-5 [12:14:44]line 14.950 * 66.90 [12:14:44]line = 1000.16 [12:14:44]line НДС 12% НСП 1% [12:14:44]line > о реализуемом товаре [12:14:44]line ИТОГО: 1000.16 [12:14:44]line НСП 1% : 8.85 [12:14:44]line НДС 12% : 106.21 [12:14:44]line Наличными: 0.00 [12:14:44]line Безнал.: 1000.16 [12:14:44]line Место: АЗС № 170 "Партнер Нефть" [12:14:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:14:44]line СНО: Общий режим [12:14:44]line Чек 157 27.10.2024 12:15 [12:14:44]line Смена: 542 ФФД: 1.0 [12:14:44]line ЗНМ: 0300000110 [12:14:44]line РНМ: 0000000000091776 [12:14:44]line Версия ККМ: 001 [12:14:44]line Платежная система: Кыргызкоммерцбанк [12:14:44]line ФМ: 0000000000871754 [12:14:44]line ФД: 192125 [12:14:44]line ФПД: 225424468041389 [12:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192125&fm=225424468041389&tin=02508201610067®Number=0000000000091776&sum=100016 [12:14:44]written 0, free lines is 4095 [12:14:44]Write to MH i2c: 01 00 00 D0 6C 3C [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 D0 6C 00 00 00 00 00 C6 0C 15 [12:14:44]RasterBufferAndPrint [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]line [12:14:44]written 0, free lines is 3276 [12:14:44]MH_Cut [12:14:44]Write to MH i2c: D1 01 00 D7 6C 01 15 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 01 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: D1 01 00 D7 6C 00 14 [12:14:44]Write to MH i2c: 01 00 00 D8 6C 44 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:45]*** Cut start [12:14:45]*** Partial cut [12:14:45]*** CUTSNS_PIN = 1 [12:14:45]*** CUTSNS_PIN = 0 [12:14:46]*** Brake cut motor [12:14:46]Read from MH i2c: 01 [12:14:46]MH_I2C_Read... [12:14:46]*** Stop cut motor [12:14:46]*** Cut end [12:14:46]Read from MH i2c: 01 07 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: 01 07 00 D8 6C 00 00 00 00 00 FF 0F 59 [12:14:46]process_action close_receipt done [12:14:46]requested_data is exist [12:14:46]produce_requested_data [12:14:46]requested_item fm.sn is exist - process it [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 11 00 00 [12:14:46]Write to MH i2c: E2 08 00 D9 6C 80 11 00 00 00 00 00 00 BF [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 D9 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [12:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:46]wFMCommunicate OK [12:14:46]requested_item fd.num is exist - process it [12:14:46]SAM_PROTO_GetFieldsCounters [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 00 00 [12:14:46]Write to MH i2c: E2 08 00 DA 6C 80 13 00 00 00 00 00 00 C2 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 DA 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:14:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetFieldsCounters done [12:14:46]requested_item shift.num is exist - process it [12:14:46]requested_item shift.opened is exist - process it [12:14:46]req_shift_opened [12:14:46]FM_GetShiftState [12:14:46]SAM_PROTO_GetShiftState [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 01 00 [12:14:46]Write to MH i2c: E2 08 00 DB 6C 80 13 01 00 00 00 00 00 C4 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 DB 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 05 [12:14:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetShiftState done [12:14:46]FM_GetShiftState done [12:14:46]req_shift_opened done [12:14:46]requested_item shift.open_date is exist - process it [12:14:46]req_shift_open_date [12:14:46]req_shift_open_date done [12:14:46]produce_requested_data done [12:14:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192125,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:14:46]process_action_free close_receipt [12:14:46]json_value_free [12:14:46]json_value_free done [12:14:46]process_json_proto returns [12:14:46]Send response to host [12:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192125,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:14:46]free response buf [12:14:46]execute_script done [12:14:46]execute_script returns [12:14:46]free content buf [12:14:46]Sock 5.Close socket [12:14:46]Sock 5.Thread stoped [12:15:02]ConnectInit Can't connect to host [12:15:02]CommunicateWithHost connect error [12:15:02]CommunicateWithHost err = -1 [12:15:02]OFD Sender: Server communicate error [12:15:02]OFD Sender: Processing packet 192123 [packets to send 77, broken 74] [12:15:02]ProducePacketName [12:15:02]name=ofd_packets/00192123 [12:15:02]OFD Sender: To server: pG, [12:15:02]CommunicateWithHost lk.salyk.kg:30040 [12:15:02]ConnectInit lk.salyk.kg [12:15:02]Connected sock=5 [12:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 3B 07 01 11 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EE 02 00 35 04 06 00 5B 00 FD 25 05 FA 52 72 80 0C B3 D4 51 D6 [12:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F4 36 47 00 6B 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EE 02 00 F4 03 04 00 9F D3 1D 67 B6 04 01 00 00 D3 5E D1 0C 52 4B E2 FE [12:15:02]CommunicateWithHost err = 0 [12:15:02]CheckOFDResponse [12:15:02]1017 (14) - 77093643461234 [12:15:02]1041 (16) - 0000000000871754 [12:15:02]1040 (4) - 192123 [12:15:02]1012 (4) - 27.10.2024 05:46 [12:15:02]1206 (1) - 0 [12:15:02]OFD Sender: Remove packet 192123 [12:15:02]ProducePacketName [12:15:02]name=ofd_packets/00192123 [12:15:02]NVStorageDeleteData [12:15:03]OFD Sender: Processing packet 192124 [packets to send 76, broken 74] [12:15:03]ProducePacketName [12:15:03]name=ofd_packets/00192124 [12:15:03]OFD Sender: To server: pG, [12:15:03]CommunicateWithHost lk.salyk.kg:30040 [12:15:03]ConnectInit lk.salyk.kg [12:15:03]Connected sock=5 [12:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 E4 04 01 3D 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E0 8E 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 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 9C 00 00 00 F4 03 04 00 6E 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EE 02 00 35 04 06 00 26 40 C9 04 62 2E 4B E3 8A A4 BF 9F B8 64 [12:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C E8 47 00 11 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EE 02 00 F4 03 04 00 A0 D3 1D 67 B6 04 01 00 00 95 62 A7 0C C5 05 B9 EE [12:15:03]CommunicateWithHost err = 0 [12:15:03]CheckOFDResponse [12:15:03]1017 (14) - 77093643461234 [12:15:03]1041 (16) - 0000000000871754 [12:15:03]1040 (4) - 192124 [12:15:03]1012 (4) - 27.10.2024 05:46 [12:15:03]1206 (1) - 0 [12:15:03]OFD Sender: Remove packet 192124 [12:15:03]ProducePacketName [12:15:03]name=ofd_packets/00192124 [12:15:03]NVStorageDeleteData [12:15:03]OFD Sender: Processing packet 192125 [packets to send 75, broken 74] [12:15:03]ProducePacketName [12:15:03]name=ofd_packets/00192125 [12:15:03]OFD Sender: To server: pG, [12:15:03]CommunicateWithHost lk.salyk.kg:30040 [12:15:03]ConnectInit lk.salyk.kg [12:15:04]Connected sock=5 [12:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3D 72 07 01 B7 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C6 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EE 02 00 35 04 06 00 CD 05 B9 57 5E AD F6 79 EF 8F 96 BE 5E 88 [12:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 13 41 47 00 93 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EE 02 00 F4 03 04 00 A1 D3 1D 67 B6 04 01 00 00 6E 47 41 1B F0 15 2C EF [12:15:04]CommunicateWithHost err = 0 [12:15:04]CheckOFDResponse [12:15:04]1017 (14) - 77093643461234 [12:15:04]1041 (16) - 0000000000871754 [12:15:04]1040 (4) - 192125 [12:15:04]1012 (4) - 27.10.2024 05:46 [12:15:04]1206 (1) - 0 [12:15:04]OFD Sender: Remove packet 192125 [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00192125 [12:15:04]NVStorageDeleteData [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:18]accept exits with 6 [12:15:18]New connection [12:15:18]New thread 3066817892 created [12:15:18]Thread 3066961252 joined [12:15:18]Waiting for new connection... [12:15:18] Sock 6.Parse request [12:15:18]Sock 6.Check first char [12:15:18]Sock 6.First char is OK [12:15:18]request: POST /json_proto HTTP/1.0 [12:15:18]Method: POST [12:15:18]URL: /json_proto [12:15:18]Method is POST - this is cgi request [12:15:18]url: /json_proto [12:15:18]query_string will be loaded in cgi processing [12:15:18]execute_cgi json_proto POST (null) [12:15:18]execute_cgi path=json_proto method=POST [12:15:18]POST find Content-Length [12:15:18]Host: 172.17.63.131:8080 [12:15:18]Content-Length: 677 [12:15:18]Content-Type: application/json [12:15:18] [12:15:18]POST finish read [12:15:18]Found Content-Length = 677 [12:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:18]execute_script... [12:15:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:18]POST & json_proto [12:15:18]process_json_proto [12:15:18]json parsed OK: [12:15:18]protocol is kg_v1.0 [12:15:18]action value=close_receipt [12:15:18]process_action close_receipt [12:15:18]cmd_close_receipt [12:15:18]MH_GetDate [12:15:18]Write to MH i2c: F0 00 00 DC 6C 37 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 09 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 09 00 DC 6C 00 EA 2E 1E 67 22 05 6E 64 D6 [12:15:18]GetLastDocTimeStamp 1730031302 [12:15:18]current date 1730031338 [12:15:18]FM_GetShiftState [12:15:18]SAM_PROTO_GetShiftState [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 13 01 00 [12:15:18]Write to MH i2c: E2 08 00 DD 6C 80 13 01 00 00 00 00 00 C6 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:19]Read from MH i2c: E2 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 0E 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 0E 00 DD 6C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 07 [12:15:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:15:19]wFMCommunicate OK [12:15:19]SAM_PROTO_GetShiftState done [12:15:19]FM_GetShiftState done [12:15:19]opened in 1729989159 [12:15:19]opened+sec_in_day 1730075559 [12:15:19]quantity*price = 70044 [12:15:19]sum+1 = 70045 [12:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 158 27.10.2024 12:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192126 ФПД: 209422625961036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192126&fm=209422625961036&tin=02508201610067®Number=0000000000091776&sum=70000 [12:15:20]StoreToDocumentArchive [12:15:20]shift 542 fd 192126 [12:15:20]save to /storage/0542/doc_00192126 [12:15:20]save last doc name /storage/0542/doc_00192126 to /storage/kkm_last_doc_name [12:15:20]save OK [12:15:20]Clear old archive folders... [12:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:20]tlvbuf is 01608CB0 [12:15:20]SAM_PROTO_ClearQueue [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 09 00 00 [12:15:20]Write to MH i2c: E2 08 00 EA 6C 80 09 00 00 00 00 00 00 C8 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 EA 6C 00 90 00 CA [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]SAM_PROTO_ClearQueue done [12:15:20]KKMCreateOFDPacket [12:15:20]OFDProtocolAddRootSTLVToBuf [12:15:20]FM_MakeSignedData [12:15:20]FM_MakeSignedData [12:15:20]SAM_PROTO_SignData [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 01 02 [12:15:20]Write to MH i2c: E2 08 00 EB 6C 80 0D 01 02 00 00 00 00 D0 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 EB 6C 00 90 00 CB [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=255 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EE 02 00 35 04 06 00 BE [12:15:20]Write to MH i2c: E2 02 01 EC 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EE 02 00 35 04 06 00 BE 00 00 FB [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 EC 6C 00 90 00 CC [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=10 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 02 02 05 78 01 3A 74 4C [12:15:20]Write to MH i2c: E2 0D 00 ED 6C 80 0D 02 02 05 00 78 01 3A 74 4C 00 00 50 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 ED 6C 00 90 00 CD [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 03 02 [12:15:20]Write to MH i2c: E2 08 00 EE 6C 80 0D 03 02 00 00 00 00 D5 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 EE 6C 00 DD 26 8A CF EC D8 AB 21 90 00 C2 [12:15:20]RAPDU: DD 26 8A CF EC D8 AB 21 90 00 [12:15:20]wFMCommunicate OK [12:15:20]SAM_PROTO_SignData done [12:15:20]FM_MakeSignedData done [12:15:20]CreateOFDProtocolMessage [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 11 00 00 [12:15:20]Write to MH i2c: E2 08 00 EF 6C 80 11 00 00 00 00 00 00 D5 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 EF 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [12:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:15:20]wFMCommunicate OK [12:15:20]CreateOFDProtocolMessage done [12:15:20]OFDSenderStorePacket 192126 [12:15:20]StoreOFDPacket docnum=192126 [12:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 BA 07 01 D1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EE 02 00 35 04 06 00 BE 78 01 3A 74 4C DD 26 8A CF EC D8 AB 21 [12:15:20]CheckFolder [12:15:20]dirname=/storage/ofd_packets [12:15:20]CheckFolder done [12:15:20]ProducePacketName [12:15:20]name=ofd_packets/00192126 [12:15:20]NVStorageSaveData ofd_packets/00192126 [12:15:20]File name is /storage/ofd_packets/00192126 [12:15:20]Write 301 bytes [12:15:20]NVStorageSaveData done [12:15:20]OFDSenderStorePacket done [12:15:20]KKMCreateOFDPacket done [12:15:20]NVStorageSaveData kkm_last_timestamp [12:15:20]File name is /storage/kkm_last_timestamp [12:15:20]Write 4 bytes [12:15:20]NVStorageSaveData done [12:15:20]ExternCall_PrintAddStr [12:15:20]wPrintStart [12:15:20]Write to MH i2c: 01 00 00 F0 6C 5C [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 F0 6C 00 00 00 00 00 FF 0F 71 [12:15:20]RasterBufferAndPrint [12:15:20]line Счет N : (1)31436 [12:15:20]line ИНН: 02508201610067 [12:15:20]line Контрольно-Кассовый Чек [12:15:20]line ПРОДАЖА [12:15:20]line ТРК (МРК, ГНК) : 12 [12:15:20]line Товар: 2710124130 [12:15:20]line Аи-92-К-5 [12:15:20]line 10.470 * 66.90 [12:15:20]line = 700.44 [12:15:20]line НДС 12% НСП 1% [12:15:20]line > о реализуемом товаре [12:15:20]line ОКРУГЛЕНИЕ: -0.44 [12:15:20]line ИТОГО: 700.00 [12:15:20]line Внесено: 700.00 [12:15:20]line СДАЧА: 0.00 [12:15:20]line НСП 1% : 6.20 [12:15:20]line НДС 12% : 74.38 [12:15:20]line Наличными: 700.00 [12:15:20]line Безнал.: 0.00 [12:15:20]line Место: АЗС № 170 "Партнер Нефть" [12:15:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:15:20]line СНО: Общий режим [12:15:20]line Чек 158 27.10.2024 12:15 [12:15:20]line Смена: 542 ФФД: 1.0 [12:15:20]line ЗНМ: 0300000110 [12:15:20]line РНМ: 0000000000091776 [12:15:20]line Версия ККМ: 001 [12:15:20]line ФМ: 0000000000871754 [12:15:20]line ФД: 192126 [12:15:20]line ФПД: 209422625961036 [12:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192126&fm=209422625961036&tin=02508201610067®Number=0000000000091776&sum=70000 [12:15:21]OFD Sender: Processing packet 192126 [packets to send 75, broken 74] [12:15:21]ProducePacketName [12:15:21]name=ofd_packets/00192126 [12:15:21]OFD Sender: To server: pG, [12:15:21]CommunicateWithHost lk.salyk.kg:30040 [12:15:21]ConnectInit lk.salyk.kg [12:15:21]written 0, free lines is 4095 [12:15:21]Connected sock=8 [12:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 BA 07 01 D1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA 2E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EE 02 00 35 04 06 00 BE 78 01 3A 74 4C DD 26 8A CF EC D8 AB 21 [12:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E2 29 47 00 3C 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EE 02 00 F4 03 04 00 B2 D3 1D 67 B6 04 01 00 00 D6 B9 0B 20 DD 28 6B AC [12:15:21]CommunicateWithHost err = 0 [12:15:21]CheckOFDResponse [12:15:21]1017 (14) - 77093643461234 [12:15:21]1041 (16) - 0000000000871754 [12:15:21]1040 (4) - 192126 [12:15:21]1012 (4) - 27.10.2024 05:46 [12:15:21]1206 (1) - 0 [12:15:21]OFD Sender: Remove packet 192126 [12:15:21]ProducePacketName [12:15:21]name=ofd_packets/00192126 [12:15:21]NVStorageDeleteData [12:15:21]Write to MH i2c: 01 00 00 1B 6D 88 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 1B 6D 00 00 00 00 00 B4 0C 4F [12:15:21]RasterBufferAndPrint [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]written 0, free lines is 3259 [12:15:21]MH_Cut [12:15:21]Write to MH i2c: D1 01 00 22 6D 01 61 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 22 6D 00 60 [12:15:21]Write to MH i2c: 01 00 00 23 6D 90 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]OFD Sender: No OFD packet to send [12:15:22]*** Cut start [12:15:22]*** Partial cut [12:15:22]*** CUTSNS_PIN = 1 [12:15:22]*** CUTSNS_PIN = 0 [12:15:22]*** Brake cut motor [12:15:22]Read from MH i2c: 01 [12:15:22]MH_I2C_Read... [12:15:22]*** Stop cut motor [12:15:22]*** Cut end [12:15:22]Read from MH i2c: 01 07 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: 01 07 00 23 6D 00 00 00 00 00 FF 0F A5 [12:15:22]process_action close_receipt done [12:15:22]requested_data is exist [12:15:22]produce_requested_data [12:15:22]requested_item fm.sn is exist - process it [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 11 00 00 [12:15:22]Write to MH i2c: E2 08 00 24 6D 80 11 00 00 00 00 00 00 0B [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 24 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [12:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:15:23]wFMCommunicate OK [12:15:23]requested_item fd.num is exist - process it [12:15:23]SAM_PROTO_GetFieldsCounters [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 13 00 00 [12:15:23]Write to MH i2c: E2 08 00 25 6D 80 13 00 00 00 00 00 00 0E [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 62 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 62 00 25 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_GetFieldsCounters done [12:15:23]requested_item shift.num is exist - process it [12:15:23]requested_item shift.opened is exist - process it [12:15:23]req_shift_opened [12:15:23]FM_GetShiftState [12:15:23]SAM_PROTO_GetShiftState [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 13 01 00 [12:15:23]Write to MH i2c: E2 08 00 26 6D 80 13 01 00 00 00 00 00 10 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 26 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 51 [12:15:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_GetShiftState done [12:15:23]FM_GetShiftState done [12:15:23]req_shift_opened done [12:15:23]requested_item shift.open_date is exist - process it [12:15:23]req_shift_open_date [12:15:23]req_shift_open_date done [12:15:23]produce_requested_data done [12:15:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192126,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:15:23]process_action_free close_receipt [12:15:23]json_value_free [12:15:23]json_value_free done [12:15:23]process_json_proto returns [12:15:23]Send response to host [12:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192126,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:15:23]free response buf [12:15:23]execute_script done [12:15:23]execute_script returns [12:15:23]free content buf [12:15:23]Sock 6.Close socket [12:15:23]Sock 6.Thread stoped [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:40]accept exits with 5 [12:16:40]New connection [12:16:40]New thread 3066961252 created [12:16:40]Thread 3066817892 joined [12:16:40]Waiting for new connection... [12:16:40] Sock 5.Parse request [12:16:40]Sock 5.Check first char [12:16:40]Sock 5.First char is OK [12:16:40]request: POST /json_proto HTTP/1.0 [12:16:40]Method: POST [12:16:40]URL: /json_proto [12:16:40]Method is POST - this is cgi request [12:16:40]url: /json_proto [12:16:40]query_string will be loaded in cgi processing [12:16:40]execute_cgi json_proto POST (null) [12:16:40]execute_cgi path=json_proto method=POST [12:16:40]POST find Content-Length [12:16:40]Host: 172.17.63.131:8080 [12:16:40]Content-Length: 676 [12:16:40]Content-Type: application/json [12:16:40] [12:16:40]POST finish read [12:16:40]Found Content-Length = 676 [12:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:40]execute_script... [12:16: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)31437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:40]POST & json_proto [12:16:40]process_json_proto [12:16:40]json parsed OK: [12:16:40]protocol is kg_v1.0 [12:16:40]action value=close_receipt [12:16:40]process_action close_receipt [12:16:40]cmd_close_receipt [12:16:40]MH_GetDate [12:16:40]Write to MH i2c: F0 00 00 27 6D 83 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: F0 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: F0 09 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: F0 09 00 27 6D 00 3C 2F 1E 67 22 05 6E 64 75 [12:16:40]GetLastDocTimeStamp 1730031338 [12:16:40]current date 1730031420 [12:16:40]FM_GetShiftState [12:16:40]SAM_PROTO_GetShiftState [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 13 01 00 [12:16:40]Write to MH i2c: E2 08 00 28 6D 80 13 01 00 00 00 00 00 12 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0E 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0E 00 28 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 53 [12:16:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetShiftState done [12:16:40]FM_GetShiftState done [12:16:40]opened in 1729989159 [12:16:40]opened+sec_in_day 1730075559 [12:16:40]quantity*price = 50041 [12:16:40]sum+1 = 50042 [12:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 159 27.10.2024 12:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192127 ФПД: 95856670768962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192127&fm=95856670768962&tin=02508201610067®Number=0000000000091776&sum=50000 [12:16:41]StoreToDocumentArchive [12:16:41]shift 542 fd 192127 [12:16:41]save to /storage/0542/doc_00192127 [12:16:41]save last doc name /storage/0542/doc_00192127 to /storage/kkm_last_doc_name [12:16:41]save OK [12:16:41]Clear old archive folders... [12:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:41]tlvbuf is 01960D80 [12:16:41]SAM_PROTO_ClearQueue [12:16:41]wFMCommunicate request_size=4 [12:16:41]MH_SAM_APDU [12:16:41]CAPDU: 80 09 00 00 [12:16:41]Write to MH i2c: E2 08 00 35 6D 80 09 00 00 00 00 00 00 14 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:41]Read from MH i2c: E2 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 03 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 03 00 35 6D 00 90 00 16 [12:16:41]RAPDU: 90 00 [12:16:41]wFMCommunicate OK [12:16:41]SAM_PROTO_ClearQueue done [12:16:41]KKMCreateOFDPacket [12:16:41]OFDProtocolAddRootSTLVToBuf [12:16:41]FM_MakeSignedData [12:16:41]FM_MakeSignedData [12:16:41]SAM_PROTO_SignData [12:16:41]wFMCommunicate request_size=4 [12:16:41]MH_SAM_APDU [12:16:41]CAPDU: 80 0D 01 02 [12:16:41]Write to MH i2c: E2 08 00 36 6D 80 0D 01 02 00 00 00 00 1C [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:41]Read from MH i2c: E2 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 03 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 03 00 36 6D 00 90 00 17 [12:16:41]RAPDU: 90 00 [12:16:41]wFMCommunicate OK [12:16:41]wFMCommunicate request_size=255 [12:16:41]MH_SAM_APDU [12:16:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 3C 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EE 02 00 35 04 06 00 57 [12:16:41]Write to MH i2c: E2 02 01 37 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 3C 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EE 02 00 35 04 06 00 57 00 00 25 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]OFD Sender: No OFD packet to send [12:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 03 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 03 00 37 6D 00 90 00 18 [12:16:42]RAPDU: 90 00 [12:16:42]wFMCommunicate OK [12:16:42]wFMCommunicate request_size=10 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 0D 02 02 05 2E 5E CF 7F 42 [12:16:42]Write to MH i2c: E2 0D 00 38 6D 80 0D 02 02 05 00 2E 5E CF 7F 42 00 00 45 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 03 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 03 00 38 6D 00 90 00 19 [12:16:42]RAPDU: 90 00 [12:16:42]wFMCommunicate OK [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 0D 03 02 [12:16:42]Write to MH i2c: E2 08 00 39 6D 80 0D 03 02 00 00 00 00 21 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0B 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0B 00 39 6D 00 F9 DC A0 FB 17 3F 9B F3 90 00 76 [12:16:42]RAPDU: F9 DC A0 FB 17 3F 9B F3 90 00 [12:16:42]wFMCommunicate OK [12:16:42]SAM_PROTO_SignData done [12:16:42]FM_MakeSignedData done [12:16:42]CreateOFDProtocolMessage [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 11 00 00 [12:16:42]Write to MH i2c: E2 08 00 3A 6D 80 11 00 00 00 00 00 00 21 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 17 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 17 00 3A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [12:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:42]wFMCommunicate OK [12:16:42]CreateOFDProtocolMessage done [12:16:42]OFDSenderStorePacket 192127 [12:16:42]StoreOFDPacket docnum=192127 [12:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 2F 07 01 C0 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3C 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EE 02 00 35 04 06 00 57 2E 5E CF 7F 42 F9 DC A0 FB 17 3F 9B F3 [12:16:42]CheckFolder [12:16:42]dirname=/storage/ofd_packets [12:16:42]CheckFolder done [12:16:42]ProducePacketName [12:16:42]name=ofd_packets/00192127 [12:16:42]NVStorageSaveData ofd_packets/00192127 [12:16:42]File name is /storage/ofd_packets/00192127 [12:16:42]Write 301 bytes [12:16:42]NVStorageSaveData done [12:16:42]OFDSenderStorePacket done [12:16:42]KKMCreateOFDPacket done [12:16:42]NVStorageSaveData kkm_last_timestamp [12:16:42]File name is /storage/kkm_last_timestamp [12:16:42]Write 4 bytes [12:16:42]NVStorageSaveData done [12:16:42]ExternCall_PrintAddStr [12:16:42]wPrintStart [12:16:42]Write to MH i2c: 01 00 00 3B 6D A8 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 07 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 07 00 3B 6D 00 00 00 00 00 FF 0F BD [12:16:42]RasterBufferAndPrint [12:16:42]line Счет N : (1)31437 [12:16:42]line ИНН: 02508201610067 [12:16:42]line Контрольно-Кассовый Чек [12:16:42]line ПРОДАЖА [12:16:42]line ТРК (МРК, ГНК) : 12 [12:16:42]line Товар: 2710124130 [12:16:42]line Аи-92-К-5 [12:16:42]line 7.480 * 66.90 [12:16:42]line = 500.41 [12:16:42]line НДС 12% НСП 1% [12:16:42]line > о реализуемом товаре [12:16:42]line ОКРУГЛЕНИЕ: -0.41 [12:16:42]line ИТОГО: 500.00 [12:16:42]line Внесено: 500.00 [12:16:42]line СДАЧА: 0.00 [12:16:42]line НСП 1% : 4.43 [12:16:42]line НДС 12% : 53.14 [12:16:42]line Наличными: 500.00 [12:16:42]line Безнал.: 0.00 [12:16:42]line Место: АЗС № 170 "Партнер Нефть" [12:16:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:16:42]line СНО: Общий режим [12:16:42]line Чек 159 27.10.2024 12:17 [12:16:42]line Смена: 542 ФФД: 1.0 [12:16:42]line ЗНМ: 0300000110 [12:16:42]line РНМ: 0000000000091776 [12:16:42]line Версия ККМ: 001 [12:16:42]line ФМ: 0000000000871754 [12:16:42]line ФД: 192127 [12:16:42]line ФПД: 95856670768962 [12:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192127&fm=95856670768962&tin=02508201610067®Number=0000000000091776&sum=50000 [12:16:42]OFD Sender: Processing packet 192127 [packets to send 75, broken 74] [12:16:42]ProducePacketName [12:16:42]name=ofd_packets/00192127 [12:16:42]OFD Sender: To server: pG, [12:16:42]CommunicateWithHost lk.salyk.kg:30040 [12:16:42]ConnectInit lk.salyk.kg [12:16:42]written 0, free lines is 4095 [12:16:42]Connected sock=8 [12:16:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 2F 07 01 C0 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3C 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EE 02 00 35 04 06 00 57 2E 5E CF 7F 42 F9 DC A0 FB 17 3F 9B F3 [12:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 B8 47 00 91 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EE 02 00 F4 03 04 00 04 D4 1D 67 B6 04 01 00 00 DB 5C 31 D7 6E DC 45 58 [12:16:43]CommunicateWithHost err = 0 [12:16:43]CheckOFDResponse [12:16:43]1017 (14) - 77093643461234 [12:16:43]1041 (16) - 0000000000871754 [12:16:43]1040 (4) - 192127 [12:16:43]1012 (4) - 27.10.2024 05:47 [12:16:43]1206 (1) - 0 [12:16:43]OFD Sender: Remove packet 192127 [12:16:43]ProducePacketName [12:16:43]name=ofd_packets/00192127 [12:16:43]NVStorageDeleteData [12:16:43]Write to MH i2c: 01 00 00 66 6D D3 [12:16:43]Write i2c OK [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: 01 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: 01 07 00 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: 01 07 00 66 6D 00 00 00 00 00 B5 0C 9B [12:16:43]RasterBufferAndPrint [12:16:43]line [12:16:43]line [12:16:43]line [12:16:43]line [12:16:43]line [12:16:43]written 0, free lines is 3259 [12:16:43]MH_Cut [12:16:43]Write to MH i2c: D1 01 00 6D 6D 01 AC [12:16:43]Write i2c OK [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: D1 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: D1 01 00 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: D1 01 00 6D 6D 00 AB [12:16:43]Write to MH i2c: 01 00 00 6E 6D DB [12:16:43]Write i2c OK [12:16:43]MH_I2C_Read... [12:16:43]OFD Sender: No OFD packet to send [12:16:43]*** Cut start [12:16:43]*** Partial cut [12:16:44]*** CUTSNS_PIN = 1 [12:16:44]*** CUTSNS_PIN = 0 [12:16:44]*** Brake cut motor [12:16:44]Read from MH i2c: 01 [12:16:44]MH_I2C_Read... [12:16:44]*** Stop cut motor [12:16:44]*** Cut end [12:16:44]Read from MH i2c: 01 07 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: 01 07 00 6E 6D 00 00 00 00 00 FF 0F F0 [12:16:44]process_action close_receipt done [12:16:44]requested_data is exist [12:16:44]produce_requested_data [12:16:44]requested_item fm.sn is exist - process it [12:16:44]wFMCommunicate request_size=4 [12:16:44]MH_SAM_APDU [12:16:44]CAPDU: 80 11 00 00 [12:16:44]Write to MH i2c: E2 08 00 6F 6D 80 11 00 00 00 00 00 00 56 [12:16:44]Write i2c OK [12:16:44]MH_I2C_Read... [12:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:44]Read from MH i2c: E2 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 17 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 17 00 6F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [12:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:44]wFMCommunicate OK [12:16:44]requested_item fd.num is exist - process it [12:16:44]SAM_PROTO_GetFieldsCounters [12:16:44]wFMCommunicate request_size=4 [12:16:44]MH_SAM_APDU [12:16:44]CAPDU: 80 13 00 00 [12:16:44]Write to MH i2c: E2 08 00 70 6D 80 13 00 00 00 00 00 00 59 [12:16:44]Write i2c OK [12:16:44]MH_I2C_Read... [12:16:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:44]Read from MH i2c: E2 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 62 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 62 00 70 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:16:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:44]wFMCommunicate OK [12:16:44]SAM_PROTO_GetFieldsCounters done [12:16:44]requested_item shift.num is exist - process it [12:16:44]requested_item shift.opened is exist - process it [12:16:44]req_shift_opened [12:16:44]FM_GetShiftState [12:16:44]SAM_PROTO_GetShiftState [12:16:44]wFMCommunicate request_size=4 [12:16:44]MH_SAM_APDU [12:16:44]CAPDU: 80 13 01 00 [12:16:44]Write to MH i2c: E2 08 00 71 6D 80 13 01 00 00 00 00 00 5B [12:16:44]Write i2c OK [12:16:44]MH_I2C_Read... [12:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:44]Read from MH i2c: E2 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 71 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9C [12:16:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:16:44]wFMCommunicate OK [12:16:44]SAM_PROTO_GetShiftState done [12:16:44]FM_GetShiftState done [12:16:44]req_shift_opened done [12:16:44]requested_item shift.open_date is exist - process it [12:16:44]req_shift_open_date [12:16:44]req_shift_open_date done [12:16:44]produce_requested_data done [12:16:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192127,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:16:44]process_action_free close_receipt [12:16:44]json_value_free [12:16:44]json_value_free done [12:16:44]process_json_proto returns [12:16:44]Send response to host [12:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192127,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:16:44]free response buf [12:16:44]execute_script done [12:16:44]execute_script returns [12:16:44]free content buf [12:16:44]Sock 5.Close socket [12:16:44]Sock 5.Thread stoped [12:16:48]OFD Sender: No OFD packet to send [12:16:50]accept exits with 6 [12:16:50]New connection [12:16:50]New thread 3066817892 created [12:16:50]Thread 3066961252 joined [12:16:50]Waiting for new connection... [12:16:50] Sock 6.Parse request [12:16:50]Sock 6.Check first char [12:16:50]Sock 6.First char is OK [12:16:50]request: POST /json_proto HTTP/1.0 [12:16:50]Method: POST [12:16:50]URL: /json_proto [12:16:50]Method is POST - this is cgi request [12:16:50]url: /json_proto [12:16:50]query_string will be loaded in cgi processing [12:16:50]execute_cgi json_proto POST (null) [12:16:50]execute_cgi path=json_proto method=POST [12:16:50]POST find Content-Length [12:16:50]Host: 172.17.63.131:8080 [12:16:50]Content-Length: 676 [12:16:50]Content-Type: application/json [12:16:50] [12:16:50]POST finish read [12:16:50]Found Content-Length = 676 [12:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:50]execute_script... [12:16:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:50]POST & json_proto [12:16:50]process_json_proto [12:16:50]json parsed OK: [12:16:50]protocol is kg_v1.0 [12:16:50]action value=close_receipt [12:16:50]process_action close_receipt [12:16:50]cmd_close_receipt [12:16:50]MH_GetDate [12:16:50]Write to MH i2c: F0 00 00 72 6D CE [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 09 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: F0 09 00 72 6D 00 46 2F 1E 67 22 05 6E 64 CA [12:16:50]GetLastDocTimeStamp 1730031420 [12:16:50]current date 1730031430 [12:16:50]FM_GetShiftState [12:16:50]SAM_PROTO_GetShiftState [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 13 01 00 [12:16:50]Write to MH i2c: E2 08 00 73 6D 80 13 01 00 00 00 00 00 5D [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0E 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 0E 00 73 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9E [12:16:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:16:50]wFMCommunicate OK [12:16:50]SAM_PROTO_GetShiftState done [12:16:50]FM_GetShiftState done [12:16:50]opened in 1729989159 [12:16:50]opened+sec_in_day 1730075559 [12:16:50]quantity*price = 50041 [12:16:50]sum+1 = 50042 [12:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 160 27.10.2024 12:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192128 ФПД: 172214048075856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192128&fm=172214048075856&tin=02508201610067®Number=0000000000091776&sum=50000 [12:16:51]StoreToDocumentArchive [12:16:51]shift 542 fd 192128 [12:16:51]save to /storage/0542/doc_00192128 [12:16:51]save last doc name /storage/0542/doc_00192128 to /storage/kkm_last_doc_name [12:16:51]save OK [12:16:51]Clear old archive folders... [12:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:51]tlvbuf is 016CE750 [12:16:51]SAM_PROTO_ClearQueue [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 09 00 00 [12:16:51]Write to MH i2c: E2 08 00 80 6D 80 09 00 00 00 00 00 00 5F [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 80 6D 00 90 00 61 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_ClearQueue done [12:16:51]KKMCreateOFDPacket [12:16:51]OFDProtocolAddRootSTLVToBuf [12:16:51]FM_MakeSignedData [12:16:51]FM_MakeSignedData [12:16:51]SAM_PROTO_SignData [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 01 02 [12:16:51]Write to MH i2c: E2 08 00 81 6D 80 0D 01 02 00 00 00 00 67 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 81 6D 00 90 00 62 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=255 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 46 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EE 02 00 35 04 06 00 9C [12:16:51]Write to MH i2c: E2 02 01 82 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 46 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EE 02 00 35 04 06 00 9C 00 00 C1 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 82 6D 00 90 00 63 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=10 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 02 02 05 A0 B5 29 30 50 [12:16:51]Write to MH i2c: E2 0D 00 83 6D 80 0D 02 02 05 00 A0 B5 29 30 50 00 00 72 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 03 00 83 6D 00 90 00 64 [12:16:51]RAPDU: 90 00 [12:16:51]wFMCommunicate OK [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 0D 03 02 [12:16:51]Write to MH i2c: E2 08 00 84 6D 80 0D 03 02 00 00 00 00 6C [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0B 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0B 00 84 6D 00 6A F2 CA 4D FD E8 5C A5 90 00 C6 [12:16:51]RAPDU: 6A F2 CA 4D FD E8 5C A5 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_SignData done [12:16:51]FM_MakeSignedData done [12:16:51]CreateOFDProtocolMessage [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 11 00 00 [12:16:51]Write to MH i2c: E2 08 00 85 6D 80 11 00 00 00 00 00 00 6C [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:52]Read from MH i2c: E2 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 17 00 85 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [12:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:52]wFMCommunicate OK [12:16:52]CreateOFDProtocolMessage done [12:16:52]OFDSenderStorePacket 192128 [12:16:52]StoreOFDPacket docnum=192128 [12:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 92 07 01 37 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 46 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EE 02 00 35 04 06 00 9C A0 B5 29 30 50 6A F2 CA 4D FD E8 5C A5 [12:16:52]CheckFolder [12:16:52]dirname=/storage/ofd_packets [12:16:52]CheckFolder done [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00192128 [12:16:52]NVStorageSaveData ofd_packets/00192128 [12:16:52]File name is /storage/ofd_packets/00192128 [12:16:52]Write 301 bytes [12:16:52]NVStorageSaveData done [12:16:52]OFDSenderStorePacket done [12:16:52]KKMCreateOFDPacket done [12:16:52]NVStorageSaveData kkm_last_timestamp [12:16:52]File name is /storage/kkm_last_timestamp [12:16:52]Write 4 bytes [12:16:52]NVStorageSaveData done [12:16:52]ExternCall_PrintAddStr [12:16:52]wPrintStart [12:16:52]Write to MH i2c: 01 00 00 86 6D F3 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 86 6D 00 00 00 00 00 FF 0F 08 [12:16:52]RasterBufferAndPrint [12:16:52]line Счет N : (1)31438 [12:16:52]line ИНН: 02508201610067 [12:16:52]line Контрольно-Кассовый Чек [12:16:52]line ПРОДАЖА [12:16:52]line ТРК (МРК, ГНК) : 21 [12:16:52]line Товар: 2710124130 [12:16:52]line Аи-92-К-5 [12:16:52]line 7.480 * 66.90 [12:16:52]line = 500.41 [12:16:52]line НДС 12% НСП 1% [12:16:52]line > о реализуемом товаре [12:16:52]line ОКРУГЛЕНИЕ: -0.41 [12:16:52]line ИТОГО: 500.00 [12:16:52]line Внесено: 500.00 [12:16:52]line СДАЧА: 0.00 [12:16:52]line НСП 1% : 4.43 [12:16:52]line НДС 12% : 53.14 [12:16:52]line Наличными: 500.00 [12:16:52]line Безнал.: 0.00 [12:16:52]line Место: АЗС № 170 "Партнер Нефть" [12:16:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:16:52]line СНО: Общий режим [12:16:52]line Чек 160 27.10.2024 12:17 [12:16:52]line Смена: 542 ФФД: 1.0 [12:16:52]line ЗНМ: 0300000110 [12:16:52]line РНМ: 0000000000091776 [12:16:52]line Версия ККМ: 001 [12:16:52]line ФМ: 0000000000871754 [12:16:52]line ФД: 192128 [12:16:52]line ФПД: 172214048075856 [12:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192128&fm=172214048075856&tin=02508201610067®Number=0000000000091776&sum=50000 [12:16:52]written 0, free lines is 4095 [12:16:52]OFD Sender: Processing packet 192128 [packets to send 75, broken 74] [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00192128 [12:16:52]OFD Sender: To server: pG, [12:16:52]CommunicateWithHost lk.salyk.kg:30040 [12:16:52]ConnectInit lk.salyk.kg [12:16:52]Connected sock=8 [12:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 92 07 01 37 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 46 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EE 02 00 35 04 06 00 9C A0 B5 29 30 50 6A F2 CA 4D FD E8 5C A5 [12:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 1A 47 00 6D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EE 02 00 F4 03 04 00 0D D4 1D 67 B6 04 01 00 00 C3 5B 02 20 5B 0B BF E8 [12:16:52]CommunicateWithHost err = 0 [12:16:52]CheckOFDResponse [12:16:52]1017 (14) - 77093643461234 [12:16:52]1041 (16) - 0000000000871754 [12:16:52]1040 (4) - 192128 [12:16:52]1012 (4) - 27.10.2024 05:47 [12:16:52]1206 (1) - 0 [12:16:52]OFD Sender: Remove packet 192128 [12:16:52]ProducePacketName [12:16:52]name=ofd_packets/00192128 [12:16:52]NVStorageDeleteData [12:16:52]Write to MH i2c: 01 00 00 B1 6D 1E [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: 01 07 00 B1 6D 00 00 00 00 00 B8 0C E9 [12:16:52]RasterBufferAndPrint [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]line [12:16:52]written 0, free lines is 3269 [12:16:52]MH_Cut [12:16:52]Write to MH i2c: D1 01 00 B8 6D 01 F7 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 01 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: D1 01 00 B8 6D 00 F6 [12:16:52]Write to MH i2c: 01 00 00 B9 6D 26 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]OFD Sender: No OFD packet to send [12:16:53]*** Cut start [12:16:53]*** Partial cut [12:16:53]*** CUTSNS_PIN = 1 [12:16:53]*** CUTSNS_PIN = 0 [12:16:53]*** Brake cut motor [12:16:53]Read from MH i2c: 01 [12:16:53]MH_I2C_Read... [12:16:53]*** Stop cut motor [12:16:53]*** Cut end [12:16:53]Read from MH i2c: 01 07 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 07 00 B9 6D 00 00 00 00 00 FF 0F 3B [12:16:53]process_action close_receipt done [12:16:53]requested_data is exist [12:16:53]produce_requested_data [12:16:53]requested_item fm.sn is exist - process it [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 11 00 00 [12:16:53]Write to MH i2c: E2 08 00 BA 6D 80 11 00 00 00 00 00 00 A1 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 BA 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [12:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:54]wFMCommunicate OK [12:16:54]requested_item fd.num is exist - process it [12:16:54]SAM_PROTO_GetFieldsCounters [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 00 00 [12:16:54]Write to MH i2c: E2 08 00 BB 6D 80 13 00 00 00 00 00 00 A4 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 BB 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetFieldsCounters done [12:16:54]requested_item shift.num is exist - process it [12:16:54]requested_item shift.opened is exist - process it [12:16:54]req_shift_opened [12:16:54]FM_GetShiftState [12:16:54]SAM_PROTO_GetShiftState [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 01 00 [12:16:54]Write to MH i2c: E2 08 00 BC 6D 80 13 01 00 00 00 00 00 A6 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 BC 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E7 [12:16:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetShiftState done [12:16:54]FM_GetShiftState done [12:16:54]req_shift_opened done [12:16:54]requested_item shift.open_date is exist - process it [12:16:54]req_shift_open_date [12:16:54]req_shift_open_date done [12:16:54]produce_requested_data done [12:16:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192128,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:16:54]process_action_free close_receipt [12:16:54]json_value_free [12:16:54]json_value_free done [12:16:54]process_json_proto returns [12:16:54]Send response to host [12:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192128,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:16:54]free response buf [12:16:54]execute_script done [12:16:54]execute_script returns [12:16:54]free content buf [12:16:54]Sock 6.Close socket [12:16:54]Sock 6.Thread stoped [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:48]accept exits with 5 [12:18:48]New connection [12:18:48]New thread 3066961252 created [12:18:48]Thread 3066817892 joined [12:18:48]Waiting for new connection... [12:18:48] Sock 5.Parse request [12:18:48]Sock 5.Check first char [12:18:48]Sock 5.First char is OK [12:18:48]request: POST /json_proto HTTP/1.0 [12:18:48]Method: POST [12:18:48]URL: /json_proto [12:18:48]Method is POST - this is cgi request [12:18:48]url: /json_proto [12:18:48]query_string will be loaded in cgi processing [12:18:48]execute_cgi json_proto POST (null) [12:18:48]execute_cgi path=json_proto method=POST [12:18:48]POST find Content-Length [12:18:48]Host: 172.17.63.131:8080 [12:18:48]Content-Length: 676 [12:18:48]Content-Type: application/json [12:18:48] [12:18:48]POST finish read [12:18:48]Found Content-Length = 676 [12:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:48]execute_script... [12:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:48]POST & json_proto [12:18:48]process_json_proto [12:18:48]json parsed OK: [12:18:48]protocol is kg_v1.0 [12:18:48]action value=close_receipt [12:18:48]process_action close_receipt [12:18:48]cmd_close_receipt [12:18:48]MH_GetDate [12:18:48]Write to MH i2c: F0 00 00 BD 6D 19 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: F0 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: F0 09 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: F0 09 00 BD 6D 00 BC 2F 1E 67 22 05 6E 64 8B [12:18:48]GetLastDocTimeStamp 1730031430 [12:18:48]current date 1730031548 [12:18:48]FM_GetShiftState [12:18:48]SAM_PROTO_GetShiftState [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 13 01 00 [12:18:48]Write to MH i2c: E2 08 00 BE 6D 80 13 01 00 00 00 00 00 A8 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 0E 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 0E 00 BE 6D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E9 [12:18:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:18:48]wFMCommunicate OK [12:18:48]SAM_PROTO_GetShiftState done [12:18:48]FM_GetShiftState done [12:18:48]opened in 1729989159 [12:18:48]opened+sec_in_day 1730075559 [12:18:48]quantity*price = 60009 [12:18:48]sum+1 = 60010 [12:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 161 27.10.2024 12:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192129 ФПД: 242678071406962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192129&fm=242678071406962&tin=02508201610067®Number=0000000000091776&sum=60000 [12:18:49]StoreToDocumentArchive [12:18:49]shift 542 fd 192129 [12:18:49]save to /storage/0542/doc_00192129 [12:18:49]save last doc name /storage/0542/doc_00192129 to /storage/kkm_last_doc_name [12:18:49]save OK [12:18:49]Clear old archive folders... [12:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:49]tlvbuf is 01614510 [12:18:49]SAM_PROTO_ClearQueue [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 09 00 00 [12:18:49]Write to MH i2c: E2 08 00 CB 6D 80 09 00 00 00 00 00 00 AA [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 CB 6D 00 90 00 AC [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_ClearQueue done [12:18:49]KKMCreateOFDPacket [12:18:49]OFDProtocolAddRootSTLVToBuf [12:18:49]FM_MakeSignedData [12:18:49]FM_MakeSignedData [12:18:49]SAM_PROTO_SignData [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 01 02 [12:18:49]Write to MH i2c: E2 08 00 CC 6D 80 0D 01 02 00 00 00 00 B2 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 CC 6D 00 90 00 AD [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]wFMCommunicate request_size=255 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BC 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EE 02 00 35 04 06 00 DC [12:18:49]Write to MH i2c: E2 02 01 CD 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BC 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EE 02 00 35 04 06 00 DC 00 00 A1 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 CD 6D 00 90 00 AE [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]wFMCommunicate request_size=10 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 02 02 05 B6 E4 3D B1 72 [12:18:49]Write to MH i2c: E2 0D 00 CE 6D 80 0D 02 02 05 00 B6 E4 3D B1 72 00 00 B9 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 CE 6D 00 90 00 AF [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 03 02 [12:18:49]Write to MH i2c: E2 08 00 CF 6D 80 0D 03 02 00 00 00 00 B7 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0B 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0B 00 CF 6D 00 55 4F E3 17 8E 95 CB 0F 90 00 53 [12:18:49]RAPDU: 55 4F E3 17 8E 95 CB 0F 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_SignData done [12:18:49]FM_MakeSignedData done [12:18:49]CreateOFDProtocolMessage [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 11 00 00 [12:18:49]Write to MH i2c: E2 08 00 D0 6D 80 11 00 00 00 00 00 00 B7 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 D0 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [12:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:18:49]wFMCommunicate OK [12:18:49]CreateOFDProtocolMessage done [12:18:49]OFDSenderStorePacket 192129 [12:18:49]StoreOFDPacket docnum=192129 [12:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C 25 07 01 0B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BC 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EE 02 00 35 04 06 00 DC B6 E4 3D B1 72 55 4F E3 17 8E 95 CB 0F [12:18:49]CheckFolder [12:18:49]dirname=/storage/ofd_packets [12:18:49]CheckFolder done [12:18:49]ProducePacketName [12:18:49]name=ofd_packets/00192129 [12:18:49]NVStorageSaveData ofd_packets/00192129 [12:18:49]File name is /storage/ofd_packets/00192129 [12:18:49]Write 301 bytes [12:18:49]NVStorageSaveData done [12:18:49]OFDSenderStorePacket done [12:18:49]KKMCreateOFDPacket done [12:18:49]NVStorageSaveData kkm_last_timestamp [12:18:49]File name is /storage/kkm_last_timestamp [12:18:49]Write 4 bytes [12:18:49]NVStorageSaveData done [12:18:49]ExternCall_PrintAddStr [12:18:49]wPrintStart [12:18:49]Write to MH i2c: 01 00 00 D1 6D 3E [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 07 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 07 00 D1 6D 00 00 00 00 00 FF 0F 53 [12:18:49]RasterBufferAndPrint [12:18:49]line Счет N : (1)31439 [12:18:49]line ИНН: 02508201610067 [12:18:49]line Контрольно-Кассовый Чек [12:18:49]line ПРОДАЖА [12:18:49]line ТРК (МРК, ГНК) : 12 [12:18:49]line Товар: 2710124130 [12:18:49]line Аи-92-К-5 [12:18:49]line 8.970 * 66.90 [12:18:49]line = 600.09 [12:18:49]line НДС 12% НСП 1% [12:18:49]line > о реализуемом товаре [12:18:49]line ОКРУГЛЕНИЕ: -0.09 [12:18:49]line ИТОГО: 600.00 [12:18:49]line Внесено: 600.00 [12:18:49]line СДАЧА: 0.00 [12:18:49]line НСП 1% : 5.31 [12:18:49]line НДС 12% : 63.73 [12:18:49]line Наличными: 600.00 [12:18:49]line Безнал.: 0.00 [12:18:49]line Место: АЗС № 170 "Партнер Нефть" [12:18:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:18:49]line СНО: Общий режим [12:18:49]line Чек 161 27.10.2024 12:19 [12:18:49]line Смена: 542 ФФД: 1.0 [12:18:49]line ЗНМ: 0300000110 [12:18:49]line РНМ: 0000000000091776 [12:18:49]line Версия ККМ: 001 [12:18:49]line ФМ: 0000000000871754 [12:18:49]line ФД: 192129 [12:18:49]line ФПД: 242678071406962 [12:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192129&fm=242678071406962&tin=02508201610067®Number=0000000000091776&sum=60000 [12:18:50]OFD Sender: Processing packet 192129 [packets to send 75, broken 74] [12:18:50]ProducePacketName [12:18:50]name=ofd_packets/00192129 [12:18:50]OFD Sender: To server: pG, [12:18:50]CommunicateWithHost lk.salyk.kg:30040 [12:18:50]ConnectInit lk.salyk.kg [12:18:50]written 0, free lines is 4095 [12:18:50]Connected sock=8 [12:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C 25 07 01 0B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BC 2F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EE 02 00 35 04 06 00 DC B6 E4 3D B1 72 55 4F E3 17 8E 95 CB 0F [12:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 35 AE 47 00 23 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EE 02 00 F4 03 04 00 83 D4 1D 67 B6 04 01 00 00 F7 67 80 4D A9 AF 5C AB [12:18:50]CommunicateWithHost err = 0 [12:18:50]CheckOFDResponse [12:18:50]1017 (14) - 77093643461234 [12:18:50]1041 (16) - 0000000000871754 [12:18:50]1040 (4) - 192129 [12:18:50]1012 (4) - 27.10.2024 05:49 [12:18:50]1206 (1) - 0 [12:18:50]OFD Sender: Remove packet 192129 [12:18:50]ProducePacketName [12:18:50]name=ofd_packets/00192129 [12:18:50]NVStorageDeleteData [12:18:50]Write to MH i2c: 01 00 00 FC 6D 69 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 07 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 07 00 FC 6D 00 00 00 00 00 CC 0C 48 [12:18:50]RasterBufferAndPrint [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]written 0, free lines is 3285 [12:18:50]MH_Cut [12:18:50]Write to MH i2c: D1 01 00 03 6E 01 43 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 01 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 01 00 03 6E 00 42 [12:18:50]Write to MH i2c: 01 00 00 04 6E 72 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:51]OFD Sender: No OFD packet to send [12:18:51]*** Cut start [12:18:51]*** Partial cut [12:18:51]*** CUTSNS_PIN = 1 [12:18:51]*** CUTSNS_PIN = 0 [12:18:51]*** Brake cut motor [12:18:52]Read from MH i2c: 01 [12:18:52]MH_I2C_Read... [12:18:52]*** Stop cut motor [12:18:52]*** Cut end [12:18:52]Read from MH i2c: 01 07 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 07 00 04 6E 00 00 00 00 00 FF 0F 87 [12:18:52]process_action close_receipt done [12:18:52]requested_data is exist [12:18:52]produce_requested_data [12:18:52]requested_item fm.sn is exist - process it [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 11 00 00 [12:18:52]Write to MH i2c: E2 08 00 05 6E 80 11 00 00 00 00 00 00 ED [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 17 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 17 00 05 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [12:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:18:52]wFMCommunicate OK [12:18:52]requested_item fd.num is exist - process it [12:18:52]SAM_PROTO_GetFieldsCounters [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 13 00 00 [12:18:52]Write to MH i2c: E2 08 00 06 6E 80 13 00 00 00 00 00 00 F0 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 62 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 62 00 06 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [12:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_GetFieldsCounters done [12:18:52]requested_item shift.num is exist - process it [12:18:52]requested_item shift.opened is exist - process it [12:18:52]req_shift_opened [12:18:52]FM_GetShiftState [12:18:52]SAM_PROTO_GetShiftState [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 13 01 00 [12:18:52]Write to MH i2c: E2 08 00 07 6E 80 13 01 00 00 00 00 00 F2 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0E 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0E 00 07 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 33 [12:18:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_GetShiftState done [12:18:52]FM_GetShiftState done [12:18:52]req_shift_opened done [12:18:52]requested_item shift.open_date is exist - process it [12:18:52]req_shift_open_date [12:18:52]req_shift_open_date done [12:18:52]produce_requested_data done [12:18:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192129,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:18:52]process_action_free close_receipt [12:18:52]json_value_free [12:18:52]json_value_free done [12:18:52]process_json_proto returns [12:18:52]Send response to host [12:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192129,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:18:52]free response buf [12:18:52]execute_script done [12:18:52]execute_script returns [12:18:52]free content buf [12:18:52]Sock 5.Close socket [12:18:52]Sock 5.Thread stoped [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:35]accept exits with 6 [12:20:35]New connection [12:20:35]New thread 3066817892 created [12:20:35]Thread 3066961252 joined [12:20:35]Waiting for new connection... [12:20:35] Sock 6.Parse request [12:20:35]Sock 6.Check first char [12:20:35]Sock 6.First char is OK [12:20:35]request: POST /json_proto HTTP/1.0 [12:20:35]Method: POST [12:20:35]URL: /json_proto [12:20:35]Method is POST - this is cgi request [12:20:35]url: /json_proto [12:20:35]query_string will be loaded in cgi processing [12:20:35]execute_cgi json_proto POST (null) [12:20:35]execute_cgi path=json_proto method=POST [12:20:35]POST find Content-Length [12:20:35]Host: 172.17.63.131:8080 [12:20:35]Content-Length: 673 [12:20:35]Content-Type: application/json [12:20:35] [12:20:35]POST finish read [12:20:35]Found Content-Length = 673 [12:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31440", "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" ] } } [12:20:35]execute_script... [12:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31440", "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" ] } } [12:20:35]POST & json_proto [12:20:35]process_json_proto [12:20:35]json parsed OK: [12:20:35]protocol is kg_v1.0 [12:20:35]action value=close_receipt [12:20:35]process_action close_receipt [12:20:35]cmd_close_receipt [12:20:35]MH_GetDate [12:20:35]Write to MH i2c: F0 00 00 08 6E 65 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 09 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 09 00 08 6E 00 27 30 1E 67 22 05 6E 64 43 [12:20:35]GetLastDocTimeStamp 1730031548 [12:20:35]current date 1730031655 [12:20:35]FM_GetShiftState [12:20:35]SAM_PROTO_GetShiftState [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 13 01 00 [12:20:35]Write to MH i2c: E2 08 00 09 6E 80 13 01 00 00 00 00 00 F4 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 09 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 35 [12:20:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_GetShiftState done [12:20:35]FM_GetShiftState done [12:20:35]opened in 1729989159 [12:20:35]opened+sec_in_day 1730075559 [12:20:35]quantity*price = 50063 [12:20:35]sum+1 = 50064 [12:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 162 27.10.2024 12:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192130 ФПД: 190387767080180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192130&fm=190387767080180&tin=02508201610067®Number=0000000000091776&sum=50000 [12:20:36]StoreToDocumentArchive [12:20:36]shift 542 fd 192130 [12:20:36]save to /storage/0542/doc_00192130 [12:20:36]save last doc name /storage/0542/doc_00192130 to /storage/kkm_last_doc_name [12:20:36]save OK [12:20:36]Clear old archive folders... [12:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:36]tlvbuf is 016146B0 [12:20:36]SAM_PROTO_ClearQueue [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 09 00 00 [12:20:36]Write to MH i2c: E2 08 00 16 6E 80 09 00 00 00 00 00 00 F6 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 16 6E 00 90 00 F8 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_ClearQueue done [12:20:36]KKMCreateOFDPacket [12:20:36]OFDProtocolAddRootSTLVToBuf [12:20:36]FM_MakeSignedData [12:20:36]FM_MakeSignedData [12:20:36]SAM_PROTO_SignData [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 0D 01 02 [12:20:36]Write to MH i2c: E2 08 00 17 6E 80 0D 01 02 00 00 00 00 FE [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 17 6E 00 90 00 F9 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]wFMCommunicate request_size=255 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A2 00 00 00 F4 03 04 00 27 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EE 02 00 35 04 06 00 AD 28 1B 39 [12:20:36]Write to MH i2c: E2 02 01 18 6E 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 A2 00 00 00 F4 03 04 00 27 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EE 02 00 35 04 06 00 AD 28 1B 39 00 00 49 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 18 6E 00 90 00 FA [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]wFMCommunicate request_size=7 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 02 02 02 F4 F4 [12:20:37]Write to MH i2c: E2 0A 00 19 6E 80 0D 02 02 02 00 F4 F4 00 00 ED [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 19 6E 00 90 00 FB [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 03 02 [12:20:37]Write to MH i2c: E2 08 00 1A 6E 80 0D 03 02 00 00 00 00 03 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 0B 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 0B 00 1A 6E 00 0C 46 05 02 BE 08 98 9F 90 00 5A [12:20:37]RAPDU: 0C 46 05 02 BE 08 98 9F 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_SignData done [12:20:37]FM_MakeSignedData done [12:20:37]CreateOFDProtocolMessage [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 11 00 00 [12:20:37]Write to MH i2c: E2 08 00 1B 6E 80 11 00 00 00 00 00 00 03 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 17 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 17 00 1B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [12:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:37]wFMCommunicate OK [12:20:37]CreateOFDProtocolMessage done [12:20:37]OFDSenderStorePacket 192130 [12:20:37]StoreOFDPacket docnum=192130 [12:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CB 1B 04 01 6D 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 27 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EE 02 00 35 04 06 00 AD 28 1B 39 F4 F4 0C 46 05 02 BE 08 98 9F [12:20:37]CheckFolder [12:20:37]dirname=/storage/ofd_packets [12:20:37]CheckFolder done [12:20:37]ProducePacketName [12:20:37]name=ofd_packets/00192130 [12:20:37]NVStorageSaveData ofd_packets/00192130 [12:20:37]File name is /storage/ofd_packets/00192130 [12:20:37]Write 298 bytes [12:20:37]NVStorageSaveData done [12:20:37]OFDSenderStorePacket done [12:20:37]KKMCreateOFDPacket done [12:20:37]NVStorageSaveData kkm_last_timestamp [12:20:37]File name is /storage/kkm_last_timestamp [12:20:37]Write 4 bytes [12:20:37]NVStorageSaveData done [12:20:37]ExternCall_PrintAddStr [12:20:37]wPrintStart [12:20:37]Write to MH i2c: 01 00 00 1C 6E 8A [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 1C 6E 00 00 00 00 00 FF 0F 9F [12:20:37]RasterBufferAndPrint [12:20:37]line Счет N : (1)31440 [12:20:37]line ИНН: 02508201610067 [12:20:37]line Контрольно-Кассовый Чек [12:20:37]line ПРОДАЖА [12:20:37]line ТРК (МРК, ГНК) : 11 [12:20:37]line Товар: 2710194210 [12:20:37]line ДТ-К-5 [12:20:37]line 6.570 * 76.20 [12:20:37]line = 500.63 [12:20:37]line НДС 12% НСП 1% [12:20:37]line > о реализуемом товаре [12:20:37]line ОКРУГЛЕНИЕ: -0.63 [12:20:37]line ИТОГО: 500.00 [12:20:37]line Внесено: 500.00 [12:20:37]line СДАЧА: 0.00 [12:20:37]line НСП 1% : 4.43 [12:20:37]line НДС 12% : 53.16 [12:20:37]line Наличными: 500.00 [12:20:37]line Безнал.: 0.00 [12:20:37]line Место: АЗС № 170 "Партнер Нефть" [12:20:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:20:37]line СНО: Общий режим [12:20:37]line Чек 162 27.10.2024 12:20 [12:20:37]line Смена: 542 ФФД: 1.0 [12:20:37]line ЗНМ: 0300000110 [12:20:37]line РНМ: 0000000000091776 [12:20:37]line Версия ККМ: 001 [12:20:37]line ФМ: 0000000000871754 [12:20:37]line ФД: 192130 [12:20:37]line ФПД: 190387767080180 [12:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192130&fm=190387767080180&tin=02508201610067®Number=0000000000091776&sum=50000 [12:20:37]OFD Sender: Processing packet 192130 [packets to send 75, broken 74] [12:20:37]ProducePacketName [12:20:37]name=ofd_packets/00192130 [12:20:37]OFD Sender: To server: pG, [12:20:37]CommunicateWithHost lk.salyk.kg:30040 [12:20:37]ConnectInit lk.salyk.kg [12:20:37]written 0, free lines is 4095 [12:20:37]Connected sock=9 [12:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CB 1B 04 01 6D 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 27 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EE 02 00 35 04 06 00 AD 28 1B 39 F4 F4 0C 46 05 02 BE 08 98 9F [12: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 37 35 34 4F 00 00 00 D6 24 47 00 C0 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EE 02 00 F4 03 04 00 EF D4 1D 67 B6 04 01 00 00 6A 02 2D A2 AD 63 FD 39 [12:20:38]CommunicateWithHost err = 0 [12:20:38]CheckOFDResponse [12:20:38]1017 (14) - 77093643461234 [12:20:38]1041 (16) - 0000000000871754 [12:20:38]1040 (4) - 192130 [12:20:38]1012 (4) - 27.10.2024 05:51 [12:20:38]1206 (1) - 0 [12:20:38]OFD Sender: Remove packet 192130 [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00192130 [12:20:38]NVStorageDeleteData [12:20:38]Write to MH i2c: 01 00 00 47 6E B5 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 47 6E 00 00 00 00 00 B4 0C 7C [12:20:38]RasterBufferAndPrint [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]written 0, free lines is 3259 [12:20:38]MH_Cut [12:20:38]Write to MH i2c: D1 01 00 4E 6E 01 8E [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 01 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 01 00 4E 6E 00 8D [12:20:38]Write to MH i2c: 01 00 00 4F 6E BD [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]OFD Sender: No OFD packet to send [12:20:38]*** Cut start [12:20:38]*** Partial cut [12:20:38]*** CUTSNS_PIN = 1 [12:20:39]*** CUTSNS_PIN = 0 [12:20:39]*** Brake cut motor [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]*** Stop cut motor [12:20:39]*** Cut end [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 4F 6E 00 00 00 00 00 FF 0F D2 [12:20:39]process_action close_receipt done [12:20:39]requested_data is exist [12:20:39]produce_requested_data [12:20:39]requested_item fm.sn is exist - process it [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 11 00 00 [12:20:39]Write to MH i2c: E2 08 00 50 6E 80 11 00 00 00 00 00 00 38 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 50 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [12:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:39]wFMCommunicate OK [12:20:39]requested_item fd.num is exist - process it [12:20:39]SAM_PROTO_GetFieldsCounters [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 00 00 [12:20:39]Write to MH i2c: E2 08 00 51 6E 80 13 00 00 00 00 00 00 3B [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 62 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 62 00 51 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetFieldsCounters done [12:20:39]requested_item shift.num is exist - process it [12:20:39]requested_item shift.opened is exist - process it [12:20:39]req_shift_opened [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 52 6E 80 13 01 00 00 00 00 00 3D [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 52 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7E [12:20:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]req_shift_opened done [12:20:39]requested_item shift.open_date is exist - process it [12:20:39]req_shift_open_date [12:20:39]req_shift_open_date done [12:20:39]produce_requested_data done [12:20:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192130,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:20:39]process_action_free close_receipt [12:20:39]json_value_free [12:20:39]json_value_free done [12:20:39]process_json_proto returns [12:20:39]Send response to host [12:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192130,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:20:39]free response buf [12:20:39]execute_script done [12:20:39]execute_script returns [12:20:39]free content buf [12:20:39]Sock 6.Close socket [12:20:39]Sock 6.Thread stoped [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]accept exits with 5 [12:21:23]New connection [12:21:23]New thread 3066961252 created [12:21:23]Thread 3066817892 joined [12:21:23]Waiting for new connection... [12:21:23] Sock 5.Parse request [12:21:23]Sock 5.Check first char [12:21:23]Sock 5.First char is OK [12:21:23]request: POST /json_proto HTTP/1.0 [12:21:23]Method: POST [12:21:23]URL: /json_proto [12:21:23]Method is POST - this is cgi request [12:21:23]url: /json_proto [12:21:23]query_string will be loaded in cgi processing [12:21:23]execute_cgi json_proto POST (null) [12:21:23]execute_cgi path=json_proto method=POST [12:21:23]POST find Content-Length [12:21:23]Host: 172.17.63.131:8080 [12:21:23]Content-Length: 676 [12:21:23]Content-Type: application/json [12:21:23] [12:21:23]POST finish read [12:21:23]Found Content-Length = 676 [12:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:23]execute_script... [12: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 : (1)31442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:23]POST & json_proto [12:21:23]process_json_proto [12:21:23]json parsed OK: [12:21:23]protocol is kg_v1.0 [12:21:23]action value=close_receipt [12:21:23]process_action close_receipt [12:21:23]cmd_close_receipt [12:21:23]MH_GetDate [12:21:23]Write to MH i2c: F0 00 00 53 6E B0 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 09 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 09 00 53 6E 00 57 30 1E 67 22 05 6E 64 BE [12:21:23]GetLastDocTimeStamp 1730031655 [12:21:23]current date 1730031703 [12:21:23]FM_GetShiftState [12:21:23]SAM_PROTO_GetShiftState [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 13 01 00 [12:21:23]Write to MH i2c: E2 08 00 54 6E 80 13 01 00 00 00 00 00 3F [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 54 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 80 [12:21:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_GetShiftState done [12:21:23]FM_GetShiftState done [12:21:23]opened in 1729989159 [12:21:23]opened+sec_in_day 1730075559 [12:21:23]quantity*price = 30038 [12:21:23]sum+1 = 30039 [12:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 163 27.10.2024 12:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192131 ФПД: 103546285628725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192131&fm=103546285628725&tin=02508201610067®Number=0000000000091776&sum=30000 [12:21:24]StoreToDocumentArchive [12:21:24]shift 542 fd 192131 [12:21:24]save to /storage/0542/doc_00192131 [12:21:24]save last doc name /storage/0542/doc_00192131 to /storage/kkm_last_doc_name [12:21:24]save OK [12:21:24]Clear old archive folders... [12:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:24]tlvbuf is 0172E5E0 [12:21:24]SAM_PROTO_ClearQueue [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 09 00 00 [12:21:24]Write to MH i2c: E2 08 00 61 6E 80 09 00 00 00 00 00 00 41 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 61 6E 00 90 00 43 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]SAM_PROTO_ClearQueue done [12:21:24]KKMCreateOFDPacket [12:21:24]OFDProtocolAddRootSTLVToBuf [12:21:24]FM_MakeSignedData [12:21:24]FM_MakeSignedData [12:21:24]SAM_PROTO_SignData [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 01 02 [12:21:24]Write to MH i2c: E2 08 00 62 6E 80 0D 01 02 00 00 00 00 49 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 62 6E 00 90 00 44 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=255 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EE 02 00 35 04 06 00 5E [12:21:24]Write to MH i2c: E2 02 01 63 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EE 02 00 35 04 06 00 5E 00 00 71 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 63 6E 00 90 00 45 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=10 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 02 02 05 2C BF 92 9D 35 [12:21:24]Write to MH i2c: E2 0D 00 64 6E 80 0D 02 02 05 00 2C BF 92 9D 35 00 00 A5 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 64 6E 00 90 00 46 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 03 02 [12:21:24]Write to MH i2c: E2 08 00 65 6E 80 0D 03 02 00 00 00 00 4E [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 65 6E 00 FF AD B5 A6 C8 74 0E 35 90 00 D5 [12:21:24]RAPDU: FF AD B5 A6 C8 74 0E 35 90 00 [12:21:24]wFMCommunicate OK [12:21:24]SAM_PROTO_SignData done [12:21:24]FM_MakeSignedData done [12:21:24]CreateOFDProtocolMessage [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 11 00 00 [12:21:24]Write to MH i2c: E2 08 00 66 6E 80 11 00 00 00 00 00 00 4E [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 66 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [12:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:21:24]wFMCommunicate OK [12:21:24]CreateOFDProtocolMessage done [12:21:24]OFDSenderStorePacket 192131 [12:21:24]StoreOFDPacket docnum=192131 [12:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 55 07 01 35 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EE 02 00 35 04 06 00 5E 2C BF 92 9D 35 FF AD B5 A6 C8 74 0E 35 [12:21:24]CheckFolder [12:21:24]dirname=/storage/ofd_packets [12:21:24]CheckFolder done [12:21:24]ProducePacketName [12:21:24]name=ofd_packets/00192131 [12:21:24]NVStorageSaveData ofd_packets/00192131 [12:21:24]File name is /storage/ofd_packets/00192131 [12:21:24]Write 301 bytes [12:21:24]NVStorageSaveData done [12:21:24]OFDSenderStorePacket done [12:21:24]KKMCreateOFDPacket done [12:21:24]NVStorageSaveData kkm_last_timestamp [12:21:24]File name is /storage/kkm_last_timestamp [12:21:24]Write 4 bytes [12:21:24]NVStorageSaveData done [12:21:24]ExternCall_PrintAddStr [12:21:24]wPrintStart [12:21:24]Write to MH i2c: 01 00 00 67 6E D5 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 67 6E 00 00 00 00 00 FF 0F EA [12:21:24]RasterBufferAndPrint [12:21:24]line Счет N : (1)31442 [12:21:24]line ИНН: 02508201610067 [12:21:24]line Контрольно-Кассовый Чек [12:21:24]line ПРОДАЖА [12:21:24]line ТРК (МРК, ГНК) : 21 [12:21:24]line Товар: 2710124130 [12:21:24]line Аи-92-К-5 [12:21:24]line 4.490 * 66.90 [12:21:24]line = 300.38 [12:21:24]line НДС 12% НСП 1% [12:21:24]line > о реализуемом товаре [12:21:24]line ОКРУГЛЕНИЕ: -0.38 [12:21:24]line ИТОГО: 300.00 [12:21:24]line Внесено: 300.00 [12:21:24]line СДАЧА: 0.00 [12:21:24]line НСП 1% : 2.66 [12:21:24]line НДС 12% : 31.90 [12:21:24]line Наличными: 300.00 [12:21:24]line Безнал.: 0.00 [12:21:24]line Место: АЗС № 170 "Партнер Нефть" [12:21:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:21:24]line СНО: Общий режим [12:21:24]line Чек 163 27.10.2024 12:21 [12:21:24]line Смена: 542 ФФД: 1.0 [12:21:24]line ЗНМ: 0300000110 [12:21:24]line РНМ: 0000000000091776 [12:21:24]line Версия ККМ: 001 [12:21:24]line ФМ: 0000000000871754 [12:21:24]line ФД: 192131 [12:21:24]line ФПД: 103546285628725 [12:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192131&fm=103546285628725&tin=02508201610067®Number=0000000000091776&sum=30000 [12:21:25]OFD Sender: Processing packet 192131 [packets to send 75, broken 74] [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00192131 [12:21:25]OFD Sender: To server: pG, [12:21:25]CommunicateWithHost lk.salyk.kg:30040 [12:21:25]ConnectInit lk.salyk.kg [12:21:25]written 0, free lines is 4095 [12:21:25]Connected sock=8 [12:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 55 07 01 35 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EE 02 00 35 04 06 00 5E 2C BF 92 9D 35 FF AD B5 A6 C8 74 0E 35 [12:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F8 14 47 00 36 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EE 02 00 F4 03 04 00 1E D5 1D 67 B6 04 01 00 00 8E AA A5 3A F3 EB AB 67 [12:21:25]CommunicateWithHost err = 0 [12:21:25]CheckOFDResponse [12:21:25]1017 (14) - 77093643461234 [12:21:25]1041 (16) - 0000000000871754 [12:21:25]1040 (4) - 192131 [12:21:25]1012 (4) - 27.10.2024 05:52 [12:21:25]1206 (1) - 0 [12:21:25]OFD Sender: Remove packet 192131 [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00192131 [12:21:25]NVStorageDeleteData [12:21:25]Write to MH i2c: 01 00 00 92 6E 00 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 92 6E 00 00 00 00 00 BE 0C D1 [12:21:25]RasterBufferAndPrint [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]written 0, free lines is 3268 [12:21:25]MH_Cut [12:21:25]Write to MH i2c: D1 01 00 99 6E 01 D9 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 99 6E 00 D8 [12:21:25]Write to MH i2c: 01 00 00 9A 6E 08 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]OFD Sender: No OFD packet to send [12:21:26]*** Cut start [12:21:26]*** Partial cut [12:21:26]*** CUTSNS_PIN = 1 [12:21:26]*** CUTSNS_PIN = 0 [12:21:26]*** Brake cut motor [12:21:27]Read from MH i2c: 01 [12:21:27]MH_I2C_Read... [12:21:27]*** Stop cut motor [12:21:27]*** Cut end [12:21:27]Read from MH i2c: 01 07 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: 01 07 00 9A 6E 00 00 00 00 00 FF 0F 1D [12:21:27]process_action close_receipt done [12:21:27]requested_data is exist [12:21:27]produce_requested_data [12:21:27]requested_item fm.sn is exist - process it [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 11 00 00 [12:21:27]Write to MH i2c: E2 08 00 9B 6E 80 11 00 00 00 00 00 00 83 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 17 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 17 00 9B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [12:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:21:27]wFMCommunicate OK [12:21:27]requested_item fd.num is exist - process it [12:21:27]SAM_PROTO_GetFieldsCounters [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 00 00 [12:21:27]Write to MH i2c: E2 08 00 9C 6E 80 13 00 00 00 00 00 00 86 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 9C 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetFieldsCounters done [12:21:27]requested_item shift.num is exist - process it [12:21:27]requested_item shift.opened is exist - process it [12:21:27]req_shift_opened [12:21:27]FM_GetShiftState [12:21:27]SAM_PROTO_GetShiftState [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 01 00 [12:21:27]Write to MH i2c: E2 08 00 9D 6E 80 13 01 00 00 00 00 00 88 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 9D 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C9 [12:21:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetShiftState done [12:21:27]FM_GetShiftState done [12:21:27]req_shift_opened done [12:21:27]requested_item shift.open_date is exist - process it [12:21:27]req_shift_open_date [12:21:27]req_shift_open_date done [12:21:27]produce_requested_data done [12:21:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192131,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:21:27]process_action_free close_receipt [12:21:27]json_value_free [12:21:27]json_value_free done [12:21:27]process_json_proto returns [12:21:27]Send response to host [12:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192131,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:21:27]free response buf [12:21:27]execute_script done [12:21:27]execute_script returns [12:21:27]free content buf [12:21:27]Sock 5.Close socket [12:21:27]Sock 5.Thread stoped [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:47]accept exits with 6 [12:21:47]New connection [12:21:47]New thread 3066817892 created [12:21:47]Thread 3066961252 joined [12:21:47]Waiting for new connection... [12:21:47] Sock 6.Parse request [12:21:47]Sock 6.Check first char [12:21:47]Sock 6.First char is OK [12:21:47]request: POST /json_proto HTTP/1.0 [12:21:47]Method: POST [12:21:47]URL: /json_proto [12:21:47]Method is POST - this is cgi request [12:21:47]url: /json_proto [12:21:47]query_string will be loaded in cgi processing [12:21:47]execute_cgi json_proto POST (null) [12:21:47]execute_cgi path=json_proto method=POST [12:21:47]POST find Content-Length [12:21:47]Host: 172.17.63.131:8080 [12:21:47]Content-Length: 673 [12:21:47]Content-Type: application/json [12:21:47] [12:21:47]POST finish read [12:21:47]Found Content-Length = 673 [12:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31443", "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" ] } } [12:21:47]execute_script... [12:21: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)31443", "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" ] } } [12:21:47]POST & json_proto [12:21:47]process_json_proto [12:21:47]json parsed OK: [12:21:47]protocol is kg_v1.0 [12:21:47]action value=close_receipt [12:21:47]process_action close_receipt [12:21:47]cmd_close_receipt [12:21:47]MH_GetDate [12:21:47]Write to MH i2c: F0 00 00 9E 6E FB [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: F0 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: F0 09 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: F0 09 00 9E 6E 00 6F 30 1E 67 22 05 6E 64 21 [12:21:47]GetLastDocTimeStamp 1730031703 [12:21:47]current date 1730031727 [12:21:47]FM_GetShiftState [12:21:47]SAM_PROTO_GetShiftState [12:21:47]wFMCommunicate request_size=4 [12:21:47]MH_SAM_APDU [12:21:47]CAPDU: 80 13 01 00 [12:21:47]Write to MH i2c: E2 08 00 9F 6E 80 13 01 00 00 00 00 00 8A [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:47]Read from MH i2c: E2 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 0E 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 0E 00 9F 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CB [12:21:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:21:47]wFMCommunicate OK [12:21:47]SAM_PROTO_GetShiftState done [12:21:47]FM_GetShiftState done [12:21:47]opened in 1729989159 [12:21:47]opened+sec_in_day 1730075559 [12:21:47]quantity*price = 50063 [12:21:47]sum+1 = 50064 [12:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 164 27.10.2024 12:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192132 ФПД: 87207688205606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192132&fm=87207688205606&tin=02508201610067®Number=0000000000091776&sum=50000 [12:21:48]StoreToDocumentArchive [12:21:48]shift 542 fd 192132 [12:21:48]save to /storage/0542/doc_00192132 [12:21:48]save last doc name /storage/0542/doc_00192132 to /storage/kkm_last_doc_name [12:21:48]save OK [12:21:48]Clear old archive folders... [12:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:48]tlvbuf is 018CAD80 [12:21:48]SAM_PROTO_ClearQueue [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 09 00 00 [12:21:48]Write to MH i2c: E2 08 00 AC 6E 80 09 00 00 00 00 00 00 8C [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 03 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 03 00 AC 6E 00 90 00 8E [12:21:48]RAPDU: 90 00 [12:21:48]wFMCommunicate OK [12:21:48]SAM_PROTO_ClearQueue done [12:21:48]KKMCreateOFDPacket [12:21:48]OFDProtocolAddRootSTLVToBuf [12:21:48]FM_MakeSignedData [12:21:48]FM_MakeSignedData [12:21:48]SAM_PROTO_SignData [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 0D 01 02 [12:21:48]Write to MH i2c: E2 08 00 AD 6E 80 0D 01 02 00 00 00 00 94 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 03 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 03 00 AD 6E 00 90 00 8F [12:21:48]RAPDU: 90 00 [12:21:48]wFMCommunicate OK [12:21:48]wFMCommunicate request_size=255 [12:21:48]MH_SAM_APDU [12:21:48]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 A4 00 00 00 F4 03 04 00 6F 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EE 02 00 35 04 06 00 4F 50 9F 46 [12:21:48]Write to MH i2c: E2 02 01 AE 6E 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 A4 00 00 00 F4 03 04 00 6F 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EE 02 00 35 04 06 00 4F 50 9F 46 00 00 86 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 03 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 03 00 AE 6E 00 90 00 90 [12:21:49]RAPDU: 90 00 [12:21:49]wFMCommunicate OK [12:21:49]wFMCommunicate request_size=7 [12:21:49]MH_SAM_APDU [12:21:49]CAPDU: 80 0D 02 02 02 F5 26 [12:21:49]Write to MH i2c: E2 0A 00 AF 6E 80 0D 02 02 02 00 F5 26 00 00 B6 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 03 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 03 00 AF 6E 00 90 00 91 [12:21:49]RAPDU: 90 00 [12:21:49]wFMCommunicate OK [12:21:49]wFMCommunicate request_size=4 [12:21:49]MH_SAM_APDU [12:21:49]CAPDU: 80 0D 03 02 [12:21:49]Write to MH i2c: E2 08 00 B0 6E 80 0D 03 02 00 00 00 00 99 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0B 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0B 00 B0 6E 00 93 4E E5 3F 2F 87 CE C6 90 00 E9 [12:21:49]RAPDU: 93 4E E5 3F 2F 87 CE C6 90 00 [12:21:49]wFMCommunicate OK [12:21:49]SAM_PROTO_SignData done [12:21:49]FM_MakeSignedData done [12:21:49]CreateOFDProtocolMessage [12:21:49]wFMCommunicate request_size=4 [12:21:49]MH_SAM_APDU [12:21:49]CAPDU: 80 11 00 00 [12:21:49]Write to MH i2c: E2 08 00 B1 6E 80 11 00 00 00 00 00 00 99 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 17 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 17 00 B1 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [12:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:21:49]wFMCommunicate OK [12:21:49]CreateOFDProtocolMessage done [12:21:49]OFDSenderStorePacket 192132 [12:21:49]StoreOFDPacket docnum=192132 [12:21:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 56 04 01 FD 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 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 A4 00 00 00 F4 03 04 00 6F 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EE 02 00 35 04 06 00 4F 50 9F 46 F5 26 93 4E E5 3F 2F 87 CE C6 [12:21:49]CheckFolder [12:21:49]dirname=/storage/ofd_packets [12:21:49]CheckFolder done [12:21:49]ProducePacketName [12:21:49]name=ofd_packets/00192132 [12:21:49]NVStorageSaveData ofd_packets/00192132 [12:21:49]File name is /storage/ofd_packets/00192132 [12:21:49]Write 298 bytes [12:21:49]NVStorageSaveData done [12:21:49]OFDSenderStorePacket done [12:21:49]KKMCreateOFDPacket done [12:21:49]NVStorageSaveData kkm_last_timestamp [12:21:49]File name is /storage/kkm_last_timestamp [12:21:49]Write 4 bytes [12:21:49]NVStorageSaveData done [12:21:49]ExternCall_PrintAddStr [12:21:49]wPrintStart [12:21:49]Write to MH i2c: 01 00 00 B2 6E 20 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 07 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 07 00 B2 6E 00 00 00 00 00 FF 0F 35 [12:21:49]RasterBufferAndPrint [12:21:49]line Счет N : (1)31443 [12:21:49]line ИНН: 02508201610067 [12:21:49]line Контрольно-Кассовый Чек [12:21:49]line ПРОДАЖА [12:21:49]line ТРК (МРК, ГНК) : 11 [12:21:49]line Товар: 2710194210 [12:21:49]line ДТ-К-5 [12:21:49]line 6.570 * 76.20 [12:21:49]line = 500.63 [12:21:49]line НДС 12% НСП 1% [12:21:49]line > о реализуемом товаре [12:21:49]line ОКРУГЛЕНИЕ: -0.63 [12:21:49]line ИТОГО: 500.00 [12:21:49]line Внесено: 500.00 [12:21:49]line СДАЧА: 0.00 [12:21:49]line НСП 1% : 4.43 [12:21:49]line НДС 12% : 53.16 [12:21:49]line Наличными: 500.00 [12:21:49]line Безнал.: 0.00 [12:21:49]line Место: АЗС № 170 "Партнер Нефть" [12:21:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:21:49]line СНО: Общий режим [12:21:49]line Чек 164 27.10.2024 12:22 [12:21:49]line Смена: 542 ФФД: 1.0 [12:21:49]line ЗНМ: 0300000110 [12:21:49]line РНМ: 0000000000091776 [12:21:49]line Версия ККМ: 001 [12:21:49]line ФМ: 0000000000871754 [12:21:49]line ФД: 192132 [12:21:49]line ФПД: 87207688205606 [12:21:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192132&fm=87207688205606&tin=02508201610067®Number=0000000000091776&sum=50000 [12:21:49]OFD Sender: Processing packet 192132 [packets to send 75, broken 74] [12:21:49]ProducePacketName [12:21:49]name=ofd_packets/00192132 [12:21:49]OFD Sender: To server: pG, [12:21:49]CommunicateWithHost lk.salyk.kg:30040 [12:21:49]ConnectInit lk.salyk.kg [12:21:49]written 0, free lines is 4095 [12:21:49]Connected sock=8 [12:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 56 04 01 FD 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 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 A4 00 00 00 F4 03 04 00 6F 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EE 02 00 35 04 06 00 4F 50 9F 46 F5 26 93 4E E5 3F 2F 87 CE C6 [12:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8E BC 47 00 4E 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EE 02 00 F4 03 04 00 37 D5 1D 67 B6 04 01 00 00 9A 3C 26 23 C4 04 90 34 [12:21:49]CommunicateWithHost err = 0 [12:21:49]CheckOFDResponse [12:21:49]1017 (14) - 77093643461234 [12:21:49]1041 (16) - 0000000000871754 [12:21:49]1040 (4) - 192132 [12:21:49]1012 (4) - 27.10.2024 05:52 [12:21:49]1206 (1) - 0 [12:21:49]OFD Sender: Remove packet 192132 [12:21:49]ProducePacketName [12:21:49]name=ofd_packets/00192132 [12:21:49]NVStorageDeleteData [12:21:49]Write to MH i2c: 01 00 00 DD 6E 4B [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 07 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: 01 07 00 DD 6E 00 00 00 00 00 B8 0C 16 [12:21:49]RasterBufferAndPrint [12:21:49]line [12:21:49]line [12:21:49]line [12:21:49]line [12:21:49]line [12:21:49]written 0, free lines is 3264 [12:21:49]MH_Cut [12:21:49]Write to MH i2c: D1 01 00 E4 6E 01 24 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: D1 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: D1 01 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: D1 01 00 E4 6E 00 23 [12:21:49]Write to MH i2c: 01 00 00 E5 6E 53 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:50]OFD Sender: No OFD packet to send [12:21:50]*** Cut start [12:21:50]*** Partial cut [12:21:50]*** CUTSNS_PIN = 1 [12:21:50]*** CUTSNS_PIN = 0 [12:21:51]*** Brake cut motor [12:21:51]Read from MH i2c: 01 [12:21:51]MH_I2C_Read... [12:21:51]*** Stop cut motor [12:21:51]*** Cut end [12:21:51]Read from MH i2c: 01 07 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 E5 6E 00 00 00 00 00 FF 0F 68 [12:21:51]process_action close_receipt done [12:21:51]requested_data is exist [12:21:51]produce_requested_data [12:21:51]requested_item fm.sn is exist - process it [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 11 00 00 [12:21:51]Write to MH i2c: E2 08 00 E6 6E 80 11 00 00 00 00 00 00 CE [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 E6 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [12:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:21:51]wFMCommunicate OK [12:21:51]requested_item fd.num is exist - process it [12:21:51]SAM_PROTO_GetFieldsCounters [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 13 00 00 [12:21:51]Write to MH i2c: E2 08 00 E7 6E 80 13 00 00 00 00 00 00 D1 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 62 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 62 00 E7 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [12:21:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:51]wFMCommunicate OK [12:21:51]SAM_PROTO_GetFieldsCounters done [12:21:51]requested_item shift.num is exist - process it [12:21:51]requested_item shift.opened is exist - process it [12:21:51]req_shift_opened [12:21:51]FM_GetShiftState [12:21:51]SAM_PROTO_GetShiftState [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 13 01 00 [12:21:51]Write to MH i2c: E2 08 00 E8 6E 80 13 01 00 00 00 00 00 D3 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0E 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0E 00 E8 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 14 [12:21:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:21:51]wFMCommunicate OK [12:21:51]SAM_PROTO_GetShiftState done [12:21:51]FM_GetShiftState done [12:21:51]req_shift_opened done [12:21:51]requested_item shift.open_date is exist - process it [12:21:51]req_shift_open_date [12:21:51]req_shift_open_date done [12:21:51]produce_requested_data done [12:21:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192132,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:21:51]process_action_free close_receipt [12:21:51]json_value_free [12:21:51]json_value_free done [12:21:51]process_json_proto returns [12:21:51]Send response to host [12:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192132,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:21:51]free response buf [12:21:51]execute_script done [12:21:51]execute_script returns [12:21:51]free content buf [12:21:51]Sock 6.Close socket [12:21:51]Sock 6.Thread stoped [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]accept exits with 5 [12:23:05]New connection [12:23:05]New thread 3066961252 created [12:23:05]Thread 3066817892 joined [12:23:05]Waiting for new connection... [12:23:05] Sock 5.Parse request [12:23:05]Sock 5.Check first char [12:23:05]Sock 5.First char is OK [12:23:05]request: POST /json_proto HTTP/1.0 [12:23:05]Method: POST [12:23:05]URL: /json_proto [12:23:05]Method is POST - this is cgi request [12:23:05]url: /json_proto [12:23:05]query_string will be loaded in cgi processing [12:23:05]execute_cgi json_proto POST (null) [12:23:05]execute_cgi path=json_proto method=POST [12:23:05]POST find Content-Length [12:23:05]Host: 172.17.63.131:8080 [12:23:05]Content-Length: 676 [12:23:05]Content-Type: application/json [12:23:05] [12:23:05]POST finish read [12:23:05]Found Content-Length = 676 [12:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:05]execute_script... [12:23: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)31445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:05]POST & json_proto [12:23:05]process_json_proto [12:23:05]json parsed OK: [12:23:05]protocol is kg_v1.0 [12:23:05]action value=close_receipt [12:23:05]process_action close_receipt [12:23:05]cmd_close_receipt [12:23:05]MH_GetDate [12:23:05]Write to MH i2c: F0 00 00 E9 6E 46 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: F0 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: F0 09 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: F0 09 00 E9 6E 00 BD 30 1E 67 22 05 6E 64 BA [12:23:05]GetLastDocTimeStamp 1730031727 [12:23:05]current date 1730031805 [12:23:05]FM_GetShiftState [12:23:05]SAM_PROTO_GetShiftState [12:23:05]wFMCommunicate request_size=4 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 13 01 00 [12:23:05]Write to MH i2c: E2 08 00 EA 6E 80 13 01 00 00 00 00 00 D5 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0E 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0E 00 EA 6E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 16 [12:23:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:23:05]wFMCommunicate OK [12:23:05]SAM_PROTO_GetShiftState done [12:23:05]FM_GetShiftState done [12:23:05]opened in 1729989159 [12:23:05]opened+sec_in_day 1730075559 [12:23:05]quantity*price = 50041 [12:23:05]sum+1 = 50042 [12:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 165 27.10.2024 12:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192133 ФПД: 187910066351457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192133&fm=187910066351457&tin=02508201610067®Number=0000000000091776&sum=50000 [12:23:06]StoreToDocumentArchive [12:23:06]shift 542 fd 192133 [12:23:06]save to /storage/0542/doc_00192133 [12:23:06]save last doc name /storage/0542/doc_00192133 to /storage/kkm_last_doc_name [12:23:06]save OK [12:23:06]Clear old archive folders... [12:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:06]tlvbuf is 01AA4EE0 [12:23:06]SAM_PROTO_ClearQueue [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 09 00 00 [12:23:06]Write to MH i2c: E2 08 00 F7 6E 80 09 00 00 00 00 00 00 D7 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 F7 6E 00 90 00 D9 [12:23:06]RAPDU: 90 00 [12:23:06]wFMCommunicate OK [12:23:06]SAM_PROTO_ClearQueue done [12:23:06]KKMCreateOFDPacket [12:23:06]OFDProtocolAddRootSTLVToBuf [12:23:06]FM_MakeSignedData [12:23:06]FM_MakeSignedData [12:23:06]SAM_PROTO_SignData [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 0D 01 02 [12:23:06]Write to MH i2c: E2 08 00 F8 6E 80 0D 01 02 00 00 00 00 DF [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 F8 6E 00 90 00 DA [12:23:06]RAPDU: 90 00 [12:23:06]wFMCommunicate OK [12:23:06]wFMCommunicate request_size=255 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EE 02 00 35 04 06 00 AA [12:23:06]Write to MH i2c: E2 02 01 F9 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EE 02 00 35 04 06 00 AA 00 00 C9 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 F9 6E 00 90 00 DB [12:23:06]RAPDU: 90 00 [12:23:06]wFMCommunicate OK [12:23:06]wFMCommunicate request_size=10 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 0D 02 02 05 E7 38 C1 2D 61 [12:23:06]Write to MH i2c: E2 0D 00 FA 6E 80 0D 02 02 05 00 E7 38 C1 2D 61 00 00 5A [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 03 00 FA 6E 00 90 00 DC [12:23:06]RAPDU: 90 00 [12:23:06]wFMCommunicate OK [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 0D 03 02 [12:23:06]Write to MH i2c: E2 08 00 FB 6E 80 0D 03 02 00 00 00 00 E4 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 0B 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 0B 00 FB 6E 00 B4 A4 4F 6A 4E 69 9A 11 90 00 58 [12:23:06]RAPDU: B4 A4 4F 6A 4E 69 9A 11 90 00 [12:23:06]wFMCommunicate OK [12:23:06]SAM_PROTO_SignData done [12:23:06]FM_MakeSignedData done [12:23:06]CreateOFDProtocolMessage [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 11 00 00 [12:23:06]Write to MH i2c: E2 08 00 FC 6E 80 11 00 00 00 00 00 00 E4 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 FC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [12:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:23:06]wFMCommunicate OK [12:23:06]CreateOFDProtocolMessage done [12:23:06]OFDSenderStorePacket 192133 [12:23:06]StoreOFDPacket docnum=192133 [12:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 00 07 01 2F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EE 02 00 35 04 06 00 AA E7 38 C1 2D 61 B4 A4 4F 6A 4E 69 9A 11 [12:23:06]CheckFolder [12:23:06]dirname=/storage/ofd_packets [12:23:06]CheckFolder done [12:23:06]ProducePacketName [12:23:06]name=ofd_packets/00192133 [12:23:06]NVStorageSaveData ofd_packets/00192133 [12:23:06]File name is /storage/ofd_packets/00192133 [12:23:06]Write 301 bytes [12:23:06]NVStorageSaveData done [12:23:06]OFDSenderStorePacket done [12:23:06]KKMCreateOFDPacket done [12:23:06]NVStorageSaveData kkm_last_timestamp [12:23:06]File name is /storage/kkm_last_timestamp [12:23:06]Write 4 bytes [12:23:06]NVStorageSaveData done [12:23:06]ExternCall_PrintAddStr [12:23:06]wPrintStart [12:23:06]Write to MH i2c: 01 00 00 FD 6E 6B [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 FD 6E 00 00 00 00 00 FF 0F 80 [12:23:06]RasterBufferAndPrint [12:23:06]line Счет N : (1)31445 [12:23:06]line ИНН: 02508201610067 [12:23:06]line Контрольно-Кассовый Чек [12:23:06]line ПРОДАЖА [12:23:06]line ТРК (МРК, ГНК) : 12 [12:23:06]line Товар: 2710124130 [12:23:06]line Аи-92-К-5 [12:23:06]line 7.480 * 66.90 [12:23:06]line = 500.41 [12:23:06]line НДС 12% НСП 1% [12:23:06]line > о реализуемом товаре [12:23:06]line ОКРУГЛЕНИЕ: -0.41 [12:23:06]line ИТОГО: 500.00 [12:23:06]line Внесено: 500.00 [12:23:06]line СДАЧА: 0.00 [12:23:06]line НСП 1% : 4.43 [12:23:06]line НДС 12% : 53.14 [12:23:06]line Наличными: 500.00 [12:23:06]line Безнал.: 0.00 [12:23:06]line Место: АЗС № 170 "Партнер Нефть" [12:23:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:23:06]line СНО: Общий режим [12:23:06]line Чек 165 27.10.2024 12:23 [12:23:06]line Смена: 542 ФФД: 1.0 [12:23:06]line ЗНМ: 0300000110 [12:23:06]line РНМ: 0000000000091776 [12:23:06]line Версия ККМ: 001 [12:23:06]line ФМ: 0000000000871754 [12:23:06]line ФД: 192133 [12:23:06]line ФПД: 187910066351457 [12:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122325&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192133&fm=187910066351457&tin=02508201610067®Number=0000000000091776&sum=50000 [12:23:07]OFD Sender: Processing packet 192133 [packets to send 75, broken 74] [12:23:07]ProducePacketName [12:23:07]name=ofd_packets/00192133 [12:23:07]OFD Sender: To server: pG, [12:23:07]CommunicateWithHost lk.salyk.kg:30040 [12:23:07]ConnectInit lk.salyk.kg [12:23:07]written 0, free lines is 4095 [12:23:07]Connected sock=8 [12:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 00 07 01 2F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EE 02 00 35 04 06 00 AA E7 38 C1 2D 61 B4 A4 4F 6A 4E 69 9A 11 [12:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 06 47 00 7D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EE 02 00 F4 03 04 00 84 D5 1D 67 B6 04 01 00 00 99 7B 35 27 6F 00 36 DE [12:23:07]CommunicateWithHost err = 0 [12:23:07]CheckOFDResponse [12:23:07]1017 (14) - 77093643461234 [12:23:07]1041 (16) - 0000000000871754 [12:23:07]1040 (4) - 192133 [12:23:07]1012 (4) - 27.10.2024 05:54 [12:23:07]1206 (1) - 0 [12:23:07]OFD Sender: Remove packet 192133 [12:23:07]ProducePacketName [12:23:07]name=ofd_packets/00192133 [12:23:07]NVStorageDeleteData [12:23:07]Write to MH i2c: 01 00 00 28 6F 97 [12:23:07]Write i2c OK [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: 01 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: 01 07 00 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: 01 07 00 28 6F 00 00 00 00 00 B2 0C 5C [12:23:07]RasterBufferAndPrint [12:23:07]line [12:23:07]line [12:23:07]line [12:23:07]line [12:23:07]line [12:23:07]written 0, free lines is 3257 [12:23:07]MH_Cut [12:23:07]Write to MH i2c: D1 01 00 2F 6F 01 70 [12:23:07]Write i2c OK [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: D1 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: D1 01 00 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: D1 01 00 2F 6F 00 6F [12:23:07]Write to MH i2c: 01 00 00 30 6F 9F [12:23:07]Write i2c OK [12:23:07]MH_I2C_Read... [12:23:08]OFD Sender: No OFD packet to send [12:23:08]*** Cut start [12:23:08]*** Partial cut [12:23:08]*** CUTSNS_PIN = 1 [12:23:08]*** CUTSNS_PIN = 0 [12:23:08]*** Brake cut motor [12:23:09]Read from MH i2c: 01 [12:23:09]MH_I2C_Read... [12:23:09]*** Stop cut motor [12:23:09]Read from MH i2c: 01 07 00 [12:23:09]MH_I2C_Read... [12:23:09]*** Cut end [12:23:09]Read from MH i2c: 01 07 00 30 6F 00 00 00 00 00 FF 0F B4 [12:23:09]process_action close_receipt done [12:23:09]requested_data is exist [12:23:09]produce_requested_data [12:23:09]requested_item fm.sn is exist - process it [12:23:09]wFMCommunicate request_size=4 [12:23:09]MH_SAM_APDU [12:23:09]CAPDU: 80 11 00 00 [12:23:09]Write to MH i2c: E2 08 00 31 6F 80 11 00 00 00 00 00 00 1A [12:23:09]Write i2c OK [12:23:09]MH_I2C_Read... [12:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:09]Read from MH i2c: E2 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 17 00 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 17 00 31 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [12:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:23:09]wFMCommunicate OK [12:23:09]requested_item fd.num is exist - process it [12:23:09]SAM_PROTO_GetFieldsCounters [12:23:09]wFMCommunicate request_size=4 [12:23:09]MH_SAM_APDU [12:23:09]CAPDU: 80 13 00 00 [12:23:09]Write to MH i2c: E2 08 00 32 6F 80 13 00 00 00 00 00 00 1D [12:23:09]Write i2c OK [12:23:09]MH_I2C_Read... [12:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:09]Read from MH i2c: E2 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 62 00 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 62 00 32 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:23:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:09]wFMCommunicate OK [12:23:09]SAM_PROTO_GetFieldsCounters done [12:23:09]requested_item shift.num is exist - process it [12:23:09]requested_item shift.opened is exist - process it [12:23:09]req_shift_opened [12:23:09]FM_GetShiftState [12:23:09]SAM_PROTO_GetShiftState [12:23:09]wFMCommunicate request_size=4 [12:23:09]MH_SAM_APDU [12:23:09]CAPDU: 80 13 01 00 [12:23:09]Write to MH i2c: E2 08 00 33 6F 80 13 01 00 00 00 00 00 1F [12:23:09]Write i2c OK [12:23:09]MH_I2C_Read... [12:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:09]Read from MH i2c: E2 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 0E 00 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 0E 00 33 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 60 [12:23:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:23:09]wFMCommunicate OK [12:23:09]SAM_PROTO_GetShiftState done [12:23:09]FM_GetShiftState done [12:23:09]req_shift_opened done [12:23:09]requested_item shift.open_date is exist - process it [12:23:09]req_shift_open_date [12:23:09]req_shift_open_date done [12:23:09]produce_requested_data done [12:23:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192133,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:23:09]process_action_free close_receipt [12:23:09]json_value_free [12:23:09]json_value_free done [12:23:09]process_json_proto returns [12:23:09]Send response to host [12:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192133,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:23:09]free response buf [12:23:09]execute_script done [12:23:09]execute_script returns [12:23:09]free content buf [12:23:09]Sock 5.Close socket [12:23:09]Sock 5.Thread stoped [12:23:09]accept exits with 6 [12:23:09]New connection [12:23:09]New thread 3066817892 created [12:23:09]Thread 3066961252 joined [12:23:09]Waiting for new connection... [12:23:09] Sock 6.Parse request [12:23:09]Sock 6.Check first char [12:23:09]Sock 6.First char is OK [12:23:09]request: POST /json_proto HTTP/1.0 [12:23:09]Method: POST [12:23:09]URL: /json_proto [12:23:09]Method is POST - this is cgi request [12:23:09]url: /json_proto [12:23:09]query_string will be loaded in cgi processing [12:23:09]execute_cgi json_proto POST (null) [12:23:09]execute_cgi path=json_proto method=POST [12:23:09]POST find Content-Length [12:23:09]Host: 172.17.63.131:8080 [12:23:09]Content-Length: 673 [12:23:09]Content-Type: application/json [12:23:09] [12:23:09]POST finish read [12:23:09]Found Content-Length = 673 [12:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31444", "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" : 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" ] } } [12:23:09]execute_script... [12:23: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)31444", "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" : 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" ] } } [12:23:09]POST & json_proto [12:23:09]process_json_proto [12:23:09]json parsed OK: [12:23:09]protocol is kg_v1.0 [12:23:09]action value=close_receipt [12:23:09]process_action close_receipt [12:23:09]cmd_close_receipt [12:23:09]MH_GetDate [12:23:09]Write to MH i2c: F0 00 00 34 6F 92 [12:23:09]Write i2c OK [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: F0 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: F0 09 00 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: F0 09 00 34 6F 00 C1 30 1E 67 22 05 6E 64 0A [12:23:09]GetLastDocTimeStamp 1730031805 [12:23:09]current date 1730031809 [12:23:09]FM_GetShiftState [12:23:09]SAM_PROTO_GetShiftState [12:23:09]wFMCommunicate request_size=4 [12:23:09]MH_SAM_APDU [12:23:09]CAPDU: 80 13 01 00 [12:23:09]Write to MH i2c: E2 08 00 35 6F 80 13 01 00 00 00 00 00 21 [12:23:09]Write i2c OK [12:23:09]MH_I2C_Read... [12:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:09]Read from MH i2c: E2 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 0E 00 [12:23:09]MH_I2C_Read... [12:23:09]Read from MH i2c: E2 0E 00 35 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 62 [12:23:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:23:09]wFMCommunicate OK [12:23:09]SAM_PROTO_GetShiftState done [12:23:09]FM_GetShiftState done [12:23:09]opened in 1729989159 [12:23:09]opened+sec_in_day 1730075559 [12:23:09]quantity*price = 60045 [12:23:09]sum+1 = 60047 [12:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 166 27.10.2024 12:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192134 ФПД: 173704115042745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122329&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192134&fm=173704115042745&tin=02508201610067®Number=0000000000091776&sum=60000 [12:23:11]StoreToDocumentArchive [12:23:11]shift 542 fd 192134 [12:23:11]save to /storage/0542/doc_00192134 [12:23:11]save last doc name /storage/0542/doc_00192134 to /storage/kkm_last_doc_name [12:23:11]save OK [12:23:11]Clear old archive folders... [12:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:11]tlvbuf is 015E57C0 [12:23:11]SAM_PROTO_ClearQueue [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 09 00 00 [12:23:11]Write to MH i2c: E2 08 00 42 6F 80 09 00 00 00 00 00 00 23 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 42 6F 00 90 00 25 [12:23:11]RAPDU: 90 00 [12:23:11]wFMCommunicate OK [12:23:11]SAM_PROTO_ClearQueue done [12:23:11]KKMCreateOFDPacket [12:23:11]OFDProtocolAddRootSTLVToBuf [12:23:11]FM_MakeSignedData [12:23:11]FM_MakeSignedData [12:23:11]SAM_PROTO_SignData [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 0D 01 02 [12:23:11]Write to MH i2c: E2 08 00 43 6F 80 0D 01 02 00 00 00 00 2B [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 43 6F 00 90 00 26 [12:23:11]RAPDU: 90 00 [12:23:11]wFMCommunicate OK [12:23:11]wFMCommunicate request_size=255 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 C1 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EE 02 00 35 04 06 00 9D FB A4 12 [12:23:11]Write to MH i2c: E2 02 01 44 6F 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 A6 00 00 00 F4 03 04 00 C1 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EE 02 00 35 04 06 00 9D FB A4 12 00 00 76 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 44 6F 00 90 00 27 [12:23:11]RAPDU: 90 00 [12:23:11]wFMCommunicate OK [12:23:11]wFMCommunicate request_size=7 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 0D 02 02 02 B9 B9 [12:23:11]Write to MH i2c: E2 0A 00 45 6F 80 0D 02 02 02 00 B9 B9 00 00 A4 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 03 00 45 6F 00 90 00 28 [12:23:11]RAPDU: 90 00 [12:23:11]wFMCommunicate OK [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 0D 03 02 [12:23:11]Write to MH i2c: E2 08 00 46 6F 80 0D 03 02 00 00 00 00 30 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0B 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0B 00 46 6F 00 6E 9C 58 6F 18 D1 50 36 90 00 71 [12:23:11]RAPDU: 6E 9C 58 6F 18 D1 50 36 90 00 [12:23:11]wFMCommunicate OK [12:23:11]SAM_PROTO_SignData done [12:23:11]FM_MakeSignedData done [12:23:11]CreateOFDProtocolMessage [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 11 00 00 [12:23:11]Write to MH i2c: E2 08 00 47 6F 80 11 00 00 00 00 00 00 30 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 17 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 17 00 47 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [12:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:23:11]wFMCommunicate OK [12:23:11]CreateOFDProtocolMessage done [12:23:11]OFDSenderStorePacket 192134 [12:23:11]StoreOFDPacket docnum=192134 [12:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 50 F7 04 01 C6 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 C1 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EE 02 00 35 04 06 00 9D FB A4 12 B9 B9 6E 9C 58 6F 18 D1 50 36 [12:23:11]CheckFolder [12:23:11]dirname=/storage/ofd_packets [12:23:11]CheckFolder done [12:23:11]ProducePacketName [12:23:11]name=ofd_packets/00192134 [12:23:11]NVStorageSaveData ofd_packets/00192134 [12:23:11]File name is /storage/ofd_packets/00192134 [12:23:11]Write 298 bytes [12:23:11]NVStorageSaveData done [12:23:11]OFDSenderStorePacket done [12:23:11]KKMCreateOFDPacket done [12:23:11]NVStorageSaveData kkm_last_timestamp [12:23:11]File name is /storage/kkm_last_timestamp [12:23:11]Write 4 bytes [12:23:11]NVStorageSaveData done [12:23:11]ExternCall_PrintAddStr [12:23:11]wPrintStart [12:23:11]Write to MH i2c: 01 00 00 48 6F B7 [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: 01 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: 01 07 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: 01 07 00 48 6F 00 00 00 00 00 FF 0F CC [12:23:11]RasterBufferAndPrint [12:23:11]line Счет N : (1)31444 [12:23:11]line ИНН: 02508201610067 [12:23:11]line Контрольно-Кассовый Чек [12:23:11]line ПРОДАЖА [12:23:11]line ТРК (МРК, ГНК) : 11 [12:23:11]line Товар: 2710194210 [12:23:11]line ДТ-К-5 [12:23:11]line 7.880 * 76.20 [12:23:12]line = 600.46 [12:23:12]line НДС 12% НСП 1% [12:23:12]line > о реализуемом товаре [12:23:12]line ОКРУГЛЕНИЕ: -0.46 [12:23:12]line ИТОГО: 600.00 [12:23:12]line Внесено: 600.00 [12:23:12]line СДАЧА: 0.00 [12:23:12]line НСП 1% : 5.31 [12:23:12]line НДС 12% : 63.77 [12:23:12]line Наличными: 600.00 [12:23:12]line Безнал.: 0.00 [12:23:12]line Место: АЗС № 170 "Партнер Нефть" [12:23:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:23:12]line СНО: Общий режим [12:23:12]line Чек 166 27.10.2024 12:23 [12:23:12]line Смена: 542 ФФД: 1.0 [12:23:12]line ЗНМ: 0300000110 [12:23:12]line РНМ: 0000000000091776 [12:23:12]line Версия ККМ: 001 [12:23:12]line ФМ: 0000000000871754 [12:23:12]line ФД: 192134 [12:23:12]line ФПД: 173704115042745 [12:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122329&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192134&fm=173704115042745&tin=02508201610067®Number=0000000000091776&sum=60000 [12:23:12]OFD Sender: Processing packet 192134 [packets to send 75, broken 74] [12:23:12]ProducePacketName [12:23:12]name=ofd_packets/00192134 [12:23:12]OFD Sender: To server: pG, [12:23:12]CommunicateWithHost lk.salyk.kg:30040 [12:23:12]ConnectInit lk.salyk.kg [12:23:12]written 0, free lines is 4095 [12:23:12]Connected sock=8 [12:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 50 F7 04 01 C6 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 C1 30 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EE 02 00 35 04 06 00 9D FB A4 12 B9 B9 6E 9C 58 6F 18 D1 50 36 [12:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 01 69 47 00 DA 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EE 02 00 F4 03 04 00 89 D5 1D 67 B6 04 01 00 00 6F 65 B1 F4 9D 2A 77 4D [12:23:12]CommunicateWithHost err = 0 [12:23:12]CheckOFDResponse [12:23:12]1017 (14) - 77093643461234 [12:23:12]1041 (16) - 0000000000871754 [12:23:12]1040 (4) - 192134 [12:23:12]1012 (4) - 27.10.2024 05:54 [12:23:12]1206 (1) - 0 [12:23:12]OFD Sender: Remove packet 192134 [12:23:12]ProducePacketName [12:23:12]name=ofd_packets/00192134 [12:23:12]NVStorageDeleteData [12:23:12]Write to MH i2c: 01 00 00 73 6F E2 [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: 01 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: 01 07 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: 01 07 00 73 6F 00 00 00 00 00 B4 0C A9 [12:23:12]RasterBufferAndPrint [12:23:12]line [12:23:12]line [12:23:12]line [12:23:12]line [12:23:12]line [12:23:12]written 0, free lines is 3265 [12:23:12]MH_Cut [12:23:12]Write to MH i2c: D1 01 00 7A 6F 01 BB [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: D1 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: D1 01 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: D1 01 00 7A 6F 00 BA [12:23:12]Write to MH i2c: 01 00 00 7B 6F EA [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:13]OFD Sender: No OFD packet to send [12:23:13]*** Cut start [12:23:13]*** Partial cut [12:23:13]*** CUTSNS_PIN = 1 [12:23:13]*** CUTSNS_PIN = 0 [12:23:13]*** Brake cut motor [12:23:14]Read from MH i2c: 01 [12:23:14]MH_I2C_Read... [12:23:14]*** Stop cut motor [12:23:14]*** Cut end [12:23:14]Read from MH i2c: 01 07 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 7B 6F 00 00 00 00 00 FF 0F FF [12:23:14]process_action close_receipt done [12:23:14]requested_data is exist [12:23:14]produce_requested_data [12:23:14]requested_item fm.sn is exist - process it [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 11 00 00 [12:23:14]Write to MH i2c: E2 08 00 7C 6F 80 11 00 00 00 00 00 00 65 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 17 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 17 00 7C 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [12:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:23:14]wFMCommunicate OK [12:23:14]requested_item fd.num is exist - process it [12:23:14]SAM_PROTO_GetFieldsCounters [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 13 00 00 [12:23:14]Write to MH i2c: E2 08 00 7D 6F 80 13 00 00 00 00 00 00 68 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 62 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 62 00 7D 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [12:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:14]wFMCommunicate OK [12:23:14]SAM_PROTO_GetFieldsCounters done [12:23:14]requested_item shift.num is exist - process it [12:23:14]requested_item shift.opened is exist - process it [12:23:14]req_shift_opened [12:23:14]FM_GetShiftState [12:23:14]SAM_PROTO_GetShiftState [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 13 01 00 [12:23:14]Write to MH i2c: E2 08 00 7E 6F 80 13 01 00 00 00 00 00 6A [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 7E 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AB [12:23:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:23:14]wFMCommunicate OK [12:23:14]SAM_PROTO_GetShiftState done [12:23:14]FM_GetShiftState done [12:23:14]req_shift_opened done [12:23:14]requested_item shift.open_date is exist - process it [12:23:14]req_shift_open_date [12:23:14]req_shift_open_date done [12:23:14]produce_requested_data done [12:23:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192134,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:23:14]process_action_free close_receipt [12:23:14]json_value_free [12:23:14]json_value_free done [12:23:14]process_json_proto returns [12:23:14]Send response to host [12:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192134,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:23:14]free response buf [12:23:14]execute_script done [12:23:14]execute_script returns [12:23:14]free content buf [12:23:14]Sock 6.Close socket [12:23:14]Sock 6.Thread stoped [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:39]accept exits with 5 [12:24:39]New connection [12:24:39]New thread 3066961252 created [12:24:39]Thread 3066817892 joined [12:24:39]Waiting for new connection... [12:24:39] Sock 5.Parse request [12:24:39]Sock 5.Check first char [12:24:39]Sock 5.First char is OK [12:24:39]request: POST /json_proto HTTP/1.0 [12:24:39]Method: POST [12:24:39]URL: /json_proto [12:24:39]Method is POST - this is cgi request [12:24:39]url: /json_proto [12:24:39]query_string will be loaded in cgi processing [12:24:39]execute_cgi json_proto POST (null) [12:24:39]execute_cgi path=json_proto method=POST [12:24:39]POST find Content-Length [12:24:39]Host: 172.17.63.131:8080 [12:24:39]Content-Length: 676 [12:24:39]Content-Type: application/json [12:24:39] [12:24:39]POST finish read [12:24:39]Found Content-Length = 676 [12:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]execute_script... [12:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]POST & json_proto [12:24:39]process_json_proto [12:24:39]json parsed OK: [12:24:39]protocol is kg_v1.0 [12:24:39]action value=close_receipt [12:24:39]process_action close_receipt [12:24:39]cmd_close_receipt [12:24:39]MH_GetDate [12:24:39]Write to MH i2c: F0 00 00 7F 6F DD [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 7F 6F 00 1B 31 1E 67 22 05 6E 64 B0 [12:24:39]GetLastDocTimeStamp 1730031809 [12:24:39]current date 1730031899 [12:24:39]FM_GetShiftState [12:24:39]SAM_PROTO_GetShiftState [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 13 01 00 [12:24:39]Write to MH i2c: E2 08 00 80 6F 80 13 01 00 00 00 00 00 6C [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 80 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AD [12:24:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:24:39]wFMCommunicate OK [12:24:39]SAM_PROTO_GetShiftState done [12:24:39]FM_GetShiftState done [12:24:39]opened in 1729989159 [12:24:39]opened+sec_in_day 1730075559 [12:24:39]quantity*price = 50041 [12:24:39]sum+1 = 50042 [12:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 167 27.10.2024 12:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192135 ФПД: 25844303098819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192135&fm=25844303098819&tin=02508201610067®Number=0000000000091776&sum=50000 [12:24:41]StoreToDocumentArchive [12:24:41]shift 542 fd 192135 [12:24:41]save to /storage/0542/doc_00192135 [12:24:41]save last doc name /storage/0542/doc_00192135 to /storage/kkm_last_doc_name [12:24:41]save OK [12:24:41]Clear old archive folders... [12:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:41]tlvbuf is 018DC2C0 [12:24:41]SAM_PROTO_ClearQueue [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 09 00 00 [12:24:41]Write to MH i2c: E2 08 00 8D 6F 80 09 00 00 00 00 00 00 6E [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 8D 6F 00 90 00 70 [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]SAM_PROTO_ClearQueue done [12:24:41]KKMCreateOFDPacket [12:24:41]OFDProtocolAddRootSTLVToBuf [12:24:41]FM_MakeSignedData [12:24:41]FM_MakeSignedData [12:24:41]SAM_PROTO_SignData [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 01 02 [12:24:41]Write to MH i2c: E2 08 00 8E 6F 80 0D 01 02 00 00 00 00 76 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 8E 6F 00 90 00 71 [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=255 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1B 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EE 02 00 35 04 06 00 17 [12:24:41]Write to MH i2c: E2 02 01 8F 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 1B 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EE 02 00 35 04 06 00 17 00 00 30 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 8F 6F 00 90 00 72 [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=10 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 02 02 05 81 58 81 73 C3 [12:24:41]Write to MH i2c: E2 0D 00 90 6F 80 0D 02 02 05 00 81 58 81 73 C3 00 00 13 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 03 00 90 6F 00 90 00 73 [12:24:41]RAPDU: 90 00 [12:24:41]wFMCommunicate OK [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 0D 03 02 [12:24:41]Write to MH i2c: E2 08 00 91 6F 80 0D 03 02 00 00 00 00 7B [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 91 6F 00 D6 9B C1 FE 66 E4 B9 C9 90 00 78 [12:24:41]RAPDU: D6 9B C1 FE 66 E4 B9 C9 90 00 [12:24:41]wFMCommunicate OK [12:24:41]SAM_PROTO_SignData done [12:24:41]FM_MakeSignedData done [12:24:41]CreateOFDProtocolMessage [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 11 00 00 [12:24:41]Write to MH i2c: E2 08 00 92 6F 80 11 00 00 00 00 00 00 7B [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 92 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [12:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:24:41]wFMCommunicate OK [12:24:41]CreateOFDProtocolMessage done [12:24:41]OFDSenderStorePacket 192135 [12:24:41]StoreOFDPacket docnum=192135 [12:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 02 07 01 33 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 1B 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EE 02 00 35 04 06 00 17 81 58 81 73 C3 D6 9B C1 FE 66 E4 B9 C9 [12:24:41]CheckFolder [12:24:41]dirname=/storage/ofd_packets [12:24:41]CheckFolder done [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00192135 [12:24:41]NVStorageSaveData ofd_packets/00192135 [12:24:41]File name is /storage/ofd_packets/00192135 [12:24:41]Write 301 bytes [12:24:41]NVStorageSaveData done [12:24:41]OFDSenderStorePacket done [12:24:41]KKMCreateOFDPacket done [12:24:41]NVStorageSaveData kkm_last_timestamp [12:24:41]File name is /storage/kkm_last_timestamp [12:24:41]Write 4 bytes [12:24:41]NVStorageSaveData done [12:24:41]ExternCall_PrintAddStr [12:24:41]wPrintStart [12:24:41]Write to MH i2c: 01 00 00 93 6F 02 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 93 6F 00 00 00 00 00 FF 0F 17 [12:24:41]RasterBufferAndPrint [12:24:41]line Счет N : (1)31446 [12:24:41]line ИНН: 02508201610067 [12:24:41]line Контрольно-Кассовый Чек [12:24:41]line ПРОДАЖА [12:24:41]line ТРК (МРК, ГНК) : 12 [12:24:41]line Товар: 2710124130 [12:24:41]line Аи-92-К-5 [12:24:41]line 7.480 * 66.90 [12:24:41]line = 500.41 [12:24:41]line НДС 12% НСП 1% [12:24:41]line > о реализуемом товаре [12:24:41]line ОКРУГЛЕНИЕ: -0.41 [12:24:41]line ИТОГО: 500.00 [12:24:41]line Внесено: 500.00 [12:24:41]line СДАЧА: 0.00 [12:24:41]line НСП 1% : 4.43 [12:24:41]line НДС 12% : 53.14 [12:24:41]line Наличными: 500.00 [12:24:41]line Безнал.: 0.00 [12:24:41]line Место: АЗС № 170 "Партнер Нефть" [12:24:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:24:41]line СНО: Общий режим [12:24:41]line Чек 167 27.10.2024 12:24 [12:24:41]line Смена: 542 ФФД: 1.0 [12:24:41]line ЗНМ: 0300000110 [12:24:41]line РНМ: 0000000000091776 [12:24:41]line Версия ККМ: 001 [12:24:41]line ФМ: 0000000000871754 [12:24:41]line ФД: 192135 [12:24:41]line ФПД: 25844303098819 [12:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192135&fm=25844303098819&tin=02508201610067®Number=0000000000091776&sum=50000 [12:24:41]OFD Sender: Processing packet 192135 [packets to send 75, broken 74] [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00192135 [12:24:41]OFD Sender: To server: pG, [12:24:41]CommunicateWithHost lk.salyk.kg:30040 [12:24:41]ConnectInit lk.salyk.kg [12:24:41]written 0, free lines is 4095 [12:24:41]Connected sock=8 [12:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 02 07 01 33 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 1B 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EE 02 00 35 04 06 00 17 81 58 81 73 C3 D6 9B C1 FE 66 E4 B9 C9 [12:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 EC 47 00 A8 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EE 02 00 F4 03 04 00 E3 D5 1D 67 B6 04 01 00 00 EE 17 57 FC DF 54 A8 1C [12:24:42]CommunicateWithHost err = 0 [12:24:42]CheckOFDResponse [12:24:42]1017 (14) - 77093643461234 [12:24:42]1041 (16) - 0000000000871754 [12:24:42]1040 (4) - 192135 [12:24:42]1012 (4) - 27.10.2024 05:55 [12:24:42]1206 (1) - 0 [12:24:42]OFD Sender: Remove packet 192135 [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00192135 [12:24:42]NVStorageDeleteData [12:24:42]Write to MH i2c: 01 00 00 BE 6F 2D [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 BE 6F 00 00 00 00 00 A0 0C E0 [12:24:42]RasterBufferAndPrint [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]line [12:24:42]written 0, free lines is 3238 [12:24:42]MH_Cut [12:24:42]Write to MH i2c: D1 01 00 C5 6F 01 06 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 01 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: D1 01 00 C5 6F 00 05 [12:24:42]Write to MH i2c: 01 00 00 C6 6F 35 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]OFD Sender: No OFD packet to send [12:24:43]*** Cut start [12:24:43]*** Partial cut [12:24:43]*** CUTSNS_PIN = 1 [12:24:43]*** CUTSNS_PIN = 0 [12:24:43]*** Brake cut motor [12:24:43]Read from MH i2c: 01 [12:24:43]MH_I2C_Read... [12:24:43]*** Stop cut motor [12:24:43]*** Cut end [12:24:43]Read from MH i2c: 01 07 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 C6 6F 00 00 00 00 00 FF 0F 4A [12:24:43]process_action close_receipt done [12:24:43]requested_data is exist [12:24:43]produce_requested_data [12:24:43]requested_item fm.sn is exist - process it [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 11 00 00 [12:24:43]Write to MH i2c: E2 08 00 C7 6F 80 11 00 00 00 00 00 00 B0 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 C7 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [12:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:24:43]wFMCommunicate OK [12:24:43]requested_item fd.num is exist - process it [12:24:43]SAM_PROTO_GetFieldsCounters [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 00 00 [12:24:43]Write to MH i2c: E2 08 00 C8 6F 80 13 00 00 00 00 00 00 B3 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 62 00 C8 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetFieldsCounters done [12:24:44]requested_item shift.num is exist - process it [12:24:44]requested_item shift.opened is exist - process it [12:24:44]req_shift_opened [12:24:44]FM_GetShiftState [12:24:44]SAM_PROTO_GetShiftState [12:24:44]wFMCommunicate request_size=4 [12:24:44]MH_SAM_APDU [12:24:44]CAPDU: 80 13 01 00 [12:24:44]Write to MH i2c: E2 08 00 C9 6F 80 13 01 00 00 00 00 00 B5 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:44]Read from MH i2c: E2 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: E2 0E 00 C9 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F6 [12:24:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:24:44]wFMCommunicate OK [12:24:44]SAM_PROTO_GetShiftState done [12:24:44]FM_GetShiftState done [12:24:44]req_shift_opened done [12:24:44]requested_item shift.open_date is exist - process it [12:24:44]req_shift_open_date [12:24:44]req_shift_open_date done [12:24:44]produce_requested_data done [12:24:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192135,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:24:44]process_action_free close_receipt [12:24:44]json_value_free [12:24:44]json_value_free done [12:24:44]process_json_proto returns [12:24:44]Send response to host [12:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192135,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:24:44]free response buf [12:24:44]execute_script done [12:24:44]execute_script returns [12:24:44]free content buf [12:24:44]Sock 5.Close socket [12:24:44]Sock 5.Thread stoped [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:33]accept exits with 6 [12:25:33]New connection [12:25:33]New thread 3066817892 created [12:25:33]Thread 3066961252 joined [12:25:33]Waiting for new connection... [12:25:33] Sock 6.Parse request [12:25:33]Sock 6.Check first char [12:25:33]Sock 6.First char is OK [12:25:33]request: POST /json_proto HTTP/1.0 [12:25:33]Method: POST [12:25:33]URL: /json_proto [12:25:33]Method is POST - this is cgi request [12:25:33]url: /json_proto [12:25:33]query_string will be loaded in cgi processing [12:25:33]execute_cgi json_proto POST (null) [12:25:33]execute_cgi path=json_proto method=POST [12:25:33]POST find Content-Length [12:25:33]Host: 172.17.63.131:8080 [12:25:33]Content-Length: 676 [12:25:33]Content-Type: application/json [12:25:33] [12:25:33]POST finish read [12:25:33]Found Content-Length = 676 [12:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:33]execute_script... [12:25: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)31447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:33]POST & json_proto [12:25:33]process_json_proto [12:25:33]json parsed OK: [12:25:33]protocol is kg_v1.0 [12:25:33]action value=close_receipt [12:25:33]process_action close_receipt [12:25:33]cmd_close_receipt [12:25:33]MH_GetDate [12:25:33]Write to MH i2c: F0 00 00 CA 6F 28 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: F0 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: F0 09 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: F0 09 00 CA 6F 00 51 31 1E 67 22 05 6E 64 31 [12:25:33]GetLastDocTimeStamp 1730031899 [12:25:33]current date 1730031953 [12:25:33]FM_GetShiftState [12:25:33]SAM_PROTO_GetShiftState [12:25:33]wFMCommunicate request_size=4 [12:25:33]MH_SAM_APDU [12:25:33]CAPDU: 80 13 01 00 [12:25:33]Write to MH i2c: E2 08 00 CB 6F 80 13 01 00 00 00 00 00 B7 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:33]Read from MH i2c: E2 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: E2 0E 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: E2 0E 00 CB 6F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F8 [12:25:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:25:33]wFMCommunicate OK [12:25:33]SAM_PROTO_GetShiftState done [12:25:33]FM_GetShiftState done [12:25:33]opened in 1729989159 [12:25:33]opened+sec_in_day 1730075559 [12:25:33]quantity*price = 20003 [12:25:33]sum+1 = 20004 [12:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 168 27.10.2024 12:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192136 ФПД: 214077126242148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122553&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192136&fm=214077126242148&tin=02508201610067®Number=0000000000091776&sum=20000 [12:25:34]StoreToDocumentArchive [12:25:34]shift 542 fd 192136 [12:25:34]save to /storage/0542/doc_00192136 [12:25:34]save last doc name /storage/0542/doc_00192136 to /storage/kkm_last_doc_name [12:25:34]save OK [12:25:34]Clear old archive folders... [12:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:34]tlvbuf is 01808530 [12:25:34]SAM_PROTO_ClearQueue [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 09 00 00 [12:25:34]Write to MH i2c: E2 08 00 D8 6F 80 09 00 00 00 00 00 00 B9 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 D8 6F 00 90 00 BB [12:25:34]RAPDU: 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_ClearQueue done [12:25:34]KKMCreateOFDPacket [12:25:34]OFDProtocolAddRootSTLVToBuf [12:25:34]FM_MakeSignedData [12:25:34]FM_MakeSignedData [12:25:34]SAM_PROTO_SignData [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 0D 01 02 [12:25:34]Write to MH i2c: E2 08 00 D9 6F 80 0D 01 02 00 00 00 00 C1 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 D9 6F 00 90 00 BC [12:25:34]RAPDU: 90 00 [12:25:34]wFMCommunicate OK [12:25:34]wFMCommunicate request_size=255 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EE 02 00 35 04 06 00 C2 [12:25:34]Write to MH i2c: E2 02 01 DA 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EE 02 00 35 04 06 00 C2 00 00 20 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 DA 6F 00 90 00 BD [12:25:34]RAPDU: 90 00 [12:25:34]wFMCommunicate OK [12:25:34]wFMCommunicate request_size=10 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 0D 02 02 05 B3 B7 10 6F 64 [12:25:34]Write to MH i2c: E2 0D 00 DB 6F 80 0D 02 02 05 00 B3 B7 10 6F 64 00 00 1B [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 03 00 DB 6F 00 90 00 BE [12:25:34]RAPDU: 90 00 [12:25:34]wFMCommunicate OK [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 0D 03 02 [12:25:34]Write to MH i2c: E2 08 00 DC 6F 80 0D 03 02 00 00 00 00 C6 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0B 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0B 00 DC 6F 00 59 82 0C D0 7A 65 D9 85 90 00 BB [12:25:34]RAPDU: 59 82 0C D0 7A 65 D9 85 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_SignData done [12:25:34]FM_MakeSignedData done [12:25:34]CreateOFDProtocolMessage [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 11 00 00 [12:25:34]Write to MH i2c: E2 08 00 DD 6F 80 11 00 00 00 00 00 00 C6 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 17 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 17 00 DD 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [12:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:34]wFMCommunicate OK [12:25:34]CreateOFDProtocolMessage done [12:25:34]OFDSenderStorePacket 192136 [12:25:34]StoreOFDPacket docnum=192136 [12:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B B2 07 01 53 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EE 02 00 35 04 06 00 C2 B3 B7 10 6F 64 59 82 0C D0 7A 65 D9 85 [12:25:34]CheckFolder [12:25:34]dirname=/storage/ofd_packets [12:25:34]CheckFolder done [12:25:34]ProducePacketName [12:25:34]name=ofd_packets/00192136 [12:25:34]NVStorageSaveData ofd_packets/00192136 [12:25:34]File name is /storage/ofd_packets/00192136 [12:25:34]Write 301 bytes [12:25:34]NVStorageSaveData done [12:25:34]OFDSenderStorePacket done [12:25:34]KKMCreateOFDPacket done [12:25:34]NVStorageSaveData kkm_last_timestamp [12:25:34]File name is /storage/kkm_last_timestamp [12:25:34]Write 4 bytes [12:25:34]NVStorageSaveData done [12:25:34]ExternCall_PrintAddStr [12:25:34]wPrintStart [12:25:34]Write to MH i2c: 01 00 00 DE 6F 4D [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: 01 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: 01 07 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: 01 07 00 DE 6F 00 00 00 00 00 FF 0F 62 [12:25:34]RasterBufferAndPrint [12:25:34]line Счет N : (1)31447 [12:25:34]line ИНН: 02508201610067 [12:25:34]line Контрольно-Кассовый Чек [12:25:34]line ПРОДАЖА [12:25:34]line ТРК (МРК, ГНК) : 12 [12:25:34]line Товар: 2710124130 [12:25:34]line Аи-92-К-5 [12:25:34]line 2.990 * 66.90 [12:25:34]line = 200.03 [12:25:34]line НДС 12% НСП 1% [12:25:34]line > о реализуемом товаре [12:25:34]line ОКРУГЛЕНИЕ: -0.03 [12:25:34]line ИТОГО: 200.00 [12:25:34]line Внесено: 200.00 [12:25:34]line СДАЧА: 0.00 [12:25:34]line НСП 1% : 1.77 [12:25:34]line НДС 12% : 21.24 [12:25:34]line Наличными: 200.00 [12:25:34]line Безнал.: 0.00 [12:25:34]line Место: АЗС № 170 "Партнер Нефть" [12:25:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:25:34]line СНО: Общий режим [12:25:34]line Чек 168 27.10.2024 12:25 [12:25:34]line Смена: 542 ФФД: 1.0 [12:25:34]line ЗНМ: 0300000110 [12:25:34]line РНМ: 0000000000091776 [12:25:34]line Версия ККМ: 001 [12:25:34]line ФМ: 0000000000871754 [12:25:34]line ФД: 192136 [12:25:34]line ФПД: 214077126242148 [12:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122553&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192136&fm=214077126242148&tin=02508201610067®Number=0000000000091776&sum=20000 [12:25:35]OFD Sender: Processing packet 192136 [packets to send 75, broken 74] [12:25:35]ProducePacketName [12:25:35]name=ofd_packets/00192136 [12:25:35]OFD Sender: To server: pG, [12:25:35]CommunicateWithHost lk.salyk.kg:30040 [12:25:35]ConnectInit lk.salyk.kg [12:25:35]written 0, free lines is 4095 [12:25:35]Connected sock=8 [12:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B B2 07 01 53 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 51 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EE 02 00 35 04 06 00 C2 B3 B7 10 6F 64 59 82 0C D0 7A 65 D9 85 [12:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 99 A1 47 00 B8 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EE 02 00 F4 03 04 00 18 D6 1D 67 B6 04 01 00 00 62 D9 E1 1D 7C A6 85 69 [12:25:35]CommunicateWithHost err = 0 [12:25:35]CheckOFDResponse [12:25:35]1017 (14) - 77093643461234 [12:25:35]1041 (16) - 0000000000871754 [12:25:35]1040 (4) - 192136 [12:25:35]1012 (4) - 27.10.2024 05:56 [12:25:35]1206 (1) - 0 [12:25:35]OFD Sender: Remove packet 192136 [12:25:35]ProducePacketName [12:25:35]name=ofd_packets/00192136 [12:25:35]NVStorageDeleteData [12:25:35]Write to MH i2c: 01 00 00 09 70 79 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 09 70 00 00 00 00 00 A4 0C 30 [12:25:35]RasterBufferAndPrint [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]written 0, free lines is 3239 [12:25:35]MH_Cut [12:25:35]Write to MH i2c: D1 01 00 10 70 01 52 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: D1 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: D1 01 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: D1 01 00 10 70 00 51 [12:25:35]Write to MH i2c: 01 00 00 11 70 81 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:36]OFD Sender: No OFD packet to send [12:25:36]*** Cut start [12:25:36]*** Partial cut [12:25:36]*** CUTSNS_PIN = 1 [12:25:36]*** CUTSNS_PIN = 0 [12:25:36]*** Brake cut motor [12:25:37]Read from MH i2c: 01 [12:25:37]MH_I2C_Read... [12:25:37]*** Stop cut motor [12:25:37]*** Cut end [12:25:37]Read from MH i2c: 01 07 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 07 00 11 70 00 00 00 00 00 FF 0F 96 [12:25:37]process_action close_receipt done [12:25:37]requested_data is exist [12:25:37]produce_requested_data [12:25:37]requested_item fm.sn is exist - process it [12:25:37]wFMCommunicate request_size=4 [12:25:37]MH_SAM_APDU [12:25:37]CAPDU: 80 11 00 00 [12:25:37]Write to MH i2c: E2 08 00 12 70 80 11 00 00 00 00 00 00 FC [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:37]Read from MH i2c: E2 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 17 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 17 00 12 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [12:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:37]wFMCommunicate OK [12:25:37]requested_item fd.num is exist - process it [12:25:37]SAM_PROTO_GetFieldsCounters [12:25:37]wFMCommunicate request_size=4 [12:25:37]MH_SAM_APDU [12:25:37]CAPDU: 80 13 00 00 [12:25:37]Write to MH i2c: E2 08 00 13 70 80 13 00 00 00 00 00 00 FF [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:37]Read from MH i2c: E2 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 62 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 62 00 13 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [12:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:37]wFMCommunicate OK [12:25:37]SAM_PROTO_GetFieldsCounters done [12:25:37]requested_item shift.num is exist - process it [12:25:37]requested_item shift.opened is exist - process it [12:25:37]req_shift_opened [12:25:37]FM_GetShiftState [12:25:37]SAM_PROTO_GetShiftState [12:25:37]wFMCommunicate request_size=4 [12:25:37]MH_SAM_APDU [12:25:37]CAPDU: 80 13 01 00 [12:25:37]Write to MH i2c: E2 08 00 14 70 80 13 01 00 00 00 00 00 01 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:37]Read from MH i2c: E2 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 0E 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: E2 0E 00 14 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 42 [12:25:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:25:37]wFMCommunicate OK [12:25:37]SAM_PROTO_GetShiftState done [12:25:37]FM_GetShiftState done [12:25:37]req_shift_opened done [12:25:37]requested_item shift.open_date is exist - process it [12:25:37]req_shift_open_date [12:25:37]req_shift_open_date done [12:25:37]produce_requested_data done [12:25:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192136,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:25:37]process_action_free close_receipt [12:25:37]json_value_free [12:25:37]json_value_free done [12:25:37]process_json_proto returns [12:25:37]Send response to host [12:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192136,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:25:37]free response buf [12:25:37]execute_script done [12:25:37]execute_script returns [12:25:37]free content buf [12:25:37]Sock 6.Close socket [12:25:37]Sock 6.Thread stoped [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:50]accept exits with 5 [12:26:50]New connection [12:26:50]New thread 3066961252 created [12:26:50]Thread 3066817892 joined [12:26:50]Waiting for new connection... [12:26:50] Sock 5.Parse request [12:26:50]Sock 5.Check first char [12:26:50]Sock 5.First char is OK [12:26:50]request: POST /json_proto HTTP/1.0 [12:26:50]Method: POST [12:26:50]URL: /json_proto [12:26:50]Method is POST - this is cgi request [12:26:50]url: /json_proto [12:26:50]query_string will be loaded in cgi processing [12:26:50]execute_cgi json_proto POST (null) [12:26:50]execute_cgi path=json_proto method=POST [12:26:50]POST find Content-Length [12:26:50]Host: 172.17.63.131:8080 [12:26:50]Content-Length: 677 [12:26:50]Content-Type: application/json [12:26:50] [12:26:50]POST finish read [12:26:50]Found Content-Length = 677 [12:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:50]execute_script... [12:26:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:50]POST & json_proto [12:26:50]process_json_proto [12:26:50]json parsed OK: [12:26:50]protocol is kg_v1.0 [12:26:50]action value=close_receipt [12:26:50]process_action close_receipt [12:26:50]cmd_close_receipt [12:26:50]MH_GetDate [12:26:50]Write to MH i2c: F0 00 00 15 70 74 [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: F0 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: F0 09 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: F0 09 00 15 70 00 9E 31 1E 67 22 05 6E 64 CA [12:26:50]GetLastDocTimeStamp 1730031953 [12:26:50]current date 1730032030 [12:26:50]FM_GetShiftState [12:26:50]SAM_PROTO_GetShiftState [12:26:50]wFMCommunicate request_size=4 [12:26:50]MH_SAM_APDU [12:26:50]CAPDU: 80 13 01 00 [12:26:50]Write to MH i2c: E2 08 00 16 70 80 13 01 00 00 00 00 00 03 [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:50]Read from MH i2c: E2 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: E2 0E 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: E2 0E 00 16 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 44 [12:26:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:26:50]wFMCommunicate OK [12:26:50]SAM_PROTO_GetShiftState done [12:26:50]FM_GetShiftState done [12:26:50]opened in 1729989159 [12:26:50]opened+sec_in_day 1730075559 [12:26:50]quantity*price = 70044 [12:26:50]sum+1 = 70045 [12:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 169 27.10.2024 12:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192137 ФПД: 101071436369447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192137&fm=101071436369447&tin=02508201610067®Number=0000000000091776&sum=70000 [12:26:51]StoreToDocumentArchive [12:26:51]shift 542 fd 192137 [12:26:51]save to /storage/0542/doc_00192137 [12:26:51]save last doc name /storage/0542/doc_00192137 to /storage/kkm_last_doc_name [12:26:51]save OK [12:26:51]Clear old archive folders... [12:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:51]tlvbuf is 01B4D1B0 [12:26:51]SAM_PROTO_ClearQueue [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 09 00 00 [12:26:51]Write to MH i2c: E2 08 00 23 70 80 09 00 00 00 00 00 00 05 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 23 70 00 90 00 07 [12:26:51]RAPDU: 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_ClearQueue done [12:26:51]KKMCreateOFDPacket [12:26:51]OFDProtocolAddRootSTLVToBuf [12:26:51]FM_MakeSignedData [12:26:51]FM_MakeSignedData [12:26:51]SAM_PROTO_SignData [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 0D 01 02 [12:26:51]Write to MH i2c: E2 08 00 24 70 80 0D 01 02 00 00 00 00 0D [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 24 70 00 90 00 08 [12:26:51]RAPDU: 90 00 [12:26:51]wFMCommunicate OK [12:26:51]wFMCommunicate request_size=255 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9E 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EE 02 00 35 04 06 00 5B [12:26:51]Write to MH i2c: E2 02 01 25 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9E 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EE 02 00 35 04 06 00 5B 00 00 A2 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 25 70 00 90 00 09 [12:26:51]RAPDU: 90 00 [12:26:51]wFMCommunicate OK [12:26:51]wFMCommunicate request_size=10 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 0D 02 02 05 EC 87 0F CE 27 [12:26:51]Write to MH i2c: E2 0D 00 26 70 80 0D 02 02 05 00 EC 87 0F CE 27 00 00 91 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 03 00 26 70 00 90 00 0A [12:26:51]RAPDU: 90 00 [12:26:51]wFMCommunicate OK [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 0D 03 02 [12:26:51]Write to MH i2c: E2 08 00 27 70 80 0D 03 02 00 00 00 00 12 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0B 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0B 00 27 70 00 27 11 C6 B4 85 B3 BE 6A 90 00 25 [12:26:51]RAPDU: 27 11 C6 B4 85 B3 BE 6A 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_SignData done [12:26:51]FM_MakeSignedData done [12:26:51]CreateOFDProtocolMessage [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 11 00 00 [12:26:51]Write to MH i2c: E2 08 00 28 70 80 11 00 00 00 00 00 00 12 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 28 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [12:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:26:51]wFMCommunicate OK [12:26:51]CreateOFDProtocolMessage done [12:26:51]OFDSenderStorePacket 192137 [12:26:51]StoreOFDPacket docnum=192137 [12:26:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 81 07 01 74 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9E 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EE 02 00 35 04 06 00 5B EC 87 0F CE 27 27 11 C6 B4 85 B3 BE 6A [12:26:51]CheckFolder [12:26:51]dirname=/storage/ofd_packets [12:26:51]CheckFolder done [12:26:51]ProducePacketName [12:26:51]name=ofd_packets/00192137 [12:26:51]NVStorageSaveData ofd_packets/00192137 [12:26:51]File name is /storage/ofd_packets/00192137 [12:26:51]Write 301 bytes [12:26:51]NVStorageSaveData done [12:26:51]OFDSenderStorePacket done [12:26:51]KKMCreateOFDPacket done [12:26:51]NVStorageSaveData kkm_last_timestamp [12:26:51]File name is /storage/kkm_last_timestamp [12:26:51]OFD Sender: Processing packet 192137 [packets to send 75, broken 74] [12:26:51]ProducePacketName [12:26:51]name=ofd_packets/00192137 [12:26:51]OFD Sender: To server: pG, [12:26:51]CommunicateWithHost lk.salyk.kg:30040 [12:26:51]ConnectInit lk.salyk.kg [12:26:51]Write 4 bytes [12:26:51]NVStorageSaveData done [12:26:51]ExternCall_PrintAddStr [12:26:51]wPrintStart [12:26:51]Write to MH i2c: 01 00 00 29 70 99 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 07 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 07 00 29 70 00 00 00 00 00 FF 0F AE [12:26:51]RasterBufferAndPrint [12:26:51]line Счет N : (1)31448 [12:26:51]line ИНН: 02508201610067 [12:26:51]line Контрольно-Кассовый Чек [12:26:51]line ПРОДАЖА [12:26:51]line ТРК (МРК, ГНК) : 12 [12:26:51]line Товар: 2710124130 [12:26:51]line Аи-92-К-5 [12:26:51]line 10.470 * 66.90 [12:26:51]line = 700.44 [12:26:51]line НДС 12% НСП 1% [12:26:51]line > о реализуемом товаре [12:26:51]line ОКРУГЛЕНИЕ: -0.44 [12:26:51]line ИТОГО: 700.00 [12:26:51]line Внесено: 700.00 [12:26:51]line СДАЧА: 0.00 [12:26:51]line НСП 1% : 6.20 [12:26:51]line НДС 12% : 74.38 [12:26:51]line Наличными: 700.00 [12:26:51]line Безнал.: 0.00 [12:26:51]line Место: АЗС № 170 "Партнер Нефть" [12:26:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:26:51]line СНО: Общий режим [12:26:51]line Чек 169 27.10.2024 12:27 [12:26:51]line Смена: 542 ФФД: 1.0 [12:26:51]line ЗНМ: 0300000110 [12:26:51]line РНМ: 0000000000091776 [12:26:51]line Версия ККМ: 001 [12:26:51]line ФМ: 0000000000871754 [12:26:51]line ФД: 192137 [12:26:51]line ФПД: 101071436369447 [12:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192137&fm=101071436369447&tin=02508201610067®Number=0000000000091776&sum=70000 [12:26:52]Connected sock=9 [12:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 81 07 01 74 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9E 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EE 02 00 35 04 06 00 5B EC 87 0F CE 27 27 11 C6 B4 85 B3 BE 6A [12:26:52]written 0, free lines is 4095 [12:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B4 A2 47 00 34 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EE 02 00 F4 03 04 00 65 D6 1D 67 B6 04 01 00 00 50 4C E2 5C A5 E8 8D 94 [12:26:52]CommunicateWithHost err = 0 [12:26:52]CheckOFDResponse [12:26:52]1017 (14) - 77093643461234 [12:26:52]1041 (16) - 0000000000871754 [12:26:52]1040 (4) - 192137 [12:26:52]1012 (4) - 27.10.2024 05:57 [12:26:52]1206 (1) - 0 [12:26:52]OFD Sender: Remove packet 192137 [12:26:52]ProducePacketName [12:26:52]name=ofd_packets/00192137 [12:26:52]NVStorageDeleteData [12:26:52]Write to MH i2c: 01 00 00 54 70 C4 [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: 01 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: 01 07 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: 01 07 00 54 70 00 00 00 00 00 A4 0C 7B [12:26:52]RasterBufferAndPrint [12:26:52]line [12:26:52]line [12:26:52]line [12:26:52]line [12:26:52]line [12:26:52]written 0, free lines is 3242 [12:26:52]MH_Cut [12:26:52]Write to MH i2c: D1 01 00 5B 70 01 9D [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: D1 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: D1 01 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: D1 01 00 5B 70 00 9C [12:26:52]Write to MH i2c: 01 00 00 5C 70 CC [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]OFD Sender: No OFD packet to send [12:26:53]*** Cut start [12:26:53]*** Partial cut [12:26:53]*** CUTSNS_PIN = 1 [12:26:53]*** CUTSNS_PIN = 0 [12:26:53]*** Brake cut motor [12:26:54]Read from MH i2c: 01 [12:26:54]MH_I2C_Read... [12:26:54]*** Stop cut motor [12:26:54]*** Cut end [12:26:54]Read from MH i2c: 01 07 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 07 00 5C 70 00 00 00 00 00 FF 0F E1 [12:26:54]process_action close_receipt done [12:26:54]requested_data is exist [12:26:54]produce_requested_data [12:26:54]requested_item fm.sn is exist - process it [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 11 00 00 [12:26:54]Write to MH i2c: E2 08 00 5D 70 80 11 00 00 00 00 00 00 47 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 5D 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9A [12:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:26:54]wFMCommunicate OK [12:26:54]requested_item fd.num is exist - process it [12:26:54]SAM_PROTO_GetFieldsCounters [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 13 00 00 [12:26:54]Write to MH i2c: E2 08 00 5E 70 80 13 00 00 00 00 00 00 4A [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 62 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 62 00 5E 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:54]wFMCommunicate OK [12:26:54]SAM_PROTO_GetFieldsCounters done [12:26:54]requested_item shift.num is exist - process it [12:26:54]requested_item shift.opened is exist - process it [12:26:54]req_shift_opened [12:26:54]FM_GetShiftState [12:26:54]SAM_PROTO_GetShiftState [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 13 01 00 [12:26:54]Write to MH i2c: E2 08 00 5F 70 80 13 01 00 00 00 00 00 4C [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0E 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0E 00 5F 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8D [12:26:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:26:54]wFMCommunicate OK [12:26:54]SAM_PROTO_GetShiftState done [12:26:54]FM_GetShiftState done [12:26:54]req_shift_opened done [12:26:54]requested_item shift.open_date is exist - process it [12:26:54]req_shift_open_date [12:26:54]req_shift_open_date done [12:26:54]produce_requested_data done [12:26:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192137,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:26:54]process_action_free close_receipt [12:26:54]json_value_free [12:26:54]json_value_free done [12:26:54]process_json_proto returns [12:26:54]Send response to host [12:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192137,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:26:54]free response buf [12:26:54]execute_script done [12:26:54]execute_script returns [12:26:54]free content buf [12:26:54]Sock 5.Close socket [12:26:54]Sock 5.Thread stoped [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:29]accept exits with 6 [12:27:29]New connection [12:27:29]New thread 3066817892 created [12:27:29]Thread 3066961252 joined [12:27:29]Waiting for new connection... [12:27:29] Sock 6.Parse request [12:27:29]Sock 6.Check first char [12:27:29]Sock 6.First char is OK [12:27:29]request: POST /json_proto HTTP/1.0 [12:27:29]Method: POST [12:27:29]URL: /json_proto [12:27:29]Method is POST - this is cgi request [12:27:29]url: /json_proto [12:27:29]query_string will be loaded in cgi processing [12:27:29]execute_cgi json_proto POST (null) [12:27:29]execute_cgi path=json_proto method=POST [12:27:29]POST find Content-Length [12:27:29]Host: 172.17.63.131:8080 [12:27:29]Content-Length: 677 [12:27:29]Content-Type: application/json [12:27:29] [12:27:29]POST finish read [12:27:29]Found Content-Length = 677 [12:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:29]execute_script... [12:27: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)31449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:29]POST & json_proto [12:27:29]process_json_proto [12:27:29]json parsed OK: [12:27:29]protocol is kg_v1.0 [12:27:29]action value=close_receipt [12:27:29]process_action close_receipt [12:27:29]cmd_close_receipt [12:27:29]MH_GetDate [12:27:29]Write to MH i2c: F0 00 00 60 70 BF [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: F0 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: F0 09 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: F0 09 00 60 70 00 C5 31 1E 67 22 05 6E 64 3C [12:27:29]GetLastDocTimeStamp 1730032030 [12:27:29]current date 1730032069 [12:27:29]FM_GetShiftState [12:27:29]SAM_PROTO_GetShiftState [12:27:29]wFMCommunicate request_size=4 [12:27:29]MH_SAM_APDU [12:27:29]CAPDU: 80 13 01 00 [12:27:29]Write to MH i2c: E2 08 00 61 70 80 13 01 00 00 00 00 00 4E [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:29]Read from MH i2c: E2 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 0E 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 0E 00 61 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8F [12:27:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:27:29]wFMCommunicate OK [12:27:29]SAM_PROTO_GetShiftState done [12:27:29]FM_GetShiftState done [12:27:29]opened in 1729989159 [12:27:29]opened+sec_in_day 1730075559 [12:27:29]quantity*price = 70044 [12:27:29]sum+1 = 70045 [12:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 170 27.10.2024 12:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192138 ФПД: 224138019980814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122749&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192138&fm=224138019980814&tin=02508201610067®Number=0000000000091776&sum=70000 [12:27:30]StoreToDocumentArchive [12:27:30]shift 542 fd 192138 [12:27:30]save to /storage/0542/doc_00192138 [12:27:30]save last doc name /storage/0542/doc_00192138 to /storage/kkm_last_doc_name [12:27:30]save OK [12:27:30]Clear old archive folders... [12:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:30]tlvbuf is 01C6F450 [12:27:30]SAM_PROTO_ClearQueue [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 09 00 00 [12:27:30]Write to MH i2c: E2 08 00 6E 70 80 09 00 00 00 00 00 00 50 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 6E 70 00 90 00 52 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_ClearQueue done [12:27:30]KKMCreateOFDPacket [12:27:30]OFDProtocolAddRootSTLVToBuf [12:27:30]FM_MakeSignedData [12:27:30]FM_MakeSignedData [12:27:30]SAM_PROTO_SignData [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 01 02 [12:27:30]Write to MH i2c: E2 08 00 6F 70 80 0D 01 02 00 00 00 00 58 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 6F 70 00 90 00 53 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]wFMCommunicate request_size=255 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C5 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EE 02 00 35 04 06 00 CB [12:27:30]Write to MH i2c: E2 02 01 70 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C5 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EE 02 00 35 04 06 00 CB 00 00 86 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 70 70 00 90 00 54 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]wFMCommunicate request_size=10 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 02 02 05 DA 33 0F C6 0E [12:27:30]Write to MH i2c: E2 0D 00 71 70 80 0D 02 02 05 00 DA 33 0F C6 0E 00 00 55 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 71 70 00 90 00 55 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 03 02 [12:27:30]Write to MH i2c: E2 08 00 72 70 80 0D 03 02 00 00 00 00 5D [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0B 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0B 00 72 70 00 F5 3F 84 32 FE D0 24 78 90 00 B2 [12:27:30]RAPDU: F5 3F 84 32 FE D0 24 78 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_SignData done [12:27:30]FM_MakeSignedData done [12:27:30]CreateOFDProtocolMessage [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 11 00 00 [12:27:30]Write to MH i2c: E2 08 00 73 70 80 11 00 00 00 00 00 00 5D [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 17 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 17 00 73 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [12:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:27:31]wFMCommunicate OK [12:27:31]CreateOFDProtocolMessage done [12:27:31]OFDSenderStorePacket 192138 [12:27:31]StoreOFDPacket docnum=192138 [12:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 6B 07 01 77 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C5 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EE 02 00 35 04 06 00 CB DA 33 0F C6 0E F5 3F 84 32 FE D0 24 78 [12:27:31]CheckFolder [12:27:31]dirname=/storage/ofd_packets [12:27:31]CheckFolder done [12:27:31]ProducePacketName [12:27:31]name=ofd_packets/00192138 [12:27:31]NVStorageSaveData ofd_packets/00192138 [12:27:31]File name is /storage/ofd_packets/00192138 [12:27:31]Write 301 bytes [12:27:31]NVStorageSaveData done [12:27:31]OFDSenderStorePacket done [12:27:31]KKMCreateOFDPacket done [12:27:31]NVStorageSaveData kkm_last_timestamp [12:27:31]File name is /storage/kkm_last_timestamp [12:27:31]Write 4 bytes [12:27:31]NVStorageSaveData done [12:27:31]ExternCall_PrintAddStr [12:27:31]wPrintStart [12:27:31]Write to MH i2c: 01 00 00 74 70 E4 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 74 70 00 00 00 00 00 FF 0F F9 [12:27:31]RasterBufferAndPrint [12:27:31]line Счет N : (1)31449 [12:27:31]line ИНН: 02508201610067 [12:27:31]line Контрольно-Кассовый Чек [12:27:31]line ПРОДАЖА [12:27:31]line ТРК (МРК, ГНК) : 21 [12:27:31]line Товар: 2710124130 [12:27:31]line Аи-92-К-5 [12:27:31]line 10.470 * 66.90 [12:27:31]line = 700.44 [12:27:31]line НДС 12% НСП 1% [12:27:31]line > о реализуемом товаре [12:27:31]line ОКРУГЛЕНИЕ: -0.44 [12:27:31]line ИТОГО: 700.00 [12:27:31]line Внесено: 700.00 [12:27:31]line СДАЧА: 0.00 [12:27:31]line НСП 1% : 6.20 [12:27:31]line НДС 12% : 74.38 [12:27:31]line Наличными: 700.00 [12:27:31]line Безнал.: 0.00 [12:27:31]line Место: АЗС № 170 "Партнер Нефть" [12:27:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:27:31]line СНО: Общий режим [12:27:31]line Чек 170 27.10.2024 12:27 [12:27:31]line Смена: 542 ФФД: 1.0 [12:27:31]line ЗНМ: 0300000110 [12:27:31]line РНМ: 0000000000091776 [12:27:31]line Версия ККМ: 001 [12:27:31]line ФМ: 0000000000871754 [12:27:31]line ФД: 192138 [12:27:31]line ФПД: 224138019980814 [12:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122749&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192138&fm=224138019980814&tin=02508201610067®Number=0000000000091776&sum=70000 [12:27:31]written 0, free lines is 4095 [12:27:31]OFD Sender: Processing packet 192138 [packets to send 75, broken 74] [12:27:31]ProducePacketName [12:27:31]name=ofd_packets/00192138 [12:27:31]OFD Sender: To server: pG, [12:27:31]CommunicateWithHost lk.salyk.kg:30040 [12:27:31]ConnectInit lk.salyk.kg [12:27:31]Connected sock=9 [12:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 6B 07 01 77 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C5 31 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EE 02 00 35 04 06 00 CB DA 33 0F C6 0E F5 3F 84 32 FE D0 24 78 [12:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 73 47 00 C6 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EE 02 00 F4 03 04 00 8C D6 1D 67 B6 04 01 00 00 F8 EF 20 46 62 AD 40 2B [12:27:31]CommunicateWithHost err = 0 [12:27:31]CheckOFDResponse [12:27:31]1017 (14) - 77093643461234 [12:27:31]1041 (16) - 0000000000871754 [12:27:31]1040 (4) - 192138 [12:27:31]1012 (4) - 27.10.2024 05:58 [12:27:31]1206 (1) - 0 [12:27:31]OFD Sender: Remove packet 192138 [12:27:31]ProducePacketName [12:27:31]name=ofd_packets/00192138 [12:27:31]NVStorageDeleteData [12:27:31]Write to MH i2c: 01 00 00 9F 70 0F [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 9F 70 00 00 00 00 00 B0 0C D2 [12:27:31]RasterBufferAndPrint [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]written 0, free lines is 3253 [12:27:31]MH_Cut [12:27:31]Write to MH i2c: D1 01 00 A6 70 01 E8 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 01 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 01 00 A6 70 00 E7 [12:27:31]Write to MH i2c: 01 00 00 A7 70 17 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]OFD Sender: No OFD packet to send [12:27:32]*** Cut start [12:27:32]*** Partial cut [12:27:32]*** CUTSNS_PIN = 1 [12:27:32]*** CUTSNS_PIN = 0 [12:27:32]*** Brake cut motor [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]*** Stop cut motor [12:27:32]*** Cut end [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 A7 70 00 00 00 00 00 FF 0F 2C [12:27:32]process_action close_receipt done [12:27:32]requested_data is exist [12:27:32]produce_requested_data [12:27:32]requested_item fm.sn is exist - process it [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 11 00 00 [12:27:32]Write to MH i2c: E2 08 00 A8 70 80 11 00 00 00 00 00 00 92 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 A8 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [12:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:27:32]wFMCommunicate OK [12:27:32]requested_item fd.num is exist - process it [12:27:32]SAM_PROTO_GetFieldsCounters [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 13 00 00 [12:27:32]Write to MH i2c: E2 08 00 A9 70 80 13 00 00 00 00 00 00 95 [12:27:33]Write i2c OK [12:27:33]MH_I2C_Read... [12:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:33]Read from MH i2c: E2 [12:27:33]MH_I2C_Read... [12:27:33]Read from MH i2c: E2 62 00 [12:27:33]MH_I2C_Read... [12:27:33]Read from MH i2c: E2 62 00 A9 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:33]wFMCommunicate OK [12:27:33]SAM_PROTO_GetFieldsCounters done [12:27:33]requested_item shift.num is exist - process it [12:27:33]requested_item shift.opened is exist - process it [12:27:33]req_shift_opened [12:27:33]FM_GetShiftState [12:27:33]SAM_PROTO_GetShiftState [12:27:33]wFMCommunicate request_size=4 [12:27:33]MH_SAM_APDU [12:27:33]CAPDU: 80 13 01 00 [12:27:33]Write to MH i2c: E2 08 00 AA 70 80 13 01 00 00 00 00 00 97 [12:27:33]Write i2c OK [12:27:33]MH_I2C_Read... [12:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:33]Read from MH i2c: E2 [12:27:33]MH_I2C_Read... [12:27:33]Read from MH i2c: E2 0E 00 [12:27:33]MH_I2C_Read... [12:27:33]Read from MH i2c: E2 0E 00 AA 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D8 [12:27:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:27:33]wFMCommunicate OK [12:27:33]SAM_PROTO_GetShiftState done [12:27:33]FM_GetShiftState done [12:27:33]req_shift_opened done [12:27:33]requested_item shift.open_date is exist - process it [12:27:33]req_shift_open_date [12:27:33]req_shift_open_date done [12:27:33]produce_requested_data done [12:27:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192138,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:27:33]process_action_free close_receipt [12:27:33]json_value_free [12:27:33]json_value_free done [12:27:33]process_json_proto returns [12:27:33]Send response to host [12:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192138,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:27:33]free response buf [12:27:33]execute_script done [12:27:33]execute_script returns [12:27:33]free content buf [12:27:33]Sock 6.Close socket [12:27:33]Sock 6.Thread stoped [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:47]accept exits with 5 [12:28:47]New connection [12:28:47]New thread 3066961252 created [12:28:47]Thread 3066817892 joined [12:28:47]Waiting for new connection... [12:28:47] Sock 5.Parse request [12:28:47]Sock 5.Check first char [12:28:47]Sock 5.First char is OK [12:28:47]request: POST /json_proto HTTP/1.0 [12:28:47]Method: POST [12:28:47]URL: /json_proto [12:28:47]Method is POST - this is cgi request [12:28:47]url: /json_proto [12:28:47]query_string will be loaded in cgi processing [12:28:47]execute_cgi json_proto POST (null) [12:28:47]execute_cgi path=json_proto method=POST [12:28:47]POST find Content-Length [12:28:47]Host: 172.17.63.131:8080 [12:28:47]Content-Length: 681 [12:28:47]Content-Type: application/json [12:28:47] [12:28:47]POST finish read [12:28:47]Found Content-Length = 681 [12:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:47]execute_script... [12:28: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)31450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:47]POST & json_proto [12:28:47]process_json_proto [12:28:47]json parsed OK: [12:28:47]protocol is kg_v1.0 [12:28:47]action value=close_receipt [12:28:47]process_action close_receipt [12:28:47]cmd_close_receipt [12:28:47]MH_GetDate [12:28:47]Write to MH i2c: F0 00 00 AB 70 0A [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: F0 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: F0 09 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: F0 09 00 AB 70 00 13 32 1E 67 22 05 6E 64 D6 [12:28:47]GetLastDocTimeStamp 1730032069 [12:28:47]current date 1730032147 [12:28:47]FM_GetShiftState [12:28:47]SAM_PROTO_GetShiftState [12:28:47]wFMCommunicate request_size=4 [12:28:47]MH_SAM_APDU [12:28:47]CAPDU: 80 13 01 00 [12:28:47]Write to MH i2c: E2 08 00 AC 70 80 13 01 00 00 00 00 00 99 [12:28:47]Write i2c OK [12:28:47]MH_I2C_Read... [12:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:47]Read from MH i2c: E2 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 0E 00 [12:28:47]MH_I2C_Read... [12:28:47]Read from MH i2c: E2 0E 00 AC 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DA [12:28:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:28:47]wFMCommunicate OK [12:28:47]SAM_PROTO_GetShiftState done [12:28:47]FM_GetShiftState done [12:28:47]opened in 1729989159 [12:28:47]opened+sec_in_day 1730075559 [12:28:47]quantity*price = 100015 [12:28:47]sum+1 = 100017 [12:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 171 27.10.2024 12:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192139 ФПД: 32305025316255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192139&fm=32305025316255&tin=02508201610067®Number=0000000000091776&sum=100000 [12:28:48]StoreToDocumentArchive [12:28:48]shift 542 fd 192139 [12:28:48]save to /storage/0542/doc_00192139 [12:28:48]save last doc name /storage/0542/doc_00192139 to /storage/kkm_last_doc_name [12:28:48]save OK [12:28:48]Clear old archive folders... [12:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:48]tlvbuf is 0172E750 [12:28:48]SAM_PROTO_ClearQueue [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 09 00 00 [12:28:48]Write to MH i2c: E2 08 00 B9 70 80 09 00 00 00 00 00 00 9B [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 B9 70 00 90 00 9D [12:28:48]RAPDU: 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_ClearQueue done [12:28:48]KKMCreateOFDPacket [12:28:48]OFDProtocolAddRootSTLVToBuf [12:28:48]FM_MakeSignedData [12:28:48]FM_MakeSignedData [12:28:48]SAM_PROTO_SignData [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 0D 01 02 [12:28:48]Write to MH i2c: E2 08 00 BA 70 80 0D 01 02 00 00 00 00 A3 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 BA 70 00 90 00 9E [12:28:48]RAPDU: 90 00 [12:28:48]wFMCommunicate OK [12:28:48]wFMCommunicate request_size=255 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 13 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EE 02 00 35 04 06 00 1D [12:28:48]Write to MH i2c: E2 02 01 BB 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 13 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EE 02 00 35 04 06 00 1D 00 00 5E [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 BB 70 00 90 00 9F [12:28:48]RAPDU: 90 00 [12:28:48]wFMCommunicate OK [12:28:48]wFMCommunicate request_size=10 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 0D 02 02 05 61 99 8E F5 9F [12:28:48]Write to MH i2c: E2 0D 00 BC 70 80 0D 02 02 05 00 61 99 8E F5 9F 00 00 CC [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 03 00 BC 70 00 90 00 A0 [12:28:48]RAPDU: 90 00 [12:28:48]wFMCommunicate OK [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 0D 03 02 [12:28:48]Write to MH i2c: E2 08 00 BD 70 80 0D 03 02 00 00 00 00 A8 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0B 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0B 00 BD 70 00 04 2D 0D A5 09 C8 40 69 90 00 06 [12:28:48]RAPDU: 04 2D 0D A5 09 C8 40 69 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_SignData done [12:28:48]FM_MakeSignedData done [12:28:48]CreateOFDProtocolMessage [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 11 00 00 [12:28:48]Write to MH i2c: E2 08 00 BE 70 80 11 00 00 00 00 00 00 A8 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 17 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 17 00 BE 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [12:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:48]wFMCommunicate OK [12:28:48]CreateOFDProtocolMessage done [12:28:48]OFDSenderStorePacket 192139 [12:28:48]StoreOFDPacket docnum=192139 [12:28:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 DA 07 01 A9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 13 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EE 02 00 35 04 06 00 1D 61 99 8E F5 9F 04 2D 0D A5 09 C8 40 69 [12:28:48]CheckFolder [12:28:48]dirname=/storage/ofd_packets [12:28:48]CheckFolder done [12:28:48]ProducePacketName [12:28:48]name=ofd_packets/00192139 [12:28:48]NVStorageSaveData ofd_packets/00192139 [12:28:48]File name is /storage/ofd_packets/00192139 [12:28:48]Write 301 bytes [12:28:48]NVStorageSaveData done [12:28:48]OFDSenderStorePacket done [12:28:48]KKMCreateOFDPacket done [12:28:48]NVStorageSaveData kkm_last_timestamp [12:28:48]File name is /storage/kkm_last_timestamp [12:28:48]Write 4 bytes [12:28:48]NVStorageSaveData done [12:28:48]ExternCall_PrintAddStr [12:28:48]wPrintStart [12:28:48]Write to MH i2c: 01 00 00 BF 70 2F [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 07 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 07 00 BF 70 00 00 00 00 00 FF 0F 44 [12:28:48]RasterBufferAndPrint [12:28:48]line Счет N : (1)31450 [12:28:48]line ИНН: 02508201610067 [12:28:48]line Контрольно-Кассовый Чек [12:28:48]line ПРОДАЖА [12:28:48]line ТРК (МРК, ГНК) : 21 [12:28:48]line Товар: 2710124130 [12:28:48]line Аи-92-К-5 [12:28:48]line 14.950 * 66.90 [12:28:48]line = 1000.16 [12:28:48]line НДС 12% НСП 1% [12:28:48]line > о реализуемом товаре [12:28:48]line ОКРУГЛЕНИЕ: -0.16 [12:28:48]line ИТОГО: 1000.00 [12:28:48]line Внесено: 1000.00 [12:28:48]line СДАЧА: 0.00 [12:28:48]line НСП 1% : 8.85 [12:28:48]line НДС 12% : 106.21 [12:28:48]line Наличными: 1000.00 [12:28:48]line Безнал.: 0.00 [12:28:48]line Место: АЗС № 170 "Партнер Нефть" [12:28:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:28:48]line СНО: Общий режим [12:28:48]line Чек 171 27.10.2024 12:29 [12:28:48]line Смена: 542 ФФД: 1.0 [12:28:48]line ЗНМ: 0300000110 [12:28:48]line РНМ: 0000000000091776 [12:28:48]line Версия ККМ: 001 [12:28:48]line ФМ: 0000000000871754 [12:28:48]line ФД: 192139 [12:28:48]line ФПД: 32305025316255 [12:28:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192139&fm=32305025316255&tin=02508201610067®Number=0000000000091776&sum=100000 [12:28:49]OFD Sender: Processing packet 192139 [packets to send 75, broken 74] [12:28:49]ProducePacketName [12:28:49]name=ofd_packets/00192139 [12:28:49]OFD Sender: To server: pG, [12:28:49]CommunicateWithHost lk.salyk.kg:30040 [12:28:49]ConnectInit lk.salyk.kg [12:28:49]written 0, free lines is 4095 [12:28:49]Connected sock=8 [12:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 DA 07 01 A9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 13 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EE 02 00 35 04 06 00 1D 61 99 8E F5 9F 04 2D 0D A5 09 C8 40 69 [12:28:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 E4 47 00 04 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EE 02 00 F4 03 04 00 DB D6 1D 67 B6 04 01 00 00 40 31 DB 62 80 6B 49 D9 [12:28:49]CommunicateWithHost err = 0 [12:28:49]CheckOFDResponse [12:28:49]1017 (14) - 77093643461234 [12:28:49]1041 (16) - 0000000000871754 [12:28:49]1040 (4) - 192139 [12:28:49]1012 (4) - 27.10.2024 05:59 [12:28:49]1206 (1) - 0 [12:28:49]OFD Sender: Remove packet 192139 [12:28:49]ProducePacketName [12:28:49]name=ofd_packets/00192139 [12:28:49]NVStorageDeleteData [12:28:49]Write to MH i2c: 01 00 00 EA 70 5A [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 07 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 07 00 EA 70 00 00 00 00 00 C2 0C 2F [12:28:49]RasterBufferAndPrint [12:28:49]line [12:28:49]line [12:28:49]line [12:28:49]line [12:28:49]line [12:28:49]written 0, free lines is 3273 [12:28:49]MH_Cut [12:28:49]Write to MH i2c: D1 01 00 F1 70 01 33 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: D1 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: D1 01 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: D1 01 00 F1 70 00 32 [12:28:49]Write to MH i2c: 01 00 00 F2 70 62 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:50]OFD Sender: No OFD packet to send [12:28:50]*** Cut start [12:28:50]*** Partial cut [12:28:50]*** CUTSNS_PIN = 1 [12:28:50]*** CUTSNS_PIN = 0 [12:28:50]*** Brake cut motor [12:28:51]Read from MH i2c: 01 [12:28:51]MH_I2C_Read... [12:28:51]*** Stop cut motor [12:28:51]*** Cut end [12:28:51]Read from MH i2c: 01 07 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: 01 07 00 F2 70 00 00 00 00 00 FF 0F 77 [12:28:51]process_action close_receipt done [12:28:51]requested_data is exist [12:28:51]produce_requested_data [12:28:51]requested_item fm.sn is exist - process it [12:28:51]wFMCommunicate request_size=4 [12:28:51]MH_SAM_APDU [12:28:51]CAPDU: 80 11 00 00 [12:28:51]Write to MH i2c: E2 08 00 F3 70 80 11 00 00 00 00 00 00 DD [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 17 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 17 00 F3 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [12:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:51]wFMCommunicate OK [12:28:51]requested_item fd.num is exist - process it [12:28:51]SAM_PROTO_GetFieldsCounters [12:28:51]wFMCommunicate request_size=4 [12:28:51]MH_SAM_APDU [12:28:51]CAPDU: 80 13 00 00 [12:28:51]Write to MH i2c: E2 08 00 F4 70 80 13 00 00 00 00 00 00 E0 [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 62 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 62 00 F4 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [12:28:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:51]wFMCommunicate OK [12:28:51]SAM_PROTO_GetFieldsCounters done [12:28:51]requested_item shift.num is exist - process it [12:28:51]requested_item shift.opened is exist - process it [12:28:51]req_shift_opened [12:28:51]FM_GetShiftState [12:28:51]SAM_PROTO_GetShiftState [12:28:51]wFMCommunicate request_size=4 [12:28:51]MH_SAM_APDU [12:28:51]CAPDU: 80 13 01 00 [12:28:51]Write to MH i2c: E2 08 00 F5 70 80 13 01 00 00 00 00 00 E2 [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 0E 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 0E 00 F5 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 23 [12:28:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:28:51]wFMCommunicate OK [12:28:51]SAM_PROTO_GetShiftState done [12:28:51]FM_GetShiftState done [12:28:51]req_shift_opened done [12:28:51]requested_item shift.open_date is exist - process it [12:28:51]req_shift_open_date [12:28:51]req_shift_open_date done [12:28:51]produce_requested_data done [12:28:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192139,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:28:51]process_action_free close_receipt [12:28:51]json_value_free [12:28:51]json_value_free done [12:28:51]process_json_proto returns [12:28:51]Send response to host [12:28:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192139,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:28:51]free response buf [12:28:51]execute_script done [12:28:51]execute_script returns [12:28:51]free content buf [12:28:51]Sock 5.Close socket [12:28:51]Sock 5.Thread stoped [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:38]accept exits with 6 [12:29:38]New connection [12:29:38]New thread 3066817892 created [12:29:38]Thread 3066961252 joined [12:29:38]Waiting for new connection... [12:29:38] Sock 6.Parse request [12:29:38]Sock 6.Check first char [12:29:38]Sock 6.First char is OK [12:29:38]request: POST /json_proto HTTP/1.0 [12:29:38]Method: POST [12:29:38]URL: /json_proto [12:29:38]Method is POST - this is cgi request [12:29:38]url: /json_proto [12:29:38]query_string will be loaded in cgi processing [12:29:38]execute_cgi json_proto POST (null) [12:29:38]execute_cgi path=json_proto method=POST [12:29:38]POST find Content-Length [12:29:38]Host: 172.17.63.131:8080 [12:29:38]Content-Length: 676 [12:29:38]Content-Type: application/json [12:29:38] [12:29:38]POST finish read [12:29:38]Found Content-Length = 676 [12:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:38]execute_script... [12:29:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:38]POST & json_proto [12:29:38]process_json_proto [12:29:38]json parsed OK: [12:29:38]protocol is kg_v1.0 [12:29:38]action value=close_receipt [12:29:38]process_action close_receipt [12:29:38]cmd_close_receipt [12:29:38]MH_GetDate [12:29:38]Write to MH i2c: F0 00 00 F6 70 55 [12:29:38]Write i2c OK [12:29:38]MH_I2C_Read... [12:29:38]Read from MH i2c: F0 [12:29:38]MH_I2C_Read... [12:29:38]Read from MH i2c: F0 09 00 [12:29:38]MH_I2C_Read... [12:29:38]Read from MH i2c: F0 09 00 F6 70 00 46 32 1E 67 22 05 6E 64 54 [12:29:38]GetLastDocTimeStamp 1730032147 [12:29:38]current date 1730032198 [12:29:38]FM_GetShiftState [12:29:38]SAM_PROTO_GetShiftState [12:29:38]wFMCommunicate request_size=4 [12:29:38]MH_SAM_APDU [12:29:38]CAPDU: 80 13 01 00 [12:29:38]Write to MH i2c: E2 08 00 F7 70 80 13 01 00 00 00 00 00 E4 [12:29:38]Write i2c OK [12:29:38]MH_I2C_Read... [12:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:38]Read from MH i2c: E2 [12:29:38]MH_I2C_Read... [12:29:38]Read from MH i2c: E2 0E 00 [12:29:38]MH_I2C_Read... [12:29:38]Read from MH i2c: E2 0E 00 F7 70 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 25 [12:29:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:29:38]wFMCommunicate OK [12:29:38]SAM_PROTO_GetShiftState done [12:29:38]FM_GetShiftState done [12:29:38]opened in 1729989159 [12:29:38]opened+sec_in_day 1730075559 [12:29:38]quantity*price = 50041 [12:29:38]sum+1 = 50042 [12:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 172 27.10.2024 12:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192140 ФПД: 113653715541100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192140&fm=113653715541100&tin=02508201610067®Number=0000000000091776&sum=50000 [12:29:39]StoreToDocumentArchive [12:29:39]shift 542 fd 192140 [12:29:39]save to /storage/0542/doc_00192140 [12:29:39]save last doc name /storage/0542/doc_00192140 to /storage/kkm_last_doc_name [12:29:39]save OK [12:29:39]Clear old archive folders... [12:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:39]tlvbuf is 01960CB0 [12:29:39]SAM_PROTO_ClearQueue [12:29:39]wFMCommunicate request_size=4 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 09 00 00 [12:29:39]Write to MH i2c: E2 08 00 04 71 80 09 00 00 00 00 00 00 E7 [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 04 71 00 90 00 E9 [12:29:39]RAPDU: 90 00 [12:29:39]wFMCommunicate OK [12:29:39]SAM_PROTO_ClearQueue done [12:29:39]KKMCreateOFDPacket [12:29:39]OFDProtocolAddRootSTLVToBuf [12:29:39]FM_MakeSignedData [12:29:39]FM_MakeSignedData [12:29:39]SAM_PROTO_SignData [12:29:39]wFMCommunicate request_size=4 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 0D 01 02 [12:29:39]Write to MH i2c: E2 08 00 05 71 80 0D 01 02 00 00 00 00 EF [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 05 71 00 90 00 EA [12:29:39]RAPDU: 90 00 [12:29:39]wFMCommunicate OK [12:29:39]wFMCommunicate request_size=255 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 46 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EE 02 00 35 04 06 00 67 [12:29:39]Write to MH i2c: E2 02 01 06 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 46 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EE 02 00 35 04 06 00 67 00 00 2F [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 06 71 00 90 00 EB [12:29:39]RAPDU: 90 00 [12:29:39]wFMCommunicate OK [12:29:39]wFMCommunicate request_size=10 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 0D 02 02 05 5E 11 57 9C 6C [12:29:39]Write to MH i2c: E2 0D 00 07 71 80 0D 02 02 05 00 5E 11 57 9C 6C 00 00 CA [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 03 00 07 71 00 90 00 EC [12:29:39]RAPDU: 90 00 [12:29:39]wFMCommunicate OK [12:29:39]wFMCommunicate request_size=4 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 0D 03 02 [12:29:39]Write to MH i2c: E2 08 00 08 71 80 0D 03 02 00 00 00 00 F4 [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 0B 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 0B 00 08 71 00 FA 14 29 9E 8A 0E 48 88 90 00 32 [12:29:39]RAPDU: FA 14 29 9E 8A 0E 48 88 90 00 [12:29:39]wFMCommunicate OK [12:29:39]SAM_PROTO_SignData done [12:29:39]FM_MakeSignedData done [12:29:39]CreateOFDProtocolMessage [12:29:39]wFMCommunicate request_size=4 [12:29:39]MH_SAM_APDU [12:29:39]CAPDU: 80 11 00 00 [12:29:39]Write to MH i2c: E2 08 00 09 71 80 11 00 00 00 00 00 00 F4 [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:39]Read from MH i2c: E2 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 17 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: E2 17 00 09 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [12:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:29:39]wFMCommunicate OK [12:29:39]CreateOFDProtocolMessage done [12:29:39]OFDSenderStorePacket 192140 [12:29:39]StoreOFDPacket docnum=192140 [12:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8A 36 07 01 7D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 46 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EE 02 00 35 04 06 00 67 5E 11 57 9C 6C FA 14 29 9E 8A 0E 48 88 [12:29:39]CheckFolder [12:29:39]dirname=/storage/ofd_packets [12:29:39]CheckFolder done [12:29:39]ProducePacketName [12:29:39]name=ofd_packets/00192140 [12:29:39]NVStorageSaveData ofd_packets/00192140 [12:29:39]File name is /storage/ofd_packets/00192140 [12:29:39]Write 301 bytes [12:29:39]NVStorageSaveData done [12:29:39]OFDSenderStorePacket done [12:29:39]KKMCreateOFDPacket done [12:29:39]NVStorageSaveData kkm_last_timestamp [12:29:39]File name is /storage/kkm_last_timestamp [12:29:39]Write 4 bytes [12:29:39]NVStorageSaveData done [12:29:39]ExternCall_PrintAddStr [12:29:39]wPrintStart [12:29:39]Write to MH i2c: 01 00 00 0A 71 7B [12:29:39]Write i2c OK [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: 01 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: 01 07 00 [12:29:39]MH_I2C_Read... [12:29:39]Read from MH i2c: 01 07 00 0A 71 00 00 00 00 00 FF 0F 90 [12:29:39]RasterBufferAndPrint [12:29:39]line Счет N : (1)31451 [12:29:39]line ИНН: 02508201610067 [12:29:39]line Контрольно-Кассовый Чек [12:29:39]line ПРОДАЖА [12:29:39]line ТРК (МРК, ГНК) : 12 [12:29:39]line Товар: 2710124130 [12:29:39]line Аи-92-К-5 [12:29:39]line 7.480 * 66.90 [12:29:39]line = 500.41 [12:29:39]line НДС 12% НСП 1% [12:29:39]line > о реализуемом товаре [12:29:39]line ОКРУГЛЕНИЕ: -0.41 [12:29:39]line ИТОГО: 500.00 [12:29:39]line Внесено: 500.00 [12:29:39]line СДАЧА: 0.00 [12:29:39]line НСП 1% : 4.43 [12:29:39]line НДС 12% : 53.14 [12:29:39]line Наличными: 500.00 [12:29:39]line Безнал.: 0.00 [12:29:39]line Место: АЗС № 170 "Партнер Нефть" [12:29:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:29:39]line СНО: Общий режим [12:29:39]line Чек 172 27.10.2024 12:29 [12:29:39]line Смена: 542 ФФД: 1.0 [12:29:39]line ЗНМ: 0300000110 [12:29:39]line РНМ: 0000000000091776 [12:29:39]line Версия ККМ: 001 [12:29:39]line ФМ: 0000000000871754 [12:29:39]line ФД: 192140 [12:29:39]line ФПД: 113653715541100 [12:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192140&fm=113653715541100&tin=02508201610067®Number=0000000000091776&sum=50000 [12:29:40]OFD Sender: Processing packet 192140 [packets to send 75, broken 74] [12:29:40]ProducePacketName [12:29:40]name=ofd_packets/00192140 [12:29:40]OFD Sender: To server: pG, [12:29:40]CommunicateWithHost lk.salyk.kg:30040 [12:29:40]ConnectInit lk.salyk.kg [12:29:40]written 0, free lines is 4095 [12:29:40]Connected sock=8 [12:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8A 36 07 01 7D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 46 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EE 02 00 35 04 06 00 67 5E 11 57 9C 6C FA 14 29 9E 8A 0E 48 88 [12:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 56 47 00 99 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EE 02 00 F4 03 04 00 0D D7 1D 67 B6 04 01 00 00 20 F2 2D 37 A0 65 2B BA [12:29:40]CommunicateWithHost err = 0 [12:29:40]CheckOFDResponse [12:29:40]1017 (14) - 77093643461234 [12:29:40]1041 (16) - 0000000000871754 [12:29:40]1040 (4) - 192140 [12:29:40]1012 (4) - 27.10.2024 06:00 [12:29:40]1206 (1) - 0 [12:29:40]OFD Sender: Remove packet 192140 [12:29:40]ProducePacketName [12:29:40]name=ofd_packets/00192140 [12:29:40]NVStorageDeleteData [12:29:40]Write to MH i2c: 01 00 00 35 71 A6 [12:29:40]Write i2c OK [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: 01 [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: 01 07 00 [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: 01 07 00 35 71 00 00 00 00 00 B1 0C 6A [12:29:40]RasterBufferAndPrint [12:29:40]line [12:29:40]line [12:29:40]line [12:29:40]line [12:29:40]line [12:29:40]written 0, free lines is 3257 [12:29:40]MH_Cut [12:29:40]Write to MH i2c: D1 01 00 3C 71 01 7F [12:29:40]Write i2c OK [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: D1 [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: D1 01 00 [12:29:40]MH_I2C_Read... [12:29:40]Read from MH i2c: D1 01 00 3C 71 00 7E [12:29:40]Write to MH i2c: 01 00 00 3D 71 AE [12:29:40]Write i2c OK [12:29:40]MH_I2C_Read... [12:29:40]OFD Sender: No OFD packet to send [12:29:41]*** Cut start [12:29:41]*** Partial cut [12:29:41]*** CUTSNS_PIN = 1 [12:29:41]*** CUTSNS_PIN = 0 [12:29:41]*** Brake cut motor [12:29:42]Read from MH i2c: 01 [12:29:42]MH_I2C_Read... [12:29:42]*** Stop cut motor [12:29:42]*** Cut end [12:29:42]Read from MH i2c: 01 07 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: 01 07 00 3D 71 00 00 00 00 00 FF 0F C3 [12:29:42]process_action close_receipt done [12:29:42]requested_data is exist [12:29:42]produce_requested_data [12:29:42]requested_item fm.sn is exist - process it [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 11 00 00 [12:29:42]Write to MH i2c: E2 08 00 3E 71 80 11 00 00 00 00 00 00 29 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 17 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 17 00 3E 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [12:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:29:42]wFMCommunicate OK [12:29:42]requested_item fd.num is exist - process it [12:29:42]SAM_PROTO_GetFieldsCounters [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 13 00 00 [12:29:42]Write to MH i2c: E2 08 00 3F 71 80 13 00 00 00 00 00 00 2C [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 62 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 62 00 3F 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:42]wFMCommunicate OK [12:29:42]SAM_PROTO_GetFieldsCounters done [12:29:42]requested_item shift.num is exist - process it [12:29:42]requested_item shift.opened is exist - process it [12:29:42]req_shift_opened [12:29:42]FM_GetShiftState [12:29:42]SAM_PROTO_GetShiftState [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 13 01 00 [12:29:42]Write to MH i2c: E2 08 00 40 71 80 13 01 00 00 00 00 00 2E [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 0E 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 0E 00 40 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6F [12:29:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:29:42]wFMCommunicate OK [12:29:42]SAM_PROTO_GetShiftState done [12:29:42]FM_GetShiftState done [12:29:42]req_shift_opened done [12:29:42]requested_item shift.open_date is exist - process it [12:29:42]req_shift_open_date [12:29:42]req_shift_open_date done [12:29:42]produce_requested_data done [12:29:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192140,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:29:42]process_action_free close_receipt [12:29:42]json_value_free [12:29:42]json_value_free done [12:29:42]process_json_proto returns [12:29:42]Send response to host [12:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192140,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:29:42]free response buf [12:29:42]execute_script done [12:29:42]execute_script returns [12:29:42]free content buf [12:29:42]Sock 6.Close socket [12:29:42]Sock 6.Thread stoped [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:40]accept exits with 5 [12:31:40]New connection [12:31:40]New thread 3066961252 created [12:31:40]Thread 3066817892 joined [12:31:40]Waiting for new connection... [12:31:40] Sock 5.Parse request [12:31:40]Sock 5.Check first char [12:31:40]Sock 5.First char is OK [12:31:40]request: POST /json_proto HTTP/1.0 [12:31:40]Method: POST [12:31:40]URL: /json_proto [12:31:40]Method is POST - this is cgi request [12:31:40]url: /json_proto [12:31:40]query_string will be loaded in cgi processing [12:31:40]execute_cgi json_proto POST (null) [12:31:40]execute_cgi path=json_proto method=POST [12:31:40]POST find Content-Length [12:31:40]Host: 172.17.63.131:8080 [12:31:40]Content-Length: 676 [12:31:40]Content-Type: application/json [12:31:40] [12:31:40]POST finish read [12:31:40]Found Content-Length = 676 [12:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:40]execute_script... [12:31: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)31452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:40]POST & json_proto [12:31:40]process_json_proto [12:31:40]json parsed OK: [12:31:40]protocol is kg_v1.0 [12:31:40]action value=close_receipt [12:31:40]process_action close_receipt [12:31:40]cmd_close_receipt [12:31:40]MH_GetDate [12:31:40]Write to MH i2c: F0 00 00 41 71 A1 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: F0 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: F0 09 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: F0 09 00 41 71 00 C0 32 1E 67 22 05 6E 64 1A [12:31:40]GetLastDocTimeStamp 1730032198 [12:31:40]current date 1730032320 [12:31:40]FM_GetShiftState [12:31:40]SAM_PROTO_GetShiftState [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 13 01 00 [12:31:40]Write to MH i2c: E2 08 00 42 71 80 13 01 00 00 00 00 00 30 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0E 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0E 00 42 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 71 [12:31:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_GetShiftState done [12:31:40]FM_GetShiftState done [12:31:40]opened in 1729989159 [12:31:40]opened+sec_in_day 1730075559 [12:31:40]quantity*price = 60009 [12:31:40]sum+1 = 60010 [12:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 173 27.10.2024 12:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192141 ФПД: 230866519830861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192141&fm=230866519830861&tin=02508201610067®Number=0000000000091776&sum=60000 [12:31:41]StoreToDocumentArchive [12:31:41]shift 542 fd 192141 [12:31:41]save to /storage/0542/doc_00192141 [12:31:41]save last doc name /storage/0542/doc_00192141 to /storage/kkm_last_doc_name [12:31:41]save OK [12:31:41]Clear old archive folders... [12:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:41]tlvbuf is 01D13900 [12:31:41]SAM_PROTO_ClearQueue [12:31:41]wFMCommunicate request_size=4 [12:31:41]MH_SAM_APDU [12:31:41]CAPDU: 80 09 00 00 [12:31:41]Write to MH i2c: E2 08 00 4F 71 80 09 00 00 00 00 00 00 32 [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:41]Read from MH i2c: E2 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 03 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 03 00 4F 71 00 90 00 34 [12:31:41]RAPDU: 90 00 [12:31:41]wFMCommunicate OK [12:31:41]SAM_PROTO_ClearQueue done [12:31:41]KKMCreateOFDPacket [12:31:41]OFDProtocolAddRootSTLVToBuf [12:31:41]FM_MakeSignedData [12:31:41]FM_MakeSignedData [12:31:41]SAM_PROTO_SignData [12:31:41]wFMCommunicate request_size=4 [12:31:41]MH_SAM_APDU [12:31:41]CAPDU: 80 0D 01 02 [12:31:41]Write to MH i2c: E2 08 00 50 71 80 0D 01 02 00 00 00 00 3A [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:41]Read from MH i2c: E2 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 03 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 03 00 50 71 00 90 00 35 [12:31:41]RAPDU: 90 00 [12:31:41]wFMCommunicate OK [12:31:41]wFMCommunicate request_size=255 [12:31:41]MH_SAM_APDU [12:31: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C0 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EE 02 00 35 04 06 00 D1 [12:31:41]Write to MH i2c: E2 02 01 51 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C0 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EE 02 00 35 04 06 00 D1 00 00 3D [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 51 71 00 90 00 36 [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=10 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 0D 02 02 05 F8 CC E7 B1 4D [12:31:42]Write to MH i2c: E2 0D 00 52 71 80 0D 02 02 05 00 F8 CC E7 B1 4D 00 00 F0 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 03 00 52 71 00 90 00 37 [12:31:42]RAPDU: 90 00 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 0D 03 02 [12:31:42]Write to MH i2c: E2 08 00 53 71 80 0D 03 02 00 00 00 00 3F [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 0B 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 0B 00 53 71 00 62 06 31 88 B2 72 D5 C2 90 00 1C [12:31:42]RAPDU: 62 06 31 88 B2 72 D5 C2 90 00 [12:31:42]wFMCommunicate OK [12:31:42]SAM_PROTO_SignData done [12:31:42]FM_MakeSignedData done [12:31:42]CreateOFDProtocolMessage [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 11 00 00 [12:31:42]Write to MH i2c: E2 08 00 54 71 80 11 00 00 00 00 00 00 3F [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 17 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 17 00 54 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [12:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:31:42]wFMCommunicate OK [12:31:42]CreateOFDProtocolMessage done [12:31:42]OFDSenderStorePacket 192141 [12:31:42]StoreOFDPacket docnum=192141 [12:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 B8 07 01 06 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C0 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EE 02 00 35 04 06 00 D1 F8 CC E7 B1 4D 62 06 31 88 B2 72 D5 C2 [12:31:42]CheckFolder [12:31:42]dirname=/storage/ofd_packets [12:31:42]CheckFolder done [12:31:42]ProducePacketName [12:31:42]name=ofd_packets/00192141 [12:31:42]NVStorageSaveData ofd_packets/00192141 [12:31:42]File name is /storage/ofd_packets/00192141 [12:31:42]Write 301 bytes [12:31:42]NVStorageSaveData done [12:31:42]OFDSenderStorePacket done [12:31:42]KKMCreateOFDPacket done [12:31:42]NVStorageSaveData kkm_last_timestamp [12:31:42]File name is /storage/kkm_last_timestamp [12:31:42]Write 4 bytes [12:31:42]NVStorageSaveData done [12:31:42]ExternCall_PrintAddStr [12:31:42]wPrintStart [12:31:42]Write to MH i2c: 01 00 00 55 71 C6 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 07 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 07 00 55 71 00 00 00 00 00 FF 0F DB [12:31:42]RasterBufferAndPrint [12:31:42]line Счет N : (1)31452 [12:31:42]line ИНН: 02508201610067 [12:31:42]line Контрольно-Кассовый Чек [12:31:42]line ПРОДАЖА [12:31:42]line ТРК (МРК, ГНК) : 12 [12:31:42]line Товар: 2710124130 [12:31:42]line Аи-92-К-5 [12:31:42]line 8.970 * 66.90 [12:31:42]line = 600.09 [12:31:42]line НДС 12% НСП 1% [12:31:42]line > о реализуемом товаре [12:31:42]line ОКРУГЛЕНИЕ: -0.09 [12:31:42]line ИТОГО: 600.00 [12:31:42]line Внесено: 600.00 [12:31:42]line СДАЧА: 0.00 [12:31:42]line НСП 1% : 5.31 [12:31:42]line НДС 12% : 63.73 [12:31:42]line Наличными: 600.00 [12:31:42]line Безнал.: 0.00 [12:31:42]line Место: АЗС № 170 "Партнер Нефть" [12:31:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:31:42]line СНО: Общий режим [12:31:42]line Чек 173 27.10.2024 12:32 [12:31:42]line Смена: 542 ФФД: 1.0 [12:31:42]line ЗНМ: 0300000110 [12:31:42]line РНМ: 0000000000091776 [12:31:42]line Версия ККМ: 001 [12:31:42]line ФМ: 0000000000871754 [12:31:42]line ФД: 192141 [12:31:42]line ФПД: 230866519830861 [12:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192141&fm=230866519830861&tin=02508201610067®Number=0000000000091776&sum=60000 [12:31:42]OFD Sender: Processing packet 192141 [packets to send 75, broken 74] [12:31:42]ProducePacketName [12:31:42]name=ofd_packets/00192141 [12:31:42]OFD Sender: To server: pG, [12:31:42]CommunicateWithHost lk.salyk.kg:30040 [12:31:42]ConnectInit lk.salyk.kg [12:31:42]written 0, free lines is 4095 [12:31:42]Connected sock=6 [12:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 B8 07 01 06 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C0 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EE 02 00 35 04 06 00 D1 F8 CC E7 B1 4D 62 06 31 88 B2 72 D5 C2 [12:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F 75 47 00 B3 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EE 02 00 F4 03 04 00 88 D7 1D 67 B6 04 01 00 00 0E 17 B4 01 14 0A E9 10 [12:31:42]CommunicateWithHost err = 0 [12:31:42]CheckOFDResponse [12:31:42]1017 (14) - 77093643461234 [12:31:42]1041 (16) - 0000000000871754 [12:31:42]1040 (4) - 192141 [12:31:42]1012 (4) - 27.10.2024 06:02 [12:31:42]1206 (1) - 0 [12:31:42]OFD Sender: Remove packet 192141 [12:31:42]ProducePacketName [12:31:42]name=ofd_packets/00192141 [12:31:42]NVStorageDeleteData [12:31:42]Write to MH i2c: 01 00 00 80 71 F1 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 07 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 07 00 80 71 00 00 00 00 00 BF 0C C3 [12:31:42]RasterBufferAndPrint [12:31:42]line [12:31:42]line [12:31:42]line [12:31:42]line [12:31:42]line [12:31:42]written 0, free lines is 3272 [12:31:42]MH_Cut [12:31:42]Write to MH i2c: D1 01 00 87 71 01 CA [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: D1 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: D1 01 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: D1 01 00 87 71 00 C9 [12:31:42]Write to MH i2c: 01 00 00 88 71 F9 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:43]OFD Sender: No OFD packet to send [12:31:43]*** Cut start [12:31:43]*** Partial cut [12:31:43]*** CUTSNS_PIN = 1 [12:31:43]*** CUTSNS_PIN = 0 [12:31:44]*** Brake cut motor [12:31:44]Read from MH i2c: 01 [12:31:44]MH_I2C_Read... [12:31:44]*** Stop cut motor [12:31:44]*** Cut end [12:31:44]Read from MH i2c: 01 07 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: 01 07 00 88 71 00 00 00 00 00 FF 0F 0E [12:31:44]process_action close_receipt done [12:31:44]requested_data is exist [12:31:44]produce_requested_data [12:31:44]requested_item fm.sn is exist - process it [12:31:44]wFMCommunicate request_size=4 [12:31:44]MH_SAM_APDU [12:31:44]CAPDU: 80 11 00 00 [12:31:44]Write to MH i2c: E2 08 00 89 71 80 11 00 00 00 00 00 00 74 [12:31:44]Write i2c OK [12:31:44]MH_I2C_Read... [12:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:44]Read from MH i2c: E2 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 17 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 17 00 89 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [12:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:31:44]wFMCommunicate OK [12:31:44]requested_item fd.num is exist - process it [12:31:44]SAM_PROTO_GetFieldsCounters [12:31:44]wFMCommunicate request_size=4 [12:31:44]MH_SAM_APDU [12:31:44]CAPDU: 80 13 00 00 [12:31:44]Write to MH i2c: E2 08 00 8A 71 80 13 00 00 00 00 00 00 77 [12:31:44]Write i2c OK [12:31:44]MH_I2C_Read... [12:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:44]Read from MH i2c: E2 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 62 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 62 00 8A 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [12:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:44]wFMCommunicate OK [12:31:44]SAM_PROTO_GetFieldsCounters done [12:31:44]requested_item shift.num is exist - process it [12:31:44]requested_item shift.opened is exist - process it [12:31:44]req_shift_opened [12:31:44]FM_GetShiftState [12:31:44]SAM_PROTO_GetShiftState [12:31:44]wFMCommunicate request_size=4 [12:31:44]MH_SAM_APDU [12:31:44]CAPDU: 80 13 01 00 [12:31:44]Write to MH i2c: E2 08 00 8B 71 80 13 01 00 00 00 00 00 79 [12:31:44]Write i2c OK [12:31:44]MH_I2C_Read... [12:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:44]Read from MH i2c: E2 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 0E 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 0E 00 8B 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BA [12:31:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:31:44]wFMCommunicate OK [12:31:44]SAM_PROTO_GetShiftState done [12:31:44]FM_GetShiftState done [12:31:44]req_shift_opened done [12:31:44]requested_item shift.open_date is exist - process it [12:31:44]req_shift_open_date [12:31:44]req_shift_open_date done [12:31:44]produce_requested_data done [12:31:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192141,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:31:44]process_action_free close_receipt [12:31:44]json_value_free [12:31:44]json_value_free done [12:31:44]process_json_proto returns [12:31:44]Send response to host [12:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192141,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:31:44]free response buf [12:31:44]execute_script done [12:31:44]execute_script returns [12:31:44]free content buf [12:31:44]Sock 5.Close socket [12:31:44]Sock 5.Thread stoped [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:16]accept exits with 8 [12:32:16]New connection [12:32:16]New thread 3066817892 created [12:32:16]Thread 3066961252 joined [12:32:16]Waiting for new connection... [12:32:16] Sock 8.Parse request [12:32:16]Sock 8.Check first char [12:32:16]Sock 8.First char is OK [12:32:16]request: POST /json_proto HTTP/1.0 [12:32:16]Method: POST [12:32:16]URL: /json_proto [12:32:16]Method is POST - this is cgi request [12:32:16]url: /json_proto [12:32:16]query_string will be loaded in cgi processing [12:32:16]execute_cgi json_proto POST (null) [12:32:16]execute_cgi path=json_proto method=POST [12:32:16]POST find Content-Length [12:32:16]Host: 172.17.63.131:8080 [12:32:16]Content-Length: 676 [12:32:16]Content-Type: application/json [12:32:16] [12:32:16]POST finish read [12:32:16]Found Content-Length = 676 [12:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:16]execute_script... [12:32: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)31453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:16]POST & json_proto [12:32:16]process_json_proto [12:32:16]json parsed OK: [12:32:16]protocol is kg_v1.0 [12:32:16]action value=close_receipt [12:32:16]process_action close_receipt [12:32:16]cmd_close_receipt [12:32:16]MH_GetDate [12:32:16]Write to MH i2c: F0 00 00 8C 71 EC [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 09 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 09 00 8C 71 00 E5 32 1E 67 22 05 6E 64 8A [12:32:16]GetLastDocTimeStamp 1730032320 [12:32:16]current date 1730032357 [12:32:16]FM_GetShiftState [12:32:16]SAM_PROTO_GetShiftState [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 13 01 00 [12:32:16]Write to MH i2c: E2 08 00 8D 71 80 13 01 00 00 00 00 00 7B [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0E 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0E 00 8D 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BC [12:32:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_GetShiftState done [12:32:17]FM_GetShiftState done [12:32:17]opened in 1729989159 [12:32:17]opened+sec_in_day 1730075559 [12:32:17]quantity*price = 50041 [12:32:17]sum+1 = 50042 [12:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 174 27.10.2024 12:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192142 ФПД: 176568006275758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123237&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192142&fm=176568006275758&tin=02508201610067®Number=0000000000091776&sum=50000 [12:32:17]StoreToDocumentArchive [12:32:17]shift 542 fd 192142 [12:32:17]save to /storage/0542/doc_00192142 [12:32:17]save last doc name /storage/0542/doc_00192142 to /storage/kkm_last_doc_name [12:32:17]save OK [12:32:17]Clear old archive folders... [12:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:17]tlvbuf is 01A12020 [12:32:17]SAM_PROTO_ClearQueue [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 09 00 00 [12:32:17]Write to MH i2c: E2 08 00 9A 71 80 09 00 00 00 00 00 00 7D [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 9A 71 00 90 00 7F [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_ClearQueue done [12:32:17]KKMCreateOFDPacket [12:32:17]OFDProtocolAddRootSTLVToBuf [12:32:17]FM_MakeSignedData [12:32:17]FM_MakeSignedData [12:32:17]SAM_PROTO_SignData [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 01 02 [12:32:17]Write to MH i2c: E2 08 00 9B 71 80 0D 01 02 00 00 00 00 85 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 9B 71 00 90 00 80 [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=255 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EE 02 00 35 04 06 00 A0 [12:32:17]Write to MH i2c: E2 02 01 9C 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EE 02 00 35 04 06 00 A0 00 00 A1 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:18]Read from MH i2c: E2 03 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 03 00 9C 71 00 90 00 81 [12:32:18]RAPDU: 90 00 [12:32:18]wFMCommunicate OK [12:32:18]wFMCommunicate request_size=10 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 0D 02 02 05 96 71 4A F2 AE [12:32:18]Write to MH i2c: E2 0D 00 9D 71 80 0D 02 02 05 00 96 71 4A F2 AE 00 00 83 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 03 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 03 00 9D 71 00 90 00 82 [12:32:18]RAPDU: 90 00 [12:32:18]wFMCommunicate OK [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 0D 03 02 [12:32:18]Write to MH i2c: E2 08 00 9E 71 80 0D 03 02 00 00 00 00 8A [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0B 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0B 00 9E 71 00 EF A4 F3 C8 0D D4 29 B0 90 00 93 [12:32:18]RAPDU: EF A4 F3 C8 0D D4 29 B0 90 00 [12:32:18]wFMCommunicate OK [12:32:18]SAM_PROTO_SignData done [12:32:18]FM_MakeSignedData done [12:32:18]CreateOFDProtocolMessage [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 11 00 00 [12:32:18]Write to MH i2c: E2 08 00 9F 71 80 11 00 00 00 00 00 00 8A [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 17 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 17 00 9F 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [12:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:18]wFMCommunicate OK [12:32:18]CreateOFDProtocolMessage done [12:32:18]OFDSenderStorePacket 192142 [12:32:18]StoreOFDPacket docnum=192142 [12:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 07 07 01 73 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EE 02 00 35 04 06 00 A0 96 71 4A F2 AE EF A4 F3 C8 0D D4 29 B0 [12:32:18]CheckFolder [12:32:18]dirname=/storage/ofd_packets [12:32:18]CheckFolder done [12:32:18]ProducePacketName [12:32:18]name=ofd_packets/00192142 [12:32:18]NVStorageSaveData ofd_packets/00192142 [12:32:18]File name is /storage/ofd_packets/00192142 [12:32:18]Write 301 bytes [12:32:18]NVStorageSaveData done [12:32:18]OFDSenderStorePacket done [12:32:18]KKMCreateOFDPacket done [12:32:18]NVStorageSaveData kkm_last_timestamp [12:32:18]File name is /storage/kkm_last_timestamp [12:32:18]Write 4 bytes [12:32:18]NVStorageSaveData done [12:32:18]ExternCall_PrintAddStr [12:32:18]wPrintStart [12:32:18]Write to MH i2c: 01 00 00 A0 71 11 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 07 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 07 00 A0 71 00 00 00 00 00 FF 0F 26 [12:32:18]RasterBufferAndPrint [12:32:18]line Счет N : (1)31453 [12:32:18]line ИНН: 02508201610067 [12:32:18]line Контрольно-Кассовый Чек [12:32:18]line ПРОДАЖА [12:32:18]line ТРК (МРК, ГНК) : 12 [12:32:18]line Товар: 2710124130 [12:32:18]line Аи-92-К-5 [12:32:18]line 7.480 * 66.90 [12:32:18]line = 500.41 [12:32:18]line НДС 12% НСП 1% [12:32:18]line > о реализуемом товаре [12:32:18]line ОКРУГЛЕНИЕ: -0.41 [12:32:18]line ИТОГО: 500.00 [12:32:18]line Внесено: 500.00 [12:32:18]line СДАЧА: 0.00 [12:32:18]line НСП 1% : 4.43 [12:32:18]line НДС 12% : 53.14 [12:32:18]line Наличными: 500.00 [12:32:18]line Безнал.: 0.00 [12:32:18]line Место: АЗС № 170 "Партнер Нефть" [12:32:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:32:18]line СНО: Общий режим [12:32:18]line Чек 174 27.10.2024 12:32 [12:32:18]line Смена: 542 ФФД: 1.0 [12:32:18]line ЗНМ: 0300000110 [12:32:18]line РНМ: 0000000000091776 [12:32:18]line Версия ККМ: 001 [12:32:18]line ФМ: 0000000000871754 [12:32:18]line ФД: 192142 [12:32:18]line ФПД: 176568006275758 [12:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123237&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192142&fm=176568006275758&tin=02508201610067®Number=0000000000091776&sum=50000 [12:32:18]OFD Sender: Processing packet 192142 [packets to send 75, broken 74] [12:32:18]ProducePacketName [12:32:18]name=ofd_packets/00192142 [12:32:18]OFD Sender: To server: pG, [12:32:18]CommunicateWithHost lk.salyk.kg:30040 [12:32:18]ConnectInit lk.salyk.kg [12:32:18]written 0, free lines is 4095 [12:32:18]Connected sock=6 [12:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 18 07 07 01 73 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E5 32 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EE 02 00 35 04 06 00 A0 96 71 4A F2 AE EF A4 F3 C8 0D D4 29 B0 [12:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 37 47 00 85 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EE 02 00 F4 03 04 00 AC D7 1D 67 B6 04 01 00 00 31 DC E9 10 83 80 CE DC [12:32:19]CommunicateWithHost err = 0 [12:32:19]CheckOFDResponse [12:32:19]1017 (14) - 77093643461234 [12:32:19]1041 (16) - 0000000000871754 [12:32:19]1040 (4) - 192142 [12:32:19]1012 (4) - 27.10.2024 06:03 [12:32:19]1206 (1) - 0 [12:32:19]OFD Sender: Remove packet 192142 [12:32:19]ProducePacketName [12:32:19]name=ofd_packets/00192142 [12:32:19]NVStorageDeleteData [12:32:19]Write to MH i2c: 01 00 00 CB 71 3C [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: 01 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: 01 07 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: 01 07 00 CB 71 00 00 00 00 00 AA 0C F9 [12:32:19]RasterBufferAndPrint [12:32:19]line [12:32:19]line [12:32:19]line [12:32:19]line [12:32:19]line [12:32:19]written 0, free lines is 3248 [12:32:19]MH_Cut [12:32:19]Write to MH i2c: D1 01 00 D2 71 01 15 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: D1 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: D1 01 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: D1 01 00 D2 71 00 14 [12:32:19]Write to MH i2c: 01 00 00 D3 71 44 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]OFD Sender: No OFD packet to send [12:32:20]*** Cut start [12:32:20]*** Partial cut [12:32:20]*** CUTSNS_PIN = 1 [12:32:20]*** CUTSNS_PIN = 0 [12:32:20]*** Brake cut motor [12:32:20]Read from MH i2c: 01 [12:32:20]MH_I2C_Read... [12:32:20]*** Stop cut motor [12:32:20]*** Cut end [12:32:20]Read from MH i2c: 01 07 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 D3 71 00 00 00 00 00 FF 0F 59 [12:32:20]process_action close_receipt done [12:32:20]requested_data is exist [12:32:20]produce_requested_data [12:32:20]requested_item fm.sn is exist - process it [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 11 00 00 [12:32:20]Write to MH i2c: E2 08 00 D4 71 80 11 00 00 00 00 00 00 BF [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 D4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [12:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:20]wFMCommunicate OK [12:32:20]requested_item fd.num is exist - process it [12:32:20]SAM_PROTO_GetFieldsCounters [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 00 00 [12:32:20]Write to MH i2c: E2 08 00 D5 71 80 13 00 00 00 00 00 00 C2 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 D5 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [12:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetFieldsCounters done [12:32:20]requested_item shift.num is exist - process it [12:32:20]requested_item shift.opened is exist - process it [12:32:20]req_shift_opened [12:32:20]FM_GetShiftState [12:32:20]SAM_PROTO_GetShiftState [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 01 00 [12:32:20]Write to MH i2c: E2 08 00 D6 71 80 13 01 00 00 00 00 00 C4 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 D6 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 05 [12:32:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetShiftState done [12:32:20]FM_GetShiftState done [12:32:20]req_shift_opened done [12:32:20]requested_item shift.open_date is exist - process it [12:32:20]req_shift_open_date [12:32:20]req_shift_open_date done [12:32:20]produce_requested_data done [12:32:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192142,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:32:20]process_action_free close_receipt [12:32:20]json_value_free [12:32:20]json_value_free done [12:32:20]process_json_proto returns [12:32:20]Send response to host [12:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192142,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:32:20]free response buf [12:32:20]execute_script done [12:32:20]execute_script returns [12:32:20]free content buf [12:32:20]Sock 8.Close socket [12:32:20]Sock 8.Thread stoped [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:44]accept exits with 5 [12:33:44]New connection [12:33:44]New thread 3066961252 created [12:33:44]Thread 3066817892 joined [12:33:44]Waiting for new connection... [12:33:44] Sock 5.Parse request [12:33:44]Sock 5.Check first char [12:33:44]Sock 5.First char is OK [12:33:44]request: POST /json_proto HTTP/1.0 [12:33:44]Method: POST [12:33:44]URL: /json_proto [12:33:44]Method is POST - this is cgi request [12:33:44]url: /json_proto [12:33:44]query_string will be loaded in cgi processing [12:33:44]execute_cgi json_proto POST (null) [12:33:44]execute_cgi path=json_proto method=POST [12:33:44]POST find Content-Length [12:33:44]Host: 172.17.63.131:8080 [12:33:44]Content-Length: 681 [12:33:44]Content-Type: application/json [12:33:44] [12:33:44]POST finish read [12:33:44]Found Content-Length = 681 [12:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:44]execute_script... [12:33:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:44]POST & json_proto [12:33:44]process_json_proto [12:33:44]json parsed OK: [12:33:44]protocol is kg_v1.0 [12:33:44]action value=close_receipt [12:33:44]process_action close_receipt [12:33:44]cmd_close_receipt [12:33:44]MH_GetDate [12:33:44]Write to MH i2c: F0 00 00 D7 71 37 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 D7 71 00 3D 33 1E 67 22 05 6E 64 2E [12:33:44]GetLastDocTimeStamp 1730032357 [12:33:44]current date 1730032445 [12:33:44]FM_GetShiftState [12:33:44]SAM_PROTO_GetShiftState [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 13 01 00 [12:33:44]Write to MH i2c: E2 08 00 D8 71 80 13 01 00 00 00 00 00 C6 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0E 00 D8 71 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 07 [12:33:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_GetShiftState done [12:33:45]FM_GetShiftState done [12:33:45]opened in 1729989159 [12:33:45]opened+sec_in_day 1730075559 [12:33:45]quantity*price = 100015 [12:33:45]sum+1 = 100017 [12:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 175 27.10.2024 12:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192143 ФПД: 13774718946827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192143&fm=13774718946827&tin=02508201610067®Number=0000000000091776&sum=100000 [12:33:46]StoreToDocumentArchive [12:33:46]shift 542 fd 192143 [12:33:46]save to /storage/0542/doc_00192143 [12:33:46]save last doc name /storage/0542/doc_00192143 to /storage/kkm_last_doc_name [12:33:46]save OK [12:33:46]Clear old archive folders... [12:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:46]tlvbuf is 01960C70 [12:33:46]SAM_PROTO_ClearQueue [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 09 00 00 [12:33:46]Write to MH i2c: E2 08 00 E5 71 80 09 00 00 00 00 00 00 C8 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 E5 71 00 90 00 CA [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_ClearQueue done [12:33:46]KKMCreateOFDPacket [12:33:46]OFDProtocolAddRootSTLVToBuf [12:33:46]FM_MakeSignedData [12:33:46]FM_MakeSignedData [12:33:46]SAM_PROTO_SignData [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 01 02 [12:33:46]Write to MH i2c: E2 08 00 E6 71 80 0D 01 02 00 00 00 00 D0 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 E6 71 00 90 00 CB [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=255 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3D 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EE 02 00 35 04 06 00 0C [12:33:46]Write to MH i2c: E2 02 01 E7 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3D 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EE 02 00 35 04 06 00 0C 00 00 AD [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 E7 71 00 90 00 CC [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=10 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 02 02 05 87 2D 3A CE 0B [12:33:46]Write to MH i2c: E2 0D 00 E8 71 80 0D 02 02 05 00 87 2D 3A CE 0B 00 00 A4 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 E8 71 00 90 00 CD [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 03 02 [12:33:46]Write to MH i2c: E2 08 00 E9 71 80 0D 03 02 00 00 00 00 D5 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 E9 71 00 0F 38 6A 56 CB 8E 44 01 90 00 7B [12:33:46]RAPDU: 0F 38 6A 56 CB 8E 44 01 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_SignData done [12:33:46]FM_MakeSignedData done [12:33:46]CreateOFDProtocolMessage [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 11 00 00 [12:33:46]Write to MH i2c: E2 08 00 EA 71 80 11 00 00 00 00 00 00 D5 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 EA 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [12:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:33:46]wFMCommunicate OK [12:33:46]CreateOFDProtocolMessage done [12:33:46]OFDSenderStorePacket 192143 [12:33:46]StoreOFDPacket docnum=192143 [12:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AC B5 07 01 39 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3D 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EE 02 00 35 04 06 00 0C 87 2D 3A CE 0B 0F 38 6A 56 CB 8E 44 01 [12:33:46]CheckFolder [12:33:46]dirname=/storage/ofd_packets [12:33:46]CheckFolder done [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00192143 [12:33:46]NVStorageSaveData ofd_packets/00192143 [12:33:46]File name is /storage/ofd_packets/00192143 [12:33:46]Write 301 bytes [12:33:46]NVStorageSaveData done [12:33:46]OFDSenderStorePacket done [12:33:46]KKMCreateOFDPacket done [12:33:46]NVStorageSaveData kkm_last_timestamp [12:33:46]File name is /storage/kkm_last_timestamp [12:33:46]Write 4 bytes [12:33:46]NVStorageSaveData done [12:33:46]ExternCall_PrintAddStr [12:33:46]wPrintStart [12:33:46]Write to MH i2c: 01 00 00 EB 71 5C [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 EB 71 00 00 00 00 00 FF 0F 71 [12:33:46]RasterBufferAndPrint [12:33:46]line Счет N : (1)31454 [12:33:46]line ИНН: 02508201610067 [12:33:46]line Контрольно-Кассовый Чек [12:33:46]line ПРОДАЖА [12:33:46]line ТРК (МРК, ГНК) : 12 [12:33:46]line Товар: 2710124130 [12:33:46]line Аи-92-К-5 [12:33:46]line 14.950 * 66.90 [12:33:46]line = 1000.16 [12:33:46]line НДС 12% НСП 1% [12:33:46]line > о реализуемом товаре [12:33:46]line ОКРУГЛЕНИЕ: -0.16 [12:33:46]line ИТОГО: 1000.00 [12:33:46]line Внесено: 1000.00 [12:33:46]line СДАЧА: 0.00 [12:33:46]line НСП 1% : 8.85 [12:33:46]line НДС 12% : 106.21 [12:33:46]line Наличными: 1000.00 [12:33:46]line Безнал.: 0.00 [12:33:46]line Место: АЗС № 170 "Партнер Нефть" [12:33:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:33:46]line СНО: Общий режим [12:33:46]line Чек 175 27.10.2024 12:34 [12:33:46]line Смена: 542 ФФД: 1.0 [12:33:46]line ЗНМ: 0300000110 [12:33:46]line РНМ: 0000000000091776 [12:33:46]line Версия ККМ: 001 [12:33:46]line ФМ: 0000000000871754 [12:33:46]line ФД: 192143 [12:33:46]line ФПД: 13774718946827 [12:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192143&fm=13774718946827&tin=02508201610067®Number=0000000000091776&sum=100000 [12:33:47]OFD Sender: Processing packet 192143 [packets to send 75, broken 74] [12:33:47]ProducePacketName [12:33:47]name=ofd_packets/00192143 [12:33:47]OFD Sender: To server: pG, [12:33:47]CommunicateWithHost lk.salyk.kg:30040 [12:33:47]ConnectInit lk.salyk.kg [12:33:47]written 0, free lines is 4095 [12:33:47]Connected sock=8 [12:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AC B5 07 01 39 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3D 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EE 02 00 35 04 06 00 0C 87 2D 3A CE 0B 0F 38 6A 56 CB 8E 44 01 [12:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A4 72 47 00 11 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EE 02 00 F4 03 04 00 04 D8 1D 67 B6 04 01 00 00 83 CA 36 34 B1 62 03 81 [12:33:47]CommunicateWithHost err = 0 [12:33:47]CheckOFDResponse [12:33:47]1017 (14) - 77093643461234 [12:33:47]1041 (16) - 0000000000871754 [12:33:47]1040 (4) - 192143 [12:33:47]1012 (4) - 27.10.2024 06:04 [12:33:47]1206 (1) - 0 [12:33:47]OFD Sender: Remove packet 192143 [12:33:47]ProducePacketName [12:33:47]name=ofd_packets/00192143 [12:33:47]NVStorageDeleteData [12:33:47]Write to MH i2c: 01 00 00 16 72 88 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: 01 07 00 16 72 00 00 00 00 00 B7 0C 52 [12:33:47]RasterBufferAndPrint [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]line [12:33:47]written 0, free lines is 3260 [12:33:47]MH_Cut [12:33:47]Write to MH i2c: D1 01 00 1D 72 01 61 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 01 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: D1 01 00 1D 72 00 60 [12:33:47]Write to MH i2c: 01 00 00 1E 72 90 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]OFD Sender: No OFD packet to send [12:33:48]*** Cut start [12:33:48]*** Partial cut [12:33:48]*** CUTSNS_PIN = 1 [12:33:48]*** CUTSNS_PIN = 0 [12:33:48]*** Brake cut motor [12:33:48]Read from MH i2c: 01 [12:33:48]MH_I2C_Read... [12:33:48]*** Stop cut motor [12:33:48]*** Cut end [12:33:48]Read from MH i2c: 01 07 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 1E 72 00 00 00 00 00 FF 0F A5 [12:33:48]process_action close_receipt done [12:33:48]requested_data is exist [12:33:48]produce_requested_data [12:33:48]requested_item fm.sn is exist - process it [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 11 00 00 [12:33:48]Write to MH i2c: E2 08 00 1F 72 80 11 00 00 00 00 00 00 0B [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 17 00 1F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [12:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:33:49]wFMCommunicate OK [12:33:49]requested_item fd.num is exist - process it [12:33:49]SAM_PROTO_GetFieldsCounters [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 00 00 [12:33:49]Write to MH i2c: E2 08 00 20 72 80 13 00 00 00 00 00 00 0E [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 62 00 20 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [12:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetFieldsCounters done [12:33:49]requested_item shift.num is exist - process it [12:33:49]requested_item shift.opened is exist - process it [12:33:49]req_shift_opened [12:33:49]FM_GetShiftState [12:33:49]SAM_PROTO_GetShiftState [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 01 00 [12:33:49]Write to MH i2c: E2 08 00 21 72 80 13 01 00 00 00 00 00 10 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 21 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 51 [12:33:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetShiftState done [12:33:49]FM_GetShiftState done [12:33:49]req_shift_opened done [12:33:49]requested_item shift.open_date is exist - process it [12:33:49]req_shift_open_date [12:33:49]req_shift_open_date done [12:33:49]produce_requested_data done [12:33:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192143,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:33:49]process_action_free close_receipt [12:33:49]json_value_free [12:33:49]json_value_free done [12:33:49]process_json_proto returns [12:33:49]Send response to host [12:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192143,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:33:49]free response buf [12:33:49]execute_script done [12:33:49]execute_script returns [12:33:49]free content buf [12:33:49]Sock 5.Close socket [12:33:49]Sock 5.Thread stoped [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:55]accept exits with 6 [12:35:55]New connection [12:35:55]New thread 3066817892 created [12:35:55]Thread 3066961252 joined [12:35:55]Waiting for new connection... [12:35:55] Sock 6.Parse request [12:35:55]Sock 6.Check first char [12:35:55]Sock 6.First char is OK [12:35:55]request: POST /json_proto HTTP/1.0 [12:35:55]Method: POST [12:35:55]URL: /json_proto [12:35:55]Method is POST - this is cgi request [12:35:55]url: /json_proto [12:35:55]query_string will be loaded in cgi processing [12:35:55]execute_cgi json_proto POST (null) [12:35:55]execute_cgi path=json_proto method=POST [12:35:55]POST find Content-Length [12:35:55]Host: 172.17.63.131:8080 [12:35:55]Content-Length: 678 [12:35:55]Content-Type: application/json [12:35:55] [12:35:55]POST finish read [12:35:55]Found Content-Length = 678 [12:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31455", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:55]execute_script... [12:35: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)31455", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:55]POST & json_proto [12:35:55]process_json_proto [12:35:55]json parsed OK: [12:35:55]protocol is kg_v1.0 [12:35:55]action value=close_receipt [12:35:55]process_action close_receipt [12:35:55]cmd_close_receipt [12:35:55]MH_GetDate [12:35:55]Write to MH i2c: F0 00 00 22 72 83 [12:35:55]Write i2c OK [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: F0 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: F0 09 00 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: F0 09 00 22 72 00 C0 33 1E 67 22 05 6E 64 FD [12:35:55]GetLastDocTimeStamp 1730032445 [12:35:55]current date 1730032576 [12:35:55]FM_GetShiftState [12:35:55]SAM_PROTO_GetShiftState [12:35:55]wFMCommunicate request_size=4 [12:35:55]MH_SAM_APDU [12:35:55]CAPDU: 80 13 01 00 [12:35:55]Write to MH i2c: E2 08 00 23 72 80 13 01 00 00 00 00 00 12 [12:35:55]Write i2c OK [12:35:55]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 23 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 53 [12:35:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:35:56]wFMCommunicate OK [12:35:56]SAM_PROTO_GetShiftState done [12:35:56]FM_GetShiftState done [12:35:56]opened in 1729989159 [12:35:56]opened+sec_in_day 1730075559 [12:35:56]quantity*price = 100050 [12:35:56]sum+1 = 100052 [12:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 176 27.10.2024 12:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192144 ФПД: 63777203091418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192144&fm=63777203091418&tin=02508201610067®Number=0000000000091776&sum=100000 [12:35:57]StoreToDocumentArchive [12:35:57]shift 542 fd 192144 [12:35:57]save to /storage/0542/doc_00192144 [12:35:57]save last doc name /storage/0542/doc_00192144 to /storage/kkm_last_doc_name [12:35:57]save OK [12:35:57]Clear old archive folders... [12:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:57]tlvbuf is 01DFBED0 [12:35:57]SAM_PROTO_ClearQueue [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 09 00 00 [12:35:57]Write to MH i2c: E2 08 00 30 72 80 09 00 00 00 00 00 00 14 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 30 72 00 90 00 16 [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]SAM_PROTO_ClearQueue done [12:35:57]KKMCreateOFDPacket [12:35:57]OFDProtocolAddRootSTLVToBuf [12:35:57]FM_MakeSignedData [12:35:57]FM_MakeSignedData [12:35:57]SAM_PROTO_SignData [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 0D 01 02 [12:35:57]Write to MH i2c: E2 08 00 31 72 80 0D 01 02 00 00 00 00 1C [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 31 72 00 90 00 17 [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]wFMCommunicate request_size=255 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 C0 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EE 02 00 35 04 06 00 3A 01 49 88 [12:35:57]Write to MH i2c: E2 02 01 32 72 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 B0 00 00 00 F4 03 04 00 C0 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EE 02 00 35 04 06 00 3A 01 49 88 00 00 7A [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 32 72 00 90 00 18 [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]wFMCommunicate request_size=7 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 0D 02 02 02 F7 DA [12:35:57]Write to MH i2c: E2 0A 00 33 72 80 0D 02 02 02 00 F7 DA 00 00 F4 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 33 72 00 90 00 19 [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 0D 03 02 [12:35:57]Write to MH i2c: E2 08 00 34 72 80 0D 03 02 00 00 00 00 21 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 0B 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 0B 00 34 72 00 8E 48 98 64 86 3D 90 D6 90 00 1D [12:35:57]RAPDU: 8E 48 98 64 86 3D 90 D6 90 00 [12:35:57]wFMCommunicate OK [12:35:57]SAM_PROTO_SignData done [12:35:57]FM_MakeSignedData done [12:35:57]CreateOFDProtocolMessage [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 11 00 00 [12:35:57]Write to MH i2c: E2 08 00 35 72 80 11 00 00 00 00 00 00 21 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 17 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 17 00 35 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [12:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:35:57]wFMCommunicate OK [12:35:57]CreateOFDProtocolMessage done [12:35:57]OFDSenderStorePacket 192144 [12:35:57]StoreOFDPacket docnum=192144 [12:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 74 04 01 2D C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B0 00 00 00 F4 03 04 00 C0 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EE 02 00 35 04 06 00 3A 01 49 88 F7 DA 8E 48 98 64 86 3D 90 D6 [12:35:57]CheckFolder [12:35:57]dirname=/storage/ofd_packets [12:35:57]CheckFolder done [12:35:57]ProducePacketName [12:35:57]name=ofd_packets/00192144 [12:35:57]NVStorageSaveData ofd_packets/00192144 [12:35:57]File name is /storage/ofd_packets/00192144 [12:35:57]Write 298 bytes [12:35:57]NVStorageSaveData done [12:35:57]OFDSenderStorePacket done [12:35:57]KKMCreateOFDPacket done [12:35:57]NVStorageSaveData kkm_last_timestamp [12:35:57]File name is /storage/kkm_last_timestamp [12:35:57]Write 4 bytes [12:35:57]NVStorageSaveData done [12:35:57]ExternCall_PrintAddStr [12:35:57]wPrintStart [12:35:57]Write to MH i2c: 01 00 00 36 72 A8 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: 01 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: 01 07 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: 01 07 00 36 72 00 00 00 00 00 FF 0F BD [12:35:57]RasterBufferAndPrint [12:35:57]line Счет N : (1)31455 [12:35:57]line ИНН: 02508201610067 [12:35:57]line Контрольно-Кассовый Чек [12:35:57]line ПРОДАЖА [12:35:57]line ТРК (МРК, ГНК) : 11 [12:35:57]line Товар: 2710194210 [12:35:57]line ДТ-К-5 [12:35:57]line 13.130 * 76.20 [12:35:57]line = 1000.51 [12:35:57]line НДС 12% НСП 1% [12:35:57]line > о реализуемом товаре [12:35:57]line ОКРУГЛЕНИЕ: -0.51 [12:35:57]line ИТОГО: 1000.00 [12:35:57]line Внесено: 1000.00 [12:35:57]line СДАЧА: 0.00 [12:35:57]line НСП 1% : 8.85 [12:35:57]line НДС 12% : 106.25 [12:35:57]line Наличными: 1000.00 [12:35:57]line Безнал.: 0.00 [12:35:57]line Место: АЗС № 170 "Партнер Нефть" [12:35:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:35:57]line СНО: Общий режим [12:35:57]line Чек 176 27.10.2024 12:36 [12:35:57]line Смена: 542 ФФД: 1.0 [12:35:57]line ЗНМ: 0300000110 [12:35:57]line РНМ: 0000000000091776 [12:35:57]line Версия ККМ: 001 [12:35:57]line ФМ: 0000000000871754 [12:35:57]line ФД: 192144 [12:35:57]line ФПД: 63777203091418 [12:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192144&fm=63777203091418&tin=02508201610067®Number=0000000000091776&sum=100000 [12:35:58]OFD Sender: Processing packet 192144 [packets to send 75, broken 74] [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00192144 [12:35:58]OFD Sender: To server: pG, [12:35:58]CommunicateWithHost lk.salyk.kg:30040 [12:35:58]ConnectInit lk.salyk.kg [12:35:58]written 0, free lines is 4095 [12:35:58]Connected sock=8 [12:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 74 04 01 2D C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B0 00 00 00 F4 03 04 00 C0 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EE 02 00 35 04 06 00 3A 01 49 88 F7 DA 8E 48 98 64 86 3D 90 D6 [12:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B4 68 47 00 12 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EE 02 00 F4 03 04 00 87 D8 1D 67 B6 04 01 00 00 95 07 8D F0 BF 64 B0 92 [12:35:58]CommunicateWithHost err = 0 [12:35:58]CheckOFDResponse [12:35:58]1017 (14) - 77093643461234 [12:35:58]1041 (16) - 0000000000871754 [12:35:58]1040 (4) - 192144 [12:35:58]1012 (4) - 27.10.2024 06:07 [12:35:58]1206 (1) - 0 [12:35:58]OFD Sender: Remove packet 192144 [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00192144 [12:35:58]NVStorageDeleteData [12:35:58]Write to MH i2c: 01 00 00 61 72 D3 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 61 72 00 00 00 00 00 B4 0C 9A [12:35:58]RasterBufferAndPrint [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]written 0, free lines is 3259 [12:35:58]MH_Cut [12:35:58]Write to MH i2c: D1 01 00 68 72 01 AC [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 01 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 01 00 68 72 00 AB [12:35:58]Write to MH i2c: 01 00 00 69 72 DB [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]OFD Sender: No OFD packet to send [12:35:59]*** Cut start [12:35:59]*** Partial cut [12:35:59]*** CUTSNS_PIN = 1 [12:35:59]*** CUTSNS_PIN = 0 [12:35:59]*** Brake cut motor [12:35:59]Read from MH i2c: 01 [12:35:59]MH_I2C_Read... [12:35:59]*** Stop cut motor [12:35:59]*** Cut end [12:35:59]Read from MH i2c: 01 07 00 [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: 01 07 00 69 72 00 00 00 00 00 FF 0F F0 [12:35:59]process_action close_receipt done [12:35:59]requested_data is exist [12:35:59]produce_requested_data [12:35:59]requested_item fm.sn is exist - process it [12:35:59]wFMCommunicate request_size=4 [12:35:59]MH_SAM_APDU [12:35:59]CAPDU: 80 11 00 00 [12:35:59]Write to MH i2c: E2 08 00 6A 72 80 11 00 00 00 00 00 00 56 [12:35:59]Write i2c OK [12:35:59]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 6A 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [12:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:00]wFMCommunicate OK [12:36:00]requested_item fd.num is exist - process it [12:36:00]SAM_PROTO_GetFieldsCounters [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 13 00 00 [12:36:00]Write to MH i2c: E2 08 00 6B 72 80 13 00 00 00 00 00 00 59 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 62 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 62 00 6B 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_GetFieldsCounters done [12:36:00]requested_item shift.num is exist - process it [12:36:00]requested_item shift.opened is exist - process it [12:36:00]req_shift_opened [12:36:00]FM_GetShiftState [12:36:00]SAM_PROTO_GetShiftState [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 13 01 00 [12:36:00]Write to MH i2c: E2 08 00 6C 72 80 13 01 00 00 00 00 00 5B [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0E 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0E 00 6C 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9C [12:36:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_GetShiftState done [12:36:00]FM_GetShiftState done [12:36:00]req_shift_opened done [12:36:00]requested_item shift.open_date is exist - process it [12:36:00]req_shift_open_date [12:36:00]req_shift_open_date done [12:36:00]produce_requested_data done [12:36:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192144,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:36:00]process_action_free close_receipt [12:36:00]json_value_free [12:36:00]json_value_free done [12:36:00]process_json_proto returns [12:36:00]Send response to host [12:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192144,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:36:00]free response buf [12:36:00]execute_script done [12:36:00]execute_script returns [12:36:00]free content buf [12:36:00]Sock 6.Close socket [12:36:00]Sock 6.Thread stoped [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:49]accept exits with 5 [12:36:49]New connection [12:36:49]New thread 3066961252 created [12:36:49]Thread 3066817892 joined [12:36:49]Waiting for new connection... [12:36:49] Sock 5.Parse request [12:36:49]Sock 5.Check first char [12:36:49]Sock 5.First char is OK [12:36:49]request: POST /json_proto HTTP/1.0 [12:36:49]Method: POST [12:36:49]URL: /json_proto [12:36:49]Method is POST - this is cgi request [12:36:49]url: /json_proto [12:36:49]query_string will be loaded in cgi processing [12:36:49]execute_cgi json_proto POST (null) [12:36:49]execute_cgi path=json_proto method=POST [12:36:49]POST find Content-Length [12:36:49]Host: 172.17.63.131:8080 [12:36:49]Content-Length: 673 [12:36:49]Content-Type: application/json [12:36:49] [12:36:49]POST finish read [12:36:49]Found Content-Length = 673 [12:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31456", "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" : 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" ] } } [12:36:49]execute_script... [12:36: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)31456", "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" : 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" ] } } [12:36:49]POST & json_proto [12:36:49]process_json_proto [12:36:49]json parsed OK: [12:36:49]protocol is kg_v1.0 [12:36:49]action value=close_receipt [12:36:49]process_action close_receipt [12:36:49]cmd_close_receipt [12:36:49]MH_GetDate [12:36:49]Write to MH i2c: F0 00 00 6D 72 CE [12:36:49]Write i2c OK [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: F0 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: F0 09 00 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: F0 09 00 6D 72 00 F5 33 1E 67 22 05 6E 64 7D [12:36:49]GetLastDocTimeStamp 1730032576 [12:36:49]current date 1730032629 [12:36:49]FM_GetShiftState [12:36:49]SAM_PROTO_GetShiftState [12:36:49]wFMCommunicate request_size=4 [12:36:49]MH_SAM_APDU [12:36:49]CAPDU: 80 13 01 00 [12:36:49]Write to MH i2c: E2 08 00 6E 72 80 13 01 00 00 00 00 00 5D [12:36:49]Write i2c OK [12:36:49]MH_I2C_Read... [12:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:49]Read from MH i2c: E2 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 0E 00 [12:36:49]MH_I2C_Read... [12:36:49]Read from MH i2c: E2 0E 00 6E 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9E [12:36:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:36:49]wFMCommunicate OK [12:36:49]SAM_PROTO_GetShiftState done [12:36:49]FM_GetShiftState done [12:36:49]opened in 1729989159 [12:36:49]opened+sec_in_day 1730075559 [12:36:49]quantity*price = 60045 [12:36:49]sum+1 = 60047 [12:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 177 27.10.2024 12:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192145 ФПД: 245630133115221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192145&fm=245630133115221&tin=02508201610067®Number=0000000000091776&sum=60000 [12:36:50]StoreToDocumentArchive [12:36:50]shift 542 fd 192145 [12:36:50]save to /storage/0542/doc_00192145 [12:36:50]save last doc name /storage/0542/doc_00192145 to /storage/kkm_last_doc_name [12:36:50]save OK [12:36:50]Clear old archive folders... [12:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:50]tlvbuf is 01609030 [12:36:50]SAM_PROTO_ClearQueue [12:36:50]wFMCommunicate request_size=4 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 09 00 00 [12:36:50]Write to MH i2c: E2 08 00 7B 72 80 09 00 00 00 00 00 00 5F [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 7B 72 00 90 00 61 [12:36:50]RAPDU: 90 00 [12:36:50]wFMCommunicate OK [12:36:50]SAM_PROTO_ClearQueue done [12:36:50]KKMCreateOFDPacket [12:36:50]OFDProtocolAddRootSTLVToBuf [12:36:50]FM_MakeSignedData [12:36:50]FM_MakeSignedData [12:36:50]SAM_PROTO_SignData [12:36:50]wFMCommunicate request_size=4 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 0D 01 02 [12:36:50]Write to MH i2c: E2 08 00 7C 72 80 0D 01 02 00 00 00 00 67 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:50]Read from MH i2c: E2 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 [12:36:50]MH_I2C_Read... [12:36:50]Read from MH i2c: E2 03 00 7C 72 00 90 00 62 [12:36:50]RAPDU: 90 00 [12:36:50]wFMCommunicate OK [12:36:50]wFMCommunicate request_size=255 [12:36:50]MH_SAM_APDU [12:36:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 F5 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EE 02 00 35 04 06 00 DF 66 38 D4 [12:36:50]Write to MH i2c: E2 02 01 7D 72 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 B1 00 00 00 F4 03 04 00 F5 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EE 02 00 35 04 06 00 DF 66 38 D4 00 00 02 [12:36:50]Write i2c OK [12:36:50]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 7D 72 00 90 00 63 [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]wFMCommunicate request_size=7 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 0D 02 02 02 99 55 [12:36:51]Write to MH i2c: E2 0A 00 7E 72 80 0D 02 02 02 00 99 55 00 00 5C [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 03 00 7E 72 00 90 00 64 [12:36:51]RAPDU: 90 00 [12:36:51]wFMCommunicate OK [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 0D 03 02 [12:36:51]Write to MH i2c: E2 08 00 7F 72 80 0D 03 02 00 00 00 00 6C [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0B 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0B 00 7F 72 00 0E 80 A4 11 01 E7 1D 3D 90 00 F2 [12:36:51]RAPDU: 0E 80 A4 11 01 E7 1D 3D 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_SignData done [12:36:51]FM_MakeSignedData done [12:36:51]CreateOFDProtocolMessage [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 11 00 00 [12:36:51]Write to MH i2c: E2 08 00 80 72 80 11 00 00 00 00 00 00 6C [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 17 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 17 00 80 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [12:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:51]wFMCommunicate OK [12:36:51]CreateOFDProtocolMessage done [12:36:51]OFDSenderStorePacket 192145 [12:36:51]StoreOFDPacket docnum=192145 [12:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 86 27 04 01 01 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 F5 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EE 02 00 35 04 06 00 DF 66 38 D4 99 55 0E 80 A4 11 01 E7 1D 3D [12:36:51]CheckFolder [12:36:51]dirname=/storage/ofd_packets [12:36:51]CheckFolder done [12:36:51]ProducePacketName [12:36:51]name=ofd_packets/00192145 [12:36:51]NVStorageSaveData ofd_packets/00192145 [12:36:51]File name is /storage/ofd_packets/00192145 [12:36:51]Write 298 bytes [12:36:51]NVStorageSaveData done [12:36:51]OFDSenderStorePacket done [12:36:51]KKMCreateOFDPacket done [12:36:51]NVStorageSaveData kkm_last_timestamp [12:36:51]File name is /storage/kkm_last_timestamp [12:36:51]Write 4 bytes [12:36:51]NVStorageSaveData done [12:36:51]ExternCall_PrintAddStr [12:36:51]wPrintStart [12:36:51]Write to MH i2c: 01 00 00 81 72 F3 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: 01 07 00 81 72 00 00 00 00 00 FF 0F 08 [12:36:51]RasterBufferAndPrint [12:36:51]line Счет N : (1)31456 [12:36:51]line ИНН: 02508201610067 [12:36:51]line Контрольно-Кассовый Чек [12:36:51]line ПРОДАЖА [12:36:51]line ТРК (МРК, ГНК) : 11 [12:36:51]line Товар: 2710194210 [12:36:51]line ДТ-К-5 [12:36:51]line 7.880 * 76.20 [12:36:51]line = 600.46 [12:36:51]line НДС 12% НСП 1% [12:36:51]line > о реализуемом товаре [12:36:51]line ОКРУГЛЕНИЕ: -0.46 [12:36:51]line ИТОГО: 600.00 [12:36:51]line Внесено: 600.00 [12:36:51]line СДАЧА: 0.00 [12:36:51]line НСП 1% : 5.31 [12:36:51]line НДС 12% : 63.77 [12:36:51]line Наличными: 600.00 [12:36:51]line Безнал.: 0.00 [12:36:51]line Место: АЗС № 170 "Партнер Нефть" [12:36:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:36:51]line СНО: Общий режим [12:36:51]line Чек 177 27.10.2024 12:37 [12:36:51]line Смена: 542 ФФД: 1.0 [12:36:51]line ЗНМ: 0300000110 [12:36:51]line РНМ: 0000000000091776 [12:36:51]line Версия ККМ: 001 [12:36:51]line ФМ: 0000000000871754 [12:36:51]line ФД: 192145 [12:36:51]line ФПД: 245630133115221 [12:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192145&fm=245630133115221&tin=02508201610067®Number=0000000000091776&sum=60000 [12:36:51]OFD Sender: Processing packet 192145 [packets to send 75, broken 74] [12:36:51]ProducePacketName [12:36:51]name=ofd_packets/00192145 [12:36:51]OFD Sender: To server: pG, [12:36:51]CommunicateWithHost lk.salyk.kg:30040 [12:36:51]ConnectInit lk.salyk.kg [12:36:51]written 0, free lines is 4095 [12:36:51]Connected sock=8 [12:36:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 86 27 04 01 01 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 F5 33 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EE 02 00 35 04 06 00 DF 66 38 D4 99 55 0E 80 A4 11 01 E7 1D 3D [12:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 33 47 00 1B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EE 02 00 F4 03 04 00 BD D8 1D 67 B6 04 01 00 00 C1 B8 62 EE 7A 00 13 C7 [12:36:51]CommunicateWithHost err = 0 [12:36:51]CheckOFDResponse [12:36:51]1017 (14) - 77093643461234 [12:36:51]1041 (16) - 0000000000871754 [12:36:51]1040 (4) - 192145 [12:36:51]1012 (4) - 27.10.2024 06:07 [12:36:51]1206 (1) - 0 [12:36:51]OFD Sender: Remove packet 192145 [12:36:51]ProducePacketName [12:36:51]name=ofd_packets/00192145 [12:36:51]NVStorageDeleteData [12:36:52]Write to MH i2c: 01 00 00 AC 72 1E [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 07 00 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: 01 07 00 AC 72 00 00 00 00 00 B5 0C E6 [12:36:52]RasterBufferAndPrint [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]line [12:36:52]written 0, free lines is 3261 [12:36:52]MH_Cut [12:36:52]Write to MH i2c: D1 01 00 B3 72 01 F7 [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 01 00 [12:36:52]MH_I2C_Read... [12:36:52]Read from MH i2c: D1 01 00 B3 72 00 F6 [12:36:52]Write to MH i2c: 01 00 00 B4 72 26 [12:36:52]Write i2c OK [12:36:52]MH_I2C_Read... [12:36:52]OFD Sender: No OFD packet to send [12:36:52]*** Cut start [12:36:52]*** Partial cut [12:36:52]*** CUTSNS_PIN = 1 [12:36:52]*** CUTSNS_PIN = 0 [12:36:53]*** Brake cut motor [12:36:53]Read from MH i2c: 01 [12:36:53]MH_I2C_Read... [12:36:53]*** Stop cut motor [12:36:53]*** Cut end [12:36:53]Read from MH i2c: 01 07 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: 01 07 00 B4 72 00 00 00 00 00 FF 0F 3B [12:36:53]process_action close_receipt done [12:36:53]requested_data is exist [12:36:53]produce_requested_data [12:36:53]requested_item fm.sn is exist - process it [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 11 00 00 [12:36:53]Write to MH i2c: E2 08 00 B5 72 80 11 00 00 00 00 00 00 A1 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 17 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 17 00 B5 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [12:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:53]wFMCommunicate OK [12:36:53]requested_item fd.num is exist - process it [12:36:53]SAM_PROTO_GetFieldsCounters [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 13 00 00 [12:36:53]Write to MH i2c: E2 08 00 B6 72 80 13 00 00 00 00 00 00 A4 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 62 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 62 00 B6 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:53]wFMCommunicate OK [12:36:53]SAM_PROTO_GetFieldsCounters done [12:36:53]requested_item shift.num is exist - process it [12:36:53]requested_item shift.opened is exist - process it [12:36:53]req_shift_opened [12:36:53]FM_GetShiftState [12:36:53]SAM_PROTO_GetShiftState [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 13 01 00 [12:36:53]Write to MH i2c: E2 08 00 B7 72 80 13 01 00 00 00 00 00 A6 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 0E 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 0E 00 B7 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E7 [12:36:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:36:53]wFMCommunicate OK [12:36:53]SAM_PROTO_GetShiftState done [12:36:53]FM_GetShiftState done [12:36:53]req_shift_opened done [12:36:53]requested_item shift.open_date is exist - process it [12:36:53]req_shift_open_date [12:36:53]req_shift_open_date done [12:36:53]produce_requested_data done [12:36:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192145,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:36:53]process_action_free close_receipt [12:36:53]json_value_free [12:36:53]json_value_free done [12:36:53]process_json_proto returns [12:36:53]Send response to host [12:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192145,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:36:53]free response buf [12:36:53]execute_script done [12:36:53]execute_script returns [12:36:53]free content buf [12:36:53]Sock 5.Close socket [12:36:53]Sock 5.Thread stoped [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:00]accept exits with 6 [12:38:00]New connection [12:38:00]New thread 3066817892 created [12:38:00]Thread 3066961252 joined [12:38:00]Waiting for new connection... [12:38:00] Sock 6.Parse request [12:38:00]Sock 6.Check first char [12:38:00]Sock 6.First char is OK [12:38:00]request: POST /json_proto HTTP/1.0 [12:38:00]Method: POST [12:38:00]URL: /json_proto [12:38:00]Method is POST - this is cgi request [12:38:00]url: /json_proto [12:38:00]query_string will be loaded in cgi processing [12:38:00]execute_cgi json_proto POST (null) [12:38:00]execute_cgi path=json_proto method=POST [12:38:00]POST find Content-Length [12:38:00]Host: 172.17.63.131:8080 [12:38:00]Content-Length: 681 [12:38:00]Content-Type: application/json [12:38:00] [12:38:00]POST finish read [12:38:00]Found Content-Length = 681 [12:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:00]execute_script... [12:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:00]POST & json_proto [12:38:00]process_json_proto [12:38:00]json parsed OK: [12:38:00]protocol is kg_v1.0 [12:38:00]action value=close_receipt [12:38:00]process_action close_receipt [12:38:00]cmd_close_receipt [12:38:00]MH_GetDate [12:38:00]Write to MH i2c: F0 00 00 B8 72 19 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 09 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 09 00 B8 72 00 3C 34 1E 67 22 05 6E 64 10 [12:38:00]GetLastDocTimeStamp 1730032629 [12:38:00]current date 1730032700 [12:38:00]FM_GetShiftState [12:38:00]SAM_PROTO_GetShiftState [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 13 01 00 [12:38:00]Write to MH i2c: E2 08 00 B9 72 80 13 01 00 00 00 00 00 A8 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0E 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0E 00 B9 72 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E9 [12:38:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:38:00]wFMCommunicate OK [12:38:00]SAM_PROTO_GetShiftState done [12:38:00]FM_GetShiftState done [12:38:00]opened in 1729989159 [12:38:00]opened+sec_in_day 1730075559 [12:38:00]quantity*price = 100015 [12:38:00]sum+1 = 100017 [12:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 178 27.10.2024 12:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192146 ФПД: 213218160401728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192146&fm=213218160401728&tin=02508201610067®Number=0000000000091776&sum=100000 [12:38:01]StoreToDocumentArchive [12:38:01]shift 542 fd 192146 [12:38:01]save to /storage/0542/doc_00192146 [12:38:01]save last doc name /storage/0542/doc_00192146 to /storage/kkm_last_doc_name [12:38:01]save OK [12:38:01]Clear old archive folders... [12:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:01]tlvbuf is 01B75AB0 [12:38:01]SAM_PROTO_ClearQueue [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 09 00 00 [12:38:01]Write to MH i2c: E2 08 00 C6 72 80 09 00 00 00 00 00 00 AA [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C6 72 00 90 00 AC [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_ClearQueue done [12:38:01]KKMCreateOFDPacket [12:38:01]OFDProtocolAddRootSTLVToBuf [12:38:01]FM_MakeSignedData [12:38:01]FM_MakeSignedData [12:38:01]SAM_PROTO_SignData [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 01 02 [12:38:01]Write to MH i2c: E2 08 00 C7 72 80 0D 01 02 00 00 00 00 B2 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C7 72 00 90 00 AD [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]wFMCommunicate request_size=255 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 3C 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EE 02 00 35 04 06 00 C1 [12:38:01]Write to MH i2c: E2 02 01 C8 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 3C 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EE 02 00 35 04 06 00 C1 00 00 4A [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C8 72 00 90 00 AE [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]wFMCommunicate request_size=10 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 02 02 05 EB B8 B5 DD 40 [12:38:01]Write to MH i2c: E2 0D 00 C9 72 80 0D 02 02 05 00 EB B8 B5 DD 40 00 00 34 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C9 72 00 90 00 AF [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 03 02 [12:38:01]Write to MH i2c: E2 08 00 CA 72 80 0D 03 02 00 00 00 00 B7 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0B 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0B 00 CA 72 00 AA 1B C2 73 13 1A 9D D6 90 00 52 [12:38:01]RAPDU: AA 1B C2 73 13 1A 9D D6 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_SignData done [12:38:01]FM_MakeSignedData done [12:38:01]CreateOFDProtocolMessage [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 11 00 00 [12:38:01]Write to MH i2c: E2 08 00 CB 72 80 11 00 00 00 00 00 00 B7 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 CB 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [12:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:38:02]wFMCommunicate OK [12:38:02]CreateOFDProtocolMessage done [12:38:02]OFDSenderStorePacket 192146 [12:38:02]StoreOFDPacket docnum=192146 [12:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 94 07 01 36 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 3C 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EE 02 00 35 04 06 00 C1 EB B8 B5 DD 40 AA 1B C2 73 13 1A 9D D6 [12:38:02]CheckFolder [12:38:02]dirname=/storage/ofd_packets [12:38:02]CheckFolder done [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00192146 [12:38:02]NVStorageSaveData ofd_packets/00192146 [12:38:02]File name is /storage/ofd_packets/00192146 [12:38:02]Write 301 bytes [12:38:02]NVStorageSaveData done [12:38:02]OFDSenderStorePacket done [12:38:02]KKMCreateOFDPacket done [12:38:02]NVStorageSaveData kkm_last_timestamp [12:38:02]File name is /storage/kkm_last_timestamp [12:38:02]Write 4 bytes [12:38:02]NVStorageSaveData done [12:38:02]ExternCall_PrintAddStr [12:38:02]wPrintStart [12:38:02]Write to MH i2c: 01 00 00 CC 72 3E [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 CC 72 00 00 00 00 00 FF 0F 53 [12:38:02]RasterBufferAndPrint [12:38:02]line Счет N : (1)31457 [12:38:02]line ИНН: 02508201610067 [12:38:02]line Контрольно-Кассовый Чек [12:38:02]line ПРОДАЖА [12:38:02]line ТРК (МРК, ГНК) : 21 [12:38:02]line Товар: 2710124130 [12:38:02]line Аи-92-К-5 [12:38:02]line 14.950 * 66.90 [12:38:02]line = 1000.16 [12:38:02]line НДС 12% НСП 1% [12:38:02]line > о реализуемом товаре [12:38:02]line ОКРУГЛЕНИЕ: -0.16 [12:38:02]line ИТОГО: 1000.00 [12:38:02]line Внесено: 1000.00 [12:38:02]line СДАЧА: 0.00 [12:38:02]line НСП 1% : 8.85 [12:38:02]line НДС 12% : 106.21 [12:38:02]line Наличными: 1000.00 [12:38:02]line Безнал.: 0.00 [12:38:02]line Место: АЗС № 170 "Партнер Нефть" [12:38:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:38:02]line СНО: Общий режим [12:38:02]line Чек 178 27.10.2024 12:38 [12:38:02]line Смена: 542 ФФД: 1.0 [12:38:02]line ЗНМ: 0300000110 [12:38:02]line РНМ: 0000000000091776 [12:38:02]line Версия ККМ: 001 [12:38:02]line ФМ: 0000000000871754 [12:38:02]line ФД: 192146 [12:38:02]line ФПД: 213218160401728 [12:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192146&fm=213218160401728&tin=02508201610067®Number=0000000000091776&sum=100000 [12:38:02]OFD Sender: Processing packet 192146 [packets to send 75, broken 74] [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00192146 [12:38:02]OFD Sender: To server: pG, [12:38:02]CommunicateWithHost lk.salyk.kg:30040 [12:38:02]ConnectInit lk.salyk.kg [12:38:02]written 0, free lines is 4095 [12:38:02]Connected sock=8 [12:38:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 94 07 01 36 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 3C 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EE 02 00 35 04 06 00 C1 EB B8 B5 DD 40 AA 1B C2 73 13 1A 9D D6 [12:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E8 94 47 00 C2 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EE 02 00 F4 03 04 00 04 D9 1D 67 B6 04 01 00 00 04 6A C3 EF 47 92 1C CC [12:38:02]CommunicateWithHost err = 0 [12:38:02]CheckOFDResponse [12:38:02]1017 (14) - 77093643461234 [12:38:02]1041 (16) - 0000000000871754 [12:38:02]1040 (4) - 192146 [12:38:02]1012 (4) - 27.10.2024 06:09 [12:38:02]1206 (1) - 0 [12:38:02]OFD Sender: Remove packet 192146 [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00192146 [12:38:02]NVStorageDeleteData [12:38:02]Write to MH i2c: 01 00 00 F7 72 69 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 F7 72 00 00 00 00 00 A7 0C 23 [12:38:02]RasterBufferAndPrint [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]written 0, free lines is 3245 [12:38:02]MH_Cut [12:38:02]Write to MH i2c: D1 01 00 FE 72 01 42 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 01 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 01 00 FE 72 00 41 [12:38:02]Write to MH i2c: 01 00 00 FF 72 71 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:03]OFD Sender: No OFD packet to send [12:38:03]*** Cut start [12:38:03]*** Partial cut [12:38:03]*** CUTSNS_PIN = 1 [12:38:03]*** CUTSNS_PIN = 0 [12:38:03]*** Brake cut motor [12:38:04]Read from MH i2c: 01 [12:38:04]MH_I2C_Read... [12:38:04]*** Stop cut motor [12:38:04]*** Cut end [12:38:04]Read from MH i2c: 01 07 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 07 00 FF 72 00 00 00 00 00 FF 0F 86 [12:38:04]process_action close_receipt done [12:38:04]requested_data is exist [12:38:04]produce_requested_data [12:38:04]requested_item fm.sn is exist - process it [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 11 00 00 [12:38:04]Write to MH i2c: E2 08 00 00 73 80 11 00 00 00 00 00 00 ED [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 17 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 17 00 00 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [12:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:38:04]wFMCommunicate OK [12:38:04]requested_item fd.num is exist - process it [12:38:04]SAM_PROTO_GetFieldsCounters [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 13 00 00 [12:38:04]Write to MH i2c: E2 08 00 01 73 80 13 00 00 00 00 00 00 F0 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 62 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 62 00 01 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [12:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:04]wFMCommunicate OK [12:38:04]SAM_PROTO_GetFieldsCounters done [12:38:04]requested_item shift.num is exist - process it [12:38:04]requested_item shift.opened is exist - process it [12:38:04]req_shift_opened [12:38:04]FM_GetShiftState [12:38:04]SAM_PROTO_GetShiftState [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 13 01 00 [12:38:04]Write to MH i2c: E2 08 00 02 73 80 13 01 00 00 00 00 00 F2 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 0E 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 0E 00 02 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 33 [12:38:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:38:04]wFMCommunicate OK [12:38:04]SAM_PROTO_GetShiftState done [12:38:04]FM_GetShiftState done [12:38:04]req_shift_opened done [12:38:04]requested_item shift.open_date is exist - process it [12:38:04]req_shift_open_date [12:38:04]req_shift_open_date done [12:38:04]produce_requested_data done [12:38:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192146,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:38:04]process_action_free close_receipt [12:38:04]json_value_free [12:38:04]json_value_free done [12:38:04]process_json_proto returns [12:38:04]Send response to host [12:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192146,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:38:04]free response buf [12:38:04]execute_script done [12:38:04]execute_script returns [12:38:04]free content buf [12:38:04]Sock 6.Close socket [12:38:04]Sock 6.Thread stoped [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [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:40:59]accept exits with 5 [12:40:59]New connection [12:40:59]New thread 3066961252 created [12:40:59]Thread 3066817892 joined [12:40:59]Waiting for new connection... [12:40:59] Sock 5.Parse request [12:40:59]Sock 5.Check first char [12:40:59]Sock 5.First char is OK [12:40:59]request: POST /json_proto HTTP/1.0 [12:40:59]Method: POST [12:40:59]URL: /json_proto [12:40:59]Method is POST - this is cgi request [12:40:59]url: /json_proto [12:40:59]query_string will be loaded in cgi processing [12:40:59]execute_cgi json_proto POST (null) [12:40:59]execute_cgi path=json_proto method=POST [12:40:59]POST find Content-Length [12:40:59]Host: 172.17.63.131:8080 [12:40:59]Content-Length: 676 [12:40:59]Content-Type: application/json [12:40:59] [12:40:59]POST finish read [12:40:59]Found Content-Length = 676 [12:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:59]execute_script... [12:40: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)31458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:59]POST & json_proto [12:40:59]process_json_proto [12:40:59]json parsed OK: [12:40:59]protocol is kg_v1.0 [12:40:59]action value=close_receipt [12:40:59]process_action close_receipt [12:40:59]cmd_close_receipt [12:40:59]MH_GetDate [12:40:59]Write to MH i2c: F0 00 00 03 73 65 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 09 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: F0 09 00 03 73 00 EF 34 1E 67 22 05 6E 64 0F [12:40:59]GetLastDocTimeStamp 1730032700 [12:40:59]current date 1730032879 [12:40:59]FM_GetShiftState [12:40:59]SAM_PROTO_GetShiftState [12:40:59]wFMCommunicate request_size=4 [12:40:59]MH_SAM_APDU [12:40:59]CAPDU: 80 13 01 00 [12:40:59]Write to MH i2c: E2 08 00 04 73 80 13 01 00 00 00 00 00 F4 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:59]Read from MH i2c: E2 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 0E 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 0E 00 04 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 35 [12:40:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:40:59]wFMCommunicate OK [12:40:59]SAM_PROTO_GetShiftState done [12:40:59]FM_GetShiftState done [12:40:59]opened in 1729989159 [12:40:59]opened+sec_in_day 1730075559 [12:40:59]quantity*price = 20003 [12:40:59]sum+1 = 20004 [12:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 179 27.10.2024 12:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192147 ФПД: 214890974327615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192147&fm=214890974327615&tin=02508201610067®Number=0000000000091776&sum=20000 [12:41:00]StoreToDocumentArchive [12:41:00]shift 542 fd 192147 [12:41:00]save to /storage/0542/doc_00192147 [12:41:00]save last doc name /storage/0542/doc_00192147 to /storage/kkm_last_doc_name [12:41:00]save OK [12:41:00]Clear old archive folders... [12:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:00]tlvbuf is 018CABE0 [12:41:00]SAM_PROTO_ClearQueue [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 09 00 00 [12:41:00]Write to MH i2c: E2 08 00 11 73 80 09 00 00 00 00 00 00 F6 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 11 73 00 90 00 F8 [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]SAM_PROTO_ClearQueue done [12:41:00]KKMCreateOFDPacket [12:41:00]OFDProtocolAddRootSTLVToBuf [12:41:00]FM_MakeSignedData [12:41:00]FM_MakeSignedData [12:41:00]SAM_PROTO_SignData [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 01 02 [12:41:00]Write to MH i2c: E2 08 00 12 73 80 0D 01 02 00 00 00 00 FE [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 12 73 00 90 00 F9 [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]wFMCommunicate request_size=255 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EF 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EE 02 00 35 04 06 00 C3 [12:41:00]Write to MH i2c: E2 02 01 13 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EF 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EE 02 00 35 04 06 00 C3 00 00 15 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 13 73 00 90 00 FA [12:41:01]RAPDU: 90 00 [12:41:01]wFMCommunicate OK [12:41:01]wFMCommunicate request_size=10 [12:41:01]MH_SAM_APDU [12:41:01]CAPDU: 80 0D 02 02 05 71 34 30 B3 3F [12:41:01]Write to MH i2c: E2 0D 00 14 73 80 0D 02 02 05 00 71 34 30 B3 3F 00 00 D2 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 03 00 14 73 00 90 00 FB [12:41:01]RAPDU: 90 00 [12:41:01]wFMCommunicate OK [12:41:01]wFMCommunicate request_size=4 [12:41:01]MH_SAM_APDU [12:41:01]CAPDU: 80 0D 03 02 [12:41:01]Write to MH i2c: E2 08 00 15 73 80 0D 03 02 00 00 00 00 03 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 0B 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 0B 00 15 73 00 14 53 A9 2A D0 F8 94 2B 90 00 C5 [12:41:01]RAPDU: 14 53 A9 2A D0 F8 94 2B 90 00 [12:41:01]wFMCommunicate OK [12:41:01]SAM_PROTO_SignData done [12:41:01]FM_MakeSignedData done [12:41:01]CreateOFDProtocolMessage [12:41:01]wFMCommunicate request_size=4 [12:41:01]MH_SAM_APDU [12:41:01]CAPDU: 80 11 00 00 [12:41:01]Write to MH i2c: E2 08 00 16 73 80 11 00 00 00 00 00 00 03 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:01]Read from MH i2c: E2 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 17 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: E2 17 00 16 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [12:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:41:01]wFMCommunicate OK [12:41:01]CreateOFDProtocolMessage done [12:41:01]OFDSenderStorePacket 192147 [12:41:01]StoreOFDPacket docnum=192147 [12:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 39 07 01 F0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EF 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EE 02 00 35 04 06 00 C3 71 34 30 B3 3F 14 53 A9 2A D0 F8 94 2B [12:41:01]CheckFolder [12:41:01]dirname=/storage/ofd_packets [12:41:01]CheckFolder done [12:41:01]ProducePacketName [12:41:01]name=ofd_packets/00192147 [12:41:01]NVStorageSaveData ofd_packets/00192147 [12:41:01]File name is /storage/ofd_packets/00192147 [12:41:01]Write 301 bytes [12:41:01]NVStorageSaveData done [12:41:01]OFDSenderStorePacket done [12:41:01]KKMCreateOFDPacket done [12:41:01]NVStorageSaveData kkm_last_timestamp [12:41:01]File name is /storage/kkm_last_timestamp [12:41:01]Write 4 bytes [12:41:01]NVStorageSaveData done [12:41:01]ExternCall_PrintAddStr [12:41:01]wPrintStart [12:41:01]Write to MH i2c: 01 00 00 17 73 8A [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 17 73 00 00 00 00 00 FF 0F 9F [12:41:01]RasterBufferAndPrint [12:41:01]line Счет N : (1)31458 [12:41:01]line ИНН: 02508201610067 [12:41:01]line Контрольно-Кассовый Чек [12:41:01]line ПРОДАЖА [12:41:01]line ТРК (МРК, ГНК) : 12 [12:41:01]line Товар: 2710124130 [12:41:01]line Аи-92-К-5 [12:41:01]line 2.990 * 66.90 [12:41:01]line = 200.03 [12:41:01]line НДС 12% НСП 1% [12:41:01]line > о реализуемом товаре [12:41:01]line ОКРУГЛЕНИЕ: -0.03 [12:41:01]line ИТОГО: 200.00 [12:41:01]line Внесено: 200.00 [12:41:01]line СДАЧА: 0.00 [12:41:01]line НСП 1% : 1.77 [12:41:01]line НДС 12% : 21.24 [12:41:01]line Наличными: 200.00 [12:41:01]line Безнал.: 0.00 [12:41:01]line Место: АЗС № 170 "Партнер Нефть" [12:41:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:41:01]line СНО: Общий режим [12:41:01]line Чек 179 27.10.2024 12:41 [12:41:01]line Смена: 542 ФФД: 1.0 [12:41:01]line ЗНМ: 0300000110 [12:41:01]line РНМ: 0000000000091776 [12:41:01]line Версия ККМ: 001 [12:41:01]line ФМ: 0000000000871754 [12:41:01]line ФД: 192147 [12:41:01]line ФПД: 214890974327615 [12:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192147&fm=214890974327615&tin=02508201610067®Number=0000000000091776&sum=20000 [12:41:01]OFD Sender: Processing packet 192147 [packets to send 75, broken 74] [12:41:01]ProducePacketName [12:41:01]name=ofd_packets/00192147 [12:41:01]OFD Sender: To server: pG, [12:41:01]CommunicateWithHost lk.salyk.kg:30040 [12:41:01]ConnectInit lk.salyk.kg [12:41:01]written 0, free lines is 4095 [12:41:01]Connected sock=8 [12:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 39 07 01 F0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EF 34 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EE 02 00 35 04 06 00 C3 71 34 30 B3 3F 14 53 A9 2A D0 F8 94 2B [12:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8D 4A 47 00 DE A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EE 02 00 F4 03 04 00 B7 D9 1D 67 B6 04 01 00 00 75 4C 98 F8 A7 99 D1 A8 [12:41:02]CommunicateWithHost err = 0 [12:41:02]CheckOFDResponse [12:41:02]1017 (14) - 77093643461234 [12:41:02]1041 (16) - 0000000000871754 [12:41:02]1040 (4) - 192147 [12:41:02]1012 (4) - 27.10.2024 06:12 [12:41:02]1206 (1) - 0 [12:41:02]OFD Sender: Remove packet 192147 [12:41:02]ProducePacketName [12:41:02]name=ofd_packets/00192147 [12:41:02]NVStorageDeleteData [12:41:02]Write to MH i2c: 01 00 00 42 73 B5 [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 42 73 00 00 00 00 00 A5 0C 6D [12:41:02]RasterBufferAndPrint [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]written 0, free lines is 3242 [12:41:02]MH_Cut [12:41:02]Write to MH i2c: D1 01 00 49 73 01 8E [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 01 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 01 00 49 73 00 8D [12:41:02]Write to MH i2c: 01 00 00 4A 73 BD [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]OFD Sender: No OFD packet to send [12:41:02]*** Cut start [12:41:02]*** Partial cut [12:41:02]*** CUTSNS_PIN = 1 [12:41:03]*** CUTSNS_PIN = 0 [12:41:03]*** Brake cut motor [12:41:03]Read from MH i2c: 01 [12:41:03]MH_I2C_Read... [12:41:03]*** Stop cut motor [12:41:03]*** Cut end [12:41:03]Read from MH i2c: 01 07 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: 01 07 00 4A 73 00 00 00 00 00 FF 0F D2 [12:41:03]process_action close_receipt done [12:41:03]requested_data is exist [12:41:03]produce_requested_data [12:41:03]requested_item fm.sn is exist - process it [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 11 00 00 [12:41:03]Write to MH i2c: E2 08 00 4B 73 80 11 00 00 00 00 00 00 38 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 4B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [12:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:41:03]wFMCommunicate OK [12:41:03]requested_item fd.num is exist - process it [12:41:03]SAM_PROTO_GetFieldsCounters [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 00 00 [12:41:03]Write to MH i2c: E2 08 00 4C 73 80 13 00 00 00 00 00 00 3B [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 4C 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [12:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetFieldsCounters done [12:41:03]requested_item shift.num is exist - process it [12:41:03]requested_item shift.opened is exist - process it [12:41:03]req_shift_opened [12:41:03]FM_GetShiftState [12:41:03]SAM_PROTO_GetShiftState [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 01 00 [12:41:03]Write to MH i2c: E2 08 00 4D 73 80 13 01 00 00 00 00 00 3D [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 4D 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7E [12:41:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetShiftState done [12:41:03]FM_GetShiftState done [12:41:03]req_shift_opened done [12:41:03]requested_item shift.open_date is exist - process it [12:41:03]req_shift_open_date [12:41:03]req_shift_open_date done [12:41:03]produce_requested_data done [12:41:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192147,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:41:03]process_action_free close_receipt [12:41:03]json_value_free [12:41:03]json_value_free done [12:41:03]process_json_proto returns [12:41:03]Send response to host [12:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192147,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:41:03]free response buf [12:41:03]execute_script done [12:41:03]execute_script returns [12:41:03]free content buf [12:41:03]Sock 5.Close socket [12:41:03]Sock 5.Thread stoped [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:21]accept exits with 6 [12:43:21]New connection [12:43:21]New thread 3066817892 created [12:43:21]Thread 3066961252 joined [12:43:21]Waiting for new connection... [12:43:21] Sock 6.Parse request [12:43:21]Sock 6.Check first char [12:43:21]Sock 6.First char is OK [12:43:21]request: POST /json_proto HTTP/1.0 [12:43:21]Method: POST [12:43:21]URL: /json_proto [12:43:21]Method is POST - this is cgi request [12:43:21]url: /json_proto [12:43:21]query_string will be loaded in cgi processing [12:43:21]execute_cgi json_proto POST (null) [12:43:21]execute_cgi path=json_proto method=POST [12:43:21]POST find Content-Length [12:43:21]Host: 172.17.63.131:8080 [12:43:21]Content-Length: 676 [12:43:21]Content-Type: application/json [12:43:21] [12:43:21]POST finish read [12:43:21]Found Content-Length = 676 [12:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:21]execute_script... [12: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 : (1)31460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:21]POST & json_proto [12:43:21]process_json_proto [12:43:21]json parsed OK: [12:43:21]protocol is kg_v1.0 [12:43:21]action value=close_receipt [12:43:21]process_action close_receipt [12:43:21]cmd_close_receipt [12:43:21]MH_GetDate [12:43:21]Write to MH i2c: F0 00 00 4E 73 B0 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: F0 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: F0 09 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: F0 09 00 4E 73 00 7D 35 1E 67 22 05 6E 64 E9 [12:43:21]GetLastDocTimeStamp 1730032879 [12:43:21]current date 1730033021 [12:43:21]FM_GetShiftState [12:43:21]SAM_PROTO_GetShiftState [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 13 01 00 [12:43:21]Write to MH i2c: E2 08 00 4F 73 80 13 01 00 00 00 00 00 3F [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 4F 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 80 [12:43:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_GetShiftState done [12:43:21]FM_GetShiftState done [12:43:21]opened in 1729989159 [12:43:21]opened+sec_in_day 1730075559 [12:43:21]quantity*price = 20003 [12:43:21]sum+1 = 20004 [12:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 180 27.10.2024 12:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192148 ФПД: 199074311054018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124341&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192148&fm=199074311054018&tin=02508201610067®Number=0000000000091776&sum=20000 [12:43:22]StoreToDocumentArchive [12:43:22]shift 542 fd 192148 [12:43:22]save to /storage/0542/doc_00192148 [12:43:22]save last doc name /storage/0542/doc_00192148 to /storage/kkm_last_doc_name [12:43:22]save OK [12:43:22]Clear old archive folders... [12:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:22]tlvbuf is 016BC410 [12:43:22]SAM_PROTO_ClearQueue [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 09 00 00 [12:43:22]Write to MH i2c: E2 08 00 5C 73 80 09 00 00 00 00 00 00 41 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 5C 73 00 90 00 43 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]SAM_PROTO_ClearQueue done [12:43:22]KKMCreateOFDPacket [12:43:22]OFDProtocolAddRootSTLVToBuf [12:43:22]FM_MakeSignedData [12:43:22]FM_MakeSignedData [12:43:22]SAM_PROTO_SignData [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 01 02 [12:43:22]Write to MH i2c: E2 08 00 5D 73 80 0D 01 02 00 00 00 00 49 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 5D 73 00 90 00 44 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=255 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7D 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EE 02 00 35 04 06 00 B5 [12:43:22]Write to MH i2c: E2 02 01 5E 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7D 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EE 02 00 35 04 06 00 B5 00 00 E3 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]OFD Sender: No OFD packet to send [12:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 5E 73 00 90 00 45 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=10 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 02 02 05 0E 99 98 22 C2 [12:43:22]Write to MH i2c: E2 0D 00 5F 73 80 0D 02 02 05 00 0E 99 98 22 C2 00 00 79 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 5F 73 00 90 00 46 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 03 02 [12:43:22]Write to MH i2c: E2 08 00 60 73 80 0D 03 02 00 00 00 00 4E [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 0B 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 0B 00 60 73 00 56 47 D4 C0 EC F3 5C E6 90 00 A1 [12:43:23]RAPDU: 56 47 D4 C0 EC F3 5C E6 90 00 [12:43:23]wFMCommunicate OK [12:43:23]SAM_PROTO_SignData done [12:43:23]FM_MakeSignedData done [12:43:23]CreateOFDProtocolMessage [12:43:23]wFMCommunicate request_size=4 [12:43:23]MH_SAM_APDU [12:43:23]CAPDU: 80 11 00 00 [12:43:23]Write to MH i2c: E2 08 00 61 73 80 11 00 00 00 00 00 00 4E [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 17 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 17 00 61 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [12:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:43:23]wFMCommunicate OK [12:43:23]CreateOFDProtocolMessage done [12:43:23]OFDSenderStorePacket 192148 [12:43:23]StoreOFDPacket docnum=192148 [12:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 DF 07 01 2A FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7D 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EE 02 00 35 04 06 00 B5 0E 99 98 22 C2 56 47 D4 C0 EC F3 5C E6 [12:43:23]CheckFolder [12:43:23]dirname=/storage/ofd_packets [12:43:23]CheckFolder done [12:43:23]ProducePacketName [12:43:23]name=ofd_packets/00192148 [12:43:23]NVStorageSaveData ofd_packets/00192148 [12:43:23]File name is /storage/ofd_packets/00192148 [12:43:23]Write 301 bytes [12:43:23]NVStorageSaveData done [12:43:23]OFDSenderStorePacket done [12:43:23]KKMCreateOFDPacket done [12:43:23]NVStorageSaveData kkm_last_timestamp [12:43:23]File name is /storage/kkm_last_timestamp [12:43:23]Write 4 bytes [12:43:23]NVStorageSaveData done [12:43:23]ExternCall_PrintAddStr [12:43:23]wPrintStart [12:43:23]Write to MH i2c: 01 00 00 62 73 D5 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 62 73 00 00 00 00 00 FF 0F EA [12:43:23]RasterBufferAndPrint [12:43:23]line Счет N : (1)31460 [12:43:23]line ИНН: 02508201610067 [12:43:23]line Контрольно-Кассовый Чек [12:43:23]line ПРОДАЖА [12:43:23]line ТРК (МРК, ГНК) : 21 [12:43:23]line Товар: 2710124130 [12:43:23]line Аи-92-К-5 [12:43:23]line 2.990 * 66.90 [12:43:23]line = 200.03 [12:43:23]line НДС 12% НСП 1% [12:43:23]line > о реализуемом товаре [12:43:23]line ОКРУГЛЕНИЕ: -0.03 [12:43:23]line ИТОГО: 200.00 [12:43:23]line Внесено: 200.00 [12:43:23]line СДАЧА: 0.00 [12:43:23]line НСП 1% : 1.77 [12:43:23]line НДС 12% : 21.24 [12:43:23]line Наличными: 200.00 [12:43:23]line Безнал.: 0.00 [12:43:23]line Место: АЗС № 170 "Партнер Нефть" [12:43:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:43:23]line СНО: Общий режим [12:43:23]line Чек 180 27.10.2024 12:43 [12:43:23]line Смена: 542 ФФД: 1.0 [12:43:23]line ЗНМ: 0300000110 [12:43:23]line РНМ: 0000000000091776 [12:43:23]line Версия ККМ: 001 [12:43:23]line ФМ: 0000000000871754 [12:43:23]line ФД: 192148 [12:43:23]line ФПД: 199074311054018 [12:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124341&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192148&fm=199074311054018&tin=02508201610067®Number=0000000000091776&sum=20000 [12:43:23]OFD Sender: Processing packet 192148 [packets to send 75, broken 74] [12:43:23]ProducePacketName [12:43:23]name=ofd_packets/00192148 [12:43:23]OFD Sender: To server: pG, [12:43:23]CommunicateWithHost lk.salyk.kg:30040 [12:43:23]ConnectInit lk.salyk.kg [12:43:23]written 0, free lines is 4095 [12:43:23]Connected sock=8 [12: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 37 35 34 0F 01 00 00 84 DF 07 01 2A FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7D 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EE 02 00 35 04 06 00 B5 0E 99 98 22 C2 56 47 D4 C0 EC F3 5C E6 [12: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 37 35 34 4F 00 00 00 1E 7A 47 00 8E 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EE 02 00 F4 03 04 00 45 DA 1D 67 B6 04 01 00 00 EE DC 0D AC D4 AA AD F7 [12:43:23]CommunicateWithHost err = 0 [12:43:23]CheckOFDResponse [12:43:23]1017 (14) - 77093643461234 [12:43:23]1041 (16) - 0000000000871754 [12:43:23]1040 (4) - 192148 [12:43:23]1012 (4) - 27.10.2024 06:14 [12:43:23]1206 (1) - 0 [12:43:23]OFD Sender: Remove packet 192148 [12:43:23]ProducePacketName [12:43:23]name=ofd_packets/00192148 [12:43:23]NVStorageDeleteData [12:43:23]Write to MH i2c: 01 00 00 8D 73 00 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 8D 73 00 00 00 00 00 A5 0C B8 [12:43:23]RasterBufferAndPrint [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]written 0, free lines is 3243 [12:43:23]MH_Cut [12:43:23]Write to MH i2c: D1 01 00 94 73 01 D9 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 01 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 01 00 94 73 00 D8 [12:43:23]Write to MH i2c: 01 00 00 95 73 08 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:24]OFD Sender: No OFD packet to send [12:43:24]*** Cut start [12:43:24]*** Partial cut [12:43:24]*** CUTSNS_PIN = 1 [12:43:24]*** CUTSNS_PIN = 0 [12:43:25]*** Brake cut motor [12:43:25]Read from MH i2c: 01 [12:43:25]MH_I2C_Read... [12:43:25]*** Stop cut motor [12:43:25]*** Cut end [12:43:25]Read from MH i2c: 01 07 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: 01 07 00 95 73 00 00 00 00 00 FF 0F 1D [12:43:25]process_action close_receipt done [12:43:25]requested_data is exist [12:43:25]produce_requested_data [12:43:25]requested_item fm.sn is exist - process it [12:43:25]wFMCommunicate request_size=4 [12:43:25]MH_SAM_APDU [12:43:25]CAPDU: 80 11 00 00 [12:43:25]Write to MH i2c: E2 08 00 96 73 80 11 00 00 00 00 00 00 83 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:25]Read from MH i2c: E2 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 17 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 17 00 96 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [12:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:43:25]wFMCommunicate OK [12:43:25]requested_item fd.num is exist - process it [12:43:25]SAM_PROTO_GetFieldsCounters [12:43:25]wFMCommunicate request_size=4 [12:43:25]MH_SAM_APDU [12:43:25]CAPDU: 80 13 00 00 [12:43:25]Write to MH i2c: E2 08 00 97 73 80 13 00 00 00 00 00 00 86 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:25]Read from MH i2c: E2 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 62 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 62 00 97 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:25]wFMCommunicate OK [12:43:25]SAM_PROTO_GetFieldsCounters done [12:43:25]requested_item shift.num is exist - process it [12:43:25]requested_item shift.opened is exist - process it [12:43:25]req_shift_opened [12:43:25]FM_GetShiftState [12:43:25]SAM_PROTO_GetShiftState [12:43:25]wFMCommunicate request_size=4 [12:43:25]MH_SAM_APDU [12:43:25]CAPDU: 80 13 01 00 [12:43:25]Write to MH i2c: E2 08 00 98 73 80 13 01 00 00 00 00 00 88 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:25]Read from MH i2c: E2 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 98 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C9 [12:43:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:43:25]wFMCommunicate OK [12:43:25]SAM_PROTO_GetShiftState done [12:43:25]FM_GetShiftState done [12:43:25]req_shift_opened done [12:43:25]requested_item shift.open_date is exist - process it [12:43:25]req_shift_open_date [12:43:25]req_shift_open_date done [12:43:25]produce_requested_data done [12:43:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192148,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:43:25]process_action_free close_receipt [12:43:25]json_value_free [12:43:25]json_value_free done [12:43:25]process_json_proto returns [12:43:25]Send response to host [12:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192148,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:43:25]free response buf [12:43:25]execute_script done [12:43:25]execute_script returns [12:43:25]free content buf [12:43:25]Sock 6.Close socket [12:43:25]Sock 6.Thread stoped [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:29]accept exits with 5 [12:44:29]New connection [12:44:29]New thread 3066961252 created [12:44:29]Thread 3066817892 joined [12:44:29]Waiting for new connection... [12:44:29] Sock 5.Parse request [12:44:29]Sock 5.Check first char [12:44:29]Sock 5.First char is OK [12:44:29]request: POST /json_proto HTTP/1.0 [12:44:29]Method: POST [12:44:29]URL: /json_proto [12:44:29]Method is POST - this is cgi request [12:44:29]url: /json_proto [12:44:29]query_string will be loaded in cgi processing [12:44:29]execute_cgi json_proto POST (null) [12:44:29]execute_cgi path=json_proto method=POST [12:44:29]POST find Content-Length [12:44:29]Host: 172.17.63.131:8080 [12:44:29]Content-Length: 677 [12:44:29]Content-Type: application/json [12:44:29] [12:44:29]POST finish read [12:44:29]Found Content-Length = 677 [12:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:29]execute_script... [12:44: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)31461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:29]POST & json_proto [12:44:29]process_json_proto [12:44:29]json parsed OK: [12:44:29]protocol is kg_v1.0 [12:44:29]action value=close_receipt [12:44:29]process_action close_receipt [12:44:29]cmd_close_receipt [12:44:29]MH_GetDate [12:44:29]Write to MH i2c: F0 00 00 99 73 FB [12:44:29]Write i2c OK [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 09 00 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 09 00 99 73 00 C1 35 1E 67 22 05 6E 64 78 [12:44:29]GetLastDocTimeStamp 1730033021 [12:44:29]current date 1730033089 [12:44:29]FM_GetShiftState [12:44:29]SAM_PROTO_GetShiftState [12:44:29]wFMCommunicate request_size=4 [12:44:29]MH_SAM_APDU [12:44:29]CAPDU: 80 13 01 00 [12:44:29]Write to MH i2c: E2 08 00 9A 73 80 13 01 00 00 00 00 00 8A [12:44:29]Write i2c OK [12:44:29]MH_I2C_Read... [12:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:29]Read from MH i2c: E2 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: E2 0E 00 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: E2 0E 00 9A 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CB [12:44:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:44:29]wFMCommunicate OK [12:44:29]SAM_PROTO_GetShiftState done [12:44:29]FM_GetShiftState done [12:44:29]opened in 1729989159 [12:44:29]opened+sec_in_day 1730075559 [12:44:29]quantity*price = 70044 [12:44:29]sum+1 = 70045 [12:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 181 27.10.2024 12:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192149 ФПД: 120468637265312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192149&fm=120468637265312&tin=02508201610067®Number=0000000000091776&sum=70000 [12:44:30]StoreToDocumentArchive [12:44:31]shift 542 fd 192149 [12:44:31]save to /storage/0542/doc_00192149 [12:44:31]save last doc name /storage/0542/doc_00192149 to /storage/kkm_last_doc_name [12:44:31]save OK [12:44:31]Clear old archive folders... [12:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:31]tlvbuf is 0172E690 [12:44:31]SAM_PROTO_ClearQueue [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 09 00 00 [12:44:31]Write to MH i2c: E2 08 00 A7 73 80 09 00 00 00 00 00 00 8C [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 A7 73 00 90 00 8E [12:44:31]RAPDU: 90 00 [12:44:31]wFMCommunicate OK [12:44:31]SAM_PROTO_ClearQueue done [12:44:31]KKMCreateOFDPacket [12:44:31]OFDProtocolAddRootSTLVToBuf [12:44:31]FM_MakeSignedData [12:44:31]FM_MakeSignedData [12:44:31]SAM_PROTO_SignData [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 0D 01 02 [12:44:31]Write to MH i2c: E2 08 00 A8 73 80 0D 01 02 00 00 00 00 94 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 A8 73 00 90 00 8F [12:44:31]RAPDU: 90 00 [12:44:31]wFMCommunicate OK [12:44:31]wFMCommunicate request_size=255 [12:44:31]MH_SAM_APDU [12:44: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C1 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EE 02 00 35 04 06 00 6D [12:44:31]Write to MH i2c: E2 02 01 A9 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C1 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EE 02 00 35 04 06 00 6D 00 00 7A [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 A9 73 00 90 00 90 [12:44:31]RAPDU: 90 00 [12:44:31]wFMCommunicate OK [12:44:31]wFMCommunicate request_size=10 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 0D 02 02 05 90 CA 54 AD A0 [12:44:31]Write to MH i2c: E2 0D 00 AA 73 80 0D 02 02 05 00 90 CA 54 AD A0 00 00 9C [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 03 00 AA 73 00 90 00 91 [12:44:31]RAPDU: 90 00 [12:44:31]wFMCommunicate OK [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 0D 03 02 [12:44:31]Write to MH i2c: E2 08 00 AB 73 80 0D 03 02 00 00 00 00 99 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 0B 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 0B 00 AB 73 00 99 90 B7 F1 60 1A 02 DC 90 00 C3 [12:44:31]RAPDU: 99 90 B7 F1 60 1A 02 DC 90 00 [12:44:31]wFMCommunicate OK [12:44:31]SAM_PROTO_SignData done [12:44:31]FM_MakeSignedData done [12:44:31]CreateOFDProtocolMessage [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 11 00 00 [12:44:31]Write to MH i2c: E2 08 00 AC 73 80 11 00 00 00 00 00 00 99 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 17 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 17 00 AC 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [12:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:31]wFMCommunicate OK [12:44:31]CreateOFDProtocolMessage done [12:44:31]OFDSenderStorePacket 192149 [12:44:31]StoreOFDPacket docnum=192149 [12:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 01 07 01 BE 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C1 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EE 02 00 35 04 06 00 6D 90 CA 54 AD A0 99 90 B7 F1 60 1A 02 DC [12:44:31]CheckFolder [12:44:31]dirname=/storage/ofd_packets [12:44:31]CheckFolder done [12:44:31]ProducePacketName [12:44:31]name=ofd_packets/00192149 [12:44:31]NVStorageSaveData ofd_packets/00192149 [12:44:31]File name is /storage/ofd_packets/00192149 [12:44:31]Write 301 bytes [12:44:31]NVStorageSaveData done [12:44:31]OFDSenderStorePacket done [12:44:31]KKMCreateOFDPacket done [12:44:31]NVStorageSaveData kkm_last_timestamp [12:44:31]File name is /storage/kkm_last_timestamp [12:44:31]Write 4 bytes [12:44:31]NVStorageSaveData done [12:44:31]ExternCall_PrintAddStr [12:44:31]wPrintStart [12:44:31]Write to MH i2c: 01 00 00 AD 73 20 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 07 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 07 00 AD 73 00 00 00 00 00 FF 0F 35 [12:44:31]RasterBufferAndPrint [12:44:31]line Счет N : (1)31461 [12:44:31]line ИНН: 02508201610067 [12:44:31]line Контрольно-Кассовый Чек [12:44:31]line ПРОДАЖА [12:44:31]line ТРК (МРК, ГНК) : 21 [12:44:31]line Товар: 2710124130 [12:44:31]line Аи-92-К-5 [12:44:31]line 10.470 * 66.90 [12:44:31]line = 700.44 [12:44:31]line НДС 12% НСП 1% [12:44:31]line > о реализуемом товаре [12:44:31]line ОКРУГЛЕНИЕ: -0.44 [12:44:31]line ИТОГО: 700.00 [12:44:31]line Внесено: 700.00 [12:44:31]line СДАЧА: 0.00 [12:44:31]line НСП 1% : 6.20 [12:44:31]line НДС 12% : 74.38 [12:44:31]line Наличными: 700.00 [12:44:31]line Безнал.: 0.00 [12:44:31]line Место: АЗС № 170 "Партнер Нефть" [12:44:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:44:31]line СНО: Общий режим [12:44:31]line Чек 181 27.10.2024 12:44 [12:44:31]line Смена: 542 ФФД: 1.0 [12:44:31]line ЗНМ: 0300000110 [12:44:31]line РНМ: 0000000000091776 [12:44:31]line Версия ККМ: 001 [12:44:31]line ФМ: 0000000000871754 [12:44:31]line ФД: 192149 [12:44:31]line ФПД: 120468637265312 [12:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192149&fm=120468637265312&tin=02508201610067®Number=0000000000091776&sum=70000 [12:44:31]OFD Sender: Processing packet 192149 [packets to send 75, broken 74] [12:44:31]ProducePacketName [12:44:31]name=ofd_packets/00192149 [12:44:31]OFD Sender: To server: pG, [12:44:31]CommunicateWithHost lk.salyk.kg:30040 [12:44:31]ConnectInit lk.salyk.kg [12:44:31]written 0, free lines is 4095 [12:44:31]Connected sock=8 [12:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 01 07 01 BE 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C1 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EE 02 00 35 04 06 00 6D 90 CA 54 AD A0 99 90 B7 F1 60 1A 02 DC [12:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 B8 47 00 AA DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EE 02 00 F4 03 04 00 89 DA 1D 67 B6 04 01 00 00 8C 18 64 96 5B A4 F8 DB [12:44:32]CommunicateWithHost err = 0 [12:44:32]CheckOFDResponse [12:44:32]1017 (14) - 77093643461234 [12:44:32]1041 (16) - 0000000000871754 [12:44:32]1040 (4) - 192149 [12:44:32]1012 (4) - 27.10.2024 06:15 [12:44:32]1206 (1) - 0 [12:44:32]OFD Sender: Remove packet 192149 [12:44:32]ProducePacketName [12:44:32]name=ofd_packets/00192149 [12:44:32]NVStorageDeleteData [12:44:32]Write to MH i2c: 01 00 00 D8 73 4B [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: 01 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: 01 07 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: 01 07 00 D8 73 00 00 00 00 00 9D 0C FB [12:44:32]RasterBufferAndPrint [12:44:32]line [12:44:32]line [12:44:32]line [12:44:32]line [12:44:32]line [12:44:32]written 0, free lines is 3237 [12:44:32]MH_Cut [12:44:32]Write to MH i2c: D1 01 00 DF 73 01 24 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: D1 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: D1 01 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: D1 01 00 DF 73 00 23 [12:44:32]Write to MH i2c: 01 00 00 E0 73 53 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]OFD Sender: No OFD packet to send [12:44:33]*** Cut start [12:44:33]*** Partial cut [12:44:33]*** CUTSNS_PIN = 1 [12:44:33]*** CUTSNS_PIN = 0 [12:44:33]*** Brake cut motor [12:44:33]Read from MH i2c: 01 [12:44:33]MH_I2C_Read... [12:44:33]*** Stop cut motor [12:44:33]*** Cut end [12:44:33]Read from MH i2c: 01 07 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: 01 07 00 E0 73 00 00 00 00 00 FF 0F 68 [12:44:33]process_action close_receipt done [12:44:33]requested_data is exist [12:44:33]produce_requested_data [12:44:33]requested_item fm.sn is exist - process it [12:44:33]wFMCommunicate request_size=4 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 11 00 00 [12:44:33]Write to MH i2c: E2 08 00 E1 73 80 11 00 00 00 00 00 00 CE [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:33]Read from MH i2c: E2 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 17 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 17 00 E1 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [12:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:33]wFMCommunicate OK [12:44:33]requested_item fd.num is exist - process it [12:44:33]SAM_PROTO_GetFieldsCounters [12:44:33]wFMCommunicate request_size=4 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 13 00 00 [12:44:33]Write to MH i2c: E2 08 00 E2 73 80 13 00 00 00 00 00 00 D1 [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 62 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 62 00 E2 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_GetFieldsCounters done [12:44:34]requested_item shift.num is exist - process it [12:44:34]requested_item shift.opened is exist - process it [12:44:34]req_shift_opened [12:44:34]FM_GetShiftState [12:44:34]SAM_PROTO_GetShiftState [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 13 01 00 [12:44:34]Write to MH i2c: E2 08 00 E3 73 80 13 01 00 00 00 00 00 D3 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0E 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0E 00 E3 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 14 [12:44:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_GetShiftState done [12:44:34]FM_GetShiftState done [12:44:34]req_shift_opened done [12:44:34]requested_item shift.open_date is exist - process it [12:44:34]req_shift_open_date [12:44:34]req_shift_open_date done [12:44:34]produce_requested_data done [12:44:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192149,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:44:34]process_action_free close_receipt [12:44:34]json_value_free [12:44:34]json_value_free done [12:44:34]process_json_proto returns [12:44:34]Send response to host [12:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192149,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:44:34]free response buf [12:44:34]execute_script done [12:44:34]execute_script returns [12:44:34]free content buf [12:44:34]Sock 5.Close socket [12:44:34]Sock 5.Thread stoped [12:44:34]accept exits with 6 [12:44:34]New connection [12:44:34]New thread 3066817892 created [12:44:34]Thread 3066961252 joined [12:44:34]Waiting for new connection... [12:44:34] Sock 6.Parse request [12:44:34]Sock 6.Check first char [12:44:34]Sock 6.First char is OK [12:44:34]request: POST /json_proto HTTP/1.0 [12:44:34]Method: POST [12:44:34]URL: /json_proto [12:44:34]Method is POST - this is cgi request [12:44:34]url: /json_proto [12:44:34]query_string will be loaded in cgi processing [12:44:34]execute_cgi json_proto POST (null) [12:44:34]execute_cgi path=json_proto method=POST [12:44:34]POST find Content-Length [12:44:34]Host: 172.17.63.131:8080 [12:44:34]Content-Length: 678 [12:44:34]Content-Type: application/json [12:44:34] [12:44:34]POST finish read [12:44:34]Found Content-Length = 678 [12:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31459", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:34]execute_script... [12:44: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)31459", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:34]POST & json_proto [12:44:34]process_json_proto [12:44:34]json parsed OK: [12:44:34]protocol is kg_v1.0 [12:44:34]action value=close_receipt [12:44:34]process_action close_receipt [12:44:34]cmd_close_receipt [12:44:34]MH_GetDate [12:44:34]Write to MH i2c: F0 00 00 E4 73 46 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: F0 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: F0 09 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: F0 09 00 E4 73 00 C6 35 1E 67 22 05 6E 64 C8 [12:44:34]GetLastDocTimeStamp 1730033089 [12:44:34]current date 1730033094 [12:44:34]FM_GetShiftState [12:44:34]SAM_PROTO_GetShiftState [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 13 01 00 [12:44:34]Write to MH i2c: E2 08 00 E5 73 80 13 01 00 00 00 00 00 D5 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:34]Read from MH i2c: E2 0E 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0E 00 E5 73 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 16 [12:44:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_GetShiftState done [12:44:34]FM_GetShiftState done [12:44:34]opened in 1729989159 [12:44:34]opened+sec_in_day 1730075559 [12:44:34]quantity*price = 250012 [12:44:34]sum+1 = 250013 [12:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 182 27.10.2024 12:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192150 ФПД: 203633950096087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124454&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192150&fm=203633950096087&tin=02508201610067®Number=0000000000091776&sum=250000 [12:44:35]StoreToDocumentArchive [12:44:35]shift 542 fd 192150 [12:44:35]save to /storage/0542/doc_00192150 [12:44:35]save last doc name /storage/0542/doc_00192150 to /storage/kkm_last_doc_name [12:44:35]save OK [12:44:35]Clear old archive folders... [12:44:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:44:35]tlvbuf is 01D17610 [12:44:35]SAM_PROTO_ClearQueue [12:44:35]wFMCommunicate request_size=4 [12:44:35]MH_SAM_APDU [12:44:35]CAPDU: 80 09 00 00 [12:44:35]Write to MH i2c: E2 08 00 F2 73 80 09 00 00 00 00 00 00 D7 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:35]Read from MH i2c: E2 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: E2 03 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: E2 03 00 F2 73 00 90 00 D9 [12:44:35]RAPDU: 90 00 [12:44:35]wFMCommunicate OK [12:44:35]SAM_PROTO_ClearQueue done [12:44:35]KKMCreateOFDPacket [12:44:35]OFDProtocolAddRootSTLVToBuf [12:44:35]FM_MakeSignedData [12:44:35]FM_MakeSignedData [12:44:35]SAM_PROTO_SignData [12:44:35]wFMCommunicate request_size=4 [12:44:35]MH_SAM_APDU [12:44:35]CAPDU: 80 0D 01 02 [12:44:35]Write to MH i2c: E2 08 00 F3 73 80 0D 01 02 00 00 00 00 DF [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:35]Read from MH i2c: E2 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: E2 03 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: E2 03 00 F3 73 00 90 00 DA [12:44:35]RAPDU: 90 00 [12:44:35]wFMCommunicate OK [12:44:35]wFMCommunicate request_size=255 [12:44:35]MH_SAM_APDU [12:44: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C6 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EE 02 00 35 04 06 00 B9 34 39 42 [12:44:36]Write to MH i2c: E2 02 01 F4 73 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C6 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EE 02 00 35 04 06 00 B9 34 39 42 00 00 0E [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 03 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 03 00 F4 73 00 90 00 DB [12:44:36]RAPDU: 90 00 [12:44:36]wFMCommunicate OK [12:44:36]wFMCommunicate request_size=7 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 0D 02 02 02 7A D7 [12:44:36]Write to MH i2c: E2 0A 00 F5 73 80 0D 02 02 02 00 7A D7 00 00 37 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 03 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 03 00 F5 73 00 90 00 DC [12:44:36]RAPDU: 90 00 [12:44:36]wFMCommunicate OK [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 0D 03 02 [12:44:36]Write to MH i2c: E2 08 00 F6 73 80 0D 03 02 00 00 00 00 E4 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0B 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0B 00 F6 73 00 F5 5B 2E D7 BA A8 59 58 90 00 4D [12:44:36]RAPDU: F5 5B 2E D7 BA A8 59 58 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_SignData done [12:44:36]FM_MakeSignedData done [12:44:36]CreateOFDProtocolMessage [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 11 00 00 [12:44:36]Write to MH i2c: E2 08 00 F7 73 80 11 00 00 00 00 00 00 E4 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 F7 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [12:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:36]wFMCommunicate OK [12:44:36]CreateOFDProtocolMessage done [12:44:36]OFDSenderStorePacket 192150 [12:44:36]StoreOFDPacket docnum=192150 [12:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C1 77 04 01 03 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C6 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EE 02 00 35 04 06 00 B9 34 39 42 7A D7 F5 5B 2E D7 BA A8 59 58 [12:44:36]CheckFolder [12:44:36]dirname=/storage/ofd_packets [12:44:36]CheckFolder done [12:44:36]ProducePacketName [12:44:36]name=ofd_packets/00192150 [12:44:36]NVStorageSaveData ofd_packets/00192150 [12:44:36]File name is /storage/ofd_packets/00192150 [12:44:36]Write 298 bytes [12:44:36]NVStorageSaveData done [12:44:36]OFDSenderStorePacket done [12:44:36]KKMCreateOFDPacket done [12:44:36]NVStorageSaveData kkm_last_timestamp [12:44:36]File name is /storage/kkm_last_timestamp [12:44:36]Write 4 bytes [12:44:36]NVStorageSaveData done [12:44:36]ExternCall_PrintAddStr [12:44:36]wPrintStart [12:44:36]Write to MH i2c: 01 00 00 F8 73 6B [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: 01 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: 01 07 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: 01 07 00 F8 73 00 00 00 00 00 FF 0F 80 [12:44:36]RasterBufferAndPrint [12:44:36]line Счет N : (1)31459 [12:44:36]line ИНН: 02508201610067 [12:44:36]line Контрольно-Кассовый Чек [12:44:36]line ПРОДАЖА [12:44:36]line ТРК (МРК, ГНК) : 11 [12:44:36]line Товар: 2710194210 [12:44:36]line ДТ-К-5 [12:44:36]line 32.810 * 76.20 [12:44:36]line = 2500.12 [12:44:36]line НДС 12% НСП 1% [12:44:36]line > о реализуемом товаре [12:44:36]line ОКРУГЛЕНИЕ: -0.12 [12:44:36]line ИТОГО: 2500.00 [12:44:36]line Внесено: 2500.00 [12:44:36]line СДАЧА: 0.00 [12:44:36]line НСП 1% : 22.12 [12:44:36]line НДС 12% : 265.50 [12:44:36]line Наличными: 2500.00 [12:44:36]line Безнал.: 0.00 [12:44:36]line Место: АЗС № 170 "Партнер Нефть" [12:44:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:44:36]line СНО: Общий режим [12:44:36]line Чек 182 27.10.2024 12:44 [12:44:36]line Смена: 542 ФФД: 1.0 [12:44:36]line ЗНМ: 0300000110 [12:44:36]line РНМ: 0000000000091776 [12:44:36]line Версия ККМ: 001 [12:44:36]line ФМ: 0000000000871754 [12:44:36]line ФД: 192150 [12:44:36]line ФПД: 203633950096087 [12:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124454&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192150&fm=203633950096087&tin=02508201610067®Number=0000000000091776&sum=250000 [12:44:36]OFD Sender: Processing packet 192150 [packets to send 75, broken 74] [12:44:36]ProducePacketName [12:44:36]name=ofd_packets/00192150 [12:44:36]OFD Sender: To server: pG, [12:44:36]CommunicateWithHost lk.salyk.kg:30040 [12:44:36]ConnectInit lk.salyk.kg [12:44:36]written 0, free lines is 4095 [12:44:36]Connected sock=5 [12:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C1 77 04 01 03 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C6 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EE 02 00 35 04 06 00 B9 34 39 42 7A D7 F5 5B 2E D7 BA A8 59 58 [12:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 25 47 00 C5 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EE 02 00 F4 03 04 00 8E DA 1D 67 B6 04 01 00 00 72 DE 7E B9 BC 03 01 3D [12:44:37]CommunicateWithHost err = 0 [12:44:37]CheckOFDResponse [12:44:37]1017 (14) - 77093643461234 [12:44:37]1041 (16) - 0000000000871754 [12:44:37]1040 (4) - 192150 [12:44:37]1012 (4) - 27.10.2024 06:15 [12:44:37]1206 (1) - 0 [12:44:37]OFD Sender: Remove packet 192150 [12:44:37]ProducePacketName [12:44:37]name=ofd_packets/00192150 [12:44:37]NVStorageDeleteData [12:44:37]Write to MH i2c: 01 00 00 23 74 97 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: 01 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: 01 07 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: 01 07 00 23 74 00 00 00 00 00 B0 0C 5A [12:44:37]RasterBufferAndPrint [12:44:37]line [12:44:37]line [12:44:37]line [12:44:37]line [12:44:37]line [12:44:37]written 0, free lines is 3263 [12:44:37]MH_Cut [12:44:37]Write to MH i2c: D1 01 00 2A 74 01 70 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: D1 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: D1 01 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: D1 01 00 2A 74 00 6F [12:44:37]Write to MH i2c: 01 00 00 2B 74 9F [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]OFD Sender: No OFD packet to send [12:44:38]*** Cut start [12:44:38]*** Partial cut [12:44:38]*** CUTSNS_PIN = 1 [12:44:38]*** CUTSNS_PIN = 0 [12:44:38]*** Brake cut motor [12:44:38]Read from MH i2c: 01 [12:44:38]MH_I2C_Read... [12:44:38]*** Stop cut motor [12:44:38]*** Cut end [12:44:38]Read from MH i2c: 01 07 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 2B 74 00 00 00 00 00 FF 0F B4 [12:44:38]process_action close_receipt done [12:44:38]requested_data is exist [12:44:38]produce_requested_data [12:44:38]requested_item fm.sn is exist - process it [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 11 00 00 [12:44:38]Write to MH i2c: E2 08 00 2C 74 80 11 00 00 00 00 00 00 1A [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 2C 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [12:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:38]wFMCommunicate OK [12:44:38]requested_item fd.num is exist - process it [12:44:38]SAM_PROTO_GetFieldsCounters [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 13 00 00 [12:44:38]Write to MH i2c: E2 08 00 2D 74 80 13 00 00 00 00 00 00 1D [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 62 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 62 00 2D 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [12:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:39]wFMCommunicate OK [12:44:39]SAM_PROTO_GetFieldsCounters done [12:44:39]requested_item shift.num is exist - process it [12:44:39]requested_item shift.opened is exist - process it [12:44:39]req_shift_opened [12:44:39]FM_GetShiftState [12:44:39]SAM_PROTO_GetShiftState [12:44:39]wFMCommunicate request_size=4 [12:44:39]MH_SAM_APDU [12:44:39]CAPDU: 80 13 01 00 [12:44:39]Write to MH i2c: E2 08 00 2E 74 80 13 01 00 00 00 00 00 1F [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:39]Read from MH i2c: E2 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 0E 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 0E 00 2E 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 60 [12:44:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:44:39]wFMCommunicate OK [12:44:39]SAM_PROTO_GetShiftState done [12:44:39]FM_GetShiftState done [12:44:39]req_shift_opened done [12:44:39]requested_item shift.open_date is exist - process it [12:44:39]req_shift_open_date [12:44:39]req_shift_open_date done [12:44:39]produce_requested_data done [12:44:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192150,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:44:39]process_action_free close_receipt [12:44:39]json_value_free [12:44:39]json_value_free done [12:44:39]process_json_proto returns [12:44:39]Send response to host [12:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192150,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:44:39]free response buf [12:44:39]execute_script done [12:44:39]execute_script returns [12:44:39]free content buf [12:44:39]Sock 6.Close socket [12:44:39]Sock 6.Thread stoped [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:01]accept exits with 8 [12:45:01]New connection [12:45:01]New thread 3066961252 created [12:45:01]Thread 3066817892 joined [12:45:01]Waiting for new connection... [12:45:01] Sock 8.Parse request [12:45:01]Sock 8.Check first char [12:45:01]Sock 8.First char is OK [12:45:01]request: POST /json_proto HTTP/1.0 [12:45:01]Method: POST [12:45:01]URL: /json_proto [12:45:01]Method is POST - this is cgi request [12:45:01]url: /json_proto [12:45:01]query_string will be loaded in cgi processing [12:45:01]execute_cgi json_proto POST (null) [12:45:01]execute_cgi path=json_proto method=POST [12:45:01]POST find Content-Length [12:45:01]Host: 172.17.63.131:8080 [12:45:01]Content-Length: 676 [12:45:01]Content-Type: application/json [12:45:01] [12:45:01]POST finish read [12:45:01]Found Content-Length = 676 [12:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]execute_script... [12:45: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)31462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]POST & json_proto [12:45:01]process_json_proto [12:45:01]json parsed OK: [12:45:01]protocol is kg_v1.0 [12:45:01]action value=close_receipt [12:45:01]process_action close_receipt [12:45:01]cmd_close_receipt [12:45:01]MH_GetDate [12:45:01]Write to MH i2c: F0 00 00 2F 74 92 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 2F 74 00 E2 35 1E 67 22 05 6E 64 30 [12:45:01]GetLastDocTimeStamp 1730033094 [12:45:01]current date 1730033122 [12:45:01]FM_GetShiftState [12:45:01]SAM_PROTO_GetShiftState [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 13 01 00 [12:45:01]Write to MH i2c: E2 08 00 30 74 80 13 01 00 00 00 00 00 21 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 30 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 62 [12:45:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]opened in 1729989159 [12:45:02]opened+sec_in_day 1730075559 [12:45:02]quantity*price = 50041 [12:45:02]sum+1 = 50042 [12:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 183 27.10.2024 12:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192151 ФПД: 278566247972562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192151&fm=278566247972562&tin=02508201610067®Number=0000000000091776&sum=50000 [12:45:03]StoreToDocumentArchive [12:45:03]shift 542 fd 192151 [12:45:03]save to /storage/0542/doc_00192151 [12:45:03]save last doc name /storage/0542/doc_00192151 to /storage/kkm_last_doc_name [12:45:03]save OK [12:45:03]Clear old archive folders... [12:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:03]tlvbuf is 0172E630 [12:45:03]SAM_PROTO_ClearQueue [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 09 00 00 [12:45:03]Write to MH i2c: E2 08 00 3D 74 80 09 00 00 00 00 00 00 23 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 3D 74 00 90 00 25 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_ClearQueue done [12:45:03]KKMCreateOFDPacket [12:45:03]OFDProtocolAddRootSTLVToBuf [12:45:03]FM_MakeSignedData [12:45:03]FM_MakeSignedData [12:45:03]SAM_PROTO_SignData [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 01 02 [12:45:03]Write to MH i2c: E2 08 00 3E 74 80 0D 01 02 00 00 00 00 2B [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 3E 74 00 90 00 26 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=255 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E2 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EE 02 00 35 04 06 00 FD [12:45:03]Write to MH i2c: E2 02 01 3F 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E2 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EE 02 00 35 04 06 00 FD 00 00 B6 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 3F 74 00 90 00 27 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=10 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 02 02 05 5A C2 41 BE D2 [12:45:03]Write to MH i2c: E2 0D 00 40 74 80 0D 02 02 05 00 5A C2 41 BE D2 00 00 25 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 40 74 00 90 00 28 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 03 02 [12:45:03]Write to MH i2c: E2 08 00 41 74 80 0D 03 02 00 00 00 00 30 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 41 74 00 3C E0 3F AA FB A2 DF B5 90 00 67 [12:45:03]RAPDU: 3C E0 3F AA FB A2 DF B5 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_SignData done [12:45:03]FM_MakeSignedData done [12:45:03]CreateOFDProtocolMessage [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 42 74 80 11 00 00 00 00 00 00 30 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 42 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:03]wFMCommunicate OK [12:45:03]CreateOFDProtocolMessage done [12:45:03]OFDSenderStorePacket 192151 [12:45:03]StoreOFDPacket docnum=192151 [12:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 27 07 01 01 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E2 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EE 02 00 35 04 06 00 FD 5A C2 41 BE D2 3C E0 3F AA FB A2 DF B5 [12:45:03]CheckFolder [12:45:03]dirname=/storage/ofd_packets [12:45:03]CheckFolder done [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00192151 [12:45:03]NVStorageSaveData ofd_packets/00192151 [12:45:03]File name is /storage/ofd_packets/00192151 [12:45:03]Write 301 bytes [12:45:03]NVStorageSaveData done [12:45:03]OFDSenderStorePacket done [12:45:03]KKMCreateOFDPacket done [12:45:03]NVStorageSaveData kkm_last_timestamp [12:45:03]File name is /storage/kkm_last_timestamp [12:45:03]Write 4 bytes [12:45:03]NVStorageSaveData done [12:45:03]ExternCall_PrintAddStr [12:45:03]wPrintStart [12:45:03]Write to MH i2c: 01 00 00 43 74 B7 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 43 74 00 00 00 00 00 FF 0F CC [12:45:03]RasterBufferAndPrint [12:45:03]line Счет N : (1)31462 [12:45:03]line ИНН: 02508201610067 [12:45:03]line Контрольно-Кассовый Чек [12:45:03]line ПРОДАЖА [12:45:03]line ТРК (МРК, ГНК) : 12 [12:45:03]line Товар: 2710124130 [12:45:03]line Аи-92-К-5 [12:45:03]line 7.480 * 66.90 [12:45:03]line = 500.41 [12:45:03]line НДС 12% НСП 1% [12:45:03]line > о реализуемом товаре [12:45:03]line ОКРУГЛЕНИЕ: -0.41 [12:45:03]line ИТОГО: 500.00 [12:45:03]line Внесено: 500.00 [12:45:03]line СДАЧА: 0.00 [12:45:03]line НСП 1% : 4.43 [12:45:03]line НДС 12% : 53.14 [12:45:03]line Наличными: 500.00 [12:45:03]line Безнал.: 0.00 [12:45:03]line Место: АЗС № 170 "Партнер Нефть" [12:45:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:45:03]line СНО: Общий режим [12:45:03]line Чек 183 27.10.2024 12:45 [12:45:03]line Смена: 542 ФФД: 1.0 [12:45:03]line ЗНМ: 0300000110 [12:45:03]line РНМ: 0000000000091776 [12:45:03]line Версия ККМ: 001 [12:45:03]line ФМ: 0000000000871754 [12:45:03]line ФД: 192151 [12:45:03]line ФПД: 278566247972562 [12:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192151&fm=278566247972562&tin=02508201610067®Number=0000000000091776&sum=50000 [12:45:04]OFD Sender: Processing packet 192151 [packets to send 75, broken 74] [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00192151 [12:45:04]OFD Sender: To server: pG, [12:45:04]CommunicateWithHost lk.salyk.kg:30040 [12:45:04]ConnectInit lk.salyk.kg [12:45:04]written 0, free lines is 4095 [12:45:04]Connected sock=6 [12:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 27 07 01 01 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E2 35 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EE 02 00 35 04 06 00 FD 5A C2 41 BE D2 3C E0 3F AA FB A2 DF B5 [12:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 BF 47 00 57 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EE 02 00 F4 03 04 00 A9 DA 1D 67 B6 04 01 00 00 0A 09 E5 8E 93 8F C2 2A [12:45:04]CommunicateWithHost err = 0 [12:45:04]CheckOFDResponse [12:45:04]1017 (14) - 77093643461234 [12:45:04]1041 (16) - 0000000000871754 [12:45:04]1040 (4) - 192151 [12:45:04]1012 (4) - 27.10.2024 06:16 [12:45:04]1206 (1) - 0 [12:45:04]OFD Sender: Remove packet 192151 [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00192151 [12:45:04]NVStorageDeleteData [12:45:04]Write to MH i2c: 01 00 00 6E 74 E2 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 6E 74 00 00 00 00 00 9D 0C 92 [12:45:04]RasterBufferAndPrint [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]written 0, free lines is 3238 [12:45:04]MH_Cut [12:45:04]Write to MH i2c: D1 01 00 75 74 01 BB [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 01 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 01 00 75 74 00 BA [12:45:04]Write to MH i2c: 01 00 00 76 74 EA [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]OFD Sender: No OFD packet to send [12:45:05]*** Cut start [12:45:05]*** Partial cut [12:45:05]*** CUTSNS_PIN = 1 [12:45:05]*** CUTSNS_PIN = 0 [12:45:05]*** Brake cut motor [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]*** Stop cut motor [12:45:05]*** Cut end [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 76 74 00 00 00 00 00 FF 0F FF [12:45:05]process_action close_receipt done [12:45:05]requested_data is exist [12:45:05]produce_requested_data [12:45:05]requested_item fm.sn is exist - process it [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 11 00 00 [12:45:05]Write to MH i2c: E2 08 00 77 74 80 11 00 00 00 00 00 00 65 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 77 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [12:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:05]wFMCommunicate OK [12:45:05]requested_item fd.num is exist - process it [12:45:05]SAM_PROTO_GetFieldsCounters [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 00 00 [12:45:05]Write to MH i2c: E2 08 00 78 74 80 13 00 00 00 00 00 00 68 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 78 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [12:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetFieldsCounters done [12:45:06]requested_item shift.num is exist - process it [12:45:06]requested_item shift.opened is exist - process it [12:45:06]req_shift_opened [12:45:06]FM_GetShiftState [12:45:06]SAM_PROTO_GetShiftState [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 13 01 00 [12:45:06]Write to MH i2c: E2 08 00 79 74 80 13 01 00 00 00 00 00 6A [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 79 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AB [12:45:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetShiftState done [12:45:06]FM_GetShiftState done [12:45:06]req_shift_opened done [12:45:06]requested_item shift.open_date is exist - process it [12:45:06]req_shift_open_date [12:45:06]req_shift_open_date done [12:45:06]produce_requested_data done [12:45:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192151,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:45:06]process_action_free close_receipt [12:45:06]json_value_free [12:45:06]json_value_free done [12:45:06]process_json_proto returns [12:45:06]Send response to host [12:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192151,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:45:06]free response buf [12:45:06]execute_script done [12:45:06]execute_script returns [12:45:06]free content buf [12:45:06]Sock 8.Close socket [12:45:06]Sock 8.Thread stoped [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:52]accept exits with 5 [12:46:52]New connection [12:46:52]New thread 3066817892 created [12:46:52]Thread 3066961252 joined [12:46:52]Waiting for new connection... [12:46:52] Sock 5.Parse request [12:46:52]Sock 5.Check first char [12:46:52]Sock 5.First char is OK [12:46:52]request: POST /json_proto HTTP/1.0 [12:46:52]Method: POST [12:46:52]URL: /json_proto [12:46:52]Method is POST - this is cgi request [12:46:52]url: /json_proto [12:46:52]query_string will be loaded in cgi processing [12:46:52]execute_cgi json_proto POST (null) [12:46:52]execute_cgi path=json_proto method=POST [12:46:52]POST find Content-Length [12:46:52]Host: 172.17.63.131:8080 [12:46:52]Content-Length: 681 [12:46:52]Content-Type: application/json [12:46:52] [12:46:52]POST finish read [12:46:52]Found Content-Length = 681 [12:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:52]execute_script... [12:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:52]POST & json_proto [12:46:52]process_json_proto [12:46:52]json parsed OK: [12:46:52]protocol is kg_v1.0 [12:46:52]action value=close_receipt [12:46:52]process_action close_receipt [12:46:52]cmd_close_receipt [12:46:52]MH_GetDate [12:46:52]Write to MH i2c: F0 00 00 7A 74 DD [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: F0 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: F0 09 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: F0 09 00 7A 74 00 50 36 1E 67 22 05 6E 64 EA [12:46:52]GetLastDocTimeStamp 1730033122 [12:46:52]current date 1730033232 [12:46:52]FM_GetShiftState [12:46:52]SAM_PROTO_GetShiftState [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 13 01 00 [12:46:52]Write to MH i2c: E2 08 00 7B 74 80 13 01 00 00 00 00 00 6C [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0E 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0E 00 7B 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AD [12:46:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_GetShiftState done [12:46:52]FM_GetShiftState done [12:46:52]opened in 1729989159 [12:46:52]opened+sec_in_day 1730075559 [12:46:52]quantity*price = 300046 [12:46:52]sum+1 = 300048 [12:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 184 27.10.2024 12:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192152 ФПД: 62998023248801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192152&fm=62998023248801&tin=02508201610067®Number=0000000000091776&sum=300000 [12:46:53]StoreToDocumentArchive [12:46:53]shift 542 fd 192152 [12:46:53]save to /storage/0542/doc_00192152 [12:46:53]save last doc name /storage/0542/doc_00192152 to /storage/kkm_last_doc_name [12:46:53]save OK [12:46:53]Clear old archive folders... [12:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:53]tlvbuf is 01C6F420 [12:46:53]SAM_PROTO_ClearQueue [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 09 00 00 [12:46:53]Write to MH i2c: E2 08 00 88 74 80 09 00 00 00 00 00 00 6E [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 03 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 03 00 88 74 00 90 00 70 [12:46:53]RAPDU: 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_ClearQueue done [12:46:53]KKMCreateOFDPacket [12:46:53]OFDProtocolAddRootSTLVToBuf [12:46:53]FM_MakeSignedData [12:46:53]FM_MakeSignedData [12:46:53]SAM_PROTO_SignData [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 0D 01 02 [12:46:53]Write to MH i2c: E2 08 00 89 74 80 0D 01 02 00 00 00 00 76 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 03 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 03 00 89 74 00 90 00 71 [12:46:53]RAPDU: 90 00 [12:46:53]wFMCommunicate OK [12:46:53]wFMCommunicate request_size=255 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 50 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EE 02 00 35 04 06 00 39 [12:46:53]Write to MH i2c: E2 02 01 8A 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 50 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EE 02 00 35 04 06 00 39 00 00 37 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 8A 74 00 90 00 72 [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=10 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 02 02 05 4B DE CC 1B A1 [12:46:54]Write to MH i2c: E2 0D 00 8B 74 80 0D 02 02 05 00 4B DE CC 1B A1 00 00 34 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 03 00 8B 74 00 90 00 73 [12:46:54]RAPDU: 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 0D 03 02 [12:46:54]Write to MH i2c: E2 08 00 8C 74 80 0D 03 02 00 00 00 00 7B [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 0B 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 0B 00 8C 74 00 E9 FA 26 B7 1B 53 00 75 90 00 1F [12:46:54]RAPDU: E9 FA 26 B7 1B 53 00 75 90 00 [12:46:54]wFMCommunicate OK [12:46:54]SAM_PROTO_SignData done [12:46:54]FM_MakeSignedData done [12:46:54]CreateOFDProtocolMessage [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 11 00 00 [12:46:54]Write to MH i2c: E2 08 00 8D 74 80 11 00 00 00 00 00 00 7B [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 8D 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [12:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:46:54]wFMCommunicate OK [12:46:54]CreateOFDProtocolMessage done [12:46:54]OFDSenderStorePacket 192152 [12:46:54]StoreOFDPacket docnum=192152 [12:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 F1 07 01 69 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 50 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EE 02 00 35 04 06 00 39 4B DE CC 1B A1 E9 FA 26 B7 1B 53 00 75 [12:46:54]CheckFolder [12:46:54]dirname=/storage/ofd_packets [12:46:54]CheckFolder done [12:46:54]ProducePacketName [12:46:54]name=ofd_packets/00192152 [12:46:54]NVStorageSaveData ofd_packets/00192152 [12:46:54]File name is /storage/ofd_packets/00192152 [12:46:54]Write 301 bytes [12:46:54]NVStorageSaveData done [12:46:54]OFDSenderStorePacket done [12:46:54]KKMCreateOFDPacket done [12:46:54]NVStorageSaveData kkm_last_timestamp [12:46:54]File name is /storage/kkm_last_timestamp [12:46:54]Write 4 bytes [12:46:54]NVStorageSaveData done [12:46:54]ExternCall_PrintAddStr [12:46:54]wPrintStart [12:46:54]Write to MH i2c: 01 00 00 8E 74 02 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 8E 74 00 00 00 00 00 FF 0F 17 [12:46:54]RasterBufferAndPrint [12:46:54]line Счет N : (1)31463 [12:46:54]line ИНН: 02508201610067 [12:46:54]line Контрольно-Кассовый Чек [12:46:54]line ПРОДАЖА [12:46:54]line ТРК (МРК, ГНК) : 12 [12:46:54]line Товар: 2710124130 [12:46:54]line Аи-92-К-5 [12:46:54]line 44.850 * 66.90 [12:46:54]line = 3000.47 [12:46:54]line НДС 12% НСП 1% [12:46:54]line > о реализуемом товаре [12:46:54]line ОКРУГЛЕНИЕ: -0.47 [12:46:54]line ИТОГО: 3000.00 [12:46:54]line Внесено: 3000.00 [12:46:54]line СДАЧА: 0.00 [12:46:54]line НСП 1% : 26.55 [12:46:54]line НДС 12% : 318.63 [12:46:54]line Наличными: 3000.00 [12:46:54]line Безнал.: 0.00 [12:46:54]line Место: АЗС № 170 "Партнер Нефть" [12:46:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:46:54]line СНО: Общий режим [12:46:54]line Чек 184 27.10.2024 12:47 [12:46:54]line Смена: 542 ФФД: 1.0 [12:46:54]line ЗНМ: 0300000110 [12:46:54]line РНМ: 0000000000091776 [12:46:54]line Версия ККМ: 001 [12:46:54]line ФМ: 0000000000871754 [12:46:54]line ФД: 192152 [12:46:54]line ФПД: 62998023248801 [12:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192152&fm=62998023248801&tin=02508201610067®Number=0000000000091776&sum=300000 [12:46:54]written 0, free lines is 4095 [12:46:54]OFD Sender: Processing packet 192152 [packets to send 75, broken 74] [12:46:54]ProducePacketName [12:46:54]name=ofd_packets/00192152 [12:46:54]OFD Sender: To server: pG, [12:46:54]CommunicateWithHost lk.salyk.kg:30040 [12:46:54]ConnectInit lk.salyk.kg [12:46:54]Connected sock=8 [12:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 F1 07 01 69 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 50 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EE 02 00 35 04 06 00 39 4B DE CC 1B A1 E9 FA 26 B7 1B 53 00 75 [12:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 99 C1 47 00 43 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EE 02 00 F4 03 04 00 18 DB 1D 67 B6 04 01 00 00 CC F8 F9 03 7B D1 DD 5E [12:46:54]CommunicateWithHost err = 0 [12:46:54]CheckOFDResponse [12:46:54]1017 (14) - 77093643461234 [12:46:54]1041 (16) - 0000000000871754 [12:46:54]1040 (4) - 192152 [12:46:54]1012 (4) - 27.10.2024 06:18 [12:46:54]1206 (1) - 0 [12:46:54]OFD Sender: Remove packet 192152 [12:46:54]ProducePacketName [12:46:54]name=ofd_packets/00192152 [12:46:54]NVStorageDeleteData [12:46:54]Write to MH i2c: 01 00 00 B9 74 2D [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 B9 74 00 00 00 00 00 B6 0C F6 [12:46:54]RasterBufferAndPrint [12:46:54]line [12:46:54]line [12:46:54]line [12:46:54]line [12:46:54]line [12:46:54]written 0, free lines is 3264 [12:46:54]MH_Cut [12:46:54]Write to MH i2c: D1 01 00 C0 74 01 06 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: D1 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: D1 01 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: D1 01 00 C0 74 00 05 [12:46:54]Write to MH i2c: 01 00 00 C1 74 35 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:55]OFD Sender: No OFD packet to send [12:46:55]*** Cut start [12:46:55]*** Partial cut [12:46:55]*** CUTSNS_PIN = 1 [12:46:55]*** CUTSNS_PIN = 0 [12:46:55]*** Brake cut motor [12:46:56]Read from MH i2c: 01 [12:46:56]MH_I2C_Read... [12:46:56]*** Stop cut motor [12:46:56]*** Cut end [12:46:56]Read from MH i2c: 01 07 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: 01 07 00 C1 74 00 00 00 00 00 FF 0F 4A [12:46:56]process_action close_receipt done [12:46:56]requested_data is exist [12:46:56]produce_requested_data [12:46:56]requested_item fm.sn is exist - process it [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 11 00 00 [12:46:56]Write to MH i2c: E2 08 00 C2 74 80 11 00 00 00 00 00 00 B0 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 17 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 17 00 C2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [12:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:46:56]wFMCommunicate OK [12:46:56]requested_item fd.num is exist - process it [12:46:56]SAM_PROTO_GetFieldsCounters [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 13 00 00 [12:46:56]Write to MH i2c: E2 08 00 C3 74 80 13 00 00 00 00 00 00 B3 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 62 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 62 00 C3 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [12:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:56]wFMCommunicate OK [12:46:56]SAM_PROTO_GetFieldsCounters done [12:46:56]requested_item shift.num is exist - process it [12:46:56]requested_item shift.opened is exist - process it [12:46:56]req_shift_opened [12:46:56]FM_GetShiftState [12:46:56]SAM_PROTO_GetShiftState [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 13 01 00 [12:46:56]Write to MH i2c: E2 08 00 C4 74 80 13 01 00 00 00 00 00 B5 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 0E 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 0E 00 C4 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F6 [12:46:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:46:56]wFMCommunicate OK [12:46:56]SAM_PROTO_GetShiftState done [12:46:56]FM_GetShiftState done [12:46:56]req_shift_opened done [12:46:56]requested_item shift.open_date is exist - process it [12:46:56]req_shift_open_date [12:46:56]req_shift_open_date done [12:46:56]produce_requested_data done [12:46:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192152,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:46:56]process_action_free close_receipt [12:46:56]json_value_free [12:46:56]json_value_free done [12:46:56]process_json_proto returns [12:46:56]Send response to host [12:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192152,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:46:56]free response buf [12:46:56]execute_script done [12:46:56]execute_script returns [12:46:56]free content buf [12:46:56]Sock 5.Close socket [12:46:56]Sock 5.Thread stoped [12:47:00]OFD Sender: No OFD packet to send [12:47:01]accept exits with 6 [12:47:01]New connection [12:47:01]New thread 3066961252 created [12:47:01]Thread 3066817892 joined [12:47:01]Waiting for new connection... [12:47:01] Sock 6.Parse request [12:47:01]Sock 6.Check first char [12:47:01]Sock 6.First char is OK [12:47:01]request: POST /json_proto HTTP/1.0 [12:47:01]Method: POST [12:47:01]URL: /json_proto [12:47:01]Method is POST - this is cgi request [12:47:01]url: /json_proto [12:47:01]query_string will be loaded in cgi processing [12:47:01]execute_cgi json_proto POST (null) [12:47:01]execute_cgi path=json_proto method=POST [12:47:01]POST find Content-Length [12:47:01]Host: 172.17.63.131:8080 [12:47:01]Content-Length: 676 [12:47:01]Content-Type: application/json [12:47:01] [12:47:01]POST finish read [12:47:01]Found Content-Length = 676 [12:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:01]execute_script... [12:47: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)31464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:01]POST & json_proto [12:47:01]process_json_proto [12:47:01]json parsed OK: [12:47:01]protocol is kg_v1.0 [12:47:01]action value=close_receipt [12:47:01]process_action close_receipt [12:47:01]cmd_close_receipt [12:47:01]MH_GetDate [12:47:01]Write to MH i2c: F0 00 00 C5 74 28 [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 09 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: F0 09 00 C5 74 00 59 36 1E 67 22 05 6E 64 3E [12:47:01]GetLastDocTimeStamp 1730033232 [12:47:01]current date 1730033241 [12:47:01]FM_GetShiftState [12:47:01]SAM_PROTO_GetShiftState [12:47:01]wFMCommunicate request_size=4 [12:47:01]MH_SAM_APDU [12:47:01]CAPDU: 80 13 01 00 [12:47:01]Write to MH i2c: E2 08 00 C6 74 80 13 01 00 00 00 00 00 B7 [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 [12:47:01]MH_I2C_Read... [12:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:01]Read from MH i2c: E2 0E 00 [12:47:01]MH_I2C_Read... [12:47:01]Read from MH i2c: E2 0E 00 C6 74 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F8 [12:47:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:47:01]wFMCommunicate OK [12:47:01]SAM_PROTO_GetShiftState done [12:47:01]FM_GetShiftState done [12:47:01]opened in 1729989159 [12:47:01]opened+sec_in_day 1730075559 [12:47:01]quantity*price = 40006 [12:47:01]sum+1 = 40007 [12:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 185 27.10.2024 12:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192153 ФПД: 13644534576215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192153&fm=13644534576215&tin=02508201610067®Number=0000000000091776&sum=40000 [12:47:02]StoreToDocumentArchive [12:47:02]shift 542 fd 192153 [12:47:02]save to /storage/0542/doc_00192153 [12:47:02]save last doc name /storage/0542/doc_00192153 to /storage/kkm_last_doc_name [12:47:02]save OK [12:47:02]Clear old archive folders... [12:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:02]tlvbuf is 01D138C0 [12:47:02]SAM_PROTO_ClearQueue [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 09 00 00 [12:47:02]Write to MH i2c: E2 08 00 D3 74 80 09 00 00 00 00 00 00 B9 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 D3 74 00 90 00 BB [12:47:02]RAPDU: 90 00 [12:47:02]wFMCommunicate OK [12:47:02]SAM_PROTO_ClearQueue done [12:47:02]KKMCreateOFDPacket [12:47:02]OFDProtocolAddRootSTLVToBuf [12:47:02]FM_MakeSignedData [12:47:02]FM_MakeSignedData [12:47:02]SAM_PROTO_SignData [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 0D 01 02 [12:47:02]Write to MH i2c: E2 08 00 D4 74 80 0D 01 02 00 00 00 00 C1 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 03 00 D4 74 00 90 00 BC [12:47:02]RAPDU: 90 00 [12:47:02]wFMCommunicate OK [12:47:02]wFMCommunicate request_size=255 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 59 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EE 02 00 35 04 06 00 0C [12:47:02]Write to MH i2c: E2 02 01 D5 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 59 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EE 02 00 35 04 06 00 0C 00 00 A6 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 D5 74 00 90 00 BD [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=10 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 0D 02 02 05 68 DD A2 F4 57 [12:47:03]Write to MH i2c: E2 0D 00 D6 74 80 0D 02 02 05 00 68 DD A2 F4 57 00 00 00 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 03 00 D6 74 00 90 00 BE [12:47:03]RAPDU: 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 0D 03 02 [12:47:03]Write to MH i2c: E2 08 00 D7 74 80 0D 03 02 00 00 00 00 C6 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 0B 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 0B 00 D7 74 00 B5 73 4F 00 91 D3 91 84 90 00 B7 [12:47:03]RAPDU: B5 73 4F 00 91 D3 91 84 90 00 [12:47:03]wFMCommunicate OK [12:47:03]SAM_PROTO_SignData done [12:47:03]FM_MakeSignedData done [12:47:03]CreateOFDProtocolMessage [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 11 00 00 [12:47:03]Write to MH i2c: E2 08 00 D8 74 80 11 00 00 00 00 00 00 C6 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 17 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 17 00 D8 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [12:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:03]wFMCommunicate OK [12:47:03]CreateOFDProtocolMessage done [12:47:03]OFDSenderStorePacket 192153 [12:47:03]StoreOFDPacket docnum=192153 [12:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 B4 07 01 20 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 59 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EE 02 00 35 04 06 00 0C 68 DD A2 F4 57 B5 73 4F 00 91 D3 91 84 [12:47:03]CheckFolder [12:47:03]dirname=/storage/ofd_packets [12:47:03]CheckFolder done [12:47:03]ProducePacketName [12:47:03]name=ofd_packets/00192153 [12:47:03]NVStorageSaveData ofd_packets/00192153 [12:47:03]File name is /storage/ofd_packets/00192153 [12:47:03]Write 301 bytes [12:47:03]NVStorageSaveData done [12:47:03]OFDSenderStorePacket done [12:47:03]KKMCreateOFDPacket done [12:47:03]NVStorageSaveData kkm_last_timestamp [12:47:03]File name is /storage/kkm_last_timestamp [12:47:03]Write 4 bytes [12:47:03]NVStorageSaveData done [12:47:03]ExternCall_PrintAddStr [12:47:03]wPrintStart [12:47:03]Write to MH i2c: 01 00 00 D9 74 4D [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 D9 74 00 00 00 00 00 FF 0F 62 [12:47:03]RasterBufferAndPrint [12:47:03]line Счет N : (1)31464 [12:47:03]line ИНН: 02508201610067 [12:47:03]line Контрольно-Кассовый Чек [12:47:03]line ПРОДАЖА [12:47:03]line ТРК (МРК, ГНК) : 21 [12:47:03]line Товар: 2710124130 [12:47:03]line Аи-92-К-5 [12:47:03]line 5.980 * 66.90 [12:47:03]line = 400.06 [12:47:03]line НДС 12% НСП 1% [12:47:03]line > о реализуемом товаре [12:47:03]line ОКРУГЛЕНИЕ: -0.06 [12:47:03]line ИТОГО: 400.00 [12:47:03]line Внесено: 400.00 [12:47:03]line СДАЧА: 0.00 [12:47:03]line НСП 1% : 3.54 [12:47:03]line НДС 12% : 42.48 [12:47:03]line Наличными: 400.00 [12:47:03]line Безнал.: 0.00 [12:47:03]line Место: АЗС № 170 "Партнер Нефть" [12:47:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:47:03]line СНО: Общий режим [12:47:03]line Чек 185 27.10.2024 12:47 [12:47:03]line Смена: 542 ФФД: 1.0 [12:47:03]line ЗНМ: 0300000110 [12:47:03]line РНМ: 0000000000091776 [12:47:03]line Версия ККМ: 001 [12:47:03]line ФМ: 0000000000871754 [12:47:03]line ФД: 192153 [12:47:03]line ФПД: 13644534576215 [12:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192153&fm=13644534576215&tin=02508201610067®Number=0000000000091776&sum=40000 [12:47:03]written 0, free lines is 4095 [12:47:03]OFD Sender: Processing packet 192153 [packets to send 75, broken 74] [12:47:03]ProducePacketName [12:47:03]name=ofd_packets/00192153 [12:47:03]OFD Sender: To server: pG, [12:47:03]CommunicateWithHost lk.salyk.kg:30040 [12:47:03]ConnectInit lk.salyk.kg [12:47:03]Connected sock=8 [12:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 B4 07 01 20 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 59 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EE 02 00 35 04 06 00 0C 68 DD A2 F4 57 B5 73 4F 00 91 D3 91 84 [12:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 35 92 47 00 12 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EE 02 00 F4 03 04 00 21 DB 1D 67 B6 04 01 00 00 53 B6 7E 08 6A B9 58 53 [12:47:03]CommunicateWithHost err = 0 [12:47:03]CheckOFDResponse [12:47:03]1017 (14) - 77093643461234 [12:47:03]1041 (16) - 0000000000871754 [12:47:03]1040 (4) - 192153 [12:47:03]1012 (4) - 27.10.2024 06:18 [12:47:03]1206 (1) - 0 [12:47:03]OFD Sender: Remove packet 192153 [12:47:03]ProducePacketName [12:47:03]name=ofd_packets/00192153 [12:47:03]NVStorageDeleteData [12:47:03]Write to MH i2c: 01 00 00 04 75 79 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: 01 07 00 04 75 00 00 00 00 00 A5 0C 31 [12:47:03]RasterBufferAndPrint [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]line [12:47:03]written 0, free lines is 3248 [12:47:03]MH_Cut [12:47:03]Write to MH i2c: D1 01 00 0B 75 01 52 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 01 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: D1 01 00 0B 75 00 51 [12:47:03]Write to MH i2c: 01 00 00 0C 75 81 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:04]OFD Sender: No OFD packet to send [12:47:04]*** Cut start [12:47:04]*** Partial cut [12:47:04]*** CUTSNS_PIN = 1 [12:47:04]*** CUTSNS_PIN = 0 [12:47:04]*** Brake cut motor [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]*** Stop cut motor [12:47:05]*** Cut end [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 0C 75 00 00 00 00 00 FF 0F 96 [12:47:05]process_action close_receipt done [12:47:05]requested_data is exist [12:47:05]produce_requested_data [12:47:05]requested_item fm.sn is exist - process it [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 11 00 00 [12:47:05]Write to MH i2c: E2 08 00 0D 75 80 11 00 00 00 00 00 00 FC [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 0D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [12:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:05]wFMCommunicate OK [12:47:05]requested_item fd.num is exist - process it [12:47:05]SAM_PROTO_GetFieldsCounters [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 13 00 00 [12:47:05]Write to MH i2c: E2 08 00 0E 75 80 13 00 00 00 00 00 00 FF [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 62 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 62 00 0E 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [12:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_GetFieldsCounters done [12:47:05]requested_item shift.num is exist - process it [12:47:05]requested_item shift.opened is exist - process it [12:47:05]req_shift_opened [12:47:05]FM_GetShiftState [12:47:05]SAM_PROTO_GetShiftState [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 13 01 00 [12:47:05]Write to MH i2c: E2 08 00 0F 75 80 13 01 00 00 00 00 00 01 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:05]Read from MH i2c: E2 0E 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0E 00 0F 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 42 [12:47:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_GetShiftState done [12:47:05]FM_GetShiftState done [12:47:05]req_shift_opened done [12:47:05]requested_item shift.open_date is exist - process it [12:47:05]req_shift_open_date [12:47:05]req_shift_open_date done [12:47:05]produce_requested_data done [12:47:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192153,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:47:05]process_action_free close_receipt [12:47:05]json_value_free [12:47:05]json_value_free done [12:47:05]process_json_proto returns [12:47:05]Send response to host [12:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192153,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:47:05]free response buf [12:47:05]execute_script done [12:47:05]execute_script returns [12:47:05]free content buf [12:47:05]Sock 6.Close socket [12:47:05]Sock 6.Thread stoped [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:15]accept exits with 5 [12:49:15]New connection [12:49:15]New thread 3066817892 created [12:49:15]Thread 3066961252 joined [12:49:15]Waiting for new connection... [12:49:15] Sock 5.Parse request [12:49:15]Sock 5.Check first char [12:49:15]Sock 5.First char is OK [12:49:15]request: POST /json_proto HTTP/1.0 [12:49:15]Method: POST [12:49:15]URL: /json_proto [12:49:15]Method is POST - this is cgi request [12:49:15]url: /json_proto [12:49:15]query_string will be loaded in cgi processing [12:49:15]execute_cgi json_proto POST (null) [12:49:15]execute_cgi path=json_proto method=POST [12:49:15]POST find Content-Length [12:49:15]Host: 172.17.63.131:8080 [12:49:15]Content-Length: 678 [12:49:15]Content-Type: application/json [12:49:15] [12:49:15]POST finish read [12:49:15]Found Content-Length = 678 [12:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31465", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:15]execute_script... [12:49:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31465", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:15]POST & json_proto [12:49:15]process_json_proto [12:49:15]json parsed OK: [12:49:15]protocol is kg_v1.0 [12:49:15]action value=close_receipt [12:49:15]process_action close_receipt [12:49:15]cmd_close_receipt [12:49:15]MH_GetDate [12:49:15]Write to MH i2c: F0 00 00 10 75 74 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: F0 09 00 10 75 00 DF 36 1E 67 22 05 6E 64 10 [12:49:15]GetLastDocTimeStamp 1730033241 [12:49:15]current date 1730033375 [12:49:15]FM_GetShiftState [12:49:15]SAM_PROTO_GetShiftState [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 13 01 00 [12:49:15]Write to MH i2c: E2 08 00 11 75 80 13 01 00 00 00 00 00 03 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 11 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 44 [12:49:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_GetShiftState done [12:49:15]FM_GetShiftState done [12:49:15]opened in 1729989159 [12:49:15]opened+sec_in_day 1730075559 [12:49:15]quantity*price = 200025 [12:49:15]sum+1 = 200026 [12:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 186 27.10.2024 12:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192154 ФПД: 130609796254130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192154&fm=130609796254130&tin=02508201610067®Number=0000000000091776&sum=200000 [12:49:16]StoreToDocumentArchive [12:49:16]shift 542 fd 192154 [12:49:16]save to /storage/0542/doc_00192154 [12:49:16]save last doc name /storage/0542/doc_00192154 to /storage/kkm_last_doc_name [12:49:16]save OK [12:49:16]Clear old archive folders... [12:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:49:16]tlvbuf is 01960CC0 [12:49:16]SAM_PROTO_ClearQueue [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 09 00 00 [12:49:16]Write to MH i2c: E2 08 00 1E 75 80 09 00 00 00 00 00 00 05 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 1E 75 00 90 00 07 [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]SAM_PROTO_ClearQueue done [12:49:16]KKMCreateOFDPacket [12:49:16]OFDProtocolAddRootSTLVToBuf [12:49:16]FM_MakeSignedData [12:49:16]FM_MakeSignedData [12:49:16]SAM_PROTO_SignData [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 0D 01 02 [12:49:16]Write to MH i2c: E2 08 00 1F 75 80 0D 01 02 00 00 00 00 0D [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 1F 75 00 90 00 08 [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]wFMCommunicate request_size=255 [12:49:16]MH_SAM_APDU [12:49: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DF 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EE 02 00 35 04 06 00 76 C9 F6 82 [12:49:16]Write to MH i2c: E2 02 01 20 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DF 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EE 02 00 35 04 06 00 76 C9 F6 82 00 00 3A [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 20 75 00 90 00 09 [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]wFMCommunicate request_size=7 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 0D 02 02 02 89 B2 [12:49:16]Write to MH i2c: E2 0A 00 21 75 80 0D 02 02 02 00 89 B2 00 00 4F [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 03 00 21 75 00 90 00 0A [12:49:16]RAPDU: 90 00 [12:49:16]wFMCommunicate OK [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 0D 03 02 [12:49:16]Write to MH i2c: E2 08 00 22 75 80 0D 03 02 00 00 00 00 12 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0B 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 0B 00 22 75 00 FC 30 9E E2 F4 BE B4 40 90 00 65 [12:49:16]RAPDU: FC 30 9E E2 F4 BE B4 40 90 00 [12:49:16]wFMCommunicate OK [12:49:16]SAM_PROTO_SignData done [12:49:16]FM_MakeSignedData done [12:49:16]CreateOFDProtocolMessage [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 11 00 00 [12:49:16]Write to MH i2c: E2 08 00 23 75 80 11 00 00 00 00 00 00 12 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 23 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [12:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:49:16]wFMCommunicate OK [12:49:16]CreateOFDProtocolMessage done [12:49:16]OFDSenderStorePacket 192154 [12:49:16]StoreOFDPacket docnum=192154 [12:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 90 5E 04 01 1C 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DF 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EE 02 00 35 04 06 00 76 C9 F6 82 89 B2 FC 30 9E E2 F4 BE B4 40 [12:49:16]CheckFolder [12:49:16]dirname=/storage/ofd_packets [12:49:16]CheckFolder done [12:49:16]ProducePacketName [12:49:16]name=ofd_packets/00192154 [12:49:16]NVStorageSaveData ofd_packets/00192154 [12:49:16]File name is /storage/ofd_packets/00192154 [12:49:16]Write 298 bytes [12:49:16]NVStorageSaveData done [12:49:16]OFDSenderStorePacket done [12:49:16]KKMCreateOFDPacket done [12:49:16]NVStorageSaveData kkm_last_timestamp [12:49:16]File name is /storage/kkm_last_timestamp [12:49:16]Write 4 bytes [12:49:16]NVStorageSaveData done [12:49:16]ExternCall_PrintAddStr [12:49:16]wPrintStart [12:49:16]Write to MH i2c: 01 00 00 24 75 99 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 24 75 00 00 00 00 00 FF 0F AE [12:49:16]RasterBufferAndPrint [12:49:16]line Счет N : (1)31465 [12:49:16]line ИНН: 02508201610067 [12:49:16]line Контрольно-Кассовый Чек [12:49:16]line ПРОДАЖА [12:49:16]line ТРК (МРК, ГНК) : 11 [12:49:16]line Товар: 2710194210 [12:49:16]line ДТ-К-5 [12:49:16]line 26.250 * 76.20 [12:49:16]line = 2000.25 [12:49:16]line НДС 12% НСП 1% [12:49:16]line > о реализуемом товаре [12:49:16]line ОКРУГЛЕНИЕ: -0.25 [12:49:16]line ИТОГО: 2000.00 [12:49:16]line Внесено: 2000.00 [12:49:16]line СДАЧА: 0.00 [12:49:16]line НСП 1% : 17.70 [12:49:16]line НДС 12% : 212.42 [12:49:16]line Наличными: 2000.00 [12:49:16]line Безнал.: 0.00 [12:49:16]line Место: АЗС № 170 "Партнер Нефть" [12:49:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:49:16]line СНО: Общий режим [12:49:16]line Чек 186 27.10.2024 12:49 [12:49:16]line Смена: 542 ФФД: 1.0 [12:49:16]line ЗНМ: 0300000110 [12:49:16]line РНМ: 0000000000091776 [12:49:16]line Версия ККМ: 001 [12:49:16]line ФМ: 0000000000871754 [12:49:16]line ФД: 192154 [12:49:16]line ФПД: 130609796254130 [12:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192154&fm=130609796254130&tin=02508201610067®Number=0000000000091776&sum=200000 [12:49:17]OFD Sender: Processing packet 192154 [packets to send 75, broken 74] [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00192154 [12:49:17]OFD Sender: To server: pG, [12:49:17]CommunicateWithHost lk.salyk.kg:30040 [12:49:17]ConnectInit lk.salyk.kg [12:49:17]written 0, free lines is 4095 [12:49:17]Connected sock=6 [12:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 90 5E 04 01 1C 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DF 36 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EE 02 00 35 04 06 00 76 C9 F6 82 89 B2 FC 30 9E E2 F4 BE B4 40 [12:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 C4 47 00 89 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EE 02 00 F4 03 04 00 A6 DB 1D 67 B6 04 01 00 00 15 29 34 2A C7 23 72 E9 [12:49:17]CommunicateWithHost err = 0 [12:49:17]CheckOFDResponse [12:49:17]1017 (14) - 77093643461234 [12:49:17]1041 (16) - 0000000000871754 [12:49:17]1040 (4) - 192154 [12:49:17]1012 (4) - 27.10.2024 06:20 [12:49:17]1206 (1) - 0 [12:49:17]OFD Sender: Remove packet 192154 [12:49:17]ProducePacketName [12:49:17]name=ofd_packets/00192154 [12:49:17]NVStorageDeleteData [12:49:17]Write to MH i2c: 01 00 00 4F 75 C4 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: 01 07 00 4F 75 00 00 00 00 00 B3 0C 8A [12:49:17]RasterBufferAndPrint [12:49:17]line [12:49:17]line [12:49:17]line [12:49:17]line [12:49:17]line [12:49:17]written 0, free lines is 3258 [12:49:17]MH_Cut [12:49:17]Write to MH i2c: D1 01 00 56 75 01 9D [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: D1 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: D1 01 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: D1 01 00 56 75 00 9C [12:49:17]Write to MH i2c: 01 00 00 57 75 CC [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]OFD Sender: No OFD packet to send [12:49:18]*** Cut start [12:49:18]*** Partial cut [12:49:18]*** CUTSNS_PIN = 1 [12:49:18]*** CUTSNS_PIN = 0 [12:49:18]*** Brake cut motor [12:49:19]Read from MH i2c: 01 [12:49:19]MH_I2C_Read... [12:49:19]*** Stop cut motor [12:49:19]*** Cut end [12:49:19]Read from MH i2c: 01 07 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 07 00 57 75 00 00 00 00 00 FF 0F E1 [12:49:19]process_action close_receipt done [12:49:19]requested_data is exist [12:49:19]produce_requested_data [12:49:19]requested_item fm.sn is exist - process it [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 11 00 00 [12:49:19]Write to MH i2c: E2 08 00 58 75 80 11 00 00 00 00 00 00 47 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 17 00 58 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9A [12:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:49:19]wFMCommunicate OK [12:49:19]requested_item fd.num is exist - process it [12:49:19]SAM_PROTO_GetFieldsCounters [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 00 00 [12:49:19]Write to MH i2c: E2 08 00 59 75 80 13 00 00 00 00 00 00 4A [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 62 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 62 00 59 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [12:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetFieldsCounters done [12:49:19]requested_item shift.num is exist - process it [12:49:19]requested_item shift.opened is exist - process it [12:49:19]req_shift_opened [12:49:19]FM_GetShiftState [12:49:19]SAM_PROTO_GetShiftState [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 01 00 [12:49:19]Write to MH i2c: E2 08 00 5A 75 80 13 01 00 00 00 00 00 4C [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 5A 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8D [12:49:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetShiftState done [12:49:19]FM_GetShiftState done [12:49:19]req_shift_opened done [12:49:19]requested_item shift.open_date is exist - process it [12:49:19]req_shift_open_date [12:49:19]req_shift_open_date done [12:49:19]produce_requested_data done [12:49:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192154,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:49:19]process_action_free close_receipt [12:49:19]json_value_free [12:49:19]json_value_free done [12:49:19]process_json_proto returns [12:49:19]Send response to host [12:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192154,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:49:19]free response buf [12:49:19]execute_script done [12:49:19]execute_script returns [12:49:19]free content buf [12:49:19]Sock 5.Close socket [12:49:19]Sock 5.Thread stoped [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:41]accept exits with 8 [12:50:41]New connection [12:50:41]New thread 3066961252 created [12:50:41]Thread 3066817892 joined [12:50:41]Waiting for new connection... [12:50:41] Sock 8.Parse request [12:50:41]Sock 8.Check first char [12:50:41]Sock 8.First char is OK [12:50:41]request: POST /json_proto HTTP/1.0 [12:50:41]Method: POST [12:50:41]URL: /json_proto [12:50:41]Method is POST - this is cgi request [12:50:41]url: /json_proto [12:50:41]query_string will be loaded in cgi processing [12:50:41]execute_cgi json_proto POST (null) [12:50:41]execute_cgi path=json_proto method=POST [12:50:41]POST find Content-Length [12:50:41]Host: 172.17.63.131:8080 [12:50:41]Content-Length: 678 [12:50:41]Content-Type: application/json [12:50:41] [12:50:41]POST finish read [12:50:41]Found Content-Length = 678 [12:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31466", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:41]execute_script... [12:50: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)31466", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:41]POST & json_proto [12:50:41]process_json_proto [12:50:41]json parsed OK: [12:50:41]protocol is kg_v1.0 [12:50:41]action value=close_receipt [12:50:41]process_action close_receipt [12:50:41]cmd_close_receipt [12:50:41]MH_GetDate [12:50:41]Write to MH i2c: F0 00 00 5B 75 BF [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: F0 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: F0 09 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: F0 09 00 5B 75 00 35 37 1E 67 22 05 6E 64 B2 [12:50:41]GetLastDocTimeStamp 1730033375 [12:50:41]current date 1730033461 [12:50:41]FM_GetShiftState [12:50:41]SAM_PROTO_GetShiftState [12:50:41]wFMCommunicate request_size=4 [12:50:41]MH_SAM_APDU [12:50:41]CAPDU: 80 13 01 00 [12:50:41]Write to MH i2c: E2 08 00 5C 75 80 13 01 00 00 00 00 00 4E [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:41]Read from MH i2c: E2 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 0E 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 0E 00 5C 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8F [12:50:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:50:41]wFMCommunicate OK [12:50:41]SAM_PROTO_GetShiftState done [12:50:41]FM_GetShiftState done [12:50:41]opened in 1729989159 [12:50:41]opened+sec_in_day 1730075559 [12:50:41]quantity*price = 100050 [12:50:41]sum+1 = 100052 [12:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 187 27.10.2024 12:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192155 ФПД: 65602633944610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125101&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192155&fm=65602633944610&tin=02508201610067®Number=0000000000091776&sum=100000 [12:50:42]StoreToDocumentArchive [12:50:42]shift 542 fd 192155 [12:50:42]save to /storage/0542/doc_00192155 [12:50:42]save last doc name /storage/0542/doc_00192155 to /storage/kkm_last_doc_name [12:50:42]save OK [12:50:42]Clear old archive folders... [12:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:42]tlvbuf is 01960F80 [12:50:42]SAM_PROTO_ClearQueue [12:50:42]wFMCommunicate request_size=4 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 09 00 00 [12:50:42]Write to MH i2c: E2 08 00 69 75 80 09 00 00 00 00 00 00 50 [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 69 75 00 90 00 52 [12:50:42]RAPDU: 90 00 [12:50:42]wFMCommunicate OK [12:50:42]SAM_PROTO_ClearQueue done [12:50:42]KKMCreateOFDPacket [12:50:42]OFDProtocolAddRootSTLVToBuf [12:50:42]FM_MakeSignedData [12:50:42]FM_MakeSignedData [12:50:42]SAM_PROTO_SignData [12:50:42]wFMCommunicate request_size=4 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 0D 01 02 [12:50:42]Write to MH i2c: E2 08 00 6A 75 80 0D 01 02 00 00 00 00 58 [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 6A 75 00 90 00 53 [12:50:42]RAPDU: 90 00 [12:50:42]wFMCommunicate OK [12:50:42]wFMCommunicate request_size=255 [12:50:42]MH_SAM_APDU [12:50: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 35 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EE 02 00 35 04 06 00 3B AA 4D B1 [12:50:42]Write to MH i2c: E2 02 01 6B 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 35 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EE 02 00 35 04 06 00 3B AA 4D B1 00 00 1C [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 6B 75 00 90 00 54 [12:50:42]RAPDU: 90 00 [12:50:42]wFMCommunicate OK [12:50:42]wFMCommunicate request_size=7 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 0D 02 02 02 4E 22 [12:50:42]Write to MH i2c: E2 0A 00 6C 75 80 0D 02 02 02 00 4E 22 00 00 CF [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 03 00 6C 75 00 90 00 55 [12:50:42]RAPDU: 90 00 [12:50:42]wFMCommunicate OK [12:50:42]wFMCommunicate request_size=4 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 0D 03 02 [12:50:42]Write to MH i2c: E2 08 00 6D 75 80 0D 03 02 00 00 00 00 5D [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 0B 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 0B 00 6D 75 00 E0 16 A7 B5 33 A4 25 25 90 00 D1 [12:50:42]RAPDU: E0 16 A7 B5 33 A4 25 25 90 00 [12:50:42]wFMCommunicate OK [12:50:42]SAM_PROTO_SignData done [12:50:42]FM_MakeSignedData done [12:50:42]CreateOFDProtocolMessage [12:50:42]wFMCommunicate request_size=4 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 11 00 00 [12:50:42]Write to MH i2c: E2 08 00 6E 75 80 11 00 00 00 00 00 00 5D [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 17 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 17 00 6E 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [12:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:50:42]wFMCommunicate OK [12:50:42]CreateOFDProtocolMessage done [12:50:42]OFDSenderStorePacket 192155 [12:50:42]StoreOFDPacket docnum=192155 [12:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 68 88 04 01 EB 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 35 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EE 02 00 35 04 06 00 3B AA 4D B1 4E 22 E0 16 A7 B5 33 A4 25 25 [12:50:42]CheckFolder [12:50:42]dirname=/storage/ofd_packets [12:50:42]CheckFolder done [12:50:42]ProducePacketName [12:50:42]name=ofd_packets/00192155 [12:50:42]NVStorageSaveData ofd_packets/00192155 [12:50:42]File name is /storage/ofd_packets/00192155 [12:50:42]Write 298 bytes [12:50:42]NVStorageSaveData done [12:50:42]OFDSenderStorePacket done [12:50:42]KKMCreateOFDPacket done [12:50:42]NVStorageSaveData kkm_last_timestamp [12:50:42]File name is /storage/kkm_last_timestamp [12:50:42]Write 4 bytes [12:50:42]NVStorageSaveData done [12:50:42]ExternCall_PrintAddStr [12:50:42]wPrintStart [12:50:42]Write to MH i2c: 01 00 00 6F 75 E4 [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: 01 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: 01 07 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: 01 07 00 6F 75 00 00 00 00 00 FF 0F F9 [12:50:42]RasterBufferAndPrint [12:50:42]line Счет N : (1)31466 [12:50:42]line ИНН: 02508201610067 [12:50:42]line Контрольно-Кассовый Чек [12:50:42]line ПРОДАЖА [12:50:42]line ТРК (МРК, ГНК) : 11 [12:50:42]line Товар: 2710194210 [12:50:42]line ДТ-К-5 [12:50:42]line 13.130 * 76.20 [12:50:42]line = 1000.51 [12:50:42]line НДС 12% НСП 1% [12:50:42]line > о реализуемом товаре [12:50:42]line ОКРУГЛЕНИЕ: -0.51 [12:50:42]line ИТОГО: 1000.00 [12:50:42]line Внесено: 1000.00 [12:50:42]line СДАЧА: 0.00 [12:50:42]line НСП 1% : 8.85 [12:50:42]line НДС 12% : 106.25 [12:50:42]line Наличными: 1000.00 [12:50:42]line Безнал.: 0.00 [12:50:42]line Место: АЗС № 170 "Партнер Нефть" [12:50:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:50:42]line СНО: Общий режим [12:50:42]line Чек 187 27.10.2024 12:51 [12:50:42]line Смена: 542 ФФД: 1.0 [12:50:42]line ЗНМ: 0300000110 [12:50:42]line РНМ: 0000000000091776 [12:50:42]line Версия ККМ: 001 [12:50:42]line ФМ: 0000000000871754 [12:50:42]line ФД: 192155 [12:50:42]line ФПД: 65602633944610 [12:50:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125101&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192155&fm=65602633944610&tin=02508201610067®Number=0000000000091776&sum=100000 [12:50:43]OFD Sender: Processing packet 192155 [packets to send 75, broken 74] [12:50:43]ProducePacketName [12:50:43]name=ofd_packets/00192155 [12:50:43]OFD Sender: To server: pG, [12:50:43]CommunicateWithHost lk.salyk.kg:30040 [12:50:43]ConnectInit lk.salyk.kg [12:50:43]written 0, free lines is 4095 [12:50:43]Connected sock=6 [12:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 68 88 04 01 EB 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 35 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EE 02 00 35 04 06 00 3B AA 4D B1 4E 22 E0 16 A7 B5 33 A4 25 25 [12:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D 27 47 00 DC 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EE 02 00 F4 03 04 00 FC DB 1D 67 B6 04 01 00 00 2E 45 29 64 BA E2 A2 01 [12:50:43]CommunicateWithHost err = 0 [12:50:43]CheckOFDResponse [12:50:43]1017 (14) - 77093643461234 [12:50:43]1041 (16) - 0000000000871754 [12:50:43]1040 (4) - 192155 [12:50:43]1012 (4) - 27.10.2024 06:21 [12:50:43]1206 (1) - 0 [12:50:43]OFD Sender: Remove packet 192155 [12:50:43]ProducePacketName [12:50:43]name=ofd_packets/00192155 [12:50:43]NVStorageDeleteData [12:50:43]Write to MH i2c: 01 00 00 9A 75 0F [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 07 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 07 00 9A 75 00 00 00 00 00 A5 0C C7 [12:50:43]RasterBufferAndPrint [12:50:43]line [12:50:43]line [12:50:43]line [12:50:43]line [12:50:43]line [12:50:43]written 0, free lines is 3242 [12:50:43]MH_Cut [12:50:43]Write to MH i2c: D1 01 00 A1 75 01 E8 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: D1 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: D1 01 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: D1 01 00 A1 75 00 E7 [12:50:43]Write to MH i2c: 01 00 00 A2 75 17 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]OFD Sender: No OFD packet to send [12:50:44]*** Cut start [12:50:44]*** Partial cut [12:50:44]*** CUTSNS_PIN = 1 [12:50:44]*** CUTSNS_PIN = 0 [12:50:44]*** Brake cut motor [12:50:45]Read from MH i2c: 01 [12:50:45]MH_I2C_Read... [12:50:45]*** Stop cut motor [12:50:45]*** Cut end [12:50:45]Read from MH i2c: 01 07 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 A2 75 00 00 00 00 00 FF 0F 2C [12:50:45]process_action close_receipt done [12:50:45]requested_data is exist [12:50:45]produce_requested_data [12:50:45]requested_item fm.sn is exist - process it [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 11 00 00 [12:50:45]Write to MH i2c: E2 08 00 A3 75 80 11 00 00 00 00 00 00 92 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 17 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 17 00 A3 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [12:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:50:45]wFMCommunicate OK [12:50:45]requested_item fd.num is exist - process it [12:50:45]SAM_PROTO_GetFieldsCounters [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 00 00 [12:50:45]Write to MH i2c: E2 08 00 A4 75 80 13 00 00 00 00 00 00 95 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 62 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 62 00 A4 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:45]wFMCommunicate OK [12:50:45]SAM_PROTO_GetFieldsCounters done [12:50:45]requested_item shift.num is exist - process it [12:50:45]requested_item shift.opened is exist - process it [12:50:45]req_shift_opened [12:50:45]FM_GetShiftState [12:50:45]SAM_PROTO_GetShiftState [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 01 00 [12:50:45]Write to MH i2c: E2 08 00 A5 75 80 13 01 00 00 00 00 00 97 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 0E 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 0E 00 A5 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D8 [12:50:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:50:45]wFMCommunicate OK [12:50:45]SAM_PROTO_GetShiftState done [12:50:45]FM_GetShiftState done [12:50:45]req_shift_opened done [12:50:45]requested_item shift.open_date is exist - process it [12:50:45]req_shift_open_date [12:50:45]req_shift_open_date done [12:50:45]produce_requested_data done [12:50:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192155,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:50:45]process_action_free close_receipt [12:50:45]json_value_free [12:50:45]json_value_free done [12:50:45]process_json_proto returns [12:50:45]Send response to host [12:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192155,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:50:45]free response buf [12:50:45]execute_script done [12:50:45]execute_script returns [12:50:45]free content buf [12:50:45]Sock 8.Close socket [12:50:45]Sock 8.Thread stoped [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:39]accept exits with 5 [12:52:39]New connection [12:52:39]New thread 3066817892 created [12:52:39]Thread 3066961252 joined [12:52:39]Waiting for new connection... [12:52:39] Sock 5.Parse request [12:52:39]Sock 5.Check first char [12:52:39]Sock 5.First char is OK [12:52:39]request: POST /json_proto HTTP/1.0 [12:52:39]Method: POST [12:52:39]URL: /json_proto [12:52:39]Method is POST - this is cgi request [12:52:39]url: /json_proto [12:52:39]query_string will be loaded in cgi processing [12:52:39]execute_cgi json_proto POST (null) [12:52:39]execute_cgi path=json_proto method=POST [12:52:39]POST find Content-Length [12:52:39]Host: 172.17.63.131:8080 [12:52:39]Content-Length: 678 [12:52:39]Content-Type: application/json [12:52:39] [12:52:39]POST finish read [12:52:39]Found Content-Length = 678 [12:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31468", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:39]execute_script... [12:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31468", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:39]POST & json_proto [12:52:39]process_json_proto [12:52:39]json parsed OK: [12:52:39]protocol is kg_v1.0 [12:52:39]action value=close_receipt [12:52:39]process_action close_receipt [12:52:39]cmd_close_receipt [12:52:39]MH_GetDate [12:52:39]Write to MH i2c: F0 00 00 A6 75 0A [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: F0 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: F0 09 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: F0 09 00 A6 75 00 AC 37 1E 67 22 05 6E 64 74 [12:52:39]GetLastDocTimeStamp 1730033461 [12:52:39]current date 1730033580 [12:52:39]FM_GetShiftState [12:52:39]SAM_PROTO_GetShiftState [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 01 00 [12:52:39]Write to MH i2c: E2 08 00 A7 75 80 13 01 00 00 00 00 00 99 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 A7 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DA [12:52:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_GetShiftState done [12:52:39]FM_GetShiftState done [12:52:39]opened in 1729989159 [12:52:39]opened+sec_in_day 1730075559 [12:52:39]quantity*price = 100050 [12:52:39]sum+1 = 100052 [12:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 188 27.10.2024 12:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192156 ФПД: 196481346747606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192156&fm=196481346747606&tin=02508201610067®Number=0000000000091776&sum=100000 [12:52:41]StoreToDocumentArchive [12:52:41]shift 542 fd 192156 [12:52:41]save to /storage/0542/doc_00192156 [12:52:41]save last doc name /storage/0542/doc_00192156 to /storage/kkm_last_doc_name [12:52:41]save OK [12:52:41]Clear old archive folders... [12:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:41]tlvbuf is 01B0C7D0 [12:52:41]SAM_PROTO_ClearQueue [12:52:41]wFMCommunicate request_size=4 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 09 00 00 [12:52:41]Write to MH i2c: E2 08 00 B4 75 80 09 00 00 00 00 00 00 9B [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 B4 75 00 90 00 9D [12:52:41]RAPDU: 90 00 [12:52:41]wFMCommunicate OK [12:52:41]SAM_PROTO_ClearQueue done [12:52:41]KKMCreateOFDPacket [12:52:41]OFDProtocolAddRootSTLVToBuf [12:52:41]FM_MakeSignedData [12:52:41]FM_MakeSignedData [12:52:41]SAM_PROTO_SignData [12:52:41]wFMCommunicate request_size=4 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 0D 01 02 [12:52:41]Write to MH i2c: E2 08 00 B5 75 80 0D 01 02 00 00 00 00 A3 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 B5 75 00 90 00 9E [12:52:41]RAPDU: 90 00 [12:52:41]wFMCommunicate OK [12:52:41]wFMCommunicate request_size=255 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BC 00 00 00 F4 03 04 00 AC 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EE 02 00 35 04 06 00 B2 B2 E0 E0 [12:52:41]Write to MH i2c: E2 02 01 B6 75 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 BC 00 00 00 F4 03 04 00 AC 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EE 02 00 35 04 06 00 B2 B2 E0 E0 00 00 21 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 B6 75 00 90 00 9F [12:52:41]RAPDU: 90 00 [12:52:41]wFMCommunicate OK [12:52:41]wFMCommunicate request_size=7 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 0D 02 02 02 BC D6 [12:52:41]Write to MH i2c: E2 0A 00 B7 75 80 0D 02 02 02 00 BC D6 00 00 3C [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 03 00 B7 75 00 90 00 A0 [12:52:41]RAPDU: 90 00 [12:52:41]wFMCommunicate OK [12:52:41]wFMCommunicate request_size=4 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 0D 03 02 [12:52:41]Write to MH i2c: E2 08 00 B8 75 80 0D 03 02 00 00 00 00 A8 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 0B 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 0B 00 B8 75 00 5A 06 3E 9D D9 10 50 C8 90 00 E5 [12:52:41]RAPDU: 5A 06 3E 9D D9 10 50 C8 90 00 [12:52:41]wFMCommunicate OK [12:52:41]SAM_PROTO_SignData done [12:52:41]FM_MakeSignedData done [12:52:41]CreateOFDProtocolMessage [12:52:41]wFMCommunicate request_size=4 [12:52:41]MH_SAM_APDU [12:52:41]CAPDU: 80 11 00 00 [12:52:41]Write to MH i2c: E2 08 00 B9 75 80 11 00 00 00 00 00 00 A8 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:41]Read from MH i2c: E2 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 17 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: E2 17 00 B9 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [12:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:52:41]wFMCommunicate OK [12:52:41]CreateOFDProtocolMessage done [12:52:41]OFDSenderStorePacket 192156 [12:52:41]StoreOFDPacket docnum=192156 [12:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 48 07 04 01 A6 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BC 00 00 00 F4 03 04 00 AC 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EE 02 00 35 04 06 00 B2 B2 E0 E0 BC D6 5A 06 3E 9D D9 10 50 C8 [12:52:41]CheckFolder [12:52:41]dirname=/storage/ofd_packets [12:52:41]CheckFolder done [12:52:41]ProducePacketName [12:52:41]name=ofd_packets/00192156 [12:52:41]NVStorageSaveData ofd_packets/00192156 [12:52:41]File name is /storage/ofd_packets/00192156 [12:52:41]Write 298 bytes [12:52:41]NVStorageSaveData done [12:52:41]OFDSenderStorePacket done [12:52:41]KKMCreateOFDPacket done [12:52:41]NVStorageSaveData kkm_last_timestamp [12:52:41]File name is /storage/kkm_last_timestamp [12:52:41]Write 4 bytes [12:52:41]NVStorageSaveData done [12:52:41]ExternCall_PrintAddStr [12:52:41]wPrintStart [12:52:41]Write to MH i2c: 01 00 00 BA 75 2F [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 07 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 07 00 BA 75 00 00 00 00 00 FF 0F 44 [12:52:41]RasterBufferAndPrint [12:52:41]line Счет N : (1)31468 [12:52:41]line ИНН: 02508201610067 [12:52:41]line Контрольно-Кассовый Чек [12:52:41]line ПРОДАЖА [12:52:41]line ТРК (МРК, ГНК) : 11 [12:52:41]line Товар: 2710194210 [12:52:41]line ДТ-К-5 [12:52:41]line 13.130 * 76.20 [12:52:41]line = 1000.51 [12:52:41]line НДС 12% НСП 1% [12:52:41]line > о реализуемом товаре [12:52:41]line ОКРУГЛЕНИЕ: -0.51 [12:52:41]line ИТОГО: 1000.00 [12:52:41]line Внесено: 1000.00 [12:52:41]line СДАЧА: 0.00 [12:52:41]line НСП 1% : 8.85 [12:52:41]line НДС 12% : 106.25 [12:52:41]line Наличными: 1000.00 [12:52:41]line Безнал.: 0.00 [12:52:41]line Место: АЗС № 170 "Партнер Нефть" [12:52:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:52:41]line СНО: Общий режим [12:52:41]line Чек 188 27.10.2024 12:53 [12:52:41]line Смена: 542 ФФД: 1.0 [12:52:41]line ЗНМ: 0300000110 [12:52:41]line РНМ: 0000000000091776 [12:52:41]line Версия ККМ: 001 [12:52:41]line ФМ: 0000000000871754 [12:52:41]line ФД: 192156 [12:52:41]line ФПД: 196481346747606 [12:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192156&fm=196481346747606&tin=02508201610067®Number=0000000000091776&sum=100000 [12:52:41]OFD Sender: Processing packet 192156 [packets to send 75, broken 74] [12:52:41]ProducePacketName [12:52:41]name=ofd_packets/00192156 [12:52:41]OFD Sender: To server: pG, [12:52:41]CommunicateWithHost lk.salyk.kg:30040 [12:52:41]ConnectInit lk.salyk.kg [12:52:41]written 0, free lines is 4095 [12:52:42]Connected sock=9 [12:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 48 07 04 01 A6 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BC 00 00 00 F4 03 04 00 AC 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EE 02 00 35 04 06 00 B2 B2 E0 E0 BC D6 5A 06 3E 9D D9 10 50 C8 [12:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 4A 47 00 5A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EE 02 00 F4 03 04 00 73 DC 1D 67 B6 04 01 00 00 86 8D 97 94 E4 60 57 D3 [12:52:42]CommunicateWithHost err = 0 [12:52:42]CheckOFDResponse [12:52:42]1017 (14) - 77093643461234 [12:52:42]1041 (16) - 0000000000871754 [12:52:42]1040 (4) - 192156 [12:52:42]1012 (4) - 27.10.2024 06:23 [12:52:42]1206 (1) - 0 [12:52:42]OFD Sender: Remove packet 192156 [12:52:42]ProducePacketName [12:52:42]name=ofd_packets/00192156 [12:52:42]NVStorageDeleteData [12:52:42]Write to MH i2c: 01 00 00 E5 75 5A [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: 01 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: 01 07 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: 01 07 00 E5 75 00 00 00 00 00 AE 0C 1B [12:52:42]RasterBufferAndPrint [12:52:42]line [12:52:42]line [12:52:42]line [12:52:42]line [12:52:42]line [12:52:42]written 0, free lines is 3253 [12:52:42]MH_Cut [12:52:42]Write to MH i2c: D1 01 00 EC 75 01 33 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: D1 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: D1 01 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: D1 01 00 EC 75 00 32 [12:52:42]Write to MH i2c: 01 00 00 ED 75 62 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]OFD Sender: No OFD packet to send [12:52:42]*** FLAG_PRN_PAP2 set [12:52:42]*** Cut start [12:52:42]*** Partial cut [12:52:42]*** CUTSNS_PIN = 1 [12:52:42]*** CUTSNS_PIN = 0 [12:52:43]*** Brake cut motor [12:52:43]Read from MH i2c: 01 [12:52:43]MH_I2C_Read... [12:52:43]*** Stop cut motor [12:52:43]*** Cut end [12:52:43]Read from MH i2c: 01 07 00 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: 01 07 00 ED 75 00 02 00 00 00 FF 0F 79 [12:52:43]process_action close_receipt done [12:52:43]requested_data is exist [12:52:43]produce_requested_data [12:52:43]requested_item fm.sn is exist - process it [12:52:43]wFMCommunicate request_size=4 [12:52:43]MH_SAM_APDU [12:52:43]CAPDU: 80 11 00 00 [12:52:43]Write to MH i2c: E2 08 00 EE 75 80 11 00 00 00 00 00 00 DD [12:52:43]Write i2c OK [12:52:43]MH_I2C_Read... [12:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:43]Read from MH i2c: E2 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 17 00 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 17 00 EE 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [12:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:52:43]wFMCommunicate OK [12:52:43]requested_item fd.num is exist - process it [12:52:43]SAM_PROTO_GetFieldsCounters [12:52:43]wFMCommunicate request_size=4 [12:52:43]MH_SAM_APDU [12:52:43]CAPDU: 80 13 00 00 [12:52:43]Write to MH i2c: E2 08 00 EF 75 80 13 00 00 00 00 00 00 E0 [12:52:43]Write i2c OK [12:52:43]MH_I2C_Read... [12:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:43]Read from MH i2c: E2 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 62 00 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 62 00 EF 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [12:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:43]wFMCommunicate OK [12:52:43]SAM_PROTO_GetFieldsCounters done [12:52:43]requested_item shift.num is exist - process it [12:52:43]requested_item shift.opened is exist - process it [12:52:43]req_shift_opened [12:52:43]FM_GetShiftState [12:52:43]SAM_PROTO_GetShiftState [12:52:43]wFMCommunicate request_size=4 [12:52:43]MH_SAM_APDU [12:52:43]CAPDU: 80 13 01 00 [12:52:43]Write to MH i2c: E2 08 00 F0 75 80 13 01 00 00 00 00 00 E2 [12:52:43]Write i2c OK [12:52:43]MH_I2C_Read... [12:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:43]Read from MH i2c: E2 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 0E 00 [12:52:43]MH_I2C_Read... [12:52:43]Read from MH i2c: E2 0E 00 F0 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 23 [12:52:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:52:43]wFMCommunicate OK [12:52:43]SAM_PROTO_GetShiftState done [12:52:43]FM_GetShiftState done [12:52:43]req_shift_opened done [12:52:43]requested_item shift.open_date is exist - process it [12:52:43]req_shift_open_date [12:52:43]req_shift_open_date done [12:52:43]produce_requested_data done [12:52:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192156,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:52:43]process_action_free close_receipt [12:52:43]json_value_free [12:52:43]json_value_free done [12:52:43]process_json_proto returns [12:52:43]Send response to host [12:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192156,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:52:43]free response buf [12:52:43]execute_script done [12:52:43]execute_script returns [12:52:43]free content buf [12:52:43]Sock 5.Close socket [12:52:43]Sock 5.Thread stoped [12:52:44]accept exits with 6 [12:52:44]New connection [12:52:44]New thread 3066961252 created [12:52:44]Thread 3066817892 joined [12:52:44]Waiting for new connection... [12:52:44] Sock 6.Parse request [12:52:44]Sock 6.Check first char [12:52:44]Sock 6.First char is OK [12:52:44]request: POST /json_proto HTTP/1.0 [12:52:44]Method: POST [12:52:44]URL: /json_proto [12:52:44]Method is POST - this is cgi request [12:52:44]url: /json_proto [12:52:44]query_string will be loaded in cgi processing [12:52:44]execute_cgi json_proto POST (null) [12:52:44]execute_cgi path=json_proto method=POST [12:52:44]POST find Content-Length [12:52:44]Host: 172.17.63.131:8080 [12:52:44]Content-Length: 676 [12:52:44]Content-Type: application/json [12:52:44] [12:52:44]POST finish read [12:52:44]Found Content-Length = 676 [12:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:44]execute_script... [12:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:44]POST & json_proto [12:52:44]process_json_proto [12:52:44]json parsed OK: [12:52:44]protocol is kg_v1.0 [12:52:44]action value=close_receipt [12:52:44]process_action close_receipt [12:52:44]cmd_close_receipt [12:52:44]MH_GetDate [12:52:44]Write to MH i2c: F0 00 00 F1 75 55 [12:52:44]Write i2c OK [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 09 00 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 09 00 F1 75 00 B0 37 1E 67 22 05 6E 64 C3 [12:52:44]GetLastDocTimeStamp 1730033580 [12:52:44]current date 1730033584 [12:52:44]FM_GetShiftState [12:52:44]SAM_PROTO_GetShiftState [12:52:44]wFMCommunicate request_size=4 [12:52:44]MH_SAM_APDU [12:52:44]CAPDU: 80 13 01 00 [12:52:44]Write to MH i2c: E2 08 00 F2 75 80 13 01 00 00 00 00 00 E4 [12:52:44]Write i2c OK [12:52:44]MH_I2C_Read... [12:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:44]Read from MH i2c: E2 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: E2 0E 00 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: E2 0E 00 F2 75 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 25 [12:52:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:52:44]wFMCommunicate OK [12:52:44]SAM_PROTO_GetShiftState done [12:52:44]FM_GetShiftState done [12:52:44]opened in 1729989159 [12:52:44]opened+sec_in_day 1730075559 [12:52:44]quantity*price = 50041 [12:52:44]sum+1 = 50042 [12:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 189 27.10.2024 12:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192157 ФПД: 86513885176145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192157&fm=86513885176145&tin=02508201610067®Number=0000000000091776&sum=50000 [12:52:45]StoreToDocumentArchive [12:52:45]shift 542 fd 192157 [12:52:45]save to /storage/0542/doc_00192157 [12:52:45]save last doc name /storage/0542/doc_00192157 to /storage/kkm_last_doc_name [12:52:45]save OK [12:52:45]Clear old archive folders... [12:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:45]tlvbuf is 018FFA00 [12:52:45]SAM_PROTO_ClearQueue [12:52:45]wFMCommunicate request_size=4 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 09 00 00 [12:52:45]Write to MH i2c: E2 08 00 FF 75 80 09 00 00 00 00 00 00 E6 [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:45]Read from MH i2c: E2 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 FF 75 00 90 00 E8 [12:52:45]RAPDU: 90 00 [12:52:45]wFMCommunicate OK [12:52:45]SAM_PROTO_ClearQueue done [12:52:45]KKMCreateOFDPacket [12:52:45]OFDProtocolAddRootSTLVToBuf [12:52:45]FM_MakeSignedData [12:52:45]FM_MakeSignedData [12:52:45]SAM_PROTO_SignData [12:52:45]wFMCommunicate request_size=4 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 0D 01 02 [12:52:45]Write to MH i2c: E2 08 00 00 76 80 0D 01 02 00 00 00 00 EF [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:45]Read from MH i2c: E2 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 00 76 00 90 00 EA [12:52:45]RAPDU: 90 00 [12:52:45]wFMCommunicate OK [12:52:45]wFMCommunicate request_size=255 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EE 02 00 35 04 06 00 4E [12:52:45]Write to MH i2c: E2 02 01 01 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EE 02 00 35 04 06 00 4E 00 00 A7 [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 01 76 00 90 00 EB [12:52:46]RAPDU: 90 00 [12:52:46]wFMCommunicate OK [12:52:46]wFMCommunicate request_size=10 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 0D 02 02 05 AF 15 64 E1 51 [12:52:46]Write to MH i2c: E2 0D 00 02 76 80 0D 02 02 05 00 AF 15 64 E1 51 00 00 56 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 02 76 00 90 00 EC [12:52:46]RAPDU: 90 00 [12:52:46]wFMCommunicate OK [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 0D 03 02 [12:52:46]Write to MH i2c: E2 08 00 03 76 80 0D 03 02 00 00 00 00 F4 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0B 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0B 00 03 76 00 B1 89 AA 36 AD 8B 8A 83 90 00 54 [12:52:46]RAPDU: B1 89 AA 36 AD 8B 8A 83 90 00 [12:52:46]wFMCommunicate OK [12:52:46]SAM_PROTO_SignData done [12:52:46]FM_MakeSignedData done [12:52:46]CreateOFDProtocolMessage [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 11 00 00 [12:52:46]Write to MH i2c: E2 08 00 04 76 80 11 00 00 00 00 00 00 F4 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 17 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 17 00 04 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [12:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:52:46]wFMCommunicate OK [12:52:46]CreateOFDProtocolMessage done [12:52:46]OFDSenderStorePacket 192157 [12:52:46]StoreOFDPacket docnum=192157 [12:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB FF 07 01 9F 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EE 02 00 35 04 06 00 4E AF 15 64 E1 51 B1 89 AA 36 AD 8B 8A 83 [12:52:46]CheckFolder [12:52:46]dirname=/storage/ofd_packets [12:52:46]CheckFolder done [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00192157 [12:52:46]NVStorageSaveData ofd_packets/00192157 [12:52:46]File name is /storage/ofd_packets/00192157 [12:52:46]Write 301 bytes [12:52:46]NVStorageSaveData done [12:52:46]OFDSenderStorePacket done [12:52:46]KKMCreateOFDPacket done [12:52:46]NVStorageSaveData kkm_last_timestamp [12:52:46]File name is /storage/kkm_last_timestamp [12:52:46]Write 4 bytes [12:52:46]NVStorageSaveData done [12:52:46]ExternCall_PrintAddStr [12:52:46]wPrintStart [12:52:46]Write to MH i2c: 01 00 00 05 76 7B [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 05 76 00 02 00 00 00 FF 0F 92 [12:52:46]RasterBufferAndPrint [12:52:46]line Счет N : (1)31469 [12:52:46]line ИНН: 02508201610067 [12:52:46]line Контрольно-Кассовый Чек [12:52:46]line ПРОДАЖА [12:52:46]line ТРК (МРК, ГНК) : 12 [12:52:46]line Товар: 2710124130 [12:52:46]line Аи-92-К-5 [12:52:46]line 7.480 * 66.90 [12:52:46]line = 500.41 [12:52:46]line НДС 12% НСП 1% [12:52:46]line > о реализуемом товаре [12:52:46]line ОКРУГЛЕНИЕ: -0.41 [12:52:46]line ИТОГО: 500.00 [12:52:46]line Внесено: 500.00 [12:52:46]line СДАЧА: 0.00 [12:52:46]line НСП 1% : 4.43 [12:52:46]line НДС 12% : 53.14 [12:52:46]line Наличными: 500.00 [12:52:46]line Безнал.: 0.00 [12:52:46]line Место: АЗС № 170 "Партнер Нефть" [12:52:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:52:46]line СНО: Общий режим [12:52:46]line Чек 189 27.10.2024 12:53 [12:52:46]line Смена: 542 ФФД: 1.0 [12:52:46]line ЗНМ: 0300000110 [12:52:46]line РНМ: 0000000000091776 [12:52:46]line Версия ККМ: 001 [12:52:46]line ФМ: 0000000000871754 [12:52:46]line ФД: 192157 [12:52:46]line ФПД: 86513885176145 [12:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192157&fm=86513885176145&tin=02508201610067®Number=0000000000091776&sum=50000 [12:52:46]written 0, free lines is 4095 [12:52:46]Error from MH - 05 [12:52:46]process_action_free close_receipt [12:52:46]json_value_free [12:52:46]json_value_free done [12:52:46]process_json_proto returns [12:52:46]Send response to host [12:52:46]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [12:52:46]free response buf [12:52:46]execute_script done [12:52:46]execute_script returns [12:52:46]free content buf [12:52:46]Sock 6.Close socket [12:52:46]Sock 6.Thread stoped [12:52:46]OFD Sender: Processing packet 192157 [packets to send 75, broken 74] [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00192157 [12:52:46]OFD Sender: To server: pG, [12:52:46]CommunicateWithHost lk.salyk.kg:30040 [12:52:46]ConnectInit lk.salyk.kg [12:52:46]Connected sock=6 [12:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB FF 07 01 9F 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 37 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EE 02 00 35 04 06 00 4E AF 15 64 E1 51 B1 89 AA 36 AD 8B 8A 83 [12:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 CD 47 00 9F D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EE 02 00 F4 03 04 00 78 DC 1D 67 B6 04 01 00 00 DC C3 EE 7A D9 76 75 34 [12:52:46]CommunicateWithHost err = 0 [12:52:46]CheckOFDResponse [12:52:46]1017 (14) - 77093643461234 [12:52:46]1041 (16) - 0000000000871754 [12:52:46]1040 (4) - 192157 [12:52:46]1012 (4) - 27.10.2024 06:23 [12:52:46]1206 (1) - 0 [12:52:46]OFD Sender: Remove packet 192157 [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00192157 [12:52:46]NVStorageDeleteData [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:00]*** FLAG_PRN_PAP1 set [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:10]*** FLAG_PRN_PAP2 reset [12:53:10]*** FLAG_PRN_PAP1 reset [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:52]accept exits with 5 [12:53:52]New connection [12:53:52]New thread 3066817892 created [12:53:52]Thread 3066961252 joined [12:53:52]Waiting for new connection... [12:53:52] Sock 5.Parse request [12:53:52]Sock 5.Check first char [12:53:52]Sock 5.First char is OK [12:53:52]request: POST /json_proto HTTP/1.0 [12:53:52]Method: POST [12:53:52]URL: /json_proto [12:53:52]Method is POST - this is cgi request [12:53:52]url: /json_proto [12:53:52]query_string will be loaded in cgi processing [12:53:52]execute_cgi json_proto POST (null) [12:53:52]execute_cgi path=json_proto method=POST [12:53:52]POST find Content-Length [12:53:52]Host: 172.17.63.131:8080 [12:53:52]Content-Length: 215 [12:53:52]Content-Type: application/json [12:53:52] [12:53:52]POST finish read [12:53:52]Found Content-Length = 215 [12:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:52]execute_script... [12:53:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:52]POST & json_proto [12:53:52]process_json_proto [12:53:52]json parsed OK: [12:53:52]protocol is kg_v1.0 [12:53:52]action value=get_value [12:53:52]process_action get_value [12:53:52]cmd_get_value [12:53:52]process_action get_value done [12:53:52]requested_data is exist [12:53:52]produce_requested_data [12:53:52]requested_item kkm.sn is exist - process it [12:53:52]requested_item kkm.ver is exist - process it [12:53:52]requested_item fm.sn is exist - process it [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 11 00 00 [12:53:52]Write to MH i2c: E2 08 00 08 76 80 11 00 00 00 00 00 00 F8 [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 17 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 17 00 08 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [12:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:53:52]wFMCommunicate OK [12:53:52]requested_item fd.num is exist - process it [12:53:52]SAM_PROTO_GetFieldsCounters [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 13 00 00 [12:53:52]Write to MH i2c: E2 08 00 09 76 80 13 00 00 00 00 00 00 FB [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 62 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 62 00 09 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:52]wFMCommunicate OK [12:53:52]SAM_PROTO_GetFieldsCounters done [12:53:52]requested_item shift.num is exist - process it [12:53:52]requested_item shift.opened is exist - process it [12:53:52]req_shift_opened [12:53:52]FM_GetShiftState [12:53:52]SAM_PROTO_GetShiftState [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 13 01 00 [12:53:52]Write to MH i2c: E2 08 00 0A 76 80 13 01 00 00 00 00 00 FD [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 0A 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3E [12:53:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:53:52]wFMCommunicate OK [12:53:52]SAM_PROTO_GetShiftState done [12:53:52]FM_GetShiftState done [12:53:52]req_shift_opened done [12:53:52]requested_item shift.open_date is exist - process it [12:53:52]req_shift_open_date [12:53:52]req_shift_open_date done [12:53:52]produce_requested_data done [12:53:52]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192157,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:53:52]process_action_free get_value [12:53:52]json_value_free [12:53:52]json_value_free done [12:53:52]process_json_proto returns [12:53:52]Send response to host [12:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192157,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:53:52]free response buf [12:53:52]execute_script done [12:53:52]execute_script returns [12:53:52]free content buf [12:53:52]Sock 5.Close socket [12:53:52]Sock 5.Thread stoped [12:53:52]accept exits with 6 [12:53:52]New connection [12:53:52]New thread 3066961252 created [12:53:52]Thread 3066817892 joined [12:53:52]Waiting for new connection... [12:53:52] Sock 6.Parse request [12:53:52]Sock 6.Check first char [12:53:52]Sock 6.First char is OK [12:53:52]request: POST /json_proto HTTP/1.0 [12:53:52]Method: POST [12:53:52]URL: /json_proto [12:53:52]Method is POST - this is cgi request [12:53:52]url: /json_proto [12:53:52]query_string will be loaded in cgi processing [12:53:52]execute_cgi json_proto POST (null) [12:53:52]execute_cgi path=json_proto method=POST [12:53:52]POST find Content-Length [12:53:52]Host: 172.17.63.131:8080 [12:53:52]Content-Length: 331 [12:53:52]Content-Type: application/json [12:53:52] [12:53:52]POST finish read [12:53:52]Found Content-Length = 331 [12:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:53:52]execute_script... [12:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:53:53]POST & json_proto [12:53:53]process_json_proto [12:53:53]json parsed OK: [12:53:53]protocol is kg_v1.0 [12:53:53]action value=get_value [12:53:53]process_action get_value [12:53:53]cmd_get_value [12:53:53]process_action get_value done [12:53:53]requested_data is exist [12:53:53]produce_requested_data [12:53:53]requested_item fm.sale.total is exist - process it [12:53:53]SAM_PROTO_GetFMData [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 13 03 00 [12:53:53]Write to MH i2c: E2 08 00 0B 76 80 13 03 00 00 00 00 00 00 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 FD 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 FD 00 0B 76 00 C1 04 85 04 BD 04 6E 04 04 00 61 EA 02 00 69 04 A3 00 6F 04 04 00 57 EA 02 00 B1 04 05 00 38 BC 91 B5 03 70 04 05 00 74 FA 5F 88 03 72 04 04 00 C4 C1 31 2D 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 EC A7 E0 64 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 80 E1 67 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 90 [12:53:53]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 61 EA 02 00 69 04 A3 00 6F 04 04 00 57 EA 02 00 B1 04 05 00 38 BC 91 B5 03 70 04 05 00 74 FA 5F 88 03 72 04 04 00 C4 C1 31 2D 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 EC A7 E0 64 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 80 E1 67 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [12:53:53]wFMCommunicate OK [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 17 00 00 [12:53:53]Write to MH i2c: E2 08 00 0C 76 80 17 00 00 00 00 00 00 02 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 FD 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 FD 00 0C 76 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 13 [12:53:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [12:53:53]wFMCommunicate OK [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 17 00 00 [12:53:53]Write to MH i2c: E2 08 00 0D 76 80 17 00 00 00 00 00 00 03 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 FD 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 FD 00 0D 76 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 A3 [12:53:54]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [12:53:54]wFMCommunicate OK [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 17 00 00 [12:53:54]Write to MH i2c: E2 08 00 0E 76 80 17 00 00 00 00 00 00 04 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 FD 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 FD 00 0E 76 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 89 [12:53:54]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [12:53:54]wFMCommunicate OK [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 17 00 00 [12:53:54]Write to MH i2c: E2 08 00 0F 76 80 17 00 00 00 00 00 00 05 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 DE 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 DE 00 0F 76 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [12:53:54]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:53:54]wFMCommunicate OK [12:53:54]SAM_PROTO_GetFMData done [12:53:54]requested_item fm.sale_refund.total is exist - process it [12:53:54]requested_item fm.buy.total is exist - process it [12:53:54]requested_item shift.sale.total is exist - process it [12:53:54]SAM_PROTO_GetShiftData [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 13 02 00 [12:53:54]Write to MH i2c: E2 08 00 10 76 80 13 02 00 00 00 00 00 04 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 FD 00 [12:53:54]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 10 76 00 AF 04 AA 04 AB 04 6E 04 04 00 BD 00 00 00 69 04 9C 00 6F 04 04 00 BD 00 00 00 B1 04 03 00 31 D4 C6 70 04 03 00 44 A7 B4 72 04 03 00 ED 2C 12 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 56 1F 15 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 9E C2 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 CE [12:53:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 BD 00 00 00 69 04 9C 00 6F 04 04 00 BD 00 00 00 B1 04 03 00 31 D4 C6 70 04 03 00 44 A7 B4 72 04 03 00 ED 2C 12 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 56 1F 15 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 9E C2 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 17 00 00 [12:53:55]Write to MH i2c: E2 08 00 11 76 80 17 00 00 00 00 00 00 07 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 11 76 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 20 [12:53:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 17 00 00 [12:53:55]Write to MH i2c: E2 08 00 12 76 80 17 00 00 00 00 00 00 08 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 12 76 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 BC [12:53:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 17 00 00 [12:53:55]Write to MH i2c: E2 08 00 13 76 80 17 00 00 00 00 00 00 09 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 FD 00 13 76 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 87 [12:53:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 17 00 00 [12:53:55]Write to MH i2c: E2 08 00 14 76 80 17 00 00 00 00 00 00 0A [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:53:56]Read from MH i2c: E2 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 CC 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: E2 CC 00 14 76 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [12:53:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:53:56]wFMCommunicate OK [12:53:56]SAM_PROTO_GetShiftData done [12:53:56]requested_item shift.sale.total_cash is exist - process it [12:53:56]requested_item shift.sale_refund.total is exist - process it [12:53:56]requested_item shift.sale_refund.total_cash is exist - process it [12:53:56]requested_item shift.buy.total is exist - process it [12:53:56]requested_item shift.buy.total_cash is exist - process it [12:53:56]produce_requested_data done [12:53:56]produce_requested_data return {"fm.sale.total":159311288.88,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":130304.49,"shift.sale.total_cash":118393.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:53:56]process_action_free get_value [12:53:56]json_value_free [12:53:56]json_value_free done [12:53:56]process_json_proto returns [12:53:56]Send response to host [12:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159311288.88,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":130304.49,"shift.sale.total_cash":118393.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:53:56]free response buf [12:53:56]execute_script done [12:53:56]execute_script returns [12:53:56]free content buf [12:53:56]Sock 6.Close socket [12:53:56]Sock 6.Thread stoped [12:53:56]accept exits with 5 [12:53:56]New connection [12:53:56]New thread 3066817892 created [12:53:56]Thread 3066961252 joined [12:53:56]Waiting for new connection... [12:53:56] Sock 5.Parse request [12:53:56]Sock 5.Check first char [12:53:56]Sock 5.First char is OK [12:53:56]request: POST /json_proto HTTP/1.0 [12:53:56]Method: POST [12:53:56]URL: /json_proto [12:53:56]Method is POST - this is cgi request [12:53:56]url: /json_proto [12:53:56]query_string will be loaded in cgi processing [12:53:56]execute_cgi json_proto POST (null) [12:53:56]execute_cgi path=json_proto method=POST [12:53:56]POST find Content-Length [12:53:56]Host: 172.17.63.131:8080 [12:53:56]Content-Length: 144 [12:53:56]Content-Type: application/json [12:53:56] [12:53:56]POST finish read [12:53:56]Found Content-Length = 144 [12:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:53:56]execute_script... [12:53:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:53:56]POST & json_proto [12:53:56]process_json_proto [12:53:56]json parsed OK: [12:53:56]protocol is kg_v1.0 [12:53:56]action value=print_doc [12:53:56]process_action print_doc [12:53:56]ExternCall_PrintAddStr [12:53:56]wPrintStart [12:53:56]Write to MH i2c: 01 00 00 15 76 8B [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 15 76 00 00 00 00 00 FF 0F A0 [12:53:56]RasterBufferAndPrint [12:53:56]line Счет N : (1)31469 [12:53:56]line ИНН: 02508201610067 [12:53:56]line Контрольно-Кассовый Чек [12:53:56]line ПРОДАЖА [12:53:56]line ТРК (МРК, ГНК) : 12 [12:53:56]line Товар: 2710124130 [12:53:56]line Аи-92-К-5 [12:53:56]line 7.480 * 66.90 [12:53:56]line = 500.41 [12:53:56]line НДС 12% НСП 1% [12:53:56]line > о реализуемом товаре [12:53:56]line ОКРУГЛЕНИЕ: -0.41 [12:53:56]line ИТОГО: 500.00 [12:53:56]line Внесено: 500.00 [12:53:56]line СДАЧА: 0.00 [12:53:56]line НСП 1% : 4.43 [12:53:56]line НДС 12% : 53.14 [12:53:56]line Наличными: 500.00 [12:53:56]line Безнал.: 0.00 [12:53:56]line Место: АЗС № 170 "Партнер Нефть" [12:53:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:53:56]line СНО: Общий режим [12:53:56]line Чек 189 27.10.2024 12:53 [12:53:56]line Смена: 542 ФФД: 1.0 [12:53:56]line ЗНМ: 0300000110 [12:53:56]line РНМ: 0000000000091776 [12:53:56]line Версия ККМ: 001 [12:53:56]line ФМ: 0000000000871754 [12:53:56]line ФД: 192157 [12:53:56]line ФПД: 86513885176145 [12:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125304&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192157&fm=86513885176145&tin=02508201610067®Number=0000000000091776&sum=50000 [12:53:56]written 0, free lines is 4095 [12:53:56]Write to MH i2c: 01 00 00 40 76 B6 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 40 76 00 00 00 00 00 A0 0C 69 [12:53:56]RasterBufferAndPrint [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]written 0, free lines is 3245 [12:53:56]MH_Cut [12:53:56]Write to MH i2c: D1 01 00 47 76 01 8F [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 47 76 00 8E [12:53:56]Write to MH i2c: 01 00 00 48 76 BE [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:57]OFD Sender: No OFD packet to send [12:53:57]*** Cut start [12:53:57]*** Partial cut [12:53:57]*** CUTSNS_PIN = 1 [12:53:57]*** CUTSNS_PIN = 0 [12:53:57]*** Brake cut motor [12:53:58]Read from MH i2c: 01 [12:53:58]MH_I2C_Read... [12:53:58]*** Stop cut motor [12:53:58]*** Cut end [12:53:58]Read from MH i2c: 01 07 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 48 76 00 00 00 00 00 FF 0F D3 [12:53:58]process_action print_doc done [12:53:58]requested_data is exist [12:53:58]produce_requested_data [12:53:58]produce_requested_data return (null) [12:53:58]process_action_free print_doc [12:53:58]json_value_free [12:53:58]json_value_free done [12:53:58]process_json_proto returns [12:53:58]Send response to host [12:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [12:53:58]free response buf [12:53:58]execute_script done [12:53:58]execute_script returns [12:53:58]free content buf [12:53:58]Sock 5.Close socket [12:53:58]Sock 5.Thread stoped [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:44]accept exits with 6 [12:54:44]New connection [12:54:44]New thread 3066961252 created [12:54:44]Thread 3066817892 joined [12:54:44]Waiting for new connection... [12:54:44] Sock 6.Parse request [12:54:44]Sock 6.Check first char [12:54:44]Sock 6.First char is OK [12:54:44]request: POST /json_proto HTTP/1.0 [12:54:44]Method: POST [12:54:44]URL: /json_proto [12:54:44]Method is POST - this is cgi request [12:54:44]url: /json_proto [12:54:44]query_string will be loaded in cgi processing [12:54:44]execute_cgi json_proto POST (null) [12:54:44]execute_cgi path=json_proto method=POST [12:54:44]POST find Content-Length [12:54:44]Host: 172.17.63.131:8080 [12:54:44]Content-Length: 676 [12:54:44]Content-Type: application/json [12:54:44] [12:54:44]POST finish read [12:54:44]Found Content-Length = 676 [12:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:44]execute_script... [12:54:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:44]POST & json_proto [12:54:44]process_json_proto [12:54:44]json parsed OK: [12:54:44]protocol is kg_v1.0 [12:54:44]action value=close_receipt [12:54:44]process_action close_receipt [12:54:44]cmd_close_receipt [12:54:44]MH_GetDate [12:54:44]Write to MH i2c: F0 00 00 49 76 AE [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: F0 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: F0 09 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: F0 09 00 49 76 00 28 38 1E 67 22 05 6E 64 95 [12:54:44]GetLastDocTimeStamp 1730033584 [12:54:44]current date 1730033704 [12:54:44]FM_GetShiftState [12:54:44]SAM_PROTO_GetShiftState [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 13 01 00 [12:54:44]Write to MH i2c: E2 08 00 4A 76 80 13 01 00 00 00 00 00 3D [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0E 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0E 00 4A 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7E [12:54:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:54:44]wFMCommunicate OK [12:54:44]SAM_PROTO_GetShiftState done [12:54:44]FM_GetShiftState done [12:54:44]opened in 1729989159 [12:54:44]opened+sec_in_day 1730075559 [12:54:44]quantity*price = 30038 [12:54:44]sum+1 = 30039 [12:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 190 27.10.2024 12:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192158 ФПД: 59833336162059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125504&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192158&fm=59833336162059&tin=02508201610067®Number=0000000000091776&sum=30000 [12:54:45]StoreToDocumentArchive [12:54:45]shift 542 fd 192158 [12:54:45]save to /storage/0542/doc_00192158 [12:54:45]save last doc name /storage/0542/doc_00192158 to /storage/kkm_last_doc_name [12:54:45]save OK [12:54:45]Clear old archive folders... [12:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:45]tlvbuf is 01614320 [12:54:45]SAM_PROTO_ClearQueue [12:54:45]wFMCommunicate request_size=4 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 09 00 00 [12:54:45]Write to MH i2c: E2 08 00 57 76 80 09 00 00 00 00 00 00 3F [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 57 76 00 90 00 41 [12:54:45]RAPDU: 90 00 [12:54:45]wFMCommunicate OK [12:54:45]SAM_PROTO_ClearQueue done [12:54:45]KKMCreateOFDPacket [12:54:45]OFDProtocolAddRootSTLVToBuf [12:54:45]FM_MakeSignedData [12:54:45]FM_MakeSignedData [12:54:45]SAM_PROTO_SignData [12:54:45]wFMCommunicate request_size=4 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 0D 01 02 [12:54:45]Write to MH i2c: E2 08 00 58 76 80 0D 01 02 00 00 00 00 47 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 58 76 00 90 00 42 [12:54:45]RAPDU: 90 00 [12:54:45]wFMCommunicate OK [12:54:45]wFMCommunicate request_size=255 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 28 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EE 02 00 35 04 06 00 36 [12:54:45]Write to MH i2c: E2 02 01 59 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 28 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EE 02 00 35 04 06 00 36 00 00 56 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 59 76 00 90 00 43 [12:54:45]RAPDU: 90 00 [12:54:45]wFMCommunicate OK [12:54:45]wFMCommunicate request_size=10 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 0D 02 02 05 6B 08 BF 67 0B [12:54:45]Write to MH i2c: E2 0D 00 5A 76 80 0D 02 02 05 00 6B 08 BF 67 0B 00 00 F8 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 03 00 5A 76 00 90 00 44 [12:54:45]RAPDU: 90 00 [12:54:45]wFMCommunicate OK [12:54:45]wFMCommunicate request_size=4 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 0D 03 02 [12:54:45]Write to MH i2c: E2 08 00 5B 76 80 0D 03 02 00 00 00 00 4C [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 0B 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 0B 00 5B 76 00 32 FD 21 48 9D AD A7 02 90 00 D8 [12:54:45]RAPDU: 32 FD 21 48 9D AD A7 02 90 00 [12:54:45]wFMCommunicate OK [12:54:45]SAM_PROTO_SignData done [12:54:45]FM_MakeSignedData done [12:54:45]CreateOFDProtocolMessage [12:54:45]wFMCommunicate request_size=4 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 11 00 00 [12:54:45]Write to MH i2c: E2 08 00 5C 76 80 11 00 00 00 00 00 00 4C [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 17 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 17 00 5C 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [12:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:45]wFMCommunicate OK [12:54:45]CreateOFDProtocolMessage done [12:54:45]OFDSenderStorePacket 192158 [12:54:45]StoreOFDPacket docnum=192158 [12:54:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 56 07 01 0E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 28 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EE 02 00 35 04 06 00 36 6B 08 BF 67 0B 32 FD 21 48 9D AD A7 02 [12:54:45]CheckFolder [12:54:45]dirname=/storage/ofd_packets [12:54:45]CheckFolder done [12:54:45]ProducePacketName [12:54:45]name=ofd_packets/00192158 [12:54:45]NVStorageSaveData ofd_packets/00192158 [12:54:45]File name is /storage/ofd_packets/00192158 [12:54:45]Write 301 bytes [12:54:45]NVStorageSaveData done [12:54:45]OFDSenderStorePacket done [12:54:45]KKMCreateOFDPacket done [12:54:45]NVStorageSaveData kkm_last_timestamp [12:54:45]File name is /storage/kkm_last_timestamp [12:54:45]Write 4 bytes [12:54:45]NVStorageSaveData done [12:54:45]ExternCall_PrintAddStr [12:54:45]wPrintStart [12:54:45]Write to MH i2c: 01 00 00 5D 76 D3 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 07 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 07 00 5D 76 00 00 00 00 00 FF 0F E8 [12:54:45]RasterBufferAndPrint [12:54:45]line Счет N : (1)31470 [12:54:45]line ИНН: 02508201610067 [12:54:45]line Контрольно-Кассовый Чек [12:54:45]line ПРОДАЖА [12:54:45]line ТРК (МРК, ГНК) : 12 [12:54:45]line Товар: 2710124130 [12:54:45]line Аи-92-К-5 [12:54:45]line 4.490 * 66.90 [12:54:45]line = 300.38 [12:54:45]line НДС 12% НСП 1% [12:54:45]line > о реализуемом товаре [12:54:45]line ОКРУГЛЕНИЕ: -0.38 [12:54:45]line ИТОГО: 300.00 [12:54:45]line Внесено: 300.00 [12:54:45]line СДАЧА: 0.00 [12:54:45]line НСП 1% : 2.66 [12:54:45]line НДС 12% : 31.90 [12:54:45]line Наличными: 300.00 [12:54:45]line Безнал.: 0.00 [12:54:45]line Место: АЗС № 170 "Партнер Нефть" [12:54:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:54:45]line СНО: Общий режим [12:54:45]line Чек 190 27.10.2024 12:55 [12:54:45]line Смена: 542 ФФД: 1.0 [12:54:45]line ЗНМ: 0300000110 [12:54:45]line РНМ: 0000000000091776 [12:54:45]line Версия ККМ: 001 [12:54:45]line ФМ: 0000000000871754 [12:54:45]line ФД: 192158 [12:54:45]line ФПД: 59833336162059 [12:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125504&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192158&fm=59833336162059&tin=02508201610067®Number=0000000000091776&sum=30000 [12:54:46]OFD Sender: Processing packet 192158 [packets to send 75, broken 74] [12:54:46]ProducePacketName [12:54:46]name=ofd_packets/00192158 [12:54:46]OFD Sender: To server: pG, [12:54:46]CommunicateWithHost lk.salyk.kg:30040 [12:54:46]ConnectInit lk.salyk.kg [12:54:46]written 0, free lines is 4095 [12:54:46]Connected sock=8 [12:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 56 07 01 0E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 28 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EE 02 00 35 04 06 00 36 6B 08 BF 67 0B 32 FD 21 48 9D AD A7 02 [12:54:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7A 18 47 00 C3 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EE 02 00 F4 03 04 00 F0 DC 1D 67 B6 04 01 00 00 D5 41 B6 08 E2 44 79 FE [12:54:46]CommunicateWithHost err = 0 [12:54:46]CheckOFDResponse [12:54:46]1017 (14) - 77093643461234 [12:54:46]1041 (16) - 0000000000871754 [12:54:46]1040 (4) - 192158 [12:54:46]1012 (4) - 27.10.2024 06:25 [12:54:46]1206 (1) - 0 [12:54:46]OFD Sender: Remove packet 192158 [12:54:46]ProducePacketName [12:54:46]name=ofd_packets/00192158 [12:54:46]NVStorageDeleteData [12:54:46]Write to MH i2c: 01 00 00 88 76 FE [12:54:46]Write i2c OK [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: 01 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: 01 07 00 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: 01 07 00 88 76 00 00 00 00 00 B4 0C C5 [12:54:46]RasterBufferAndPrint [12:54:46]line [12:54:46]line [12:54:46]line [12:54:46]line [12:54:46]line [12:54:46]written 0, free lines is 3259 [12:54:46]MH_Cut [12:54:46]Write to MH i2c: D1 01 00 8F 76 01 D7 [12:54:46]Write i2c OK [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: D1 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: D1 01 00 [12:54:46]MH_I2C_Read... [12:54:46]Read from MH i2c: D1 01 00 8F 76 00 D6 [12:54:46]Write to MH i2c: 01 00 00 90 76 06 [12:54:46]Write i2c OK [12:54:46]MH_I2C_Read... [12:54:47]OFD Sender: No OFD packet to send [12:54:47]*** Cut start [12:54:47]*** Partial cut [12:54:47]*** CUTSNS_PIN = 1 [12:54:47]*** CUTSNS_PIN = 0 [12:54:47]*** Brake cut motor [12:54:48]Read from MH i2c: 01 [12:54:48]MH_I2C_Read... [12:54:48]*** Stop cut motor [12:54:48]*** Cut end [12:54:48]Read from MH i2c: 01 07 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 90 76 00 00 00 00 00 FF 0F 1B [12:54:48]process_action close_receipt done [12:54:48]requested_data is exist [12:54:48]produce_requested_data [12:54:48]requested_item fm.sn is exist - process it [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 11 00 00 [12:54:48]Write to MH i2c: E2 08 00 91 76 80 11 00 00 00 00 00 00 81 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 91 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [12:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:48]wFMCommunicate OK [12:54:48]requested_item fd.num is exist - process it [12:54:48]SAM_PROTO_GetFieldsCounters [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 13 00 00 [12:54:48]Write to MH i2c: E2 08 00 92 76 80 13 00 00 00 00 00 00 84 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 62 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 62 00 92 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_GetFieldsCounters done [12:54:48]requested_item shift.num is exist - process it [12:54:48]requested_item shift.opened is exist - process it [12:54:48]req_shift_opened [12:54:48]FM_GetShiftState [12:54:48]SAM_PROTO_GetShiftState [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 13 01 00 [12:54:48]Write to MH i2c: E2 08 00 93 76 80 13 01 00 00 00 00 00 86 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0E 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0E 00 93 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C7 [12:54:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_GetShiftState done [12:54:48]FM_GetShiftState done [12:54:48]req_shift_opened done [12:54:48]requested_item shift.open_date is exist - process it [12:54:48]req_shift_open_date [12:54:48]req_shift_open_date done [12:54:48]produce_requested_data done [12:54:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192158,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:54:48]process_action_free close_receipt [12:54:48]json_value_free [12:54:48]json_value_free done [12:54:48]process_json_proto returns [12:54:48]Send response to host [12:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192158,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:54:48]free response buf [12:54:48]execute_script done [12:54:48]execute_script returns [12:54:48]free content buf [12:54:48]Sock 6.Close socket [12:54:48]Sock 6.Thread stoped [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:39]accept exits with 5 [12:56:39]New connection [12:56:39]New thread 3066817892 created [12:56:39]Thread 3066961252 joined [12:56:39]Waiting for new connection... [12:56:39] Sock 5.Parse request [12:56:39]Sock 5.Check first char [12:56:39]Sock 5.First char is OK [12:56:39]request: POST /json_proto HTTP/1.0 [12:56:39]Method: POST [12:56:39]URL: /json_proto [12:56:39]Method is POST - this is cgi request [12:56:39]url: /json_proto [12:56:39]query_string will be loaded in cgi processing [12:56:39]execute_cgi json_proto POST (null) [12:56:39]execute_cgi path=json_proto method=POST [12:56:39]POST find Content-Length [12:56:39]Host: 172.17.63.131:8080 [12:56:39]Content-Length: 676 [12:56:39]Content-Type: application/json [12:56:39] [12:56:39]POST finish read [12:56:39]Found Content-Length = 676 [12:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:39]execute_script... [12:56:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:39]POST & json_proto [12:56:39]process_json_proto [12:56:39]json parsed OK: [12:56:39]protocol is kg_v1.0 [12:56:39]action value=close_receipt [12:56:39]process_action close_receipt [12:56:39]cmd_close_receipt [12:56:39]MH_GetDate [12:56:39]Write to MH i2c: F0 00 00 94 76 F9 [12:56:39]Write i2c OK [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 09 00 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 09 00 94 76 00 9B 38 1E 67 22 05 6E 64 53 [12:56:39]GetLastDocTimeStamp 1730033704 [12:56:39]current date 1730033819 [12:56:39]FM_GetShiftState [12:56:39]SAM_PROTO_GetShiftState [12:56:39]wFMCommunicate request_size=4 [12:56:39]MH_SAM_APDU [12:56:39]CAPDU: 80 13 01 00 [12:56:39]Write to MH i2c: E2 08 00 95 76 80 13 01 00 00 00 00 00 88 [12:56:39]Write i2c OK [12:56:39]MH_I2C_Read... [12:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:39]Read from MH i2c: E2 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 0E 00 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: E2 0E 00 95 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C9 [12:56:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:56:39]wFMCommunicate OK [12:56:39]SAM_PROTO_GetShiftState done [12:56:39]FM_GetShiftState done [12:56:39]opened in 1729989159 [12:56:39]opened+sec_in_day 1730075559 [12:56:39]quantity*price = 50041 [12:56:39]sum+1 = 50042 [12:56:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 191 27.10.2024 12:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192159 ФПД: 209817840092090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192159&fm=209817840092090&tin=02508201610067®Number=0000000000091776&sum=50000 [12:56:40]StoreToDocumentArchive [12:56:40]shift 542 fd 192159 [12:56:40]save to /storage/0542/doc_00192159 [12:56:40]save last doc name /storage/0542/doc_00192159 to /storage/kkm_last_doc_name [12:56:40]save OK [12:56:40]Clear old archive folders... [12:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:40]tlvbuf is 01614410 [12:56:40]SAM_PROTO_ClearQueue [12:56:40]wFMCommunicate request_size=4 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 09 00 00 [12:56:40]Write to MH i2c: E2 08 00 A2 76 80 09 00 00 00 00 00 00 8A [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 A2 76 00 90 00 8C [12:56:40]RAPDU: 90 00 [12:56:40]wFMCommunicate OK [12:56:40]SAM_PROTO_ClearQueue done [12:56:40]KKMCreateOFDPacket [12:56:40]OFDProtocolAddRootSTLVToBuf [12:56:40]FM_MakeSignedData [12:56:40]FM_MakeSignedData [12:56:40]SAM_PROTO_SignData [12:56:40]wFMCommunicate request_size=4 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 0D 01 02 [12:56:40]Write to MH i2c: E2 08 00 A3 76 80 0D 01 02 00 00 00 00 92 [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 A3 76 00 90 00 8D [12:56:40]RAPDU: 90 00 [12:56:40]wFMCommunicate OK [12:56:40]wFMCommunicate request_size=255 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9B 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EE 02 00 35 04 06 00 BE [12:56:40]Write to MH i2c: E2 02 01 A4 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9B 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EE 02 00 35 04 06 00 BE 00 00 AA [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 A4 76 00 90 00 8E [12:56:40]RAPDU: 90 00 [12:56:40]wFMCommunicate OK [12:56:40]wFMCommunicate request_size=10 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 0D 02 02 05 D4 05 D3 83 BA [12:56:40]Write to MH i2c: E2 0D 00 A5 76 80 0D 02 02 05 00 D4 05 D3 83 BA 00 00 88 [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 03 00 A5 76 00 90 00 8F [12:56:40]RAPDU: 90 00 [12:56:40]wFMCommunicate OK [12:56:40]wFMCommunicate request_size=4 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 0D 03 02 [12:56:40]Write to MH i2c: E2 08 00 A6 76 80 0D 03 02 00 00 00 00 97 [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 0B 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 0B 00 A6 76 00 80 80 5B 14 C3 0A D4 CF 90 00 77 [12:56:40]RAPDU: 80 80 5B 14 C3 0A D4 CF 90 00 [12:56:40]wFMCommunicate OK [12:56:40]SAM_PROTO_SignData done [12:56:40]FM_MakeSignedData done [12:56:40]CreateOFDProtocolMessage [12:56:40]wFMCommunicate request_size=4 [12:56:40]MH_SAM_APDU [12:56:40]CAPDU: 80 11 00 00 [12:56:40]Write to MH i2c: E2 08 00 A7 76 80 11 00 00 00 00 00 00 97 [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 17 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 17 00 A7 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [12:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:56:40]wFMCommunicate OK [12:56:40]CreateOFDProtocolMessage done [12:56:40]OFDSenderStorePacket 192159 [12:56:40]StoreOFDPacket docnum=192159 [12:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 2A 07 01 47 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9B 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EE 02 00 35 04 06 00 BE D4 05 D3 83 BA 80 80 5B 14 C3 0A D4 CF [12:56:40]CheckFolder [12:56:40]dirname=/storage/ofd_packets [12:56:40]CheckFolder done [12:56:40]ProducePacketName [12:56:40]name=ofd_packets/00192159 [12:56:40]NVStorageSaveData ofd_packets/00192159 [12:56:40]File name is /storage/ofd_packets/00192159 [12:56:40]Write 301 bytes [12:56:40]NVStorageSaveData done [12:56:40]OFDSenderStorePacket done [12:56:40]KKMCreateOFDPacket done [12:56:40]NVStorageSaveData kkm_last_timestamp [12:56:40]File name is /storage/kkm_last_timestamp [12:56:40]Write 4 bytes [12:56:40]NVStorageSaveData done [12:56:40]ExternCall_PrintAddStr [12:56:40]wPrintStart [12:56:40]Write to MH i2c: 01 00 00 A8 76 1E [12:56:40]Write i2c OK [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: 01 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: 01 07 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: 01 07 00 A8 76 00 00 00 00 00 FF 0F 33 [12:56:40]RasterBufferAndPrint [12:56:40]line Счет N : (1)31471 [12:56:40]line ИНН: 02508201610067 [12:56:40]line Контрольно-Кассовый Чек [12:56:40]line ПРОДАЖА [12:56:40]line ТРК (МРК, ГНК) : 12 [12:56:40]line Товар: 2710124130 [12:56:40]line Аи-92-К-5 [12:56:40]line 7.480 * 66.90 [12:56:40]line = 500.41 [12:56:40]line НДС 12% НСП 1% [12:56:40]line > о реализуемом товаре [12:56:40]line ОКРУГЛЕНИЕ: -0.41 [12:56:40]line ИТОГО: 500.00 [12:56:40]line Внесено: 500.00 [12:56:40]line СДАЧА: 0.00 [12:56:40]line НСП 1% : 4.43 [12:56:40]line НДС 12% : 53.14 [12:56:40]line Наличными: 500.00 [12:56:40]line Безнал.: 0.00 [12:56:40]line Место: АЗС № 170 "Партнер Нефть" [12:56:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:56:40]line СНО: Общий режим [12:56:40]line Чек 191 27.10.2024 12:56 [12:56:40]line Смена: 542 ФФД: 1.0 [12:56:40]line ЗНМ: 0300000110 [12:56:40]line РНМ: 0000000000091776 [12:56:40]line Версия ККМ: 001 [12:56:40]line ФМ: 0000000000871754 [12:56:40]line ФД: 192159 [12:56:40]line ФПД: 209817840092090 [12:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192159&fm=209817840092090&tin=02508201610067®Number=0000000000091776&sum=50000 [12:56:41]OFD Sender: Processing packet 192159 [packets to send 75, broken 74] [12:56:41]ProducePacketName [12:56:41]name=ofd_packets/00192159 [12:56:41]OFD Sender: To server: pG, [12:56:41]CommunicateWithHost lk.salyk.kg:30040 [12:56:41]ConnectInit lk.salyk.kg [12:56:41]written 0, free lines is 4095 [12:56:41]Connected sock=8 [12:56:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 2A 07 01 47 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9B 38 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EE 02 00 35 04 06 00 BE D4 05 D3 83 BA 80 80 5B 14 C3 0A D4 CF [12:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 6C 47 00 26 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EE 02 00 F4 03 04 00 62 DD 1D 67 B6 04 01 00 00 5A 80 F8 51 05 BF 6C 67 [12:56:41]CommunicateWithHost err = 0 [12:56:41]CheckOFDResponse [12:56:41]1017 (14) - 77093643461234 [12:56:41]1041 (16) - 0000000000871754 [12:56:41]1040 (4) - 192159 [12:56:41]1012 (4) - 27.10.2024 06:27 [12:56:41]1206 (1) - 0 [12:56:41]OFD Sender: Remove packet 192159 [12:56:41]ProducePacketName [12:56:41]name=ofd_packets/00192159 [12:56:41]NVStorageDeleteData [12:56:41]Write to MH i2c: 01 00 00 D3 76 49 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 D3 76 00 00 00 00 00 A7 0C 03 [12:56:41]RasterBufferAndPrint [12:56:41]line [12:56:41]line [12:56:41]line [12:56:41]line [12:56:41]line [12:56:41]written 0, free lines is 3242 [12:56:41]MH_Cut [12:56:41]Write to MH i2c: D1 01 00 DA 76 01 22 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: D1 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: D1 01 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: D1 01 00 DA 76 00 21 [12:56:41]Write to MH i2c: 01 00 00 DB 76 51 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]OFD Sender: No OFD packet to send [12:56:42]*** Cut start [12:56:42]*** Partial cut [12:56:42]*** CUTSNS_PIN = 1 [12:56:42]*** CUTSNS_PIN = 0 [12:56:42]*** Brake cut motor [12:56:42]Read from MH i2c: 01 [12:56:42]MH_I2C_Read... [12:56:42]*** Stop cut motor [12:56:43]*** Cut end [12:56:43]Read from MH i2c: 01 07 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: 01 07 00 DB 76 00 00 00 00 00 FF 0F 66 [12:56:43]process_action close_receipt done [12:56:43]requested_data is exist [12:56:43]produce_requested_data [12:56:43]requested_item fm.sn is exist - process it [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 11 00 00 [12:56:43]Write to MH i2c: E2 08 00 DC 76 80 11 00 00 00 00 00 00 CC [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 17 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 17 00 DC 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [12:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:56:43]wFMCommunicate OK [12:56:43]requested_item fd.num is exist - process it [12:56:43]SAM_PROTO_GetFieldsCounters [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 13 00 00 [12:56:43]Write to MH i2c: E2 08 00 DD 76 80 13 00 00 00 00 00 00 CF [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 62 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 62 00 DD 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [12:56:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:43]wFMCommunicate OK [12:56:43]SAM_PROTO_GetFieldsCounters done [12:56:43]requested_item shift.num is exist - process it [12:56:43]requested_item shift.opened is exist - process it [12:56:43]req_shift_opened [12:56:43]FM_GetShiftState [12:56:43]SAM_PROTO_GetShiftState [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 13 01 00 [12:56:43]Write to MH i2c: E2 08 00 DE 76 80 13 01 00 00 00 00 00 D1 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 0E 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 0E 00 DE 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 12 [12:56:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:56:43]wFMCommunicate OK [12:56:43]SAM_PROTO_GetShiftState done [12:56:43]FM_GetShiftState done [12:56:43]req_shift_opened done [12:56:43]requested_item shift.open_date is exist - process it [12:56:43]req_shift_open_date [12:56:43]req_shift_open_date done [12:56:43]produce_requested_data done [12:56:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192159,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:56:43]process_action_free close_receipt [12:56:43]json_value_free [12:56:43]json_value_free done [12:56:43]process_json_proto returns [12:56:43]Send response to host [12:56:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192159,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:56:43]free response buf [12:56:43]execute_script done [12:56:43]execute_script returns [12:56:43]free content buf [12:56:43]Sock 5.Close socket [12:56:43]Sock 5.Thread stoped [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:10]accept exits with 6 [12:59:10]New connection [12:59:10]New thread 3066961252 created [12:59:10]Thread 3066817892 joined [12:59:10]Waiting for new connection... [12:59:10] Sock 6.Parse request [12:59:10]Sock 6.Check first char [12:59:10]Sock 6.First char is OK [12:59:10]request: POST /json_proto HTTP/1.0 [12:59:10]Method: POST [12:59:10]URL: /json_proto [12:59:10]Method is POST - this is cgi request [12:59:10]url: /json_proto [12:59:10]query_string will be loaded in cgi processing [12:59:10]execute_cgi json_proto POST (null) [12:59:10]execute_cgi path=json_proto method=POST [12:59:10]POST find Content-Length [12:59:10]Host: 172.17.63.131:8080 [12:59:10]Content-Length: 676 [12:59:10]Content-Type: application/json [12:59:10] [12:59:10]POST finish read [12:59:10]Found Content-Length = 676 [12:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:10]execute_script... [12:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:10]POST & json_proto [12:59:10]process_json_proto [12:59:10]json parsed OK: [12:59:10]protocol is kg_v1.0 [12:59:10]action value=close_receipt [12:59:10]process_action close_receipt [12:59:10]cmd_close_receipt [12:59:10]MH_GetDate [12:59:10]Write to MH i2c: F0 00 00 DF 76 44 [12:59:10]Write i2c OK [12:59:10]MH_I2C_Read... [12:59:10]Read from MH i2c: F0 [12:59:10]MH_I2C_Read... [12:59:10]Read from MH i2c: F0 09 00 [12:59:10]MH_I2C_Read... [12:59:10]Read from MH i2c: F0 09 00 DF 76 00 32 39 1E 67 22 05 6E 64 36 [12:59:10]GetLastDocTimeStamp 1730033819 [12:59:10]current date 1730033970 [12:59:10]FM_GetShiftState [12:59:10]SAM_PROTO_GetShiftState [12:59:10]wFMCommunicate request_size=4 [12:59:10]MH_SAM_APDU [12:59:10]CAPDU: 80 13 01 00 [12:59:10]Write to MH i2c: E2 08 00 E0 76 80 13 01 00 00 00 00 00 D3 [12:59:10]Write i2c OK [12:59:10]MH_I2C_Read... [12:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:10]Read from MH i2c: E2 [12:59:10]MH_I2C_Read... [12:59:10]Read from MH i2c: E2 0E 00 [12:59:10]MH_I2C_Read... [12:59:10]Read from MH i2c: E2 0E 00 E0 76 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 14 [12:59:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:59:10]wFMCommunicate OK [12:59:10]SAM_PROTO_GetShiftState done [12:59:10]FM_GetShiftState done [12:59:10]opened in 1729989159 [12:59:10]opened+sec_in_day 1730075559 [12:59:10]quantity*price = 50041 [12:59:10]sum+1 = 50042 [12:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 192 27.10.2024 12:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192160 ФПД: 273084661424617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192160&fm=273084661424617&tin=02508201610067®Number=0000000000091776&sum=50000 [12:59:11]StoreToDocumentArchive [12:59:11]shift 542 fd 192160 [12:59:11]save to /storage/0542/doc_00192160 [12:59:11]save last doc name /storage/0542/doc_00192160 to /storage/kkm_last_doc_name [12:59:11]save OK [12:59:11]Clear old archive folders... [12:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:11]tlvbuf is 01992260 [12:59:11]SAM_PROTO_ClearQueue [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 09 00 00 [12:59:11]Write to MH i2c: E2 08 00 ED 76 80 09 00 00 00 00 00 00 D5 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 ED 76 00 90 00 D7 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]SAM_PROTO_ClearQueue done [12:59:11]KKMCreateOFDPacket [12:59:11]OFDProtocolAddRootSTLVToBuf [12:59:11]FM_MakeSignedData [12:59:11]FM_MakeSignedData [12:59:11]SAM_PROTO_SignData [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 01 02 [12:59:11]Write to MH i2c: E2 08 00 EE 76 80 0D 01 02 00 00 00 00 DD [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 EE 76 00 90 00 D8 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=255 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 32 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EE 02 00 35 04 06 00 F8 [12:59:11]Write to MH i2c: E2 02 01 EF 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 32 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EE 02 00 35 04 06 00 F8 00 00 C9 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 EF 76 00 90 00 D9 [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=10 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 02 02 05 5E 7A 3C E1 E9 [12:59:11]Write to MH i2c: E2 0D 00 F0 76 80 0D 02 02 05 00 5E 7A 3C E1 E9 00 00 C8 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 03 00 F0 76 00 90 00 DA [12:59:11]RAPDU: 90 00 [12:59:11]wFMCommunicate OK [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 0D 03 02 [12:59:11]Write to MH i2c: E2 08 00 F1 76 80 0D 03 02 00 00 00 00 E2 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 0B 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 0B 00 F1 76 00 8B BD CB C2 DD 6A 9B 0C 90 00 A6 [12:59:11]RAPDU: 8B BD CB C2 DD 6A 9B 0C 90 00 [12:59:11]wFMCommunicate OK [12:59:11]SAM_PROTO_SignData done [12:59:11]FM_MakeSignedData done [12:59:11]CreateOFDProtocolMessage [12:59:11]wFMCommunicate request_size=4 [12:59:11]MH_SAM_APDU [12:59:11]CAPDU: 80 11 00 00 [12:59:11]Write to MH i2c: E2 08 00 F2 76 80 11 00 00 00 00 00 00 E2 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:11]Read from MH i2c: E2 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 17 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: E2 17 00 F2 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [12:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:11]wFMCommunicate OK [12:59:11]CreateOFDProtocolMessage done [12:59:11]OFDSenderStorePacket 192160 [12:59:11]StoreOFDPacket docnum=192160 [12:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 28 CD 07 01 E8 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 32 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EE 02 00 35 04 06 00 F8 5E 7A 3C E1 E9 8B BD CB C2 DD 6A 9B 0C [12:59:11]CheckFolder [12:59:11]dirname=/storage/ofd_packets [12:59:11]CheckFolder done [12:59:11]ProducePacketName [12:59:11]name=ofd_packets/00192160 [12:59:11]NVStorageSaveData ofd_packets/00192160 [12:59:11]File name is /storage/ofd_packets/00192160 [12:59:11]Write 301 bytes [12:59:11]NVStorageSaveData done [12:59:11]OFDSenderStorePacket done [12:59:11]KKMCreateOFDPacket done [12:59:11]NVStorageSaveData kkm_last_timestamp [12:59:11]File name is /storage/kkm_last_timestamp [12:59:11]Write 4 bytes [12:59:11]NVStorageSaveData done [12:59:11]ExternCall_PrintAddStr [12:59:11]wPrintStart [12:59:11]Write to MH i2c: 01 00 00 F3 76 69 [12:59:11]Write i2c OK [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 07 00 [12:59:11]MH_I2C_Read... [12:59:11]Read from MH i2c: 01 07 00 F3 76 00 00 00 00 00 FF 0F 7E [12:59:11]RasterBufferAndPrint [12:59:11]line Счет N : (1)31474 [12:59:11]line ИНН: 02508201610067 [12:59:11]line Контрольно-Кассовый Чек [12:59:11]line ПРОДАЖА [12:59:11]line ТРК (МРК, ГНК) : 12 [12:59:11]line Товар: 2710124130 [12:59:11]line Аи-92-К-5 [12:59:11]line 7.480 * 66.90 [12:59:11]line = 500.41 [12:59:11]line НДС 12% НСП 1% [12:59:11]line > о реализуемом товаре [12:59:11]line ОКРУГЛЕНИЕ: -0.41 [12:59:11]line ИТОГО: 500.00 [12:59:11]line Внесено: 500.00 [12:59:11]line СДАЧА: 0.00 [12:59:11]line НСП 1% : 4.43 [12:59:11]line НДС 12% : 53.14 [12:59:11]line Наличными: 500.00 [12:59:11]line Безнал.: 0.00 [12:59:11]line Место: АЗС № 170 "Партнер Нефть" [12:59:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:11]line СНО: Общий режим [12:59:11]line Чек 192 27.10.2024 12:59 [12:59:11]line Смена: 542 ФФД: 1.0 [12:59:11]line ЗНМ: 0300000110 [12:59:11]line РНМ: 0000000000091776 [12:59:11]line Версия ККМ: 001 [12:59:11]line ФМ: 0000000000871754 [12:59:11]line ФД: 192160 [12:59:11]line ФПД: 273084661424617 [12:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192160&fm=273084661424617&tin=02508201610067®Number=0000000000091776&sum=50000 [12:59:12]OFD Sender: Processing packet 192160 [packets to send 75, broken 74] [12:59:12]ProducePacketName [12:59:12]name=ofd_packets/00192160 [12:59:12]OFD Sender: To server: pG, [12:59:12]CommunicateWithHost lk.salyk.kg:30040 [12:59:12]ConnectInit lk.salyk.kg [12:59:12]written 0, free lines is 4095 [12:59:12]Connected sock=8 [12:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 28 CD 07 01 E8 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 32 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EE 02 00 35 04 06 00 F8 5E 7A 3C E1 E9 8B BD CB C2 DD 6A 9B 0C [12:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5C DF 47 00 0A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EE 02 00 F4 03 04 00 FA DD 1D 67 B6 04 01 00 00 ED EB 2E F8 0E 01 D4 69 [12:59:12]CommunicateWithHost err = 0 [12:59:12]CheckOFDResponse [12:59:12]1017 (14) - 77093643461234 [12:59:12]1041 (16) - 0000000000871754 [12:59:12]1040 (4) - 192160 [12:59:12]1012 (4) - 27.10.2024 06:30 [12:59:12]1206 (1) - 0 [12:59:12]OFD Sender: Remove packet 192160 [12:59:12]ProducePacketName [12:59:12]name=ofd_packets/00192160 [12:59:12]NVStorageDeleteData [12:59:12]Write to MH i2c: 01 00 00 1E 77 95 [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 07 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: 01 07 00 1E 77 00 00 00 00 00 A6 0C 4E [12:59:12]RasterBufferAndPrint [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]line [12:59:12]written 0, free lines is 3243 [12:59:12]MH_Cut [12:59:12]Write to MH i2c: D1 01 00 25 77 01 6E [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 01 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: D1 01 00 25 77 00 6D [12:59:12]Write to MH i2c: 01 00 00 26 77 9D [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:13]OFD Sender: No OFD packet to send [12:59:13]*** Cut start [12:59:13]*** Partial cut [12:59:13]*** CUTSNS_PIN = 1 [12:59:13]*** CUTSNS_PIN = 0 [12:59:13]*** Brake cut motor [12:59:14]Read from MH i2c: 01 [12:59:14]MH_I2C_Read... [12:59:14]*** Stop cut motor [12:59:14]*** Cut end [12:59:14]Read from MH i2c: 01 07 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: 01 07 00 26 77 00 00 00 00 00 FF 0F B2 [12:59:14]process_action close_receipt done [12:59:14]requested_data is exist [12:59:14]produce_requested_data [12:59:14]requested_item fm.sn is exist - process it [12:59:14]wFMCommunicate request_size=4 [12:59:14]MH_SAM_APDU [12:59:14]CAPDU: 80 11 00 00 [12:59:14]Write to MH i2c: E2 08 00 27 77 80 11 00 00 00 00 00 00 18 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 17 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 17 00 27 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [12:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:14]wFMCommunicate OK [12:59:14]requested_item fd.num is exist - process it [12:59:14]SAM_PROTO_GetFieldsCounters [12:59:14]wFMCommunicate request_size=4 [12:59:14]MH_SAM_APDU [12:59:14]CAPDU: 80 13 00 00 [12:59:14]Write to MH i2c: E2 08 00 28 77 80 13 00 00 00 00 00 00 1B [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 62 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 62 00 28 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [12:59:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:14]wFMCommunicate OK [12:59:14]SAM_PROTO_GetFieldsCounters done [12:59:14]requested_item shift.num is exist - process it [12:59:14]requested_item shift.opened is exist - process it [12:59:14]req_shift_opened [12:59:14]FM_GetShiftState [12:59:14]SAM_PROTO_GetShiftState [12:59:14]wFMCommunicate request_size=4 [12:59:14]MH_SAM_APDU [12:59:14]CAPDU: 80 13 01 00 [12:59:14]Write to MH i2c: E2 08 00 29 77 80 13 01 00 00 00 00 00 1D [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 29 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5E [12:59:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:59:14]wFMCommunicate OK [12:59:14]SAM_PROTO_GetShiftState done [12:59:14]FM_GetShiftState done [12:59:14]req_shift_opened done [12:59:14]requested_item shift.open_date is exist - process it [12:59:14]req_shift_open_date [12:59:14]req_shift_open_date done [12:59:14]produce_requested_data done [12:59:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192160,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:59:14]process_action_free close_receipt [12:59:14]json_value_free [12:59:14]json_value_free done [12:59:14]process_json_proto returns [12:59:14]Send response to host [12:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192160,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:59:14]free response buf [12:59:14]execute_script done [12:59:14]execute_script returns [12:59:14]free content buf [12:59:14]Sock 6.Close socket [12:59:14]Sock 6.Thread stoped [12:59:14]accept exits with 5 [12:59:14]New connection [12:59:14]New thread 3066817892 created [12:59:14]Thread 3066961252 joined [12:59:14]Waiting for new connection... [12:59:14] Sock 5.Parse request [12:59:14]Sock 5.Check first char [12:59:14]Sock 5.First char is OK [12:59:14]request: POST /json_proto HTTP/1.0 [12:59:14]Method: POST [12:59:14]URL: /json_proto [12:59:14]Method is POST - this is cgi request [12:59:14]url: /json_proto [12:59:14]query_string will be loaded in cgi processing [12:59:14]execute_cgi json_proto POST (null) [12:59:14]execute_cgi path=json_proto method=POST [12:59:14]POST find Content-Length [12:59:14]Host: 172.17.63.131:8080 [12:59:14]Content-Length: 676 [12:59:14]Content-Type: application/json [12:59:14] [12:59:14]POST finish read [12:59:14]Found Content-Length = 676 [12:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:14]execute_script... [12:59: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)31473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:14]POST & json_proto [12:59:14]process_json_proto [12:59:14]json parsed OK: [12:59:14]protocol is kg_v1.0 [12:59:14]action value=close_receipt [12:59:14]process_action close_receipt [12:59:14]cmd_close_receipt [12:59:14]MH_GetDate [12:59:14]Write to MH i2c: F0 00 00 2A 77 90 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 09 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: F0 09 00 2A 77 00 36 39 1E 67 22 05 6E 64 86 [12:59:14]GetLastDocTimeStamp 1730033970 [12:59:14]current date 1730033974 [12:59:14]FM_GetShiftState [12:59:14]SAM_PROTO_GetShiftState [12:59:14]wFMCommunicate request_size=4 [12:59:14]MH_SAM_APDU [12:59:14]CAPDU: 80 13 01 00 [12:59:14]Write to MH i2c: E2 08 00 2B 77 80 13 01 00 00 00 00 00 1F [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:14]Read from MH i2c: E2 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: E2 0E 00 2B 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 60 [12:59:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:59:14]wFMCommunicate OK [12:59:14]SAM_PROTO_GetShiftState done [12:59:14]FM_GetShiftState done [12:59:14]opened in 1729989159 [12:59:14]opened+sec_in_day 1730075559 [12:59:14]quantity*price = 40006 [12:59:14]sum+1 = 40007 [12:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 193 27.10.2024 12:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192161 ФПД: 178093685250793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192161&fm=178093685250793&tin=02508201610067®Number=0000000000091776&sum=40000 [12:59:16]StoreToDocumentArchive [12:59:16]shift 542 fd 192161 [12:59:16]save to /storage/0542/doc_00192161 [12:59:16]save last doc name /storage/0542/doc_00192161 to /storage/kkm_last_doc_name [12:59:16]save OK [12:59:16]Clear old archive folders... [12:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:16]tlvbuf is 01DE9700 [12:59:16]SAM_PROTO_ClearQueue [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 09 00 00 [12:59:16]Write to MH i2c: E2 08 00 38 77 80 09 00 00 00 00 00 00 21 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 38 77 00 90 00 23 [12:59:16]RAPDU: 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_ClearQueue done [12:59:16]KKMCreateOFDPacket [12:59:16]OFDProtocolAddRootSTLVToBuf [12:59:16]FM_MakeSignedData [12:59:16]FM_MakeSignedData [12:59:16]SAM_PROTO_SignData [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 0D 01 02 [12:59:16]Write to MH i2c: E2 08 00 39 77 80 0D 01 02 00 00 00 00 29 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 39 77 00 90 00 24 [12:59:16]RAPDU: 90 00 [12:59:16]wFMCommunicate OK [12:59:16]wFMCommunicate request_size=255 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 37 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EE 02 00 35 04 06 00 A1 [12:59:16]Write to MH i2c: E2 02 01 3A 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 37 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EE 02 00 35 04 06 00 A1 00 00 94 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 3A 77 00 90 00 25 [12:59:16]RAPDU: 90 00 [12:59:16]wFMCommunicate OK [12:59:16]wFMCommunicate request_size=10 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 0D 02 02 05 F9 AA D8 9A E9 [12:59:16]Write to MH i2c: E2 0D 00 3B 77 80 0D 02 02 05 00 F9 AA D8 9A E9 00 00 34 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 03 00 3B 77 00 90 00 26 [12:59:16]RAPDU: 90 00 [12:59:16]wFMCommunicate OK [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 0D 03 02 [12:59:16]Write to MH i2c: E2 08 00 3C 77 80 0D 03 02 00 00 00 00 2E [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0B 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0B 00 3C 77 00 35 F7 BA 43 9C 65 99 96 90 00 88 [12:59:16]RAPDU: 35 F7 BA 43 9C 65 99 96 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_SignData done [12:59:16]FM_MakeSignedData done [12:59:16]CreateOFDProtocolMessage [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 11 00 00 [12:59:16]Write to MH i2c: E2 08 00 3D 77 80 11 00 00 00 00 00 00 2E [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 3D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [12:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:16]wFMCommunicate OK [12:59:16]CreateOFDProtocolMessage done [12:59:16]OFDSenderStorePacket 192161 [12:59:16]StoreOFDPacket docnum=192161 [12:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 27 07 01 B0 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 37 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EE 02 00 35 04 06 00 A1 F9 AA D8 9A E9 35 F7 BA 43 9C 65 99 96 [12:59:17]CheckFolder [12:59:17]dirname=/storage/ofd_packets [12:59:17]CheckFolder done [12:59:17]ProducePacketName [12:59:17]name=ofd_packets/00192161 [12:59:17]NVStorageSaveData ofd_packets/00192161 [12:59:17]File name is /storage/ofd_packets/00192161 [12:59:17]Write 301 bytes [12:59:17]NVStorageSaveData done [12:59:17]OFDSenderStorePacket done [12:59:17]KKMCreateOFDPacket done [12:59:17]NVStorageSaveData kkm_last_timestamp [12:59:17]File name is /storage/kkm_last_timestamp [12:59:17]Write 4 bytes [12:59:17]NVStorageSaveData done [12:59:17]ExternCall_PrintAddStr [12:59:17]wPrintStart [12:59:17]Write to MH i2c: 01 00 00 3E 77 B5 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 3E 77 00 00 00 00 00 FF 0F CA [12:59:17]RasterBufferAndPrint [12:59:17]line Счет N : (1)31473 [12:59:17]line ИНН: 02508201610067 [12:59:17]line Контрольно-Кассовый Чек [12:59:17]line ПРОДАЖА [12:59:17]line ТРК (МРК, ГНК) : 21 [12:59:17]line Товар: 2710124130 [12:59:17]line Аи-92-К-5 [12:59:17]line 5.980 * 66.90 [12:59:17]line = 400.06 [12:59:17]line НДС 12% НСП 1% [12:59:17]line > о реализуемом товаре [12:59:17]line ОКРУГЛЕНИЕ: -0.06 [12:59:17]line ИТОГО: 400.00 [12:59:17]line Внесено: 400.00 [12:59:17]line СДАЧА: 0.00 [12:59:17]line НСП 1% : 3.54 [12:59:17]line НДС 12% : 42.48 [12:59:17]line Наличными: 400.00 [12:59:17]line Безнал.: 0.00 [12:59:17]line Место: АЗС № 170 "Партнер Нефть" [12:59:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:17]line СНО: Общий режим [12:59:17]line Чек 193 27.10.2024 12:59 [12:59:17]line Смена: 542 ФФД: 1.0 [12:59:17]line ЗНМ: 0300000110 [12:59:17]line РНМ: 0000000000091776 [12:59:17]line Версия ККМ: 001 [12:59:17]line ФМ: 0000000000871754 [12:59:17]line ФД: 192161 [12:59:17]line ФПД: 178093685250793 [12:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192161&fm=178093685250793&tin=02508201610067®Number=0000000000091776&sum=40000 [12:59:17]OFD Sender: Processing packet 192161 [packets to send 75, broken 74] [12:59:17]ProducePacketName [12:59:17]name=ofd_packets/00192161 [12:59:17]written 0, free lines is 4095 [12:59:17]OFD Sender: To server: pG, [12:59:17]CommunicateWithHost lk.salyk.kg:30040 [12:59:17]ConnectInit lk.salyk.kg [12:59:17]Connected sock=8 [12:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 27 07 01 B0 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 37 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EE 02 00 35 04 06 00 A1 F9 AA D8 9A E9 35 F7 BA 43 9C 65 99 96 [12:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD 9B 47 00 D9 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EE 02 00 F4 03 04 00 FF DD 1D 67 B6 04 01 00 00 9F D0 85 46 0B 41 65 02 [12:59:17]CommunicateWithHost err = 0 [12:59:17]CheckOFDResponse [12:59:17]1017 (14) - 77093643461234 [12:59:17]1041 (16) - 0000000000871754 [12:59:17]1040 (4) - 192161 [12:59:17]1012 (4) - 27.10.2024 06:30 [12:59:17]1206 (1) - 0 [12:59:17]OFD Sender: Remove packet 192161 [12:59:17]ProducePacketName [12:59:17]name=ofd_packets/00192161 [12:59:17]NVStorageDeleteData [12:59:17]Write to MH i2c: 01 00 00 69 77 E0 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: 01 07 00 69 77 00 00 00 00 00 AB 0C 9E [12:59:17]RasterBufferAndPrint [12:59:17]line [12:59:17]line [12:59:17]line [12:59:17]line [12:59:17]line [12:59:17]written 0, free lines is 3257 [12:59:17]MH_Cut [12:59:17]Write to MH i2c: D1 01 00 70 77 01 B9 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: D1 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: D1 01 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: D1 01 00 70 77 00 B8 [12:59:17]Write to MH i2c: 01 00 00 71 77 E8 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:18]OFD Sender: No OFD packet to send [12:59:18]*** Cut start [12:59:18]*** Partial cut [12:59:18]*** CUTSNS_PIN = 1 [12:59:18]*** CUTSNS_PIN = 0 [12:59:18]*** Brake cut motor [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]*** Stop cut motor [12:59:19]*** Cut end [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 71 77 00 00 00 00 00 FF 0F FD [12:59:19]process_action close_receipt done [12:59:19]requested_data is exist [12:59:19]produce_requested_data [12:59:19]requested_item fm.sn is exist - process it [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 11 00 00 [12:59:19]Write to MH i2c: E2 08 00 72 77 80 11 00 00 00 00 00 00 63 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 72 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [12:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:19]wFMCommunicate OK [12:59:19]requested_item fd.num is exist - process it [12:59:19]SAM_PROTO_GetFieldsCounters [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 13 00 00 [12:59:19]Write to MH i2c: E2 08 00 73 77 80 13 00 00 00 00 00 00 66 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 62 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 62 00 73 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_GetFieldsCounters done [12:59:19]requested_item shift.num is exist - process it [12:59:19]requested_item shift.opened is exist - process it [12:59:19]req_shift_opened [12:59:19]FM_GetShiftState [12:59:19]SAM_PROTO_GetShiftState [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 13 01 00 [12:59:19]Write to MH i2c: E2 08 00 74 77 80 13 01 00 00 00 00 00 68 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 74 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A9 [12:59:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_GetShiftState done [12:59:19]FM_GetShiftState done [12:59:19]req_shift_opened done [12:59:19]requested_item shift.open_date is exist - process it [12:59:19]req_shift_open_date [12:59:19]req_shift_open_date done [12:59:19]produce_requested_data done [12:59:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192161,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [12:59:19]process_action_free close_receipt [12:59:19]json_value_free [12:59:19]json_value_free done [12:59:19]process_json_proto returns [12:59:19]Send response to host [12:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192161,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [12:59:19]free response buf [12:59:19]execute_script done [12:59:19]execute_script returns [12:59:19]free content buf [12:59:19]Sock 5.Close socket [12:59:19]Sock 5.Thread stoped [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:50]accept exits with 6 [13:00:50]New connection [13:00:50]New thread 3066961252 created [13:00:50]Thread 3066817892 joined [13:00:50]Waiting for new connection... [13:00:50] Sock 6.Parse request [13:00:50]Sock 6.Check first char [13:00:50]Sock 6.First char is OK [13:00:50]request: POST /json_proto HTTP/1.0 [13:00:50]Method: POST [13:00:50]URL: /json_proto [13:00:50]Method is POST - this is cgi request [13:00:50]url: /json_proto [13:00:50]query_string will be loaded in cgi processing [13:00:50]execute_cgi json_proto POST (null) [13:00:50]execute_cgi path=json_proto method=POST [13:00:50]POST find Content-Length [13:00:50]Host: 172.17.63.131:8080 [13:00:50]Content-Length: 677 [13:00:50]Content-Type: application/json [13:00:50] [13:00:50]POST finish read [13:00:50]Found Content-Length = 677 [13:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:50]execute_script... [13:00: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)31475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:50]POST & json_proto [13:00:50]process_json_proto [13:00:50]json parsed OK: [13:00:50]protocol is kg_v1.0 [13:00:50]action value=close_receipt [13:00:50]process_action close_receipt [13:00:50]cmd_close_receipt [13:00:50]MH_GetDate [13:00:50]Write to MH i2c: F0 00 00 75 77 DB [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 09 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 09 00 75 77 00 97 39 1E 67 22 05 6E 64 32 [13:00:50]GetLastDocTimeStamp 1730033975 [13:00:50]current date 1730034071 [13:00:50]FM_GetShiftState [13:00:50]SAM_PROTO_GetShiftState [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 13 01 00 [13:00:50]Write to MH i2c: E2 08 00 76 77 80 13 01 00 00 00 00 00 6A [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0E 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0E 00 76 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AB [13:00:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_GetShiftState done [13:00:51]FM_GetShiftState done [13:00:51]opened in 1729989159 [13:00:51]opened+sec_in_day 1730075559 [13:00:51]quantity*price = 90047 [13:00:51]sum+1 = 90048 [13:00:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 194 27.10.2024 13:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192162 ФПД: 58193485919115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192162&fm=58193485919115&tin=02508201610067®Number=0000000000091776&sum=90000 [13:00:52]StoreToDocumentArchive [13:00:52]shift 542 fd 192162 [13:00:52]save to /storage/0542/doc_00192162 [13:00:52]save last doc name /storage/0542/doc_00192162 to /storage/kkm_last_doc_name [13:00:52]save OK [13:00:52]Clear old archive folders... [13:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:52]tlvbuf is 016BC3B0 [13:00:52]SAM_PROTO_ClearQueue [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 09 00 00 [13:00:52]Write to MH i2c: E2 08 00 83 77 80 09 00 00 00 00 00 00 6C [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 83 77 00 90 00 6E [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_ClearQueue done [13:00:52]KKMCreateOFDPacket [13:00:52]OFDProtocolAddRootSTLVToBuf [13:00:52]FM_MakeSignedData [13:00:52]FM_MakeSignedData [13:00:52]SAM_PROTO_SignData [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 01 02 [13:00:52]Write to MH i2c: E2 08 00 84 77 80 0D 01 02 00 00 00 00 74 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 84 77 00 90 00 6F [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=255 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 97 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EE 02 00 35 04 06 00 34 [13:00:52]Write to MH i2c: E2 02 01 85 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 97 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EE 02 00 35 04 06 00 34 00 00 22 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 85 77 00 90 00 70 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=10 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 02 02 05 ED 3A 0E 73 8B [13:00:52]Write to MH i2c: E2 0D 00 86 77 80 0D 02 02 05 00 ED 3A 0E 73 8B 00 00 B4 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 86 77 00 90 00 71 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 03 02 [13:00:52]Write to MH i2c: E2 08 00 87 77 80 0D 03 02 00 00 00 00 79 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0B 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0B 00 87 77 00 58 D9 A8 C2 26 22 B5 93 90 00 A5 [13:00:52]RAPDU: 58 D9 A8 C2 26 22 B5 93 90 00 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_SignData done [13:00:52]FM_MakeSignedData done [13:00:52]CreateOFDProtocolMessage [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 11 00 00 [13:00:52]Write to MH i2c: E2 08 00 88 77 80 11 00 00 00 00 00 00 79 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 88 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [13:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:52]wFMCommunicate OK [13:00:52]CreateOFDProtocolMessage done [13:00:52]OFDSenderStorePacket 192162 [13:00:52]StoreOFDPacket docnum=192162 [13:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 75 07 01 E1 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 97 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EE 02 00 35 04 06 00 34 ED 3A 0E 73 8B 58 D9 A8 C2 26 22 B5 93 [13:00:52]CheckFolder [13:00:52]dirname=/storage/ofd_packets [13:00:52]CheckFolder done [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00192162 [13:00:52]NVStorageSaveData ofd_packets/00192162 [13:00:52]File name is /storage/ofd_packets/00192162 [13:00:52]Write 301 bytes [13:00:52]NVStorageSaveData done [13:00:52]OFDSenderStorePacket done [13:00:52]KKMCreateOFDPacket done [13:00:52]NVStorageSaveData kkm_last_timestamp [13:00:52]File name is /storage/kkm_last_timestamp [13:00:52]Write 4 bytes [13:00:52]NVStorageSaveData done [13:00:52]ExternCall_PrintAddStr [13:00:52]wPrintStart [13:00:52]Write to MH i2c: 01 00 00 89 77 00 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 89 77 00 00 00 00 00 FF 0F 15 [13:00:52]RasterBufferAndPrint [13:00:52]line Счет N : (1)31475 [13:00:52]line ИНН: 02508201610067 [13:00:52]line Контрольно-Кассовый Чек [13:00:52]line ПРОДАЖА [13:00:52]line ТРК (МРК, ГНК) : 21 [13:00:52]line Товар: 2710124130 [13:00:52]line Аи-92-К-5 [13:00:52]line 13.460 * 66.90 [13:00:52]line = 900.47 [13:00:52]line НДС 12% НСП 1% [13:00:52]line > о реализуемом товаре [13:00:52]line ОКРУГЛЕНИЕ: -0.47 [13:00:52]line ИТОГО: 900.00 [13:00:52]line Внесено: 900.00 [13:00:52]line СДАЧА: 0.00 [13:00:52]line НСП 1% : 7.97 [13:00:52]line НДС 12% : 95.62 [13:00:52]line Наличными: 900.00 [13:00:52]line Безнал.: 0.00 [13:00:52]line Место: АЗС № 170 "Партнер Нефть" [13:00:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:00:52]line СНО: Общий режим [13:00:52]line Чек 194 27.10.2024 13:01 [13:00:52]line Смена: 542 ФФД: 1.0 [13:00:52]line ЗНМ: 0300000110 [13:00:52]line РНМ: 0000000000091776 [13:00:52]line Версия ККМ: 001 [13:00:52]line ФМ: 0000000000871754 [13:00:52]line ФД: 192162 [13:00:52]line ФПД: 58193485919115 [13:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192162&fm=58193485919115&tin=02508201610067®Number=0000000000091776&sum=90000 [13:00:53]OFD Sender: Processing packet 192162 [packets to send 75, broken 74] [13:00:53]ProducePacketName [13:00:53]name=ofd_packets/00192162 [13:00:53]OFD Sender: To server: pG, [13:00:53]CommunicateWithHost lk.salyk.kg:30040 [13:00:53]ConnectInit lk.salyk.kg [13:00:53]written 0, free lines is 4095 [13:00:53]Connected sock=8 [13:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 75 07 01 E1 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 97 39 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EE 02 00 35 04 06 00 34 ED 3A 0E 73 8B 58 D9 A8 C2 26 22 B5 93 [13:00:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F C9 47 00 B6 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EE 02 00 F4 03 04 00 5E DE 1D 67 B6 04 01 00 00 8E 4B A5 F6 10 9A 31 C2 [13:00:53]CommunicateWithHost err = 0 [13:00:53]CheckOFDResponse [13:00:53]1017 (14) - 77093643461234 [13:00:53]1041 (16) - 0000000000871754 [13:00:53]1040 (4) - 192162 [13:00:53]1012 (4) - 27.10.2024 06:31 [13:00:53]1206 (1) - 0 [13:00:53]OFD Sender: Remove packet 192162 [13:00:53]ProducePacketName [13:00:53]name=ofd_packets/00192162 [13:00:53]NVStorageDeleteData [13:00:53]Write to MH i2c: 01 00 00 B4 77 2B [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 B4 77 00 00 00 00 00 A5 0C E3 [13:00:53]RasterBufferAndPrint [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]written 0, free lines is 3242 [13:00:53]MH_Cut [13:00:53]Write to MH i2c: D1 01 00 BB 77 01 04 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 01 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 01 00 BB 77 00 03 [13:00:53]Write to MH i2c: 01 00 00 BC 77 33 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]OFD Sender: No OFD packet to send [13:00:54]*** Cut start [13:00:54]*** Partial cut [13:00:54]*** CUTSNS_PIN = 1 [13:00:54]*** CUTSNS_PIN = 0 [13:00:54]*** Brake cut motor [13:00:54]Read from MH i2c: 01 [13:00:54]MH_I2C_Read... [13:00:54]*** Stop cut motor [13:00:54]*** Cut end [13:00:54]Read from MH i2c: 01 07 00 [13:00:54]MH_I2C_Read... [13:00:54]Read from MH i2c: 01 07 00 BC 77 00 00 00 00 00 FF 0F 48 [13:00:54]process_action close_receipt done [13:00:54]requested_data is exist [13:00:54]produce_requested_data [13:00:54]requested_item fm.sn is exist - process it [13:00:54]wFMCommunicate request_size=4 [13:00:54]MH_SAM_APDU [13:00:54]CAPDU: 80 11 00 00 [13:00:54]Write to MH i2c: E2 08 00 BD 77 80 11 00 00 00 00 00 00 AE [13:00:54]Write i2c OK [13:00:54]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 17 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 17 00 BD 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [13:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:55]wFMCommunicate OK [13:00:55]requested_item fd.num is exist - process it [13:00:55]SAM_PROTO_GetFieldsCounters [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 13 00 00 [13:00:55]Write to MH i2c: E2 08 00 BE 77 80 13 00 00 00 00 00 00 B1 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 62 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 62 00 BE 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [13:00:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:55]wFMCommunicate OK [13:00:55]SAM_PROTO_GetFieldsCounters done [13:00:55]requested_item shift.num is exist - process it [13:00:55]requested_item shift.opened is exist - process it [13:00:55]req_shift_opened [13:00:55]FM_GetShiftState [13:00:55]SAM_PROTO_GetShiftState [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 13 01 00 [13:00:55]Write to MH i2c: E2 08 00 BF 77 80 13 01 00 00 00 00 00 B3 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 BF 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F4 [13:00:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:00:55]wFMCommunicate OK [13:00:55]SAM_PROTO_GetShiftState done [13:00:55]FM_GetShiftState done [13:00:55]req_shift_opened done [13:00:55]requested_item shift.open_date is exist - process it [13:00:55]req_shift_open_date [13:00:55]req_shift_open_date done [13:00:55]produce_requested_data done [13:00:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192162,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:00:55]process_action_free close_receipt [13:00:55]json_value_free [13:00:55]json_value_free done [13:00:55]process_json_proto returns [13:00:55]Send response to host [13:00:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192162,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:00:55]free response buf [13:00:55]execute_script done [13:00:55]execute_script returns [13:00:55]free content buf [13:00:55]Sock 6.Close socket [13:00:55]Sock 6.Thread stoped [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:54]accept exits with 5 [13:02:54]New connection [13:02:54]New thread 3066817892 created [13:02:54]Thread 3066961252 joined [13:02:54]Waiting for new connection... [13:02:54] Sock 5.Parse request [13:02:54]Sock 5.Check first char [13:02:54]Sock 5.First char is OK [13:02:54]request: POST /json_proto HTTP/1.0 [13:02:54]Method: POST [13:02:54]URL: /json_proto [13:02:54]Method is POST - this is cgi request [13:02:54]url: /json_proto [13:02:54]query_string will be loaded in cgi processing [13:02:54]execute_cgi json_proto POST (null) [13:02:54]execute_cgi path=json_proto method=POST [13:02:54]POST find Content-Length [13:02:54]Host: 172.17.63.131:8080 [13:02:54]Content-Length: 804 [13:02:54]Content-Type: application/json [13:02:54] [13:02:54]POST finish read [13:02:54]Found Content-Length = 804 [13:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:54]execute_script... [13:02: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)31476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:54]POST & json_proto [13:02:54]process_json_proto [13:02:54]json parsed OK: [13:02:54]protocol is kg_v1.0 [13:02:54]action value=close_receipt [13:02:54]process_action close_receipt [13:02:54]cmd_close_receipt [13:02:54]MH_GetDate [13:02:54]Write to MH i2c: F0 00 00 C0 77 26 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 09 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: F0 09 00 C0 77 00 12 3A 1E 67 22 05 6E 64 F9 [13:02:54]GetLastDocTimeStamp 1730034071 [13:02:54]current date 1730034194 [13:02:54]FM_GetShiftState [13:02:54]SAM_PROTO_GetShiftState [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 13 01 00 [13:02:54]Write to MH i2c: E2 08 00 C1 77 80 13 01 00 00 00 00 00 B5 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0E 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 0E 00 C1 77 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F6 [13:02:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:02:54]wFMCommunicate OK [13:02:54]SAM_PROTO_GetShiftState done [13:02:54]FM_GetShiftState done [13:02:54]opened in 1729989159 [13:02:54]opened+sec_in_day 1730075559 [13:02:54]quantity*price = 50041 [13:02:54]sum+1 = 50042 [13:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 195 27.10.2024 13:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192163 ФПД: 168906348389900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192163&fm=168906348389900&tin=02508201610067®Number=0000000000091776&sum=50041 [13:02:55]StoreToDocumentArchive [13:02:55]shift 542 fd 192163 [13:02:55]save to /storage/0542/doc_00192163 [13:02:55]save last doc name /storage/0542/doc_00192163 to /storage/kkm_last_doc_name [13:02:55]save OK [13:02:55]Clear old archive folders... [13:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:55]tlvbuf is 01748FF0 [13:02:55]SAM_PROTO_ClearQueue [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 09 00 00 [13:02:55]Write to MH i2c: E2 08 00 CE 77 80 09 00 00 00 00 00 00 B7 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 CE 77 00 90 00 B9 [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_ClearQueue done [13:02:55]KKMCreateOFDPacket [13:02:55]OFDProtocolAddRootSTLVToBuf [13:02:55]FM_MakeSignedData [13:02:55]FM_MakeSignedData [13:02:55]SAM_PROTO_SignData [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 01 02 [13:02:55]Write to MH i2c: E2 08 00 CF 77 80 0D 01 02 00 00 00 00 BF [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 CF 77 00 90 00 BA [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=255 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 12 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EE 02 00 35 04 06 00 99 [13:02:55]Write to MH i2c: E2 02 01 D0 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 12 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EE 02 00 35 04 06 00 99 00 00 85 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 D0 77 00 90 00 BB [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=10 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 02 02 05 9E 92 E5 66 0C [13:02:55]Write to MH i2c: E2 0D 00 D1 77 80 0D 02 02 05 00 9E 92 E5 66 0C 00 00 53 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 03 00 D1 77 00 90 00 BC [13:02:55]RAPDU: 90 00 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 0D 03 02 [13:02:55]Write to MH i2c: E2 08 00 D2 77 80 0D 03 02 00 00 00 00 C4 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0B 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0B 00 D2 77 00 AE 8D D1 E7 2D E1 64 06 90 00 30 [13:02:55]RAPDU: AE 8D D1 E7 2D E1 64 06 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_SignData done [13:02:55]FM_MakeSignedData done [13:02:55]CreateOFDProtocolMessage [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 11 00 00 [13:02:55]Write to MH i2c: E2 08 00 D3 77 80 11 00 00 00 00 00 00 C4 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 D3 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [13:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:55]wFMCommunicate OK [13:02:55]CreateOFDProtocolMessage done [13:02:55]OFDSenderStorePacket 192163 [13:02:55]StoreOFDPacket docnum=192163 [13:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 12 07 01 15 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 12 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EE 02 00 35 04 06 00 99 9E 92 E5 66 0C AE 8D D1 E7 2D E1 64 06 [13:02:55]CheckFolder [13:02:55]dirname=/storage/ofd_packets [13:02:55]CheckFolder done [13:02:55]ProducePacketName [13:02:55]name=ofd_packets/00192163 [13:02:55]NVStorageSaveData ofd_packets/00192163 [13:02:55]File name is /storage/ofd_packets/00192163 [13:02:55]Write 301 bytes [13:02:55]NVStorageSaveData done [13:02:55]OFDSenderStorePacket done [13:02:55]KKMCreateOFDPacket done [13:02:55]NVStorageSaveData kkm_last_timestamp [13:02:55]File name is /storage/kkm_last_timestamp [13:02:55]Write 4 bytes [13:02:55]NVStorageSaveData done [13:02:55]ExternCall_PrintAddStr [13:02:55]wPrintStart [13:02:55]Write to MH i2c: 01 00 00 D4 77 4B [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: 01 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: 01 07 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: 01 07 00 D4 77 00 00 00 00 00 FF 0F 60 [13:02:55]RasterBufferAndPrint [13:02:55]line Счет N : (1)31476 [13:02:55]line ИНН: 02508201610067 [13:02:55]line Контрольно-Кассовый Чек [13:02:55]line ПРОДАЖА [13:02:55]line ТРК (МРК, ГНК) : 21 [13:02:55]line Товар: 2710124130 [13:02:55]line Аи-92-К-5 [13:02:55]line 7.480 * 66.90 [13:02:55]line = 500.41 [13:02:55]line НДС 12% НСП 1% [13:02:55]line > о реализуемом товаре [13:02:55]line ИТОГО: 500.41 [13:02:55]line НСП 1% : 4.43 [13:02:55]line НДС 12% : 53.14 [13:02:55]line Наличными: 0.00 [13:02:55]line Безнал.: 500.41 [13:02:55]line Место: АЗС № 170 "Партнер Нефть" [13:02:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:02:55]line СНО: Общий режим [13:02:55]line Чек 195 27.10.2024 13:03 [13:02:55]line Смена: 542 ФФД: 1.0 [13:02:55]line ЗНМ: 0300000110 [13:02:55]line РНМ: 0000000000091776 [13:02:55]line Версия ККМ: 001 [13:02:55]line Платежная система: О! деньги [13:02:55]line ФМ: 0000000000871754 [13:02:55]line ФД: 192163 [13:02:55]line ФПД: 168906348389900 [13:02:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192163&fm=168906348389900&tin=02508201610067®Number=0000000000091776&sum=50041 [13:02:56]written 0, free lines is 4095 [13:02:56]OFD Sender: Processing packet 192163 [packets to send 75, broken 74] [13:02:56]ProducePacketName [13:02:56]name=ofd_packets/00192163 [13:02:56]OFD Sender: To server: pG, [13:02:56]CommunicateWithHost lk.salyk.kg:30040 [13:02:56]ConnectInit lk.salyk.kg [13:02:56]Connected sock=8 [13:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 12 07 01 15 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 12 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EE 02 00 35 04 06 00 99 9E 92 E5 66 0C AE 8D D1 E7 2D E1 64 06 [13:02:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2B 16 47 00 DC 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EE 02 00 F4 03 04 00 D9 DE 1D 67 B6 04 01 00 00 DA 37 90 63 F0 26 CF 78 [13:02:56]CommunicateWithHost err = 0 [13:02:56]CheckOFDResponse [13:02:56]1017 (14) - 77093643461234 [13:02:56]1041 (16) - 0000000000871754 [13:02:56]1040 (4) - 192163 [13:02:56]1012 (4) - 27.10.2024 06:34 [13:02:56]1206 (1) - 0 [13:02:56]OFD Sender: Remove packet 192163 [13:02:56]ProducePacketName [13:02:56]name=ofd_packets/00192163 [13:02:56]NVStorageDeleteData [13:02:56]Write to MH i2c: 01 00 00 FE 77 75 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 FE 77 00 00 00 00 00 B9 0C 41 [13:02:56]RasterBufferAndPrint [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]line [13:02:56]written 0, free lines is 3262 [13:02:56]MH_Cut [13:02:56]Write to MH i2c: D1 01 00 05 78 01 4F [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 01 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: D1 01 00 05 78 00 4E [13:02:56]Write to MH i2c: 01 00 00 06 78 7E [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]OFD Sender: No OFD packet to send [13:02:57]*** Cut start [13:02:57]*** Partial cut [13:02:57]*** CUTSNS_PIN = 1 [13:02:57]*** CUTSNS_PIN = 0 [13:02:57]*** Brake cut motor [13:02:58]Read from MH i2c: 01 [13:02:58]MH_I2C_Read... [13:02:58]*** Stop cut motor [13:02:58]*** Cut end [13:02:58]Read from MH i2c: 01 07 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: 01 07 00 06 78 00 00 00 00 00 FF 0F 93 [13:02:58]process_action close_receipt done [13:02:58]requested_data is exist [13:02:58]produce_requested_data [13:02:58]requested_item fm.sn is exist - process it [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 11 00 00 [13:02:58]Write to MH i2c: E2 08 00 07 78 80 11 00 00 00 00 00 00 F9 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 17 00 07 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [13:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:58]wFMCommunicate OK [13:02:58]requested_item fd.num is exist - process it [13:02:58]SAM_PROTO_GetFieldsCounters [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 00 00 [13:02:58]Write to MH i2c: E2 08 00 08 78 80 13 00 00 00 00 00 00 FC [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 62 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 62 00 08 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [13:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetFieldsCounters done [13:02:58]requested_item shift.num is exist - process it [13:02:58]requested_item shift.opened is exist - process it [13:02:58]req_shift_opened [13:02:58]FM_GetShiftState [13:02:58]SAM_PROTO_GetShiftState [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 01 00 [13:02:58]Write to MH i2c: E2 08 00 09 78 80 13 01 00 00 00 00 00 FE [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 09 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3F [13:02:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetShiftState done [13:02:58]FM_GetShiftState done [13:02:58]req_shift_opened done [13:02:58]requested_item shift.open_date is exist - process it [13:02:58]req_shift_open_date [13:02:58]req_shift_open_date done [13:02:58]produce_requested_data done [13:02:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192163,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:02:58]process_action_free close_receipt [13:02:58]json_value_free [13:02:58]json_value_free done [13:02:58]process_json_proto returns [13:02:58]Send response to host [13:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192163,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:02:58]free response buf [13:02:58]execute_script done [13:02:58]execute_script returns [13:02:58]free content buf [13:02:58]Sock 5.Close socket [13:02:58]Sock 5.Thread stoped [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:17]accept exits with 6 [13:04:17]New connection [13:04:17]New thread 3066961252 created [13:04:17]Thread 3066817892 joined [13:04:17]Waiting for new connection... [13:04:17] Sock 6.Parse request [13:04:17]Sock 6.Check first char [13:04:17]Sock 6.First char is OK [13:04:17]request: POST /json_proto HTTP/1.0 [13:04:17]Method: POST [13:04:17]URL: /json_proto [13:04:17]Method is POST - this is cgi request [13:04:17]url: /json_proto [13:04:17]query_string will be loaded in cgi processing [13:04:17]execute_cgi json_proto POST (null) [13:04:17]execute_cgi path=json_proto method=POST [13:04:17]POST find Content-Length [13:04:17]Host: 172.17.63.131:8080 [13:04:17]Content-Length: 865 [13:04:17]Content-Type: application/json [13:04:17] [13:04:17]POST finish read [13:04:17]Found Content-Length = 865 [13:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:17]execute_script... [13:04:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:17]POST & json_proto [13:04:17]process_json_proto [13:04:17]json parsed OK: [13:04:17]protocol is kg_v1.0 [13:04:17]action value=close_receipt [13:04:17]process_action close_receipt [13:04:17]cmd_close_receipt [13:04:17]MH_GetDate [13:04:17]Write to MH i2c: F0 00 00 0A 78 71 [13:04:17]Write i2c OK [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: F0 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: F0 09 00 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: F0 09 00 0A 78 00 66 3A 1E 67 22 05 6E 64 98 [13:04:17]GetLastDocTimeStamp 1730034194 [13:04:17]current date 1730034278 [13:04:17]FM_GetShiftState [13:04:17]SAM_PROTO_GetShiftState [13:04:17]wFMCommunicate request_size=4 [13:04:17]MH_SAM_APDU [13:04:17]CAPDU: 80 13 01 00 [13:04:17]Write to MH i2c: E2 08 00 0B 78 80 13 01 00 00 00 00 00 00 [13:04:17]Write i2c OK [13:04:17]MH_I2C_Read... [13:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:17]Read from MH i2c: E2 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: E2 0E 00 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: E2 0E 00 0B 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 41 [13:04:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:04:17]wFMCommunicate OK [13:04:17]SAM_PROTO_GetShiftState done [13:04:17]FM_GetShiftState done [13:04:17]opened in 1729989159 [13:04:17]opened+sec_in_day 1730075559 [13:04:17]quantity*price = 200031 [13:04:17]sum+1 = 200032 [13:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 196 27.10.2024 13:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192164 ФПД: 222481104305892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192164&fm=222481104305892&tin=02508201610067®Number=0000000000091776&sum=200031 [13:04:18]StoreToDocumentArchive [13:04:18]shift 542 fd 192164 [13:04:18]save to /storage/0542/doc_00192164 [13:04:18]save last doc name /storage/0542/doc_00192164 to /storage/kkm_last_doc_name [13:04:18]save OK [13:04:18]Clear old archive folders... [13:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:19]tlvbuf is 01B0C980 [13:04:19]SAM_PROTO_ClearQueue [13:04:19]wFMCommunicate request_size=4 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 09 00 00 [13:04:19]Write to MH i2c: E2 08 00 18 78 80 09 00 00 00 00 00 00 02 [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 18 78 00 90 00 04 [13:04:19]RAPDU: 90 00 [13:04:19]wFMCommunicate OK [13:04:19]SAM_PROTO_ClearQueue done [13:04:19]KKMCreateOFDPacket [13:04:19]OFDProtocolAddRootSTLVToBuf [13:04:19]FM_MakeSignedData [13:04:19]FM_MakeSignedData [13:04:19]SAM_PROTO_SignData [13:04:19]wFMCommunicate request_size=4 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 0D 01 02 [13:04:19]Write to MH i2c: E2 08 00 19 78 80 0D 01 02 00 00 00 00 0A [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 19 78 00 90 00 05 [13:04:19]RAPDU: 90 00 [13:04:19]wFMCommunicate OK [13:04:19]wFMCommunicate request_size=255 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EE 02 00 35 04 06 00 CA [13:04:19]Write to MH i2c: E2 02 01 1A 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EE 02 00 35 04 06 00 CA 00 00 85 [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 1A 78 00 90 00 06 [13:04:19]RAPDU: 90 00 [13:04:19]wFMCommunicate OK [13:04:19]wFMCommunicate request_size=10 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 0D 02 02 05 58 6B 30 FE E4 [13:04:19]Write to MH i2c: E2 0D 00 1B 78 80 0D 02 02 05 00 58 6B 30 FE E4 00 00 EC [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 03 00 1B 78 00 90 00 07 [13:04:19]RAPDU: 90 00 [13:04:19]wFMCommunicate OK [13:04:19]wFMCommunicate request_size=4 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 0D 03 02 [13:04:19]Write to MH i2c: E2 08 00 1C 78 80 0D 03 02 00 00 00 00 0F [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 0B 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 0B 00 1C 78 00 B3 39 EB 54 33 ED AF FB 90 00 05 [13:04:19]RAPDU: B3 39 EB 54 33 ED AF FB 90 00 [13:04:19]wFMCommunicate OK [13:04:19]SAM_PROTO_SignData done [13:04:19]FM_MakeSignedData done [13:04:19]CreateOFDProtocolMessage [13:04:19]wFMCommunicate request_size=4 [13:04:19]MH_SAM_APDU [13:04:19]CAPDU: 80 11 00 00 [13:04:19]Write to MH i2c: E2 08 00 1D 78 80 11 00 00 00 00 00 00 0F [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:19]Read from MH i2c: E2 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 17 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: E2 17 00 1D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [13:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:19]wFMCommunicate OK [13:04:19]CreateOFDProtocolMessage done [13:04:19]OFDSenderStorePacket 192164 [13:04:19]StoreOFDPacket docnum=192164 [13:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 52 07 01 24 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EE 02 00 35 04 06 00 CA 58 6B 30 FE E4 B3 39 EB 54 33 ED AF FB [13:04:19]CheckFolder [13:04:19]dirname=/storage/ofd_packets [13:04:19]CheckFolder done [13:04:19]ProducePacketName [13:04:19]name=ofd_packets/00192164 [13:04:19]NVStorageSaveData ofd_packets/00192164 [13:04:19]File name is /storage/ofd_packets/00192164 [13:04:19]Write 301 bytes [13:04:19]NVStorageSaveData done [13:04:19]OFDSenderStorePacket done [13:04:19]KKMCreateOFDPacket done [13:04:19]NVStorageSaveData kkm_last_timestamp [13:04:19]File name is /storage/kkm_last_timestamp [13:04:19]Write 4 bytes [13:04:19]NVStorageSaveData done [13:04:19]ExternCall_PrintAddStr [13:04:19]wPrintStart [13:04:19]Write to MH i2c: 01 00 00 1E 78 96 [13:04:19]Write i2c OK [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: 01 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: 01 07 00 [13:04:19]MH_I2C_Read... [13:04:19]Read from MH i2c: 01 07 00 1E 78 00 00 00 00 00 FF 0F AB [13:04:19]RasterBufferAndPrint [13:04:19]line Счет N : (1)31477 [13:04:19]line ИНН: 02508201610067 [13:04:19]line Контрольно-Кассовый Чек [13:04:19]line ПРОДАЖА [13:04:19]line ТРК (МРК, ГНК) : 12 [13:04:19]line Товар: 2710124130 [13:04:19]line Аи-92-К-5 [13:04:19]line 29.900 * 66.90 [13:04:19]line = 2000.31 [13:04:19]line НДС 12% НСП 1% [13:04:19]line > о реализуемом товаре [13:04:19]line ИТОГО: 2000.31 [13:04:19]line НСП 1% : 17.70 [13:04:19]line НДС 12% : 212.42 [13:04:19]line Наличными: 0.00 [13:04:19]line Безнал.: 2000.31 [13:04:19]line Место: АЗС № 170 "Партнер Нефть" [13:04:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:04:19]line СНО: Общий режим [13:04:19]line Чек 196 27.10.2024 13:04 [13:04:19]line Смена: 542 ФФД: 1.0 [13:04:19]line ЗНМ: 0300000110 [13:04:19]line РНМ: 0000000000091776 [13:04:19]line Версия ККМ: 001 [13:04:19]line Платежная система: Кыргызкоммерцбанк [13:04:19]line ФМ: 0000000000871754 [13:04:19]line ФД: 192164 [13:04:19]line ФПД: 222481104305892 [13:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192164&fm=222481104305892&tin=02508201610067®Number=0000000000091776&sum=200031 [13:04:19]OFD Sender: Processing packet 192164 [packets to send 75, broken 74] [13:04:19]ProducePacketName [13:04:19]name=ofd_packets/00192164 [13:04:19]OFD Sender: To server: pG, [13:04:19]CommunicateWithHost lk.salyk.kg:30040 [13:04:19]ConnectInit lk.salyk.kg [13:04:19]written 0, free lines is 4095 [13:04:19]Connected sock=9 [13:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 52 07 01 24 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EE 02 00 35 04 06 00 CA 58 6B 30 FE E4 B3 39 EB 54 33 ED AF FB [13:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AA 98 47 00 4C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EE 02 00 F4 03 04 00 2D DF 1D 67 B6 04 01 00 00 59 E2 4F 99 CA 96 31 88 [13:04:20]CommunicateWithHost err = 0 [13:04:20]CheckOFDResponse [13:04:20]1017 (14) - 77093643461234 [13:04:20]1041 (16) - 0000000000871754 [13:04:20]1040 (4) - 192164 [13:04:20]1012 (4) - 27.10.2024 06:35 [13:04:20]1206 (1) - 0 [13:04:20]OFD Sender: Remove packet 192164 [13:04:20]ProducePacketName [13:04:20]name=ofd_packets/00192164 [13:04:20]NVStorageDeleteData [13:04:20]Write to MH i2c: 01 00 00 48 78 C0 [13:04:20]Write i2c OK [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: 01 [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: 01 07 00 [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: 01 07 00 48 78 00 00 00 00 00 C4 0C 97 [13:04:20]RasterBufferAndPrint [13:04:20]line [13:04:20]line [13:04:20]line [13:04:20]line [13:04:20]line [13:04:20]written 0, free lines is 3277 [13:04:20]MH_Cut [13:04:20]Write to MH i2c: D1 01 00 4F 78 01 99 [13:04:20]Write i2c OK [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: D1 [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: D1 01 00 [13:04:20]MH_I2C_Read... [13:04:20]Read from MH i2c: D1 01 00 4F 78 00 98 [13:04:20]Write to MH i2c: 01 00 00 50 78 C8 [13:04:20]Write i2c OK [13:04:20]MH_I2C_Read... [13:04:20]OFD Sender: No OFD packet to send [13:04:21]*** Cut start [13:04:21]*** Partial cut [13:04:21]*** CUTSNS_PIN = 1 [13:04:21]*** CUTSNS_PIN = 0 [13:04:21]*** Brake cut motor [13:04:21]Read from MH i2c: 01 [13:04:21]MH_I2C_Read... [13:04:21]*** Stop cut motor [13:04:21]*** Cut end [13:04:21]Read from MH i2c: 01 07 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: 01 07 00 50 78 00 00 00 00 00 FF 0F DD [13:04:21]process_action close_receipt done [13:04:21]requested_data is exist [13:04:21]produce_requested_data [13:04:21]requested_item fm.sn is exist - process it [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 11 00 00 [13:04:21]Write to MH i2c: E2 08 00 51 78 80 11 00 00 00 00 00 00 43 [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:21]Read from MH i2c: E2 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 17 00 [13:04:21]MH_I2C_Read... [13:04:21]Read from MH i2c: E2 17 00 51 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [13:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:21]wFMCommunicate OK [13:04:21]requested_item fd.num is exist - process it [13:04:21]SAM_PROTO_GetFieldsCounters [13:04:21]wFMCommunicate request_size=4 [13:04:21]MH_SAM_APDU [13:04:21]CAPDU: 80 13 00 00 [13:04:21]Write to MH i2c: E2 08 00 52 78 80 13 00 00 00 00 00 00 46 [13:04:21]Write i2c OK [13:04:21]MH_I2C_Read... [13:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:22]Read from MH i2c: E2 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: E2 62 00 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: E2 62 00 52 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [13:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:22]wFMCommunicate OK [13:04:22]SAM_PROTO_GetFieldsCounters done [13:04:22]requested_item shift.num is exist - process it [13:04:22]requested_item shift.opened is exist - process it [13:04:22]req_shift_opened [13:04:22]FM_GetShiftState [13:04:22]SAM_PROTO_GetShiftState [13:04:22]wFMCommunicate request_size=4 [13:04:22]MH_SAM_APDU [13:04:22]CAPDU: 80 13 01 00 [13:04:22]Write to MH i2c: E2 08 00 53 78 80 13 01 00 00 00 00 00 48 [13:04:22]Write i2c OK [13:04:22]MH_I2C_Read... [13:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:22]Read from MH i2c: E2 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: E2 0E 00 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: E2 0E 00 53 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 89 [13:04:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:04:22]wFMCommunicate OK [13:04:22]SAM_PROTO_GetShiftState done [13:04:22]FM_GetShiftState done [13:04:22]req_shift_opened done [13:04:22]requested_item shift.open_date is exist - process it [13:04:22]req_shift_open_date [13:04:22]req_shift_open_date done [13:04:22]produce_requested_data done [13:04:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192164,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:04:22]process_action_free close_receipt [13:04:22]json_value_free [13:04:22]json_value_free done [13:04:22]process_json_proto returns [13:04:22]Send response to host [13:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192164,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:04:22]free response buf [13:04:22]execute_script done [13:04:22]execute_script returns [13:04:22]free content buf [13:04:22]Sock 6.Close socket [13:04:22]Sock 6.Thread stoped [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:52]accept exits with 8 [13:05:52]New connection [13:05:52]New thread 3066817892 created [13:05:52]Thread 3066961252 joined [13:05:52]Waiting for new connection... [13:05:52] Sock 8.Parse request [13:05:52]Sock 8.Check first char [13:05:52]Sock 8.First char is OK [13:05:52]request: POST /json_proto HTTP/1.0 [13:05:52]Method: POST [13:05:52]URL: /json_proto [13:05:52]Method is POST - this is cgi request [13:05:52]url: /json_proto [13:05:52]query_string will be loaded in cgi processing [13:05:52]execute_cgi json_proto POST (null) [13:05:52]execute_cgi path=json_proto method=POST [13:05:52]POST find Content-Length [13:05:52]Host: 172.17.63.131:8080 [13:05:52]Content-Length: 681 [13:05:52]Content-Type: application/json [13:05:52] [13:05:52]POST finish read [13:05:52]Found Content-Length = 681 [13:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:52]execute_script... [13:05:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:52]POST & json_proto [13:05:52]process_json_proto [13:05:52]json parsed OK: [13:05:52]protocol is kg_v1.0 [13:05:52]action value=close_receipt [13:05:52]process_action close_receipt [13:05:52]cmd_close_receipt [13:05:52]MH_GetDate [13:05:52]Write to MH i2c: F0 00 00 54 78 BB [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: F0 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: F0 09 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: F0 09 00 54 78 00 C4 3A 1E 67 22 05 6E 64 40 [13:05:52]GetLastDocTimeStamp 1730034278 [13:05:52]current date 1730034372 [13:05:52]FM_GetShiftState [13:05:52]SAM_PROTO_GetShiftState [13:05:52]wFMCommunicate request_size=4 [13:05:52]MH_SAM_APDU [13:05:52]CAPDU: 80 13 01 00 [13:05:52]Write to MH i2c: E2 08 00 55 78 80 13 01 00 00 00 00 00 4A [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:52]Read from MH i2c: E2 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 0E 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 0E 00 55 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8B [13:05:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:05:52]wFMCommunicate OK [13:05:52]SAM_PROTO_GetShiftState done [13:05:52]FM_GetShiftState done [13:05:52]opened in 1729989159 [13:05:52]opened+sec_in_day 1730075559 [13:05:52]quantity*price = 130053 [13:05:52]sum+1 = 130055 [13:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 197 27.10.2024 13:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192165 ФПД: 95874638366106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130612&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192165&fm=95874638366106&tin=02508201610067®Number=0000000000091776&sum=130000 [13:05:53]StoreToDocumentArchive [13:05:53]shift 542 fd 192165 [13:05:53]save to /storage/0542/doc_00192165 [13:05:53]save last doc name /storage/0542/doc_00192165 to /storage/kkm_last_doc_name [13:05:53]save OK [13:05:53]Clear old archive folders... [13:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:53]tlvbuf is 018CAE70 [13:05:53]SAM_PROTO_ClearQueue [13:05:53]wFMCommunicate request_size=4 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 09 00 00 [13:05:53]Write to MH i2c: E2 08 00 62 78 80 09 00 00 00 00 00 00 4C [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 62 78 00 90 00 4E [13:05:53]RAPDU: 90 00 [13:05:53]wFMCommunicate OK [13:05:53]SAM_PROTO_ClearQueue done [13:05:53]KKMCreateOFDPacket [13:05:53]OFDProtocolAddRootSTLVToBuf [13:05:53]FM_MakeSignedData [13:05:53]FM_MakeSignedData [13:05:53]SAM_PROTO_SignData [13:05:53]wFMCommunicate request_size=4 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 0D 01 02 [13:05:53]Write to MH i2c: E2 08 00 63 78 80 0D 01 02 00 00 00 00 54 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 63 78 00 90 00 4F [13:05:53]RAPDU: 90 00 [13:05:53]wFMCommunicate OK [13:05:53]wFMCommunicate request_size=255 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EE 02 00 35 04 06 00 57 [13:05:53]Write to MH i2c: E2 02 01 64 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EE 02 00 35 04 06 00 57 00 00 74 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 64 78 00 90 00 50 [13:05:53]RAPDU: 90 00 [13:05:53]wFMCommunicate OK [13:05:53]wFMCommunicate request_size=10 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 0D 02 02 05 32 8D C3 45 9A [13:05:53]Write to MH i2c: E2 0D 00 65 78 80 0D 02 02 05 00 32 8D C3 45 9A 00 00 C2 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 03 00 65 78 00 90 00 51 [13:05:53]RAPDU: 90 00 [13:05:53]wFMCommunicate OK [13:05:53]wFMCommunicate request_size=4 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 0D 03 02 [13:05:53]Write to MH i2c: E2 08 00 66 78 80 0D 03 02 00 00 00 00 59 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 0B 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 0B 00 66 78 00 44 53 E6 60 77 99 48 29 90 00 B8 [13:05:53]RAPDU: 44 53 E6 60 77 99 48 29 90 00 [13:05:53]wFMCommunicate OK [13:05:53]SAM_PROTO_SignData done [13:05:53]FM_MakeSignedData done [13:05:53]CreateOFDProtocolMessage [13:05:53]wFMCommunicate request_size=4 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 11 00 00 [13:05:53]Write to MH i2c: E2 08 00 67 78 80 11 00 00 00 00 00 00 59 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 17 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 17 00 67 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [13:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:05:53]wFMCommunicate OK [13:05:53]CreateOFDProtocolMessage done [13:05:53]OFDSenderStorePacket 192165 [13:05:53]StoreOFDPacket docnum=192165 [13:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD E3 07 01 B0 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EE 02 00 35 04 06 00 57 32 8D C3 45 9A 44 53 E6 60 77 99 48 29 [13:05:53]CheckFolder [13:05:53]dirname=/storage/ofd_packets [13:05:53]CheckFolder done [13:05:53]ProducePacketName [13:05:53]name=ofd_packets/00192165 [13:05:53]NVStorageSaveData ofd_packets/00192165 [13:05:53]File name is /storage/ofd_packets/00192165 [13:05:53]Write 301 bytes [13:05:53]NVStorageSaveData done [13:05:53]OFDSenderStorePacket done [13:05:53]KKMCreateOFDPacket done [13:05:53]NVStorageSaveData kkm_last_timestamp [13:05:53]File name is /storage/kkm_last_timestamp [13:05:53]Write 4 bytes [13:05:53]NVStorageSaveData done [13:05:53]ExternCall_PrintAddStr [13:05:53]wPrintStart [13:05:53]Write to MH i2c: 01 00 00 68 78 E0 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 07 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 07 00 68 78 00 00 00 00 00 FF 0F F5 [13:05:53]RasterBufferAndPrint [13:05:53]line Счет N : (1)31478 [13:05:53]line ИНН: 02508201610067 [13:05:53]line Контрольно-Кассовый Чек [13:05:53]line ПРОДАЖА [13:05:53]line ТРК (МРК, ГНК) : 12 [13:05:53]line Товар: 2710124130 [13:05:53]line Аи-92-К-5 [13:05:53]line 19.440 * 66.90 [13:05:53]line = 1300.54 [13:05:53]line НДС 12% НСП 1% [13:05:53]line > о реализуемом товаре [13:05:53]line ОКРУГЛЕНИЕ: -0.54 [13:05:53]line ИТОГО: 1300.00 [13:05:53]line Внесено: 1300.00 [13:05:53]line СДАЧА: 0.00 [13:05:53]line НСП 1% : 11.51 [13:05:53]line НДС 12% : 138.11 [13:05:53]line Наличными: 1300.00 [13:05:53]line Безнал.: 0.00 [13:05:53]line Место: АЗС № 170 "Партнер Нефть" [13:05:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:05:53]line СНО: Общий режим [13:05:53]line Чек 197 27.10.2024 13:06 [13:05:53]line Смена: 542 ФФД: 1.0 [13:05:53]line ЗНМ: 0300000110 [13:05:53]line РНМ: 0000000000091776 [13:05:53]line Версия ККМ: 001 [13:05:53]line ФМ: 0000000000871754 [13:05:53]line ФД: 192165 [13:05:53]line ФПД: 95874638366106 [13:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130612&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192165&fm=95874638366106&tin=02508201610067®Number=0000000000091776&sum=130000 [13:05:53]OFD Sender: Processing packet 192165 [packets to send 75, broken 74] [13:05:53]ProducePacketName [13:05:53]name=ofd_packets/00192165 [13:05:53]OFD Sender: To server: pG, [13:05:53]CommunicateWithHost lk.salyk.kg:30040 [13:05:53]ConnectInit lk.salyk.kg [13:05:53]written 0, free lines is 4095 [13:05:53]Connected sock=9 [13:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD E3 07 01 B0 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C4 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EE 02 00 35 04 06 00 57 32 8D C3 45 9A 44 53 E6 60 77 99 48 29 [13:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 61 47 00 46 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EE 02 00 F4 03 04 00 8B DF 1D 67 B6 04 01 00 00 F5 BA BB 8C D9 BF CC 1C [13:05:54]CommunicateWithHost err = 0 [13:05:54]CheckOFDResponse [13:05:54]1017 (14) - 77093643461234 [13:05:54]1041 (16) - 0000000000871754 [13:05:54]1040 (4) - 192165 [13:05:54]1012 (4) - 27.10.2024 06:36 [13:05:54]1206 (1) - 0 [13:05:54]OFD Sender: Remove packet 192165 [13:05:54]ProducePacketName [13:05:54]name=ofd_packets/00192165 [13:05:54]NVStorageDeleteData [13:05:54]Write to MH i2c: 01 00 00 93 78 0B [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: 01 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: 01 07 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: 01 07 00 93 78 00 00 00 00 00 B5 0C D3 [13:05:54]RasterBufferAndPrint [13:05:54]line [13:05:54]line [13:05:54]line [13:05:54]line [13:05:54]line [13:05:54]written 0, free lines is 3264 [13:05:54]MH_Cut [13:05:54]Write to MH i2c: D1 01 00 9A 78 01 E4 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: D1 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: D1 01 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: D1 01 00 9A 78 00 E3 [13:05:54]Write to MH i2c: 01 00 00 9B 78 13 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]OFD Sender: No OFD packet to send [13:05:55]*** Cut start [13:05:55]*** Partial cut [13:05:55]*** CUTSNS_PIN = 1 [13:05:55]*** CUTSNS_PIN = 0 [13:05:55]*** Brake cut motor [13:05:55]Read from MH i2c: 01 [13:05:55]MH_I2C_Read... [13:05:55]*** Stop cut motor [13:05:55]*** Cut end [13:05:55]Read from MH i2c: 01 07 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 07 00 9B 78 00 00 00 00 00 FF 0F 28 [13:05:55]process_action close_receipt done [13:05:55]requested_data is exist [13:05:55]produce_requested_data [13:05:55]requested_item fm.sn is exist - process it [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 11 00 00 [13:05:55]Write to MH i2c: E2 08 00 9C 78 80 11 00 00 00 00 00 00 8E [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 17 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 17 00 9C 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [13:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:05:55]wFMCommunicate OK [13:05:55]requested_item fd.num is exist - process it [13:05:55]SAM_PROTO_GetFieldsCounters [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 13 00 00 [13:05:55]Write to MH i2c: E2 08 00 9D 78 80 13 00 00 00 00 00 00 91 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 62 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 62 00 9D 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_GetFieldsCounters done [13:05:56]requested_item shift.num is exist - process it [13:05:56]requested_item shift.opened is exist - process it [13:05:56]req_shift_opened [13:05:56]FM_GetShiftState [13:05:56]SAM_PROTO_GetShiftState [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 13 01 00 [13:05:56]Write to MH i2c: E2 08 00 9E 78 80 13 01 00 00 00 00 00 93 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:56]Read from MH i2c: E2 0E 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 0E 00 9E 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D4 [13:05:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_GetShiftState done [13:05:56]FM_GetShiftState done [13:05:56]req_shift_opened done [13:05:56]requested_item shift.open_date is exist - process it [13:05:56]req_shift_open_date [13:05:56]req_shift_open_date done [13:05:56]produce_requested_data done [13:05:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192165,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:05:56]process_action_free close_receipt [13:05:56]json_value_free [13:05:56]json_value_free done [13:05:56]process_json_proto returns [13:05:56]Send response to host [13:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192165,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:05:56]free response buf [13:05:56]execute_script done [13:05:56]execute_script returns [13:05:56]free content buf [13:05:56]Sock 8.Close socket [13:05:56]Sock 8.Thread stoped [13:05:58]accept exits with 6 [13:05:58]New connection [13:05:58]New thread 3066961252 created [13:05:58]Thread 3066817892 joined [13:05:58]Waiting for new connection... [13:05:58] Sock 6.Parse request [13:05:58]Sock 6.Check first char [13:05:58]Sock 6.First char is OK [13:05:58]request: POST /json_proto HTTP/1.0 [13:05:58]Method: POST [13:05:58]URL: /json_proto [13:05:58]Method is POST - this is cgi request [13:05:58]url: /json_proto [13:05:58]query_string will be loaded in cgi processing [13:05:58]execute_cgi json_proto POST (null) [13:05:58]execute_cgi path=json_proto method=POST [13:05:58]POST find Content-Length [13:05:58]Host: 172.17.63.131:8080 [13:05:58]Content-Length: 676 [13:05:58]Content-Type: application/json [13:05:58] [13:05:58]POST finish read [13:05:58]Found Content-Length = 676 [13:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:58]execute_script... [13:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:58]POST & json_proto [13:05:58]process_json_proto [13:05:58]json parsed OK: [13:05:58]protocol is kg_v1.0 [13:05:58]action value=close_receipt [13:05:58]process_action close_receipt [13:05:58]cmd_close_receipt [13:05:58]MH_GetDate [13:05:58]Write to MH i2c: F0 00 00 9F 78 06 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 09 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 09 00 9F 78 00 CA 3A 1E 67 22 05 6E 64 91 [13:05:58]GetLastDocTimeStamp 1730034372 [13:05:58]current date 1730034378 [13:05:58]FM_GetShiftState [13:05:58]SAM_PROTO_GetShiftState [13:05:58]wFMCommunicate request_size=4 [13:05:58]MH_SAM_APDU [13:05:58]CAPDU: 80 13 01 00 [13:05:58]Write to MH i2c: E2 08 00 A0 78 80 13 01 00 00 00 00 00 95 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:58]Read from MH i2c: E2 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 0E 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 0E 00 A0 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D6 [13:05:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:05:58]wFMCommunicate OK [13:05:58]SAM_PROTO_GetShiftState done [13:05:58]FM_GetShiftState done [13:05:58]opened in 1729989159 [13:05:58]opened+sec_in_day 1730075559 [13:05:58]quantity*price = 30038 [13:05:58]sum+1 = 30039 [13:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 198 27.10.2024 13:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192166 ФПД: 30303085270792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192166&fm=30303085270792&tin=02508201610067®Number=0000000000091776&sum=30000 [13:05:59]StoreToDocumentArchive [13:05:59]shift 542 fd 192166 [13:05:59]save to /storage/0542/doc_00192166 [13:05:59]save last doc name /storage/0542/doc_00192166 to /storage/kkm_last_doc_name [13:05:59]save OK [13:05:59]Clear old archive folders... [13:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:59]tlvbuf is 0175F6C0 [13:05:59]SAM_PROTO_ClearQueue [13:05:59]wFMCommunicate request_size=4 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 09 00 00 [13:05:59]Write to MH i2c: E2 08 00 AD 78 80 09 00 00 00 00 00 00 97 [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:59]Read from MH i2c: E2 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 03 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 03 00 AD 78 00 90 00 99 [13:05:59]RAPDU: 90 00 [13:05:59]wFMCommunicate OK [13:05:59]SAM_PROTO_ClearQueue done [13:05:59]KKMCreateOFDPacket [13:05:59]OFDProtocolAddRootSTLVToBuf [13:05:59]FM_MakeSignedData [13:05:59]FM_MakeSignedData [13:05:59]SAM_PROTO_SignData [13:05:59]wFMCommunicate request_size=4 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 0D 01 02 [13:05:59]Write to MH i2c: E2 08 00 AE 78 80 0D 01 02 00 00 00 00 9F [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:59]Read from MH i2c: E2 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 03 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 03 00 AE 78 00 90 00 9A [13:05:59]RAPDU: 90 00 [13:05:59]wFMCommunicate OK [13:05:59]wFMCommunicate request_size=255 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 CA 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EE 02 00 35 04 06 00 1B [13:05:59]Write to MH i2c: E2 02 01 AF 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 CA 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EE 02 00 35 04 06 00 1B 00 00 47 [13:05:59]OFD Sender: No OFD packet to send [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 AF 78 00 90 00 9B [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]wFMCommunicate request_size=10 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 02 02 05 8F 7C A2 17 08 [13:06:00]Write to MH i2c: E2 0D 00 B0 78 80 0D 02 02 05 00 8F 7C A2 17 08 00 00 78 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 B0 78 00 90 00 9C [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 03 02 [13:06:00]Write to MH i2c: E2 08 00 B1 78 80 0D 03 02 00 00 00 00 A4 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0B 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0B 00 B1 78 00 79 23 78 70 C5 E7 3E F9 90 00 0C [13:06:00]RAPDU: 79 23 78 70 C5 E7 3E F9 90 00 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_SignData done [13:06:00]FM_MakeSignedData done [13:06:00]CreateOFDProtocolMessage [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 11 00 00 [13:06:00]Write to MH i2c: E2 08 00 B2 78 80 11 00 00 00 00 00 00 A4 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 B2 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [13:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:00]wFMCommunicate OK [13:06:00]CreateOFDProtocolMessage done [13:06:00]OFDSenderStorePacket 192166 [13:06:00]StoreOFDPacket docnum=192166 [13:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 38 07 01 09 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 CA 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EE 02 00 35 04 06 00 1B 8F 7C A2 17 08 79 23 78 70 C5 E7 3E F9 [13:06:00]CheckFolder [13:06:00]dirname=/storage/ofd_packets [13:06:00]CheckFolder done [13:06:00]ProducePacketName [13:06:00]name=ofd_packets/00192166 [13:06:00]NVStorageSaveData ofd_packets/00192166 [13:06:00]File name is /storage/ofd_packets/00192166 [13:06:00]Write 301 bytes [13:06:00]NVStorageSaveData done [13:06:00]OFDSenderStorePacket done [13:06:00]KKMCreateOFDPacket done [13:06:00]NVStorageSaveData kkm_last_timestamp [13:06:00]File name is /storage/kkm_last_timestamp [13:06:00]Write 4 bytes [13:06:00]NVStorageSaveData done [13:06:00]ExternCall_PrintAddStr [13:06:00]wPrintStart [13:06:00]Write to MH i2c: 01 00 00 B3 78 2B [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 B3 78 00 00 00 00 00 FF 0F 40 [13:06:00]RasterBufferAndPrint [13:06:00]line Счет N : (1)31479 [13:06:00]line ИНН: 02508201610067 [13:06:00]line Контрольно-Кассовый Чек [13:06:00]line ПРОДАЖА [13:06:00]line ТРК (МРК, ГНК) : 21 [13:06:00]line Товар: 2710124130 [13:06:00]line Аи-92-К-5 [13:06:00]line 4.490 * 66.90 [13:06:00]line = 300.38 [13:06:00]line НДС 12% НСП 1% [13:06:00]line > о реализуемом товаре [13:06:00]line ОКРУГЛЕНИЕ: -0.38 [13:06:00]line ИТОГО: 300.00 [13:06:00]line Внесено: 300.00 [13:06:00]line СДАЧА: 0.00 [13:06:00]line НСП 1% : 2.66 [13:06:00]line НДС 12% : 31.90 [13:06:00]line Наличными: 300.00 [13:06:00]line Безнал.: 0.00 [13:06:00]line Место: АЗС № 170 "Партнер Нефть" [13:06:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:06:00]line СНО: Общий режим [13:06:00]line Чек 198 27.10.2024 13:06 [13:06:00]line Смена: 542 ФФД: 1.0 [13:06:00]line ЗНМ: 0300000110 [13:06:00]line РНМ: 0000000000091776 [13:06:00]line Версия ККМ: 001 [13:06:00]line ФМ: 0000000000871754 [13:06:00]line ФД: 192166 [13:06:00]line ФПД: 30303085270792 [13:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130618&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192166&fm=30303085270792&tin=02508201610067®Number=0000000000091776&sum=30000 [13:06:00]OFD Sender: Processing packet 192166 [packets to send 75, broken 74] [13:06:00]ProducePacketName [13:06:00]name=ofd_packets/00192166 [13:06:00]OFD Sender: To server: pG, [13:06:00]CommunicateWithHost lk.salyk.kg:30040 [13:06:00]ConnectInit lk.salyk.kg [13:06:00]written 0, free lines is 4095 [13:06:00]Connected sock=9 [13:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 38 07 01 09 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 CA 3A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EE 02 00 35 04 06 00 1B 8F 7C A2 17 08 79 23 78 70 C5 E7 3E F9 [13:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F F3 47 00 F1 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EE 02 00 F4 03 04 00 92 DF 1D 67 B6 04 01 00 00 E1 F6 2C 94 3D 95 39 EF [13:06:00]CommunicateWithHost err = 0 [13:06:00]CheckOFDResponse [13:06:00]1017 (14) - 77093643461234 [13:06:00]1041 (16) - 0000000000871754 [13:06:00]1040 (4) - 192166 [13:06:00]1012 (4) - 27.10.2024 06:37 [13:06:00]1206 (1) - 0 [13:06:00]OFD Sender: Remove packet 192166 [13:06:00]ProducePacketName [13:06:00]name=ofd_packets/00192166 [13:06:00]NVStorageDeleteData [13:06:00]Write to MH i2c: 01 00 00 DE 78 56 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 DE 78 00 00 00 00 00 BB 0C 24 [13:06:00]RasterBufferAndPrint [13:06:00]line [13:06:00]line [13:06:00]line [13:06:00]line [13:06:00]line [13:06:00]written 0, free lines is 3284 [13:06:00]MH_Cut [13:06:00]Write to MH i2c: D1 01 00 E5 78 01 2F [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: D1 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: D1 01 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: D1 01 00 E5 78 00 2E [13:06:00]Write to MH i2c: 01 00 00 E6 78 5E [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:01]OFD Sender: No OFD packet to send [13:06:01]*** Cut start [13:06:01]*** Partial cut [13:06:01]*** CUTSNS_PIN = 1 [13:06:01]*** CUTSNS_PIN = 0 [13:06:01]*** Brake cut motor [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]*** Stop cut motor [13:06:02]*** Cut end [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 E6 78 00 00 00 00 00 FF 0F 73 [13:06:02]process_action close_receipt done [13:06:02]requested_data is exist [13:06:02]produce_requested_data [13:06:02]requested_item fm.sn is exist - process it [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 11 00 00 [13:06:02]Write to MH i2c: E2 08 00 E7 78 80 11 00 00 00 00 00 00 D9 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 E7 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [13:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:02]wFMCommunicate OK [13:06:02]requested_item fd.num is exist - process it [13:06:02]SAM_PROTO_GetFieldsCounters [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 13 00 00 [13:06:02]Write to MH i2c: E2 08 00 E8 78 80 13 00 00 00 00 00 00 DC [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 62 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 62 00 E8 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:02]wFMCommunicate OK [13:06:02]SAM_PROTO_GetFieldsCounters done [13:06:02]requested_item shift.num is exist - process it [13:06:02]requested_item shift.opened is exist - process it [13:06:02]req_shift_opened [13:06:02]FM_GetShiftState [13:06:02]SAM_PROTO_GetShiftState [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 13 01 00 [13:06:02]Write to MH i2c: E2 08 00 E9 78 80 13 01 00 00 00 00 00 DE [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0E 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0E 00 E9 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [13:06:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:06:02]wFMCommunicate OK [13:06:02]SAM_PROTO_GetShiftState done [13:06:02]FM_GetShiftState done [13:06:02]req_shift_opened done [13:06:02]requested_item shift.open_date is exist - process it [13:06:02]req_shift_open_date [13:06:02]req_shift_open_date done [13:06:02]produce_requested_data done [13:06:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192166,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:06:02]process_action_free close_receipt [13:06:02]json_value_free [13:06:02]json_value_free done [13:06:02]process_json_proto returns [13:06:02]Send response to host [13:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192166,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:06:02]free response buf [13:06:02]execute_script done [13:06:02]execute_script returns [13:06:02]free content buf [13:06:02]Sock 6.Close socket [13:06:02]Sock 6.Thread stoped [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]accept exits with 8 [13:09:26]New connection [13:09:26]New thread 3066817892 created [13:09:26]Thread 3066961252 joined [13:09:26]Waiting for new connection... [13:09:26] Sock 8.Parse request [13:09:26]Sock 8.Check first char [13:09:26]Sock 8.First char is OK [13:09:26]request: POST /json_proto HTTP/1.0 [13:09:26]Method: POST [13:09:26]URL: /json_proto [13:09:26]Method is POST - this is cgi request [13:09:26]url: /json_proto [13:09:26]query_string will be loaded in cgi processing [13:09:26]execute_cgi json_proto POST (null) [13:09:26]execute_cgi path=json_proto method=POST [13:09:26]POST find Content-Length [13:09:26]Host: 172.17.63.131:8080 [13:09:26]Content-Length: 676 [13:09:26]Content-Type: application/json [13:09:26] [13:09:26]POST finish read [13:09:26]Found Content-Length = 676 [13:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:26]execute_script... [13:09: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)31480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:26]POST & json_proto [13:09:26]process_json_proto [13:09:26]json parsed OK: [13:09:26]protocol is kg_v1.0 [13:09:26]action value=close_receipt [13:09:26]process_action close_receipt [13:09:26]cmd_close_receipt [13:09:26]MH_GetDate [13:09:26]Write to MH i2c: F0 00 00 EA 78 51 [13:09:26]Write i2c OK [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: F0 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: F0 09 00 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: F0 09 00 EA 78 00 9A 3B 1E 67 22 05 6E 64 AD [13:09:26]GetLastDocTimeStamp 1730034378 [13:09:26]current date 1730034586 [13:09:26]FM_GetShiftState [13:09:26]SAM_PROTO_GetShiftState [13:09:26]wFMCommunicate request_size=4 [13:09:26]MH_SAM_APDU [13:09:26]CAPDU: 80 13 01 00 [13:09:26]Write to MH i2c: E2 08 00 EB 78 80 13 01 00 00 00 00 00 E0 [13:09:26]Write i2c OK [13:09:26]MH_I2C_Read... [13:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:26]Read from MH i2c: E2 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: E2 0E 00 [13:09:26]MH_I2C_Read... [13:09:26]Read from MH i2c: E2 0E 00 EB 78 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 21 [13:09:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:09:26]wFMCommunicate OK [13:09:26]SAM_PROTO_GetShiftState done [13:09:26]FM_GetShiftState done [13:09:26]opened in 1729989159 [13:09:26]opened+sec_in_day 1730075559 [13:09:26]quantity*price = 20003 [13:09:26]sum+1 = 20004 [13:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 199 27.10.2024 13:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192167 ФПД: 168907456290404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130946&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192167&fm=168907456290404&tin=02508201610067®Number=0000000000091776&sum=20000 [13:09:27]StoreToDocumentArchive [13:09:27]shift 542 fd 192167 [13:09:27]save to /storage/0542/doc_00192167 [13:09:27]save last doc name /storage/0542/doc_00192167 to /storage/kkm_last_doc_name [13:09:27]save OK [13:09:27]Clear old archive folders... [13:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:27]tlvbuf is 01749110 [13:09:27]SAM_PROTO_ClearQueue [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 09 00 00 [13:09:27]Write to MH i2c: E2 08 00 F8 78 80 09 00 00 00 00 00 00 E2 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 F8 78 00 90 00 E4 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_ClearQueue done [13:09:27]KKMCreateOFDPacket [13:09:27]OFDProtocolAddRootSTLVToBuf [13:09:27]FM_MakeSignedData [13:09:27]FM_MakeSignedData [13:09:27]SAM_PROTO_SignData [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 01 02 [13:09:27]Write to MH i2c: E2 08 00 F9 78 80 0D 01 02 00 00 00 00 EA [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 F9 78 00 90 00 E5 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=255 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 9A 3B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EE 02 00 35 04 06 00 99 [13:09:27]Write to MH i2c: E2 02 01 FA 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 9A 3B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EE 02 00 35 04 06 00 99 00 00 B1 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 FA 78 00 90 00 E6 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=10 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 02 02 05 9E D4 EE 9E 64 [13:09:27]Write to MH i2c: E2 0D 00 FB 78 80 0D 02 02 05 00 9E D4 EE 9E 64 00 00 59 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 03 00 FB 78 00 90 00 E7 [13:09:27]RAPDU: 90 00 [13:09:27]wFMCommunicate OK [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 0D 03 02 [13:09:27]Write to MH i2c: E2 08 00 FC 78 80 0D 03 02 00 00 00 00 EF [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:27]Read from MH i2c: E2 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0B 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: E2 0B 00 FC 78 00 E9 74 8B 40 9B 71 A0 31 90 00 F5 [13:09:27]RAPDU: E9 74 8B 40 9B 71 A0 31 90 00 [13:09:27]wFMCommunicate OK [13:09:27]SAM_PROTO_SignData done [13:09:27]FM_MakeSignedData done [13:09:27]CreateOFDProtocolMessage [13:09:27]wFMCommunicate request_size=4 [13:09:27]MH_SAM_APDU [13:09:27]CAPDU: 80 11 00 00 [13:09:27]Write to MH i2c: E2 08 00 FD 78 80 11 00 00 00 00 00 00 EF [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:28]Read from MH i2c: E2 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 17 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: E2 17 00 FD 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [13:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:09:28]wFMCommunicate OK [13:09:28]CreateOFDProtocolMessage done [13:09:28]OFDSenderStorePacket 192167 [13:09:28]StoreOFDPacket docnum=192167 [13:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 9B 07 01 74 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 9A 3B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EE 02 00 35 04 06 00 99 9E D4 EE 9E 64 E9 74 8B 40 9B 71 A0 31 [13:09:28]CheckFolder [13:09:28]dirname=/storage/ofd_packets [13:09:28]CheckFolder done [13:09:28]ProducePacketName [13:09:28]name=ofd_packets/00192167 [13:09:28]NVStorageSaveData ofd_packets/00192167 [13:09:28]File name is /storage/ofd_packets/00192167 [13:09:28]Write 301 bytes [13:09:28]NVStorageSaveData done [13:09:28]OFDSenderStorePacket done [13:09:28]KKMCreateOFDPacket done [13:09:28]NVStorageSaveData kkm_last_timestamp [13:09:28]File name is /storage/kkm_last_timestamp [13:09:28]Write 4 bytes [13:09:28]NVStorageSaveData done [13:09:28]ExternCall_PrintAddStr [13:09:28]wPrintStart [13:09:28]Write to MH i2c: 01 00 00 FE 78 76 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 FE 78 00 00 00 00 00 FF 0F 8B [13:09:28]RasterBufferAndPrint [13:09:28]line Счет N : (1)31480 [13:09:28]line ИНН: 02508201610067 [13:09:28]line Контрольно-Кассовый Чек [13:09:28]line ПРОДАЖА [13:09:28]line ТРК (МРК, ГНК) : 12 [13:09:28]line Товар: 2710124130 [13:09:28]line Аи-92-К-5 [13:09:28]line 2.990 * 66.90 [13:09:28]line = 200.03 [13:09:28]line НДС 12% НСП 1% [13:09:28]line > о реализуемом товаре [13:09:28]line ОКРУГЛЕНИЕ: -0.03 [13:09:28]line ИТОГО: 200.00 [13:09:28]line Внесено: 200.00 [13:09:28]line СДАЧА: 0.00 [13:09:28]line НСП 1% : 1.77 [13:09:28]line НДС 12% : 21.24 [13:09:28]line Наличными: 200.00 [13:09:28]line Безнал.: 0.00 [13:09:28]line Место: АЗС № 170 "Партнер Нефть" [13:09:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:09:28]line СНО: Общий режим [13:09:28]line Чек 199 27.10.2024 13:09 [13:09:28]line Смена: 542 ФФД: 1.0 [13:09:28]line ЗНМ: 0300000110 [13:09:28]line РНМ: 0000000000091776 [13:09:28]line Версия ККМ: 001 [13:09:28]line ФМ: 0000000000871754 [13:09:28]line ФД: 192167 [13:09:28]line ФПД: 168907456290404 [13:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130946&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192167&fm=168907456290404&tin=02508201610067®Number=0000000000091776&sum=20000 [13:09:28]OFD Sender: Processing packet 192167 [packets to send 75, broken 74] [13:09:28]ProducePacketName [13:09:28]name=ofd_packets/00192167 [13:09:28]OFD Sender: To server: pG, [13:09:28]CommunicateWithHost lk.salyk.kg:30040 [13:09:28]ConnectInit lk.salyk.kg [13:09:28]written 0, free lines is 4095 [13:09:28]Connected sock=6 [13:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 9B 07 01 74 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 9A 3B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EE 02 00 35 04 06 00 99 9E D4 EE 9E 64 E9 74 8B 40 9B 71 A0 31 [13:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 CC 47 00 47 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EE 02 00 F4 03 04 00 62 E0 1D 67 B6 04 01 00 00 04 C5 9B 71 4C D7 00 16 [13:09:28]CommunicateWithHost err = 0 [13:09:28]CheckOFDResponse [13:09:28]1017 (14) - 77093643461234 [13:09:28]1041 (16) - 0000000000871754 [13:09:28]1040 (4) - 192167 [13:09:28]1012 (4) - 27.10.2024 06:40 [13:09:28]1206 (1) - 0 [13:09:28]OFD Sender: Remove packet 192167 [13:09:28]ProducePacketName [13:09:28]name=ofd_packets/00192167 [13:09:28]NVStorageDeleteData [13:09:28]Write to MH i2c: 01 00 00 29 79 A2 [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: 01 07 00 29 79 00 00 00 00 00 9D 0C 52 [13:09:28]RasterBufferAndPrint [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]line [13:09:28]written 0, free lines is 3238 [13:09:28]MH_Cut [13:09:28]Write to MH i2c: D1 01 00 30 79 01 7B [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: D1 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: D1 01 00 [13:09:28]MH_I2C_Read... [13:09:28]Read from MH i2c: D1 01 00 30 79 00 7A [13:09:28]Write to MH i2c: 01 00 00 31 79 AA [13:09:28]Write i2c OK [13:09:28]MH_I2C_Read... [13:09:29]OFD Sender: No OFD packet to send [13:09:29]*** Cut start [13:09:29]*** Partial cut [13:09:29]*** CUTSNS_PIN = 1 [13:09:29]*** CUTSNS_PIN = 0 [13:09:29]*** Brake cut motor [13:09:30]Read from MH i2c: 01 [13:09:30]MH_I2C_Read... [13:09:30]*** Stop cut motor [13:09:30]*** Cut end [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 31 79 00 00 00 00 00 FF 0F BF [13:09:30]process_action close_receipt done [13:09:30]requested_data is exist [13:09:30]produce_requested_data [13:09:30]requested_item fm.sn is exist - process it [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 32 79 80 11 00 00 00 00 00 00 25 [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 32 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [13:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:09:30]wFMCommunicate OK [13:09:30]requested_item fd.num is exist - process it [13:09:30]SAM_PROTO_GetFieldsCounters [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 13 00 00 [13:09:30]Write to MH i2c: E2 08 00 33 79 80 13 00 00 00 00 00 00 28 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 62 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 62 00 33 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [13:09:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_GetFieldsCounters done [13:09:30]requested_item shift.num is exist - process it [13:09:30]requested_item shift.opened is exist - process it [13:09:30]req_shift_opened [13:09:30]FM_GetShiftState [13:09:30]SAM_PROTO_GetShiftState [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 13 01 00 [13:09:30]Write to MH i2c: E2 08 00 34 79 80 13 01 00 00 00 00 00 2A [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0E 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0E 00 34 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [13:09:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_GetShiftState done [13:09:30]FM_GetShiftState done [13:09:30]req_shift_opened done [13:09:30]requested_item shift.open_date is exist - process it [13:09:30]req_shift_open_date [13:09:30]req_shift_open_date done [13:09:30]produce_requested_data done [13:09:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192167,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:09:30]process_action_free close_receipt [13:09:30]json_value_free [13:09:30]json_value_free done [13:09:30]process_json_proto returns [13:09:30]Send response to host [13:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192167,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:09:30]free response buf [13:09:30]execute_script done [13:09:30]execute_script returns [13:09:30]free content buf [13:09:30]Sock 8.Close socket [13:09:30]Sock 8.Thread stoped [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:15]accept exits with 5 [13:11:15]New connection [13:11:15]New thread 3066961252 created [13:11:15]Thread 3066817892 joined [13:11:15]Waiting for new connection... [13:11:15] Sock 5.Parse request [13:11:15]Sock 5.Check first char [13:11:15]Sock 5.First char is OK [13:11:15]request: POST /json_proto HTTP/1.0 [13:11:15]Method: POST [13:11:15]URL: /json_proto [13:11:15]Method is POST - this is cgi request [13:11:15]url: /json_proto [13:11:15]query_string will be loaded in cgi processing [13:11:15]execute_cgi json_proto POST (null) [13:11:15]execute_cgi path=json_proto method=POST [13:11:15]POST find Content-Length [13:11:15]Host: 172.17.63.131:8080 [13:11:15]Content-Length: 681 [13:11:15]Content-Type: application/json [13:11:15] [13:11:15]POST finish read [13:11:15]Found Content-Length = 681 [13:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:15]execute_script... [13:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:15]POST & json_proto [13:11:15]process_json_proto [13:11:15]json parsed OK: [13:11:15]protocol is kg_v1.0 [13:11:15]action value=close_receipt [13:11:15]process_action close_receipt [13:11:15]cmd_close_receipt [13:11:15]MH_GetDate [13:11:15]Write to MH i2c: F0 00 00 35 79 9D [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: F0 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: F0 09 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: F0 09 00 35 79 00 07 3C 1E 67 22 05 6E 64 67 [13:11:15]GetLastDocTimeStamp 1730034586 [13:11:15]current date 1730034695 [13:11:15]FM_GetShiftState [13:11:15]SAM_PROTO_GetShiftState [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 13 01 00 [13:11:15]Write to MH i2c: E2 08 00 36 79 80 13 01 00 00 00 00 00 2C [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0E 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0E 00 36 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6D [13:11:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:11:15]wFMCommunicate OK [13:11:15]SAM_PROTO_GetShiftState done [13:11:15]FM_GetShiftState done [13:11:15]opened in 1729989159 [13:11:15]opened+sec_in_day 1730075559 [13:11:15]quantity*price = 100015 [13:11:15]sum+1 = 100017 [13:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 200 27.10.2024 13:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192168 ФПД: 53858451270898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192168&fm=53858451270898&tin=02508201610067®Number=0000000000091776&sum=100000 [13:11:16]StoreToDocumentArchive [13:11:16]shift 542 fd 192168 [13:11:16]save to /storage/0542/doc_00192168 [13:11:16]save last doc name /storage/0542/doc_00192168 to /storage/kkm_last_doc_name [13:11:16]save OK [13:11:16]Clear old archive folders... [13:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:16]tlvbuf is 01B4D250 [13:11:16]SAM_PROTO_ClearQueue [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 09 00 00 [13:11:16]Write to MH i2c: E2 08 00 43 79 80 09 00 00 00 00 00 00 2E [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 43 79 00 90 00 30 [13:11:16]RAPDU: 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_ClearQueue done [13:11:16]KKMCreateOFDPacket [13:11:16]OFDProtocolAddRootSTLVToBuf [13:11:16]FM_MakeSignedData [13:11:16]FM_MakeSignedData [13:11:16]SAM_PROTO_SignData [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 0D 01 02 [13:11:16]Write to MH i2c: E2 08 00 44 79 80 0D 01 02 00 00 00 00 36 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 44 79 00 90 00 31 [13:11:16]RAPDU: 90 00 [13:11:16]wFMCommunicate OK [13:11:16]wFMCommunicate request_size=255 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 07 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EE 02 00 35 04 06 00 30 [13:11:16]Write to MH i2c: E2 02 01 45 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 07 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EE 02 00 35 04 06 00 30 00 00 3C [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 45 79 00 90 00 32 [13:11:16]RAPDU: 90 00 [13:11:16]wFMCommunicate OK [13:11:16]wFMCommunicate request_size=10 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 0D 02 02 05 FB E5 DB 2C F2 [13:11:16]Write to MH i2c: E2 0D 00 46 79 80 0D 02 02 05 00 FB E5 DB 2C F2 00 00 1C [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 03 00 46 79 00 90 00 33 [13:11:16]RAPDU: 90 00 [13:11:16]wFMCommunicate OK [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 0D 03 02 [13:11:16]Write to MH i2c: E2 08 00 47 79 80 0D 03 02 00 00 00 00 3B [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0B 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0B 00 47 79 00 3A B1 E0 54 A1 E3 29 B3 90 00 BB [13:11:16]RAPDU: 3A B1 E0 54 A1 E3 29 B3 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_SignData done [13:11:16]FM_MakeSignedData done [13:11:16]CreateOFDProtocolMessage [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 11 00 00 [13:11:16]Write to MH i2c: E2 08 00 48 79 80 11 00 00 00 00 00 00 3B [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 48 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [13:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:11:16]wFMCommunicate OK [13:11:16]CreateOFDProtocolMessage done [13:11:16]OFDSenderStorePacket 192168 [13:11:16]StoreOFDPacket docnum=192168 [13:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 16 07 01 4C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 07 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EE 02 00 35 04 06 00 30 FB E5 DB 2C F2 3A B1 E0 54 A1 E3 29 B3 [13:11:16]CheckFolder [13:11:16]dirname=/storage/ofd_packets [13:11:16]CheckFolder done [13:11:16]ProducePacketName [13:11:16]name=ofd_packets/00192168 [13:11:16]NVStorageSaveData ofd_packets/00192168 [13:11:16]File name is /storage/ofd_packets/00192168 [13:11:16]Write 301 bytes [13:11:16]NVStorageSaveData done [13:11:16]OFDSenderStorePacket done [13:11:16]KKMCreateOFDPacket done [13:11:16]NVStorageSaveData kkm_last_timestamp [13:11:16]File name is /storage/kkm_last_timestamp [13:11:16]Write 4 bytes [13:11:16]NVStorageSaveData done [13:11:16]ExternCall_PrintAddStr [13:11:16]wPrintStart [13:11:16]Write to MH i2c: 01 00 00 49 79 C2 [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 07 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: 01 07 00 49 79 00 00 00 00 00 FF 0F D7 [13:11:16]RasterBufferAndPrint [13:11:16]line Счет N : (1)31481 [13:11:16]line ИНН: 02508201610067 [13:11:16]line Контрольно-Кассовый Чек [13:11:16]line ПРОДАЖА [13:11:16]line ТРК (МРК, ГНК) : 12 [13:11:16]line Товар: 2710124130 [13:11:16]line Аи-92-К-5 [13:11:16]line 14.950 * 66.90 [13:11:16]line = 1000.16 [13:11:16]line НДС 12% НСП 1% [13:11:16]line > о реализуемом товаре [13:11:16]line ОКРУГЛЕНИЕ: -0.16 [13:11:16]line ИТОГО: 1000.00 [13:11:16]line Внесено: 1000.00 [13:11:16]line СДАЧА: 0.00 [13:11:16]line НСП 1% : 8.85 [13:11:16]line НДС 12% : 106.21 [13:11:16]line Наличными: 1000.00 [13:11:16]line Безнал.: 0.00 [13:11:16]line Место: АЗС № 170 "Партнер Нефть" [13:11:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:11:16]line СНО: Общий режим [13:11:16]line Чек 200 27.10.2024 13:11 [13:11:16]line Смена: 542 ФФД: 1.0 [13:11:16]line ЗНМ: 0300000110 [13:11:16]line РНМ: 0000000000091776 [13:11:16]line Версия ККМ: 001 [13:11:16]line ФМ: 0000000000871754 [13:11:16]line ФД: 192168 [13:11:16]line ФПД: 53858451270898 [13:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192168&fm=53858451270898&tin=02508201610067®Number=0000000000091776&sum=100000 [13:11:17]OFD Sender: Processing packet 192168 [packets to send 75, broken 74] [13:11:17]ProducePacketName [13:11:17]name=ofd_packets/00192168 [13:11:17]OFD Sender: To server: pG, [13:11:17]CommunicateWithHost lk.salyk.kg:30040 [13:11:17]ConnectInit lk.salyk.kg [13:11:17]written 0, free lines is 4095 [13:11:17]Connected sock=8 [13:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 16 07 01 4C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 07 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EE 02 00 35 04 06 00 30 FB E5 DB 2C F2 3A B1 E0 54 A1 E3 29 B3 [13:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 EE 47 00 24 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EE 02 00 F4 03 04 00 CF E0 1D 67 B6 04 01 00 00 5F B1 34 3E CD DA 0D F3 [13:11:17]CommunicateWithHost err = 0 [13:11:17]CheckOFDResponse [13:11:17]1017 (14) - 77093643461234 [13:11:17]1041 (16) - 0000000000871754 [13:11:17]1040 (4) - 192168 [13:11:17]1012 (4) - 27.10.2024 06:42 [13:11:17]1206 (1) - 0 [13:11:17]OFD Sender: Remove packet 192168 [13:11:17]ProducePacketName [13:11:17]name=ofd_packets/00192168 [13:11:17]NVStorageDeleteData [13:11:17]Write to MH i2c: 01 00 00 74 79 ED [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: 01 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: 01 07 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: 01 07 00 74 79 00 00 00 00 00 A2 0C A2 [13:11:17]RasterBufferAndPrint [13:11:17]line [13:11:17]line [13:11:17]line [13:11:17]line [13:11:17]line [13:11:17]written 0, free lines is 3242 [13:11:17]MH_Cut [13:11:17]Write to MH i2c: D1 01 00 7B 79 01 C6 [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: D1 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: D1 01 00 [13:11:17]MH_I2C_Read... [13:11:17]Read from MH i2c: D1 01 00 7B 79 00 C5 [13:11:17]Write to MH i2c: 01 00 00 7C 79 F5 [13:11:17]Write i2c OK [13:11:17]MH_I2C_Read... [13:11:18]OFD Sender: No OFD packet to send [13:11:18]*** Cut start [13:11:18]*** Partial cut [13:11:18]*** CUTSNS_PIN = 1 [13:11:18]*** CUTSNS_PIN = 0 [13:11:18]*** Brake cut motor [13:11:19]Read from MH i2c: 01 [13:11:19]MH_I2C_Read... [13:11:19]*** Stop cut motor [13:11:19]Read from MH i2c: 01 07 00 [13:11:19]MH_I2C_Read... [13:11:19]*** Cut end [13:11:19]Read from MH i2c: 01 07 00 7C 79 00 00 00 00 00 FF 0F 0A [13:11:19]process_action close_receipt done [13:11:19]requested_data is exist [13:11:19]produce_requested_data [13:11:19]requested_item fm.sn is exist - process it [13:11:19]wFMCommunicate request_size=4 [13:11:19]MH_SAM_APDU [13:11:19]CAPDU: 80 11 00 00 [13:11:19]Write to MH i2c: E2 08 00 7D 79 80 11 00 00 00 00 00 00 70 [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:19]Read from MH i2c: E2 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 17 00 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 17 00 7D 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [13:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:11:19]wFMCommunicate OK [13:11:19]requested_item fd.num is exist - process it [13:11:19]SAM_PROTO_GetFieldsCounters [13:11:19]wFMCommunicate request_size=4 [13:11:19]MH_SAM_APDU [13:11:19]CAPDU: 80 13 00 00 [13:11:19]Write to MH i2c: E2 08 00 7E 79 80 13 00 00 00 00 00 00 73 [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:19]Read from MH i2c: E2 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 62 00 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 62 00 7E 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [13:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:19]wFMCommunicate OK [13:11:19]SAM_PROTO_GetFieldsCounters done [13:11:19]requested_item shift.num is exist - process it [13:11:19]requested_item shift.opened is exist - process it [13:11:19]req_shift_opened [13:11:19]FM_GetShiftState [13:11:19]SAM_PROTO_GetShiftState [13:11:19]wFMCommunicate request_size=4 [13:11:19]MH_SAM_APDU [13:11:19]CAPDU: 80 13 01 00 [13:11:19]Write to MH i2c: E2 08 00 7F 79 80 13 01 00 00 00 00 00 75 [13:11:19]Write i2c OK [13:11:19]MH_I2C_Read... [13:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:19]Read from MH i2c: E2 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 0E 00 [13:11:19]MH_I2C_Read... [13:11:19]Read from MH i2c: E2 0E 00 7F 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B6 [13:11:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:11:19]wFMCommunicate OK [13:11:19]SAM_PROTO_GetShiftState done [13:11:19]FM_GetShiftState done [13:11:19]req_shift_opened done [13:11:19]requested_item shift.open_date is exist - process it [13:11:19]req_shift_open_date [13:11:19]req_shift_open_date done [13:11:19]produce_requested_data done [13:11:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192168,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:11:19]process_action_free close_receipt [13:11:19]json_value_free [13:11:19]json_value_free done [13:11:19]process_json_proto returns [13:11:19]Send response to host [13:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192168,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:11:19]free response buf [13:11:19]execute_script done [13:11:19]execute_script returns [13:11:19]free content buf [13:11:19]Sock 5.Close socket [13:11:19]Sock 5.Thread stoped [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:29]accept exits with 6 [13:13:29]New connection [13:13:29]New thread 3066817892 created [13:13:29]Thread 3066961252 joined [13:13:29]Waiting for new connection... [13:13:29] Sock 6.Parse request [13:13:29]Sock 6.Check first char [13:13:29]Sock 6.First char is OK [13:13:29]request: POST /json_proto HTTP/1.0 [13:13:29]Method: POST [13:13:29]URL: /json_proto [13:13:29]Method is POST - this is cgi request [13:13:29]url: /json_proto [13:13:29]query_string will be loaded in cgi processing [13:13:29]execute_cgi json_proto POST (null) [13:13:29]execute_cgi path=json_proto method=POST [13:13:29]POST find Content-Length [13:13:29]Host: 172.17.63.131:8080 [13:13:29]Content-Length: 676 [13:13:29]Content-Type: application/json [13:13:29] [13:13:29]POST finish read [13:13:29]Found Content-Length = 676 [13:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:29]execute_script... [13:13: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)31482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:29]POST & json_proto [13:13:29]process_json_proto [13:13:29]json parsed OK: [13:13:29]protocol is kg_v1.0 [13:13:29]action value=close_receipt [13:13:29]process_action close_receipt [13:13:29]cmd_close_receipt [13:13:29]MH_GetDate [13:13:29]Write to MH i2c: F0 00 00 80 79 E8 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 09 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 09 00 80 79 00 8D 3C 1E 67 22 05 6E 64 38 [13:13:29]GetLastDocTimeStamp 1730034695 [13:13:29]current date 1730034829 [13:13:29]FM_GetShiftState [13:13:29]SAM_PROTO_GetShiftState [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 01 00 [13:13:29]Write to MH i2c: E2 08 00 81 79 80 13 01 00 00 00 00 00 77 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 81 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B8 [13:13:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetShiftState done [13:13:29]FM_GetShiftState done [13:13:29]opened in 1729989159 [13:13:29]opened+sec_in_day 1730075559 [13:13:29]quantity*price = 40006 [13:13:29]sum+1 = 40007 [13:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 201 27.10.2024 13:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192169 ФПД: 90531165411978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192169&fm=90531165411978&tin=02508201610067®Number=0000000000091776&sum=40000 [13:13:30]StoreToDocumentArchive [13:13:30]shift 542 fd 192169 [13:13:30]save to /storage/0542/doc_00192169 [13:13:30]save last doc name /storage/0542/doc_00192169 to /storage/kkm_last_doc_name [13:13:30]save OK [13:13:30]Clear old archive folders... [13:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:30]tlvbuf is 01DFBE30 [13:13:30]SAM_PROTO_ClearQueue [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 09 00 00 [13:13:30]Write to MH i2c: E2 08 00 8E 79 80 09 00 00 00 00 00 00 79 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 8E 79 00 90 00 7B [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]SAM_PROTO_ClearQueue done [13:13:30]KKMCreateOFDPacket [13:13:30]OFDProtocolAddRootSTLVToBuf [13:13:30]FM_MakeSignedData [13:13:30]FM_MakeSignedData [13:13:30]SAM_PROTO_SignData [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 01 02 [13:13:30]Write to MH i2c: E2 08 00 8F 79 80 0D 01 02 00 00 00 00 81 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 8F 79 00 90 00 7C [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]wFMCommunicate request_size=255 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 8D 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EE 02 00 35 04 06 00 52 [13:13:30]Write to MH i2c: E2 02 01 90 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 8D 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EE 02 00 35 04 06 00 52 00 00 06 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 90 79 00 90 00 7D [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]wFMCommunicate request_size=10 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 02 02 05 56 6D F4 9A 8A [13:13:30]Write to MH i2c: E2 0D 00 91 79 80 0D 02 02 05 00 56 6D F4 9A 8A 00 00 69 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 91 79 00 90 00 7E [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 03 02 [13:13:30]Write to MH i2c: E2 08 00 92 79 80 0D 03 02 00 00 00 00 86 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0B 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 0B 00 92 79 00 8F 4A 06 FE 1A AC 7A F6 90 00 9A [13:13:30]RAPDU: 8F 4A 06 FE 1A AC 7A F6 90 00 [13:13:30]wFMCommunicate OK [13:13:30]SAM_PROTO_SignData done [13:13:30]FM_MakeSignedData done [13:13:30]CreateOFDProtocolMessage [13:13:30]wFMCommunicate request_size=4 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 11 00 00 [13:13:30]Write to MH i2c: E2 08 00 93 79 80 11 00 00 00 00 00 00 86 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 17 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 17 00 93 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [13:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:30]wFMCommunicate OK [13:13:30]CreateOFDProtocolMessage done [13:13:30]OFDSenderStorePacket 192169 [13:13:30]StoreOFDPacket docnum=192169 [13:13:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 E4 07 01 48 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 8D 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EE 02 00 35 04 06 00 52 56 6D F4 9A 8A 8F 4A 06 FE 1A AC 7A F6 [13:13:30]CheckFolder [13:13:30]dirname=/storage/ofd_packets [13:13:30]CheckFolder done [13:13:30]ProducePacketName [13:13:30]name=ofd_packets/00192169 [13:13:30]NVStorageSaveData ofd_packets/00192169 [13:13:30]File name is /storage/ofd_packets/00192169 [13:13:30]Write 301 bytes [13:13:30]NVStorageSaveData done [13:13:30]OFDSenderStorePacket done [13:13:30]KKMCreateOFDPacket done [13:13:30]NVStorageSaveData kkm_last_timestamp [13:13:30]File name is /storage/kkm_last_timestamp [13:13:30]Write 4 bytes [13:13:30]NVStorageSaveData done [13:13:30]ExternCall_PrintAddStr [13:13:30]wPrintStart [13:13:30]Write to MH i2c: 01 00 00 94 79 0D [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 94 79 00 00 00 00 00 FF 0F 22 [13:13:30]RasterBufferAndPrint [13:13:30]line Счет N : (1)31482 [13:13:30]line ИНН: 02508201610067 [13:13:30]line Контрольно-Кассовый Чек [13:13:30]line ПРОДАЖА [13:13:30]line ТРК (МРК, ГНК) : 12 [13:13:30]line Товар: 2710124130 [13:13:30]line Аи-92-К-5 [13:13:30]line 5.980 * 66.90 [13:13:30]line = 400.06 [13:13:30]line НДС 12% НСП 1% [13:13:30]line > о реализуемом товаре [13:13:30]line ОКРУГЛЕНИЕ: -0.06 [13:13:30]line ИТОГО: 400.00 [13:13:30]line Внесено: 400.00 [13:13:30]line СДАЧА: 0.00 [13:13:30]line НСП 1% : 3.54 [13:13:30]line НДС 12% : 42.48 [13:13:30]line Наличными: 400.00 [13:13:30]line Безнал.: 0.00 [13:13:30]line Место: АЗС № 170 "Партнер Нефть" [13:13:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:13:30]line СНО: Общий режим [13:13:30]line Чек 201 27.10.2024 13:13 [13:13:30]line Смена: 542 ФФД: 1.0 [13:13:30]line ЗНМ: 0300000110 [13:13:30]line РНМ: 0000000000091776 [13:13:30]line Версия ККМ: 001 [13:13:30]line ФМ: 0000000000871754 [13:13:30]line ФД: 192169 [13:13:30]line ФПД: 90531165411978 [13:13:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192169&fm=90531165411978&tin=02508201610067®Number=0000000000091776&sum=40000 [13:13:31]OFD Sender: Processing packet 192169 [packets to send 75, broken 74] [13:13:31]ProducePacketName [13:13:31]name=ofd_packets/00192169 [13:13:31]OFD Sender: To server: pG, [13:13:31]CommunicateWithHost lk.salyk.kg:30040 [13:13:31]ConnectInit lk.salyk.kg [13:13:31]written 0, free lines is 4095 [13:13:31]Connected sock=8 [13:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 E4 07 01 48 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 8D 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EE 02 00 35 04 06 00 52 56 6D F4 9A 8A 8F 4A 06 FE 1A AC 7A F6 [13:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 3C 47 00 53 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EE 02 00 F4 03 04 00 55 E1 1D 67 B6 04 01 00 00 82 85 1E 49 E4 7A 8C D5 [13:13:31]CommunicateWithHost err = 0 [13:13:31]CheckOFDResponse [13:13:31]1017 (14) - 77093643461234 [13:13:31]1041 (16) - 0000000000871754 [13:13:31]1040 (4) - 192169 [13:13:31]1012 (4) - 27.10.2024 06:44 [13:13:31]1206 (1) - 0 [13:13:31]OFD Sender: Remove packet 192169 [13:13:31]ProducePacketName [13:13:31]name=ofd_packets/00192169 [13:13:31]NVStorageDeleteData [13:13:31]Write to MH i2c: 01 00 00 BF 79 38 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 BF 79 00 00 00 00 00 A5 0C F0 [13:13:31]RasterBufferAndPrint [13:13:31]line [13:13:31]line [13:13:31]line [13:13:31]line [13:13:31]line [13:13:31]written 0, free lines is 3242 [13:13:31]MH_Cut [13:13:31]Write to MH i2c: D1 01 00 C6 79 01 11 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: D1 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: D1 01 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: D1 01 00 C6 79 00 10 [13:13:31]Write to MH i2c: 01 00 00 C7 79 40 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:32]OFD Sender: No OFD packet to send [13:13:32]*** Cut start [13:13:32]*** Partial cut [13:13:32]*** CUTSNS_PIN = 1 [13:13:32]*** CUTSNS_PIN = 0 [13:13:32]*** Brake cut motor [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]*** Stop cut motor [13:13:33]*** Cut end [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 C7 79 00 00 00 00 00 FF 0F 55 [13:13:33]process_action close_receipt done [13:13:33]requested_data is exist [13:13:33]produce_requested_data [13:13:33]requested_item fm.sn is exist - process it [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 11 00 00 [13:13:33]Write to MH i2c: E2 08 00 C8 79 80 11 00 00 00 00 00 00 BB [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 C8 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [13:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:33]wFMCommunicate OK [13:13:33]requested_item fd.num is exist - process it [13:13:33]SAM_PROTO_GetFieldsCounters [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 13 00 00 [13:13:33]Write to MH i2c: E2 08 00 C9 79 80 13 00 00 00 00 00 00 BE [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 62 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 62 00 C9 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:13:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:33]wFMCommunicate OK [13:13:33]SAM_PROTO_GetFieldsCounters done [13:13:33]requested_item shift.num is exist - process it [13:13:33]requested_item shift.opened is exist - process it [13:13:33]req_shift_opened [13:13:33]FM_GetShiftState [13:13:33]SAM_PROTO_GetShiftState [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 13 01 00 [13:13:33]Write to MH i2c: E2 08 00 CA 79 80 13 01 00 00 00 00 00 C0 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0E 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0E 00 CA 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 01 [13:13:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:13:33]wFMCommunicate OK [13:13:33]SAM_PROTO_GetShiftState done [13:13:33]FM_GetShiftState done [13:13:33]req_shift_opened done [13:13:33]requested_item shift.open_date is exist - process it [13:13:33]req_shift_open_date [13:13:33]req_shift_open_date done [13:13:33]produce_requested_data done [13:13:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192169,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:13:33]process_action_free close_receipt [13:13:33]json_value_free [13:13:33]json_value_free done [13:13:33]process_json_proto returns [13:13:33]Send response to host [13:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192169,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:13:33]free response buf [13:13:33]execute_script done [13:13:33]execute_script returns [13:13:33]free content buf [13:13:33]Sock 6.Close socket [13:13:33]Sock 6.Thread stoped [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:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]accept exits with 5 [13:15:02]New connection [13:15:02]New thread 3066961252 created [13:15:02]Thread 3066817892 joined [13:15:02]Waiting for new connection... [13:15:02] Sock 5.Parse request [13:15:02]Sock 5.Check first char [13:15:02]Sock 5.First char is OK [13:15:02]request: POST /json_proto HTTP/1.0 [13:15:02]Method: POST [13:15:02]URL: /json_proto [13:15:02]Method is POST - this is cgi request [13:15:02]url: /json_proto [13:15:02]query_string will be loaded in cgi processing [13:15:02]execute_cgi json_proto POST (null) [13:15:02]execute_cgi path=json_proto method=POST [13:15:02]POST find Content-Length [13:15:02]Host: 172.17.63.131:8080 [13:15:02]Content-Length: 678 [13:15:02]Content-Type: application/json [13:15:02] [13:15:02]POST finish read [13:15:02]Found Content-Length = 678 [13:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31483", "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" : 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:15:02]execute_script... [13:15: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)31483", "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" : 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:15:02]POST & json_proto [13:15:02]process_json_proto [13:15:02]json parsed OK: [13:15:02]protocol is kg_v1.0 [13:15:02]action value=close_receipt [13:15:02]process_action close_receipt [13:15:02]cmd_close_receipt [13:15:02]MH_GetDate [13:15:02]Write to MH i2c: F0 00 00 CB 79 33 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 09 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 09 00 CB 79 00 EA 3C 1E 67 22 05 6E 64 E0 [13:15:02]GetLastDocTimeStamp 1730034829 [13:15:02]current date 1730034922 [13:15:02]FM_GetShiftState [13:15:02]SAM_PROTO_GetShiftState [13:15:02]wFMCommunicate request_size=4 [13:15:02]MH_SAM_APDU [13:15:02]CAPDU: 80 13 01 00 [13:15:02]Write to MH i2c: E2 08 00 CC 79 80 13 01 00 00 00 00 00 C2 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:02]Read from MH i2c: E2 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 0E 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 0E 00 CC 79 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 03 [13:15:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:02]wFMCommunicate OK [13:15:02]SAM_PROTO_GetShiftState done [13:15:02]FM_GetShiftState done [13:15:02]opened in 1729989159 [13:15:02]opened+sec_in_day 1730075559 [13:15:02]quantity*price = 100050 [13:15:02]sum+1 = 100052 [13:15: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 202 27.10.2024 13:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192170 ФПД: 187356105211680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192170&fm=187356105211680&tin=02508201610067®Number=0000000000091776&sum=100000 [13:15:03]StoreToDocumentArchive [13:15:03]shift 542 fd 192170 [13:15:03]save to /storage/0542/doc_00192170 [13:15:03]save last doc name /storage/0542/doc_00192170 to /storage/kkm_last_doc_name [13:15:03]save OK [13:15:03]Clear old archive folders... [13:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:03]tlvbuf is 018DC160 [13:15:03]SAM_PROTO_ClearQueue [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 09 00 00 [13:15:03]Write to MH i2c: E2 08 00 D9 79 80 09 00 00 00 00 00 00 C4 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [13:15:03]RAPDU: 90 00 [13:15:03]wFMCommunicate OK [13:15:03]SAM_PROTO_ClearQueue done [13:15:03]KKMCreateOFDPacket [13:15:03]OFDProtocolAddRootSTLVToBuf [13:15:03]FM_MakeSignedData [13:15:03]FM_MakeSignedData [13:15:03]SAM_PROTO_SignData [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 0D 01 02 [13:15:03]Write to MH i2c: E2 08 00 DA 79 80 0D 01 02 00 00 00 00 CC [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 DA 79 00 90 00 C7 [13:15:03]RAPDU: 90 00 [13:15:03]wFMCommunicate OK [13:15:03]wFMCommunicate request_size=255 [13:15:03]MH_SAM_APDU [13:15: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 CA 00 00 00 F4 03 04 00 EA 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EE 02 00 35 04 06 00 AA 66 3E 18 [13:15:03]Write to MH i2c: E2 02 01 DB 79 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 CA 00 00 00 F4 03 04 00 EA 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EE 02 00 35 04 06 00 AA 66 3E 18 00 00 EB [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 DB 79 00 90 00 C8 [13:15:03]RAPDU: 90 00 [13:15:03]wFMCommunicate OK [13:15:03]wFMCommunicate request_size=7 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 0D 02 02 02 FF 20 [13:15:03]Write to MH i2c: E2 0A 00 DC 79 80 0D 02 02 02 00 FF 20 00 00 F2 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 DC 79 00 90 00 C9 [13:15:03]RAPDU: 90 00 [13:15:03]wFMCommunicate OK [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 0D 03 02 [13:15:03]Write to MH i2c: E2 08 00 DD 79 80 0D 03 02 00 00 00 00 D1 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 0B 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 0B 00 DD 79 00 DD 3A 83 92 B5 E3 3A 2D 90 00 FD [13:15:03]RAPDU: DD 3A 83 92 B5 E3 3A 2D 90 00 [13:15:03]wFMCommunicate OK [13:15:03]SAM_PROTO_SignData done [13:15:03]FM_MakeSignedData done [13:15:03]CreateOFDProtocolMessage [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 11 00 00 [13:15:03]Write to MH i2c: E2 08 00 DE 79 80 11 00 00 00 00 00 00 D1 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 17 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 17 00 DE 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [13:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:03]wFMCommunicate OK [13:15:03]CreateOFDProtocolMessage done [13:15:03]OFDSenderStorePacket 192170 [13:15:03]StoreOFDPacket docnum=192170 [13:15:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F1 FF 04 01 DD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 CA 00 00 00 F4 03 04 00 EA 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EE 02 00 35 04 06 00 AA 66 3E 18 FF 20 DD 3A 83 92 B5 E3 3A 2D [13:15:03]CheckFolder [13:15:03]dirname=/storage/ofd_packets [13:15:03]CheckFolder done [13:15:03]ProducePacketName [13:15:03]name=ofd_packets/00192170 [13:15:03]NVStorageSaveData ofd_packets/00192170 [13:15:03]File name is /storage/ofd_packets/00192170 [13:15:03]Write 298 bytes [13:15:03]NVStorageSaveData done [13:15:03]OFDSenderStorePacket done [13:15:03]KKMCreateOFDPacket done [13:15:03]NVStorageSaveData kkm_last_timestamp [13:15:03]File name is /storage/kkm_last_timestamp [13:15:03]Write 4 bytes [13:15:03]NVStorageSaveData done [13:15:03]ExternCall_PrintAddStr [13:15:03]wPrintStart [13:15:03]Write to MH i2c: 01 00 00 DF 79 58 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 07 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: 01 07 00 DF 79 00 00 00 00 00 FF 0F 6D [13:15:03]RasterBufferAndPrint [13:15:03]line Счет N : (1)31483 [13:15:03]line ИНН: 02508201610067 [13:15:03]line Контрольно-Кассовый Чек [13:15:03]line ПРОДАЖА [13:15:03]line ТРК (МРК, ГНК) : 11 [13:15:03]line Товар: 2710194210 [13:15:03]line ДТ-К-5 [13:15:03]line 13.130 * 76.20 [13:15:03]line = 1000.51 [13:15:03]line НДС 12% НСП 1% [13:15:03]line > о реализуемом товаре [13:15:03]line ОКРУГЛЕНИЕ: -0.51 [13:15:03]line ИТОГО: 1000.00 [13:15:03]line Внесено: 1000.00 [13:15:03]line СДАЧА: 0.00 [13:15:03]line НСП 1% : 8.85 [13:15:03]line НДС 12% : 106.25 [13:15:03]line Наличными: 1000.00 [13:15:03]line Безнал.: 0.00 [13:15:03]line Место: АЗС № 170 "Партнер Нефть" [13:15:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:03]line СНО: Общий режим [13:15:03]line Чек 202 27.10.2024 13:15 [13:15:03]line Смена: 542 ФФД: 1.0 [13:15:03]line ЗНМ: 0300000110 [13:15:03]line РНМ: 0000000000091776 [13:15:03]line Версия ККМ: 001 [13:15:03]line ФМ: 0000000000871754 [13:15:03]line ФД: 192170 [13:15:03]line ФПД: 187356105211680 [13:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131522&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192170&fm=187356105211680&tin=02508201610067®Number=0000000000091776&sum=100000 [13:15:04]OFD Sender: Processing packet 192170 [packets to send 75, broken 74] [13:15:04]ProducePacketName [13:15:04]name=ofd_packets/00192170 [13:15:04]OFD Sender: To server: pG, [13:15:04]CommunicateWithHost lk.salyk.kg:30040 [13:15:04]ConnectInit lk.salyk.kg [13:15:04]written 0, free lines is 4095 [13:15:04]Connected sock=8 [13:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F1 FF 04 01 DD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 CA 00 00 00 F4 03 04 00 EA 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EE 02 00 35 04 06 00 AA 66 3E 18 FF 20 DD 3A 83 92 B5 E3 3A 2D [13:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 26 47 00 6D DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EE 02 00 F4 03 04 00 B2 E1 1D 67 B6 04 01 00 00 1E 61 FE B1 53 B8 28 4B [13:15:04]CommunicateWithHost err = 0 [13:15:04]CheckOFDResponse [13:15:04]1017 (14) - 77093643461234 [13:15:04]1041 (16) - 0000000000871754 [13:15:04]1040 (4) - 192170 [13:15:04]1012 (4) - 27.10.2024 06:46 [13:15:04]1206 (1) - 0 [13:15:04]OFD Sender: Remove packet 192170 [13:15:04]ProducePacketName [13:15:04]name=ofd_packets/00192170 [13:15:04]NVStorageDeleteData [13:15:04]Write to MH i2c: 01 00 00 0A 7A 84 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 07 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 07 00 0A 7A 00 00 00 00 00 AA 0C 41 [13:15:04]RasterBufferAndPrint [13:15:04]line [13:15:04]line [13:15:04]line [13:15:04]line [13:15:04]line [13:15:04]written 0, free lines is 3248 [13:15:04]MH_Cut [13:15:04]Write to MH i2c: D1 01 00 11 7A 01 5D [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: D1 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: D1 01 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: D1 01 00 11 7A 00 5C [13:15:04]Write to MH i2c: 01 00 00 12 7A 8C [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:05]OFD Sender: No OFD packet to send [13:15:05]*** Cut start [13:15:05]*** Partial cut [13:15:05]*** CUTSNS_PIN = 1 [13:15:05]*** CUTSNS_PIN = 0 [13:15:05]*** Brake cut motor [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]*** Stop cut motor [13:15:06]*** Cut end [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 12 7A 00 00 00 00 00 FF 0F A1 [13:15:06]process_action close_receipt done [13:15:06]requested_data is exist [13:15:06]produce_requested_data [13:15:06]requested_item fm.sn is exist - process it [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 11 00 00 [13:15:06]Write to MH i2c: E2 08 00 13 7A 80 11 00 00 00 00 00 00 07 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 13 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [13:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:06]wFMCommunicate OK [13:15:06]requested_item fd.num is exist - process it [13:15:06]SAM_PROTO_GetFieldsCounters [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 00 00 [13:15:06]Write to MH i2c: E2 08 00 14 7A 80 13 00 00 00 00 00 00 0A [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 14 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [13:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetFieldsCounters done [13:15:06]requested_item shift.num is exist - process it [13:15:06]requested_item shift.opened is exist - process it [13:15:06]req_shift_opened [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 15 7A 80 13 01 00 00 00 00 00 0C [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 15 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4D [13:15:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]req_shift_opened done [13:15:06]requested_item shift.open_date is exist - process it [13:15:06]req_shift_open_date [13:15:06]req_shift_open_date done [13:15:06]produce_requested_data done [13:15:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192170,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:15:06]process_action_free close_receipt [13:15:06]json_value_free [13:15:06]json_value_free done [13:15:06]process_json_proto returns [13:15:06]Send response to host [13:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192170,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:15:06]free response buf [13:15:06]execute_script done [13:15:06]execute_script returns [13:15:06]free content buf [13:15:06]Sock 5.Close socket [13:15:06]Sock 5.Thread stoped [13:15:06]accept exits with 6 [13:15:06]New connection [13:15:06]New thread 3066817892 created [13:15:06]Thread 3066961252 joined [13:15:06]Waiting for new connection... [13:15:06] Sock 6.Parse request [13:15:06]Sock 6.Check first char [13:15:06]Sock 6.First char is OK [13:15:06]request: POST /json_proto HTTP/1.0 [13:15:06]Method: POST [13:15:06]URL: /json_proto [13:15:06]Method is POST - this is cgi request [13:15:06]url: /json_proto [13:15:06]query_string will be loaded in cgi processing [13:15:06]execute_cgi json_proto POST (null) [13:15:06]execute_cgi path=json_proto method=POST [13:15:06]POST find Content-Length [13:15:06]Host: 172.17.63.131:8080 [13:15:06]Content-Length: 676 [13:15:06]Content-Type: application/json [13:15:06] [13:15:06]POST finish read [13:15:06]Found Content-Length = 676 [13:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]execute_script... [13:15: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)31484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]POST & json_proto [13:15:06]process_json_proto [13:15:06]json parsed OK: [13:15:06]protocol is kg_v1.0 [13:15:06]action value=close_receipt [13:15:06]process_action close_receipt [13:15:06]cmd_close_receipt [13:15:06]MH_GetDate [13:15:06]Write to MH i2c: F0 00 00 16 7A 7F [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 16 7A 00 EE 3C 1E 67 22 05 6E 64 30 [13:15:06]GetLastDocTimeStamp 1730034922 [13:15:06]current date 1730034926 [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 17 7A 80 13 01 00 00 00 00 00 0E [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 17 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4F [13:15:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]opened in 1729989159 [13:15:06]opened+sec_in_day 1730075559 [13:15:06]quantity*price = 60009 [13:15:06]sum+1 = 60010 [13:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 203 27.10.2024 13:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192171 ФПД: 91034235736524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131526&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192171&fm=91034235736524&tin=02508201610067®Number=0000000000091776&sum=60000 [13:15:08]StoreToDocumentArchive [13:15:08]shift 542 fd 192171 [13:15:08]save to /storage/0542/doc_00192171 [13:15:08]save last doc name /storage/0542/doc_00192171 to /storage/kkm_last_doc_name [13:15:08]save OK [13:15:08]Clear old archive folders... [13:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:08]tlvbuf is B6F57790 [13:15:08]SAM_PROTO_ClearQueue [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 09 00 00 [13:15:08]Write to MH i2c: E2 08 00 24 7A 80 09 00 00 00 00 00 00 10 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 24 7A 00 90 00 12 [13:15:08]RAPDU: 90 00 [13:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_ClearQueue done [13:15:08]KKMCreateOFDPacket [13:15:08]OFDProtocolAddRootSTLVToBuf [13:15:08]FM_MakeSignedData [13:15:08]FM_MakeSignedData [13:15:08]SAM_PROTO_SignData [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 0D 01 02 [13:15:08]Write to MH i2c: E2 08 00 25 7A 80 0D 01 02 00 00 00 00 18 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 25 7A 00 90 00 13 [13:15:08]RAPDU: 90 00 [13:15:08]wFMCommunicate OK [13:15:08]wFMCommunicate request_size=255 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EE 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EE 02 00 35 04 06 00 52 [13:15:08]Write to MH i2c: E2 02 01 26 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EE 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EE 02 00 35 04 06 00 52 00 00 10 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 26 7A 00 90 00 14 [13:15:08]RAPDU: 90 00 [13:15:08]wFMCommunicate OK [13:15:08]wFMCommunicate request_size=10 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 0D 02 02 05 CB 8F 48 91 CC [13:15:08]Write to MH i2c: E2 0D 00 27 7A 80 0D 02 02 05 00 CB 8F 48 91 CC 00 00 24 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 03 00 27 7A 00 90 00 15 [13:15:08]RAPDU: 90 00 [13:15:08]wFMCommunicate OK [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 0D 03 02 [13:15:08]Write to MH i2c: E2 08 00 28 7A 80 0D 03 02 00 00 00 00 1D [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0B 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0B 00 28 7A 00 AD 6E ED 9F 5D D1 6E 86 90 00 E7 [13:15:08]RAPDU: AD 6E ED 9F 5D D1 6E 86 90 00 [13:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_SignData done [13:15:08]FM_MakeSignedData done [13:15:08]CreateOFDProtocolMessage [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 11 00 00 [13:15:08]Write to MH i2c: E2 08 00 29 7A 80 11 00 00 00 00 00 00 1D [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 29 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [13:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:08]wFMCommunicate OK [13:15:08]CreateOFDProtocolMessage done [13:15:08]OFDSenderStorePacket 192171 [13:15:08]StoreOFDPacket docnum=192171 [13:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 FA 07 01 65 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EE 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EE 02 00 35 04 06 00 52 CB 8F 48 91 CC AD 6E ED 9F 5D D1 6E 86 [13:15:08]CheckFolder [13:15:08]dirname=/storage/ofd_packets [13:15:08]CheckFolder done [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00192171 [13:15:08]NVStorageSaveData ofd_packets/00192171 [13:15:08]File name is /storage/ofd_packets/00192171 [13:15:08]Write 301 bytes [13:15:08]NVStorageSaveData done [13:15:08]OFDSenderStorePacket done [13:15:08]KKMCreateOFDPacket done [13:15:08]NVStorageSaveData kkm_last_timestamp [13:15:08]File name is /storage/kkm_last_timestamp [13:15:08]Write 4 bytes [13:15:08]NVStorageSaveData done [13:15:08]ExternCall_PrintAddStr [13:15:08]wPrintStart [13:15:08]Write to MH i2c: 01 00 00 2A 7A A4 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 2A 7A 00 00 00 00 00 FF 0F B9 [13:15:08]RasterBufferAndPrint [13:15:08]line Счет N : (1)31484 [13:15:08]line ИНН: 02508201610067 [13:15:08]line Контрольно-Кассовый Чек [13:15:08]line ПРОДАЖА [13:15:08]line ТРК (МРК, ГНК) : 21 [13:15:08]line Товар: 2710124130 [13:15:08]line Аи-92-К-5 [13:15:08]line 8.970 * 66.90 [13:15:08]line = 600.09 [13:15:08]line НДС 12% НСП 1% [13:15:08]line > о реализуемом товаре [13:15:08]line ОКРУГЛЕНИЕ: -0.09 [13:15:08]line ИТОГО: 600.00 [13:15:08]line Внесено: 600.00 [13:15:08]line СДАЧА: 0.00 [13:15:08]line НСП 1% : 5.31 [13:15:08]line НДС 12% : 63.73 [13:15:08]line Наличными: 600.00 [13:15:08]line Безнал.: 0.00 [13:15:08]line Место: АЗС № 170 "Партнер Нефть" [13:15:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:08]line СНО: Общий режим [13:15:08]line Чек 203 27.10.2024 13:15 [13:15:08]line Смена: 542 ФФД: 1.0 [13:15:08]line ЗНМ: 0300000110 [13:15:08]line РНМ: 0000000000091776 [13:15:08]line Версия ККМ: 001 [13:15:08]line ФМ: 0000000000871754 [13:15:08]line ФД: 192171 [13:15:08]line ФПД: 91034235736524 [13:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131526&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192171&fm=91034235736524&tin=02508201610067®Number=0000000000091776&sum=60000 [13:15:08]OFD Sender: Processing packet 192171 [packets to send 75, broken 74] [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00192171 [13:15:08]OFD Sender: To server: pG, [13:15:08]CommunicateWithHost lk.salyk.kg:30040 [13:15:08]ConnectInit lk.salyk.kg [13:15:08]written 0, free lines is 4095 [13:15:09]Connected sock=9 [13:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 FA 07 01 65 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EE 3C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EE 02 00 35 04 06 00 52 CB 8F 48 91 CC AD 6E ED 9F 5D D1 6E 86 [13:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BD 64 47 00 74 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EE 02 00 F4 03 04 00 B6 E1 1D 67 B6 04 01 00 00 D3 41 55 9E 32 57 AC 37 [13:15:09]CommunicateWithHost err = 0 [13:15:09]CheckOFDResponse [13:15:09]1017 (14) - 77093643461234 [13:15:09]1041 (16) - 0000000000871754 [13:15:09]1040 (4) - 192171 [13:15:09]1012 (4) - 27.10.2024 06:46 [13:15:09]1206 (1) - 0 [13:15:09]OFD Sender: Remove packet 192171 [13:15:09]ProducePacketName [13:15:09]name=ofd_packets/00192171 [13:15:09]NVStorageDeleteData [13:15:09]Write to MH i2c: 01 00 00 55 7A CF [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: 01 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: 01 07 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: 01 07 00 55 7A 00 00 00 00 00 B4 0C 96 [13:15:09]RasterBufferAndPrint [13:15:09]line [13:15:09]line [13:15:09]line [13:15:09]line [13:15:09]line [13:15:09]written 0, free lines is 3265 [13:15:09]MH_Cut [13:15:09]Write to MH i2c: D1 01 00 5C 7A 01 A8 [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: D1 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: D1 01 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: D1 01 00 5C 7A 00 A7 [13:15:09]Write to MH i2c: 01 00 00 5D 7A D7 [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]OFD Sender: No OFD packet to send [13:15:10]*** Cut start [13:15:10]*** Partial cut [13:15:10]*** CUTSNS_PIN = 1 [13:15:10]*** CUTSNS_PIN = 0 [13:15:10]*** Brake cut motor [13:15:10]Read from MH i2c: 01 [13:15:10]MH_I2C_Read... [13:15:10]*** Stop cut motor [13:15:10]*** Cut end [13:15:10]Read from MH i2c: 01 07 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: 01 07 00 5D 7A 00 00 00 00 00 FF 0F EC [13:15:10]process_action close_receipt done [13:15:10]requested_data is exist [13:15:10]produce_requested_data [13:15:10]requested_item fm.sn is exist - process it [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 11 00 00 [13:15:10]Write to MH i2c: E2 08 00 5E 7A 80 11 00 00 00 00 00 00 52 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 5E 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [13:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:10]wFMCommunicate OK [13:15:10]requested_item fd.num is exist - process it [13:15:10]SAM_PROTO_GetFieldsCounters [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 00 00 [13:15:10]Write to MH i2c: E2 08 00 5F 7A 80 13 00 00 00 00 00 00 55 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:11]Read from MH i2c: E2 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 62 00 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 62 00 5F 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [13:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:11]wFMCommunicate OK [13:15:11]SAM_PROTO_GetFieldsCounters done [13:15:11]requested_item shift.num is exist - process it [13:15:11]requested_item shift.opened is exist - process it [13:15:11]req_shift_opened [13:15:11]FM_GetShiftState [13:15:11]SAM_PROTO_GetShiftState [13:15:11]wFMCommunicate request_size=4 [13:15:11]MH_SAM_APDU [13:15:11]CAPDU: 80 13 01 00 [13:15:11]Write to MH i2c: E2 08 00 60 7A 80 13 01 00 00 00 00 00 57 [13:15:11]Write i2c OK [13:15:11]MH_I2C_Read... [13:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:11]Read from MH i2c: E2 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 0E 00 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 0E 00 60 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 98 [13:15:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:11]wFMCommunicate OK [13:15:11]SAM_PROTO_GetShiftState done [13:15:11]FM_GetShiftState done [13:15:11]req_shift_opened done [13:15:11]requested_item shift.open_date is exist - process it [13:15:11]req_shift_open_date [13:15:11]req_shift_open_date done [13:15:11]produce_requested_data done [13:15:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192171,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:15:11]process_action_free close_receipt [13:15:11]json_value_free [13:15:11]json_value_free done [13:15:11]process_json_proto returns [13:15:11]Send response to host [13:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192171,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:15:11]free response buf [13:15:11]execute_script done [13:15:11]execute_script returns [13:15:11]free content buf [13:15:11]Sock 6.Close socket [13:15:11]Sock 6.Thread stoped [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:44]accept exits with 5 [13:15:44]New connection [13:15:44]New thread 3066961252 created [13:15:44]Thread 3066817892 joined [13:15:44]Waiting for new connection... [13:15:44] Sock 5.Parse request [13:15:44]Sock 5.Check first char [13:15:44]Sock 5.First char is OK [13:15:44]request: POST /json_proto HTTP/1.0 [13:15:44]Method: POST [13:15:44]URL: /json_proto [13:15:44]Method is POST - this is cgi request [13:15:44]url: /json_proto [13:15:44]query_string will be loaded in cgi processing [13:15:44]execute_cgi json_proto POST (null) [13:15:44]execute_cgi path=json_proto method=POST [13:15:44]POST find Content-Length [13:15:44]Host: 172.17.63.131:8080 [13:15:44]Content-Length: 676 [13:15:44]Content-Type: application/json [13:15:44] [13:15:44]POST finish read [13:15:44]Found Content-Length = 676 [13:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:44]execute_script... [13:15:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:44]POST & json_proto [13:15:44]process_json_proto [13:15:44]json parsed OK: [13:15:44]protocol is kg_v1.0 [13:15:44]action value=close_receipt [13:15:44]process_action close_receipt [13:15:44]cmd_close_receipt [13:15:44]MH_GetDate [13:15:44]Write to MH i2c: F0 00 00 61 7A CA [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: F0 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: F0 09 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: F0 09 00 61 7A 00 15 3D 1E 67 22 05 6E 64 A3 [13:15:44]GetLastDocTimeStamp 1730034926 [13:15:44]current date 1730034965 [13:15:44]FM_GetShiftState [13:15:44]SAM_PROTO_GetShiftState [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 13 01 00 [13:15:44]Write to MH i2c: E2 08 00 62 7A 80 13 01 00 00 00 00 00 59 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 0E 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 0E 00 62 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9A [13:15:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:44]wFMCommunicate OK [13:15:44]SAM_PROTO_GetShiftState done [13:15:44]FM_GetShiftState done [13:15:44]opened in 1729989159 [13:15:44]opened+sec_in_day 1730075559 [13:15:44]quantity*price = 30038 [13:15:44]sum+1 = 30039 [13:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 204 27.10.2024 13:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192172 ФПД: 10669964592537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131605&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192172&fm=10669964592537&tin=02508201610067®Number=0000000000091776&sum=30000 [13:15:46]StoreToDocumentArchive [13:15:46]shift 542 fd 192172 [13:15:46]save to /storage/0542/doc_00192172 [13:15:46]save last doc name /storage/0542/doc_00192172 to /storage/kkm_last_doc_name [13:15:46]save OK [13:15:46]Clear old archive folders... [13:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:46]tlvbuf is 0158CFE0 [13:15:46]SAM_PROTO_ClearQueue [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 09 00 00 [13:15:46]Write to MH i2c: E2 08 00 6F 7A 80 09 00 00 00 00 00 00 5B [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 6F 7A 00 90 00 5D [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]SAM_PROTO_ClearQueue done [13:15:46]KKMCreateOFDPacket [13:15:46]OFDProtocolAddRootSTLVToBuf [13:15:46]FM_MakeSignedData [13:15:46]FM_MakeSignedData [13:15:46]SAM_PROTO_SignData [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 0D 01 02 [13:15:46]Write to MH i2c: E2 08 00 70 7A 80 0D 01 02 00 00 00 00 63 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 70 7A 00 90 00 5E [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]wFMCommunicate request_size=255 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 15 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EE 02 00 35 04 06 00 09 [13:15:46]Write to MH i2c: E2 02 01 71 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 15 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EE 02 00 35 04 06 00 09 00 00 53 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 71 7A 00 90 00 5F [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]wFMCommunicate request_size=10 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 0D 02 02 05 B4 4B 73 05 99 [13:15:46]Write to MH i2c: E2 0D 00 72 7A 80 0D 02 02 05 00 B4 4B 73 05 99 00 00 80 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 72 7A 00 90 00 60 [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 0D 03 02 [13:15:46]Write to MH i2c: E2 08 00 73 7A 80 0D 03 02 00 00 00 00 68 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 0B 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 0B 00 73 7A 00 7A 63 2C 0B 91 BC 67 4E 90 00 7F [13:15:46]RAPDU: 7A 63 2C 0B 91 BC 67 4E 90 00 [13:15:46]wFMCommunicate OK [13:15:46]SAM_PROTO_SignData done [13:15:46]FM_MakeSignedData done [13:15:46]CreateOFDProtocolMessage [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 11 00 00 [13:15:46]Write to MH i2c: E2 08 00 74 7A 80 11 00 00 00 00 00 00 68 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 17 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 17 00 74 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [13:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:46]wFMCommunicate OK [13:15:46]CreateOFDProtocolMessage done [13:15:46]OFDSenderStorePacket 192172 [13:15:46]StoreOFDPacket docnum=192172 [13:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 81 07 01 F3 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 15 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EE 02 00 35 04 06 00 09 B4 4B 73 05 99 7A 63 2C 0B 91 BC 67 4E [13:15:46]CheckFolder [13:15:46]dirname=/storage/ofd_packets [13:15:46]CheckFolder done [13:15:46]ProducePacketName [13:15:46]name=ofd_packets/00192172 [13:15:46]NVStorageSaveData ofd_packets/00192172 [13:15:46]File name is /storage/ofd_packets/00192172 [13:15:46]Write 301 bytes [13:15:46]NVStorageSaveData done [13:15:46]OFDSenderStorePacket done [13:15:46]KKMCreateOFDPacket done [13:15:46]NVStorageSaveData kkm_last_timestamp [13:15:46]File name is /storage/kkm_last_timestamp [13:15:46]Write 4 bytes [13:15:46]NVStorageSaveData done [13:15:46]ExternCall_PrintAddStr [13:15:46]wPrintStart [13:15:46]Write to MH i2c: 01 00 00 75 7A EF [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: 01 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: 01 07 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: 01 07 00 75 7A 00 00 00 00 00 FF 0F 04 [13:15:46]RasterBufferAndPrint [13:15:46]line Счет N : (1)31485 [13:15:46]line ИНН: 02508201610067 [13:15:46]line Контрольно-Кассовый Чек [13:15:46]line ПРОДАЖА [13:15:46]line ТРК (МРК, ГНК) : 12 [13:15:46]line Товар: 2710124130 [13:15:46]line Аи-92-К-5 [13:15:46]line 4.490 * 66.90 [13:15:46]line = 300.38 [13:15:46]line НДС 12% НСП 1% [13:15:46]line > о реализуемом товаре [13:15:46]line ОКРУГЛЕНИЕ: -0.38 [13:15:46]line ИТОГО: 300.00 [13:15:46]line Внесено: 300.00 [13:15:46]line СДАЧА: 0.00 [13:15:46]line НСП 1% : 2.66 [13:15:46]line НДС 12% : 31.90 [13:15:46]line Наличными: 300.00 [13:15:46]line Безнал.: 0.00 [13:15:46]line Место: АЗС № 170 "Партнер Нефть" [13:15:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:46]line СНО: Общий режим [13:15:46]line Чек 204 27.10.2024 13:16 [13:15:46]line Смена: 542 ФФД: 1.0 [13:15:46]line ЗНМ: 0300000110 [13:15:46]line РНМ: 0000000000091776 [13:15:46]line Версия ККМ: 001 [13:15:46]line ФМ: 0000000000871754 [13:15:46]line ФД: 192172 [13:15:46]line ФПД: 10669964592537 [13:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131605&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192172&fm=10669964592537&tin=02508201610067®Number=0000000000091776&sum=30000 [13:15:46]OFD Sender: Processing packet 192172 [packets to send 75, broken 74] [13:15:46]ProducePacketName [13:15:46]name=ofd_packets/00192172 [13:15:46]OFD Sender: To server: pG, [13:15:46]CommunicateWithHost lk.salyk.kg:30040 [13:15:46]ConnectInit lk.salyk.kg [13:15:46]written 0, free lines is 4095 [13:15:47]Connected sock=8 [13:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 81 07 01 F3 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 15 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EE 02 00 35 04 06 00 09 B4 4B 73 05 99 7A 63 2C 0B 91 BC 67 4E [13:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 99 47 00 7B 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EE 02 00 F4 03 04 00 DC E1 1D 67 B6 04 01 00 00 B8 95 F6 36 16 D0 9E F7 [13:15:47]CommunicateWithHost err = 0 [13:15:47]CheckOFDResponse [13:15:47]1017 (14) - 77093643461234 [13:15:47]1041 (16) - 0000000000871754 [13:15:47]1040 (4) - 192172 [13:15:47]1012 (4) - 27.10.2024 06:46 [13:15:47]1206 (1) - 0 [13:15:47]OFD Sender: Remove packet 192172 [13:15:47]ProducePacketName [13:15:47]name=ofd_packets/00192172 [13:15:47]NVStorageDeleteData [13:15:47]Write to MH i2c: 01 00 00 A0 7A 1A [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 A0 7A 00 00 00 00 00 A3 0C D0 [13:15:47]RasterBufferAndPrint [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]written 0, free lines is 3241 [13:15:47]MH_Cut [13:15:47]Write to MH i2c: D1 01 00 A7 7A 01 F3 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 01 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 01 00 A7 7A 00 F2 [13:15:47]Write to MH i2c: 01 00 00 A8 7A 22 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]OFD Sender: No OFD packet to send [13:15:48]*** Cut start [13:15:48]*** Partial cut [13:15:48]*** CUTSNS_PIN = 1 [13:15:48]*** CUTSNS_PIN = 0 [13:15:48]*** Brake cut motor [13:15:48]Read from MH i2c: 01 [13:15:48]MH_I2C_Read... [13:15:48]*** Stop cut motor [13:15:48]*** Cut end [13:15:48]Read from MH i2c: 01 07 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: 01 07 00 A8 7A 00 00 00 00 00 FF 0F 37 [13:15:48]process_action close_receipt done [13:15:48]requested_data is exist [13:15:48]produce_requested_data [13:15:48]requested_item fm.sn is exist - process it [13:15:48]wFMCommunicate request_size=4 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 11 00 00 [13:15:48]Write to MH i2c: E2 08 00 A9 7A 80 11 00 00 00 00 00 00 9D [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:48]Read from MH i2c: E2 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 17 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 17 00 A9 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [13:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:48]wFMCommunicate OK [13:15:48]requested_item fd.num is exist - process it [13:15:48]SAM_PROTO_GetFieldsCounters [13:15:48]wFMCommunicate request_size=4 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 13 00 00 [13:15:48]Write to MH i2c: E2 08 00 AA 7A 80 13 00 00 00 00 00 00 A0 [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 62 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 62 00 AA 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [13:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:49]wFMCommunicate OK [13:15:49]SAM_PROTO_GetFieldsCounters done [13:15:49]requested_item shift.num is exist - process it [13:15:49]requested_item shift.opened is exist - process it [13:15:49]req_shift_opened [13:15:49]FM_GetShiftState [13:15:49]SAM_PROTO_GetShiftState [13:15:49]wFMCommunicate request_size=4 [13:15:49]MH_SAM_APDU [13:15:49]CAPDU: 80 13 01 00 [13:15:49]Write to MH i2c: E2 08 00 AB 7A 80 13 01 00 00 00 00 00 A2 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0E 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0E 00 AB 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E3 [13:15:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:15:49]wFMCommunicate OK [13:15:49]SAM_PROTO_GetShiftState done [13:15:49]FM_GetShiftState done [13:15:49]req_shift_opened done [13:15:49]requested_item shift.open_date is exist - process it [13:15:49]req_shift_open_date [13:15:49]req_shift_open_date done [13:15:49]produce_requested_data done [13:15:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192172,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:15:49]process_action_free close_receipt [13:15:49]json_value_free [13:15:49]json_value_free done [13:15:49]process_json_proto returns [13:15:49]Send response to host [13:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192172,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:15:49]free response buf [13:15:49]execute_script done [13:15:49]execute_script returns [13:15:49]free content buf [13:15:49]Sock 5.Close socket [13:15:49]Sock 5.Thread stoped [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]accept exits with 6 [13:17:12]New connection [13:17:12]New thread 3066817892 created [13:17:12]Thread 3066961252 joined [13:17:12]Waiting for new connection... [13:17:12] Sock 6.Parse request [13:17:12]Sock 6.Check first char [13:17:12]Sock 6.First char is OK [13:17:12]request: POST /json_proto HTTP/1.0 [13:17:12]Method: POST [13:17:12]URL: /json_proto [13:17:12]Method is POST - this is cgi request [13:17:12]url: /json_proto [13:17:12]query_string will be loaded in cgi processing [13:17:12]execute_cgi json_proto POST (null) [13:17:12]execute_cgi path=json_proto method=POST [13:17:12]POST find Content-Length [13:17:12]Host: 172.17.63.131:8080 [13:17:12]Content-Length: 681 [13:17:12]Content-Type: application/json [13:17:12] [13:17:12]POST finish read [13:17:12]Found Content-Length = 681 [13:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]execute_script... [13:17: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)31486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]POST & json_proto [13:17:12]process_json_proto [13:17:12]json parsed OK: [13:17:12]protocol is kg_v1.0 [13:17:12]action value=close_receipt [13:17:12]process_action close_receipt [13:17:12]cmd_close_receipt [13:17:12]MH_GetDate [13:17:12]Write to MH i2c: F0 00 00 AC 7A 15 [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 AC 7A 00 6C 3D 1E 67 22 05 6E 64 45 [13:17:12]GetLastDocTimeStamp 1730034965 [13:17:12]current date 1730035052 [13:17:12]FM_GetShiftState [13:17:12]SAM_PROTO_GetShiftState [13:17:12]wFMCommunicate request_size=4 [13:17:12]MH_SAM_APDU [13:17:12]CAPDU: 80 13 01 00 [13:17:12]Write to MH i2c: E2 08 00 AD 7A 80 13 01 00 00 00 00 00 A4 [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:12]Read from MH i2c: E2 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 AD 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E5 [13:17:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:17:12]wFMCommunicate OK [13:17:12]SAM_PROTO_GetShiftState done [13:17:12]FM_GetShiftState done [13:17:12]opened in 1729989159 [13:17:12]opened+sec_in_day 1730075559 [13:17:12]quantity*price = 200031 [13:17:12]sum+1 = 200032 [13:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 205 27.10.2024 13:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192173 ФПД: 166393284510932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192173&fm=166393284510932&tin=02508201610067®Number=0000000000091776&sum=200000 [13:17:13]StoreToDocumentArchive [13:17:13]shift 542 fd 192173 [13:17:13]save to /storage/0542/doc_00192173 [13:17:13]save last doc name /storage/0542/doc_00192173 to /storage/kkm_last_doc_name [13:17:13]save OK [13:17:13]Clear old archive folders... [13:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:13]tlvbuf is 016143D0 [13:17:13]SAM_PROTO_ClearQueue [13:17:13]wFMCommunicate request_size=4 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 09 00 00 [13:17:13]Write to MH i2c: E2 08 00 BA 7A 80 09 00 00 00 00 00 00 A6 [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:13]Read from MH i2c: E2 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 BA 7A 00 90 00 A8 [13:17:13]RAPDU: 90 00 [13:17:13]wFMCommunicate OK [13:17:13]SAM_PROTO_ClearQueue done [13:17:13]KKMCreateOFDPacket [13:17:13]OFDProtocolAddRootSTLVToBuf [13:17:13]FM_MakeSignedData [13:17:13]FM_MakeSignedData [13:17:13]SAM_PROTO_SignData [13:17:13]wFMCommunicate request_size=4 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 0D 01 02 [13:17:13]Write to MH i2c: E2 08 00 BB 7A 80 0D 01 02 00 00 00 00 AE [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:13]Read from MH i2c: E2 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 BB 7A 00 90 00 A9 [13:17:13]RAPDU: 90 00 [13:17:13]wFMCommunicate OK [13:17:13]wFMCommunicate request_size=255 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 6C 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EE 02 00 35 04 06 00 97 [13:17:13]Write to MH i2c: E2 02 01 BC 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 6C 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EE 02 00 35 04 06 00 97 00 00 D3 [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 BC 7A 00 90 00 AA [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=10 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 02 02 05 55 74 9D C4 D4 [13:17:14]Write to MH i2c: E2 0D 00 BD 7A 80 0D 02 02 05 00 55 74 9D C4 D4 00 00 B9 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 BD 7A 00 90 00 AB [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 03 02 [13:17:14]Write to MH i2c: E2 08 00 BE 7A 80 0D 03 02 00 00 00 00 B3 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 BE 7A 00 D3 47 9C 66 C9 A9 97 67 90 00 40 [13:17:14]RAPDU: D3 47 9C 66 C9 A9 97 67 90 00 [13:17:14]wFMCommunicate OK [13:17:14]SAM_PROTO_SignData done [13:17:14]FM_MakeSignedData done [13:17:14]CreateOFDProtocolMessage [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 11 00 00 [13:17:14]Write to MH i2c: E2 08 00 BF 7A 80 11 00 00 00 00 00 00 B3 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 BF 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [13:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:14]wFMCommunicate OK [13:17:14]CreateOFDProtocolMessage done [13:17:14]OFDSenderStorePacket 192173 [13:17:14]StoreOFDPacket docnum=192173 [13:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 E7 07 01 5E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 6C 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EE 02 00 35 04 06 00 97 55 74 9D C4 D4 D3 47 9C 66 C9 A9 97 67 [13:17:14]CheckFolder [13:17:14]dirname=/storage/ofd_packets [13:17:14]CheckFolder done [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00192173 [13:17:14]NVStorageSaveData ofd_packets/00192173 [13:17:14]File name is /storage/ofd_packets/00192173 [13:17:14]Write 301 bytes [13:17:14]NVStorageSaveData done [13:17:14]OFDSenderStorePacket done [13:17:14]KKMCreateOFDPacket done [13:17:14]NVStorageSaveData kkm_last_timestamp [13:17:14]File name is /storage/kkm_last_timestamp [13:17:14]Write 4 bytes [13:17:14]NVStorageSaveData done [13:17:14]ExternCall_PrintAddStr [13:17:14]wPrintStart [13:17:14]Write to MH i2c: 01 00 00 C0 7A 3A [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 C0 7A 00 00 00 00 00 FF 0F 4F [13:17:14]RasterBufferAndPrint [13:17:14]line Счет N : (1)31486 [13:17:14]line ИНН: 02508201610067 [13:17:14]line Контрольно-Кассовый Чек [13:17:14]line ПРОДАЖА [13:17:14]line ТРК (МРК, ГНК) : 21 [13:17:14]line Товар: 2710124130 [13:17:14]line Аи-92-К-5 [13:17:14]line 29.900 * 66.90 [13:17:14]line = 2000.31 [13:17:14]line НДС 12% НСП 1% [13:17:14]line > о реализуемом товаре [13:17:14]line ОКРУГЛЕНИЕ: -0.31 [13:17:14]line ИТОГО: 2000.00 [13:17:14]line Внесено: 2000.00 [13:17:14]line СДАЧА: 0.00 [13:17:14]line НСП 1% : 17.70 [13:17:14]line НДС 12% : 212.42 [13:17:14]line Наличными: 2000.00 [13:17:14]line Безнал.: 0.00 [13:17:14]line Место: АЗС № 170 "Партнер Нефть" [13:17:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:17:14]line СНО: Общий режим [13:17:14]line Чек 205 27.10.2024 13:17 [13:17:14]line Смена: 542 ФФД: 1.0 [13:17:14]line ЗНМ: 0300000110 [13:17:14]line РНМ: 0000000000091776 [13:17:14]line Версия ККМ: 001 [13:17:14]line ФМ: 0000000000871754 [13:17:14]line ФД: 192173 [13:17:14]line ФПД: 166393284510932 [13:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192173&fm=166393284510932&tin=02508201610067®Number=0000000000091776&sum=200000 [13:17:14]OFD Sender: Processing packet 192173 [packets to send 75, broken 74] [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00192173 [13:17:14]OFD Sender: To server: pG, [13:17:14]CommunicateWithHost lk.salyk.kg:30040 [13:17:14]ConnectInit lk.salyk.kg [13:17:14]written 0, free lines is 4095 [13:17:14]Connected sock=8 [13:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 E7 07 01 5E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 6C 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EE 02 00 35 04 06 00 97 55 74 9D C4 D4 D3 47 9C 66 C9 A9 97 67 [13:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A3 B3 47 00 FA 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EE 02 00 F4 03 04 00 34 E2 1D 67 B6 04 01 00 00 2E 50 36 9E 11 3D F0 A9 [13:17:14]CommunicateWithHost err = 0 [13:17:14]CheckOFDResponse [13:17:14]1017 (14) - 77093643461234 [13:17:14]1041 (16) - 0000000000871754 [13:17:14]1040 (4) - 192173 [13:17:14]1012 (4) - 27.10.2024 06:48 [13:17:14]1206 (1) - 0 [13:17:14]OFD Sender: Remove packet 192173 [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00192173 [13:17:14]NVStorageDeleteData [13:17:14]Write to MH i2c: 01 00 00 EB 7A 65 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 EB 7A 00 00 00 00 00 AA 0C 22 [13:17:14]RasterBufferAndPrint [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]written 0, free lines is 3248 [13:17:14]MH_Cut [13:17:14]Write to MH i2c: D1 01 00 F2 7A 01 3E [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 01 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 01 00 F2 7A 00 3D [13:17:14]Write to MH i2c: 01 00 00 F3 7A 6D [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:15]OFD Sender: No OFD packet to send [13:17:15]*** Cut start [13:17:15]*** Partial cut [13:17:15]*** CUTSNS_PIN = 1 [13:17:15]*** CUTSNS_PIN = 0 [13:17:16]*** Brake cut motor [13:17:16]Read from MH i2c: 01 [13:17:16]MH_I2C_Read... [13:17:16]*** Stop cut motor [13:17:16]*** Cut end [13:17:16]Read from MH i2c: 01 07 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: 01 07 00 F3 7A 00 00 00 00 00 FF 0F 82 [13:17:16]process_action close_receipt done [13:17:16]requested_data is exist [13:17:16]produce_requested_data [13:17:16]requested_item fm.sn is exist - process it [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 11 00 00 [13:17:16]Write to MH i2c: E2 08 00 F4 7A 80 11 00 00 00 00 00 00 E8 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 F4 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [13:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:16]wFMCommunicate OK [13:17:16]requested_item fd.num is exist - process it [13:17:16]SAM_PROTO_GetFieldsCounters [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 00 00 [13:17:16]Write to MH i2c: E2 08 00 F5 7A 80 13 00 00 00 00 00 00 EB [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 F5 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [13:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetFieldsCounters done [13:17:16]requested_item shift.num is exist - process it [13:17:16]requested_item shift.opened is exist - process it [13:17:16]req_shift_opened [13:17:16]FM_GetShiftState [13:17:16]SAM_PROTO_GetShiftState [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 01 00 [13:17:16]Write to MH i2c: E2 08 00 F6 7A 80 13 01 00 00 00 00 00 ED [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 F6 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2E [13:17:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetShiftState done [13:17:16]FM_GetShiftState done [13:17:16]req_shift_opened done [13:17:16]requested_item shift.open_date is exist - process it [13:17:16]req_shift_open_date [13:17:16]req_shift_open_date done [13:17:16]produce_requested_data done [13:17:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192173,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:17:16]process_action_free close_receipt [13:17:16]json_value_free [13:17:16]json_value_free done [13:17:16]process_json_proto returns [13:17:16]Send response to host [13:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192173,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:17:16]free response buf [13:17:16]execute_script done [13:17:16]execute_script returns [13:17:16]free content buf [13:17:16]Sock 6.Close socket [13:17:16]Sock 6.Thread stoped [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:47]accept exits with 5 [13:17:47]New connection [13:17:47]New thread 3066961252 created [13:17:47]Thread 3066817892 joined [13:17:47]Waiting for new connection... [13:17:47] Sock 5.Parse request [13:17:47]Sock 5.Check first char [13:17:47]Sock 5.First char is OK [13:17:47]request: POST /json_proto HTTP/1.0 [13:17:47]Method: POST [13:17:47]URL: /json_proto [13:17:47]Method is POST - this is cgi request [13:17:47]url: /json_proto [13:17:47]query_string will be loaded in cgi processing [13:17:47]execute_cgi json_proto POST (null) [13:17:47]execute_cgi path=json_proto method=POST [13:17:47]POST find Content-Length [13:17:47]Host: 172.17.63.131:8080 [13:17:47]Content-Length: 676 [13:17:47]Content-Type: application/json [13:17:47] [13:17:47]POST finish read [13:17:47]Found Content-Length = 676 [13:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:47]execute_script... [13:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:47]POST & json_proto [13:17:47]process_json_proto [13:17:47]json parsed OK: [13:17:47]protocol is kg_v1.0 [13:17:47]action value=close_receipt [13:17:47]process_action close_receipt [13:17:47]cmd_close_receipt [13:17:47]MH_GetDate [13:17:47]Write to MH i2c: F0 00 00 F7 7A 60 [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: F0 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: F0 09 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: F0 09 00 F7 7A 00 8F 3D 1E 67 22 05 6E 64 B3 [13:17:47]GetLastDocTimeStamp 1730035052 [13:17:47]current date 1730035087 [13:17:47]FM_GetShiftState [13:17:47]SAM_PROTO_GetShiftState [13:17:47]wFMCommunicate request_size=4 [13:17:47]MH_SAM_APDU [13:17:47]CAPDU: 80 13 01 00 [13:17:47]Write to MH i2c: E2 08 00 F8 7A 80 13 01 00 00 00 00 00 EF [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:47]Read from MH i2c: E2 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: E2 0E 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: E2 0E 00 F8 7A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 30 [13:17:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:17:47]wFMCommunicate OK [13:17:47]SAM_PROTO_GetShiftState done [13:17:47]FM_GetShiftState done [13:17:47]opened in 1729989159 [13:17:47]opened+sec_in_day 1730075559 [13:17:47]quantity*price = 50041 [13:17:47]sum+1 = 50042 [13:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 206 27.10.2024 13:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192174 ФПД: 105540795769252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192174&fm=105540795769252&tin=02508201610067®Number=0000000000091776&sum=50000 [13:17:48]StoreToDocumentArchive [13:17:48]shift 542 fd 192174 [13:17:48]save to /storage/0542/doc_00192174 [13:17:48]save last doc name /storage/0542/doc_00192174 to /storage/kkm_last_doc_name [13:17:48]save OK [13:17:48]Clear old archive folders... [13:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:48]tlvbuf is 0187D4B0 [13:17:48]SAM_PROTO_ClearQueue [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 09 00 00 [13:17:48]Write to MH i2c: E2 08 00 05 7B 80 09 00 00 00 00 00 00 F2 [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 03 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 03 00 05 7B 00 90 00 F4 [13:17:48]RAPDU: 90 00 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_ClearQueue done [13:17:48]KKMCreateOFDPacket [13:17:48]OFDProtocolAddRootSTLVToBuf [13:17:48]FM_MakeSignedData [13:17:48]FM_MakeSignedData [13:17:48]SAM_PROTO_SignData [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 0D 01 02 [13:17:48]Write to MH i2c: E2 08 00 06 7B 80 0D 01 02 00 00 00 00 FA [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:49]Read from MH i2c: E2 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 06 7B 00 90 00 F5 [13:17:49]RAPDU: 90 00 [13:17:49]wFMCommunicate OK [13:17:49]wFMCommunicate request_size=255 [13:17:49]MH_SAM_APDU [13:17:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 90 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EE 02 00 35 04 06 00 5F [13:17:49]Write to MH i2c: E2 02 01 07 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 90 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EE 02 00 35 04 06 00 5F 00 00 CB [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:49]Read from MH i2c: E2 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 07 7B 00 90 00 F6 [13:17:49]RAPDU: 90 00 [13:17:49]wFMCommunicate OK [13:17:49]wFMCommunicate request_size=10 [13:17:49]MH_SAM_APDU [13:17:49]CAPDU: 80 0D 02 02 05 FD 21 A4 21 A4 [13:17:49]Write to MH i2c: E2 0D 00 08 7B 80 0D 02 02 05 00 FD 21 A4 21 A4 00 00 8E [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:49]Read from MH i2c: E2 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 03 00 08 7B 00 90 00 F7 [13:17:49]RAPDU: 90 00 [13:17:49]wFMCommunicate OK [13:17:49]wFMCommunicate request_size=4 [13:17:49]MH_SAM_APDU [13:17:49]CAPDU: 80 0D 03 02 [13:17:49]Write to MH i2c: E2 08 00 09 7B 80 0D 03 02 00 00 00 00 FF [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:49]Read from MH i2c: E2 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 0B 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 0B 00 09 7B 00 25 7B 1A 10 6E 1B C5 52 90 00 6A [13:17:49]RAPDU: 25 7B 1A 10 6E 1B C5 52 90 00 [13:17:49]wFMCommunicate OK [13:17:49]SAM_PROTO_SignData done [13:17:49]FM_MakeSignedData done [13:17:49]CreateOFDProtocolMessage [13:17:49]wFMCommunicate request_size=4 [13:17:49]MH_SAM_APDU [13:17:49]CAPDU: 80 11 00 00 [13:17:49]Write to MH i2c: E2 08 00 0A 7B 80 11 00 00 00 00 00 00 FF [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:49]Read from MH i2c: E2 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 17 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: E2 17 00 0A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [13:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:49]wFMCommunicate OK [13:17:49]CreateOFDProtocolMessage done [13:17:49]OFDSenderStorePacket 192174 [13:17:49]StoreOFDPacket docnum=192174 [13:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F 01 07 01 16 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 90 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EE 02 00 35 04 06 00 5F FD 21 A4 21 A4 25 7B 1A 10 6E 1B C5 52 [13:17:49]CheckFolder [13:17:49]dirname=/storage/ofd_packets [13:17:49]CheckFolder done [13:17:49]ProducePacketName [13:17:49]name=ofd_packets/00192174 [13:17:49]NVStorageSaveData ofd_packets/00192174 [13:17:49]File name is /storage/ofd_packets/00192174 [13:17:49]Write 301 bytes [13:17:49]NVStorageSaveData done [13:17:49]OFDSenderStorePacket done [13:17:49]KKMCreateOFDPacket done [13:17:49]NVStorageSaveData kkm_last_timestamp [13:17:49]File name is /storage/kkm_last_timestamp [13:17:49]Write 4 bytes [13:17:49]NVStorageSaveData done [13:17:49]ExternCall_PrintAddStr [13:17:49]wPrintStart [13:17:49]Write to MH i2c: 01 00 00 0B 7B 86 [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: 01 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: 01 07 00 [13:17:49]MH_I2C_Read... [13:17:49]Read from MH i2c: 01 07 00 0B 7B 00 00 00 00 00 FF 0F 9B [13:17:49]RasterBufferAndPrint [13:17:49]line Счет N : (1)31488 [13:17:49]line ИНН: 02508201610067 [13:17:49]line Контрольно-Кассовый Чек [13:17:49]line ПРОДАЖА [13:17:49]line ТРК (МРК, ГНК) : 21 [13:17:49]line Товар: 2710124130 [13:17:49]line Аи-92-К-5 [13:17:49]line 7.480 * 66.90 [13:17:49]line = 500.41 [13:17:49]line НДС 12% НСП 1% [13:17:49]line > о реализуемом товаре [13:17:49]line ОКРУГЛЕНИЕ: -0.41 [13:17:49]line ИТОГО: 500.00 [13:17:49]line Внесено: 500.00 [13:17:49]line СДАЧА: 0.00 [13:17:49]line НСП 1% : 4.43 [13:17:49]line НДС 12% : 53.14 [13:17:49]line Наличными: 500.00 [13:17:49]line Безнал.: 0.00 [13:17:49]line Место: АЗС № 170 "Партнер Нефть" [13:17:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:17:49]line СНО: Общий режим [13:17:49]line Чек 206 27.10.2024 13:18 [13:17:49]line Смена: 542 ФФД: 1.0 [13:17:49]line ЗНМ: 0300000110 [13:17:49]line РНМ: 0000000000091776 [13:17:49]line Версия ККМ: 001 [13:17:49]line ФМ: 0000000000871754 [13:17:49]line ФД: 192174 [13:17:49]line ФПД: 105540795769252 [13:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192174&fm=105540795769252&tin=02508201610067®Number=0000000000091776&sum=50000 [13:17:49]OFD Sender: Processing packet 192174 [packets to send 75, broken 74] [13:17:49]ProducePacketName [13:17:49]name=ofd_packets/00192174 [13:17:49]OFD Sender: To server: pG, [13:17:49]CommunicateWithHost lk.salyk.kg:30040 [13:17:49]ConnectInit lk.salyk.kg [13:17:49]written 0, free lines is 4095 [13:17:49]Connected sock=8 [13:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F 01 07 01 16 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 90 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EE 02 00 35 04 06 00 5F FD 21 A4 21 A4 25 7B 1A 10 6E 1B C5 52 [13:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 50 47 00 93 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EE 02 00 F4 03 04 00 57 E2 1D 67 B6 04 01 00 00 2B A5 12 60 A7 F0 37 0D [13:17:50]CommunicateWithHost err = 0 [13:17:50]CheckOFDResponse [13:17:50]1017 (14) - 77093643461234 [13:17:50]1041 (16) - 0000000000871754 [13:17:50]1040 (4) - 192174 [13:17:50]1012 (4) - 27.10.2024 06:48 [13:17:50]1206 (1) - 0 [13:17:50]OFD Sender: Remove packet 192174 [13:17:50]ProducePacketName [13:17:50]name=ofd_packets/00192174 [13:17:50]NVStorageDeleteData [13:17:50]Write to MH i2c: 01 00 00 36 7B B1 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 07 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 07 00 36 7B 00 00 00 00 00 A4 0C 68 [13:17:50]RasterBufferAndPrint [13:17:50]line [13:17:50]line [13:17:50]line [13:17:50]line [13:17:50]line [13:17:50]written 0, free lines is 3242 [13:17:50]MH_Cut [13:17:50]Write to MH i2c: D1 01 00 3D 7B 01 8A [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: D1 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: D1 01 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: D1 01 00 3D 7B 00 89 [13:17:50]Write to MH i2c: 01 00 00 3E 7B B9 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]OFD Sender: No OFD packet to send [13:17:51]*** Cut start [13:17:51]*** Partial cut [13:17:51]*** CUTSNS_PIN = 1 [13:17:51]*** CUTSNS_PIN = 0 [13:17:51]*** Brake cut motor [13:17:51]Read from MH i2c: 01 [13:17:51]MH_I2C_Read... [13:17:51]*** Stop cut motor [13:17:51]*** Cut end [13:17:51]Read from MH i2c: 01 07 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 3E 7B 00 00 00 00 00 FF 0F CE [13:17:51]process_action close_receipt done [13:17:51]requested_data is exist [13:17:51]produce_requested_data [13:17:51]requested_item fm.sn is exist - process it [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 11 00 00 [13:17:51]Write to MH i2c: E2 08 00 3F 7B 80 11 00 00 00 00 00 00 34 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 17 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 17 00 3F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [13:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:51]wFMCommunicate OK [13:17:51]requested_item fd.num is exist - process it [13:17:51]SAM_PROTO_GetFieldsCounters [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 13 00 00 [13:17:51]Write to MH i2c: E2 08 00 40 7B 80 13 00 00 00 00 00 00 37 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 62 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 62 00 40 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [13:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:51]wFMCommunicate OK [13:17:51]SAM_PROTO_GetFieldsCounters done [13:17:51]requested_item shift.num is exist - process it [13:17:51]requested_item shift.opened is exist - process it [13:17:51]req_shift_opened [13:17:51]FM_GetShiftState [13:17:51]SAM_PROTO_GetShiftState [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 13 01 00 [13:17:51]Write to MH i2c: E2 08 00 41 7B 80 13 01 00 00 00 00 00 39 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 0E 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 0E 00 41 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7A [13:17:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:17:52]wFMCommunicate OK [13:17:52]SAM_PROTO_GetShiftState done [13:17:52]FM_GetShiftState done [13:17:52]req_shift_opened done [13:17:52]requested_item shift.open_date is exist - process it [13:17:52]req_shift_open_date [13:17:52]req_shift_open_date done [13:17:52]produce_requested_data done [13:17:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192174,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:17:52]process_action_free close_receipt [13:17:52]json_value_free [13:17:52]json_value_free done [13:17:52]process_json_proto returns [13:17:52]Send response to host [13:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192174,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:17:52]free response buf [13:17:52]execute_script done [13:17:52]execute_script returns [13:17:52]free content buf [13:17:52]Sock 5.Close socket [13:17:52]Sock 5.Thread stoped [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]accept exits with 6 [13:18:10]New connection [13:18:10]New thread 3066817892 created [13:18:10]Thread 3066961252 joined [13:18:10]Waiting for new connection... [13:18:10] Sock 6.Parse request [13:18:10]Sock 6.Check first char [13:18:10]Sock 6.First char is OK [13:18:10]request: POST /json_proto HTTP/1.0 [13:18:10]Method: POST [13:18:10]URL: /json_proto [13:18:10]Method is POST - this is cgi request [13:18:10]url: /json_proto [13:18:10]query_string will be loaded in cgi processing [13:18:10]execute_cgi json_proto POST (null) [13:18:10]execute_cgi path=json_proto method=POST [13:18:10]POST find Content-Length [13:18:10]Host: 172.17.63.131:8080 [13:18:10]Content-Length: 681 [13:18:10]Content-Type: application/json [13:18:10] [13:18:10]POST finish read [13:18:10]Found Content-Length = 681 [13:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:10]execute_script... [13:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:10]POST & json_proto [13:18:10]process_json_proto [13:18:10]json parsed OK: [13:18:10]protocol is kg_v1.0 [13:18:10]action value=close_receipt [13:18:10]process_action close_receipt [13:18:10]cmd_close_receipt [13:18:10]MH_GetDate [13:18:10]Write to MH i2c: F0 00 00 42 7B AC [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 09 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 09 00 42 7B 00 A6 3D 1E 67 22 05 6E 64 16 [13:18:10]GetLastDocTimeStamp 1730035088 [13:18:10]current date 1730035110 [13:18:10]FM_GetShiftState [13:18:10]SAM_PROTO_GetShiftState [13:18:10]wFMCommunicate request_size=4 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 13 01 00 [13:18:10]Write to MH i2c: E2 08 00 43 7B 80 13 01 00 00 00 00 00 3B [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 0E 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 0E 00 43 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7C [13:18:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:18:10]wFMCommunicate OK [13:18:10]SAM_PROTO_GetShiftState done [13:18:10]FM_GetShiftState done [13:18:10]opened in 1729989159 [13:18:10]opened+sec_in_day 1730075559 [13:18:10]quantity*price = 100015 [13:18:10]sum+1 = 100017 [13:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 207 27.10.2024 13:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192175 ФПД: 168012990877223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131830&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192175&fm=168012990877223&tin=02508201610067®Number=0000000000091776&sum=100000 [13:18:11]StoreToDocumentArchive [13:18:11]shift 542 fd 192175 [13:18:11]save to /storage/0542/doc_00192175 [13:18:11]save last doc name /storage/0542/doc_00192175 to /storage/kkm_last_doc_name [13:18:11]save OK [13:18:11]Clear old archive folders... [13:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:11]tlvbuf is 01A24690 [13:18:11]SAM_PROTO_ClearQueue [13:18:11]wFMCommunicate request_size=4 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 09 00 00 [13:18:11]Write to MH i2c: E2 08 00 50 7B 80 09 00 00 00 00 00 00 3D [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 50 7B 00 90 00 3F [13:18:11]RAPDU: 90 00 [13:18:11]wFMCommunicate OK [13:18:11]SAM_PROTO_ClearQueue done [13:18:11]KKMCreateOFDPacket [13:18:11]OFDProtocolAddRootSTLVToBuf [13:18:11]FM_MakeSignedData [13:18:11]FM_MakeSignedData [13:18:11]SAM_PROTO_SignData [13:18:11]wFMCommunicate request_size=4 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 0D 01 02 [13:18:11]Write to MH i2c: E2 08 00 51 7B 80 0D 01 02 00 00 00 00 45 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 51 7B 00 90 00 40 [13:18:11]RAPDU: 90 00 [13:18:11]wFMCommunicate OK [13:18:11]wFMCommunicate request_size=255 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 A6 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EE 02 00 35 04 06 00 98 [13:18:11]Write to MH i2c: E2 02 01 52 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 A6 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EE 02 00 35 04 06 00 98 00 00 61 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 52 7B 00 90 00 41 [13:18:11]RAPDU: 90 00 [13:18:11]wFMCommunicate OK [13:18:11]wFMCommunicate request_size=10 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 0D 02 02 05 CE 92 A3 8E 27 [13:18:11]Write to MH i2c: E2 0D 00 53 7B 80 0D 02 02 05 00 CE 92 A3 8E 27 00 00 0A [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 53 7B 00 90 00 42 [13:18:12]RAPDU: 90 00 [13:18:12]wFMCommunicate OK [13:18:12]wFMCommunicate request_size=4 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 0D 03 02 [13:18:12]Write to MH i2c: E2 08 00 54 7B 80 0D 03 02 00 00 00 00 4A [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0B 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0B 00 54 7B 00 76 24 4F 1F 90 FC 0C 5B 90 00 46 [13:18:12]RAPDU: 76 24 4F 1F 90 FC 0C 5B 90 00 [13:18:12]wFMCommunicate OK [13:18:12]SAM_PROTO_SignData done [13:18:12]FM_MakeSignedData done [13:18:12]CreateOFDProtocolMessage [13:18:12]wFMCommunicate request_size=4 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 11 00 00 [13:18:12]Write to MH i2c: E2 08 00 55 7B 80 11 00 00 00 00 00 00 4A [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 17 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 17 00 55 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [13:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:18:12]wFMCommunicate OK [13:18:12]CreateOFDProtocolMessage done [13:18:12]OFDSenderStorePacket 192175 [13:18:12]StoreOFDPacket docnum=192175 [13:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 CD 07 01 46 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 A6 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EE 02 00 35 04 06 00 98 CE 92 A3 8E 27 76 24 4F 1F 90 FC 0C 5B [13:18:12]CheckFolder [13:18:12]dirname=/storage/ofd_packets [13:18:12]CheckFolder done [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00192175 [13:18:12]NVStorageSaveData ofd_packets/00192175 [13:18:12]File name is /storage/ofd_packets/00192175 [13:18:12]Write 301 bytes [13:18:12]NVStorageSaveData done [13:18:12]OFDSenderStorePacket done [13:18:12]KKMCreateOFDPacket done [13:18:12]NVStorageSaveData kkm_last_timestamp [13:18:12]File name is /storage/kkm_last_timestamp [13:18:12]Write 4 bytes [13:18:12]NVStorageSaveData done [13:18:12]ExternCall_PrintAddStr [13:18:12]wPrintStart [13:18:12]Write to MH i2c: 01 00 00 56 7B D1 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 56 7B 00 00 00 00 00 FF 0F E6 [13:18:12]RasterBufferAndPrint [13:18:12]line Счет N : (1)31487 [13:18:12]line ИНН: 02508201610067 [13:18:12]line Контрольно-Кассовый Чек [13:18:12]line ПРОДАЖА [13:18:12]line ТРК (МРК, ГНК) : 12 [13:18:12]line Товар: 2710124130 [13:18:12]line Аи-92-К-5 [13:18:12]line 14.950 * 66.90 [13:18:12]line = 1000.16 [13:18:12]line НДС 12% НСП 1% [13:18:12]line > о реализуемом товаре [13:18:12]line ОКРУГЛЕНИЕ: -0.16 [13:18:12]line ИТОГО: 1000.00 [13:18:12]line Внесено: 1000.00 [13:18:12]line СДАЧА: 0.00 [13:18:12]line НСП 1% : 8.85 [13:18:12]line НДС 12% : 106.21 [13:18:12]line Наличными: 1000.00 [13:18:12]line Безнал.: 0.00 [13:18:12]line Место: АЗС № 170 "Партнер Нефть" [13:18:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:18:12]line СНО: Общий режим [13:18:12]line Чек 207 27.10.2024 13:18 [13:18:12]line Смена: 542 ФФД: 1.0 [13:18:12]line ЗНМ: 0300000110 [13:18:12]line РНМ: 0000000000091776 [13:18:12]line Версия ККМ: 001 [13:18:12]line ФМ: 0000000000871754 [13:18:12]line ФД: 192175 [13:18:12]line ФПД: 168012990877223 [13:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131830&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192175&fm=168012990877223&tin=02508201610067®Number=0000000000091776&sum=100000 [13:18:12]OFD Sender: Processing packet 192175 [packets to send 75, broken 74] [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00192175 [13:18:12]OFD Sender: To server: pG, [13:18:12]CommunicateWithHost lk.salyk.kg:30040 [13:18:12]ConnectInit lk.salyk.kg [13:18:12]written 0, free lines is 4095 [13:18:12]Connected sock=8 [13:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 CD 07 01 46 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 A6 3D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EE 02 00 35 04 06 00 98 CE 92 A3 8E 27 76 24 4F 1F 90 FC 0C 5B [13:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 4F 47 00 6F E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EE 02 00 F4 03 04 00 6E E2 1D 67 B6 04 01 00 00 4B 71 44 5C CF 02 0C F7 [13:18:12]CommunicateWithHost err = 0 [13:18:12]CheckOFDResponse [13:18:12]1017 (14) - 77093643461234 [13:18:12]1041 (16) - 0000000000871754 [13:18:12]1040 (4) - 192175 [13:18:12]1012 (4) - 27.10.2024 06:49 [13:18:12]1206 (1) - 0 [13:18:12]OFD Sender: Remove packet 192175 [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00192175 [13:18:12]NVStorageDeleteData [13:18:12]Write to MH i2c: 01 00 00 81 7B FC [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 81 7B 00 00 00 00 00 A5 0C B4 [13:18:12]RasterBufferAndPrint [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]written 0, free lines is 3242 [13:18:12]MH_Cut [13:18:12]Write to MH i2c: D1 01 00 88 7B 01 D5 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 01 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 01 00 88 7B 00 D4 [13:18:12]Write to MH i2c: 01 00 00 89 7B 04 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:13]OFD Sender: No OFD packet to send [13:18:13]*** Cut start [13:18:13]*** Partial cut [13:18:13]*** CUTSNS_PIN = 1 [13:18:13]*** CUTSNS_PIN = 0 [13:18:14]*** Brake cut motor [13:18:14]Read from MH i2c: 01 [13:18:14]MH_I2C_Read... [13:18:14]*** Stop cut motor [13:18:14]*** Cut end [13:18:14]Read from MH i2c: 01 07 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: 01 07 00 89 7B 00 00 00 00 00 FF 0F 19 [13:18:14]process_action close_receipt done [13:18:14]requested_data is exist [13:18:14]produce_requested_data [13:18:14]requested_item fm.sn is exist - process it [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 11 00 00 [13:18:14]Write to MH i2c: E2 08 00 8A 7B 80 11 00 00 00 00 00 00 7F [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 17 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 17 00 8A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [13:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:18:14]wFMCommunicate OK [13:18:14]requested_item fd.num is exist - process it [13:18:14]SAM_PROTO_GetFieldsCounters [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 13 00 00 [13:18:14]Write to MH i2c: E2 08 00 8B 7B 80 13 00 00 00 00 00 00 82 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 62 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 62 00 8B 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [13:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:14]wFMCommunicate OK [13:18:14]SAM_PROTO_GetFieldsCounters done [13:18:14]requested_item shift.num is exist - process it [13:18:14]requested_item shift.opened is exist - process it [13:18:14]req_shift_opened [13:18:14]FM_GetShiftState [13:18:14]SAM_PROTO_GetShiftState [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 13 01 00 [13:18:14]Write to MH i2c: E2 08 00 8C 7B 80 13 01 00 00 00 00 00 84 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 0E 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 0E 00 8C 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C5 [13:18:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:18:14]wFMCommunicate OK [13:18:14]SAM_PROTO_GetShiftState done [13:18:14]FM_GetShiftState done [13:18:14]req_shift_opened done [13:18:14]requested_item shift.open_date is exist - process it [13:18:14]req_shift_open_date [13:18:14]req_shift_open_date done [13:18:14]produce_requested_data done [13:18:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192175,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:18:14]process_action_free close_receipt [13:18:14]json_value_free [13:18:14]json_value_free done [13:18:14]process_json_proto returns [13:18:14]Send response to host [13:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192175,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:18:14]free response buf [13:18:14]execute_script done [13:18:14]execute_script returns [13:18:14]free content buf [13:18:14]Sock 6.Close socket [13:18:14]Sock 6.Thread stoped [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:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:37]accept exits with 5 [13:21:37]New connection [13:21:37]New thread 3066961252 created [13:21:37]Thread 3066817892 joined [13:21:37]Waiting for new connection... [13:21:37] Sock 5.Parse request [13:21:37]Sock 5.Check first char [13:21:37]Sock 5.First char is OK [13:21:37]request: POST /json_proto HTTP/1.0 [13:21:37]Method: POST [13:21:37]URL: /json_proto [13:21:37]Method is POST - this is cgi request [13:21:37]url: /json_proto [13:21:37]query_string will be loaded in cgi processing [13:21:37]execute_cgi json_proto POST (null) [13:21:37]execute_cgi path=json_proto method=POST [13:21:37]POST find Content-Length [13:21:37]Host: 172.17.63.131:8080 [13:21:37]Content-Length: 678 [13:21:37]Content-Type: application/json [13:21:37] [13:21:37]POST finish read [13:21:37]Found Content-Length = 678 [13:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31489", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:37]execute_script... [13:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31489", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:37]POST & json_proto [13:21:37]process_json_proto [13:21:37]json parsed OK: [13:21:37]protocol is kg_v1.0 [13:21:37]action value=close_receipt [13:21:37]process_action close_receipt [13:21:37]cmd_close_receipt [13:21:37]MH_GetDate [13:21:37]Write to MH i2c: F0 00 00 8D 7B F7 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: F0 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: F0 09 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: F0 09 00 8D 7B 00 75 3E 1E 67 22 05 6E 64 31 [13:21:37]GetLastDocTimeStamp 1730035110 [13:21:37]current date 1730035317 [13:21:37]FM_GetShiftState [13:21:37]SAM_PROTO_GetShiftState [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 13 01 00 [13:21:37]Write to MH i2c: E2 08 00 8E 7B 80 13 01 00 00 00 00 00 86 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0E 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0E 00 8E 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C7 [13:21:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:21:37]wFMCommunicate OK [13:21:37]SAM_PROTO_GetShiftState done [13:21:37]FM_GetShiftState done [13:21:37]opened in 1729989159 [13:21:37]opened+sec_in_day 1730075559 [13:21:37]quantity*price = 250012 [13:21:37]sum+1 = 250013 [13:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 208 27.10.2024 13:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192176 ФПД: 190039013291834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192176&fm=190039013291834&tin=02508201610067®Number=0000000000091776&sum=250000 [13:21:38]StoreToDocumentArchive [13:21:38]shift 542 fd 192176 [13:21:38]save to /storage/0542/doc_00192176 [13:21:38]save last doc name /storage/0542/doc_00192176 to /storage/kkm_last_doc_name [13:21:38]save OK [13:21:38]Clear old archive folders... [13:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:38]tlvbuf is 0187D570 [13:21:38]SAM_PROTO_ClearQueue [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 09 00 00 [13:21:38]Write to MH i2c: E2 08 00 9B 7B 80 09 00 00 00 00 00 00 88 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 9B 7B 00 90 00 8A [13:21:38]RAPDU: 90 00 [13:21:38]wFMCommunicate OK [13:21:38]SAM_PROTO_ClearQueue done [13:21:38]KKMCreateOFDPacket [13:21:38]OFDProtocolAddRootSTLVToBuf [13:21:38]FM_MakeSignedData [13:21:38]FM_MakeSignedData [13:21:38]SAM_PROTO_SignData [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 0D 01 02 [13:21:38]Write to MH i2c: E2 08 00 9C 7B 80 0D 01 02 00 00 00 00 90 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 9C 7B 00 90 00 8B [13:21:38]RAPDU: 90 00 [13:21:38]wFMCommunicate OK [13:21:38]wFMCommunicate request_size=255 [13:21:38]MH_SAM_APDU [13:21: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 75 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EE 02 00 35 04 06 00 AC D6 E7 E1 [13:21:38]Write to MH i2c: E2 02 01 9D 7B 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 75 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EE 02 00 35 04 06 00 AC D6 E7 E1 00 00 8D [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]OFD Sender: No OFD packet to send [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:38]Read from MH i2c: E2 03 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 9D 7B 00 90 00 8C [13:21:38]RAPDU: 90 00 [13:21:38]wFMCommunicate OK [13:21:38]wFMCommunicate request_size=7 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 0D 02 02 02 77 3A [13:21:38]Write to MH i2c: E2 0A 00 9E 7B 80 0D 02 02 02 00 77 3A 00 00 48 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 03 00 9E 7B 00 90 00 8D [13:21:38]RAPDU: 90 00 [13:21:38]wFMCommunicate OK [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 0D 03 02 [13:21:38]Write to MH i2c: E2 08 00 9F 7B 80 0D 03 02 00 00 00 00 95 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 0B 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 0B 00 9F 7B 00 7A 84 A0 D7 54 A2 14 A8 90 00 BD [13:21:38]RAPDU: 7A 84 A0 D7 54 A2 14 A8 90 00 [13:21:38]wFMCommunicate OK [13:21:38]SAM_PROTO_SignData done [13:21:38]FM_MakeSignedData done [13:21:38]CreateOFDProtocolMessage [13:21:38]wFMCommunicate request_size=4 [13:21:38]MH_SAM_APDU [13:21:38]CAPDU: 80 11 00 00 [13:21:38]Write to MH i2c: E2 08 00 A0 7B 80 11 00 00 00 00 00 00 95 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:38]Read from MH i2c: E2 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 17 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: E2 17 00 A0 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [13:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:38]wFMCommunicate OK [13:21:38]CreateOFDProtocolMessage done [13:21:38]OFDSenderStorePacket 192176 [13:21:38]StoreOFDPacket docnum=192176 [13:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 86 04 01 6B AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 75 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EE 02 00 35 04 06 00 AC D6 E7 E1 77 3A 7A 84 A0 D7 54 A2 14 A8 [13:21:38]CheckFolder [13:21:38]dirname=/storage/ofd_packets [13:21:38]CheckFolder done [13:21:38]ProducePacketName [13:21:38]name=ofd_packets/00192176 [13:21:38]NVStorageSaveData ofd_packets/00192176 [13:21:38]File name is /storage/ofd_packets/00192176 [13:21:38]Write 298 bytes [13:21:38]NVStorageSaveData done [13:21:38]OFDSenderStorePacket done [13:21:38]KKMCreateOFDPacket done [13:21:38]NVStorageSaveData kkm_last_timestamp [13:21:38]File name is /storage/kkm_last_timestamp [13:21:38]Write 4 bytes [13:21:38]NVStorageSaveData done [13:21:38]ExternCall_PrintAddStr [13:21:38]wPrintStart [13:21:38]Write to MH i2c: 01 00 00 A1 7B 1C [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 A1 7B 00 00 00 00 00 FF 0F 31 [13:21:38]RasterBufferAndPrint [13:21:38]line Счет N : (1)31489 [13:21:38]line ИНН: 02508201610067 [13:21:38]line Контрольно-Кассовый Чек [13:21:38]line ПРОДАЖА [13:21:38]line ТРК (МРК, ГНК) : 11 [13:21:38]line Товар: 2710194210 [13:21:38]line ДТ-К-5 [13:21:38]line 32.810 * 76.20 [13:21:38]line = 2500.12 [13:21:38]line НДС 12% НСП 1% [13:21:38]line > о реализуемом товаре [13:21:38]line ОКРУГЛЕНИЕ: -0.12 [13:21:38]line ИТОГО: 2500.00 [13:21:38]line Внесено: 2500.00 [13:21:38]line СДАЧА: 0.00 [13:21:38]line НСП 1% : 22.12 [13:21:38]line НДС 12% : 265.50 [13:21:38]line Наличными: 2500.00 [13:21:38]line Безнал.: 0.00 [13:21:38]line Место: АЗС № 170 "Партнер Нефть" [13:21:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:21:38]line СНО: Общий режим [13:21:38]line Чек 208 27.10.2024 13:21 [13:21:38]line Смена: 542 ФФД: 1.0 [13:21:38]line ЗНМ: 0300000110 [13:21:38]line РНМ: 0000000000091776 [13:21:38]line Версия ККМ: 001 [13:21:38]line ФМ: 0000000000871754 [13:21:38]line ФД: 192176 [13:21:38]line ФПД: 190039013291834 [13:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192176&fm=190039013291834&tin=02508201610067®Number=0000000000091776&sum=250000 [13:21:39]OFD Sender: Processing packet 192176 [packets to send 75, broken 74] [13:21:39]ProducePacketName [13:21:39]name=ofd_packets/00192176 [13:21:39]OFD Sender: To server: pG, [13:21:39]CommunicateWithHost lk.salyk.kg:30040 [13:21:39]ConnectInit lk.salyk.kg [13:21:39]written 0, free lines is 4095 [13:21:39]Connected sock=8 [13:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B7 86 04 01 6B AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 75 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EE 02 00 35 04 06 00 AC D6 E7 E1 77 3A 7A 84 A0 D7 54 A2 14 A8 [13:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 0C 47 00 0E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EE 02 00 F4 03 04 00 3C E3 1D 67 B6 04 01 00 00 0B E3 DD 84 35 61 04 5E [13:21:39]CommunicateWithHost err = 0 [13:21:39]CheckOFDResponse [13:21:39]1017 (14) - 77093643461234 [13:21:39]1041 (16) - 0000000000871754 [13:21:39]1040 (4) - 192176 [13:21:39]1012 (4) - 27.10.2024 06:52 [13:21:39]1206 (1) - 0 [13:21:39]OFD Sender: Remove packet 192176 [13:21:39]ProducePacketName [13:21:39]name=ofd_packets/00192176 [13:21:39]NVStorageDeleteData [13:21:39]Write to MH i2c: 01 00 00 CC 7B 47 [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: 01 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: 01 07 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: 01 07 00 CC 7B 00 00 00 00 00 B9 0C 13 [13:21:39]RasterBufferAndPrint [13:21:39]line [13:21:39]line [13:21:39]line [13:21:39]line [13:21:39]line [13:21:39]written 0, free lines is 3264 [13:21:39]MH_Cut [13:21:39]Write to MH i2c: D1 01 00 D3 7B 01 20 [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: D1 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: D1 01 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: D1 01 00 D3 7B 00 1F [13:21:39]Write to MH i2c: 01 00 00 D4 7B 4F [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]OFD Sender: No OFD packet to send [13:21:40]*** Cut start [13:21:40]*** Partial cut [13:21:40]*** CUTSNS_PIN = 1 [13:21:40]*** CUTSNS_PIN = 0 [13:21:40]*** Brake cut motor [13:21:41]Read from MH i2c: 01 [13:21:41]MH_I2C_Read... [13:21:41]*** Stop cut motor [13:21:41]*** Cut end [13:21:41]Read from MH i2c: 01 07 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: 01 07 00 D4 7B 00 00 00 00 00 FF 0F 64 [13:21:41]process_action close_receipt done [13:21:41]requested_data is exist [13:21:41]produce_requested_data [13:21:41]requested_item fm.sn is exist - process it [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 11 00 00 [13:21:41]Write to MH i2c: E2 08 00 D5 7B 80 11 00 00 00 00 00 00 CA [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 17 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 17 00 D5 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [13:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:41]wFMCommunicate OK [13:21:41]requested_item fd.num is exist - process it [13:21:41]SAM_PROTO_GetFieldsCounters [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 00 00 [13:21:41]Write to MH i2c: E2 08 00 D6 7B 80 13 00 00 00 00 00 00 CD [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 62 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 62 00 D6 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetFieldsCounters done [13:21:41]requested_item shift.num is exist - process it [13:21:41]requested_item shift.opened is exist - process it [13:21:41]req_shift_opened [13:21:41]FM_GetShiftState [13:21:41]SAM_PROTO_GetShiftState [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 01 00 [13:21:41]Write to MH i2c: E2 08 00 D7 7B 80 13 01 00 00 00 00 00 CF [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 D7 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 10 [13:21:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetShiftState done [13:21:41]FM_GetShiftState done [13:21:41]req_shift_opened done [13:21:41]requested_item shift.open_date is exist - process it [13:21:41]req_shift_open_date [13:21:41]req_shift_open_date done [13:21:41]produce_requested_data done [13:21:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192176,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:21:41]process_action_free close_receipt [13:21:41]json_value_free [13:21:41]json_value_free done [13:21:41]process_json_proto returns [13:21:41]Send response to host [13:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192176,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:21:41]free response buf [13:21:41]execute_script done [13:21:41]execute_script returns [13:21:41]free content buf [13:21:41]Sock 5.Close socket [13:21:41]Sock 5.Thread stoped [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:46]accept exits with 6 [13:23:46]New connection [13:23:46]New thread 3066817892 created [13:23:46]Thread 3066961252 joined [13:23:46]Waiting for new connection... [13:23:46] Sock 6.Parse request [13:23:46]Sock 6.Check first char [13:23:46]Sock 6.First char is OK [13:23:46]request: POST /json_proto HTTP/1.0 [13:23:46]Method: POST [13:23:46]URL: /json_proto [13:23:46]Method is POST - this is cgi request [13:23:46]url: /json_proto [13:23:46]query_string will be loaded in cgi processing [13:23:46]execute_cgi json_proto POST (null) [13:23:46]execute_cgi path=json_proto method=POST [13:23:46]POST find Content-Length [13:23:46]Host: 172.17.63.131:8080 [13:23:46]Content-Length: 676 [13:23:46]Content-Type: application/json [13:23:46] [13:23:46]POST finish read [13:23:46]Found Content-Length = 676 [13:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]execute_script... [13:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]POST & json_proto [13:23:46]process_json_proto [13:23:46]json parsed OK: [13:23:46]protocol is kg_v1.0 [13:23:46]action value=close_receipt [13:23:46]process_action close_receipt [13:23:46]cmd_close_receipt [13:23:46]MH_GetDate [13:23:46]Write to MH i2c: F0 00 00 D8 7B 42 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 D8 7B 00 F7 3E 1E 67 22 05 6E 64 FE [13:23:46]GetLastDocTimeStamp 1730035317 [13:23:46]current date 1730035447 [13:23:46]FM_GetShiftState [13:23:46]SAM_PROTO_GetShiftState [13:23:46]wFMCommunicate request_size=4 [13:23:46]MH_SAM_APDU [13:23:46]CAPDU: 80 13 01 00 [13:23:46]Write to MH i2c: E2 08 00 D9 7B 80 13 01 00 00 00 00 00 D1 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:46]Read from MH i2c: E2 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 D9 7B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 12 [13:23:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:23:46]wFMCommunicate OK [13:23:46]SAM_PROTO_GetShiftState done [13:23:46]FM_GetShiftState done [13:23:46]opened in 1729989159 [13:23:46]opened+sec_in_day 1730075559 [13:23:46]quantity*price = 50041 [13:23:46]sum+1 = 50042 [13:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 209 27.10.2024 13:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192177 ФПД: 189155548668655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192177&fm=189155548668655&tin=02508201610067®Number=0000000000091776&sum=50000 [13:23:47]StoreToDocumentArchive [13:23:47]shift 542 fd 192177 [13:23:47]save to /storage/0542/doc_00192177 [13:23:47]save last doc name /storage/0542/doc_00192177 to /storage/kkm_last_doc_name [13:23:47]save OK [13:23:47]Clear old archive folders... [13:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:48]tlvbuf is 01A24570 [13:23:48]SAM_PROTO_ClearQueue [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 09 00 00 [13:23:48]Write to MH i2c: E2 08 00 E6 7B 80 09 00 00 00 00 00 00 D3 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 E6 7B 00 90 00 D5 [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_ClearQueue done [13:23:48]KKMCreateOFDPacket [13:23:48]OFDProtocolAddRootSTLVToBuf [13:23:48]FM_MakeSignedData [13:23:48]FM_MakeSignedData [13:23:48]SAM_PROTO_SignData [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 01 02 [13:23:48]Write to MH i2c: E2 08 00 E7 7B 80 0D 01 02 00 00 00 00 DB [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 E7 7B 00 90 00 D6 [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=255 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EE 02 00 35 04 06 00 AC [13:23:48]Write to MH i2c: E2 02 01 E8 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F7 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EE 02 00 35 04 06 00 AC 00 00 67 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 E8 7B 00 90 00 D7 [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=10 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 02 02 05 09 35 49 22 EF [13:23:48]Write to MH i2c: E2 0D 00 E9 7B 80 0D 02 02 05 00 09 35 49 22 EF 00 00 80 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 E9 7B 00 90 00 D8 [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 03 02 [13:23:48]Write to MH i2c: E2 08 00 EA 7B 80 0D 03 02 00 00 00 00 E0 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 EA 7B 00 F7 C5 C7 CA F0 AA DB 7A 90 00 1D [13:23:48]RAPDU: F7 C5 C7 CA F0 AA DB 7A 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_SignData done [13:23:48]FM_MakeSignedData done [13:23:48]CreateOFDProtocolMessage [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 11 00 00 [13:23:48]Write to MH i2c: E2 08 00 EB 7B 80 11 00 00 00 00 00 00 E0 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 EB 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [13:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:23:48]wFMCommunicate OK [13:23:48]CreateOFDProtocolMessage done [13:23:48]OFDSenderStorePacket 192177 [13:23:48]StoreOFDPacket docnum=192177 [13:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 BC 07 01 AA 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EE 02 00 35 04 06 00 AC 09 35 49 22 EF F7 C5 C7 CA F0 AA DB 7A [13:23:48]CheckFolder [13:23:48]dirname=/storage/ofd_packets [13:23:48]CheckFolder done [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00192177 [13:23:48]NVStorageSaveData ofd_packets/00192177 [13:23:48]File name is /storage/ofd_packets/00192177 [13:23:48]Write 301 bytes [13:23:48]NVStorageSaveData done [13:23:48]OFDSenderStorePacket done [13:23:48]KKMCreateOFDPacket done [13:23:48]NVStorageSaveData kkm_last_timestamp [13:23:48]File name is /storage/kkm_last_timestamp [13:23:48]Write 4 bytes [13:23:48]NVStorageSaveData done [13:23:48]ExternCall_PrintAddStr [13:23:48]wPrintStart [13:23:48]Write to MH i2c: 01 00 00 EC 7B 67 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 EC 7B 00 00 00 00 00 FF 0F 7C [13:23:48]RasterBufferAndPrint [13:23:48]line Счет N : (1)31490 [13:23:48]line ИНН: 02508201610067 [13:23:48]line Контрольно-Кассовый Чек [13:23:48]line ПРОДАЖА [13:23:48]line ТРК (МРК, ГНК) : 21 [13:23:48]line Товар: 2710124130 [13:23:48]line Аи-92-К-5 [13:23:48]line 7.480 * 66.90 [13:23:48]line = 500.41 [13:23:48]line НДС 12% НСП 1% [13:23:48]line > о реализуемом товаре [13:23:48]line ОКРУГЛЕНИЕ: -0.41 [13:23:48]line ИТОГО: 500.00 [13:23:48]line Внесено: 500.00 [13:23:48]line СДАЧА: 0.00 [13:23:48]line НСП 1% : 4.43 [13:23:48]line НДС 12% : 53.14 [13:23:48]line Наличными: 500.00 [13:23:48]line Безнал.: 0.00 [13:23:48]line Место: АЗС № 170 "Партнер Нефть" [13:23:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:23:48]line СНО: Общий режим [13:23:48]line Чек 209 27.10.2024 13:24 [13:23:48]line Смена: 542 ФФД: 1.0 [13:23:48]line ЗНМ: 0300000110 [13:23:48]line РНМ: 0000000000091776 [13:23:48]line Версия ККМ: 001 [13:23:48]line ФМ: 0000000000871754 [13:23:48]line ФД: 192177 [13:23:48]line ФПД: 189155548668655 [13:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192177&fm=189155548668655&tin=02508201610067®Number=0000000000091776&sum=50000 [13:23:48]written 0, free lines is 4095 [13:23:48]OFD Sender: Processing packet 192177 [packets to send 75, broken 74] [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00192177 [13:23:48]OFD Sender: To server: pG, [13:23:48]CommunicateWithHost lk.salyk.kg:30040 [13:23:48]ConnectInit lk.salyk.kg [13:23:48]Connected sock=9 [13:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 BC 07 01 AA 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 3E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EE 02 00 35 04 06 00 AC 09 35 49 22 EF F7 C5 C7 CA F0 AA DB 7A [13:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A7 88 47 00 DC 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 37 35 34 10 04 04 00 B1 EE 02 00 F4 03 04 00 BE E3 1D 67 B6 04 01 00 00 50 E7 20 92 72 21 92 49 [13:23:48]CommunicateWithHost err = 0 [13:23:48]CheckOFDResponse [13:23:48]1017 (14) - 77093643461234 [13:23:48]1041 (16) - 0000000000871754 [13:23:48]1040 (4) - 192177 [13:23:48]1012 (4) - 27.10.2024 06:54 [13:23:48]1206 (1) - 0 [13:23:48]OFD Sender: Remove packet 192177 [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00192177 [13:23:48]NVStorageDeleteData [13:23:48]Write to MH i2c: 01 00 00 17 7C 93 [13:23:48]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 17 7C 00 00 00 00 00 A0 0C 46 [13:23:49]RasterBufferAndPrint [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]written 0, free lines is 3238 [13:23:49]MH_Cut [13:23:49]Write to MH i2c: D1 01 00 1E 7C 01 6C [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 01 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 01 00 1E 7C 00 6B [13:23:49]Write to MH i2c: 01 00 00 1F 7C 9B [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]OFD Sender: No OFD packet to send [13:23:49]*** Cut start [13:23:49]*** Partial cut [13:23:49]*** CUTSNS_PIN = 1 [13:23:49]*** CUTSNS_PIN = 0 [13:23:50]*** Brake cut motor [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]*** Stop cut motor [13:23:50]*** Cut end [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 1F 7C 00 00 00 00 00 FF 0F B0 [13:23:50]process_action close_receipt done [13:23:50]requested_data is exist [13:23:50]produce_requested_data [13:23:50]requested_item fm.sn is exist - process it [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 11 00 00 [13:23:50]Write to MH i2c: E2 08 00 20 7C 80 11 00 00 00 00 00 00 16 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 20 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [13:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:23:50]wFMCommunicate OK [13:23:50]requested_item fd.num is exist - process it [13:23:50]SAM_PROTO_GetFieldsCounters [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 00 00 [13:23:50]Write to MH i2c: E2 08 00 21 7C 80 13 00 00 00 00 00 00 19 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 21 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [13:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetFieldsCounters done [13:23:50]requested_item shift.num is exist - process it [13:23:50]requested_item shift.opened is exist - process it [13:23:50]req_shift_opened [13:23:50]FM_GetShiftState [13:23:50]SAM_PROTO_GetShiftState [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 01 00 [13:23:50]Write to MH i2c: E2 08 00 22 7C 80 13 01 00 00 00 00 00 1B [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 22 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5C [13:23:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetShiftState done [13:23:50]FM_GetShiftState done [13:23:50]req_shift_opened done [13:23:50]requested_item shift.open_date is exist - process it [13:23:50]req_shift_open_date [13:23:50]req_shift_open_date done [13:23:50]produce_requested_data done [13:23:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192177,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:23:50]process_action_free close_receipt [13:23:50]json_value_free [13:23:50]json_value_free done [13:23:50]process_json_proto returns [13:23:50]Send response to host [13:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192177,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:23:50]free response buf [13:23:50]execute_script done [13:23:50]execute_script returns [13:23:50]free content buf [13:23:50]Sock 6.Close socket [13:23:50]Sock 6.Thread stoped [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:06]accept exits with 5 [13:25:06]New connection [13:25:06]New thread 3066961252 created [13:25:06]Thread 3066817892 joined [13:25:06]Waiting for new connection... [13:25:06] Sock 5.Parse request [13:25:06]Sock 5.Check first char [13:25:06]Sock 5.First char is OK [13:25:06]request: POST /json_proto HTTP/1.0 [13:25:06]Method: POST [13:25:06]URL: /json_proto [13:25:06]Method is POST - this is cgi request [13:25:06]url: /json_proto [13:25:06]query_string will be loaded in cgi processing [13:25:06]execute_cgi json_proto POST (null) [13:25:06]execute_cgi path=json_proto method=POST [13:25:06]POST find Content-Length [13:25:06]Host: 172.17.63.131:8080 [13:25:06]Content-Length: 676 [13:25:06]Content-Type: application/json [13:25:06] [13:25:06]POST finish read [13:25:06]Found Content-Length = 676 [13:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:06]execute_script... [13:25:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:06]POST & json_proto [13:25:06]process_json_proto [13:25:06]json parsed OK: [13:25:06]protocol is kg_v1.0 [13:25:06]action value=close_receipt [13:25:06]process_action close_receipt [13:25:06]cmd_close_receipt [13:25:06]MH_GetDate [13:25:06]Write to MH i2c: F0 00 00 23 7C 8E [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 09 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 09 00 23 7C 00 47 3F 1E 67 22 05 6E 64 9B [13:25:06]GetLastDocTimeStamp 1730035447 [13:25:06]current date 1730035527 [13:25:06]FM_GetShiftState [13:25:06]SAM_PROTO_GetShiftState [13:25:06]wFMCommunicate request_size=4 [13:25:06]MH_SAM_APDU [13:25:06]CAPDU: 80 13 01 00 [13:25:06]Write to MH i2c: E2 08 00 24 7C 80 13 01 00 00 00 00 00 1D [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:06]Read from MH i2c: E2 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 24 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5E [13:25:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:25:06]wFMCommunicate OK [13:25:06]SAM_PROTO_GetShiftState done [13:25:06]FM_GetShiftState done [13:25:06]opened in 1729989159 [13:25:06]opened+sec_in_day 1730075559 [13:25:06]quantity*price = 50041 [13:25:06]sum+1 = 50042 [13:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 210 27.10.2024 13:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192178 ФПД: 231148325936960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132527&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192178&fm=231148325936960&tin=02508201610067®Number=0000000000091776&sum=50000 [13:25:07]StoreToDocumentArchive [13:25:07]shift 542 fd 192178 [13:25:07]save to /storage/0542/doc_00192178 [13:25:07]save last doc name /storage/0542/doc_00192178 to /storage/kkm_last_doc_name [13:25:07]save OK [13:25:07]Clear old archive folders... [13:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:07]tlvbuf is 01AA7100 [13:25:07]SAM_PROTO_ClearQueue [13:25:07]wFMCommunicate request_size=4 [13:25:07]MH_SAM_APDU [13:25:07]CAPDU: 80 09 00 00 [13:25:07]Write to MH i2c: E2 08 00 31 7C 80 09 00 00 00 00 00 00 1F [13:25:07]Write i2c OK [13:25:07]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 31 7C 00 90 00 21 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_ClearQueue done [13:25:08]KKMCreateOFDPacket [13:25:08]OFDProtocolAddRootSTLVToBuf [13:25:08]FM_MakeSignedData [13:25:08]FM_MakeSignedData [13:25:08]SAM_PROTO_SignData [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 01 02 [13:25:08]Write to MH i2c: E2 08 00 32 7C 80 0D 01 02 00 00 00 00 27 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 32 7C 00 90 00 22 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]wFMCommunicate request_size=255 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 47 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EE 02 00 35 04 06 00 D2 [13:25:08]Write to MH i2c: E2 02 01 33 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 47 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EE 02 00 35 04 06 00 D2 00 00 2C [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 33 7C 00 90 00 23 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]wFMCommunicate request_size=10 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 02 02 05 3A 69 DB 9F 40 [13:25:08]Write to MH i2c: E2 0D 00 34 7C 80 0D 02 02 05 00 3A 69 DB 9F 40 00 00 91 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 34 7C 00 90 00 24 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 03 02 [13:25:08]Write to MH i2c: E2 08 00 35 7C 80 0D 03 02 00 00 00 00 2C [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0B 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0B 00 35 7C 00 20 E5 5E 93 E5 40 F4 35 90 00 71 [13:25:08]RAPDU: 20 E5 5E 93 E5 40 F4 35 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_SignData done [13:25:08]FM_MakeSignedData done [13:25:08]CreateOFDProtocolMessage [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 11 00 00 [13:25:08]Write to MH i2c: E2 08 00 36 7C 80 11 00 00 00 00 00 00 2C [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 17 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 17 00 36 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [13:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:25:08]wFMCommunicate OK [13:25:08]CreateOFDProtocolMessage done [13:25:08]OFDSenderStorePacket 192178 [13:25:08]StoreOFDPacket docnum=192178 [13:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 EC 07 01 3D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 47 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EE 02 00 35 04 06 00 D2 3A 69 DB 9F 40 20 E5 5E 93 E5 40 F4 35 [13:25:08]CheckFolder [13:25:08]dirname=/storage/ofd_packets [13:25:08]CheckFolder done [13:25:08]ProducePacketName [13:25:08]name=ofd_packets/00192178 [13:25:08]NVStorageSaveData ofd_packets/00192178 [13:25:08]File name is /storage/ofd_packets/00192178 [13:25:08]Write 301 bytes [13:25:08]NVStorageSaveData done [13:25:08]OFDSenderStorePacket done [13:25:08]KKMCreateOFDPacket done [13:25:08]NVStorageSaveData kkm_last_timestamp [13:25:08]File name is /storage/kkm_last_timestamp [13:25:08]Write 4 bytes [13:25:08]NVStorageSaveData done [13:25:08]ExternCall_PrintAddStr [13:25:08]wPrintStart [13:25:08]Write to MH i2c: 01 00 00 37 7C B3 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 07 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 07 00 37 7C 00 00 00 00 00 FF 0F C8 [13:25:08]RasterBufferAndPrint [13:25:08]line Счет N : (1)31491 [13:25:08]line ИНН: 02508201610067 [13:25:08]line Контрольно-Кассовый Чек [13:25:08]line ПРОДАЖА [13:25:08]line ТРК (МРК, ГНК) : 21 [13:25:08]line Товар: 2710124130 [13:25:08]line Аи-92-К-5 [13:25:08]line 7.480 * 66.90 [13:25:08]line = 500.41 [13:25:08]line НДС 12% НСП 1% [13:25:08]line > о реализуемом товаре [13:25:08]line ОКРУГЛЕНИЕ: -0.41 [13:25:08]line ИТОГО: 500.00 [13:25:08]line Внесено: 500.00 [13:25:08]line СДАЧА: 0.00 [13:25:08]line НСП 1% : 4.43 [13:25:08]line НДС 12% : 53.14 [13:25:08]line Наличными: 500.00 [13:25:08]line Безнал.: 0.00 [13:25:08]line Место: АЗС № 170 "Партнер Нефть" [13:25:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:25:08]line СНО: Общий режим [13:25:08]line Чек 210 27.10.2024 13:25 [13:25:08]line Смена: 542 ФФД: 1.0 [13:25:08]line ЗНМ: 0300000110 [13:25:08]line РНМ: 0000000000091776 [13:25:08]line Версия ККМ: 001 [13:25:08]line ФМ: 0000000000871754 [13:25:08]line ФД: 192178 [13:25:08]line ФПД: 231148325936960 [13:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132527&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192178&fm=231148325936960&tin=02508201610067®Number=0000000000091776&sum=50000 [13:25:08]OFD Sender: Processing packet 192178 [packets to send 75, broken 74] [13:25:08]ProducePacketName [13:25:08]name=ofd_packets/00192178 [13:25:08]OFD Sender: To server: pG, [13:25:08]CommunicateWithHost lk.salyk.kg:30040 [13:25:08]ConnectInit lk.salyk.kg [13:25:08]written 0, free lines is 4095 [13:25:08]Connected sock=8 [13:25:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 EC 07 01 3D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 47 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EE 02 00 35 04 06 00 D2 3A 69 DB 9F 40 20 E5 5E 93 E5 40 F4 35 [13:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 FE 47 00 EC B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EE 02 00 F4 03 04 00 0E E4 1D 67 B6 04 01 00 00 E6 5C 03 80 C8 4C D1 71 [13:25:09]CommunicateWithHost err = 0 [13:25:09]CheckOFDResponse [13:25:09]1017 (14) - 77093643461234 [13:25:09]1041 (16) - 0000000000871754 [13:25:09]1040 (4) - 192178 [13:25:09]1012 (4) - 27.10.2024 06:56 [13:25:09]1206 (1) - 0 [13:25:09]OFD Sender: Remove packet 192178 [13:25:09]ProducePacketName [13:25:09]name=ofd_packets/00192178 [13:25:09]NVStorageDeleteData [13:25:09]Write to MH i2c: 01 00 00 62 7C DE [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 07 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 07 00 62 7C 00 00 00 00 00 A3 0C 94 [13:25:09]RasterBufferAndPrint [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]written 0, free lines is 3239 [13:25:09]MH_Cut [13:25:09]Write to MH i2c: D1 01 00 69 7C 01 B7 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 01 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 01 00 69 7C 00 B6 [13:25:09]Write to MH i2c: 01 00 00 6A 7C E6 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]OFD Sender: No OFD packet to send [13:25:10]*** Cut start [13:25:10]*** Partial cut [13:25:10]*** CUTSNS_PIN = 1 [13:25:10]*** CUTSNS_PIN = 0 [13:25:10]*** Brake cut motor [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]*** Stop cut motor [13:25:10]*** Cut end [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 6A 7C 00 00 00 00 00 FF 0F FB [13:25:10]process_action close_receipt done [13:25:10]requested_data is exist [13:25:10]produce_requested_data [13:25:10]requested_item fm.sn is exist - process it [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 6B 7C 80 11 00 00 00 00 00 00 61 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 6B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:25:10]wFMCommunicate OK [13:25:10]requested_item fd.num is exist - process it [13:25:10]SAM_PROTO_GetFieldsCounters [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 13 00 00 [13:25:10]Write to MH i2c: E2 08 00 6C 7C 80 13 00 00 00 00 00 00 64 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 62 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 62 00 6C 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [13:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_GetFieldsCounters done [13:25:10]requested_item shift.num is exist - process it [13:25:10]requested_item shift.opened is exist - process it [13:25:10]req_shift_opened [13:25:10]FM_GetShiftState [13:25:11]SAM_PROTO_GetShiftState [13:25:11]wFMCommunicate request_size=4 [13:25:11]MH_SAM_APDU [13:25:11]CAPDU: 80 13 01 00 [13:25:11]Write to MH i2c: E2 08 00 6D 7C 80 13 01 00 00 00 00 00 66 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0E 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0E 00 6D 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A7 [13:25:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:25:11]wFMCommunicate OK [13:25:11]SAM_PROTO_GetShiftState done [13:25:11]FM_GetShiftState done [13:25:11]req_shift_opened done [13:25:11]requested_item shift.open_date is exist - process it [13:25:11]req_shift_open_date [13:25:11]req_shift_open_date done [13:25:11]produce_requested_data done [13:25:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192178,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:25:11]process_action_free close_receipt [13:25:11]json_value_free [13:25:11]json_value_free done [13:25:11]process_json_proto returns [13:25:11]Send response to host [13:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192178,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:25:11]free response buf [13:25:11]execute_script done [13:25:11]execute_script returns [13:25:11]free content buf [13:25:11]Sock 5.Close socket [13:25:11]Sock 5.Thread stoped [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:43]accept exits with 6 [13:26:43]New connection [13:26:43]New thread 3066817892 created [13:26:43]Thread 3066961252 joined [13:26:43]Waiting for new connection... [13:26:43] Sock 6.Parse request [13:26:43]Sock 6.Check first char [13:26:43]Sock 6.First char is OK [13:26:43]request: POST /json_proto HTTP/1.0 [13:26:43]Method: POST [13:26:43]URL: /json_proto [13:26:43]Method is POST - this is cgi request [13:26:43]url: /json_proto [13:26:43]query_string will be loaded in cgi processing [13:26:43]execute_cgi json_proto POST (null) [13:26:43]execute_cgi path=json_proto method=POST [13:26:43]POST find Content-Length [13:26:43]Host: 172.17.63.131:8080 [13:26:43]Content-Length: 678 [13:26:43]Content-Type: application/json [13:26:43] [13:26:43]POST finish read [13:26:43]Found Content-Length = 678 [13:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31492", "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" : 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:26:43]execute_script... [13:26: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)31492", "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" : 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:26:43]POST & json_proto [13:26:43]process_json_proto [13:26:43]json parsed OK: [13:26:43]protocol is kg_v1.0 [13:26:43]action value=close_receipt [13:26:43]process_action close_receipt [13:26:43]cmd_close_receipt [13:26:43]MH_GetDate [13:26:43]Write to MH i2c: F0 00 00 6E 7C D9 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 6E 7C 00 A7 3F 1E 67 22 05 6E 64 46 [13:26:43]GetLastDocTimeStamp 1730035527 [13:26:43]current date 1730035623 [13:26:43]FM_GetShiftState [13:26:43]SAM_PROTO_GetShiftState [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 13 01 00 [13:26:43]Write to MH i2c: E2 08 00 6F 7C 80 13 01 00 00 00 00 00 68 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 6F 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A9 [13:26:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:26:43]wFMCommunicate OK [13:26:43]SAM_PROTO_GetShiftState done [13:26:43]FM_GetShiftState done [13:26:43]opened in 1729989159 [13:26:43]opened+sec_in_day 1730075559 [13:26:43]quantity*price = 100050 [13:26:43]sum+1 = 100052 [13:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 211 27.10.2024 13:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192179 ФПД: 204748060011375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192179&fm=204748060011375&tin=02508201610067®Number=0000000000091776&sum=100000 [13:26:44]StoreToDocumentArchive [13:26:44]shift 542 fd 192179 [13:26:44]save to /storage/0542/doc_00192179 [13:26:44]save last doc name /storage/0542/doc_00192179 to /storage/kkm_last_doc_name [13:26:44]save OK [13:26:44]Clear old archive folders... [13:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:44]tlvbuf is 018CAA30 [13:26:44]SAM_PROTO_ClearQueue [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 09 00 00 [13:26:44]Write to MH i2c: E2 08 00 7C 7C 80 09 00 00 00 00 00 00 6A [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 7C 7C 00 90 00 6C [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_ClearQueue done [13:26:44]KKMCreateOFDPacket [13:26:44]OFDProtocolAddRootSTLVToBuf [13:26:44]FM_MakeSignedData [13:26:44]FM_MakeSignedData [13:26:44]SAM_PROTO_SignData [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 01 02 [13:26:44]Write to MH i2c: E2 08 00 7D 7C 80 0D 01 02 00 00 00 00 72 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 7D 7C 00 90 00 6D [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=255 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A7 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EE 02 00 35 04 06 00 BA 37 9F 62 [13:26:44]Write to MH i2c: E2 02 01 7E 7C 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 D3 00 00 00 F4 03 04 00 A7 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EE 02 00 35 04 06 00 BA 37 9F 62 00 00 EF [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:45]Read from MH i2c: E2 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 03 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 03 00 7E 7C 00 90 00 6E [13:26:45]RAPDU: 90 00 [13:26:45]wFMCommunicate OK [13:26:45]wFMCommunicate request_size=7 [13:26:45]MH_SAM_APDU [13:26:45]CAPDU: 80 0D 02 02 02 AB 6F [13:26:45]Write to MH i2c: E2 0A 00 7F 7C 80 0D 02 02 02 00 AB 6F 00 00 93 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:45]Read from MH i2c: E2 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 03 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 03 00 7F 7C 00 90 00 6F [13:26:45]RAPDU: 90 00 [13:26:45]wFMCommunicate OK [13:26:45]wFMCommunicate request_size=4 [13:26:45]MH_SAM_APDU [13:26:45]CAPDU: 80 0D 03 02 [13:26:45]Write to MH i2c: E2 08 00 80 7C 80 0D 03 02 00 00 00 00 77 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:45]Read from MH i2c: E2 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 0B 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 0B 00 80 7C 00 B0 E3 97 F7 2A B4 B0 AD 90 00 D4 [13:26:45]RAPDU: B0 E3 97 F7 2A B4 B0 AD 90 00 [13:26:45]wFMCommunicate OK [13:26:45]SAM_PROTO_SignData done [13:26:45]FM_MakeSignedData done [13:26:45]CreateOFDProtocolMessage [13:26:45]wFMCommunicate request_size=4 [13:26:45]MH_SAM_APDU [13:26:45]CAPDU: 80 11 00 00 [13:26:45]Write to MH i2c: E2 08 00 81 7C 80 11 00 00 00 00 00 00 77 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:45]Read from MH i2c: E2 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 17 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: E2 17 00 81 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [13:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:26:45]wFMCommunicate OK [13:26:45]CreateOFDProtocolMessage done [13:26:45]OFDSenderStorePacket 192179 [13:26:45]StoreOFDPacket docnum=192179 [13:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2D D6 04 01 30 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 A7 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EE 02 00 35 04 06 00 BA 37 9F 62 AB 6F B0 E3 97 F7 2A B4 B0 AD [13:26:45]CheckFolder [13:26:45]dirname=/storage/ofd_packets [13:26:45]CheckFolder done [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00192179 [13:26:45]NVStorageSaveData ofd_packets/00192179 [13:26:45]File name is /storage/ofd_packets/00192179 [13:26:45]Write 298 bytes [13:26:45]NVStorageSaveData done [13:26:45]OFDSenderStorePacket done [13:26:45]KKMCreateOFDPacket done [13:26:45]NVStorageSaveData kkm_last_timestamp [13:26:45]File name is /storage/kkm_last_timestamp [13:26:45]Write 4 bytes [13:26:45]NVStorageSaveData done [13:26:45]ExternCall_PrintAddStr [13:26:45]wPrintStart [13:26:45]Write to MH i2c: 01 00 00 82 7C FE [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 82 7C 00 00 00 00 00 FF 0F 13 [13:26:45]RasterBufferAndPrint [13:26:45]line Счет N : (1)31492 [13:26:45]line ИНН: 02508201610067 [13:26:45]line Контрольно-Кассовый Чек [13:26:45]line ПРОДАЖА [13:26:45]line ТРК (МРК, ГНК) : 11 [13:26:45]line Товар: 2710194210 [13:26:45]line ДТ-К-5 [13:26:45]line 13.130 * 76.20 [13:26:45]line = 1000.51 [13:26:45]line НДС 12% НСП 1% [13:26:45]line > о реализуемом товаре [13:26:45]line ОКРУГЛЕНИЕ: -0.51 [13:26:45]line ИТОГО: 1000.00 [13:26:45]line Внесено: 1000.00 [13:26:45]line СДАЧА: 0.00 [13:26:45]line НСП 1% : 8.85 [13:26:45]line НДС 12% : 106.25 [13:26:45]line Наличными: 1000.00 [13:26:45]line Безнал.: 0.00 [13:26:45]line Место: АЗС № 170 "Партнер Нефть" [13:26:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:26:45]line СНО: Общий режим [13:26:45]line Чек 211 27.10.2024 13:27 [13:26:45]line Смена: 542 ФФД: 1.0 [13:26:45]line ЗНМ: 0300000110 [13:26:45]line РНМ: 0000000000091776 [13:26:45]line Версия ККМ: 001 [13:26:45]line ФМ: 0000000000871754 [13:26:45]line ФД: 192179 [13:26:45]line ФПД: 204748060011375 [13:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192179&fm=204748060011375&tin=02508201610067®Number=0000000000091776&sum=100000 [13:26:45]OFD Sender: Processing packet 192179 [packets to send 75, broken 74] [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00192179 [13:26:45]OFD Sender: To server: pG, [13:26:45]CommunicateWithHost lk.salyk.kg:30040 [13:26:45]ConnectInit lk.salyk.kg [13:26:45]written 0, free lines is 4095 [13:26:45]Connected sock=8 [13:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2D D6 04 01 30 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 A7 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EE 02 00 35 04 06 00 BA 37 9F 62 AB 6F B0 E3 97 F7 2A B4 B0 AD [13:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CC DC 47 00 66 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EE 02 00 F4 03 04 00 6F E4 1D 67 B6 04 01 00 00 A9 1C 69 E6 9A 7B 49 50 [13:26:45]CommunicateWithHost err = 0 [13:26:45]CheckOFDResponse [13:26:45]1017 (14) - 77093643461234 [13:26:45]1041 (16) - 0000000000871754 [13:26:45]1040 (4) - 192179 [13:26:45]1012 (4) - 27.10.2024 06:57 [13:26:45]1206 (1) - 0 [13:26:45]OFD Sender: Remove packet 192179 [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00192179 [13:26:45]NVStorageDeleteData [13:26:46]Write to MH i2c: 01 00 00 AD 7C 29 [13:26:46]Write i2c OK [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: 01 [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: 01 07 00 [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: 01 07 00 AD 7C 00 00 00 00 00 9E 0C DA [13:26:46]RasterBufferAndPrint [13:26:46]line [13:26:46]line [13:26:46]line [13:26:46]line [13:26:46]line [13:26:46]written 0, free lines is 3238 [13:26:46]MH_Cut [13:26:46]Write to MH i2c: D1 01 00 B4 7C 01 02 [13:26:46]Write i2c OK [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: D1 [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: D1 01 00 [13:26:46]MH_I2C_Read... [13:26:46]Read from MH i2c: D1 01 00 B4 7C 00 01 [13:26:46]Write to MH i2c: 01 00 00 B5 7C 31 [13:26:46]Write i2c OK [13:26:46]MH_I2C_Read... [13:26:46]OFD Sender: No OFD packet to send [13:26:46]*** Cut start [13:26:46]*** Partial cut [13:26:46]*** CUTSNS_PIN = 1 [13:26:47]*** CUTSNS_PIN = 0 [13:26:47]*** Brake cut motor [13:26:47]Read from MH i2c: 01 [13:26:47]MH_I2C_Read... [13:26:47]*** Stop cut motor [13:26:47]*** Cut end [13:26:47]Read from MH i2c: 01 07 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: 01 07 00 B5 7C 00 00 00 00 00 FF 0F 46 [13:26:47]process_action close_receipt done [13:26:47]requested_data is exist [13:26:47]produce_requested_data [13:26:47]requested_item fm.sn is exist - process it [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 11 00 00 [13:26:47]Write to MH i2c: E2 08 00 B6 7C 80 11 00 00 00 00 00 00 AC [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 B6 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [13:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:26:47]wFMCommunicate OK [13:26:47]requested_item fd.num is exist - process it [13:26:47]SAM_PROTO_GetFieldsCounters [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 00 00 [13:26:47]Write to MH i2c: E2 08 00 B7 7C 80 13 00 00 00 00 00 00 AF [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 B7 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [13:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetFieldsCounters done [13:26:47]requested_item shift.num is exist - process it [13:26:47]requested_item shift.opened is exist - process it [13:26:47]req_shift_opened [13:26:47]FM_GetShiftState [13:26:47]SAM_PROTO_GetShiftState [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 01 00 [13:26:47]Write to MH i2c: E2 08 00 B8 7C 80 13 01 00 00 00 00 00 B1 [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 B8 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [13:26:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetShiftState done [13:26:47]FM_GetShiftState done [13:26:47]req_shift_opened done [13:26:47]requested_item shift.open_date is exist - process it [13:26:47]req_shift_open_date [13:26:47]req_shift_open_date done [13:26:47]produce_requested_data done [13:26:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192179,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:26:47]process_action_free close_receipt [13:26:47]json_value_free [13:26:47]json_value_free done [13:26:47]process_json_proto returns [13:26:47]Send response to host [13:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192179,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:26:47]free response buf [13:26:47]execute_script done [13:26:47]execute_script returns [13:26:47]free content buf [13:26:47]Sock 6.Close socket [13:26:47]Sock 6.Thread stoped [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:26:57]accept exits with 5 [13:26:57]New connection [13:26:57]New thread 3066961252 created [13:26:57]Thread 3066817892 joined [13:26:57]Waiting for new connection... [13:26:57] Sock 5.Parse request [13:26:57]Sock 5.Check first char [13:26:57]Sock 5.First char is OK [13:26:57]request: POST /json_proto HTTP/1.0 [13:26:57]Method: POST [13:26:57]URL: /json_proto [13:26:57]Method is POST - this is cgi request [13:26:57]url: /json_proto [13:26:57]query_string will be loaded in cgi processing [13:26:57]execute_cgi json_proto POST (null) [13:26:57]execute_cgi path=json_proto method=POST [13:26:57]POST find Content-Length [13:26:57]Host: 172.17.63.131:8080 [13:26:57]Content-Length: 681 [13:26:57]Content-Type: application/json [13:26:57] [13:26:57]POST finish read [13:26:57]Found Content-Length = 681 [13:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:57]execute_script... [13:26: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)31493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:57]POST & json_proto [13:26:57]process_json_proto [13:26:57]json parsed OK: [13:26:57]protocol is kg_v1.0 [13:26:57]action value=close_receipt [13:26:57]process_action close_receipt [13:26:57]cmd_close_receipt [13:26:57]MH_GetDate [13:26:57]Write to MH i2c: F0 00 00 B9 7C 24 [13:26:57]Write i2c OK [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: F0 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: F0 09 00 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: F0 09 00 B9 7C 00 B5 3F 1E 67 22 05 6E 64 9F [13:26:57]GetLastDocTimeStamp 1730035623 [13:26:57]current date 1730035637 [13:26:57]FM_GetShiftState [13:26:57]SAM_PROTO_GetShiftState [13:26:57]wFMCommunicate request_size=4 [13:26:57]MH_SAM_APDU [13:26:57]CAPDU: 80 13 01 00 [13:26:57]Write to MH i2c: E2 08 00 BA 7C 80 13 01 00 00 00 00 00 B3 [13:26:57]Write i2c OK [13:26:57]MH_I2C_Read... [13:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:57]Read from MH i2c: E2 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 0E 00 [13:26:57]MH_I2C_Read... [13:26:57]Read from MH i2c: E2 0E 00 BA 7C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F4 [13:26:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:26:57]wFMCommunicate OK [13:26:57]SAM_PROTO_GetShiftState done [13:26:57]FM_GetShiftState done [13:26:57]opened in 1729989159 [13:26:57]opened+sec_in_day 1730075559 [13:26:57]quantity*price = 100015 [13:26:57]sum+1 = 100017 [13:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 212 27.10.2024 13:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192180 ФПД: 69718525040220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132718&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192180&fm=69718525040220&tin=02508201610067®Number=0000000000091776&sum=100000 [13:26:58]StoreToDocumentArchive [13:26:58]shift 542 fd 192180 [13:26:58]save to /storage/0542/doc_00192180 [13:26:58]save last doc name /storage/0542/doc_00192180 to /storage/kkm_last_doc_name [13:26:58]save OK [13:26:58]Clear old archive folders... [13:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:58]tlvbuf is 01B4D2D0 [13:26:58]SAM_PROTO_ClearQueue [13:26:58]wFMCommunicate request_size=4 [13:26:58]MH_SAM_APDU [13:26:58]CAPDU: 80 09 00 00 [13:26:58]Write to MH i2c: E2 08 00 C7 7C 80 09 00 00 00 00 00 00 B5 [13:26:58]Write i2c OK [13:26:58]MH_I2C_Read... [13:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:58]Read from MH i2c: E2 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 03 00 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 03 00 C7 7C 00 90 00 B7 [13:26:58]RAPDU: 90 00 [13:26:58]wFMCommunicate OK [13:26:58]SAM_PROTO_ClearQueue done [13:26:58]KKMCreateOFDPacket [13:26:58]OFDProtocolAddRootSTLVToBuf [13:26:58]FM_MakeSignedData [13:26:58]FM_MakeSignedData [13:26:58]SAM_PROTO_SignData [13:26:58]wFMCommunicate request_size=4 [13:26:58]MH_SAM_APDU [13:26:58]CAPDU: 80 0D 01 02 [13:26:58]Write to MH i2c: E2 08 00 C8 7C 80 0D 01 02 00 00 00 00 BD [13:26:58]Write i2c OK [13:26:58]MH_I2C_Read... [13:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:58]Read from MH i2c: E2 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 03 00 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 03 00 C8 7C 00 90 00 B8 [13:26:58]RAPDU: 90 00 [13:26:58]wFMCommunicate OK [13:26:58]wFMCommunicate request_size=255 [13:26:58]MH_SAM_APDU [13:26:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 B6 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EE 02 00 35 04 06 00 3F [13:26:58]Write to MH i2c: E2 02 01 C9 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 B6 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EE 02 00 35 04 06 00 3F 00 00 9C [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 C9 7C 00 90 00 B9 [13:26:59]RAPDU: 90 00 [13:26:59]wFMCommunicate OK [13:26:59]wFMCommunicate request_size=10 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 0D 02 02 05 68 9B EB 56 5C [13:26:59]Write to MH i2c: E2 0D 00 CA 7C 80 0D 02 02 05 00 68 9B EB 56 5C 00 00 6A [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 CA 7C 00 90 00 BA [13:26:59]RAPDU: 90 00 [13:26:59]wFMCommunicate OK [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 0D 03 02 [13:26:59]Write to MH i2c: E2 08 00 CB 7C 80 0D 03 02 00 00 00 00 C2 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 0B 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 0B 00 CB 7C 00 7A DB DC A2 40 C6 0F E7 90 00 92 [13:26:59]RAPDU: 7A DB DC A2 40 C6 0F E7 90 00 [13:26:59]wFMCommunicate OK [13:26:59]SAM_PROTO_SignData done [13:26:59]FM_MakeSignedData done [13:26:59]CreateOFDProtocolMessage [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 11 00 00 [13:26:59]Write to MH i2c: E2 08 00 CC 7C 80 11 00 00 00 00 00 00 C2 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 17 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 17 00 CC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [13:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:26:59]wFMCommunicate OK [13:26:59]CreateOFDProtocolMessage done [13:26:59]OFDSenderStorePacket 192180 [13:26:59]StoreOFDPacket docnum=192180 [13:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 C0 07 01 C6 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 B6 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EE 02 00 35 04 06 00 3F 68 9B EB 56 5C 7A DB DC A2 40 C6 0F E7 [13:26:59]CheckFolder [13:26:59]dirname=/storage/ofd_packets [13:26:59]CheckFolder done [13:26:59]ProducePacketName [13:26:59]name=ofd_packets/00192180 [13:26:59]NVStorageSaveData ofd_packets/00192180 [13:26:59]File name is /storage/ofd_packets/00192180 [13:26:59]Write 301 bytes [13:26:59]NVStorageSaveData done [13:26:59]OFDSenderStorePacket done [13:26:59]KKMCreateOFDPacket done [13:26:59]NVStorageSaveData kkm_last_timestamp [13:26:59]File name is /storage/kkm_last_timestamp [13:26:59]Write 4 bytes [13:26:59]NVStorageSaveData done [13:26:59]ExternCall_PrintAddStr [13:26:59]wPrintStart [13:26:59]Write to MH i2c: 01 00 00 CD 7C 49 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 07 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 07 00 CD 7C 00 00 00 00 00 FF 0F 5E [13:26:59]RasterBufferAndPrint [13:26:59]line Счет N : (1)31493 [13:26:59]line ИНН: 02508201610067 [13:26:59]line Контрольно-Кассовый Чек [13:26:59]line ПРОДАЖА [13:26:59]line ТРК (МРК, ГНК) : 21 [13:26:59]line Товар: 2710124130 [13:26:59]line Аи-92-К-5 [13:26:59]line 14.950 * 66.90 [13:26:59]line = 1000.16 [13:26:59]line НДС 12% НСП 1% [13:26:59]line > о реализуемом товаре [13:26:59]line ОКРУГЛЕНИЕ: -0.16 [13:26:59]line ИТОГО: 1000.00 [13:26:59]line Внесено: 1000.00 [13:26:59]line СДАЧА: 0.00 [13:26:59]line НСП 1% : 8.85 [13:26:59]line НДС 12% : 106.21 [13:26:59]line Наличными: 1000.00 [13:26:59]line Безнал.: 0.00 [13:26:59]line Место: АЗС № 170 "Партнер Нефть" [13:26:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:26:59]line СНО: Общий режим [13:26:59]line Чек 212 27.10.2024 13:27 [13:26:59]line Смена: 542 ФФД: 1.0 [13:26:59]line ЗНМ: 0300000110 [13:26:59]line РНМ: 0000000000091776 [13:26:59]line Версия ККМ: 001 [13:26:59]line ФМ: 0000000000871754 [13:26:59]line ФД: 192180 [13:26:59]line ФПД: 69718525040220 [13:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132718&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192180&fm=69718525040220&tin=02508201610067®Number=0000000000091776&sum=100000 [13:26:59]written 0, free lines is 4095 [13:26:59]OFD Sender: Processing packet 192180 [packets to send 75, broken 74] [13:26:59]ProducePacketName [13:26:59]name=ofd_packets/00192180 [13:26:59]OFD Sender: To server: pG, [13:26:59]CommunicateWithHost lk.salyk.kg:30040 [13:26:59]ConnectInit lk.salyk.kg [13:26:59]Connected sock=9 [13:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 C0 07 01 C6 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 B6 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EE 02 00 35 04 06 00 3F 68 9B EB 56 5C 7A DB DC A2 40 C6 0F E7 [13:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8D 3D 47 00 FC C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EE 02 00 F4 03 04 00 7D E4 1D 67 B6 04 01 00 00 9E B3 92 5D 17 1C 2C EE [13:26:59]CommunicateWithHost err = 0 [13:26:59]CheckOFDResponse [13:26:59]1017 (14) - 77093643461234 [13:26:59]1041 (16) - 0000000000871754 [13:26:59]1040 (4) - 192180 [13:26:59]1012 (4) - 27.10.2024 06:58 [13:26:59]1206 (1) - 0 [13:26:59]OFD Sender: Remove packet 192180 [13:26:59]ProducePacketName [13:26:59]name=ofd_packets/00192180 [13:26:59]NVStorageDeleteData [13:26:59]Write to MH i2c: 01 00 00 F8 7C 74 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 07 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: 01 07 00 F8 7C 00 00 00 00 00 AA 0C 31 [13:26:59]RasterBufferAndPrint [13:26:59]line [13:26:59]line [13:26:59]line [13:26:59]line [13:26:59]line [13:26:59]written 0, free lines is 3248 [13:26:59]MH_Cut [13:26:59]Write to MH i2c: D1 01 00 FF 7C 01 4D [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: D1 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: D1 01 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: D1 01 00 FF 7C 00 4C [13:26:59]Write to MH i2c: 01 00 00 00 7D 7D [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:27:00]OFD Sender: No OFD packet to send [13:27:00]*** Cut start [13:27:00]*** Partial cut [13:27:00]*** CUTSNS_PIN = 1 [13:27:00]*** CUTSNS_PIN = 0 [13:27:01]*** Brake cut motor [13:27:01]Read from MH i2c: 01 [13:27:01]MH_I2C_Read... [13:27:01]*** Stop cut motor [13:27:01]*** Cut end [13:27:01]Read from MH i2c: 01 07 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 00 7D 00 00 00 00 00 FF 0F 92 [13:27:01]process_action close_receipt done [13:27:01]requested_data is exist [13:27:01]produce_requested_data [13:27:01]requested_item fm.sn is exist - process it [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 11 00 00 [13:27:01]Write to MH i2c: E2 08 00 01 7D 80 11 00 00 00 00 00 00 F8 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 01 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [13:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:27:01]wFMCommunicate OK [13:27:01]requested_item fd.num is exist - process it [13:27:01]SAM_PROTO_GetFieldsCounters [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 13 00 00 [13:27:01]Write to MH i2c: E2 08 00 02 7D 80 13 00 00 00 00 00 00 FB [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 62 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 62 00 02 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_GetFieldsCounters done [13:27:01]requested_item shift.num is exist - process it [13:27:01]requested_item shift.opened is exist - process it [13:27:01]req_shift_opened [13:27:01]FM_GetShiftState [13:27:01]SAM_PROTO_GetShiftState [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 13 01 00 [13:27:01]Write to MH i2c: E2 08 00 03 7D 80 13 01 00 00 00 00 00 FD [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0E 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0E 00 03 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3E [13:27:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_GetShiftState done [13:27:01]FM_GetShiftState done [13:27:01]req_shift_opened done [13:27:01]requested_item shift.open_date is exist - process it [13:27:01]req_shift_open_date [13:27:01]req_shift_open_date done [13:27:01]produce_requested_data done [13:27:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192180,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:27:01]process_action_free close_receipt [13:27:01]json_value_free [13:27:01]json_value_free done [13:27:01]process_json_proto returns [13:27:01]Send response to host [13:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192180,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:27:01]free response buf [13:27:01]execute_script done [13:27:01]execute_script returns [13:27:01]free content buf [13:27:01]Sock 5.Close socket [13:27:01]Sock 5.Thread stoped [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:11]accept exits with 6 [13:27:11]New connection [13:27:11]New thread 3066817892 created [13:27:11]Thread 3066961252 joined [13:27:11]Waiting for new connection... [13:27:11] Sock 6.Parse request [13:27:11]Sock 6.Check first char [13:27:11]Sock 6.First char is OK [13:27:11]request: POST /json_proto HTTP/1.0 [13:27:11]Method: POST [13:27:11]URL: /json_proto [13:27:11]Method is POST - this is cgi request [13:27:11]url: /json_proto [13:27:11]query_string will be loaded in cgi processing [13:27:11]execute_cgi json_proto POST (null) [13:27:11]execute_cgi path=json_proto method=POST [13:27:11]POST find Content-Length [13:27:11]Host: 172.17.63.131:8080 [13:27:11]Content-Length: 676 [13:27:11]Content-Type: application/json [13:27:11] [13:27:11]POST finish read [13:27:11]Found Content-Length = 676 [13:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:11]execute_script... [13:27: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)31494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:11]POST & json_proto [13:27:11]process_json_proto [13:27:11]json parsed OK: [13:27:11]protocol is kg_v1.0 [13:27:11]action value=close_receipt [13:27:11]process_action close_receipt [13:27:11]cmd_close_receipt [13:27:11]MH_GetDate [13:27:11]Write to MH i2c: F0 00 00 04 7D 70 [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: F0 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: F0 09 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: F0 09 00 04 7D 00 C3 3F 1E 67 22 05 6E 64 F9 [13:27:11]GetLastDocTimeStamp 1730035638 [13:27:11]current date 1730035651 [13:27:11]FM_GetShiftState [13:27:11]SAM_PROTO_GetShiftState [13:27:11]wFMCommunicate request_size=4 [13:27:11]MH_SAM_APDU [13:27:11]CAPDU: 80 13 01 00 [13:27:11]Write to MH i2c: E2 08 00 05 7D 80 13 01 00 00 00 00 00 FF [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:11]Read from MH i2c: E2 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 0E 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 0E 00 05 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 40 [13:27:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:27:11]wFMCommunicate OK [13:27:11]SAM_PROTO_GetShiftState done [13:27:11]FM_GetShiftState done [13:27:11]opened in 1729989159 [13:27:11]opened+sec_in_day 1730075559 [13:27:11]quantity*price = 50041 [13:27:11]sum+1 = 50042 [13:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 213 27.10.2024 13:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192181 ФПД: 200594679992785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192181&fm=200594679992785&tin=02508201610067®Number=0000000000091776&sum=50000 [13:27:12]StoreToDocumentArchive [13:27:12]shift 542 fd 192181 [13:27:12]save to /storage/0542/doc_00192181 [13:27:12]save last doc name /storage/0542/doc_00192181 to /storage/kkm_last_doc_name [13:27:12]save OK [13:27:12]Clear old archive folders... [13:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:12]tlvbuf is 018CAA20 [13:27:12]SAM_PROTO_ClearQueue [13:27:12]wFMCommunicate request_size=4 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 09 00 00 [13:27:12]Write to MH i2c: E2 08 00 12 7D 80 09 00 00 00 00 00 00 01 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 12 7D 00 90 00 03 [13:27:12]RAPDU: 90 00 [13:27:12]wFMCommunicate OK [13:27:12]SAM_PROTO_ClearQueue done [13:27:12]KKMCreateOFDPacket [13:27:12]OFDProtocolAddRootSTLVToBuf [13:27:12]FM_MakeSignedData [13:27:12]FM_MakeSignedData [13:27:12]SAM_PROTO_SignData [13:27:12]wFMCommunicate request_size=4 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 0D 01 02 [13:27:12]Write to MH i2c: E2 08 00 13 7D 80 0D 01 02 00 00 00 00 09 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 13 7D 00 90 00 04 [13:27:12]RAPDU: 90 00 [13:27:12]wFMCommunicate OK [13:27:12]wFMCommunicate request_size=255 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C3 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EE 02 00 35 04 06 00 B6 [13:27:12]Write to MH i2c: E2 02 01 14 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C3 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EE 02 00 35 04 06 00 B6 00 00 74 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 14 7D 00 90 00 05 [13:27:12]RAPDU: 90 00 [13:27:12]wFMCommunicate OK [13:27:12]wFMCommunicate request_size=10 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 0D 02 02 05 70 96 A5 11 D1 [13:27:12]Write to MH i2c: E2 0D 00 15 7D 80 0D 02 02 05 00 70 96 A5 11 D1 00 00 A3 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 03 00 15 7D 00 90 00 06 [13:27:12]RAPDU: 90 00 [13:27:12]wFMCommunicate OK [13:27:12]wFMCommunicate request_size=4 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 0D 03 02 [13:27:12]Write to MH i2c: E2 08 00 16 7D 80 0D 03 02 00 00 00 00 0E [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 0B 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 0B 00 16 7D 00 27 C3 0E 28 F6 D1 F3 75 90 00 5E [13:27:12]RAPDU: 27 C3 0E 28 F6 D1 F3 75 90 00 [13:27:12]wFMCommunicate OK [13:27:12]SAM_PROTO_SignData done [13:27:12]FM_MakeSignedData done [13:27:12]CreateOFDProtocolMessage [13:27:12]wFMCommunicate request_size=4 [13:27:12]MH_SAM_APDU [13:27:12]CAPDU: 80 11 00 00 [13:27:12]Write to MH i2c: E2 08 00 17 7D 80 11 00 00 00 00 00 00 0E [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:12]Read from MH i2c: E2 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 17 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: E2 17 00 17 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [13:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:27:12]wFMCommunicate OK [13:27:12]CreateOFDProtocolMessage done [13:27:12]OFDSenderStorePacket 192181 [13:27:12]StoreOFDPacket docnum=192181 [13:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 5B 07 01 C6 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C3 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EE 02 00 35 04 06 00 B6 70 96 A5 11 D1 27 C3 0E 28 F6 D1 F3 75 [13:27:12]CheckFolder [13:27:12]dirname=/storage/ofd_packets [13:27:12]CheckFolder done [13:27:12]ProducePacketName [13:27:12]name=ofd_packets/00192181 [13:27:12]NVStorageSaveData ofd_packets/00192181 [13:27:12]File name is /storage/ofd_packets/00192181 [13:27:12]Write 301 bytes [13:27:12]NVStorageSaveData done [13:27:12]OFDSenderStorePacket done [13:27:12]KKMCreateOFDPacket done [13:27:12]NVStorageSaveData kkm_last_timestamp [13:27:12]File name is /storage/kkm_last_timestamp [13:27:12]Write 4 bytes [13:27:12]NVStorageSaveData done [13:27:12]ExternCall_PrintAddStr [13:27:12]wPrintStart [13:27:12]Write to MH i2c: 01 00 00 18 7D 95 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 07 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 07 00 18 7D 00 00 00 00 00 FF 0F AA [13:27:12]RasterBufferAndPrint [13:27:12]line Счет N : (1)31494 [13:27:12]line ИНН: 02508201610067 [13:27:12]line Контрольно-Кассовый Чек [13:27:12]line ПРОДАЖА [13:27:12]line ТРК (МРК, ГНК) : 12 [13:27:12]line Товар: 2710124130 [13:27:12]line Аи-92-К-5 [13:27:12]line 7.480 * 66.90 [13:27:12]line = 500.41 [13:27:12]line НДС 12% НСП 1% [13:27:12]line > о реализуемом товаре [13:27:12]line ОКРУГЛЕНИЕ: -0.41 [13:27:12]line ИТОГО: 500.00 [13:27:12]line Внесено: 500.00 [13:27:12]line СДАЧА: 0.00 [13:27:12]line НСП 1% : 4.43 [13:27:12]line НДС 12% : 53.14 [13:27:12]line Наличными: 500.00 [13:27:12]line Безнал.: 0.00 [13:27:12]line Место: АЗС № 170 "Партнер Нефть" [13:27:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:27:12]line СНО: Общий режим [13:27:12]line Чек 213 27.10.2024 13:27 [13:27:12]line Смена: 542 ФФД: 1.0 [13:27:12]line ЗНМ: 0300000110 [13:27:12]line РНМ: 0000000000091776 [13:27:12]line Версия ККМ: 001 [13:27:12]line ФМ: 0000000000871754 [13:27:12]line ФД: 192181 [13:27:12]line ФПД: 200594679992785 [13:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192181&fm=200594679992785&tin=02508201610067®Number=0000000000091776&sum=50000 [13:27:12]OFD Sender: Processing packet 192181 [packets to send 75, broken 74] [13:27:12]ProducePacketName [13:27:12]name=ofd_packets/00192181 [13:27:12]OFD Sender: To server: pG, [13:27:12]CommunicateWithHost lk.salyk.kg:30040 [13:27:12]ConnectInit lk.salyk.kg [13:27:12]written 0, free lines is 4095 [13:27:12]Connected sock=8 [13:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 5B 07 01 C6 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C3 3F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EE 02 00 35 04 06 00 B6 70 96 A5 11 D1 27 C3 0E 28 F6 D1 F3 75 [13:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F E0 47 00 33 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EE 02 00 F4 03 04 00 8A E4 1D 67 B6 04 01 00 00 4E 3A DB 97 B4 7D 70 85 [13:27:13]CommunicateWithHost err = 0 [13:27:13]CheckOFDResponse [13:27:13]1017 (14) - 77093643461234 [13:27:13]1041 (16) - 0000000000871754 [13:27:13]1040 (4) - 192181 [13:27:13]1012 (4) - 27.10.2024 06:58 [13:27:13]1206 (1) - 0 [13:27:13]OFD Sender: Remove packet 192181 [13:27:13]ProducePacketName [13:27:13]name=ofd_packets/00192181 [13:27:13]NVStorageDeleteData [13:27:13]Write to MH i2c: 01 00 00 43 7D C0 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: 01 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: 01 07 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: 01 07 00 43 7D 00 00 00 00 00 AD 0C 80 [13:27:13]RasterBufferAndPrint [13:27:13]line [13:27:13]line [13:27:13]line [13:27:13]line [13:27:13]line [13:27:13]written 0, free lines is 3258 [13:27:13]MH_Cut [13:27:13]Write to MH i2c: D1 01 00 4A 7D 01 99 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: D1 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: D1 01 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: D1 01 00 4A 7D 00 98 [13:27:13]Write to MH i2c: 01 00 00 4B 7D C8 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]OFD Sender: No OFD packet to send [13:27:14]*** Cut start [13:27:14]*** Partial cut [13:27:14]*** CUTSNS_PIN = 1 [13:27:14]*** CUTSNS_PIN = 0 [13:27:14]*** Brake cut motor [13:27:14]Read from MH i2c: 01 [13:27:14]MH_I2C_Read... [13:27:14]*** Stop cut motor [13:27:14]*** Cut end [13:27:14]Read from MH i2c: 01 07 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: 01 07 00 4B 7D 00 00 00 00 00 FF 0F DD [13:27:14]process_action close_receipt done [13:27:14]requested_data is exist [13:27:14]produce_requested_data [13:27:14]requested_item fm.sn is exist - process it [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 11 00 00 [13:27:14]Write to MH i2c: E2 08 00 4C 7D 80 11 00 00 00 00 00 00 43 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 17 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 17 00 4C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [13:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:27:14]wFMCommunicate OK [13:27:14]requested_item fd.num is exist - process it [13:27:14]SAM_PROTO_GetFieldsCounters [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 13 00 00 [13:27:14]Write to MH i2c: E2 08 00 4D 7D 80 13 00 00 00 00 00 00 46 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:15]Read from MH i2c: E2 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 62 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 62 00 4D 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:15]wFMCommunicate OK [13:27:15]SAM_PROTO_GetFieldsCounters done [13:27:15]requested_item shift.num is exist - process it [13:27:15]requested_item shift.opened is exist - process it [13:27:15]req_shift_opened [13:27:15]FM_GetShiftState [13:27:15]SAM_PROTO_GetShiftState [13:27:15]wFMCommunicate request_size=4 [13:27:15]MH_SAM_APDU [13:27:15]CAPDU: 80 13 01 00 [13:27:15]Write to MH i2c: E2 08 00 4E 7D 80 13 01 00 00 00 00 00 48 [13:27:15]Write i2c OK [13:27:15]MH_I2C_Read... [13:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:15]Read from MH i2c: E2 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 0E 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 0E 00 4E 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 89 [13:27:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:27:15]wFMCommunicate OK [13:27:15]SAM_PROTO_GetShiftState done [13:27:15]FM_GetShiftState done [13:27:15]req_shift_opened done [13:27:15]requested_item shift.open_date is exist - process it [13:27:15]req_shift_open_date [13:27:15]req_shift_open_date done [13:27:15]produce_requested_data done [13:27:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192181,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:27:15]process_action_free close_receipt [13:27:15]json_value_free [13:27:15]json_value_free done [13:27:15]process_json_proto returns [13:27:15]Send response to host [13:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192181,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:27:15]free response buf [13:27:15]execute_script done [13:27:15]execute_script returns [13:27:15]free content buf [13:27:15]Sock 6.Close socket [13:27:15]Sock 6.Thread stoped [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:00]accept exits with 5 [13:29:00]New connection [13:29:00]New thread 3066961252 created [13:29:00]Thread 3066817892 joined [13:29:00]Waiting for new connection... [13:29:00] Sock 5.Parse request [13:29:00]Sock 5.Check first char [13:29:00]Sock 5.First char is OK [13:29:00]request: POST /json_proto HTTP/1.0 [13:29:00]Method: POST [13:29:00]URL: /json_proto [13:29:00]Method is POST - this is cgi request [13:29:00]url: /json_proto [13:29:00]query_string will be loaded in cgi processing [13:29:00]execute_cgi json_proto POST (null) [13:29:00]execute_cgi path=json_proto method=POST [13:29:00]POST find Content-Length [13:29:00]Host: 172.17.63.131:8080 [13:29:00]Content-Length: 677 [13:29:00]Content-Type: application/json [13:29:00] [13:29:00]POST finish read [13:29:00]Found Content-Length = 677 [13:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:00]execute_script... [13:29:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:00]POST & json_proto [13:29:00]process_json_proto [13:29:00]json parsed OK: [13:29:00]protocol is kg_v1.0 [13:29:00]action value=close_receipt [13:29:00]process_action close_receipt [13:29:00]cmd_close_receipt [13:29:00]MH_GetDate [13:29:00]Write to MH i2c: F0 00 00 4F 7D BB [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: F0 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: F0 09 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: F0 09 00 4F 7D 00 30 40 1E 67 22 05 6E 64 B2 [13:29:00]GetLastDocTimeStamp 1730035651 [13:29:00]current date 1730035760 [13:29:00]FM_GetShiftState [13:29:00]SAM_PROTO_GetShiftState [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 13 01 00 [13:29:00]Write to MH i2c: E2 08 00 50 7D 80 13 01 00 00 00 00 00 4A [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0E 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0E 00 50 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8B [13:29:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_GetShiftState done [13:29:00]FM_GetShiftState done [13:29:00]opened in 1729989159 [13:29:00]opened+sec_in_day 1730075559 [13:29:00]quantity*price = 80012 [13:29:00]sum+1 = 80013 [13:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 214 27.10.2024 13:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192182 ФПД: 263635231283155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192182&fm=263635231283155&tin=02508201610067®Number=0000000000091776&sum=80000 [13:29:01]StoreToDocumentArchive [13:29:01]shift 542 fd 192182 [13:29:01]save to /storage/0542/doc_00192182 [13:29:01]save last doc name /storage/0542/doc_00192182 to /storage/kkm_last_doc_name [13:29:01]save OK [13:29:01]Clear old archive folders... [13:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:01]tlvbuf is 01A50660 [13:29:01]SAM_PROTO_ClearQueue [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 09 00 00 [13:29:01]Write to MH i2c: E2 08 00 5D 7D 80 09 00 00 00 00 00 00 4C [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 5D 7D 00 90 00 4E [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_ClearQueue done [13:29:01]KKMCreateOFDPacket [13:29:01]OFDProtocolAddRootSTLVToBuf [13:29:01]FM_MakeSignedData [13:29:01]FM_MakeSignedData [13:29:01]SAM_PROTO_SignData [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 01 02 [13:29:01]Write to MH i2c: E2 08 00 5E 7D 80 0D 01 02 00 00 00 00 54 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 5E 7D 00 90 00 4F [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=255 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EE 02 00 35 04 06 00 EF [13:29:01]Write to MH i2c: E2 02 01 5F 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EE 02 00 35 04 06 00 EF 00 00 54 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 5F 7D 00 90 00 50 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=10 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 02 02 05 C6 5C 4F 97 D3 [13:29:01]Write to MH i2c: E2 0D 00 60 7D 80 0D 02 02 05 00 C6 5C 4F 97 D3 00 00 3C [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 60 7D 00 90 00 51 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 03 02 [13:29:01]Write to MH i2c: E2 08 00 61 7D 80 0D 03 02 00 00 00 00 59 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 61 7D 00 F3 D4 1E 55 C2 8D A2 C1 90 00 46 [13:29:01]RAPDU: F3 D4 1E 55 C2 8D A2 C1 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_SignData done [13:29:01]FM_MakeSignedData done [13:29:01]CreateOFDProtocolMessage [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 11 00 00 [13:29:01]Write to MH i2c: E2 08 00 62 7D 80 11 00 00 00 00 00 00 59 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 62 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [13:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:29:02]wFMCommunicate OK [13:29:02]CreateOFDProtocolMessage done [13:29:02]OFDSenderStorePacket 192182 [13:29:02]StoreOFDPacket docnum=192182 [13:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 6D 07 01 F4 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EE 02 00 35 04 06 00 EF C6 5C 4F 97 D3 F3 D4 1E 55 C2 8D A2 C1 [13:29:02]CheckFolder [13:29:02]dirname=/storage/ofd_packets [13:29:02]CheckFolder done [13:29:02]ProducePacketName [13:29:02]name=ofd_packets/00192182 [13:29:02]NVStorageSaveData ofd_packets/00192182 [13:29:02]File name is /storage/ofd_packets/00192182 [13:29:02]Write 301 bytes [13:29:02]NVStorageSaveData done [13:29:02]OFDSenderStorePacket done [13:29:02]KKMCreateOFDPacket done [13:29:02]NVStorageSaveData kkm_last_timestamp [13:29:02]File name is /storage/kkm_last_timestamp [13:29:02]Write 4 bytes [13:29:02]NVStorageSaveData done [13:29:02]ExternCall_PrintAddStr [13:29:02]wPrintStart [13:29:02]Write to MH i2c: 01 00 00 63 7D E0 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 63 7D 00 00 00 00 00 FF 0F F5 [13:29:02]RasterBufferAndPrint [13:29:02]line Счет N : (1)31495 [13:29:02]line ИНН: 02508201610067 [13:29:02]line Контрольно-Кассовый Чек [13:29:02]line ПРОДАЖА [13:29:02]line ТРК (МРК, ГНК) : 21 [13:29:02]line Товар: 2710124130 [13:29:02]line Аи-92-К-5 [13:29:02]line 11.960 * 66.90 [13:29:02]line = 800.12 [13:29:02]line НДС 12% НСП 1% [13:29:02]line > о реализуемом товаре [13:29:02]line ОКРУГЛЕНИЕ: -0.12 [13:29:02]line ИТОГО: 800.00 [13:29:02]line Внесено: 800.00 [13:29:02]line СДАЧА: 0.00 [13:29:02]line НСП 1% : 7.08 [13:29:02]line НДС 12% : 84.97 [13:29:02]line Наличными: 800.00 [13:29:02]line Безнал.: 0.00 [13:29:02]line Место: АЗС № 170 "Партнер Нефть" [13:29:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:29:02]line СНО: Общий режим [13:29:02]line Чек 214 27.10.2024 13:29 [13:29:02]line Смена: 542 ФФД: 1.0 [13:29:02]line ЗНМ: 0300000110 [13:29:02]line РНМ: 0000000000091776 [13:29:02]line Версия ККМ: 001 [13:29:02]line ФМ: 0000000000871754 [13:29:02]line ФД: 192182 [13:29:02]line ФПД: 263635231283155 [13:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192182&fm=263635231283155&tin=02508201610067®Number=0000000000091776&sum=80000 [13:29:02]OFD Sender: Processing packet 192182 [packets to send 75, broken 74] [13:29:02]ProducePacketName [13:29:02]name=ofd_packets/00192182 [13:29:02]OFD Sender: To server: pG, [13:29:02]CommunicateWithHost lk.salyk.kg:30040 [13:29:02]ConnectInit lk.salyk.kg [13:29:02]written 0, free lines is 4095 [13:29:02]Connected sock=8 [13:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 6D 07 01 F4 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 30 40 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EE 02 00 35 04 06 00 EF C6 5C 4F 97 D3 F3 D4 1E 55 C2 8D A2 C1 [13:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 11 B6 47 00 10 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EE 02 00 F4 03 04 00 F8 E4 1D 67 B6 04 01 00 00 9B 8B 6C A4 60 92 CB E5 [13:29:02]CommunicateWithHost err = 0 [13:29:02]CheckOFDResponse [13:29:02]1017 (14) - 77093643461234 [13:29:02]1041 (16) - 0000000000871754 [13:29:02]1040 (4) - 192182 [13:29:02]1012 (4) - 27.10.2024 07:00 [13:29:02]1206 (1) - 0 [13:29:02]OFD Sender: Remove packet 192182 [13:29:02]ProducePacketName [13:29:02]name=ofd_packets/00192182 [13:29:02]NVStorageDeleteData [13:29:02]Write to MH i2c: 01 00 00 8E 7D 0B [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 8E 7D 00 00 00 00 00 B2 0C D0 [13:29:02]RasterBufferAndPrint [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]written 0, free lines is 3256 [13:29:02]MH_Cut [13:29:02]Write to MH i2c: D1 01 00 95 7D 01 E4 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 95 7D 00 E3 [13:29:02]Write to MH i2c: 01 00 00 96 7D 13 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:03]OFD Sender: No OFD packet to send [13:29:03]*** Cut start [13:29:03]*** Partial cut [13:29:03]*** CUTSNS_PIN = 1 [13:29:03]*** CUTSNS_PIN = 0 [13:29:03]*** Brake cut motor [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]*** Stop cut motor [13:29:04]*** Cut end [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 96 7D 00 00 00 00 00 FF 0F 28 [13:29:04]process_action close_receipt done [13:29:04]requested_data is exist [13:29:04]produce_requested_data [13:29:04]requested_item fm.sn is exist - process it [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 11 00 00 [13:29:04]Write to MH i2c: E2 08 00 97 7D 80 11 00 00 00 00 00 00 8E [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 97 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [13:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:29:04]wFMCommunicate OK [13:29:04]requested_item fd.num is exist - process it [13:29:04]SAM_PROTO_GetFieldsCounters [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 00 00 [13:29:04]Write to MH i2c: E2 08 00 98 7D 80 13 00 00 00 00 00 00 91 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 98 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [13: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetFieldsCounters done [13:29:04]requested_item shift.num is exist - process it [13:29:04]requested_item shift.opened is exist - process it [13:29:04]req_shift_opened [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 99 7D 80 13 01 00 00 00 00 00 93 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 99 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D4 [13:29:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetShiftState done [13:29:04]FM_GetShiftState done [13:29:04]req_shift_opened done [13:29:04]requested_item shift.open_date is exist - process it [13:29:04]req_shift_open_date [13:29:04]req_shift_open_date done [13:29:04]produce_requested_data done [13:29:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192182,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:29:04]process_action_free close_receipt [13:29:04]json_value_free [13:29:04]json_value_free done [13:29:04]process_json_proto returns [13:29:04]Send response to host [13:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192182,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:29:04]free response buf [13:29:04]execute_script done [13:29:04]execute_script returns [13:29:04]free content buf [13:29:04]Sock 5.Close socket [13:29:04]Sock 5.Thread stoped [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:30]accept exits with 6 [13:33:30]New connection [13:33:30]New thread 3066817892 created [13:33:30]Thread 3066961252 joined [13:33:30]Waiting for new connection... [13:33:30] Sock 6.Parse request [13:33:30]Sock 6.Check first char [13:33:30]Sock 6.First char is OK [13:33:30]request: POST /json_proto HTTP/1.0 [13:33:30]Method: POST [13:33:30]URL: /json_proto [13:33:30]Method is POST - this is cgi request [13:33:30]url: /json_proto [13:33:30]query_string will be loaded in cgi processing [13:33:30]execute_cgi json_proto POST (null) [13:33:30]execute_cgi path=json_proto method=POST [13:33:30]POST find Content-Length [13:33:30]Host: 172.17.63.131:8080 [13:33:30]Content-Length: 676 [13:33:30]Content-Type: application/json [13:33:30] [13:33:30]POST finish read [13:33:30]Found Content-Length = 676 [13:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:30]execute_script... [13: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)31496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:30]POST & json_proto [13:33:30]process_json_proto [13:33:30]json parsed OK: [13:33:30]protocol is kg_v1.0 [13:33:30]action value=close_receipt [13:33:30]process_action close_receipt [13:33:30]cmd_close_receipt [13:33:30]MH_GetDate [13:33:30]Write to MH i2c: F0 00 00 9A 7D 06 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 09 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: F0 09 00 9A 7D 00 3F 41 1E 67 22 05 6E 64 0D [13:33:30]GetLastDocTimeStamp 1730035760 [13:33:30]current date 1730036031 [13:33:30]FM_GetShiftState [13:33:30]SAM_PROTO_GetShiftState [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 13 01 00 [13:33:30]Write to MH i2c: E2 08 00 9B 7D 80 13 01 00 00 00 00 00 95 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0E 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0E 00 9B 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D6 [13:33:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:33:30]wFMCommunicate OK [13:33:30]SAM_PROTO_GetShiftState done [13:33:30]FM_GetShiftState done [13:33:30]opened in 1729989159 [13:33:30]opened+sec_in_day 1730075559 [13:33:30]quantity*price = 50041 [13:33:30]sum+1 = 50042 [13:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 215 27.10.2024 13:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192183 ФПД: 2846614912612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192183&fm=2846614912612&tin=02508201610067®Number=0000000000091776&sum=50000 [13:33:31]StoreToDocumentArchive [13:33:31]shift 542 fd 192183 [13:33:31]save to /storage/0542/doc_00192183 [13:33:31]save last doc name /storage/0542/doc_00192183 to /storage/kkm_last_doc_name [13:33:31]save OK [13:33:31]Clear old archive folders... [13:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:31]tlvbuf is 01AADA00 [13:33:31]SAM_PROTO_ClearQueue [13:33:31]wFMCommunicate request_size=4 [13:33:31]MH_SAM_APDU [13:33:31]CAPDU: 80 09 00 00 [13:33:31]Write to MH i2c: E2 08 00 A8 7D 80 09 00 00 00 00 00 00 97 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 A8 7D 00 90 00 99 [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_ClearQueue done [13:33:32]KKMCreateOFDPacket [13:33:32]OFDProtocolAddRootSTLVToBuf [13:33:32]FM_MakeSignedData [13:33:32]FM_MakeSignedData [13:33:32]SAM_PROTO_SignData [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 01 02 [13:33:32]Write to MH i2c: E2 08 00 A9 7D 80 0D 01 02 00 00 00 00 9F [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 A9 7D 00 90 00 9A [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=255 [13:33:32]MH_SAM_APDU [13:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EE 02 00 35 04 06 00 02 [13:33:32]Write to MH i2c: E2 02 01 AA 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 3F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EE 02 00 35 04 06 00 02 00 00 D8 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 AA 7D 00 90 00 9B [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=10 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 02 02 05 96 C7 78 7E 64 [13:33:32]Write to MH i2c: E2 0D 00 AB 7D 80 0D 02 02 05 00 96 C7 78 7E 64 00 00 63 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 03 00 AB 7D 00 90 00 9C [13:33:32]RAPDU: 90 00 [13:33:32]wFMCommunicate OK [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 0D 03 02 [13:33:32]Write to MH i2c: E2 08 00 AC 7D 80 0D 03 02 00 00 00 00 A4 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0B 00 AC 7D 00 E4 12 FF 85 89 0C 6F 48 90 00 6B [13:33:32]RAPDU: E4 12 FF 85 89 0C 6F 48 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_SignData done [13:33:32]FM_MakeSignedData done [13:33:32]CreateOFDProtocolMessage [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 11 00 00 [13:33:32]Write to MH i2c: E2 08 00 AD 7D 80 11 00 00 00 00 00 00 A4 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 17 00 AD 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [13:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:32]wFMCommunicate OK [13:33:32]CreateOFDProtocolMessage done [13:33:32]OFDSenderStorePacket 192183 [13:33:32]StoreOFDPacket docnum=192183 [13:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE 35 07 01 2E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 3F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EE 02 00 35 04 06 00 02 96 C7 78 7E 64 E4 12 FF 85 89 0C 6F 48 [13:33:32]CheckFolder [13:33:32]dirname=/storage/ofd_packets [13:33:32]CheckFolder done [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00192183 [13:33:32]NVStorageSaveData ofd_packets/00192183 [13:33:32]File name is /storage/ofd_packets/00192183 [13:33:32]Write 301 bytes [13:33:32]NVStorageSaveData done [13:33:32]OFDSenderStorePacket done [13:33:32]KKMCreateOFDPacket done [13:33:32]NVStorageSaveData kkm_last_timestamp [13:33:32]File name is /storage/kkm_last_timestamp [13:33:32]Write 4 bytes [13:33:32]NVStorageSaveData done [13:33:32]ExternCall_PrintAddStr [13:33:32]wPrintStart [13:33:32]Write to MH i2c: 01 00 00 AE 7D 2B [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: 01 07 00 AE 7D 00 00 00 00 00 FF 0F 40 [13:33:32]RasterBufferAndPrint [13:33:32]line Счет N : (1)31496 [13:33:32]line ИНН: 02508201610067 [13:33:32]line Контрольно-Кассовый Чек [13:33:32]line ПРОДАЖА [13:33:32]line ТРК (МРК, ГНК) : 21 [13:33:32]line Товар: 2710124130 [13:33:32]line Аи-92-К-5 [13:33:32]line 7.480 * 66.90 [13:33:32]line = 500.41 [13:33:32]line НДС 12% НСП 1% [13:33:32]line > о реализуемом товаре [13:33:32]line ОКРУГЛЕНИЕ: -0.41 [13:33:32]line ИТОГО: 500.00 [13:33:32]line Внесено: 500.00 [13:33:32]line СДАЧА: 0.00 [13:33:32]line НСП 1% : 4.43 [13:33:32]line НДС 12% : 53.14 [13:33:32]line Наличными: 500.00 [13:33:32]line Безнал.: 0.00 [13:33:32]line Место: АЗС № 170 "Партнер Нефть" [13:33:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:33:32]line СНО: Общий режим [13:33:32]line Чек 215 27.10.2024 13:33 [13:33:32]line Смена: 542 ФФД: 1.0 [13:33:32]line ЗНМ: 0300000110 [13:33:32]line РНМ: 0000000000091776 [13:33:32]line Версия ККМ: 001 [13:33:32]line ФМ: 0000000000871754 [13:33:32]line ФД: 192183 [13:33:32]line ФПД: 2846614912612 [13:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192183&fm=2846614912612&tin=02508201610067®Number=0000000000091776&sum=50000 [13:33:32]OFD Sender: Processing packet 192183 [packets to send 75, broken 74] [13:33:32]ProducePacketName [13:33:32]name=ofd_packets/00192183 [13:33:32]OFD Sender: To server: pG, [13:33:32]CommunicateWithHost lk.salyk.kg:30040 [13:33:32]ConnectInit lk.salyk.kg [13:33:32]written 0, free lines is 4095 [13:33:32]Connected sock=8 [13: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 37 35 34 0F 01 00 00 AE 35 07 01 2E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 3F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EE 02 00 35 04 06 00 02 96 C7 78 7E 64 E4 12 FF 85 89 0C 6F 48 [13: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 37 35 34 4F 00 00 00 A7 21 47 00 F5 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EE 02 00 F4 03 04 00 06 E6 1D 67 B6 04 01 00 00 4B B1 64 81 F8 30 CF 65 [13:33:33]CommunicateWithHost err = 0 [13:33:33]CheckOFDResponse [13:33:33]1017 (14) - 77093643461234 [13:33:33]1041 (16) - 0000000000871754 [13:33:33]1040 (4) - 192183 [13:33:33]1012 (4) - 27.10.2024 07:04 [13:33:33]1206 (1) - 0 [13:33:33]OFD Sender: Remove packet 192183 [13:33:33]ProducePacketName [13:33:33]name=ofd_packets/00192183 [13:33:33]NVStorageDeleteData [13:33:33]Write to MH i2c: 01 00 00 D9 7D 56 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 D9 7D 00 00 00 00 00 A7 0C 10 [13:33:33]RasterBufferAndPrint [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]line [13:33:33]written 0, free lines is 3245 [13:33:33]MH_Cut [13:33:33]Write to MH i2c: D1 01 00 E0 7D 01 2F [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 01 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: D1 01 00 E0 7D 00 2E [13:33:33]Write to MH i2c: 01 00 00 E1 7D 5E [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]OFD Sender: No OFD packet to send [13:33:34]*** Cut start [13:33:34]*** Partial cut [13:33:34]*** CUTSNS_PIN = 1 [13:33:34]*** CUTSNS_PIN = 0 [13:33:34]*** Brake cut motor [13:33:34]Read from MH i2c: 01 [13:33:34]MH_I2C_Read... [13:33:34]*** Stop cut motor [13:33:34]*** Cut end [13:33:34]Read from MH i2c: 01 07 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 E1 7D 00 00 00 00 00 FF 0F 73 [13:33:34]process_action close_receipt done [13:33:34]requested_data is exist [13:33:34]produce_requested_data [13:33:34]requested_item fm.sn is exist - process it [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 11 00 00 [13:33:34]Write to MH i2c: E2 08 00 E2 7D 80 11 00 00 00 00 00 00 D9 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 E2 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [13:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:34]wFMCommunicate OK [13:33:34]requested_item fd.num is exist - process it [13:33:34]SAM_PROTO_GetFieldsCounters [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 00 00 [13:33:34]Write to MH i2c: E2 08 00 E3 7D 80 13 00 00 00 00 00 00 DC [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 62 00 E3 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [13: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_GetFieldsCounters done [13:33:34]requested_item shift.num is exist - process it [13:33:34]requested_item shift.opened is exist - process it [13:33:34]req_shift_opened [13:33:34]FM_GetShiftState [13:33:34]SAM_PROTO_GetShiftState [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 13 01 00 [13:33:34]Write to MH i2c: E2 08 00 E4 7D 80 13 01 00 00 00 00 00 DE [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:35]Read from MH i2c: E2 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 0E 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: E2 0E 00 E4 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [13:33:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:33:35]wFMCommunicate OK [13:33:35]SAM_PROTO_GetShiftState done [13:33:35]FM_GetShiftState done [13:33:35]req_shift_opened done [13:33:35]requested_item shift.open_date is exist - process it [13:33:35]req_shift_open_date [13:33:35]req_shift_open_date done [13:33:35]produce_requested_data done [13:33:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192183,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:33:35]process_action_free close_receipt [13:33:35]json_value_free [13:33:35]json_value_free done [13:33:35]process_json_proto returns [13:33:35]Send response to host [13:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192183,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:33:35]free response buf [13:33:35]execute_script done [13:33:35]execute_script returns [13:33:35]free content buf [13:33:35]Sock 6.Close socket [13:33:35]Sock 6.Thread stoped [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:46]accept exits with 5 [13:33:46]New connection [13:33:46]New thread 3066961252 created [13:33:46]Thread 3066817892 joined [13:33:46]Waiting for new connection... [13:33:46] Sock 5.Parse request [13:33:46]Sock 5.Check first char [13:33:46]Sock 5.First char is OK [13:33:46]request: POST /json_proto HTTP/1.0 [13:33:46]Method: POST [13:33:46]URL: /json_proto [13:33:46]Method is POST - this is cgi request [13:33:46]url: /json_proto [13:33:46]query_string will be loaded in cgi processing [13:33:46]execute_cgi json_proto POST (null) [13:33:46]execute_cgi path=json_proto method=POST [13:33:46]POST find Content-Length [13:33:46]Host: 172.17.63.131:8080 [13:33:46]Content-Length: 676 [13:33:46]Content-Type: application/json [13:33:46] [13:33:46]POST finish read [13:33:46]Found Content-Length = 676 [13:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:46]execute_script... [13:33: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)31497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:46]POST & json_proto [13:33:46]process_json_proto [13:33:46]json parsed OK: [13:33:46]protocol is kg_v1.0 [13:33:46]action value=close_receipt [13:33:46]process_action close_receipt [13:33:46]cmd_close_receipt [13:33:46]MH_GetDate [13:33:46]Write to MH i2c: F0 00 00 E5 7D 51 [13:33:46]Write i2c OK [13:33:46]MH_I2C_Read... [13:33:46]Read from MH i2c: F0 [13:33:46]MH_I2C_Read... [13:33:46]Read from MH i2c: F0 09 00 [13:33:46]MH_I2C_Read... [13:33:46]Read from MH i2c: F0 09 00 E5 7D 00 4F 41 1E 67 22 05 6E 64 68 [13:33:46]GetLastDocTimeStamp 1730036031 [13:33:46]current date 1730036047 [13:33:46]FM_GetShiftState [13:33:46]SAM_PROTO_GetShiftState [13:33:46]wFMCommunicate request_size=4 [13:33:46]MH_SAM_APDU [13:33:46]CAPDU: 80 13 01 00 [13:33:46]Write to MH i2c: E2 08 00 E6 7D 80 13 01 00 00 00 00 00 E0 [13:33:46]Write i2c OK [13:33:46]MH_I2C_Read... [13:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:46]Read from MH i2c: E2 [13:33:46]MH_I2C_Read... [13:33:46]Read from MH i2c: E2 0E 00 [13:33:46]MH_I2C_Read... [13:33:46]Read from MH i2c: E2 0E 00 E6 7D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 21 [13:33:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:33:46]wFMCommunicate OK [13:33:46]SAM_PROTO_GetShiftState done [13:33:46]FM_GetShiftState done [13:33:46]opened in 1729989159 [13:33:46]opened+sec_in_day 1730075559 [13:33:46]quantity*price = 20003 [13:33:46]sum+1 = 20004 [13:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 216 27.10.2024 13:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192184 ФПД: 73249815980055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192184&fm=73249815980055&tin=02508201610067®Number=0000000000091776&sum=20000 [13:33:47]StoreToDocumentArchive [13:33:47]shift 542 fd 192184 [13:33:47]save to /storage/0542/doc_00192184 [13:33:47]save last doc name /storage/0542/doc_00192184 to /storage/kkm_last_doc_name [13:33:47]save OK [13:33:47]Clear old archive folders... [13:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:47]tlvbuf is 017E2590 [13:33:47]SAM_PROTO_ClearQueue [13:33:47]wFMCommunicate request_size=4 [13:33:47]MH_SAM_APDU [13:33:47]CAPDU: 80 09 00 00 [13:33:47]Write to MH i2c: E2 08 00 F3 7D 80 09 00 00 00 00 00 00 E2 [13:33:47]Write i2c OK [13:33:47]MH_I2C_Read... [13:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:47]Read from MH i2c: E2 [13:33:47]MH_I2C_Read... [13:33:47]Read from MH i2c: E2 03 00 [13:33:47]MH_I2C_Read... [13:33:47]Read from MH i2c: E2 03 00 F3 7D 00 90 00 E4 [13:33:47]RAPDU: 90 00 [13:33:47]wFMCommunicate OK [13:33:47]SAM_PROTO_ClearQueue done [13:33:47]KKMCreateOFDPacket [13:33:47]OFDProtocolAddRootSTLVToBuf [13:33:47]FM_MakeSignedData [13:33:47]FM_MakeSignedData [13:33:47]SAM_PROTO_SignData [13:33:47]wFMCommunicate request_size=4 [13:33:47]MH_SAM_APDU [13:33:47]CAPDU: 80 0D 01 02 [13:33:47]Write to MH i2c: E2 08 00 F4 7D 80 0D 01 02 00 00 00 00 EA [13:33:47]Write i2c OK [13:33:47]MH_I2C_Read... [13:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:48]Read from MH i2c: E2 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 F4 7D 00 90 00 E5 [13:33:48]RAPDU: 90 00 [13:33:48]wFMCommunicate OK [13:33:48]wFMCommunicate request_size=255 [13:33:48]MH_SAM_APDU [13:33:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 4F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EE 02 00 35 04 06 00 42 [13:33:48]Write to MH i2c: E2 02 01 F5 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 4F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EE 02 00 35 04 06 00 42 00 00 37 [13:33:48]Write i2c OK [13:33:48]MH_I2C_Read... [13:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:48]Read from MH i2c: E2 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 F5 7D 00 90 00 E6 [13:33:48]RAPDU: 90 00 [13:33:48]wFMCommunicate OK [13:33:48]wFMCommunicate request_size=10 [13:33:48]MH_SAM_APDU [13:33:48]CAPDU: 80 0D 02 02 05 9E CD 42 E8 17 [13:33:48]Write to MH i2c: E2 0D 00 F6 7D 80 0D 02 02 05 00 9E CD 42 E8 17 00 00 A3 [13:33:48]Write i2c OK [13:33:48]MH_I2C_Read... [13:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:48]Read from MH i2c: E2 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 03 00 F6 7D 00 90 00 E7 [13:33:48]RAPDU: 90 00 [13:33:48]wFMCommunicate OK [13:33:48]wFMCommunicate request_size=4 [13:33:48]MH_SAM_APDU [13:33:48]CAPDU: 80 0D 03 02 [13:33:48]Write to MH i2c: E2 08 00 F7 7D 80 0D 03 02 00 00 00 00 EF [13:33:48]Write i2c OK [13:33:48]MH_I2C_Read... [13:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:48]Read from MH i2c: E2 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 0B 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 0B 00 F7 7D 00 FB 90 7D 82 1A 35 E5 B8 90 00 66 [13:33:48]RAPDU: FB 90 7D 82 1A 35 E5 B8 90 00 [13:33:48]wFMCommunicate OK [13:33:48]SAM_PROTO_SignData done [13:33:48]FM_MakeSignedData done [13:33:48]CreateOFDProtocolMessage [13:33:48]wFMCommunicate request_size=4 [13:33:48]MH_SAM_APDU [13:33:48]CAPDU: 80 11 00 00 [13:33:48]Write to MH i2c: E2 08 00 F8 7D 80 11 00 00 00 00 00 00 EF [13:33:48]Write i2c OK [13:33:48]MH_I2C_Read... [13:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:48]Read from MH i2c: E2 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 17 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: E2 17 00 F8 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [13:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:48]wFMCommunicate OK [13:33:48]CreateOFDProtocolMessage done [13:33:48]OFDSenderStorePacket 192184 [13:33:48]StoreOFDPacket docnum=192184 [13:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 72 07 01 9B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 4F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EE 02 00 35 04 06 00 42 9E CD 42 E8 17 FB 90 7D 82 1A 35 E5 B8 [13:33:48]CheckFolder [13:33:48]dirname=/storage/ofd_packets [13:33:48]CheckFolder done [13:33:48]ProducePacketName [13:33:48]name=ofd_packets/00192184 [13:33:48]NVStorageSaveData ofd_packets/00192184 [13:33:48]File name is /storage/ofd_packets/00192184 [13:33:48]Write 301 bytes [13:33:48]NVStorageSaveData done [13:33:48]OFDSenderStorePacket done [13:33:48]KKMCreateOFDPacket done [13:33:48]NVStorageSaveData kkm_last_timestamp [13:33:48]File name is /storage/kkm_last_timestamp [13:33:48]Write 4 bytes [13:33:48]NVStorageSaveData done [13:33:48]ExternCall_PrintAddStr [13:33:48]wPrintStart [13:33:48]Write to MH i2c: 01 00 00 F9 7D 76 [13:33:48]Write i2c OK [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: 01 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: 01 07 00 [13:33:48]MH_I2C_Read... [13:33:48]Read from MH i2c: 01 07 00 F9 7D 00 00 00 00 00 FF 0F 8B [13:33:48]RasterBufferAndPrint [13:33:48]line Счет N : (1)31497 [13:33:48]line ИНН: 02508201610067 [13:33:48]line Контрольно-Кассовый Чек [13:33:48]line ПРОДАЖА [13:33:48]line ТРК (МРК, ГНК) : 12 [13:33:48]line Товар: 2710124130 [13:33:48]line Аи-92-К-5 [13:33:48]line 2.990 * 66.90 [13:33:48]line = 200.03 [13:33:48]line НДС 12% НСП 1% [13:33:48]line > о реализуемом товаре [13:33:48]line ОКРУГЛЕНИЕ: -0.03 [13:33:48]line ИТОГО: 200.00 [13:33:48]line Внесено: 200.00 [13:33:48]line СДАЧА: 0.00 [13:33:48]line НСП 1% : 1.77 [13:33:48]line НДС 12% : 21.24 [13:33:48]line Наличными: 200.00 [13:33:48]line Безнал.: 0.00 [13:33:48]line Место: АЗС № 170 "Партнер Нефть" [13:33:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:33:48]line СНО: Общий режим [13:33:48]line Чек 216 27.10.2024 13:34 [13:33:48]line Смена: 542 ФФД: 1.0 [13:33:48]line ЗНМ: 0300000110 [13:33:48]line РНМ: 0000000000091776 [13:33:48]line Версия ККМ: 001 [13:33:48]line ФМ: 0000000000871754 [13:33:48]line ФД: 192184 [13:33:48]line ФПД: 73249815980055 [13:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192184&fm=73249815980055&tin=02508201610067®Number=0000000000091776&sum=20000 [13:33:48]OFD Sender: Processing packet 192184 [packets to send 75, broken 74] [13:33:48]ProducePacketName [13:33:48]name=ofd_packets/00192184 [13:33:48]OFD Sender: To server: pG, [13:33:48]CommunicateWithHost lk.salyk.kg:30040 [13:33:48]ConnectInit lk.salyk.kg [13:33:48]written 0, free lines is 4095 [13:33:48]Connected sock=8 [13:33:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 72 07 01 9B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 4F 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EE 02 00 35 04 06 00 42 9E CD 42 E8 17 FB 90 7D 82 1A 35 E5 B8 [13:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A 07 47 00 DA EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EE 02 00 F4 03 04 00 16 E6 1D 67 B6 04 01 00 00 68 3A E0 74 5F 83 7D 75 [13:33:49]CommunicateWithHost err = 0 [13:33:49]CheckOFDResponse [13:33:49]1017 (14) - 77093643461234 [13:33:49]1041 (16) - 0000000000871754 [13:33:49]1040 (4) - 192184 [13:33:49]1012 (4) - 27.10.2024 07:04 [13:33:49]1206 (1) - 0 [13:33:49]OFD Sender: Remove packet 192184 [13:33:49]ProducePacketName [13:33:49]name=ofd_packets/00192184 [13:33:49]NVStorageDeleteData [13:33:49]Write to MH i2c: 01 00 00 24 7E A2 [13:33:49]Write i2c OK [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: 01 [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: 01 07 00 [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: 01 07 00 24 7E 00 00 00 00 00 B3 0C 68 [13:33:49]RasterBufferAndPrint [13:33:49]line [13:33:49]line [13:33:49]line [13:33:49]line [13:33:49]line [13:33:49]written 0, free lines is 3258 [13:33:49]MH_Cut [13:33:49]Write to MH i2c: D1 01 00 2B 7E 01 7B [13:33:49]Write i2c OK [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: D1 [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: D1 01 00 [13:33:49]MH_I2C_Read... [13:33:49]Read from MH i2c: D1 01 00 2B 7E 00 7A [13:33:49]Write to MH i2c: 01 00 00 2C 7E AA [13:33:49]Write i2c OK [13:33:49]MH_I2C_Read... [13:33:49]OFD Sender: No OFD packet to send [13:33:50]*** Cut start [13:33:50]*** Partial cut [13:33:50]*** CUTSNS_PIN = 1 [13:33:50]*** CUTSNS_PIN = 0 [13:33:50]*** Brake cut motor [13:33:50]Read from MH i2c: 01 [13:33:50]MH_I2C_Read... [13:33:50]*** Stop cut motor [13:33:50]*** Cut end [13:33:50]Read from MH i2c: 01 07 00 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: 01 07 00 2C 7E 00 00 00 00 00 FF 0F BF [13:33:50]process_action close_receipt done [13:33:50]requested_data is exist [13:33:50]produce_requested_data [13:33:50]requested_item fm.sn is exist - process it [13:33:50]wFMCommunicate request_size=4 [13:33:50]MH_SAM_APDU [13:33:50]CAPDU: 80 11 00 00 [13:33:50]Write to MH i2c: E2 08 00 2D 7E 80 11 00 00 00 00 00 00 25 [13:33:50]Write i2c OK [13:33:50]MH_I2C_Read... [13:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:50]Read from MH i2c: E2 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 17 00 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 17 00 2D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [13:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:50]wFMCommunicate OK [13:33:50]requested_item fd.num is exist - process it [13:33:50]SAM_PROTO_GetFieldsCounters [13:33:50]wFMCommunicate request_size=4 [13:33:50]MH_SAM_APDU [13:33:50]CAPDU: 80 13 00 00 [13:33:50]Write to MH i2c: E2 08 00 2E 7E 80 13 00 00 00 00 00 00 28 [13:33:50]Write i2c OK [13:33:50]MH_I2C_Read... [13:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:50]Read from MH i2c: E2 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 62 00 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 62 00 2E 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:50]wFMCommunicate OK [13:33:50]SAM_PROTO_GetFieldsCounters done [13:33:50]requested_item shift.num is exist - process it [13:33:50]requested_item shift.opened is exist - process it [13:33:50]req_shift_opened [13:33:50]FM_GetShiftState [13:33:50]SAM_PROTO_GetShiftState [13:33:50]wFMCommunicate request_size=4 [13:33:50]MH_SAM_APDU [13:33:50]CAPDU: 80 13 01 00 [13:33:50]Write to MH i2c: E2 08 00 2F 7E 80 13 01 00 00 00 00 00 2A [13:33:50]Write i2c OK [13:33:50]MH_I2C_Read... [13:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:50]Read from MH i2c: E2 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 0E 00 [13:33:50]MH_I2C_Read... [13:33:50]Read from MH i2c: E2 0E 00 2F 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [13:33:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:33:50]wFMCommunicate OK [13:33:50]SAM_PROTO_GetShiftState done [13:33:50]FM_GetShiftState done [13:33:50]req_shift_opened done [13:33:50]requested_item shift.open_date is exist - process it [13:33:50]req_shift_open_date [13:33:50]req_shift_open_date done [13:33:50]produce_requested_data done [13:33:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192184,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:33:50]process_action_free close_receipt [13:33:50]json_value_free [13:33:50]json_value_free done [13:33:50]process_json_proto returns [13:33:50]Send response to host [13:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192184,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:33:50]free response buf [13:33:50]execute_script done [13:33:50]execute_script returns [13:33:50]free content buf [13:33:50]Sock 5.Close socket [13:33:50]Sock 5.Thread stoped [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:50]accept exits with 6 [13:35:50]New connection [13:35:50]New thread 3066817892 created [13:35:50]Thread 3066961252 joined [13:35:50]Waiting for new connection... [13:35:50] Sock 6.Parse request [13:35:50]Sock 6.Check first char [13:35:50]Sock 6.First char is OK [13:35:50]request: POST /json_proto HTTP/1.0 [13:35:50]Method: POST [13:35:50]URL: /json_proto [13:35:50]Method is POST - this is cgi request [13:35:50]url: /json_proto [13:35:50]query_string will be loaded in cgi processing [13:35:50]execute_cgi json_proto POST (null) [13:35:50]execute_cgi path=json_proto method=POST [13:35:50]POST find Content-Length [13:35:50]Host: 172.17.63.131:8080 [13:35:50]Content-Length: 681 [13:35:50]Content-Type: application/json [13:35:50] [13:35:50]POST finish read [13:35:50]Found Content-Length = 681 [13:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:50]execute_script... [13: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 : (1)31498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:50]POST & json_proto [13:35:50]process_json_proto [13:35:50]json parsed OK: [13:35:50]protocol is kg_v1.0 [13:35:50]action value=close_receipt [13:35:50]process_action close_receipt [13:35:50]cmd_close_receipt [13:35:50]MH_GetDate [13:35:50]Write to MH i2c: F0 00 00 30 7E 9D [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 09 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 09 00 30 7E 00 CA 41 1E 67 22 05 6E 64 2F [13:35:50]GetLastDocTimeStamp 1730036047 [13:35:50]current date 1730036170 [13:35:50]FM_GetShiftState [13:35:50]SAM_PROTO_GetShiftState [13:35:50]wFMCommunicate request_size=4 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 13 01 00 [13:35:50]Write to MH i2c: E2 08 00 31 7E 80 13 01 00 00 00 00 00 2C [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:50]Read from MH i2c: E2 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 0E 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 0E 00 31 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6D [13:35:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:35:50]wFMCommunicate OK [13:35:50]SAM_PROTO_GetShiftState done [13:35:50]FM_GetShiftState done [13:35:50]opened in 1729989159 [13:35:50]opened+sec_in_day 1730075559 [13:35:50]quantity*price = 100015 [13:35:50]sum+1 = 100017 [13:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 217 27.10.2024 13:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192185 ФПД: 38274402298699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192185&fm=38274402298699&tin=02508201610067®Number=0000000000091776&sum=100000 [13:35:51]StoreToDocumentArchive [13:35:51]shift 542 fd 192185 [13:35:51]save to /storage/0542/doc_00192185 [13:35:51]save last doc name /storage/0542/doc_00192185 to /storage/kkm_last_doc_name [13:35:51]save OK [13:35:51]Clear old archive folders... [13:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:51]tlvbuf is 018CAA30 [13:35:51]SAM_PROTO_ClearQueue [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 09 00 00 [13:35:51]Write to MH i2c: E2 08 00 3E 7E 80 09 00 00 00 00 00 00 2E [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 3E 7E 00 90 00 30 [13:35:51]RAPDU: 90 00 [13:35:51]wFMCommunicate OK [13:35:51]SAM_PROTO_ClearQueue done [13:35:51]KKMCreateOFDPacket [13:35:51]OFDProtocolAddRootSTLVToBuf [13:35:51]FM_MakeSignedData [13:35:51]FM_MakeSignedData [13:35:51]SAM_PROTO_SignData [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 0D 01 02 [13:35:51]Write to MH i2c: E2 08 00 3F 7E 80 0D 01 02 00 00 00 00 36 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 3F 7E 00 90 00 31 [13:35:51]RAPDU: 90 00 [13:35:51]wFMCommunicate OK [13:35:51]wFMCommunicate request_size=255 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EE 02 00 35 04 06 00 22 [13:35:51]Write to MH i2c: E2 02 01 40 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EE 02 00 35 04 06 00 22 00 00 18 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 40 7E 00 90 00 32 [13:35:51]RAPDU: 90 00 [13:35:51]wFMCommunicate OK [13:35:51]wFMCommunicate request_size=10 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 0D 02 02 05 CF 74 27 2B 4B [13:35:51]Write to MH i2c: E2 0D 00 41 7E 80 0D 02 02 05 00 CF 74 27 2B 4B 00 00 23 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 41 7E 00 90 00 33 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 03 02 [13:35:52]Write to MH i2c: E2 08 00 42 7E 80 0D 03 02 00 00 00 00 3B [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 42 7E 00 E2 45 06 73 98 65 E6 11 90 00 D0 [13:35:52]RAPDU: E2 45 06 73 98 65 E6 11 90 00 [13:35:52]wFMCommunicate OK [13:35:52]SAM_PROTO_SignData done [13:35:52]FM_MakeSignedData done [13:35:52]CreateOFDProtocolMessage [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 11 00 00 [13:35:52]Write to MH i2c: E2 08 00 43 7E 80 11 00 00 00 00 00 00 3B [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 43 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [13:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:52]wFMCommunicate OK [13:35:52]CreateOFDProtocolMessage done [13:35:52]OFDSenderStorePacket 192185 [13:35:52]StoreOFDPacket docnum=192185 [13:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 91 07 01 1D 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EE 02 00 35 04 06 00 22 CF 74 27 2B 4B E2 45 06 73 98 65 E6 11 [13:35:52]CheckFolder [13:35:52]dirname=/storage/ofd_packets [13:35:52]CheckFolder done [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00192185 [13:35:52]NVStorageSaveData ofd_packets/00192185 [13:35:52]File name is /storage/ofd_packets/00192185 [13:35:52]Write 301 bytes [13:35:52]NVStorageSaveData done [13:35:52]OFDSenderStorePacket done [13:35:52]KKMCreateOFDPacket done [13:35:52]NVStorageSaveData kkm_last_timestamp [13:35:52]File name is /storage/kkm_last_timestamp [13:35:52]Write 4 bytes [13:35:52]NVStorageSaveData done [13:35:52]ExternCall_PrintAddStr [13:35:52]wPrintStart [13:35:52]Write to MH i2c: 01 00 00 44 7E C2 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 44 7E 00 00 00 00 00 FF 0F D7 [13:35:52]RasterBufferAndPrint [13:35:52]line Счет N : (1)31498 [13:35:52]line ИНН: 02508201610067 [13:35:52]line Контрольно-Кассовый Чек [13:35:52]line ПРОДАЖА [13:35:52]line ТРК (МРК, ГНК) : 21 [13:35:52]line Товар: 2710124130 [13:35:52]line Аи-92-К-5 [13:35:52]line 14.950 * 66.90 [13:35:52]line = 1000.16 [13:35:52]line НДС 12% НСП 1% [13:35:52]line > о реализуемом товаре [13:35:52]line ОКРУГЛЕНИЕ: -0.16 [13:35:52]line ИТОГО: 1000.00 [13:35:52]line Внесено: 1000.00 [13:35:52]line СДАЧА: 0.00 [13:35:52]line НСП 1% : 8.85 [13:35:52]line НДС 12% : 106.21 [13:35:52]line Наличными: 1000.00 [13:35:52]line Безнал.: 0.00 [13:35:52]line Место: АЗС № 170 "Партнер Нефть" [13:35:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:35:52]line СНО: Общий режим [13:35:52]line Чек 217 27.10.2024 13:36 [13:35:52]line Смена: 542 ФФД: 1.0 [13:35:52]line ЗНМ: 0300000110 [13:35:52]line РНМ: 0000000000091776 [13:35:52]line Версия ККМ: 001 [13:35:52]line ФМ: 0000000000871754 [13:35:52]line ФД: 192185 [13:35:52]line ФПД: 38274402298699 [13:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192185&fm=38274402298699&tin=02508201610067®Number=0000000000091776&sum=100000 [13:35:52]OFD Sender: Processing packet 192185 [packets to send 75, broken 74] [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00192185 [13:35:52]OFD Sender: To server: pG, [13:35:52]CommunicateWithHost lk.salyk.kg:30040 [13:35:52]ConnectInit lk.salyk.kg [13:35:52]written 0, free lines is 4095 [13:35:52]Connected sock=8 [13: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 37 35 34 0F 01 00 00 6A 91 07 01 1D 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 CA 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EE 02 00 35 04 06 00 22 CF 74 27 2B 4B E2 45 06 73 98 65 E6 11 [13: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 37 35 34 4F 00 00 00 74 E6 47 00 B3 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EE 02 00 F4 03 04 00 92 E6 1D 67 B6 04 01 00 00 56 99 6D F5 54 03 7A F0 [13:35:52]CommunicateWithHost err = 0 [13:35:52]CheckOFDResponse [13:35:52]1017 (14) - 77093643461234 [13:35:52]1041 (16) - 0000000000871754 [13:35:52]1040 (4) - 192185 [13:35:52]1012 (4) - 27.10.2024 07:06 [13:35:52]1206 (1) - 0 [13:35:52]OFD Sender: Remove packet 192185 [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00192185 [13:35:52]NVStorageDeleteData [13:35:52]Write to MH i2c: 01 00 00 6F 7E ED [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 6F 7E 00 00 00 00 00 B0 0C B0 [13:35:52]RasterBufferAndPrint [13:35:52]line [13:35:52]line [13:35:52]line [13:35:52]line [13:35:52]line [13:35:52]written 0, free lines is 3255 [13:35:52]MH_Cut [13:35:52]Write to MH i2c: D1 01 00 76 7E 01 C6 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: D1 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: D1 01 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: D1 01 00 76 7E 00 C5 [13:35:52]Write to MH i2c: 01 00 00 77 7E F5 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:53]OFD Sender: No OFD packet to send [13:35:53]*** Cut start [13:35:53]*** Partial cut [13:35:53]*** CUTSNS_PIN = 1 [13:35:53]*** CUTSNS_PIN = 0 [13:35:54]*** Brake cut motor [13:35:54]Read from MH i2c: 01 [13:35:54]MH_I2C_Read... [13:35:54]*** Stop cut motor [13:35:54]*** Cut end [13:35:54]Read from MH i2c: 01 07 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: 01 07 00 77 7E 00 00 00 00 00 FF 0F 0A [13:35:54]process_action close_receipt done [13:35:54]requested_data is exist [13:35:54]produce_requested_data [13:35:54]requested_item fm.sn is exist - process it [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 11 00 00 [13:35:54]Write to MH i2c: E2 08 00 78 7E 80 11 00 00 00 00 00 00 70 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 17 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 17 00 78 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [13:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:54]wFMCommunicate OK [13:35:54]requested_item fd.num is exist - process it [13:35:54]SAM_PROTO_GetFieldsCounters [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 00 00 [13:35:54]Write to MH i2c: E2 08 00 79 7E 80 13 00 00 00 00 00 00 73 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 62 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 62 00 79 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetFieldsCounters done [13:35:54]requested_item shift.num is exist - process it [13:35:54]requested_item shift.opened is exist - process it [13:35:54]req_shift_opened [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 7A 7E 80 13 01 00 00 00 00 00 75 [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 7A 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B6 [13:35:54]RAPDU: 09 00 01 27 8A 1D 67 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]req_shift_opened done [13:35:54]requested_item shift.open_date is exist - process it [13:35:54]req_shift_open_date [13:35:54]req_shift_open_date done [13:35:54]produce_requested_data done [13:35:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192185,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:35:54]process_action_free close_receipt [13:35:54]json_value_free [13:35:54]json_value_free done [13:35:54]process_json_proto returns [13:35:54]Send response to host [13:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192185,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:35:54]free response buf [13:35:54]execute_script done [13:35:54]execute_script returns [13:35:54]free content buf [13:35:54]Sock 6.Close socket [13:35:54]Sock 6.Thread stoped [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:41]accept exits with 5 [13:36:41]New connection [13:36:41]New thread 3066961252 created [13:36:41]Thread 3066817892 joined [13:36:41]Waiting for new connection... [13:36:41] Sock 5.Parse request [13:36:41]Sock 5.Check first char [13:36:41]Sock 5.First char is OK [13:36:41]request: POST /json_proto HTTP/1.0 [13:36:41]Method: POST [13:36:41]URL: /json_proto [13:36:41]Method is POST - this is cgi request [13:36:41]url: /json_proto [13:36:41]query_string will be loaded in cgi processing [13:36:41]execute_cgi json_proto POST (null) [13:36:41]execute_cgi path=json_proto method=POST [13:36:41]POST find Content-Length [13:36:41]Host: 172.17.63.131:8080 [13:36:41]Content-Length: 676 [13:36:41]Content-Type: application/json [13:36:41] [13:36:41]POST finish read [13:36:41]Found Content-Length = 676 [13:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:41]execute_script... [13:36: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)31499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:41]POST & json_proto [13:36:41]process_json_proto [13:36:41]json parsed OK: [13:36:41]protocol is kg_v1.0 [13:36:41]action value=close_receipt [13:36:41]process_action close_receipt [13:36:41]cmd_close_receipt [13:36:41]MH_GetDate [13:36:41]Write to MH i2c: F0 00 00 7B 7E E8 [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 09 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 09 00 7B 7E 00 FD 41 1E 67 22 05 6E 64 AD [13:36:41]GetLastDocTimeStamp 1730036170 [13:36:41]current date 1730036221 [13:36:41]FM_GetShiftState [13:36:41]SAM_PROTO_GetShiftState [13:36:41]wFMCommunicate request_size=4 [13:36:41]MH_SAM_APDU [13:36:41]CAPDU: 80 13 01 00 [13:36:41]Write to MH i2c: E2 08 00 7C 7E 80 13 01 00 00 00 00 00 77 [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:41]Read from MH i2c: E2 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 0E 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 0E 00 7C 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B8 [13:36:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:36:41]wFMCommunicate OK [13:36:41]SAM_PROTO_GetShiftState done [13:36:41]FM_GetShiftState done [13:36:41]opened in 1729989159 [13:36:41]opened+sec_in_day 1730075559 [13:36:41]quantity*price = 66030 [13:36:41]sum+1 = 66031 [13:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.12 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 218 27.10.2024 13:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192186 ФПД: 116135230974767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133701&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192186&fm=116135230974767&tin=02508201610067®Number=0000000000091776&sum=66000 [13:36:42]StoreToDocumentArchive [13:36:42]shift 542 fd 192186 [13:36:42]save to /storage/0542/doc_00192186 [13:36:42]save last doc name /storage/0542/doc_00192186 to /storage/kkm_last_doc_name [13:36:42]save OK [13:36:42]Clear old archive folders... [13:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:42]tlvbuf is 01DFBA80 [13:36:42]SAM_PROTO_ClearQueue [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 09 00 00 [13:36:42]Write to MH i2c: E2 08 00 89 7E 80 09 00 00 00 00 00 00 79 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 89 7E 00 90 00 7B [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]SAM_PROTO_ClearQueue done [13:36:42]KKMCreateOFDPacket [13:36:42]OFDProtocolAddRootSTLVToBuf [13:36:42]FM_MakeSignedData [13:36:42]FM_MakeSignedData [13:36:42]SAM_PROTO_SignData [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 0D 01 02 [13:36:42]Write to MH i2c: E2 08 00 8A 7E 80 0D 01 02 00 00 00 00 81 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 8A 7E 00 90 00 7C [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]wFMCommunicate request_size=255 [13:36:42]MH_SAM_APDU [13:36: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 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 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 64 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 DA 00 00 00 F4 03 04 00 FD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EE 02 00 35 04 06 00 69 [13:36:42]Write to MH i2c: E2 02 01 8B 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 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 64 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 DA 00 00 00 F4 03 04 00 FD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EE 02 00 35 04 06 00 69 00 00 AD [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 8B 7E 00 90 00 7D [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]wFMCommunicate request_size=10 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 0D 02 02 05 9F D7 30 2B 2F [13:36:42]Write to MH i2c: E2 0D 00 8C 7E 80 0D 02 02 05 00 9F D7 30 2B 2F 00 00 8E [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 8C 7E 00 90 00 7E [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 0D 03 02 [13:36:42]Write to MH i2c: E2 08 00 8D 7E 80 0D 03 02 00 00 00 00 86 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 0B 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 0B 00 8D 7E 00 54 24 73 11 DE 61 CF 11 90 00 A2 [13:36:42]RAPDU: 54 24 73 11 DE 61 CF 11 90 00 [13:36:42]wFMCommunicate OK [13:36:42]SAM_PROTO_SignData done [13:36:42]FM_MakeSignedData done [13:36:42]CreateOFDProtocolMessage [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 11 00 00 [13:36:42]Write to MH i2c: E2 08 00 8E 7E 80 11 00 00 00 00 00 00 86 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 17 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 17 00 8E 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [13:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:42]wFMCommunicate OK [13:36:42]CreateOFDProtocolMessage done [13:36:42]OFDSenderStorePacket 192186 [13:36:42]StoreOFDPacket docnum=192186 [13:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F B3 07 01 ED 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 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 64 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 DA 00 00 00 F4 03 04 00 FD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EE 02 00 35 04 06 00 69 9F D7 30 2B 2F 54 24 73 11 DE 61 CF 11 [13:36:42]CheckFolder [13:36:42]dirname=/storage/ofd_packets [13:36:42]CheckFolder done [13:36:42]ProducePacketName [13:36:42]name=ofd_packets/00192186 [13:36:42]NVStorageSaveData ofd_packets/00192186 [13:36:42]File name is /storage/ofd_packets/00192186 [13:36:42]Write 301 bytes [13:36:42]NVStorageSaveData done [13:36:42]OFDSenderStorePacket done [13:36:42]KKMCreateOFDPacket done [13:36:42]NVStorageSaveData kkm_last_timestamp [13:36:42]File name is /storage/kkm_last_timestamp [13:36:42]Write 4 bytes [13:36:42]NVStorageSaveData done [13:36:42]ExternCall_PrintAddStr [13:36:42]wPrintStart [13:36:42]Write to MH i2c: 01 00 00 8F 7E 0D [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: 01 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: 01 07 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: 01 07 00 8F 7E 00 00 00 00 00 FF 0F 22 [13:36:42]RasterBufferAndPrint [13:36:42]line Счет N : (1)31499 [13:36:42]line ИНН: 02508201610067 [13:36:42]line Контрольно-Кассовый Чек [13:36:42]line ПРОДАЖА [13:36:42]line ТРК (МРК, ГНК) : 12 [13:36:42]line Товар: 2710124130 [13:36:42]line Аи-92-К-5 [13:36:42]line 9.870 * 66.90 [13:36:42]line = 660.30 [13:36:42]line НДС 12% НСП 1% [13:36:42]line > о реализуемом товаре [13:36:42]line ОКРУГЛЕНИЕ: -0.30 [13:36:42]line ИТОГО: 660.00 [13:36:42]line Внесено: 660.00 [13:36:42]line СДАЧА: 0.00 [13:36:42]line НСП 1% : 5.84 [13:36:42]line НДС 12% : 70.12 [13:36:42]line Наличными: 660.00 [13:36:42]line Безнал.: 0.00 [13:36:42]line Место: АЗС № 170 "Партнер Нефть" [13:36:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:36:42]line СНО: Общий режим [13:36:42]line Чек 218 27.10.2024 13:37 [13:36:42]line Смена: 542 ФФД: 1.0 [13:36:42]line ЗНМ: 0300000110 [13:36:42]line РНМ: 0000000000091776 [13:36:42]line Версия ККМ: 001 [13:36:42]line ФМ: 0000000000871754 [13:36:42]line ФД: 192186 [13:36:42]line ФПД: 116135230974767 [13:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133701&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192186&fm=116135230974767&tin=02508201610067®Number=0000000000091776&sum=66000 [13:36:43]OFD Sender: Processing packet 192186 [packets to send 75, broken 74] [13:36:43]ProducePacketName [13:36:43]name=ofd_packets/00192186 [13:36:43]OFD Sender: To server: pG, [13:36:43]CommunicateWithHost lk.salyk.kg:30040 [13:36:43]ConnectInit lk.salyk.kg [13:36:43]written 0, free lines is 4095 [13:36:43]Connected sock=8 [13:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F B3 07 01 ED 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 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 64 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 DA 00 00 00 F4 03 04 00 FD 41 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EE 02 00 35 04 06 00 69 9F D7 30 2B 2F 54 24 73 11 DE 61 CF 11 [13:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 10 47 00 0C D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EE 02 00 F4 03 04 00 C4 E6 1D 67 B6 04 01 00 00 BD DF AA A8 F4 7C C4 D3 [13:36:43]CommunicateWithHost err = 0 [13:36:43]CheckOFDResponse [13:36:43]1017 (14) - 77093643461234 [13:36:43]1041 (16) - 0000000000871754 [13:36:43]1040 (4) - 192186 [13:36:43]1012 (4) - 27.10.2024 07:07 [13:36:43]1206 (1) - 0 [13:36:43]OFD Sender: Remove packet 192186 [13:36:43]ProducePacketName [13:36:43]name=ofd_packets/00192186 [13:36:43]NVStorageDeleteData [13:36:43]Write to MH i2c: 01 00 00 BA 7E 38 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 BA 7E 00 00 00 00 00 B1 0C FC [13:36:43]RasterBufferAndPrint [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]written 0, free lines is 3255 [13:36:43]MH_Cut [13:36:43]Write to MH i2c: D1 01 00 C1 7E 01 11 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 01 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 01 00 C1 7E 00 10 [13:36:43]Write to MH i2c: 01 00 00 C2 7E 40 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]OFD Sender: No OFD packet to send [13:36:44]*** Cut start [13:36:44]*** Partial cut [13:36:44]*** CUTSNS_PIN = 1 [13:36:44]*** CUTSNS_PIN = 0 [13:36:44]*** Brake cut motor [13:36:45]Read from MH i2c: 01 [13:36:45]MH_I2C_Read... [13:36:45]*** Stop cut motor [13:36:45]*** Cut end [13:36:45]Read from MH i2c: 01 07 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: 01 07 00 C2 7E 00 00 00 00 00 FF 0F 55 [13:36:45]process_action close_receipt done [13:36:45]requested_data is exist [13:36:45]produce_requested_data [13:36:45]requested_item fm.sn is exist - process it [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 11 00 00 [13:36:45]Write to MH i2c: E2 08 00 C3 7E 80 11 00 00 00 00 00 00 BB [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 17 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 17 00 C3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [13:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:45]wFMCommunicate OK [13:36:45]requested_item fd.num is exist - process it [13:36:45]SAM_PROTO_GetFieldsCounters [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 00 00 [13:36:45]Write to MH i2c: E2 08 00 C4 7E 80 13 00 00 00 00 00 00 BE [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 62 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 62 00 C4 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [13:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetFieldsCounters done [13:36:45]requested_item shift.num is exist - process it [13:36:45]requested_item shift.opened is exist - process it [13:36:45]req_shift_opened [13:36:45]FM_GetShiftState [13:36:45]SAM_PROTO_GetShiftState [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 01 00 [13:36:45]Write to MH i2c: E2 08 00 C5 7E 80 13 01 00 00 00 00 00 C0 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 C5 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 01 [13:36:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetShiftState done [13:36:45]FM_GetShiftState done [13:36:45]req_shift_opened done [13:36:45]requested_item shift.open_date is exist - process it [13:36:45]req_shift_open_date [13:36:45]req_shift_open_date done [13:36:45]produce_requested_data done [13:36:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192186,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:36:45]process_action_free close_receipt [13:36:45]json_value_free [13:36:45]json_value_free done [13:36:45]process_json_proto returns [13:36:45]Send response to host [13:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192186,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:36:45]free response buf [13:36:45]execute_script done [13:36:45]execute_script returns [13:36:45]free content buf [13:36:45]Sock 5.Close socket [13:36:45]Sock 5.Thread stoped [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:15]accept exits with 6 [13:38:15]New connection [13:38:15]New thread 3066817892 created [13:38:15]Thread 3066961252 joined [13:38:15]Waiting for new connection... [13:38:15] Sock 6.Parse request [13:38:15]Sock 6.Check first char [13:38:15]Sock 6.First char is OK [13:38:15]request: POST /json_proto HTTP/1.0 [13:38:15]Method: POST [13:38:15]URL: /json_proto [13:38:15]Method is POST - this is cgi request [13:38:15]url: /json_proto [13:38:15]query_string will be loaded in cgi processing [13:38:15]execute_cgi json_proto POST (null) [13:38:15]execute_cgi path=json_proto method=POST [13:38:15]POST find Content-Length [13:38:15]Host: 172.17.63.131:8080 [13:38:15]Content-Length: 681 [13:38:15]Content-Type: application/json [13:38:15] [13:38:15]POST finish read [13:38:15]Found Content-Length = 681 [13:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:15]execute_script... [13:38:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:15]POST & json_proto [13:38:15]process_json_proto [13:38:15]json parsed OK: [13:38:15]protocol is kg_v1.0 [13:38:15]action value=close_receipt [13:38:15]process_action close_receipt [13:38:15]cmd_close_receipt [13:38:15]MH_GetDate [13:38:15]Write to MH i2c: F0 00 00 C6 7E 33 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 C6 7E 00 5C 42 1E 67 22 05 6E 64 58 [13:38:15]GetLastDocTimeStamp 1730036221 [13:38:15]current date 1730036316 [13:38:15]FM_GetShiftState [13:38:15]SAM_PROTO_GetShiftState [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 13 01 00 [13:38:15]Write to MH i2c: E2 08 00 C7 7E 80 13 01 00 00 00 00 00 C2 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 C7 7E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 03 [13:38:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:38:15]wFMCommunicate OK [13:38:15]SAM_PROTO_GetShiftState done [13:38:15]FM_GetShiftState done [13:38:15]opened in 1729989159 [13:38:15]opened+sec_in_day 1730075559 [13:38:15]quantity*price = 100015 [13:38:15]sum+1 = 100017 [13:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 219 27.10.2024 13:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192187 ФПД: 123076491348518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192187&fm=123076491348518&tin=02508201610067®Number=0000000000091776&sum=100000 [13:38:16]StoreToDocumentArchive [13:38:16]shift 542 fd 192187 [13:38:16]save to /storage/0542/doc_00192187 [13:38:16]save last doc name /storage/0542/doc_00192187 to /storage/kkm_last_doc_name [13:38:16]save OK [13:38:16]Clear old archive folders... [13:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:16]tlvbuf is 01D133C0 [13:38:16]SAM_PROTO_ClearQueue [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 09 00 00 [13:38:16]Write to MH i2c: E2 08 00 D4 7E 80 09 00 00 00 00 00 00 C4 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 D4 7E 00 90 00 C6 [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_ClearQueue done [13:38:16]KKMCreateOFDPacket [13:38:16]OFDProtocolAddRootSTLVToBuf [13:38:16]FM_MakeSignedData [13:38:16]FM_MakeSignedData [13:38:16]SAM_PROTO_SignData [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 01 02 [13:38:16]Write to MH i2c: E2 08 00 D5 7E 80 0D 01 02 00 00 00 00 CC [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 D5 7E 00 90 00 C7 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=255 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 5C 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EE 02 00 35 04 06 00 6F [13:38:17]Write to MH i2c: E2 02 01 D6 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 5C 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EE 02 00 35 04 06 00 6F 00 00 92 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 D6 7E 00 90 00 C8 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=10 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 02 02 05 EF FA 8C 0A 26 [13:38:17]Write to MH i2c: E2 0D 00 D7 7E 80 0D 02 02 05 00 EF FA 8C 0A 26 00 00 7E [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 D7 7E 00 90 00 C9 [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 03 02 [13:38:17]Write to MH i2c: E2 08 00 D8 7E 80 0D 03 02 00 00 00 00 D1 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 D8 7E 00 8A E0 74 4C 9E 0E 06 8D 90 00 3B [13:38:17]RAPDU: 8A E0 74 4C 9E 0E 06 8D 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_SignData done [13:38:17]FM_MakeSignedData done [13:38:17]CreateOFDProtocolMessage [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 11 00 00 [13:38:17]Write to MH i2c: E2 08 00 D9 7E 80 11 00 00 00 00 00 00 D1 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:17]Read from MH i2c: E2 17 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 17 00 D9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [13:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:38:17]wFMCommunicate OK [13:38:17]CreateOFDProtocolMessage done [13:38:17]OFDSenderStorePacket 192187 [13:38:17]StoreOFDPacket docnum=192187 [13:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F6 7C 07 01 14 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 5C 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EE 02 00 35 04 06 00 6F EF FA 8C 0A 26 8A E0 74 4C 9E 0E 06 8D [13:38:17]CheckFolder [13:38:17]dirname=/storage/ofd_packets [13:38:17]CheckFolder done [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00192187 [13:38:17]NVStorageSaveData ofd_packets/00192187 [13:38:17]File name is /storage/ofd_packets/00192187 [13:38:17]Write 301 bytes [13:38:17]NVStorageSaveData done [13:38:17]OFDSenderStorePacket done [13:38:17]KKMCreateOFDPacket done [13:38:17]NVStorageSaveData kkm_last_timestamp [13:38:17]File name is /storage/kkm_last_timestamp [13:38:17]Write 4 bytes [13:38:17]NVStorageSaveData done [13:38:17]ExternCall_PrintAddStr [13:38:17]wPrintStart [13:38:17]Write to MH i2c: 01 00 00 DA 7E 58 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 DA 7E 00 00 00 00 00 FF 0F 6D [13:38:17]RasterBufferAndPrint [13:38:17]line Счет N : (1)31500 [13:38:17]line ИНН: 02508201610067 [13:38:17]line Контрольно-Кассовый Чек [13:38:17]line ПРОДАЖА [13:38:17]line ТРК (МРК, ГНК) : 12 [13:38:17]line Товар: 2710124130 [13:38:17]line Аи-92-К-5 [13:38:17]line 14.950 * 66.90 [13:38:17]line = 1000.16 [13:38:17]line НДС 12% НСП 1% [13:38:17]line > о реализуемом товаре [13:38:17]line ОКРУГЛЕНИЕ: -0.16 [13:38:17]line ИТОГО: 1000.00 [13:38:17]line Внесено: 1000.00 [13:38:17]line СДАЧА: 0.00 [13:38:17]line НСП 1% : 8.85 [13:38:17]line НДС 12% : 106.21 [13:38:17]line Наличными: 1000.00 [13:38:17]line Безнал.: 0.00 [13:38:17]line Место: АЗС № 170 "Партнер Нефть" [13:38:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:38:17]line СНО: Общий режим [13:38:17]line Чек 219 27.10.2024 13:38 [13:38:17]line Смена: 542 ФФД: 1.0 [13:38:17]line ЗНМ: 0300000110 [13:38:17]line РНМ: 0000000000091776 [13:38:17]line Версия ККМ: 001 [13:38:17]line ФМ: 0000000000871754 [13:38:17]line ФД: 192187 [13:38:17]line ФПД: 123076491348518 [13:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192187&fm=123076491348518&tin=02508201610067®Number=0000000000091776&sum=100000 [13:38:17]written 0, free lines is 4095 [13:38:17]OFD Sender: Processing packet 192187 [packets to send 75, broken 74] [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00192187 [13:38:17]OFD Sender: To server: pG, [13:38:17]CommunicateWithHost lk.salyk.kg:30040 [13:38:17]ConnectInit lk.salyk.kg [13:38:17]Connected sock=8 [13: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 37 35 34 0F 01 00 00 F6 7C 07 01 14 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 5C 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EE 02 00 35 04 06 00 6F EF FA 8C 0A 26 8A E0 74 4C 9E 0E 06 8D [13: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 37 35 34 4F 00 00 00 D7 51 47 00 26 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EE 02 00 F4 03 04 00 23 E7 1D 67 B6 04 01 00 00 9A 6A E7 32 6A 83 35 42 [13:38:17]CommunicateWithHost err = 0 [13:38:17]CheckOFDResponse [13:38:17]1017 (14) - 77093643461234 [13:38:17]1041 (16) - 0000000000871754 [13:38:17]1040 (4) - 192187 [13:38:17]1012 (4) - 27.10.2024 07:09 [13:38:17]1206 (1) - 0 [13:38:17]OFD Sender: Remove packet 192187 [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00192187 [13:38:17]NVStorageDeleteData [13:38:17]Write to MH i2c: 01 00 00 05 7F 84 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 05 7F 00 00 00 00 00 A7 0C 3E [13:38:17]RasterBufferAndPrint [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]line [13:38:17]written 0, free lines is 3245 [13:38:17]MH_Cut [13:38:17]Write to MH i2c: D1 01 00 0C 7F 01 5D [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 01 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: D1 01 00 0C 7F 00 5C [13:38:17]Write to MH i2c: 01 00 00 0D 7F 8C [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:18]OFD Sender: No OFD packet to send [13:38:18]*** Cut start [13:38:18]*** Partial cut [13:38:18]*** CUTSNS_PIN = 1 [13:38:18]*** CUTSNS_PIN = 0 [13:38:19]*** Brake cut motor [13:38:19]Read from MH i2c: 01 [13:38:19]MH_I2C_Read... [13:38:19]*** Stop cut motor [13:38:19]*** Cut end [13:38:19]Read from MH i2c: 01 07 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: 01 07 00 0D 7F 00 00 00 00 00 FF 0F A1 [13:38:19]process_action close_receipt done [13:38:19]requested_data is exist [13:38:19]produce_requested_data [13:38:19]requested_item fm.sn is exist - process it [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 11 00 00 [13:38:19]Write to MH i2c: E2 08 00 0E 7F 80 11 00 00 00 00 00 00 07 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 17 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 17 00 0E 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [13:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:38:19]wFMCommunicate OK [13:38:19]requested_item fd.num is exist - process it [13:38:19]SAM_PROTO_GetFieldsCounters [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 00 00 [13:38:19]Write to MH i2c: E2 08 00 0F 7F 80 13 00 00 00 00 00 00 0A [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 62 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 62 00 0F 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [13: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetFieldsCounters done [13:38:19]requested_item shift.num is exist - process it [13:38:19]requested_item shift.opened is exist - process it [13:38:19]req_shift_opened [13:38:19]FM_GetShiftState [13:38:19]SAM_PROTO_GetShiftState [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 01 00 [13:38:19]Write to MH i2c: E2 08 00 10 7F 80 13 01 00 00 00 00 00 0C [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 10 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4D [13:38:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetShiftState done [13:38:19]FM_GetShiftState done [13:38:19]req_shift_opened done [13:38:19]requested_item shift.open_date is exist - process it [13:38:19]req_shift_open_date [13:38:19]req_shift_open_date done [13:38:19]produce_requested_data done [13:38:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192187,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:38:19]process_action_free close_receipt [13:38:19]json_value_free [13:38:19]json_value_free done [13:38:19]process_json_proto returns [13:38:19]Send response to host [13:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192187,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:38:19]free response buf [13:38:19]execute_script done [13:38:19]execute_script returns [13:38:19]free content buf [13:38:19]Sock 6.Close socket [13:38:19]Sock 6.Thread stoped [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]accept exits with 5 [13:38:53]New connection [13:38:53]New thread 3066961252 created [13:38:53]Thread 3066817892 joined [13:38:53]Waiting for new connection... [13:38:53] Sock 5.Parse request [13:38:53]Sock 5.Check first char [13:38:53]Sock 5.First char is OK [13:38:53]request: POST /json_proto HTTP/1.0 [13:38:53]Method: POST [13:38:53]URL: /json_proto [13:38:53]Method is POST - this is cgi request [13:38:53]url: /json_proto [13:38:53]query_string will be loaded in cgi processing [13:38:53]execute_cgi json_proto POST (null) [13:38:53]execute_cgi path=json_proto method=POST [13:38:53]POST find Content-Length [13:38:53]Host: 172.17.63.131:8080 [13:38:53]Content-Length: 676 [13:38:53]Content-Type: application/json [13:38:53] [13:38:53]POST finish read [13:38:53]Found Content-Length = 676 [13:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:53]execute_script... [13:38: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)31501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:53]POST & json_proto [13:38:53]process_json_proto [13:38:53]json parsed OK: [13:38:53]protocol is kg_v1.0 [13:38:53]action value=close_receipt [13:38:53]process_action close_receipt [13:38:53]cmd_close_receipt [13:38:53]MH_GetDate [13:38:53]Write to MH i2c: F0 00 00 11 7F 7F [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 09 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 09 00 11 7F 00 81 42 1E 67 22 05 6E 64 C9 [13:38:53]GetLastDocTimeStamp 1730036316 [13:38:53]current date 1730036353 [13:38:53]FM_GetShiftState [13:38:53]SAM_PROTO_GetShiftState [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 13 01 00 [13:38:53]Write to MH i2c: E2 08 00 12 7F 80 13 01 00 00 00 00 00 0E [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 12 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4F [13:38:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_GetShiftState done [13:38:53]FM_GetShiftState done [13:38:53]opened in 1729989159 [13:38:53]opened+sec_in_day 1730075559 [13:38:53]quantity*price = 50041 [13:38:53]sum+1 = 50042 [13:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 220 27.10.2024 13:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192188 ФПД: 126898825795305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133913&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192188&fm=126898825795305&tin=02508201610067®Number=0000000000091776&sum=50000 [13:38:54]StoreToDocumentArchive [13:38:54]shift 542 fd 192188 [13:38:54]save to /storage/0542/doc_00192188 [13:38:54]save last doc name /storage/0542/doc_00192188 to /storage/kkm_last_doc_name [13:38:54]save OK [13:38:54]Clear old archive folders... [13:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:54]tlvbuf is 01D13680 [13:38:54]SAM_PROTO_ClearQueue [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 09 00 00 [13:38:54]Write to MH i2c: E2 08 00 1F 7F 80 09 00 00 00 00 00 00 10 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 1F 7F 00 90 00 12 [13:38:54]RAPDU: 90 00 [13:38:54]wFMCommunicate OK [13:38:54]SAM_PROTO_ClearQueue done [13:38:54]KKMCreateOFDPacket [13:38:54]OFDProtocolAddRootSTLVToBuf [13:38:54]FM_MakeSignedData [13:38:54]FM_MakeSignedData [13:38:54]SAM_PROTO_SignData [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 0D 01 02 [13:38:54]Write to MH i2c: E2 08 00 20 7F 80 0D 01 02 00 00 00 00 18 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 20 7F 00 90 00 13 [13:38:54]RAPDU: 90 00 [13:38:54]wFMCommunicate OK [13:38:54]wFMCommunicate request_size=255 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 81 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EE 02 00 35 04 06 00 73 [13:38:54]Write to MH i2c: E2 02 01 21 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 81 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EE 02 00 35 04 06 00 73 00 00 0F [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 21 7F 00 90 00 14 [13:38:54]RAPDU: 90 00 [13:38:54]wFMCommunicate OK [13:38:54]wFMCommunicate request_size=10 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 0D 02 02 05 69 EF 6F 16 E9 [13:38:54]Write to MH i2c: E2 0D 00 22 7F 80 0D 02 02 05 00 69 EF 6F 16 E9 00 00 EB [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:54]Read from MH i2c: E2 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: E2 03 00 22 7F 00 90 00 15 [13:38:54]RAPDU: 90 00 [13:38:54]wFMCommunicate OK [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 0D 03 02 [13:38:54]Write to MH i2c: E2 08 00 23 7F 80 0D 03 02 00 00 00 00 1D [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0B 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0B 00 23 7F 00 A7 35 AC 20 53 4E 44 80 90 00 2B [13:38:55]RAPDU: A7 35 AC 20 53 4E 44 80 90 00 [13:38:55]wFMCommunicate OK [13:38:55]SAM_PROTO_SignData done [13:38:55]FM_MakeSignedData done [13:38:55]CreateOFDProtocolMessage [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 11 00 00 [13:38:55]Write to MH i2c: E2 08 00 24 7F 80 11 00 00 00 00 00 00 1D [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 24 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [13:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:38:55]wFMCommunicate OK [13:38:55]CreateOFDProtocolMessage done [13:38:55]OFDSenderStorePacket 192188 [13:38:55]StoreOFDPacket docnum=192188 [13:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 76 07 01 34 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 81 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EE 02 00 35 04 06 00 73 69 EF 6F 16 E9 A7 35 AC 20 53 4E 44 80 [13:38:55]CheckFolder [13:38:55]dirname=/storage/ofd_packets [13:38:55]CheckFolder done [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00192188 [13:38:55]NVStorageSaveData ofd_packets/00192188 [13:38:55]File name is /storage/ofd_packets/00192188 [13:38:55]Write 301 bytes [13:38:55]NVStorageSaveData done [13:38:55]OFDSenderStorePacket done [13:38:55]KKMCreateOFDPacket done [13:38:55]NVStorageSaveData kkm_last_timestamp [13:38:55]File name is /storage/kkm_last_timestamp [13:38:55]Write 4 bytes [13:38:55]NVStorageSaveData done [13:38:55]OFD Sender: Processing packet 192188 [packets to send 75, broken 74] [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00192188 [13:38:55]OFD Sender: To server: pG, [13:38:55]CommunicateWithHost lk.salyk.kg:30040 [13:38:55]ConnectInit lk.salyk.kg [13:38:55]ExternCall_PrintAddStr [13:38:55]wPrintStart [13:38:55]Write to MH i2c: 01 00 00 25 7F A4 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 25 7F 00 00 00 00 00 FF 0F B9 [13:38:55]RasterBufferAndPrint [13:38:55]line Счет N : (1)31501 [13:38:55]line ИНН: 02508201610067 [13:38:55]line Контрольно-Кассовый Чек [13:38:55]line ПРОДАЖА [13:38:55]line ТРК (МРК, ГНК) : 21 [13:38:55]line Товар: 2710124130 [13:38:55]line Аи-92-К-5 [13:38:55]line 7.480 * 66.90 [13:38:55]line = 500.41 [13:38:55]line НДС 12% НСП 1% [13:38:55]line > о реализуемом товаре [13:38:55]line ОКРУГЛЕНИЕ: -0.41 [13:38:55]line ИТОГО: 500.00 [13:38:55]line Внесено: 500.00 [13:38:55]line СДАЧА: 0.00 [13:38:55]line НСП 1% : 4.43 [13:38:55]line НДС 12% : 53.14 [13:38:55]line Наличными: 500.00 [13:38:55]line Безнал.: 0.00 [13:38:55]line Место: АЗС № 170 "Партнер Нефть" [13:38:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:38:55]line СНО: Общий режим [13:38:55]line Чек 220 27.10.2024 13:39 [13:38:55]line Смена: 542 ФФД: 1.0 [13:38:55]line ЗНМ: 0300000110 [13:38:55]line РНМ: 0000000000091776 [13:38:55]line Версия ККМ: 001 [13:38:55]line ФМ: 0000000000871754 [13:38:55]line ФД: 192188 [13:38:55]line ФПД: 126898825795305 [13:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133913&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192188&fm=126898825795305&tin=02508201610067®Number=0000000000091776&sum=50000 [13:38:55]Connected sock=10 [13:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 76 07 01 34 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 81 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EE 02 00 35 04 06 00 73 69 EF 6F 16 E9 A7 35 AC 20 53 4E 44 80 [13:38:55]written 0, free lines is 4095 [13:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 8E 47 00 66 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EE 02 00 F4 03 04 00 49 E7 1D 67 B6 04 01 00 00 09 64 A2 4F 39 62 4D 4E [13:38:55]CommunicateWithHost err = 0 [13:38:55]CheckOFDResponse [13:38:55]1017 (14) - 77093643461234 [13:38:55]1041 (16) - 0000000000871754 [13:38:55]1040 (4) - 192188 [13:38:55]1012 (4) - 27.10.2024 07:10 [13:38:55]1206 (1) - 0 [13:38:55]OFD Sender: Remove packet 192188 [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00192188 [13:38:55]NVStorageDeleteData [13:38:55]Write to MH i2c: 01 00 00 50 7F CF [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 50 7F 00 00 00 00 00 AD 0C 8F [13:38:55]RasterBufferAndPrint [13:38:55]line [13:38:55]line [13:38:55]line [13:38:55]line [13:38:55]line [13:38:55]written 0, free lines is 3252 [13:38:55]MH_Cut [13:38:55]Write to MH i2c: D1 01 00 57 7F 01 A8 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: D1 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: D1 01 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: D1 01 00 57 7F 00 A7 [13:38:55]Write to MH i2c: 01 00 00 58 7F D7 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:56]OFD Sender: No OFD packet to send [13:38:56]*** Cut start [13:38:56]*** Partial cut [13:38:56]*** CUTSNS_PIN = 1 [13:38:56]*** CUTSNS_PIN = 0 [13:38:57]*** Brake cut motor [13:38:57]Read from MH i2c: 01 [13:38:57]MH_I2C_Read... [13:38:57]*** Stop cut motor [13:38:57]*** Cut end [13:38:57]Read from MH i2c: 01 07 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: 01 07 00 58 7F 00 00 00 00 00 FF 0F EC [13:38:57]process_action close_receipt done [13:38:57]requested_data is exist [13:38:57]produce_requested_data [13:38:57]requested_item fm.sn is exist - process it [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 11 00 00 [13:38:57]Write to MH i2c: E2 08 00 59 7F 80 11 00 00 00 00 00 00 52 [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 17 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 17 00 59 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [13:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:38:57]wFMCommunicate OK [13:38:57]requested_item fd.num is exist - process it [13:38:57]SAM_PROTO_GetFieldsCounters [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 13 00 00 [13:38:57]Write to MH i2c: E2 08 00 5A 7F 80 13 00 00 00 00 00 00 55 [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 62 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 62 00 5A 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [13:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:57]wFMCommunicate OK [13:38:57]SAM_PROTO_GetFieldsCounters done [13:38:57]requested_item shift.num is exist - process it [13:38:57]requested_item shift.opened is exist - process it [13:38:57]req_shift_opened [13:38:57]FM_GetShiftState [13:38:57]SAM_PROTO_GetShiftState [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 13 01 00 [13:38:57]Write to MH i2c: E2 08 00 5B 7F 80 13 01 00 00 00 00 00 57 [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 5B 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 98 [13:38:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:38:57]wFMCommunicate OK [13:38:57]SAM_PROTO_GetShiftState done [13:38:57]FM_GetShiftState done [13:38:57]req_shift_opened done [13:38:57]requested_item shift.open_date is exist - process it [13:38:57]req_shift_open_date [13:38:57]req_shift_open_date done [13:38:57]produce_requested_data done [13:38:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192188,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:38:57]process_action_free close_receipt [13:38:57]json_value_free [13:38:57]json_value_free done [13:38:57]process_json_proto returns [13:38:57]Send response to host [13:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192188,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:38:57]free response buf [13:38:57]execute_script done [13:38:57]execute_script returns [13:38:57]free content buf [13:38:57]Sock 5.Close socket [13:38:57]Sock 5.Thread stoped [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:26]accept exits with 6 [13:40:26]New connection [13:40:26]New thread 3066817892 created [13:40:26]Thread 3066961252 joined [13:40:26]Waiting for new connection... [13:40:26] Sock 6.Parse request [13:40:26]Sock 6.Check first char [13:40:26]Sock 6.First char is OK [13:40:26]request: POST /json_proto HTTP/1.0 [13:40:26]Method: POST [13:40:26]URL: /json_proto [13:40:26]Method is POST - this is cgi request [13:40:26]url: /json_proto [13:40:26]query_string will be loaded in cgi processing [13:40:26]execute_cgi json_proto POST (null) [13:40:26]execute_cgi path=json_proto method=POST [13:40:26]POST find Content-Length [13:40:26]Host: 172.17.63.131:8080 [13:40:26]Content-Length: 676 [13:40:26]Content-Type: application/json [13:40:26] [13:40:26]POST finish read [13:40:26]Found Content-Length = 676 [13:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:26]execute_script... [13:40: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)31503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:26]POST & json_proto [13:40:26]process_json_proto [13:40:26]json parsed OK: [13:40:26]protocol is kg_v1.0 [13:40:26]action value=close_receipt [13:40:26]process_action close_receipt [13:40:26]cmd_close_receipt [13:40:26]MH_GetDate [13:40:26]Write to MH i2c: F0 00 00 5C 7F CA [13:40:26]Write i2c OK [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: F0 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: F0 09 00 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: F0 09 00 5C 7F 00 DE 42 1E 67 22 05 6E 64 71 [13:40:26]GetLastDocTimeStamp 1730036353 [13:40:26]current date 1730036446 [13:40:26]FM_GetShiftState [13:40:26]SAM_PROTO_GetShiftState [13:40:26]wFMCommunicate request_size=4 [13:40:26]MH_SAM_APDU [13:40:26]CAPDU: 80 13 01 00 [13:40:26]Write to MH i2c: E2 08 00 5D 7F 80 13 01 00 00 00 00 00 59 [13:40:26]Write i2c OK [13:40:26]MH_I2C_Read... [13:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:26]Read from MH i2c: E2 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: E2 0E 00 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: E2 0E 00 5D 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9A [13:40:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:40:26]wFMCommunicate OK [13:40:26]SAM_PROTO_GetShiftState done [13:40:26]FM_GetShiftState done [13:40:26]opened in 1729989159 [13:40:26]opened+sec_in_day 1730075559 [13:40:26]quantity*price = 50041 [13:40:26]sum+1 = 50042 [13:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 221 27.10.2024 13:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192189 ФПД: 72998079890772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192189&fm=72998079890772&tin=02508201610067®Number=0000000000091776&sum=50000 [13:40:27]StoreToDocumentArchive [13:40:27]shift 542 fd 192189 [13:40:27]save to /storage/0542/doc_00192189 [13:40:27]save last doc name /storage/0542/doc_00192189 to /storage/kkm_last_doc_name [13:40:27]save OK [13:40:27]Clear old archive folders... [13:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:27]tlvbuf is 015C8A30 [13:40:27]SAM_PROTO_ClearQueue [13:40:27]wFMCommunicate request_size=4 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 09 00 00 [13:40:27]Write to MH i2c: E2 08 00 6A 7F 80 09 00 00 00 00 00 00 5B [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:27]Read from MH i2c: E2 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 03 00 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 03 00 6A 7F 00 90 00 5D [13:40:27]RAPDU: 90 00 [13:40:27]wFMCommunicate OK [13:40:27]SAM_PROTO_ClearQueue done [13:40:27]KKMCreateOFDPacket [13:40:27]OFDProtocolAddRootSTLVToBuf [13:40:27]FM_MakeSignedData [13:40:27]FM_MakeSignedData [13:40:27]SAM_PROTO_SignData [13:40:27]wFMCommunicate request_size=4 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 0D 01 02 [13:40:27]Write to MH i2c: E2 08 00 6B 7F 80 0D 01 02 00 00 00 00 63 [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:27]Read from MH i2c: E2 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 03 00 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 03 00 6B 7F 00 90 00 5E [13:40:27]RAPDU: 90 00 [13:40:27]wFMCommunicate OK [13:40:27]wFMCommunicate request_size=255 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EE 02 00 35 04 06 00 42 [13:40:27]Write to MH i2c: E2 02 01 6C 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EE 02 00 35 04 06 00 42 00 00 88 [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:28]Read from MH i2c: E2 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 03 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 03 00 6C 7F 00 90 00 5F [13:40:28]RAPDU: 90 00 [13:40:28]wFMCommunicate OK [13:40:28]wFMCommunicate request_size=10 [13:40:28]MH_SAM_APDU [13:40:28]CAPDU: 80 0D 02 02 05 64 30 9F 05 54 [13:40:28]Write to MH i2c: E2 0D 00 6D 7F 80 0D 02 02 05 00 64 30 9F 05 54 00 00 FC [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:28]Read from MH i2c: E2 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 03 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 03 00 6D 7F 00 90 00 60 [13:40:28]RAPDU: 90 00 [13:40:28]wFMCommunicate OK [13:40:28]wFMCommunicate request_size=4 [13:40:28]MH_SAM_APDU [13:40:28]CAPDU: 80 0D 03 02 [13:40:28]Write to MH i2c: E2 08 00 6E 7F 80 0D 03 02 00 00 00 00 68 [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:28]Read from MH i2c: E2 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 0B 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 0B 00 6E 7F 00 9A 55 66 8F 1F BE 26 2C 90 00 7C [13:40:28]RAPDU: 9A 55 66 8F 1F BE 26 2C 90 00 [13:40:28]wFMCommunicate OK [13:40:28]SAM_PROTO_SignData done [13:40:28]FM_MakeSignedData done [13:40:28]CreateOFDProtocolMessage [13:40:28]wFMCommunicate request_size=4 [13:40:28]MH_SAM_APDU [13:40:28]CAPDU: 80 11 00 00 [13:40:28]Write to MH i2c: E2 08 00 6F 7F 80 11 00 00 00 00 00 00 68 [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:28]Read from MH i2c: E2 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 17 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 17 00 6F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [13:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:40:28]wFMCommunicate OK [13:40:28]CreateOFDProtocolMessage done [13:40:28]OFDSenderStorePacket 192189 [13:40:28]StoreOFDPacket docnum=192189 [13:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 73 07 01 2C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EE 02 00 35 04 06 00 42 64 30 9F 05 54 9A 55 66 8F 1F BE 26 2C [13:40:28]CheckFolder [13:40:28]dirname=/storage/ofd_packets [13:40:28]CheckFolder done [13:40:28]ProducePacketName [13:40:28]name=ofd_packets/00192189 [13:40:28]NVStorageSaveData ofd_packets/00192189 [13:40:28]File name is /storage/ofd_packets/00192189 [13:40:28]Write 301 bytes [13:40:28]NVStorageSaveData done [13:40:28]OFDSenderStorePacket done [13:40:28]KKMCreateOFDPacket done [13:40:28]NVStorageSaveData kkm_last_timestamp [13:40:28]File name is /storage/kkm_last_timestamp [13:40:28]Write 4 bytes [13:40:28]NVStorageSaveData done [13:40:28]ExternCall_PrintAddStr [13:40:28]wPrintStart [13:40:28]Write to MH i2c: 01 00 00 70 7F EF [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: 01 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: 01 07 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: 01 07 00 70 7F 00 00 00 00 00 FF 0F 04 [13:40:28]RasterBufferAndPrint [13:40:28]line Счет N : (1)31503 [13:40:28]line ИНН: 02508201610067 [13:40:28]line Контрольно-Кассовый Чек [13:40:28]line ПРОДАЖА [13:40:28]line ТРК (МРК, ГНК) : 21 [13:40:28]line Товар: 2710124130 [13:40:28]line Аи-92-К-5 [13:40:28]line 7.480 * 66.90 [13:40:28]line = 500.41 [13:40:28]line НДС 12% НСП 1% [13:40:28]line > о реализуемом товаре [13:40:28]line ОКРУГЛЕНИЕ: -0.41 [13:40:28]line ИТОГО: 500.00 [13:40:28]line Внесено: 500.00 [13:40:28]line СДАЧА: 0.00 [13:40:28]line НСП 1% : 4.43 [13:40:28]line НДС 12% : 53.14 [13:40:28]line Наличными: 500.00 [13:40:28]line Безнал.: 0.00 [13:40:28]line Место: АЗС № 170 "Партнер Нефть" [13:40:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:40:28]line СНО: Общий режим [13:40:28]line Чек 221 27.10.2024 13:40 [13:40:28]line Смена: 542 ФФД: 1.0 [13:40:28]line ЗНМ: 0300000110 [13:40:28]line РНМ: 0000000000091776 [13:40:28]line Версия ККМ: 001 [13:40:28]line ФМ: 0000000000871754 [13:40:28]line ФД: 192189 [13:40:28]line ФПД: 72998079890772 [13:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192189&fm=72998079890772&tin=02508201610067®Number=0000000000091776&sum=50000 [13:40:28]OFD Sender: Processing packet 192189 [packets to send 75, broken 74] [13:40:28]ProducePacketName [13:40:28]name=ofd_packets/00192189 [13:40:28]OFD Sender: To server: pG, [13:40:28]CommunicateWithHost lk.salyk.kg:30040 [13:40:28]ConnectInit lk.salyk.kg [13:40:28]written 0, free lines is 4095 [13:40:28]Connected sock=8 [13:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 73 07 01 2C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EE 02 00 35 04 06 00 42 64 30 9F 05 54 9A 55 66 8F 1F BE 26 2C [13:40:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 B6 47 00 20 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EE 02 00 F4 03 04 00 A6 E7 1D 67 B6 04 01 00 00 90 B9 D3 98 FC 7E A6 98 [13:40:28]CommunicateWithHost err = 0 [13:40:28]CheckOFDResponse [13:40:28]1017 (14) - 77093643461234 [13:40:28]1041 (16) - 0000000000871754 [13:40:28]1040 (4) - 192189 [13:40:28]1012 (4) - 27.10.2024 07:11 [13:40:28]1206 (1) - 0 [13:40:28]OFD Sender: Remove packet 192189 [13:40:28]ProducePacketName [13:40:28]name=ofd_packets/00192189 [13:40:28]NVStorageDeleteData [13:40:29]Write to MH i2c: 01 00 00 9B 7F 1A [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: 01 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: 01 07 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: 01 07 00 9B 7F 00 00 00 00 00 B5 0C E2 [13:40:29]RasterBufferAndPrint [13:40:29]line [13:40:29]line [13:40:29]line [13:40:29]line [13:40:29]line [13:40:29]written 0, free lines is 3263 [13:40:29]MH_Cut [13:40:29]Write to MH i2c: D1 01 00 A2 7F 01 F3 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: D1 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: D1 01 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: D1 01 00 A2 7F 00 F2 [13:40:29]Write to MH i2c: 01 00 00 A3 7F 22 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]OFD Sender: No OFD packet to send [13:40:29]*** Cut start [13:40:29]*** Partial cut [13:40:29]*** CUTSNS_PIN = 1 [13:40:29]*** CUTSNS_PIN = 0 [13:40:30]*** Brake cut motor [13:40:30]Read from MH i2c: 01 [13:40:30]MH_I2C_Read... [13:40:30]*** Stop cut motor [13:40:30]*** Cut end [13:40:30]Read from MH i2c: 01 07 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 07 00 A3 7F 00 00 00 00 00 FF 0F 37 [13:40:30]process_action close_receipt done [13:40:30]requested_data is exist [13:40:30]produce_requested_data [13:40:30]requested_item fm.sn is exist - process it [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 11 00 00 [13:40:30]Write to MH i2c: E2 08 00 A4 7F 80 11 00 00 00 00 00 00 9D [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 17 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 17 00 A4 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [13:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:40:30]wFMCommunicate OK [13:40:30]requested_item fd.num is exist - process it [13:40:30]SAM_PROTO_GetFieldsCounters [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 13 00 00 [13:40:30]Write to MH i2c: E2 08 00 A5 7F 80 13 00 00 00 00 00 00 A0 [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 62 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 62 00 A5 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:40:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:30]wFMCommunicate OK [13:40:30]SAM_PROTO_GetFieldsCounters done [13:40:30]requested_item shift.num is exist - process it [13:40:30]requested_item shift.opened is exist - process it [13:40:30]req_shift_opened [13:40:30]FM_GetShiftState [13:40:30]SAM_PROTO_GetShiftState [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 13 01 00 [13:40:30]Write to MH i2c: E2 08 00 A6 7F 80 13 01 00 00 00 00 00 A2 [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 0E 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 0E 00 A6 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E3 [13:40:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:40:30]wFMCommunicate OK [13:40:30]SAM_PROTO_GetShiftState done [13:40:30]FM_GetShiftState done [13:40:30]req_shift_opened done [13:40:30]requested_item shift.open_date is exist - process it [13:40:30]req_shift_open_date [13:40:30]req_shift_open_date done [13:40:30]produce_requested_data done [13:40:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192189,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:40:30]process_action_free close_receipt [13:40:30]json_value_free [13:40:30]json_value_free done [13:40:30]process_json_proto returns [13:40:30]Send response to host [13:40:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192189,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:40:30]free response buf [13:40:30]execute_script done [13:40:30]execute_script returns [13:40:30]free content buf [13:40:30]Sock 6.Close socket [13:40:30]Sock 6.Thread stoped [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:43]accept exits with 5 [13:40:43]New connection [13:40:43]New thread 3066961252 created [13:40:43]Thread 3066817892 joined [13:40:43]Waiting for new connection... [13:40:43] Sock 5.Parse request [13:40:43]Sock 5.Check first char [13:40:43]Sock 5.First char is OK [13:40:43]request: POST /json_proto HTTP/1.0 [13:40:43]Method: POST [13:40:43]URL: /json_proto [13:40:43]Method is POST - this is cgi request [13:40:43]url: /json_proto [13:40:43]query_string will be loaded in cgi processing [13:40:43]execute_cgi json_proto POST (null) [13:40:43]execute_cgi path=json_proto method=POST [13:40:43]POST find Content-Length [13:40:43]Host: 172.17.63.131:8080 [13:40:43]Content-Length: 673 [13:40:43]Content-Type: application/json [13:40:43] [13:40:43]POST finish read [13:40:43]Found Content-Length = 673 [13:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31502", "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" : 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" ] } } [13:40:43]execute_script... [13:40: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)31502", "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" : 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" ] } } [13:40:43]POST & json_proto [13:40:43]process_json_proto [13:40:43]json parsed OK: [13:40:43]protocol is kg_v1.0 [13:40:43]action value=close_receipt [13:40:43]process_action close_receipt [13:40:43]cmd_close_receipt [13:40:43]MH_GetDate [13:40:43]Write to MH i2c: F0 00 00 A7 7F 15 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: F0 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: F0 09 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: F0 09 00 A7 7F 00 EF 42 1E 67 22 05 6E 64 CD [13:40:43]GetLastDocTimeStamp 1730036446 [13:40:43]current date 1730036463 [13:40:43]FM_GetShiftState [13:40:43]SAM_PROTO_GetShiftState [13:40:43]wFMCommunicate request_size=4 [13:40:43]MH_SAM_APDU [13:40:43]CAPDU: 80 13 01 00 [13:40:43]Write to MH i2c: E2 08 00 A8 7F 80 13 01 00 00 00 00 00 A4 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:43]Read from MH i2c: E2 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 0E 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 0E 00 A8 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E5 [13:40:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:40:43]wFMCommunicate OK [13:40:43]SAM_PROTO_GetShiftState done [13:40:43]FM_GetShiftState done [13:40:43]opened in 1729989159 [13:40:43]opened+sec_in_day 1730075559 [13:40:43]quantity*price = 70027 [13:40:43]sum+1 = 70029 [13:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 222 27.10.2024 13:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192190 ФПД: 163508028137270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192190&fm=163508028137270&tin=02508201610067®Number=0000000000091776&sum=70000 [13:40:44]StoreToDocumentArchive [13:40:44]shift 542 fd 192190 [13:40:44]save to /storage/0542/doc_00192190 [13:40:44]save last doc name /storage/0542/doc_00192190 to /storage/kkm_last_doc_name [13:40:44]save OK [13:40:44]Clear old archive folders... [13:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:44]tlvbuf is 01748FC0 [13:40:44]SAM_PROTO_ClearQueue [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 09 00 00 [13:40:44]Write to MH i2c: E2 08 00 B5 7F 80 09 00 00 00 00 00 00 A6 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 B5 7F 00 90 00 A8 [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_ClearQueue done [13:40:44]KKMCreateOFDPacket [13:40:44]OFDProtocolAddRootSTLVToBuf [13:40:44]FM_MakeSignedData [13:40:44]FM_MakeSignedData [13:40:44]SAM_PROTO_SignData [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 01 02 [13:40:44]Write to MH i2c: E2 08 00 B6 7F 80 0D 01 02 00 00 00 00 AE [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 B6 7F 00 90 00 A9 [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=255 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 EF 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EE 02 00 35 04 06 00 94 B5 AD EF [13:40:44]Write to MH i2c: E2 02 01 B7 7F 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 DE 00 00 00 F4 03 04 00 EF 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EE 02 00 35 04 06 00 94 B5 AD EF 00 00 7B [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]OFD Sender: No OFD packet to send [13:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 B7 7F 00 90 00 AA [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=7 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 02 02 02 5F 36 [13:40:44]Write to MH i2c: E2 0A 00 B8 7F 80 0D 02 02 02 00 5F 36 00 00 4A [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 B8 7F 00 90 00 AB [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 03 02 [13:40:44]Write to MH i2c: E2 08 00 B9 7F 80 0D 03 02 00 00 00 00 B3 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0B 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0B 00 B9 7F 00 B2 41 88 DF FE 1D 26 ED 90 00 3C [13:40:44]RAPDU: B2 41 88 DF FE 1D 26 ED 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_SignData done [13:40:44]FM_MakeSignedData done [13:40:44]CreateOFDProtocolMessage [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 11 00 00 [13:40:44]Write to MH i2c: E2 08 00 BA 7F 80 11 00 00 00 00 00 00 B3 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 BA 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [13:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:40:44]wFMCommunicate OK [13:40:44]CreateOFDProtocolMessage done [13:40:44]OFDSenderStorePacket 192190 [13:40:44]StoreOFDPacket docnum=192190 [13:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F7 C5 04 01 BF 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 EF 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EE 02 00 35 04 06 00 94 B5 AD EF 5F 36 B2 41 88 DF FE 1D 26 ED [13:40:44]CheckFolder [13:40:44]dirname=/storage/ofd_packets [13:40:44]CheckFolder done [13:40:44]ProducePacketName [13:40:44]name=ofd_packets/00192190 [13:40:44]NVStorageSaveData ofd_packets/00192190 [13:40:44]File name is /storage/ofd_packets/00192190 [13:40:44]Write 298 bytes [13:40:44]NVStorageSaveData done [13:40:44]OFDSenderStorePacket done [13:40:44]KKMCreateOFDPacket done [13:40:44]NVStorageSaveData kkm_last_timestamp [13:40:44]File name is /storage/kkm_last_timestamp [13:40:44]Write 4 bytes [13:40:44]NVStorageSaveData done [13:40:44]ExternCall_PrintAddStr [13:40:44]wPrintStart [13:40:44]Write to MH i2c: 01 00 00 BB 7F 3A [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 BB 7F 00 00 00 00 00 FF 0F 4F [13:40:44]RasterBufferAndPrint [13:40:44]line Счет N : (1)31502 [13:40:44]line ИНН: 02508201610067 [13:40:44]line Контрольно-Кассовый Чек [13:40:44]line ПРОДАЖА [13:40:44]line ТРК (МРК, ГНК) : 11 [13:40:44]line Товар: 2710194210 [13:40:44]line ДТ-К-5 [13:40:44]line 9.190 * 76.20 [13:40:44]line = 700.28 [13:40:44]line НДС 12% НСП 1% [13:40:44]line > о реализуемом товаре [13:40:44]line ОКРУГЛЕНИЕ: -0.28 [13:40:44]line ИТОГО: 700.00 [13:40:44]line Внесено: 700.00 [13:40:44]line СДАЧА: 0.00 [13:40:44]line НСП 1% : 6.20 [13:40:44]line НДС 12% : 74.37 [13:40:44]line Наличными: 700.00 [13:40:44]line Безнал.: 0.00 [13:40:44]line Место: АЗС № 170 "Партнер Нефть" [13:40:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:40:44]line СНО: Общий режим [13:40:44]line Чек 222 27.10.2024 13:41 [13:40:44]line Смена: 542 ФФД: 1.0 [13:40:44]line ЗНМ: 0300000110 [13:40:44]line РНМ: 0000000000091776 [13:40:44]line Версия ККМ: 001 [13:40:44]line ФМ: 0000000000871754 [13:40:44]line ФД: 192190 [13:40:44]line ФПД: 163508028137270 [13:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192190&fm=163508028137270&tin=02508201610067®Number=0000000000091776&sum=70000 [13:40:45]OFD Sender: Processing packet 192190 [packets to send 75, broken 74] [13:40:45]ProducePacketName [13:40:45]name=ofd_packets/00192190 [13:40:45]OFD Sender: To server: pG, [13:40:45]CommunicateWithHost lk.salyk.kg:30040 [13:40:45]ConnectInit lk.salyk.kg [13:40:45]written 0, free lines is 4095 [13:40:45]Connected sock=8 [13:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F7 C5 04 01 BF 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 EF 42 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EE 02 00 35 04 06 00 94 B5 AD EF 5F 36 B2 41 88 DF FE 1D 26 ED [13:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 3B 47 00 32 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EE 02 00 F4 03 04 00 B7 E7 1D 67 B6 04 01 00 00 6A DF 74 A2 8B CF 61 C3 [13:40:45]CommunicateWithHost err = 0 [13:40:45]CheckOFDResponse [13:40:45]1017 (14) - 77093643461234 [13:40:45]1041 (16) - 0000000000871754 [13:40:45]1040 (4) - 192190 [13:40:45]1012 (4) - 27.10.2024 07:11 [13:40:45]1206 (1) - 0 [13:40:45]OFD Sender: Remove packet 192190 [13:40:45]ProducePacketName [13:40:45]name=ofd_packets/00192190 [13:40:45]NVStorageDeleteData [13:40:45]Write to MH i2c: 01 00 00 E6 7F 65 [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 07 00 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 07 00 E6 7F 00 00 00 00 00 B0 0C 28 [13:40:45]RasterBufferAndPrint [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]written 0, free lines is 3256 [13:40:45]MH_Cut [13:40:45]Write to MH i2c: D1 01 00 ED 7F 01 3E [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 01 00 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 01 00 ED 7F 00 3D [13:40:45]Write to MH i2c: 01 00 00 EE 7F 6D [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:46]OFD Sender: No OFD packet to send [13:40:46]*** Cut start [13:40:46]*** Partial cut [13:40:46]*** CUTSNS_PIN = 1 [13:40:46]*** CUTSNS_PIN = 0 [13:40:46]*** Brake cut motor [13:40:47]Read from MH i2c: 01 [13:40:47]MH_I2C_Read... [13:40:47]*** Stop cut motor [13:40:47]*** Cut end [13:40:47]Read from MH i2c: 01 07 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 EE 7F 00 00 00 00 00 FF 0F 82 [13:40:47]process_action close_receipt done [13:40:47]requested_data is exist [13:40:47]produce_requested_data [13:40:47]requested_item fm.sn is exist - process it [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 11 00 00 [13:40:47]Write to MH i2c: E2 08 00 EF 7F 80 11 00 00 00 00 00 00 E8 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 EF 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [13:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:40:47]wFMCommunicate OK [13:40:47]requested_item fd.num is exist - process it [13:40:47]SAM_PROTO_GetFieldsCounters [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 13 00 00 [13:40:47]Write to MH i2c: E2 08 00 F0 7F 80 13 00 00 00 00 00 00 EB [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 62 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 62 00 F0 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [13:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:47]wFMCommunicate OK [13:40:47]SAM_PROTO_GetFieldsCounters done [13:40:47]requested_item shift.num is exist - process it [13:40:47]requested_item shift.opened is exist - process it [13:40:47]req_shift_opened [13:40:47]FM_GetShiftState [13:40:47]SAM_PROTO_GetShiftState [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 13 01 00 [13:40:47]Write to MH i2c: E2 08 00 F1 7F 80 13 01 00 00 00 00 00 ED [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 0E 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 0E 00 F1 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2E [13:40:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:40:47]wFMCommunicate OK [13:40:47]SAM_PROTO_GetShiftState done [13:40:47]FM_GetShiftState done [13:40:47]req_shift_opened done [13:40:47]requested_item shift.open_date is exist - process it [13:40:47]req_shift_open_date [13:40:47]req_shift_open_date done [13:40:47]produce_requested_data done [13:40:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192190,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:40:47]process_action_free close_receipt [13:40:47]json_value_free [13:40:47]json_value_free done [13:40:47]process_json_proto returns [13:40:47]Send response to host [13:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192190,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:40:47]free response buf [13:40:47]execute_script done [13:40:47]execute_script returns [13:40:47]free content buf [13:40:47]Sock 5.Close socket [13:40:47]Sock 5.Thread stoped [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:14]accept exits with 6 [13:42:14]New connection [13:42:14]New thread 3066817892 created [13:42:14]Thread 3066961252 joined [13:42:14]Waiting for new connection... [13:42:14] Sock 6.Parse request [13:42:14]Sock 6.Check first char [13:42:14]Sock 6.First char is OK [13:42:14]request: POST /json_proto HTTP/1.0 [13:42:14]Method: POST [13:42:14]URL: /json_proto [13:42:14]Method is POST - this is cgi request [13:42:14]url: /json_proto [13:42:14]query_string will be loaded in cgi processing [13:42:14]execute_cgi json_proto POST (null) [13:42:14]execute_cgi path=json_proto method=POST [13:42:14]POST find Content-Length [13:42:14]Host: 172.17.63.131:8080 [13:42:14]Content-Length: 676 [13:42:14]Content-Type: application/json [13:42:14] [13:42:14]POST finish read [13:42:14]Found Content-Length = 676 [13:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:14]execute_script... [13:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:14]POST & json_proto [13:42:14]process_json_proto [13:42:14]json parsed OK: [13:42:14]protocol is kg_v1.0 [13:42:14]action value=close_receipt [13:42:14]process_action close_receipt [13:42:14]cmd_close_receipt [13:42:14]MH_GetDate [13:42:14]Write to MH i2c: F0 00 00 F2 7F 60 [13:42:14]Write i2c OK [13:42:14]MH_I2C_Read... [13:42:14]Read from MH i2c: F0 [13:42:14]MH_I2C_Read... [13:42:14]Read from MH i2c: F0 09 00 [13:42:14]MH_I2C_Read... [13:42:14]Read from MH i2c: F0 09 00 F2 7F 00 4A 43 1E 67 22 05 6E 64 74 [13:42:14]GetLastDocTimeStamp 1730036463 [13:42:14]current date 1730036554 [13:42:14]FM_GetShiftState [13:42:14]SAM_PROTO_GetShiftState [13:42:14]wFMCommunicate request_size=4 [13:42:14]MH_SAM_APDU [13:42:14]CAPDU: 80 13 01 00 [13:42:14]Write to MH i2c: E2 08 00 F3 7F 80 13 01 00 00 00 00 00 EF [13:42:14]Write i2c OK [13:42:14]MH_I2C_Read... [13:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:14]Read from MH i2c: E2 [13:42:14]MH_I2C_Read... [13:42:14]Read from MH i2c: E2 0E 00 [13:42:14]MH_I2C_Read... [13:42:14]Read from MH i2c: E2 0E 00 F3 7F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 30 [13:42:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:42:14]wFMCommunicate OK [13:42:14]SAM_PROTO_GetShiftState done [13:42:14]FM_GetShiftState done [13:42:14]opened in 1729989159 [13:42:14]opened+sec_in_day 1730075559 [13:42:14]quantity*price = 50041 [13:42:14]sum+1 = 50042 [13:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 223 27.10.2024 13:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192191 ФПД: 7931444634146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134234&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192191&fm=7931444634146&tin=02508201610067®Number=0000000000091776&sum=50000 [13:42:15]StoreToDocumentArchive [13:42:15]shift 542 fd 192191 [13:42:15]save to /storage/0542/doc_00192191 [13:42:15]save last doc name /storage/0542/doc_00192191 to /storage/kkm_last_doc_name [13:42:15]save OK [13:42:15]Clear old archive folders... [13:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:15]tlvbuf is 01608E70 [13:42:15]SAM_PROTO_ClearQueue [13:42:15]wFMCommunicate request_size=4 [13:42:15]MH_SAM_APDU [13:42:15]CAPDU: 80 09 00 00 [13:42:15]Write to MH i2c: E2 08 00 00 80 80 09 00 00 00 00 00 00 F2 [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 00 80 00 90 00 F4 [13:42:15]RAPDU: 90 00 [13:42:15]wFMCommunicate OK [13:42:15]SAM_PROTO_ClearQueue done [13:42:15]KKMCreateOFDPacket [13:42:15]OFDProtocolAddRootSTLVToBuf [13:42:15]FM_MakeSignedData [13:42:15]FM_MakeSignedData [13:42:15]SAM_PROTO_SignData [13:42:15]wFMCommunicate request_size=4 [13:42:15]MH_SAM_APDU [13:42:15]CAPDU: 80 0D 01 02 [13:42:15]Write to MH i2c: E2 08 00 01 80 80 0D 01 02 00 00 00 00 FA [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 01 80 00 90 00 F5 [13:42:15]RAPDU: 90 00 [13:42:15]wFMCommunicate OK [13:42:15]wFMCommunicate request_size=255 [13:42:15]MH_SAM_APDU [13:42: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4A 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EE 02 00 35 04 06 00 07 [13:42:15]Write to MH i2c: E2 02 01 02 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4A 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EE 02 00 35 04 06 00 07 00 00 55 [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 02 80 00 90 00 F6 [13:42:15]RAPDU: 90 00 [13:42:15]wFMCommunicate OK [13:42:15]wFMCommunicate request_size=10 [13:42:15]MH_SAM_APDU [13:42:15]CAPDU: 80 0D 02 02 05 36 AE F0 A2 22 [13:42:15]Write to MH i2c: E2 0D 00 03 80 80 0D 02 02 05 00 36 AE F0 A2 22 00 00 9F [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 03 00 03 80 00 90 00 F7 [13:42:15]RAPDU: 90 00 [13:42:15]wFMCommunicate OK [13:42:15]wFMCommunicate request_size=4 [13:42:15]MH_SAM_APDU [13:42:15]CAPDU: 80 0D 03 02 [13:42:15]Write to MH i2c: E2 08 00 04 80 80 0D 03 02 00 00 00 00 FF [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 0B 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 0B 00 04 80 00 60 89 D8 45 08 4F 2F 33 90 00 BF [13:42:15]RAPDU: 60 89 D8 45 08 4F 2F 33 90 00 [13:42:15]wFMCommunicate OK [13:42:15]SAM_PROTO_SignData done [13:42:15]FM_MakeSignedData done [13:42:15]CreateOFDProtocolMessage [13:42:15]wFMCommunicate request_size=4 [13:42:15]MH_SAM_APDU [13:42:15]CAPDU: 80 11 00 00 [13:42:15]Write to MH i2c: E2 08 00 05 80 80 11 00 00 00 00 00 00 FF [13:42:15]Write i2c OK [13:42:15]MH_I2C_Read... [13:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:15]Read from MH i2c: E2 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 17 00 [13:42:15]MH_I2C_Read... [13:42:15]Read from MH i2c: E2 17 00 05 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [13:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:15]wFMCommunicate OK [13:42:15]CreateOFDProtocolMessage done [13:42:15]OFDSenderStorePacket 192191 [13:42:15]StoreOFDPacket docnum=192191 [13:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 0C 07 01 55 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4A 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EE 02 00 35 04 06 00 07 36 AE F0 A2 22 60 89 D8 45 08 4F 2F 33 [13:42:15]CheckFolder [13:42:15]dirname=/storage/ofd_packets [13:42:15]CheckFolder done [13:42:15]ProducePacketName [13:42:15]name=ofd_packets/00192191 [13:42:15]NVStorageSaveData ofd_packets/00192191 [13:42:15]File name is /storage/ofd_packets/00192191 [13:42:15]Write 301 bytes [13:42:15]NVStorageSaveData done [13:42:15]OFDSenderStorePacket done [13:42:15]KKMCreateOFDPacket done [13:42:15]NVStorageSaveData kkm_last_timestamp [13:42:15]File name is /storage/kkm_last_timestamp [13:42:15]Write 4 bytes [13:42:16]NVStorageSaveData done [13:42:16]ExternCall_PrintAddStr [13:42:16]wPrintStart [13:42:16]Write to MH i2c: 01 00 00 06 80 86 [13:42:16]Write i2c OK [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 07 00 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 07 00 06 80 00 00 00 00 00 FF 0F 9B [13:42:16]RasterBufferAndPrint [13:42:16]line Счет N : (1)31504 [13:42:16]line ИНН: 02508201610067 [13:42:16]line Контрольно-Кассовый Чек [13:42:16]line ПРОДАЖА [13:42:16]line ТРК (МРК, ГНК) : 12 [13:42:16]line Товар: 2710124130 [13:42:16]line Аи-92-К-5 [13:42:16]line 7.480 * 66.90 [13:42:16]line = 500.41 [13:42:16]line НДС 12% НСП 1% [13:42:16]line > о реализуемом товаре [13:42:16]line ОКРУГЛЕНИЕ: -0.41 [13:42:16]line ИТОГО: 500.00 [13:42:16]line Внесено: 500.00 [13:42:16]line СДАЧА: 0.00 [13:42:16]line НСП 1% : 4.43 [13:42:16]line НДС 12% : 53.14 [13:42:16]line Наличными: 500.00 [13:42:16]line Безнал.: 0.00 [13:42:16]line Место: АЗС № 170 "Партнер Нефть" [13:42:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:42:16]line СНО: Общий режим [13:42:16]line Чек 223 27.10.2024 13:42 [13:42:16]line Смена: 542 ФФД: 1.0 [13:42:16]line ЗНМ: 0300000110 [13:42:16]line РНМ: 0000000000091776 [13:42:16]line Версия ККМ: 001 [13:42:16]line ФМ: 0000000000871754 [13:42:16]line ФД: 192191 [13:42:16]line ФПД: 7931444634146 [13:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134234&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192191&fm=7931444634146&tin=02508201610067®Number=0000000000091776&sum=50000 [13:42:16]OFD Sender: Processing packet 192191 [packets to send 75, broken 74] [13:42:16]ProducePacketName [13:42:16]name=ofd_packets/00192191 [13:42:16]OFD Sender: To server: pG, [13:42:16]CommunicateWithHost lk.salyk.kg:30040 [13:42:16]ConnectInit lk.salyk.kg [13:42:16]written 0, free lines is 4095 [13:42:16]Write to MH i2c: 01 00 00 31 80 B1 [13:42:16]Write i2c OK [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 07 00 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: 01 07 00 31 80 00 00 00 00 00 A5 0C 69 [13:42:16]RasterBufferAndPrint [13:42:16]line [13:42:16]line [13:42:16]line [13:42:16]line [13:42:16]line [13:42:16]written 0, free lines is 3242 [13:42:16]MH_Cut [13:42:16]Write to MH i2c: D1 01 00 38 80 01 8A [13:42:16]Write i2c OK [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: D1 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: D1 01 00 [13:42:16]MH_I2C_Read... [13:42:16]Read from MH i2c: D1 01 00 38 80 00 89 [13:42:16]Write to MH i2c: 01 00 00 39 80 B9 [13:42:16]Write i2c OK [13:42:16]MH_I2C_Read... [13:42:17]*** Cut start [13:42:17]*** Partial cut [13:42:17]*** CUTSNS_PIN = 1 [13:42:17]*** CUTSNS_PIN = 0 [13:42:17]*** Brake cut motor [13:42:18]Read from MH i2c: 01 [13:42:18]MH_I2C_Read... [13:42:18]*** Stop cut motor [13:42:18]*** Cut end [13:42:18]Read from MH i2c: 01 07 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: 01 07 00 39 80 00 00 00 00 00 FF 0F CE [13:42:18]process_action close_receipt done [13:42:18]requested_data is exist [13:42:18]produce_requested_data [13:42:18]requested_item fm.sn is exist - process it [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 11 00 00 [13:42:18]Write to MH i2c: E2 08 00 3A 80 80 11 00 00 00 00 00 00 34 [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 17 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 17 00 3A 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [13:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:18]wFMCommunicate OK [13:42:18]requested_item fd.num is exist - process it [13:42:18]SAM_PROTO_GetFieldsCounters [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 13 00 00 [13:42:18]Write to MH i2c: E2 08 00 3B 80 80 13 00 00 00 00 00 00 37 [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 62 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 62 00 3B 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [13:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:18]wFMCommunicate OK [13:42:18]SAM_PROTO_GetFieldsCounters done [13:42:18]requested_item shift.num is exist - process it [13:42:18]requested_item shift.opened is exist - process it [13:42:18]req_shift_opened [13:42:18]FM_GetShiftState [13:42:18]SAM_PROTO_GetShiftState [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 13 01 00 [13:42:18]Write to MH i2c: E2 08 00 3C 80 80 13 01 00 00 00 00 00 39 [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0E 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0E 00 3C 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7A [13:42:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:42:18]wFMCommunicate OK [13:42:18]SAM_PROTO_GetShiftState done [13:42:18]FM_GetShiftState done [13:42:18]req_shift_opened done [13:42:18]requested_item shift.open_date is exist - process it [13:42:18]req_shift_open_date [13:42:18]req_shift_open_date done [13:42:18]produce_requested_data done [13:42:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192191,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:42:18]process_action_free close_receipt [13:42:18]json_value_free [13:42:18]json_value_free done [13:42:18]process_json_proto returns [13:42:18]Send response to host [13:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192191,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:42:18]free response buf [13:42:18]execute_script done [13:42:18]execute_script returns [13:42:18]free content buf [13:42:18]Sock 6.Close socket [13:42:18]Sock 6.Thread stoped [13:42:18]accept exits with 5 [13:42:18]New connection [13:42:18]New thread 3066961252 created [13:42:18]Thread 3066817892 joined [13:42:18]Waiting for new connection... [13:42:18] Sock 5.Parse request [13:42:18]Sock 5.Check first char [13:42:18]Sock 5.First char is OK [13:42:18]request: POST /json_proto HTTP/1.0 [13:42:18]Method: POST [13:42:18]URL: /json_proto [13:42:18]Method is POST - this is cgi request [13:42:18]url: /json_proto [13:42:18]query_string will be loaded in cgi processing [13:42:18]execute_cgi json_proto POST (null) [13:42:18]execute_cgi path=json_proto method=POST [13:42:18]POST find Content-Length [13:42:18]Host: 172.17.63.131:8080 [13:42:18]Content-Length: 681 [13:42:18]Content-Type: application/json [13:42:18] [13:42:18]POST finish read [13:42:18]Found Content-Length = 681 [13:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:18]execute_script... [13:42: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)31505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:18]POST & json_proto [13:42:18]process_json_proto [13:42:18]json parsed OK: [13:42:18]protocol is kg_v1.0 [13:42:18]action value=close_receipt [13:42:18]process_action close_receipt [13:42:18]cmd_close_receipt [13:42:18]MH_GetDate [13:42:18]Write to MH i2c: F0 00 00 3D 80 AC [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: F0 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: F0 09 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: F0 09 00 3D 80 00 4F 43 1E 67 22 05 6E 64 C5 [13:42:18]GetLastDocTimeStamp 1730036554 [13:42:18]current date 1730036559 [13:42:18]FM_GetShiftState [13:42:18]SAM_PROTO_GetShiftState [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 13 01 00 [13:42:18]Write to MH i2c: E2 08 00 3E 80 80 13 01 00 00 00 00 00 3B [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0E 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0E 00 3E 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7C [13:42:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:42:18]wFMCommunicate OK [13:42:18]SAM_PROTO_GetShiftState done [13:42:18]FM_GetShiftState done [13:42:18]opened in 1729989159 [13:42:18]opened+sec_in_day 1730075559 [13:42:18]quantity*price = 100015 [13:42:18]sum+1 = 100017 [13:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 224 27.10.2024 13:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192192 ФПД: 193985029725391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192192&fm=193985029725391&tin=02508201610067®Number=0000000000091776&sum=100000 [13:42:20]StoreToDocumentArchive [13:42:20]shift 542 fd 192192 [13:42:20]save to /storage/0542/doc_00192192 [13:42:20]save last doc name /storage/0542/doc_00192192 to /storage/kkm_last_doc_name [13:42:20]save OK [13:42:20]Clear old archive folders... [13:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:20]tlvbuf is 01D817B0 [13:42:20]SAM_PROTO_ClearQueue [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 09 00 00 [13:42:20]Write to MH i2c: E2 08 00 4B 80 80 09 00 00 00 00 00 00 3D [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 4B 80 00 90 00 3F [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_ClearQueue done [13:42:20]KKMCreateOFDPacket [13:42:20]OFDProtocolAddRootSTLVToBuf [13:42:20]FM_MakeSignedData [13:42:20]FM_MakeSignedData [13:42:20]SAM_PROTO_SignData [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 01 02 [13:42:20]Write to MH i2c: E2 08 00 4C 80 80 0D 01 02 00 00 00 00 45 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 4C 80 00 90 00 40 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=255 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 4F 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EE 02 00 35 04 06 00 B0 [13:42:20]Write to MH i2c: E2 02 01 4D 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 4F 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EE 02 00 35 04 06 00 B0 00 00 4A [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 4D 80 00 90 00 41 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=10 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 02 02 05 6D A8 C9 DC CF [13:42:20]Write to MH i2c: E2 0D 00 4E 80 80 0D 02 02 05 00 6D A8 C9 DC CF 00 00 DB [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 4E 80 00 90 00 42 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 03 02 [13:42:20]Write to MH i2c: E2 08 00 4F 80 80 0D 03 02 00 00 00 00 4A [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0B 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0B 00 4F 80 00 3D 2A 25 F1 C7 C8 FE 4F 90 00 A4 [13:42:20]RAPDU: 3D 2A 25 F1 C7 C8 FE 4F 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_SignData done [13:42:20]FM_MakeSignedData done [13:42:20]CreateOFDProtocolMessage [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 11 00 00 [13:42:20]Write to MH i2c: E2 08 00 50 80 80 11 00 00 00 00 00 00 4A [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 17 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 17 00 50 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [13:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:20]wFMCommunicate OK [13:42:20]CreateOFDProtocolMessage done [13:42:20]OFDSenderStorePacket 192192 [13:42:20]StoreOFDPacket docnum=192192 [13:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB F5 07 01 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 4F 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EE 02 00 35 04 06 00 B0 6D A8 C9 DC CF 3D 2A 25 F1 C7 C8 FE 4F [13:42:20]CheckFolder [13:42:20]dirname=/storage/ofd_packets [13:42:20]CheckFolder done [13:42:21]ProducePacketName [13:42:21]name=ofd_packets/00192192 [13:42:21]NVStorageSaveData ofd_packets/00192192 [13:42:21]File name is /storage/ofd_packets/00192192 [13:42:21]Write 301 bytes [13:42:21]NVStorageSaveData done [13:42:21]OFDSenderStorePacket done [13:42:21]KKMCreateOFDPacket done [13:42:21]NVStorageSaveData kkm_last_timestamp [13:42:21]File name is /storage/kkm_last_timestamp [13:42:21]Write 4 bytes [13:42:21]NVStorageSaveData done [13:42:21]ExternCall_PrintAddStr [13:42:21]wPrintStart [13:42:21]Write to MH i2c: 01 00 00 51 80 D1 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 51 80 00 00 00 00 00 FF 0F E6 [13:42:21]RasterBufferAndPrint [13:42:21]line Счет N : (1)31505 [13:42:21]line ИНН: 02508201610067 [13:42:21]line Контрольно-Кассовый Чек [13:42:21]line ПРОДАЖА [13:42:21]line ТРК (МРК, ГНК) : 21 [13:42:21]line Товар: 2710124130 [13:42:21]line Аи-92-К-5 [13:42:21]line 14.950 * 66.90 [13:42:21]line = 1000.16 [13:42:21]line НДС 12% НСП 1% [13:42:21]line > о реализуемом товаре [13:42:21]line ОКРУГЛЕНИЕ: -0.16 [13:42:21]line ИТОГО: 1000.00 [13:42:21]line Внесено: 1000.00 [13:42:21]line СДАЧА: 0.00 [13:42:21]line НСП 1% : 8.85 [13:42:21]line НДС 12% : 106.21 [13:42:21]line Наличными: 1000.00 [13:42:21]line Безнал.: 0.00 [13:42:21]line Место: АЗС № 170 "Партнер Нефть" [13:42:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:42:21]line СНО: Общий режим [13:42:21]line Чек 224 27.10.2024 13:42 [13:42:21]line Смена: 542 ФФД: 1.0 [13:42:21]line ЗНМ: 0300000110 [13:42:21]line РНМ: 0000000000091776 [13:42:21]line Версия ККМ: 001 [13:42:21]line ФМ: 0000000000871754 [13:42:21]line ФД: 192192 [13:42:21]line ФПД: 193985029725391 [13:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192192&fm=193985029725391&tin=02508201610067®Number=0000000000091776&sum=100000 [13:42:21]written 0, free lines is 4095 [13:42:21]Write to MH i2c: 01 00 00 7C 80 FC [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 7C 80 00 00 00 00 00 B3 0C C2 [13:42:21]RasterBufferAndPrint [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]line [13:42:21]written 0, free lines is 3260 [13:42:21]MH_Cut [13:42:21]Write to MH i2c: D1 01 00 83 80 01 D5 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 01 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: D1 01 00 83 80 00 D4 [13:42:21]Write to MH i2c: 01 00 00 84 80 04 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:22]*** Cut start [13:42:22]*** Partial cut [13:42:22]*** CUTSNS_PIN = 1 [13:42:22]*** CUTSNS_PIN = 0 [13:42:22]*** Brake cut motor [13:42:23]Read from MH i2c: 01 [13:42:23]MH_I2C_Read... [13:42:23]*** Stop cut motor [13:42:23]*** Cut end [13:42:23]Read from MH i2c: 01 07 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: 01 07 00 84 80 00 00 00 00 00 FF 0F 19 [13:42:23]process_action close_receipt done [13:42:23]requested_data is exist [13:42:23]produce_requested_data [13:42:23]requested_item fm.sn is exist - process it [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 11 00 00 [13:42:23]Write to MH i2c: E2 08 00 85 80 80 11 00 00 00 00 00 00 7F [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 17 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 17 00 85 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [13:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:42:23]wFMCommunicate OK [13:42:23]requested_item fd.num is exist - process it [13:42:23]SAM_PROTO_GetFieldsCounters [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 13 00 00 [13:42:23]Write to MH i2c: E2 08 00 86 80 80 13 00 00 00 00 00 00 82 [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 62 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 62 00 86 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [13:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:23]wFMCommunicate OK [13:42:23]SAM_PROTO_GetFieldsCounters done [13:42:23]requested_item shift.num is exist - process it [13:42:23]requested_item shift.opened is exist - process it [13:42:23]req_shift_opened [13:42:23]FM_GetShiftState [13:42:23]SAM_PROTO_GetShiftState [13:42:23]wFMCommunicate request_size=4 [13:42:23]MH_SAM_APDU [13:42:23]CAPDU: 80 13 01 00 [13:42:23]Write to MH i2c: E2 08 00 87 80 80 13 01 00 00 00 00 00 84 [13:42:23]Write i2c OK [13:42:23]MH_I2C_Read... [13:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:23]Read from MH i2c: E2 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 0E 00 [13:42:23]MH_I2C_Read... [13:42:23]Read from MH i2c: E2 0E 00 87 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C5 [13:42:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:42:23]wFMCommunicate OK [13:42:23]SAM_PROTO_GetShiftState done [13:42:23]FM_GetShiftState done [13:42:23]req_shift_opened done [13:42:23]requested_item shift.open_date is exist - process it [13:42:23]req_shift_open_date [13:42:23]req_shift_open_date done [13:42:23]produce_requested_data done [13:42:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192192,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:42:23]process_action_free close_receipt [13:42:23]json_value_free [13:42:23]json_value_free done [13:42:23]process_json_proto returns [13:42:23]Send response to host [13:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192192,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:42:23]free response buf [13:42:23]execute_script done [13:42:23]execute_script returns [13:42:23]free content buf [13:42:23]Sock 5.Close socket [13:42:23]Sock 5.Thread stoped [13:43:53]accept exits with 6 [13:43:53]New connection [13:43:53]New thread 3066817892 created [13:43:53]Thread 3066961252 joined [13:43:53]Waiting for new connection... [13:43:53] Sock 6.Parse request [13:43:53]Sock 6.Check first char [13:43:53]Sock 6.First char is OK [13:43:53]request: POST /json_proto HTTP/1.0 [13:43:53]Method: POST [13:43:53]URL: /json_proto [13:43:53]Method is POST - this is cgi request [13:43:53]url: /json_proto [13:43:53]query_string will be loaded in cgi processing [13:43:53]execute_cgi json_proto POST (null) [13:43:53]execute_cgi path=json_proto method=POST [13:43:53]POST find Content-Length [13:43:53]Host: 172.17.63.131:8080 [13:43:53]Content-Length: 678 [13:43:53]Content-Type: application/json [13:43:53] [13:43:53]POST finish read [13:43:53]Found Content-Length = 678 [13:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31506", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:53]execute_script... [13:43: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)31506", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:53]POST & json_proto [13:43:53]process_json_proto [13:43:53]json parsed OK: [13:43:53]protocol is kg_v1.0 [13:43:53]action value=close_receipt [13:43:53]process_action close_receipt [13:43:53]cmd_close_receipt [13:43:53]MH_GetDate [13:43:53]Write to MH i2c: F0 00 00 88 80 F7 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: F0 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: F0 09 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: F0 09 00 88 80 00 AD 43 1E 67 22 05 6E 64 6E [13:43:53]GetLastDocTimeStamp 1730036559 [13:43:53]current date 1730036653 [13:43:53]FM_GetShiftState [13:43:53]SAM_PROTO_GetShiftState [13:43:53]wFMCommunicate request_size=4 [13:43:53]MH_SAM_APDU [13:43:53]CAPDU: 80 13 01 00 [13:43:53]Write to MH i2c: E2 08 00 89 80 80 13 01 00 00 00 00 00 86 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:53]Read from MH i2c: E2 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 0E 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: E2 0E 00 89 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C7 [13:43:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:43:53]wFMCommunicate OK [13:43:53]SAM_PROTO_GetShiftState done [13:43:53]FM_GetShiftState done [13:43:53]opened in 1729989159 [13:43:53]opened+sec_in_day 1730075559 [13:43:53]quantity*price = 200025 [13:43:53]sum+1 = 200026 [13:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 225 27.10.2024 13:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192193 ФПД: 233954921391996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192193&fm=233954921391996&tin=02508201610067®Number=0000000000091776&sum=200000 [13:43:54]StoreToDocumentArchive [13:43:54]shift 542 fd 192193 [13:43:54]save to /storage/0542/doc_00192193 [13:43:54]save last doc name /storage/0542/doc_00192193 to /storage/kkm_last_doc_name [13:43:54]save OK [13:43:54]Clear old archive folders... [13:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:54]tlvbuf is 01CAA900 [13:43:54]SAM_PROTO_ClearQueue [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 09 00 00 [13:43:54]Write to MH i2c: E2 08 00 96 80 80 09 00 00 00 00 00 00 88 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 96 80 00 90 00 8A [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]SAM_PROTO_ClearQueue done [13:43:54]KKMCreateOFDPacket [13:43:54]OFDProtocolAddRootSTLVToBuf [13:43:54]FM_MakeSignedData [13:43:54]FM_MakeSignedData [13:43:54]SAM_PROTO_SignData [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 0D 01 02 [13:43:54]Write to MH i2c: E2 08 00 97 80 80 0D 01 02 00 00 00 00 90 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 97 80 00 90 00 8B [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]wFMCommunicate request_size=255 [13:43:54]MH_SAM_APDU [13:43: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EE 02 00 35 04 06 00 D4 C7 DF FB [13:43:54]Write to MH i2c: E2 02 01 98 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EE 02 00 35 04 06 00 D4 C7 DF FB 00 00 A4 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 98 80 00 90 00 8C [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]wFMCommunicate request_size=7 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 0D 02 02 02 A7 7C [13:43:54]Write to MH i2c: E2 0A 00 99 80 80 0D 02 02 02 00 A7 7C 00 00 BA [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 03 00 99 80 00 90 00 8D [13:43:54]RAPDU: 90 00 [13:43:54]wFMCommunicate OK [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 0D 03 02 [13:43:54]Write to MH i2c: E2 08 00 9A 80 80 0D 03 02 00 00 00 00 95 [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0B 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0B 00 9A 80 00 EC 65 E6 22 B4 11 50 B9 90 00 BD [13:43:55]RAPDU: EC 65 E6 22 B4 11 50 B9 90 00 [13:43:55]wFMCommunicate OK [13:43:55]SAM_PROTO_SignData done [13:43:55]FM_MakeSignedData done [13:43:55]CreateOFDProtocolMessage [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 11 00 00 [13:43:55]Write to MH i2c: E2 08 00 9B 80 80 11 00 00 00 00 00 00 95 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 17 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 17 00 9B 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [13:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:43:55]wFMCommunicate OK [13:43:55]CreateOFDProtocolMessage done [13:43:55]OFDSenderStorePacket 192193 [13:43:55]StoreOFDPacket docnum=192193 [13:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BB BC 04 01 08 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EE 02 00 35 04 06 00 D4 C7 DF FB A7 7C EC 65 E6 22 B4 11 50 B9 [13:43:55]CheckFolder [13:43:55]dirname=/storage/ofd_packets [13:43:55]CheckFolder done [13:43:55]ProducePacketName [13:43:55]name=ofd_packets/00192193 [13:43:55]NVStorageSaveData ofd_packets/00192193 [13:43:55]File name is /storage/ofd_packets/00192193 [13:43:55]Write 298 bytes [13:43:55]NVStorageSaveData done [13:43:55]OFDSenderStorePacket done [13:43:55]KKMCreateOFDPacket done [13:43:55]NVStorageSaveData kkm_last_timestamp [13:43:55]File name is /storage/kkm_last_timestamp [13:43:55]Write 4 bytes [13:43:55]NVStorageSaveData done [13:43:55]ExternCall_PrintAddStr [13:43:55]wPrintStart [13:43:55]Write to MH i2c: 01 00 00 9C 80 1C [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 07 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 07 00 9C 80 00 00 00 00 00 FF 0F 31 [13:43:55]RasterBufferAndPrint [13:43:55]line Счет N : (1)31506 [13:43:55]line ИНН: 02508201610067 [13:43:55]line Контрольно-Кассовый Чек [13:43:55]line ПРОДАЖА [13:43:55]line ТРК (МРК, ГНК) : 11 [13:43:55]line Товар: 2710194210 [13:43:55]line ДТ-К-5 [13:43:55]line 26.250 * 76.20 [13:43:55]line = 2000.25 [13:43:55]line НДС 12% НСП 1% [13:43:55]line > о реализуемом товаре [13:43:55]line ОКРУГЛЕНИЕ: -0.25 [13:43:55]line ИТОГО: 2000.00 [13:43:55]line Внесено: 2000.00 [13:43:55]line СДАЧА: 0.00 [13:43:55]line НСП 1% : 17.70 [13:43:55]line НДС 12% : 212.42 [13:43:55]line Наличными: 2000.00 [13:43:55]line Безнал.: 0.00 [13:43:55]line Место: АЗС № 170 "Партнер Нефть" [13:43:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:43:55]line СНО: Общий режим [13:43:55]line Чек 225 27.10.2024 13:44 [13:43:55]line Смена: 542 ФФД: 1.0 [13:43:55]line ЗНМ: 0300000110 [13:43:55]line РНМ: 0000000000091776 [13:43:55]line Версия ККМ: 001 [13:43:55]line ФМ: 0000000000871754 [13:43:55]line ФД: 192193 [13:43:55]line ФПД: 233954921391996 [13:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192193&fm=233954921391996&tin=02508201610067®Number=0000000000091776&sum=200000 [13:43:55]written 0, free lines is 4095 [13:43:55]Write to MH i2c: 01 00 00 C7 80 47 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 07 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: 01 07 00 C7 80 00 00 00 00 00 A8 0C 02 [13:43:55]RasterBufferAndPrint [13:43:55]line [13:43:55]line [13:43:55]line [13:43:55]line [13:43:55]line [13:43:55]written 0, free lines is 3245 [13:43:55]MH_Cut [13:43:55]Write to MH i2c: D1 01 00 CE 80 01 20 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: D1 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: D1 01 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: D1 01 00 CE 80 00 1F [13:43:55]Write to MH i2c: 01 00 00 CF 80 4F [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:56]*** Cut start [13:43:56]*** Partial cut [13:43:56]*** CUTSNS_PIN = 1 [13:43:56]*** CUTSNS_PIN = 0 [13:43:57]*** Brake cut motor [13:43:57]Read from MH i2c: 01 [13:43:57]MH_I2C_Read... [13:43:57]*** Stop cut motor [13:43:57]*** Cut end [13:43:57]Read from MH i2c: 01 07 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 CF 80 00 00 00 00 00 FF 0F 64 [13:43:57]process_action close_receipt done [13:43:57]requested_data is exist [13:43:57]produce_requested_data [13:43:57]requested_item fm.sn is exist - process it [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 11 00 00 [13:43:57]Write to MH i2c: E2 08 00 D0 80 80 11 00 00 00 00 00 00 CA [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 D0 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [13:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:43:57]wFMCommunicate OK [13:43:57]requested_item fd.num is exist - process it [13:43:57]SAM_PROTO_GetFieldsCounters [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 13 00 00 [13:43:57]Write to MH i2c: E2 08 00 D1 80 80 13 00 00 00 00 00 00 CD [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 62 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 62 00 D1 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [13:43:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:57]wFMCommunicate OK [13:43:57]SAM_PROTO_GetFieldsCounters done [13:43:57]requested_item shift.num is exist - process it [13:43:57]requested_item shift.opened is exist - process it [13:43:57]req_shift_opened [13:43:57]FM_GetShiftState [13:43:57]SAM_PROTO_GetShiftState [13:43:57]wFMCommunicate request_size=4 [13:43:57]MH_SAM_APDU [13:43:57]CAPDU: 80 13 01 00 [13:43:57]Write to MH i2c: E2 08 00 D2 80 80 13 01 00 00 00 00 00 CF [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:57]Read from MH i2c: E2 0E 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 0E 00 D2 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 10 [13:43:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:43:57]wFMCommunicate OK [13:43:57]SAM_PROTO_GetShiftState done [13:43:57]FM_GetShiftState done [13:43:57]req_shift_opened done [13:43:57]requested_item shift.open_date is exist - process it [13:43:57]req_shift_open_date [13:43:57]req_shift_open_date done [13:43:57]produce_requested_data done [13:43:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192193,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:43:57]process_action_free close_receipt [13:43:57]json_value_free [13:43:57]json_value_free done [13:43:57]process_json_proto returns [13:43:57]Send response to host [13:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192193,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:43:57]free response buf [13:43:57]execute_script done [13:43:57]execute_script returns [13:43:57]free content buf [13:43:57]Sock 6.Close socket [13:43:57]Sock 6.Thread stoped [13:43:58]accept exits with 5 [13:43:58]New connection [13:43:58]New thread 3066961252 created [13:43:58]Thread 3066817892 joined [13:43:58]Waiting for new connection... [13:43:58] Sock 5.Parse request [13:43:58]Sock 5.Check first char [13:43:58]Sock 5.First char is OK [13:43:58]request: POST /json_proto HTTP/1.0 [13:43:58]Method: POST [13:43:58]URL: /json_proto [13:43:58]Method is POST - this is cgi request [13:43:58]url: /json_proto [13:43:58]query_string will be loaded in cgi processing [13:43:58]execute_cgi json_proto POST (null) [13:43:58]execute_cgi path=json_proto method=POST [13:43:58]POST find Content-Length [13:43:58]Host: 172.17.63.131:8080 [13:43:58]Content-Length: 681 [13:43:58]Content-Type: application/json [13:43:58] [13:43:58]POST finish read [13:43:58]Found Content-Length = 681 [13:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:58]execute_script... [13:43:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:58]POST & json_proto [13:43:58]process_json_proto [13:43:58]json parsed OK: [13:43:58]protocol is kg_v1.0 [13:43:58]action value=close_receipt [13:43:58]process_action close_receipt [13:43:58]cmd_close_receipt [13:43:58]MH_GetDate [13:43:58]Write to MH i2c: F0 00 00 D3 80 42 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 09 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 09 00 D3 80 00 B2 43 1E 67 22 05 6E 64 BE [13:43:58]GetLastDocTimeStamp 1730036653 [13:43:58]current date 1730036658 [13:43:58]FM_GetShiftState [13:43:58]SAM_PROTO_GetShiftState [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 13 01 00 [13:43:58]Write to MH i2c: E2 08 00 D4 80 80 13 01 00 00 00 00 00 D1 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:58]Read from MH i2c: E2 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 D4 80 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 12 [13:43:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:43:58]wFMCommunicate OK [13:43:58]SAM_PROTO_GetShiftState done [13:43:58]FM_GetShiftState done [13:43:58]opened in 1729989159 [13:43:58]opened+sec_in_day 1730075559 [13:43:58]quantity*price = 100015 [13:43:58]sum+1 = 100017 [13:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 226 27.10.2024 13:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192194 ФПД: 235053201418242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134418&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192194&fm=235053201418242&tin=02508201610067®Number=0000000000091776&sum=100000 [13:43:59]StoreToDocumentArchive [13:43:59]shift 542 fd 192194 [13:43:59]save to /storage/0542/doc_00192194 [13:43:59]save last doc name /storage/0542/doc_00192194 to /storage/kkm_last_doc_name [13:43:59]save OK [13:43:59]Clear old archive folders... [13:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:59]tlvbuf is 019926D0 [13:43:59]SAM_PROTO_ClearQueue [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 09 00 00 [13:43:59]Write to MH i2c: E2 08 00 E1 80 80 09 00 00 00 00 00 00 D3 [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 E1 80 00 90 00 D5 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]SAM_PROTO_ClearQueue done [13:43:59]KKMCreateOFDPacket [13:43:59]OFDProtocolAddRootSTLVToBuf [13:43:59]FM_MakeSignedData [13:43:59]FM_MakeSignedData [13:43:59]SAM_PROTO_SignData [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 01 02 [13:43:59]Write to MH i2c: E2 08 00 E2 80 80 0D 01 02 00 00 00 00 DB [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 E2 80 00 90 00 D6 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]wFMCommunicate request_size=255 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B2 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EE 02 00 35 04 06 00 D5 [13:43:59]Write to MH i2c: E2 02 01 E3 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B2 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EE 02 00 35 04 06 00 D5 00 00 6C [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 E3 80 00 90 00 D7 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]wFMCommunicate request_size=10 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 02 02 05 C7 96 92 E8 02 [13:43:59]Write to MH i2c: E2 0D 00 E4 80 80 0D 02 02 05 00 C7 96 92 E8 02 00 00 C1 [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 E4 80 00 90 00 D8 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 03 02 [13:43:59]Write to MH i2c: E2 08 00 E5 80 80 0D 03 02 00 00 00 00 E0 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 E5 80 00 8E F1 4D 7D 33 D9 F2 BE 90 00 E6 [13:44:00]RAPDU: 8E F1 4D 7D 33 D9 F2 BE 90 00 [13:44:00]wFMCommunicate OK [13:44:00]SAM_PROTO_SignData done [13:44:00]FM_MakeSignedData done [13:44:00]CreateOFDProtocolMessage [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 11 00 00 [13:44:00]Write to MH i2c: E2 08 00 E6 80 80 11 00 00 00 00 00 00 E0 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 E6 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [13:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:00]wFMCommunicate OK [13:44:00]CreateOFDProtocolMessage done [13:44:00]OFDSenderStorePacket 192194 [13:44:00]StoreOFDPacket docnum=192194 [13:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE F1 07 01 8B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EE 02 00 35 04 06 00 D5 C7 96 92 E8 02 8E F1 4D 7D 33 D9 F2 BE [13:44:00]CheckFolder [13:44:00]dirname=/storage/ofd_packets [13:44:00]CheckFolder done [13:44:00]ProducePacketName [13:44:00]name=ofd_packets/00192194 [13:44:00]NVStorageSaveData ofd_packets/00192194 [13:44:00]File name is /storage/ofd_packets/00192194 [13:44:00]Write 301 bytes [13:44:00]NVStorageSaveData done [13:44:00]OFDSenderStorePacket done [13:44:00]KKMCreateOFDPacket done [13:44:00]NVStorageSaveData kkm_last_timestamp [13:44:00]File name is /storage/kkm_last_timestamp [13:44:00]Write 4 bytes [13:44:00]NVStorageSaveData done [13:44:00]ExternCall_PrintAddStr [13:44:00]wPrintStart [13:44:00]Write to MH i2c: 01 00 00 E7 80 67 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 E7 80 00 00 00 00 00 FF 0F 7C [13:44:00]RasterBufferAndPrint [13:44:00]line Счет N : (1)31507 [13:44:00]line ИНН: 02508201610067 [13:44:00]line Контрольно-Кассовый Чек [13:44:00]line ПРОДАЖА [13:44:00]line ТРК (МРК, ГНК) : 21 [13:44:00]line Товар: 2710124130 [13:44:00]line Аи-92-К-5 [13:44:00]line 14.950 * 66.90 [13:44:00]line = 1000.16 [13:44:00]line НДС 12% НСП 1% [13:44:00]line > о реализуемом товаре [13:44:00]line ОКРУГЛЕНИЕ: -0.16 [13:44:00]line ИТОГО: 1000.00 [13:44:00]line Внесено: 1000.00 [13:44:00]line СДАЧА: 0.00 [13:44:00]line НСП 1% : 8.85 [13:44:00]line НДС 12% : 106.21 [13:44:00]line Наличными: 1000.00 [13:44:00]line Безнал.: 0.00 [13:44:00]line Место: АЗС № 170 "Партнер Нефть" [13:44:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:44:00]line СНО: Общий режим [13:44:00]line Чек 226 27.10.2024 13:44 [13:44:00]line Смена: 542 ФФД: 1.0 [13:44:00]line ЗНМ: 0300000110 [13:44:00]line РНМ: 0000000000091776 [13:44:00]line Версия ККМ: 001 [13:44:00]line ФМ: 0000000000871754 [13:44:00]line ФД: 192194 [13:44:00]line ФПД: 235053201418242 [13:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134418&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192194&fm=235053201418242&tin=02508201610067®Number=0000000000091776&sum=100000 [13:44:00]written 0, free lines is 4095 [13:44:00]Write to MH i2c: 01 00 00 12 81 93 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 12 81 00 00 00 00 00 AB 0C 51 [13:44:00]RasterBufferAndPrint [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]written 0, free lines is 3254 [13:44:00]MH_Cut [13:44:00]Write to MH i2c: D1 01 00 19 81 01 6C [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: D1 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: D1 01 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: D1 01 00 19 81 00 6B [13:44:00]Write to MH i2c: 01 00 00 1A 81 9B [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:01]*** Cut start [13:44:01]*** Partial cut [13:44:01]*** CUTSNS_PIN = 1 [13:44:01]*** CUTSNS_PIN = 0 [13:44:01]*** Brake cut motor [13:44:02]Read from MH i2c: 01 [13:44:02]MH_I2C_Read... [13:44:02]*** Stop cut motor [13:44:02]*** Cut end [13:44:02]Read from MH i2c: 01 07 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: 01 07 00 1A 81 00 00 00 00 00 FF 0F B0 [13:44:02]process_action close_receipt done [13:44:02]requested_data is exist [13:44:02]produce_requested_data [13:44:02]requested_item fm.sn is exist - process it [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 11 00 00 [13:44:02]Write to MH i2c: E2 08 00 1B 81 80 11 00 00 00 00 00 00 16 [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 17 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 17 00 1B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [13:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:02]wFMCommunicate OK [13:44:02]requested_item fd.num is exist - process it [13:44:02]SAM_PROTO_GetFieldsCounters [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 13 00 00 [13:44:02]Write to MH i2c: E2 08 00 1C 81 80 13 00 00 00 00 00 00 19 [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 62 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 62 00 1C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [13:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:02]wFMCommunicate OK [13:44:02]SAM_PROTO_GetFieldsCounters done [13:44:02]requested_item shift.num is exist - process it [13:44:02]requested_item shift.opened is exist - process it [13:44:02]req_shift_opened [13:44:02]FM_GetShiftState [13:44:02]SAM_PROTO_GetShiftState [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 13 01 00 [13:44:02]Write to MH i2c: E2 08 00 1D 81 80 13 01 00 00 00 00 00 1B [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 0E 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 0E 00 1D 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5C [13:44:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:44:02]wFMCommunicate OK [13:44:02]SAM_PROTO_GetShiftState done [13:44:02]FM_GetShiftState done [13:44:02]req_shift_opened done [13:44:02]requested_item shift.open_date is exist - process it [13:44:02]req_shift_open_date [13:44:02]req_shift_open_date done [13:44:02]produce_requested_data done [13:44:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192194,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:44:02]process_action_free close_receipt [13:44:02]json_value_free [13:44:02]json_value_free done [13:44:02]process_json_proto returns [13:44:02]Send response to host [13:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192194,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:44:02]free response buf [13:44:02]execute_script done [13:44:02]execute_script returns [13:44:02]free content buf [13:44:02]Sock 5.Close socket [13:44:02]Sock 5.Thread stoped [13:44:25]accept exits with 6 [13:44:25]New connection [13:44:25]New thread 3066817892 created [13:44:25]Thread 3066961252 joined [13:44:25]Waiting for new connection... [13:44:25] Sock 6.Parse request [13:44:25]Sock 6.Check first char [13:44:25]Sock 6.First char is OK [13:44:25]request: POST /json_proto HTTP/1.0 [13:44:25]Method: POST [13:44:25]URL: /json_proto [13:44:25]Method is POST - this is cgi request [13:44:25]url: /json_proto [13:44:25]query_string will be loaded in cgi processing [13:44:25]execute_cgi json_proto POST (null) [13:44:25]execute_cgi path=json_proto method=POST [13:44:25]POST find Content-Length [13:44:25]Host: 172.17.63.131:8080 [13:44:25]Content-Length: 676 [13:44:25]Content-Type: application/json [13:44:25] [13:44:25]POST finish read [13:44:25]Found Content-Length = 676 [13:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:25]execute_script... [13:44: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)31508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:25]POST & json_proto [13:44:25]process_json_proto [13:44:25]json parsed OK: [13:44:25]protocol is kg_v1.0 [13:44:25]action value=close_receipt [13:44:25]process_action close_receipt [13:44:25]cmd_close_receipt [13:44:25]MH_GetDate [13:44:25]Write to MH i2c: F0 00 00 1E 81 8E [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: F0 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: F0 09 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: F0 09 00 1E 81 00 CD 43 1E 67 22 05 6E 64 25 [13:44:25]GetLastDocTimeStamp 1730036658 [13:44:25]current date 1730036685 [13:44:25]FM_GetShiftState [13:44:25]SAM_PROTO_GetShiftState [13:44:25]wFMCommunicate request_size=4 [13:44:25]MH_SAM_APDU [13:44:25]CAPDU: 80 13 01 00 [13:44:25]Write to MH i2c: E2 08 00 1F 81 80 13 01 00 00 00 00 00 1D [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:25]Read from MH i2c: E2 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 0E 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 0E 00 1F 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5E [13:44:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:44:25]wFMCommunicate OK [13:44:25]SAM_PROTO_GetShiftState done [13:44:25]FM_GetShiftState done [13:44:25]opened in 1729989159 [13:44:25]opened+sec_in_day 1730075559 [13:44:25]quantity*price = 28031 [13:44:25]sum+1 = 28032 [13:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 227 27.10.2024 13:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192195 ФПД: 241507645066574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134445&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192195&fm=241507645066574&tin=02508201610067®Number=0000000000091776&sum=28000 [13:44:26]StoreToDocumentArchive [13:44:26]shift 542 fd 192195 [13:44:26]save to /storage/0542/doc_00192195 [13:44:26]save last doc name /storage/0542/doc_00192195 to /storage/kkm_last_doc_name [13:44:26]save OK [13:44:26]Clear old archive folders... [13:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:26]tlvbuf is 01B8A150 [13:44:26]SAM_PROTO_ClearQueue [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 09 00 00 [13:44:26]Write to MH i2c: E2 08 00 2C 81 80 09 00 00 00 00 00 00 1F [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 2C 81 00 90 00 21 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]SAM_PROTO_ClearQueue done [13:44:26]KKMCreateOFDPacket [13:44:26]OFDProtocolAddRootSTLVToBuf [13:44:26]FM_MakeSignedData [13:44:26]FM_MakeSignedData [13:44:26]SAM_PROTO_SignData [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 01 02 [13:44:26]Write to MH i2c: E2 08 00 2D 81 80 0D 01 02 00 00 00 00 27 [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 2D 81 00 90 00 22 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]wFMCommunicate request_size=255 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EE 02 00 35 04 06 00 DB [13:44:26]Write to MH i2c: E2 02 01 2E 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EE 02 00 35 04 06 00 DB 00 00 30 [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 2E 81 00 90 00 23 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]wFMCommunicate request_size=10 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 02 02 05 A6 61 65 0D 4E [13:44:26]Write to MH i2c: E2 0D 00 2F 81 80 0D 02 02 05 00 A6 61 65 0D 4E 00 00 FB [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 2F 81 00 90 00 24 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 03 02 [13:44:26]Write to MH i2c: E2 08 00 30 81 80 0D 03 02 00 00 00 00 2C [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0B 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0B 00 30 81 00 87 8D E1 31 9D BA D3 AA 90 00 27 [13:44:26]RAPDU: 87 8D E1 31 9D BA D3 AA 90 00 [13:44:26]wFMCommunicate OK [13:44:26]SAM_PROTO_SignData done [13:44:26]FM_MakeSignedData done [13:44:26]CreateOFDProtocolMessage [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 11 00 00 [13:44:26]Write to MH i2c: E2 08 00 31 81 80 11 00 00 00 00 00 00 2C [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:27]Read from MH i2c: E2 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 17 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 17 00 31 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [13:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:27]wFMCommunicate OK [13:44:27]CreateOFDProtocolMessage done [13:44:27]OFDSenderStorePacket 192195 [13:44:27]StoreOFDPacket docnum=192195 [13:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 5A 07 01 E8 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EE 02 00 35 04 06 00 DB A6 61 65 0D 4E 87 8D E1 31 9D BA D3 AA [13:44:27]CheckFolder [13:44:27]dirname=/storage/ofd_packets [13:44:27]CheckFolder done [13:44:27]ProducePacketName [13:44:27]name=ofd_packets/00192195 [13:44:27]NVStorageSaveData ofd_packets/00192195 [13:44:27]File name is /storage/ofd_packets/00192195 [13:44:27]Write 301 bytes [13:44:27]NVStorageSaveData done [13:44:27]OFDSenderStorePacket done [13:44:27]KKMCreateOFDPacket done [13:44:27]NVStorageSaveData kkm_last_timestamp [13:44:27]File name is /storage/kkm_last_timestamp [13:44:27]Write 4 bytes [13:44:27]NVStorageSaveData done [13:44:27]ExternCall_PrintAddStr [13:44:27]wPrintStart [13:44:27]Write to MH i2c: 01 00 00 32 81 B3 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 07 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 07 00 32 81 00 00 00 00 00 FF 0F C8 [13:44:27]RasterBufferAndPrint [13:44:27]line Счет N : (1)31508 [13:44:27]line ИНН: 02508201610067 [13:44:27]line Контрольно-Кассовый Чек [13:44:27]line ПРОДАЖА [13:44:27]line ТРК (МРК, ГНК) : 12 [13:44:27]line Товар: 2710124130 [13:44:27]line Аи-92-К-5 [13:44:27]line 4.190 * 66.90 [13:44:27]line = 280.31 [13:44:27]line НДС 12% НСП 1% [13:44:27]line > о реализуемом товаре [13:44:27]line ОКРУГЛЕНИЕ: -0.31 [13:44:27]line ИТОГО: 280.00 [13:44:27]line Внесено: 280.00 [13:44:27]line СДАЧА: 0.00 [13:44:27]line НСП 1% : 2.48 [13:44:27]line НДС 12% : 29.77 [13:44:27]line Наличными: 280.00 [13:44:27]line Безнал.: 0.00 [13:44:27]line Место: АЗС № 170 "Партнер Нефть" [13:44:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:44:27]line СНО: Общий режим [13:44:27]line Чек 227 27.10.2024 13:44 [13:44:27]line Смена: 542 ФФД: 1.0 [13:44:27]line ЗНМ: 0300000110 [13:44:27]line РНМ: 0000000000091776 [13:44:27]line Версия ККМ: 001 [13:44:27]line ФМ: 0000000000871754 [13:44:27]line ФД: 192195 [13:44:27]line ФПД: 241507645066574 [13:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134445&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192195&fm=241507645066574&tin=02508201610067®Number=0000000000091776&sum=28000 [13:44:27]written 0, free lines is 4095 [13:44:27]Write to MH i2c: 01 00 00 5D 81 DE [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 07 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: 01 07 00 5D 81 00 00 00 00 00 AE 0C 9F [13:44:27]RasterBufferAndPrint [13:44:27]line [13:44:27]line [13:44:27]line [13:44:27]line [13:44:27]line [13:44:27]written 0, free lines is 3252 [13:44:27]MH_Cut [13:44:27]Write to MH i2c: D1 01 00 64 81 01 B7 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: D1 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: D1 01 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: D1 01 00 64 81 00 B6 [13:44:27]Write to MH i2c: 01 00 00 65 81 E6 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]ConnectInit Can't connect to host [13:44:27]CommunicateWithHost connect error [13:44:27]CommunicateWithHost err = -1 [13:44:27]OFD Sender: Server communicate error [13:44:28]OFD Sender: Processing packet 192191 [packets to send 79, broken 74] [13:44:28]ProducePacketName [13:44:28]name=ofd_packets/00192191 [13:44:28]OFD Sender: To server: pG, [13:44:28]CommunicateWithHost lk.salyk.kg:30040 [13:44:28]ConnectInit lk.salyk.kg [13:44:28]Connected sock=8 [13:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 0C 07 01 55 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4A 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EE 02 00 35 04 06 00 07 36 AE F0 A2 22 60 89 D8 45 08 4F 2F 33 [13:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CE EE 47 00 6A 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EE 02 00 F4 03 04 00 95 E8 1D 67 B6 04 01 00 00 6F 8D 31 D9 7B F5 1C BA [13:44:28]CommunicateWithHost err = 0 [13:44:28]CheckOFDResponse [13:44:28]1017 (14) - 77093643461234 [13:44:28]1041 (16) - 0000000000871754 [13:44:28]1040 (4) - 192191 [13:44:28]1012 (4) - 27.10.2024 07:15 [13:44:28]1206 (1) - 0 [13:44:28]OFD Sender: Remove packet 192191 [13:44:28]ProducePacketName [13:44:28]name=ofd_packets/00192191 [13:44:28]NVStorageDeleteData [13:44:28]*** Cut start [13:44:28]*** Partial cut [13:44:28]*** CUTSNS_PIN = 1 [13:44:28]*** CUTSNS_PIN = 0 [13:44:28]OFD Sender: Processing packet 192192 [packets to send 78, broken 74] [13:44:28]ProducePacketName [13:44:28]name=ofd_packets/00192192 [13:44:28]OFD Sender: To server: pG, [13:44:28]CommunicateWithHost lk.salyk.kg:30040 [13:44:28]ConnectInit lk.salyk.kg [13:44:28]Connected sock=8 [13:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB F5 07 01 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 4F 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EE 02 00 35 04 06 00 B0 6D A8 C9 DC CF 3D 2A 25 F1 C7 C8 FE 4F [13:44:28]*** Brake cut motor [13:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3C 6B 47 00 B4 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EE 02 00 F4 03 04 00 96 E8 1D 67 B6 04 01 00 00 F0 02 65 15 48 40 6C D5 [13:44:29]CommunicateWithHost err = 0 [13:44:29]CheckOFDResponse [13:44:29]1017 (14) - 77093643461234 [13:44:29]1041 (16) - 0000000000871754 [13:44:29]1040 (4) - 192192 [13:44:29]1012 (4) - 27.10.2024 07:15 [13:44:29]1206 (1) - 0 [13:44:29]OFD Sender: Remove packet 192192 [13:44:29]ProducePacketName [13:44:29]name=ofd_packets/00192192 [13:44:29]NVStorageDeleteData [13:44:29]Read from MH i2c: 01 [13:44:29]MH_I2C_Read... [13:44:29]*** Stop cut motor [13:44:29]*** Cut end [13:44:29]Read from MH i2c: 01 07 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: 01 07 00 65 81 00 00 00 00 00 FF 0F FB [13:44:29]process_action close_receipt done [13:44:29]requested_data is exist [13:44:29]produce_requested_data [13:44:29]requested_item fm.sn is exist - process it [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 11 00 00 [13:44:29]Write to MH i2c: E2 08 00 66 81 80 11 00 00 00 00 00 00 61 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 17 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 17 00 66 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [13:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:29]wFMCommunicate OK [13:44:29]requested_item fd.num is exist - process it [13:44:29]SAM_PROTO_GetFieldsCounters [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 13 00 00 [13:44:29]Write to MH i2c: E2 08 00 67 81 80 13 00 00 00 00 00 00 64 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 62 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 62 00 67 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [13:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:29]wFMCommunicate OK [13:44:29]SAM_PROTO_GetFieldsCounters done [13:44:29]requested_item shift.num is exist - process it [13:44:29]requested_item shift.opened is exist - process it [13:44:29]req_shift_opened [13:44:29]FM_GetShiftState [13:44:29]SAM_PROTO_GetShiftState [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 13 01 00 [13:44:29]Write to MH i2c: E2 08 00 68 81 80 13 01 00 00 00 00 00 66 [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0E 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0E 00 68 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A7 [13:44:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:44:29]wFMCommunicate OK [13:44:29]SAM_PROTO_GetShiftState done [13:44:29]FM_GetShiftState done [13:44:29]req_shift_opened done [13:44:29]requested_item shift.open_date is exist - process it [13:44:29]req_shift_open_date [13:44:29]req_shift_open_date done [13:44:29]produce_requested_data done [13:44:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192195,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:44:29]process_action_free close_receipt [13:44:29]json_value_free [13:44:29]json_value_free done [13:44:29]process_json_proto returns [13:44:29]Send response to host [13:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192195,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:44:29]free response buf [13:44:29]execute_script done [13:44:29]execute_script returns [13:44:29]free content buf [13:44:29]Sock 6.Close socket [13:44:29]Sock 6.Thread stoped [13:44:29]OFD Sender: Processing packet 192193 [packets to send 77, broken 74] [13:44:29]ProducePacketName [13:44:29]name=ofd_packets/00192193 [13:44:29]OFD Sender: To server: pG, [13:44:29]CommunicateWithHost lk.salyk.kg:30040 [13:44:29]ConnectInit lk.salyk.kg [13:44:29]Connected sock=6 [13:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BB BC 04 01 08 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EE 02 00 35 04 06 00 D4 C7 DF FB A7 7C EC 65 E6 22 B4 11 50 B9 [13:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AA 98 47 00 29 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EE 02 00 F4 03 04 00 97 E8 1D 67 B6 04 01 00 00 1A 46 6C 4D C3 AC A5 7D [13:44:30]CommunicateWithHost err = 0 [13:44:30]CheckOFDResponse [13:44:30]1017 (14) - 77093643461234 [13:44:30]1041 (16) - 0000000000871754 [13:44:30]1040 (4) - 192193 [13:44:30]1012 (4) - 27.10.2024 07:15 [13:44:30]1206 (1) - 0 [13:44:30]OFD Sender: Remove packet 192193 [13:44:30]ProducePacketName [13:44:30]name=ofd_packets/00192193 [13:44:30]NVStorageDeleteData [13:44:30]OFD Sender: Processing packet 192194 [packets to send 76, broken 74] [13:44:30]ProducePacketName [13:44:30]name=ofd_packets/00192194 [13:44:30]OFD Sender: To server: pG, [13:44:30]CommunicateWithHost lk.salyk.kg:30040 [13:44:30]ConnectInit lk.salyk.kg [13:44:30]Connected sock=6 [13:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE F1 07 01 8B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EE 02 00 35 04 06 00 D5 C7 96 92 E8 02 8E F1 4D 7D 33 D9 F2 BE [13:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 52 1E 47 00 DA AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EE 02 00 F4 03 04 00 98 E8 1D 67 B6 04 01 00 00 59 1E FD 1F FA E5 FF BC [13:44:30]CommunicateWithHost err = 0 [13:44:30]CheckOFDResponse [13:44:30]1017 (14) - 77093643461234 [13:44:30]1041 (16) - 0000000000871754 [13:44:30]1040 (4) - 192194 [13:44:30]1012 (4) - 27.10.2024 07:15 [13:44:30]1206 (1) - 0 [13:44:30]OFD Sender: Remove packet 192194 [13:44:30]ProducePacketName [13:44:30]name=ofd_packets/00192194 [13:44:30]NVStorageDeleteData [13:44:31]OFD Sender: Processing packet 192195 [packets to send 75, broken 74] [13:44:31]ProducePacketName [13:44:31]name=ofd_packets/00192195 [13:44:31]OFD Sender: To server: pG, [13:44:31]CommunicateWithHost lk.salyk.kg:30040 [13:44:31]ConnectInit lk.salyk.kg [13:44:31]Connected sock=6 [13:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 5A 07 01 E8 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 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 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CD 43 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EE 02 00 35 04 06 00 DB A6 61 65 0D 4E 87 8D E1 31 9D BA D3 AA [13:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 7A 47 00 78 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EE 02 00 F4 03 04 00 99 E8 1D 67 B6 04 01 00 00 A6 4C CE EC 82 4C 24 DB [13:44:31]CommunicateWithHost err = 0 [13:44:31]CheckOFDResponse [13:44:31]1017 (14) - 77093643461234 [13:44:31]1041 (16) - 0000000000871754 [13:44:31]1040 (4) - 192195 [13:44:31]1012 (4) - 27.10.2024 07:15 [13:44:31]1206 (1) - 0 [13:44:31]OFD Sender: Remove packet 192195 [13:44:31]ProducePacketName [13:44:31]name=ofd_packets/00192195 [13:44:31]NVStorageDeleteData [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:43]accept exits with 5 [13:45:43]New connection [13:45:43]New thread 3066961252 created [13:45:43]Thread 3066817892 joined [13:45:43]Waiting for new connection... [13:45:43] Sock 5.Parse request [13:45:43]Sock 5.Check first char [13:45:43]Sock 5.First char is OK [13:45:43]request: POST /json_proto HTTP/1.0 [13:45:43]Method: POST [13:45:43]URL: /json_proto [13:45:43]Method is POST - this is cgi request [13:45:43]url: /json_proto [13:45:43]query_string will be loaded in cgi processing [13:45:43]execute_cgi json_proto POST (null) [13:45:43]execute_cgi path=json_proto method=POST [13:45:43]POST find Content-Length [13:45:43]Host: 172.17.63.131:8080 [13:45:43]Content-Length: 676 [13:45:43]Content-Type: application/json [13:45:43] [13:45:43]POST finish read [13:45:43]Found Content-Length = 676 [13:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:43]execute_script... [13:45: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)31509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:43]POST & json_proto [13:45:43]process_json_proto [13:45:43]json parsed OK: [13:45:43]protocol is kg_v1.0 [13:45:43]action value=close_receipt [13:45:43]process_action close_receipt [13:45:43]cmd_close_receipt [13:45:43]MH_GetDate [13:45:43]Write to MH i2c: F0 00 00 69 81 D9 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 09 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: F0 09 00 69 81 00 1C 44 1E 67 22 05 6E 64 C0 [13:45:43]GetLastDocTimeStamp 1730036685 [13:45:43]current date 1730036764 [13:45:43]FM_GetShiftState [13:45:43]SAM_PROTO_GetShiftState [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 13 01 00 [13:45:43]Write to MH i2c: E2 08 00 6A 81 80 13 01 00 00 00 00 00 68 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 6A 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A9 [13:45:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:45:43]wFMCommunicate OK [13:45:43]SAM_PROTO_GetShiftState done [13:45:43]FM_GetShiftState done [13:45:43]opened in 1729989159 [13:45:43]opened+sec_in_day 1730075559 [13:45:43]quantity*price = 50041 [13:45:43]sum+1 = 50042 [13:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 228 27.10.2024 13:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192196 ФПД: 88520732352464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192196&fm=88520732352464&tin=02508201610067®Number=0000000000091776&sum=50000 [13:45:45]StoreToDocumentArchive [13:45:45]shift 542 fd 192196 [13:45:45]save to /storage/0542/doc_00192196 [13:45:45]save last doc name /storage/0542/doc_00192196 to /storage/kkm_last_doc_name [13:45:45]save OK [13:45:45]Clear old archive folders... [13:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:45]tlvbuf is 01960CF0 [13:45:45]SAM_PROTO_ClearQueue [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 09 00 00 [13:45:45]Write to MH i2c: E2 08 00 77 81 80 09 00 00 00 00 00 00 6A [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 77 81 00 90 00 6C [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]SAM_PROTO_ClearQueue done [13:45:45]KKMCreateOFDPacket [13:45:45]OFDProtocolAddRootSTLVToBuf [13:45:45]FM_MakeSignedData [13:45:45]FM_MakeSignedData [13:45:45]SAM_PROTO_SignData [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 01 02 [13:45:45]Write to MH i2c: E2 08 00 78 81 80 0D 01 02 00 00 00 00 72 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 78 81 00 90 00 6D [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=255 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EE 02 00 35 04 06 00 50 [13:45:45]Write to MH i2c: E2 02 01 79 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EE 02 00 35 04 06 00 50 00 00 F3 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 79 81 00 90 00 6E [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=10 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 02 02 05 82 56 CE 9F D0 [13:45:45]Write to MH i2c: E2 0D 00 7A 81 80 0D 02 02 05 00 82 56 CE 9F D0 00 00 94 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 7A 81 00 90 00 6F [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 03 02 [13:45:45]Write to MH i2c: E2 08 00 7B 81 80 0D 03 02 00 00 00 00 77 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 7B 81 00 3C D8 0A 0B 34 29 B0 BD 90 00 6B [13:45:45]RAPDU: 3C D8 0A 0B 34 29 B0 BD 90 00 [13:45:45]wFMCommunicate OK [13:45:45]SAM_PROTO_SignData done [13:45:45]FM_MakeSignedData done [13:45:45]CreateOFDProtocolMessage [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 11 00 00 [13:45:45]Write to MH i2c: E2 08 00 7C 81 80 11 00 00 00 00 00 00 77 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 7C 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [13:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:45]wFMCommunicate OK [13:45:45]CreateOFDProtocolMessage done [13:45:45]OFDSenderStorePacket 192196 [13:45:45]StoreOFDPacket docnum=192196 [13:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 E5 07 01 B0 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EE 02 00 35 04 06 00 50 82 56 CE 9F D0 3C D8 0A 0B 34 29 B0 BD [13:45:45]CheckFolder [13:45:45]dirname=/storage/ofd_packets [13:45:45]CheckFolder done [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00192196 [13:45:45]NVStorageSaveData ofd_packets/00192196 [13:45:45]File name is /storage/ofd_packets/00192196 [13:45:45]Write 301 bytes [13:45:45]NVStorageSaveData done [13:45:45]OFDSenderStorePacket done [13:45:45]KKMCreateOFDPacket done [13:45:45]NVStorageSaveData kkm_last_timestamp [13:45:45]File name is /storage/kkm_last_timestamp [13:45:45]Write 4 bytes [13:45:45]NVStorageSaveData done [13:45:45]ExternCall_PrintAddStr [13:45:45]wPrintStart [13:45:45]Write to MH i2c: 01 00 00 7D 81 FE [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 7D 81 00 00 00 00 00 FF 0F 13 [13:45:45]RasterBufferAndPrint [13:45:45]line Счет N : (1)31509 [13:45:45]line ИНН: 02508201610067 [13:45:45]line Контрольно-Кассовый Чек [13:45:45]line ПРОДАЖА [13:45:45]line ТРК (МРК, ГНК) : 12 [13:45:45]line Товар: 2710124130 [13:45:45]line Аи-92-К-5 [13:45:45]line 7.480 * 66.90 [13:45:45]line = 500.41 [13:45:45]line НДС 12% НСП 1% [13:45:45]line > о реализуемом товаре [13:45:45]line ОКРУГЛЕНИЕ: -0.41 [13:45:45]line ИТОГО: 500.00 [13:45:45]line Внесено: 500.00 [13:45:45]line СДАЧА: 0.00 [13:45:45]line НСП 1% : 4.43 [13:45:45]line НДС 12% : 53.14 [13:45:45]line Наличными: 500.00 [13:45:45]line Безнал.: 0.00 [13:45:45]line Место: АЗС № 170 "Партнер Нефть" [13:45:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:45:45]line СНО: Общий режим [13:45:45]line Чек 228 27.10.2024 13:46 [13:45:45]line Смена: 542 ФФД: 1.0 [13:45:45]line ЗНМ: 0300000110 [13:45:45]line РНМ: 0000000000091776 [13:45:45]line Версия ККМ: 001 [13:45:45]line ФМ: 0000000000871754 [13:45:45]line ФД: 192196 [13:45:45]line ФПД: 88520732352464 [13:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192196&fm=88520732352464&tin=02508201610067®Number=0000000000091776&sum=50000 [13:45:45]OFD Sender: Processing packet 192196 [packets to send 75, broken 74] [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00192196 [13:45:45]OFD Sender: To server: pG, [13:45:45]CommunicateWithHost lk.salyk.kg:30040 [13:45:45]ConnectInit lk.salyk.kg [13:45:45]written 0, free lines is 4095 [13:45:46]Connected sock=8 [13:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 E5 07 01 B0 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1C 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EE 02 00 35 04 06 00 50 82 56 CE 9F D0 3C D8 0A 0B 34 29 B0 BD [13:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D FC 47 00 8B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EE 02 00 F4 03 04 00 E3 E8 1D 67 B6 04 01 00 00 DC 55 8E C3 4C 2D 81 4B [13:45:46]CommunicateWithHost err = 0 [13:45:46]CheckOFDResponse [13:45:46]1017 (14) - 77093643461234 [13:45:46]1041 (16) - 0000000000871754 [13:45:46]1040 (4) - 192196 [13:45:46]1012 (4) - 27.10.2024 07:16 [13:45:46]1206 (1) - 0 [13:45:46]OFD Sender: Remove packet 192196 [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00192196 [13:45:46]NVStorageDeleteData [13:45:46]Write to MH i2c: 01 00 00 A8 81 29 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 A8 81 00 00 00 00 00 B7 0C F3 [13:45:46]RasterBufferAndPrint [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]written 0, free lines is 3262 [13:45:46]MH_Cut [13:45:46]Write to MH i2c: D1 01 00 AF 81 01 02 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 AF 81 00 01 [13:45:46]Write to MH i2c: 01 00 00 B0 81 31 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]OFD Sender: No OFD packet to send [13:45:47]*** Cut start [13:45:47]*** Partial cut [13:45:47]*** CUTSNS_PIN = 1 [13:45:47]*** CUTSNS_PIN = 0 [13:45:47]*** Brake cut motor [13:45:47]Read from MH i2c: 01 [13:45:47]MH_I2C_Read... [13:45:47]*** Stop cut motor [13:45:47]*** Cut end [13:45:47]Read from MH i2c: 01 07 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: 01 07 00 B0 81 00 00 00 00 00 FF 0F 46 [13:45:47]process_action close_receipt done [13:45:47]requested_data is exist [13:45:47]produce_requested_data [13:45:47]requested_item fm.sn is exist - process it [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 11 00 00 [13:45:47]Write to MH i2c: E2 08 00 B1 81 80 11 00 00 00 00 00 00 AC [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:47]Read from MH i2c: E2 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 17 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 17 00 B1 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [13:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:47]wFMCommunicate OK [13:45:47]requested_item fd.num is exist - process it [13:45:47]SAM_PROTO_GetFieldsCounters [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 13 00 00 [13:45:47]Write to MH i2c: E2 08 00 B2 81 80 13 00 00 00 00 00 00 AF [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 62 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 62 00 B2 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [13:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:48]wFMCommunicate OK [13:45:48]SAM_PROTO_GetFieldsCounters done [13:45:48]requested_item shift.num is exist - process it [13:45:48]requested_item shift.opened is exist - process it [13:45:48]req_shift_opened [13:45:48]FM_GetShiftState [13:45:48]SAM_PROTO_GetShiftState [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 13 01 00 [13:45:48]Write to MH i2c: E2 08 00 B3 81 80 13 01 00 00 00 00 00 B1 [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 0E 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 0E 00 B3 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [13:45:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:45:48]wFMCommunicate OK [13:45:48]SAM_PROTO_GetShiftState done [13:45:48]FM_GetShiftState done [13:45:48]req_shift_opened done [13:45:48]requested_item shift.open_date is exist - process it [13:45:48]req_shift_open_date [13:45:48]req_shift_open_date done [13:45:48]produce_requested_data done [13:45:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192196,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:45:48]process_action_free close_receipt [13:45:48]json_value_free [13:45:48]json_value_free done [13:45:48]process_json_proto returns [13:45:48]Send response to host [13:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192196,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:45:48]free response buf [13:45:48]execute_script done [13:45:48]execute_script returns [13:45:48]free content buf [13:45:48]Sock 5.Close socket [13:45:48]Sock 5.Thread stoped [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:19]accept exits with 6 [13:47:19]New connection [13:47:19]New thread 3066817892 created [13:47:19]Thread 3066961252 joined [13:47:19]Waiting for new connection... [13:47:19] Sock 6.Parse request [13:47:19]Sock 6.Check first char [13:47:19]Sock 6.First char is OK [13:47:19]request: POST /json_proto HTTP/1.0 [13:47:19]Method: POST [13:47:19]URL: /json_proto [13:47:19]Method is POST - this is cgi request [13:47:19]url: /json_proto [13:47:19]query_string will be loaded in cgi processing [13:47:19]execute_cgi json_proto POST (null) [13:47:19]execute_cgi path=json_proto method=POST [13:47:19]POST find Content-Length [13:47:19]Host: 172.17.63.131:8080 [13:47:19]Content-Length: 673 [13:47:19]Content-Type: application/json [13:47:19] [13:47:19]POST finish read [13:47:19]Found Content-Length = 673 [13:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31510", "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:47:19]execute_script... [13:47: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)31510", "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:47:19]POST & json_proto [13:47:19]process_json_proto [13:47:19]json parsed OK: [13:47:19]protocol is kg_v1.0 [13:47:19]action value=close_receipt [13:47:19]process_action close_receipt [13:47:19]cmd_close_receipt [13:47:19]MH_GetDate [13:47:19]Write to MH i2c: F0 00 00 B4 81 24 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: F0 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: F0 09 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: F0 09 00 B4 81 00 7B 44 1E 67 22 05 6E 64 6A [13:47:19]GetLastDocTimeStamp 1730036764 [13:47:19]current date 1730036859 [13:47:19]FM_GetShiftState [13:47:19]SAM_PROTO_GetShiftState [13:47:19]wFMCommunicate request_size=4 [13:47:19]MH_SAM_APDU [13:47:19]CAPDU: 80 13 01 00 [13:47:19]Write to MH i2c: E2 08 00 B5 81 80 13 01 00 00 00 00 00 B3 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:19]Read from MH i2c: E2 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 0E 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: E2 0E 00 B5 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F4 [13:47:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:47:19]wFMCommunicate OK [13:47:19]SAM_PROTO_GetShiftState done [13:47:19]FM_GetShiftState done [13:47:19]opened in 1729989159 [13:47:19]opened+sec_in_day 1730075559 [13:47:19]quantity*price = 50063 [13:47:19]sum+1 = 50064 [13:47:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 229 27.10.2024 13:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192197 ФПД: 192238532229000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134739&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192197&fm=192238532229000&tin=02508201610067®Number=0000000000091776&sum=50000 [13:47:20]StoreToDocumentArchive [13:47:20]shift 542 fd 192197 [13:47:20]save to /storage/0542/doc_00192197 [13:47:20]save last doc name /storage/0542/doc_00192197 to /storage/kkm_last_doc_name [13:47:20]save OK [13:47:20]Clear old archive folders... [13:47:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:20]tlvbuf is 01A11C50 [13:47:20]SAM_PROTO_ClearQueue [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 09 00 00 [13:47:20]Write to MH i2c: E2 08 00 C2 81 80 09 00 00 00 00 00 00 B5 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 C2 81 00 90 00 B7 [13:47:20]RAPDU: 90 00 [13:47:20]wFMCommunicate OK [13:47:20]SAM_PROTO_ClearQueue done [13:47:20]KKMCreateOFDPacket [13:47:20]OFDProtocolAddRootSTLVToBuf [13:47:20]FM_MakeSignedData [13:47:20]FM_MakeSignedData [13:47:20]SAM_PROTO_SignData [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 0D 01 02 [13:47:20]Write to MH i2c: E2 08 00 C3 81 80 0D 01 02 00 00 00 00 BD [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 C3 81 00 90 00 B8 [13:47:20]RAPDU: 90 00 [13:47:20]wFMCommunicate OK [13:47:20]wFMCommunicate request_size=255 [13:47:20]MH_SAM_APDU [13:47: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 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 E5 00 00 00 F4 03 04 00 7B 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EE 02 00 35 04 06 00 AE D7 05 6C [13:47:20]Write to MH i2c: E2 02 01 C4 81 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 E5 00 00 00 F4 03 04 00 7B 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EE 02 00 35 04 06 00 AE D7 05 6C 00 00 C3 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 C4 81 00 90 00 B9 [13:47:20]RAPDU: 90 00 [13:47:20]wFMCommunicate OK [13:47:20]wFMCommunicate request_size=7 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 0D 02 02 02 F7 88 [13:47:20]Write to MH i2c: E2 0A 00 C5 81 80 0D 02 02 02 00 F7 88 00 00 43 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 03 00 C5 81 00 90 00 BA [13:47:20]RAPDU: 90 00 [13:47:20]wFMCommunicate OK [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 0D 03 02 [13:47:20]Write to MH i2c: E2 08 00 C6 81 80 0D 03 02 00 00 00 00 C2 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 0B 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 0B 00 C6 81 00 88 AD 84 A9 F7 DE 7F A3 90 00 1C [13:47:20]RAPDU: 88 AD 84 A9 F7 DE 7F A3 90 00 [13:47:20]wFMCommunicate OK [13:47:20]SAM_PROTO_SignData done [13:47:20]FM_MakeSignedData done [13:47:20]CreateOFDProtocolMessage [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 11 00 00 [13:47:20]Write to MH i2c: E2 08 00 C7 81 80 11 00 00 00 00 00 00 C2 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 17 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 17 00 C7 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [13:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:47:20]wFMCommunicate OK [13:47:20]CreateOFDProtocolMessage done [13:47:20]OFDSenderStorePacket 192197 [13:47:20]StoreOFDPacket docnum=192197 [13:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D6 9C 04 01 17 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 7B 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EE 02 00 35 04 06 00 AE D7 05 6C F7 88 88 AD 84 A9 F7 DE 7F A3 [13:47:20]CheckFolder [13:47:20]dirname=/storage/ofd_packets [13:47:20]CheckFolder done [13:47:20]ProducePacketName [13:47:20]name=ofd_packets/00192197 [13:47:20]NVStorageSaveData ofd_packets/00192197 [13:47:20]File name is /storage/ofd_packets/00192197 [13:47:20]Write 298 bytes [13:47:20]NVStorageSaveData done [13:47:20]OFDSenderStorePacket done [13:47:20]KKMCreateOFDPacket done [13:47:20]NVStorageSaveData kkm_last_timestamp [13:47:20]File name is /storage/kkm_last_timestamp [13:47:20]Write 4 bytes [13:47:20]NVStorageSaveData done [13:47:20]ExternCall_PrintAddStr [13:47:20]wPrintStart [13:47:20]Write to MH i2c: 01 00 00 C8 81 49 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: 01 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: 01 07 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: 01 07 00 C8 81 00 00 00 00 00 FF 0F 5E [13:47:20]RasterBufferAndPrint [13:47:20]line Счет N : (1)31510 [13:47:20]line ИНН: 02508201610067 [13:47:20]line Контрольно-Кассовый Чек [13:47:20]line ПРОДАЖА [13:47:20]line ТРК (МРК, ГНК) : 11 [13:47:20]line Товар: 2710194210 [13:47:20]line ДТ-К-5 [13:47:20]line 6.570 * 76.20 [13:47:20]line = 500.63 [13:47:20]line НДС 12% НСП 1% [13:47:20]line > о реализуемом товаре [13:47:20]line ОКРУГЛЕНИЕ: -0.63 [13:47:20]line ИТОГО: 500.00 [13:47:20]line Внесено: 500.00 [13:47:20]line СДАЧА: 0.00 [13:47:20]line НСП 1% : 4.43 [13:47:20]line НДС 12% : 53.16 [13:47:20]line Наличными: 500.00 [13:47:20]line Безнал.: 0.00 [13:47:20]line Место: АЗС № 170 "Партнер Нефть" [13:47:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:47:20]line СНО: Общий режим [13:47:20]line Чек 229 27.10.2024 13:47 [13:47:20]line Смена: 542 ФФД: 1.0 [13:47:20]line ЗНМ: 0300000110 [13:47:20]line РНМ: 0000000000091776 [13:47:20]line Версия ККМ: 001 [13:47:20]line ФМ: 0000000000871754 [13:47:20]line ФД: 192197 [13:47:20]line ФПД: 192238532229000 [13:47:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134739&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192197&fm=192238532229000&tin=02508201610067®Number=0000000000091776&sum=50000 [13:47:21]OFD Sender: Processing packet 192197 [packets to send 75, broken 74] [13:47:21]ProducePacketName [13:47:21]name=ofd_packets/00192197 [13:47:21]OFD Sender: To server: pG, [13:47:21]CommunicateWithHost lk.salyk.kg:30040 [13:47:21]ConnectInit lk.salyk.kg [13:47:21]written 0, free lines is 4095 [13:47:21]Connected sock=8 [13:47:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D6 9C 04 01 17 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 7B 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EE 02 00 35 04 06 00 AE D7 05 6C F7 88 88 AD 84 A9 F7 DE 7F A3 [13:47:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 CA 47 00 36 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EE 02 00 F4 03 04 00 43 E9 1D 67 B6 04 01 00 00 45 84 A9 01 3B 1B 34 E2 [13:47:21]CommunicateWithHost err = 0 [13:47:21]CheckOFDResponse [13:47:21]1017 (14) - 77093643461234 [13:47:21]1041 (16) - 0000000000871754 [13:47:21]1040 (4) - 192197 [13:47:21]1012 (4) - 27.10.2024 07:18 [13:47:21]1206 (1) - 0 [13:47:21]OFD Sender: Remove packet 192197 [13:47:21]ProducePacketName [13:47:21]name=ofd_packets/00192197 [13:47:21]NVStorageDeleteData [13:47:21]Write to MH i2c: 01 00 00 F3 81 74 [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: 01 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: 01 07 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: 01 07 00 F3 81 00 00 00 00 00 B3 0C 3A [13:47:21]RasterBufferAndPrint [13:47:21]line [13:47:21]line [13:47:21]line [13:47:21]line [13:47:21]line [13:47:21]written 0, free lines is 3258 [13:47:21]MH_Cut [13:47:21]Write to MH i2c: D1 01 00 FA 81 01 4D [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: D1 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: D1 01 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: D1 01 00 FA 81 00 4C [13:47:21]Write to MH i2c: 01 00 00 FB 81 7C [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:22]OFD Sender: No OFD packet to send [13:47:22]*** Cut start [13:47:22]*** Partial cut [13:47:22]*** CUTSNS_PIN = 1 [13:47:22]*** CUTSNS_PIN = 0 [13:47:22]*** Brake cut motor [13:47:23]Read from MH i2c: 01 [13:47:23]MH_I2C_Read... [13:47:23]*** Stop cut motor [13:47:23]*** Cut end [13:47:23]Read from MH i2c: 01 07 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 07 00 FB 81 00 00 00 00 00 FF 0F 91 [13:47:23]process_action close_receipt done [13:47:23]requested_data is exist [13:47:23]produce_requested_data [13:47:23]requested_item fm.sn is exist - process it [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 11 00 00 [13:47:23]Write to MH i2c: E2 08 00 FC 81 80 11 00 00 00 00 00 00 F7 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 17 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 17 00 FC 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [13:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:47:23]wFMCommunicate OK [13:47:23]requested_item fd.num is exist - process it [13:47:23]SAM_PROTO_GetFieldsCounters [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 13 00 00 [13:47:23]Write to MH i2c: E2 08 00 FD 81 80 13 00 00 00 00 00 00 FA [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 62 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 62 00 FD 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [13:47:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:23]wFMCommunicate OK [13:47:23]SAM_PROTO_GetFieldsCounters done [13:47:23]requested_item shift.num is exist - process it [13:47:23]requested_item shift.opened is exist - process it [13:47:23]req_shift_opened [13:47:23]FM_GetShiftState [13:47:23]SAM_PROTO_GetShiftState [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 13 01 00 [13:47:23]Write to MH i2c: E2 08 00 FE 81 80 13 01 00 00 00 00 00 FC [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0E 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0E 00 FE 81 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3D [13:47:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:47:23]wFMCommunicate OK [13:47:23]SAM_PROTO_GetShiftState done [13:47:23]FM_GetShiftState done [13:47:23]req_shift_opened done [13:47:23]requested_item shift.open_date is exist - process it [13:47:23]req_shift_open_date [13:47:23]req_shift_open_date done [13:47:23]produce_requested_data done [13:47:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192197,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:47:23]process_action_free close_receipt [13:47:23]json_value_free [13:47:23]json_value_free done [13:47:23]process_json_proto returns [13:47:23]Send response to host [13:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192197,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:47:23]free response buf [13:47:23]execute_script done [13:47:23]execute_script returns [13:47:23]free content buf [13:47:23]Sock 6.Close socket [13:47:23]Sock 6.Thread stoped [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:12]accept exits with 5 [13:48:12]New connection [13:48:12]New thread 3066961252 created [13:48:12]Thread 3066817892 joined [13:48:12]Waiting for new connection... [13:48:12] Sock 5.Parse request [13:48:12]Sock 5.Check first char [13:48:12]Sock 5.First char is OK [13:48:12]request: POST /json_proto HTTP/1.0 [13:48:12]Method: POST [13:48:12]URL: /json_proto [13:48:12]Method is POST - this is cgi request [13:48:12]url: /json_proto [13:48:12]query_string will be loaded in cgi processing [13:48:12]execute_cgi json_proto POST (null) [13:48:12]execute_cgi path=json_proto method=POST [13:48:12]POST find Content-Length [13:48:12]Host: 172.17.63.131:8080 [13:48:12]Content-Length: 862 [13:48:12]Content-Type: application/json [13:48:12] [13:48:12]POST finish read [13:48:12]Found Content-Length = 862 [13:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:12]execute_script... [13:48: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)31511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:12]POST & json_proto [13:48:12]process_json_proto [13:48:12]json parsed OK: [13:48:12]protocol is kg_v1.0 [13:48:12]action value=close_receipt [13:48:12]process_action close_receipt [13:48:12]cmd_close_receipt [13:48:12]MH_GetDate [13:48:12]Write to MH i2c: F0 00 00 FF 81 6F [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 09 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 09 00 FF 81 00 B1 44 1E 67 22 05 6E 64 EB [13:48:12]GetLastDocTimeStamp 1730036859 [13:48:12]current date 1730036913 [13:48:12]FM_GetShiftState [13:48:12]SAM_PROTO_GetShiftState [13:48:12]wFMCommunicate request_size=4 [13:48:12]MH_SAM_APDU [13:48:12]CAPDU: 80 13 01 00 [13:48:12]Write to MH i2c: E2 08 00 00 82 80 13 01 00 00 00 00 00 FF [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:12]Read from MH i2c: E2 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 00 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 40 [13:48:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:48:12]wFMCommunicate OK [13:48:12]SAM_PROTO_GetShiftState done [13:48:12]FM_GetShiftState done [13:48:12]opened in 1729989159 [13:48:12]opened+sec_in_day 1730075559 [13:48:12]quantity*price = 50041 [13:48:12]sum+1 = 50042 [13:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 230 27.10.2024 13:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192198 ФПД: 59951272400826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192198&fm=59951272400826&tin=02508201610067®Number=0000000000091776&sum=50041 [13:48:14]StoreToDocumentArchive [13:48:14]shift 542 fd 192198 [13:48:14]save to /storage/0542/doc_00192198 [13:48:14]save last doc name /storage/0542/doc_00192198 to /storage/kkm_last_doc_name [13:48:14]save OK [13:48:14]Clear old archive folders... [13:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:14]tlvbuf is 01748C50 [13:48:14]SAM_PROTO_ClearQueue [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 09 00 00 [13:48:14]Write to MH i2c: E2 08 00 0D 82 80 09 00 00 00 00 00 00 01 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 0D 82 00 90 00 03 [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]SAM_PROTO_ClearQueue done [13:48:14]KKMCreateOFDPacket [13:48:14]OFDProtocolAddRootSTLVToBuf [13:48:14]FM_MakeSignedData [13:48:14]FM_MakeSignedData [13:48:14]SAM_PROTO_SignData [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 01 02 [13:48:14]Write to MH i2c: E2 08 00 0E 82 80 0D 01 02 00 00 00 00 09 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 0E 82 00 90 00 04 [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=255 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B1 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EE 02 00 35 04 06 00 36 [13:48:14]Write to MH i2c: E2 02 01 0F 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B1 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EE 02 00 35 04 06 00 36 00 00 5B [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 0F 82 00 90 00 05 [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=10 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 02 02 05 86 7E 4B 97 BA [13:48:14]Write to MH i2c: E2 0D 00 10 82 80 0D 02 02 05 00 86 7E 4B 97 BA 00 00 B6 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 10 82 00 90 00 06 [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 03 02 [13:48:14]Write to MH i2c: E2 08 00 11 82 80 0D 03 02 00 00 00 00 0E [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 0B 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 0B 00 11 82 00 DB 2E D5 28 A4 DE 24 C3 90 00 7E [13:48:14]RAPDU: DB 2E D5 28 A4 DE 24 C3 90 00 [13:48:14]wFMCommunicate OK [13:48:14]SAM_PROTO_SignData done [13:48:14]FM_MakeSignedData done [13:48:14]CreateOFDProtocolMessage [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 11 00 00 [13:48:14]Write to MH i2c: E2 08 00 12 82 80 11 00 00 00 00 00 00 0E [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 17 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 17 00 12 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [13:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:48:14]wFMCommunicate OK [13:48:14]CreateOFDProtocolMessage done [13:48:14]OFDSenderStorePacket 192198 [13:48:14]StoreOFDPacket docnum=192198 [13:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 BD 07 01 96 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B1 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EE 02 00 35 04 06 00 36 86 7E 4B 97 BA DB 2E D5 28 A4 DE 24 C3 [13:48:14]CheckFolder [13:48:14]dirname=/storage/ofd_packets [13:48:14]CheckFolder done [13:48:14]ProducePacketName [13:48:14]name=ofd_packets/00192198 [13:48:14]NVStorageSaveData ofd_packets/00192198 [13:48:14]File name is /storage/ofd_packets/00192198 [13:48:14]Write 301 bytes [13:48:14]NVStorageSaveData done [13:48:14]OFDSenderStorePacket done [13:48:14]KKMCreateOFDPacket done [13:48:14]NVStorageSaveData kkm_last_timestamp [13:48:14]File name is /storage/kkm_last_timestamp [13:48:14]Write 4 bytes [13:48:14]NVStorageSaveData done [13:48:14]ExternCall_PrintAddStr [13:48:14]wPrintStart [13:48:14]Write to MH i2c: 01 00 00 13 82 95 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 07 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 07 00 13 82 00 00 00 00 00 FF 0F AA [13:48:14]RasterBufferAndPrint [13:48:14]line Счет N : (1)31511 [13:48:14]line ИНН: 02508201610067 [13:48:14]line Контрольно-Кассовый Чек [13:48:14]line ПРОДАЖА [13:48:14]line ТРК (МРК, ГНК) : 21 [13:48:14]line Товар: 2710124130 [13:48:14]line Аи-92-К-5 [13:48:14]line 7.480 * 66.90 [13:48:14]line = 500.41 [13:48:14]line НДС 12% НСП 1% [13:48:14]line > о реализуемом товаре [13:48:14]line ИТОГО: 500.41 [13:48:14]line НСП 1% : 4.43 [13:48:14]line НДС 12% : 53.14 [13:48:14]line Наличными: 0.00 [13:48:14]line Безнал.: 500.41 [13:48:14]line Место: АЗС № 170 "Партнер Нефть" [13:48:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:48:14]line СНО: Общий режим [13:48:14]line Чек 230 27.10.2024 13:48 [13:48:14]line Смена: 542 ФФД: 1.0 [13:48:14]line ЗНМ: 0300000110 [13:48:14]line РНМ: 0000000000091776 [13:48:14]line Версия ККМ: 001 [13:48:14]line Платежная система: Кыргызкоммерцбанк [13:48:14]line ФМ: 0000000000871754 [13:48:14]line ФД: 192198 [13:48:14]line ФПД: 59951272400826 [13:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192198&fm=59951272400826&tin=02508201610067®Number=0000000000091776&sum=50041 [13:48:14]written 0, free lines is 4095 [13:48:14]OFD Sender: Processing packet 192198 [packets to send 75, broken 74] [13:48:14]ProducePacketName [13:48:14]name=ofd_packets/00192198 [13:48:14]OFD Sender: To server: pG, [13:48:14]CommunicateWithHost lk.salyk.kg:30040 [13:48:14]ConnectInit lk.salyk.kg [13:48:15]Connected sock=8 [13:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 BD 07 01 96 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B1 44 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EE 02 00 35 04 06 00 36 86 7E 4B 97 BA DB 2E D5 28 A4 DE 24 C3 [13:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE A7 47 00 4C 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EE 02 00 F4 03 04 00 78 E9 1D 67 B6 04 01 00 00 0D 03 36 CF 42 E9 18 C8 [13:48:15]CommunicateWithHost err = 0 [13:48:15]CheckOFDResponse [13:48:15]1017 (14) - 77093643461234 [13:48:15]1041 (16) - 0000000000871754 [13:48:15]1040 (4) - 192198 [13:48:15]1012 (4) - 27.10.2024 07:19 [13:48:15]1206 (1) - 0 [13:48:15]OFD Sender: Remove packet 192198 [13:48:15]ProducePacketName [13:48:15]name=ofd_packets/00192198 [13:48:15]NVStorageDeleteData [13:48:15]Write to MH i2c: 01 00 00 3D 82 BF [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 07 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 07 00 3D 82 00 00 00 00 00 D1 0C A3 [13:48:15]RasterBufferAndPrint [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]written 0, free lines is 3290 [13:48:15]MH_Cut [13:48:15]Write to MH i2c: D1 01 00 44 82 01 98 [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: D1 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: D1 01 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: D1 01 00 44 82 00 97 [13:48:15]Write to MH i2c: 01 00 00 45 82 C7 [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]OFD Sender: No OFD packet to send [13:48:16]*** Cut start [13:48:16]*** Partial cut [13:48:16]*** CUTSNS_PIN = 1 [13:48:16]*** CUTSNS_PIN = 0 [13:48:16]*** Brake cut motor [13:48:16]Read from MH i2c: 01 [13:48:16]MH_I2C_Read... [13:48:16]*** Stop cut motor [13:48:16]*** Cut end [13:48:16]Read from MH i2c: 01 07 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: 01 07 00 45 82 00 00 00 00 00 FF 0F DC [13:48:16]process_action close_receipt done [13:48:16]requested_data is exist [13:48:16]produce_requested_data [13:48:16]requested_item fm.sn is exist - process it [13:48:16]wFMCommunicate request_size=4 [13:48:16]MH_SAM_APDU [13:48:16]CAPDU: 80 11 00 00 [13:48:16]Write to MH i2c: E2 08 00 46 82 80 11 00 00 00 00 00 00 42 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:16]Read from MH i2c: E2 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 17 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 17 00 46 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [13:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:48:16]wFMCommunicate OK [13:48:16]requested_item fd.num is exist - process it [13:48:16]SAM_PROTO_GetFieldsCounters [13:48:16]wFMCommunicate request_size=4 [13:48:16]MH_SAM_APDU [13:48:16]CAPDU: 80 13 00 00 [13:48:16]Write to MH i2c: E2 08 00 47 82 80 13 00 00 00 00 00 00 45 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 62 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 62 00 47 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [13: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:17]wFMCommunicate OK [13:48:17]SAM_PROTO_GetFieldsCounters done [13:48:17]requested_item shift.num is exist - process it [13:48:17]requested_item shift.opened is exist - process it [13:48:17]req_shift_opened [13:48:17]FM_GetShiftState [13:48:17]SAM_PROTO_GetShiftState [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 13 01 00 [13:48:17]Write to MH i2c: E2 08 00 48 82 80 13 01 00 00 00 00 00 47 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 0E 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 0E 00 48 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 88 [13:48:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:48:17]wFMCommunicate OK [13:48:17]SAM_PROTO_GetShiftState done [13:48:17]FM_GetShiftState done [13:48:17]req_shift_opened done [13:48:17]requested_item shift.open_date is exist - process it [13:48:17]req_shift_open_date [13:48:17]req_shift_open_date done [13:48:17]produce_requested_data done [13:48:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192198,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:48:17]process_action_free close_receipt [13:48:17]json_value_free [13:48:17]json_value_free done [13:48:17]process_json_proto returns [13:48:17]Send response to host [13:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192198,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:48:17]free response buf [13:48:17]execute_script done [13:48:17]execute_script returns [13:48:17]free content buf [13:48:17]Sock 5.Close socket [13:48:17]Sock 5.Thread stoped [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:33]accept exits with 6 [13:49:33]New connection [13:49:33]New thread 3066817892 created [13:49:33]Thread 3066961252 joined [13:49:33]Waiting for new connection... [13:49:33] Sock 6.Parse request [13:49:33]Sock 6.Check first char [13:49:33]Sock 6.First char is OK [13:49:33]request: POST /json_proto HTTP/1.0 [13:49:33]Method: POST [13:49:33]URL: /json_proto [13:49:33]Method is POST - this is cgi request [13:49:33]url: /json_proto [13:49:33]query_string will be loaded in cgi processing [13:49:33]execute_cgi json_proto POST (null) [13:49:33]execute_cgi path=json_proto method=POST [13:49:33]POST find Content-Length [13:49:33]Host: 172.17.63.131:8080 [13:49:33]Content-Length: 681 [13:49:33]Content-Type: application/json [13:49:33] [13:49:33]POST finish read [13:49:33]Found Content-Length = 681 [13:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:33]execute_script... [13:49: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)31512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:33]POST & json_proto [13:49:33]process_json_proto [13:49:33]json parsed OK: [13:49:33]protocol is kg_v1.0 [13:49:33]action value=close_receipt [13:49:33]process_action close_receipt [13:49:33]cmd_close_receipt [13:49:33]MH_GetDate [13:49:33]Write to MH i2c: F0 00 00 49 82 BA [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 09 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 09 00 49 82 00 02 45 1E 67 22 05 6E 64 88 [13:49:33]GetLastDocTimeStamp 1730036913 [13:49:33]current date 1730036994 [13:49:33]FM_GetShiftState [13:49:33]SAM_PROTO_GetShiftState [13:49:33]wFMCommunicate request_size=4 [13:49:33]MH_SAM_APDU [13:49:33]CAPDU: 80 13 01 00 [13:49:33]Write to MH i2c: E2 08 00 4A 82 80 13 01 00 00 00 00 00 49 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:34]Read from MH i2c: E2 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 0E 00 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 0E 00 4A 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8A [13:49:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:49:34]wFMCommunicate OK [13:49:34]SAM_PROTO_GetShiftState done [13:49:34]FM_GetShiftState done [13:49:34]opened in 1729989159 [13:49:34]opened+sec_in_day 1730075559 [13:49:34]quantity*price = 100015 [13:49:34]sum+1 = 100017 [13:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 231 27.10.2024 13:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192199 ФПД: 249831953042165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192199&fm=249831953042165&tin=02508201610067®Number=0000000000091776&sum=100000 [13:49:35]StoreToDocumentArchive [13:49:35]shift 542 fd 192199 [13:49:35]save to /storage/0542/doc_00192199 [13:49:35]save last doc name /storage/0542/doc_00192199 to /storage/kkm_last_doc_name [13:49:35]save OK [13:49:35]Clear old archive folders... [13:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:35]tlvbuf is 017490D0 [13:49:35]SAM_PROTO_ClearQueue [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 09 00 00 [13:49:35]Write to MH i2c: E2 08 00 57 82 80 09 00 00 00 00 00 00 4B [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 57 82 00 90 00 4D [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_ClearQueue done [13:49:35]KKMCreateOFDPacket [13:49:35]OFDProtocolAddRootSTLVToBuf [13:49:35]FM_MakeSignedData [13:49:35]FM_MakeSignedData [13:49:35]SAM_PROTO_SignData [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 01 02 [13:49:35]Write to MH i2c: E2 08 00 58 82 80 0D 01 02 00 00 00 00 53 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 58 82 00 90 00 4E [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]wFMCommunicate request_size=255 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 02 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EE 02 00 35 04 06 00 E3 [13:49:35]Write to MH i2c: E2 02 01 59 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 02 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EE 02 00 35 04 06 00 E3 00 00 4E [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 59 82 00 90 00 4F [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]wFMCommunicate request_size=10 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 02 02 05 38 88 D0 8A F5 [13:49:35]Write to MH i2c: E2 0D 00 5A 82 80 0D 02 02 05 00 38 88 D0 8A F5 00 00 6F [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 5A 82 00 90 00 50 [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 03 02 [13:49:35]Write to MH i2c: E2 08 00 5B 82 80 0D 03 02 00 00 00 00 58 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0B 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0B 00 5B 82 00 0C 0D AE FD C8 16 8D 9C 90 00 24 [13:49:35]RAPDU: 0C 0D AE FD C8 16 8D 9C 90 00 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_SignData done [13:49:35]FM_MakeSignedData done [13:49:35]CreateOFDProtocolMessage [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 11 00 00 [13:49:35]Write to MH i2c: E2 08 00 5C 82 80 11 00 00 00 00 00 00 58 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 5C 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [13:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:35]wFMCommunicate OK [13:49:35]CreateOFDProtocolMessage done [13:49:35]OFDSenderStorePacket 192199 [13:49:35]StoreOFDPacket docnum=192199 [13:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 12 07 01 5C 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 02 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EE 02 00 35 04 06 00 E3 38 88 D0 8A F5 0C 0D AE FD C8 16 8D 9C [13:49:35]CheckFolder [13:49:35]dirname=/storage/ofd_packets [13:49:35]CheckFolder done [13:49:35]ProducePacketName [13:49:35]name=ofd_packets/00192199 [13:49:35]NVStorageSaveData ofd_packets/00192199 [13:49:35]File name is /storage/ofd_packets/00192199 [13:49:35]Write 301 bytes [13:49:35]NVStorageSaveData done [13:49:35]OFDSenderStorePacket done [13:49:35]KKMCreateOFDPacket done [13:49:35]NVStorageSaveData kkm_last_timestamp [13:49:35]File name is /storage/kkm_last_timestamp [13:49:35]Write 4 bytes [13:49:35]NVStorageSaveData done [13:49:35]ExternCall_PrintAddStr [13:49:35]wPrintStart [13:49:35]Write to MH i2c: 01 00 00 5D 82 DF [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 07 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 07 00 5D 82 00 00 00 00 00 FF 0F F4 [13:49:35]RasterBufferAndPrint [13:49:35]line Счет N : (1)31512 [13:49:35]line ИНН: 02508201610067 [13:49:35]line Контрольно-Кассовый Чек [13:49:35]line ПРОДАЖА [13:49:35]line ТРК (МРК, ГНК) : 12 [13:49:35]line Товар: 2710124130 [13:49:35]line Аи-92-К-5 [13:49:35]line 14.950 * 66.90 [13:49:35]line = 1000.16 [13:49:35]line НДС 12% НСП 1% [13:49:35]line > о реализуемом товаре [13:49:35]line ОКРУГЛЕНИЕ: -0.16 [13:49:35]line ИТОГО: 1000.00 [13:49:35]line Внесено: 1000.00 [13:49:35]line СДАЧА: 0.00 [13:49:35]line НСП 1% : 8.85 [13:49:35]line НДС 12% : 106.21 [13:49:35]line Наличными: 1000.00 [13:49:35]line Безнал.: 0.00 [13:49:35]line Место: АЗС № 170 "Партнер Нефть" [13:49:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:49:35]line СНО: Общий режим [13:49:35]line Чек 231 27.10.2024 13:49 [13:49:35]line Смена: 542 ФФД: 1.0 [13:49:35]line ЗНМ: 0300000110 [13:49:35]line РНМ: 0000000000091776 [13:49:35]line Версия ККМ: 001 [13:49:35]line ФМ: 0000000000871754 [13:49:35]line ФД: 192199 [13:49:35]line ФПД: 249831953042165 [13:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192199&fm=249831953042165&tin=02508201610067®Number=0000000000091776&sum=100000 [13:49:36]OFD Sender: Processing packet 192199 [packets to send 75, broken 74] [13:49:36]ProducePacketName [13:49:36]name=ofd_packets/00192199 [13:49:36]OFD Sender: To server: pG, [13:49:36]CommunicateWithHost lk.salyk.kg:30040 [13:49:36]ConnectInit lk.salyk.kg [13:49:36]written 0, free lines is 4095 [13:49:36]Connected sock=8 [13:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 12 07 01 5C 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 02 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EE 02 00 35 04 06 00 E3 38 88 D0 8A F5 0C 0D AE FD C8 16 8D 9C [13:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 B4 47 00 3D 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EE 02 00 F4 03 04 00 C9 E9 1D 67 B6 04 01 00 00 59 F2 EA AC 01 32 E4 4C [13:49:36]CommunicateWithHost err = 0 [13:49:36]CheckOFDResponse [13:49:36]1017 (14) - 77093643461234 [13:49:36]1041 (16) - 0000000000871754 [13:49:36]1040 (4) - 192199 [13:49:36]1012 (4) - 27.10.2024 07:20 [13:49:36]1206 (1) - 0 [13:49:36]OFD Sender: Remove packet 192199 [13:49:36]ProducePacketName [13:49:36]name=ofd_packets/00192199 [13:49:36]NVStorageDeleteData [13:49:36]Write to MH i2c: 01 00 00 88 82 0A [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 07 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 07 00 88 82 00 00 00 00 00 B8 0C D5 [13:49:36]RasterBufferAndPrint [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]written 0, free lines is 3264 [13:49:36]MH_Cut [13:49:36]Write to MH i2c: D1 01 00 8F 82 01 E3 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 01 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 01 00 8F 82 00 E2 [13:49:36]Write to MH i2c: 01 00 00 90 82 12 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]OFD Sender: No OFD packet to send [13:49:37]*** Cut start [13:49:37]*** Partial cut [13:49:37]*** CUTSNS_PIN = 1 [13:49:37]*** CUTSNS_PIN = 0 [13:49:37]*** Brake cut motor [13:49:37]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]*** Stop cut motor [13:49:38]*** Cut end [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 90 82 00 00 00 00 00 FF 0F 27 [13:49:38]process_action close_receipt done [13:49:38]requested_data is exist [13:49:38]produce_requested_data [13:49:38]requested_item fm.sn is exist - process it [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 11 00 00 [13:49:38]Write to MH i2c: E2 08 00 91 82 80 11 00 00 00 00 00 00 8D [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 91 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [13:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:38]wFMCommunicate OK [13:49:38]requested_item fd.num is exist - process it [13:49:38]SAM_PROTO_GetFieldsCounters [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 13 00 00 [13:49:38]Write to MH i2c: E2 08 00 92 82 80 13 00 00 00 00 00 00 90 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 62 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 62 00 92 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_GetFieldsCounters done [13:49:38]requested_item shift.num is exist - process it [13:49:38]requested_item shift.opened is exist - process it [13:49:38]req_shift_opened [13:49:38]FM_GetShiftState [13:49:38]SAM_PROTO_GetShiftState [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 13 01 00 [13:49:38]Write to MH i2c: E2 08 00 93 82 80 13 01 00 00 00 00 00 92 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0E 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0E 00 93 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D3 [13:49:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_GetShiftState done [13:49:38]FM_GetShiftState done [13:49:38]req_shift_opened done [13:49:38]requested_item shift.open_date is exist - process it [13:49:38]req_shift_open_date [13:49:38]req_shift_open_date done [13:49:38]produce_requested_data done [13:49:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192199,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:49:38]process_action_free close_receipt [13:49:38]json_value_free [13:49:38]json_value_free done [13:49:38]process_json_proto returns [13:49:38]Send response to host [13:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192199,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:49:38]free response buf [13:49:38]execute_script done [13:49:38]execute_script returns [13:49:38]free content buf [13:49:38]Sock 6.Close socket [13:49:38]Sock 6.Thread stoped [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:53]accept exits with 5 [13:49:53]New connection [13:49:53]New thread 3066961252 created [13:49:53]Thread 3066817892 joined [13:49:53]Waiting for new connection... [13:49:53] Sock 5.Parse request [13:49:53]Sock 5.Check first char [13:49:53]Sock 5.First char is OK [13:49:53]request: POST /json_proto HTTP/1.0 [13:49:53]Method: POST [13:49:53]URL: /json_proto [13:49:53]Method is POST - this is cgi request [13:49:53]url: /json_proto [13:49:53]query_string will be loaded in cgi processing [13:49:53]execute_cgi json_proto POST (null) [13:49:53]execute_cgi path=json_proto method=POST [13:49:53]POST find Content-Length [13:49:53]Host: 172.17.63.131:8080 [13:49:53]Content-Length: 677 [13:49:53]Content-Type: application/json [13:49:53] [13:49:53]POST finish read [13:49:53]Found Content-Length = 677 [13:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:53]execute_script... [13:49:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:53]POST & json_proto [13:49:53]process_json_proto [13:49:53]json parsed OK: [13:49:53]protocol is kg_v1.0 [13:49:53]action value=close_receipt [13:49:53]process_action close_receipt [13:49:53]cmd_close_receipt [13:49:53]MH_GetDate [13:49:53]Write to MH i2c: F0 00 00 94 82 05 [13:49:53]Write i2c OK [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: F0 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: F0 09 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: F0 09 00 94 82 00 16 45 1E 67 22 05 6E 64 E7 [13:49:53]GetLastDocTimeStamp 1730036994 [13:49:53]current date 1730037014 [13:49:53]FM_GetShiftState [13:49:53]SAM_PROTO_GetShiftState [13:49:53]wFMCommunicate request_size=4 [13:49:53]MH_SAM_APDU [13:49:53]CAPDU: 80 13 01 00 [13:49:53]Write to MH i2c: E2 08 00 95 82 80 13 01 00 00 00 00 00 94 [13:49:53]Write i2c OK [13:49:53]MH_I2C_Read... [13:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:53]Read from MH i2c: E2 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 0E 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 0E 00 95 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D5 [13:49:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:49:53]wFMCommunicate OK [13:49:53]SAM_PROTO_GetShiftState done [13:49:53]FM_GetShiftState done [13:49:53]opened in 1729989159 [13:49:53]opened+sec_in_day 1730075559 [13:49:53]quantity*price = 70044 [13:49:53]sum+1 = 70045 [13:49:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 232 27.10.2024 13:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192200 ФПД: 6320474412121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192200&fm=6320474412121&tin=02508201610067®Number=0000000000091776&sum=70000 [13:49:55]StoreToDocumentArchive [13:49:55]shift 542 fd 192200 [13:49:55]save to /storage/0542/doc_00192200 [13:49:55]save last doc name /storage/0542/doc_00192200 to /storage/kkm_last_doc_name [13:49:55]save OK [13:49:55]Clear old archive folders... [13:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:55]tlvbuf is 01DFC010 [13:49:55]SAM_PROTO_ClearQueue [13:49:55]wFMCommunicate request_size=4 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 09 00 00 [13:49:55]Write to MH i2c: E2 08 00 A2 82 80 09 00 00 00 00 00 00 96 [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 A2 82 00 90 00 98 [13:49:55]RAPDU: 90 00 [13:49:55]wFMCommunicate OK [13:49:55]SAM_PROTO_ClearQueue done [13:49:55]KKMCreateOFDPacket [13:49:55]OFDProtocolAddRootSTLVToBuf [13:49:55]FM_MakeSignedData [13:49:55]FM_MakeSignedData [13:49:55]SAM_PROTO_SignData [13:49:55]wFMCommunicate request_size=4 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 0D 01 02 [13:49:55]Write to MH i2c: E2 08 00 A3 82 80 0D 01 02 00 00 00 00 9E [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 A3 82 00 90 00 99 [13:49:55]RAPDU: 90 00 [13:49:55]wFMCommunicate OK [13:49:55]wFMCommunicate request_size=255 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 16 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EE 02 00 35 04 06 00 05 [13:49:55]Write to MH i2c: E2 02 01 A4 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 16 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EE 02 00 35 04 06 00 05 00 00 E7 [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 A4 82 00 90 00 9A [13:49:55]RAPDU: 90 00 [13:49:55]wFMCommunicate OK [13:49:55]wFMCommunicate request_size=10 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 0D 02 02 05 BF 99 A1 D4 59 [13:49:55]Write to MH i2c: E2 0D 00 A5 82 80 0D 02 02 05 00 BF 99 A1 D4 59 00 00 D1 [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 03 00 A5 82 00 90 00 9B [13:49:55]RAPDU: 90 00 [13:49:55]wFMCommunicate OK [13:49:55]wFMCommunicate request_size=4 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 0D 03 02 [13:49:55]Write to MH i2c: E2 08 00 A6 82 80 0D 03 02 00 00 00 00 A3 [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 0B 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 0B 00 A6 82 00 40 43 7D BB B2 F3 1C 57 90 00 77 [13:49:55]RAPDU: 40 43 7D BB B2 F3 1C 57 90 00 [13:49:55]wFMCommunicate OK [13:49:55]SAM_PROTO_SignData done [13:49:55]FM_MakeSignedData done [13:49:55]CreateOFDProtocolMessage [13:49:55]wFMCommunicate request_size=4 [13:49:55]MH_SAM_APDU [13:49:55]CAPDU: 80 11 00 00 [13:49:55]Write to MH i2c: E2 08 00 A7 82 80 11 00 00 00 00 00 00 A3 [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 17 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 17 00 A7 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [13:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:55]wFMCommunicate OK [13:49:55]CreateOFDProtocolMessage done [13:49:55]OFDSenderStorePacket 192200 [13:49:55]StoreOFDPacket docnum=192200 [13:49:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D E8 07 01 BF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 00 00 00 F4 03 04 00 16 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EE 02 00 35 04 06 00 05 BF 99 A1 D4 59 40 43 7D BB B2 F3 1C 57 [13:49:55]CheckFolder [13:49:55]dirname=/storage/ofd_packets [13:49:55]CheckFolder done [13:49:55]ProducePacketName [13:49:55]name=ofd_packets/00192200 [13:49:55]NVStorageSaveData ofd_packets/00192200 [13:49:55]File name is /storage/ofd_packets/00192200 [13:49:55]Write 301 bytes [13:49:55]NVStorageSaveData done [13:49:55]OFDSenderStorePacket done [13:49:55]KKMCreateOFDPacket done [13:49:55]NVStorageSaveData kkm_last_timestamp [13:49:55]File name is /storage/kkm_last_timestamp [13:49:55]Write 4 bytes [13:49:55]NVStorageSaveData done [13:49:55]ExternCall_PrintAddStr [13:49:55]wPrintStart [13:49:55]Write to MH i2c: 01 00 00 A8 82 2A [13:49:55]Write i2c OK [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: 01 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: 01 07 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: 01 07 00 A8 82 00 00 00 00 00 FF 0F 3F [13:49:55]RasterBufferAndPrint [13:49:55]line Счет N : (1)31513 [13:49:55]line ИНН: 02508201610067 [13:49:55]line Контрольно-Кассовый Чек [13:49:55]line ПРОДАЖА [13:49:55]line ТРК (МРК, ГНК) : 21 [13:49:55]line Товар: 2710124130 [13:49:55]line Аи-92-К-5 [13:49:55]line 10.470 * 66.90 [13:49:55]line = 700.44 [13:49:55]line НДС 12% НСП 1% [13:49:55]line > о реализуемом товаре [13:49:55]line ОКРУГЛЕНИЕ: -0.44 [13:49:55]line ИТОГО: 700.00 [13:49:55]line Внесено: 700.00 [13:49:55]line СДАЧА: 0.00 [13:49:55]line НСП 1% : 6.20 [13:49:55]line НДС 12% : 74.38 [13:49:55]line Наличными: 700.00 [13:49:55]line Безнал.: 0.00 [13:49:55]line Место: АЗС № 170 "Партнер Нефть" [13:49:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:49:55]line СНО: Общий режим [13:49:55]line Чек 232 27.10.2024 13:50 [13:49:55]line Смена: 542 ФФД: 1.0 [13:49:55]line ЗНМ: 0300000110 [13:49:55]line РНМ: 0000000000091776 [13:49:55]line Версия ККМ: 001 [13:49:55]line ФМ: 0000000000871754 [13:49:55]line ФД: 192200 [13:49:55]line ФПД: 6320474412121 [13:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192200&fm=6320474412121&tin=02508201610067®Number=0000000000091776&sum=70000 [13:49:55]OFD Sender: Processing packet 192200 [packets to send 75, broken 74] [13:49:55]ProducePacketName [13:49:55]name=ofd_packets/00192200 [13:49:55]OFD Sender: To server: pG, [13:49:55]CommunicateWithHost lk.salyk.kg:30040 [13:49:56]ConnectInit lk.salyk.kg [13:49:56]written 0, free lines is 4095 [13:49:56]Connected sock=8 [13:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D E8 07 01 BF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 00 00 00 F4 03 04 00 16 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EE 02 00 35 04 06 00 05 BF 99 A1 D4 59 40 43 7D BB B2 F3 1C 57 [13:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 D9 47 00 95 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EE 02 00 F4 03 04 00 DD E9 1D 67 B6 04 01 00 00 A0 45 27 34 7A BF DC F4 [13:49:56]CommunicateWithHost err = 0 [13:49:56]CheckOFDResponse [13:49:56]1017 (14) - 77093643461234 [13:49:56]1041 (16) - 0000000000871754 [13:49:56]1040 (4) - 192200 [13:49:56]1012 (4) - 27.10.2024 07:21 [13:49:56]1206 (1) - 0 [13:49:56]OFD Sender: Remove packet 192200 [13:49:56]ProducePacketName [13:49:56]name=ofd_packets/00192200 [13:49:56]NVStorageDeleteData [13:49:56]Write to MH i2c: 01 00 00 D3 82 55 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 07 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 07 00 D3 82 00 00 00 00 00 C0 0C 28 [13:49:56]RasterBufferAndPrint [13:49:56]line [13:49:56]line [13:49:56]line [13:49:56]line [13:49:56]line [13:49:56]written 0, free lines is 3273 [13:49:56]MH_Cut [13:49:56]Write to MH i2c: D1 01 00 DA 82 01 2E [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: D1 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: D1 01 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: D1 01 00 DA 82 00 2D [13:49:56]Write to MH i2c: 01 00 00 DB 82 5D [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]OFD Sender: No OFD packet to send [13:49:57]*** Cut start [13:49:57]*** Partial cut [13:49:57]*** CUTSNS_PIN = 1 [13:49:57]*** CUTSNS_PIN = 0 [13:49:57]*** Brake cut motor [13:49:57]Read from MH i2c: 01 [13:49:57]MH_I2C_Read... [13:49:57]*** Stop cut motor [13:49:57]*** Cut end [13:49:57]Read from MH i2c: 01 07 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: 01 07 00 DB 82 00 00 00 00 00 FF 0F 72 [13:49:57]process_action close_receipt done [13:49:57]requested_data is exist [13:49:57]produce_requested_data [13:49:57]requested_item fm.sn is exist - process it [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 11 00 00 [13:49:57]Write to MH i2c: E2 08 00 DC 82 80 11 00 00 00 00 00 00 D8 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 DC 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [13:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:58]wFMCommunicate OK [13:49:58]requested_item fd.num is exist - process it [13:49:58]SAM_PROTO_GetFieldsCounters [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 13 00 00 [13:49:58]Write to MH i2c: E2 08 00 DD 82 80 13 00 00 00 00 00 00 DB [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 62 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 62 00 DD 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [13:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_GetFieldsCounters done [13:49:58]requested_item shift.num is exist - process it [13:49:58]requested_item shift.opened is exist - process it [13:49:58]req_shift_opened [13:49:58]FM_GetShiftState [13:49:58]SAM_PROTO_GetShiftState [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 13 01 00 [13:49:58]Write to MH i2c: E2 08 00 DE 82 80 13 01 00 00 00 00 00 DD [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 0E 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 0E 00 DE 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1E [13:49:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_GetShiftState done [13:49:58]FM_GetShiftState done [13:49:58]req_shift_opened done [13:49:58]requested_item shift.open_date is exist - process it [13:49:58]req_shift_open_date [13:49:58]req_shift_open_date done [13:49:58]produce_requested_data done [13:49:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192200,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:49:58]process_action_free close_receipt [13:49:58]json_value_free [13:49:58]json_value_free done [13:49:58]process_json_proto returns [13:49:58]Send response to host [13:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192200,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:49:58]free response buf [13:49:58]execute_script done [13:49:58]execute_script returns [13:49:58]free content buf [13:49:58]Sock 5.Close socket [13:49:58]Sock 5.Thread stoped [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:04]accept exits with 6 [13:51:04]New connection [13:51:04]New thread 3066817892 created [13:51:04]Thread 3066961252 joined [13:51:04]Waiting for new connection... [13:51:04] Sock 6.Parse request [13:51:04]Sock 6.Check first char [13:51:04]Sock 6.First char is OK [13:51:04]request: POST /json_proto HTTP/1.0 [13:51:04]Method: POST [13:51:04]URL: /json_proto [13:51:04]Method is POST - this is cgi request [13:51:04]url: /json_proto [13:51:04]query_string will be loaded in cgi processing [13:51:04]execute_cgi json_proto POST (null) [13:51:04]execute_cgi path=json_proto method=POST [13:51:04]POST find Content-Length [13:51:04]Host: 172.17.63.131:8080 [13:51:04]Content-Length: 676 [13:51:04]Content-Type: application/json [13:51:04] [13:51:04]POST finish read [13:51:04]Found Content-Length = 676 [13:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:04]execute_script... [13:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:04]POST & json_proto [13:51:04]process_json_proto [13:51:04]json parsed OK: [13:51:04]protocol is kg_v1.0 [13:51:04]action value=close_receipt [13:51:04]process_action close_receipt [13:51:04]cmd_close_receipt [13:51:04]MH_GetDate [13:51:04]Write to MH i2c: F0 00 00 DF 82 50 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: F0 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: F0 09 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: F0 09 00 DF 82 00 5D 45 1E 67 22 05 6E 64 79 [13:51:04]GetLastDocTimeStamp 1730037014 [13:51:04]current date 1730037085 [13:51:04]FM_GetShiftState [13:51:04]SAM_PROTO_GetShiftState [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 13 01 00 [13:51:04]Write to MH i2c: E2 08 00 E0 82 80 13 01 00 00 00 00 00 DF [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 0E 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 0E 00 E0 82 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 20 [13:51:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:51:04]wFMCommunicate OK [13:51:04]SAM_PROTO_GetShiftState done [13:51:04]FM_GetShiftState done [13:51:04]opened in 1729989159 [13:51:04]opened+sec_in_day 1730075559 [13:51:04]quantity*price = 50041 [13:51:04]sum+1 = 50042 [13:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 233 27.10.2024 13:51 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192201 ФПД: 214794949355272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135125&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192201&fm=214794949355272&tin=02508201610067®Number=0000000000091776&sum=50000 [13:51:05]StoreToDocumentArchive [13:51:05]shift 542 fd 192201 [13:51:05]save to /storage/0542/doc_00192201 [13:51:05]save last doc name /storage/0542/doc_00192201 to /storage/kkm_last_doc_name [13:51:05]save OK [13:51:05]Clear old archive folders... [13:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:05]tlvbuf is 01749260 [13:51:05]SAM_PROTO_ClearQueue [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 09 00 00 [13:51:05]Write to MH i2c: E2 08 00 ED 82 80 09 00 00 00 00 00 00 E1 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 03 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 03 00 ED 82 00 90 00 E3 [13:51:05]RAPDU: 90 00 [13:51:05]wFMCommunicate OK [13:51:05]SAM_PROTO_ClearQueue done [13:51:05]KKMCreateOFDPacket [13:51:05]OFDProtocolAddRootSTLVToBuf [13:51:05]FM_MakeSignedData [13:51:05]FM_MakeSignedData [13:51:05]SAM_PROTO_SignData [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 0D 01 02 [13:51:05]Write to MH i2c: E2 08 00 EE 82 80 0D 01 02 00 00 00 00 E9 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 03 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 03 00 EE 82 00 90 00 E4 [13:51:05]RAPDU: 90 00 [13:51:05]wFMCommunicate OK [13:51:05]wFMCommunicate request_size=255 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5D 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EE 02 00 35 04 06 00 C3 [13:51:05]Write to MH i2c: E2 02 01 EF 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 5D 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EE 02 00 35 04 06 00 C3 00 00 29 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 EF 82 00 90 00 E5 [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]wFMCommunicate request_size=10 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 0D 02 02 05 5A D8 A7 E7 08 [13:51:06]Write to MH i2c: E2 0D 00 F0 82 80 0D 02 02 05 00 5A D8 A7 E7 08 00 00 BE [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 F0 82 00 90 00 E6 [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 0D 03 02 [13:51:06]Write to MH i2c: E2 08 00 F1 82 80 0D 03 02 00 00 00 00 EE [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0B 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0B 00 F1 82 00 D7 A6 49 7B 2A 8B EA 57 90 00 26 [13:51:06]RAPDU: D7 A6 49 7B 2A 8B EA 57 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_SignData done [13:51:06]FM_MakeSignedData done [13:51:06]CreateOFDProtocolMessage [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 11 00 00 [13:51:06]Write to MH i2c: E2 08 00 F2 82 80 11 00 00 00 00 00 00 EE [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 17 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 17 00 F2 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [13:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:51:06]wFMCommunicate OK [13:51:06]CreateOFDProtocolMessage done [13:51:06]OFDSenderStorePacket 192201 [13:51:06]StoreOFDPacket docnum=192201 [13:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 D0 07 01 CA 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5D 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EE 02 00 35 04 06 00 C3 5A D8 A7 E7 08 D7 A6 49 7B 2A 8B EA 57 [13:51:06]CheckFolder [13:51:06]dirname=/storage/ofd_packets [13:51:06]CheckFolder done [13:51:06]ProducePacketName [13:51:06]name=ofd_packets/00192201 [13:51:06]NVStorageSaveData ofd_packets/00192201 [13:51:06]File name is /storage/ofd_packets/00192201 [13:51:06]Write 301 bytes [13:51:06]NVStorageSaveData done [13:51:06]OFDSenderStorePacket done [13:51:06]KKMCreateOFDPacket done [13:51:06]NVStorageSaveData kkm_last_timestamp [13:51:06]File name is /storage/kkm_last_timestamp [13:51:06]Write 4 bytes [13:51:06]NVStorageSaveData done [13:51:06]ExternCall_PrintAddStr [13:51:06]wPrintStart [13:51:06]Write to MH i2c: 01 00 00 F3 82 75 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: 01 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: 01 07 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: 01 07 00 F3 82 00 00 00 00 00 FF 0F 8A [13:51:06]RasterBufferAndPrint [13:51:06]line Счет N : (1)31514 [13:51:06]line ИНН: 02508201610067 [13:51:06]line Контрольно-Кассовый Чек [13:51:06]line ПРОДАЖА [13:51:06]line ТРК (МРК, ГНК) : 21 [13:51:06]line Товар: 2710124130 [13:51:06]line Аи-92-К-5 [13:51:06]line 7.480 * 66.90 [13:51:06]line = 500.41 [13:51:06]line НДС 12% НСП 1% [13:51:06]line > о реализуемом товаре [13:51:06]line ОКРУГЛЕНИЕ: -0.41 [13:51:06]line ИТОГО: 500.00 [13:51:06]line Внесено: 500.00 [13:51:06]line СДАЧА: 0.00 [13:51:06]line НСП 1% : 4.43 [13:51:06]line НДС 12% : 53.14 [13:51:06]line Наличными: 500.00 [13:51:06]line Безнал.: 0.00 [13:51:06]line Место: АЗС № 170 "Партнер Нефть" [13:51:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:51:06]line СНО: Общий режим [13:51:06]line Чек 233 27.10.2024 13:51 [13:51:06]line Смена: 542 ФФД: 1.0 [13:51:06]line ЗНМ: 0300000110 [13:51:06]line РНМ: 0000000000091776 [13:51:06]line Версия ККМ: 001 [13:51:06]line ФМ: 0000000000871754 [13:51:06]line ФД: 192201 [13:51:06]line ФПД: 214794949355272 [13:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135125&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192201&fm=214794949355272&tin=02508201610067®Number=0000000000091776&sum=50000 [13:51:06]OFD Sender: Processing packet 192201 [packets to send 75, broken 74] [13:51:06]ProducePacketName [13:51:06]name=ofd_packets/00192201 [13:51:06]OFD Sender: To server: pG, [13:51:06]CommunicateWithHost lk.salyk.kg:30040 [13:51:06]ConnectInit lk.salyk.kg [13:51:06]written 0, free lines is 4095 [13:51:06]Connected sock=8 [13:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 D0 07 01 CA 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5D 45 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EE 02 00 35 04 06 00 C3 5A D8 A7 E7 08 D7 A6 49 7B 2A 8B EA 57 [13:51:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E0 3F 47 00 37 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EE 02 00 F4 03 04 00 24 EA 1D 67 B6 04 01 00 00 31 5F 71 74 50 88 88 5D [13:51:07]CommunicateWithHost err = 0 [13:51:07]CheckOFDResponse [13:51:07]1017 (14) - 77093643461234 [13:51:07]1041 (16) - 0000000000871754 [13:51:07]1040 (4) - 192201 [13:51:07]1012 (4) - 27.10.2024 07:22 [13:51:07]1206 (1) - 0 [13:51:07]OFD Sender: Remove packet 192201 [13:51:07]ProducePacketName [13:51:07]name=ofd_packets/00192201 [13:51:07]NVStorageDeleteData [13:51:07]Write to MH i2c: 01 00 00 1E 83 A1 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 1E 83 00 00 00 00 00 C2 0C 76 [13:51:07]RasterBufferAndPrint [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]line [13:51:07]written 0, free lines is 3274 [13:51:07]MH_Cut [13:51:07]Write to MH i2c: D1 01 00 25 83 01 7A [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 01 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: D1 01 00 25 83 00 79 [13:51:07]Write to MH i2c: 01 00 00 26 83 A9 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]OFD Sender: No OFD packet to send [13:51:08]*** Cut start [13:51:08]*** Partial cut [13:51:08]*** CUTSNS_PIN = 1 [13:51:08]*** CUTSNS_PIN = 0 [13:51:08]*** Brake cut motor [13:51:08]Read from MH i2c: 01 [13:51:08]MH_I2C_Read... [13:51:08]*** Stop cut motor [13:51:08]*** Cut end [13:51:08]Read from MH i2c: 01 07 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: 01 07 00 26 83 00 00 00 00 00 FF 0F BE [13:51:08]process_action close_receipt done [13:51:08]requested_data is exist [13:51:08]produce_requested_data [13:51:08]requested_item fm.sn is exist - process it [13:51:08]wFMCommunicate request_size=4 [13:51:08]MH_SAM_APDU [13:51:08]CAPDU: 80 11 00 00 [13:51:08]Write to MH i2c: E2 08 00 27 83 80 11 00 00 00 00 00 00 24 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:08]Read from MH i2c: E2 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 17 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 17 00 27 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [13:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:51:08]wFMCommunicate OK [13:51:08]requested_item fd.num is exist - process it [13:51:08]SAM_PROTO_GetFieldsCounters [13:51:08]wFMCommunicate request_size=4 [13:51:08]MH_SAM_APDU [13:51:08]CAPDU: 80 13 00 00 [13:51:08]Write to MH i2c: E2 08 00 28 83 80 13 00 00 00 00 00 00 27 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:08]Read from MH i2c: E2 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 62 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 62 00 28 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [13:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:08]wFMCommunicate OK [13:51:08]SAM_PROTO_GetFieldsCounters done [13:51:08]requested_item shift.num is exist - process it [13:51:08]requested_item shift.opened is exist - process it [13:51:08]req_shift_opened [13:51:08]FM_GetShiftState [13:51:08]SAM_PROTO_GetShiftState [13:51:08]wFMCommunicate request_size=4 [13:51:08]MH_SAM_APDU [13:51:08]CAPDU: 80 13 01 00 [13:51:08]Write to MH i2c: E2 08 00 29 83 80 13 01 00 00 00 00 00 29 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:08]Read from MH i2c: E2 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 0E 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 0E 00 29 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6A [13:51:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [13:51:08]wFMCommunicate OK [13:51:08]SAM_PROTO_GetShiftState done [13:51:08]FM_GetShiftState done [13:51:08]req_shift_opened done [13:51:08]requested_item shift.open_date is exist - process it [13:51:08]req_shift_open_date [13:51:08]req_shift_open_date done [13:51:08]produce_requested_data done [13:51:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192201,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [13:51:08]process_action_free close_receipt [13:51:08]json_value_free [13:51:08]json_value_free done [13:51:08]process_json_proto returns [13:51:08]Send response to host [13:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192201,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [13:51:08]free response buf [13:51:08]execute_script done [13:51:08]execute_script returns [13:51:08]free content buf [13:51:08]Sock 6.Close socket [13:51:08]Sock 6.Thread stoped [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:47]accept exits with 5 [14:01:47]New connection [14:01:47]New thread 3066961252 created [14:01:47]Thread 3066817892 joined [14:01:47]Waiting for new connection... [14:01:47] Sock 5.Parse request [14:01:47]Sock 5.Check first char [14:01:47]Sock 5.First char is OK [14:01:47]request: POST /json_proto HTTP/1.0 [14:01:47]Method: POST [14:01:47]URL: /json_proto [14:01:47]Method is POST - this is cgi request [14:01:47]url: /json_proto [14:01:47]query_string will be loaded in cgi processing [14:01:47]execute_cgi json_proto POST (null) [14:01:47]execute_cgi path=json_proto method=POST [14:01:47]POST find Content-Length [14:01:47]Host: 172.17.63.131:8080 [14:01:47]Content-Length: 676 [14:01:47]Content-Type: application/json [14:01:47] [14:01:47]POST finish read [14:01:47]Found Content-Length = 676 [14:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:47]execute_script... [14:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:47]POST & json_proto [14:01:47]process_json_proto [14:01:47]json parsed OK: [14:01:47]protocol is kg_v1.0 [14:01:47]action value=close_receipt [14:01:47]process_action close_receipt [14:01:47]cmd_close_receipt [14:01:47]MH_GetDate [14:01:47]Write to MH i2c: F0 00 00 2A 83 9C [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 09 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 09 00 2A 83 00 DF 47 1E 67 22 05 6E 64 49 [14:01:47]GetLastDocTimeStamp 1730037085 [14:01:47]current date 1730037727 [14:01:47]FM_GetShiftState [14:01:47]SAM_PROTO_GetShiftState [14:01:47]wFMCommunicate request_size=4 [14:01:47]MH_SAM_APDU [14:01:47]CAPDU: 80 13 01 00 [14:01:47]Write to MH i2c: E2 08 00 2B 83 80 13 01 00 00 00 00 00 2B [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:47]Read from MH i2c: E2 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 2B 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6C [14:01:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:01:47]wFMCommunicate OK [14:01:47]SAM_PROTO_GetShiftState done [14:01:47]FM_GetShiftState done [14:01:47]opened in 1729989159 [14:01:47]opened+sec_in_day 1730075559 [14:01:47]quantity*price = 30038 [14:01:47]sum+1 = 30039 [14:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 234 27.10.2024 14:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192202 ФПД: 229821939695411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192202&fm=229821939695411&tin=02508201610067®Number=0000000000091776&sum=30000 [14:01:48]StoreToDocumentArchive [14:01:48]shift 542 fd 192202 [14:01:48]save to /storage/0542/doc_00192202 [14:01:48]save last doc name /storage/0542/doc_00192202 to /storage/kkm_last_doc_name [14:01:48]save OK [14:01:48]Clear old archive folders... [14:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:48]tlvbuf is 01BE16B0 [14:01:48]SAM_PROTO_ClearQueue [14:01:48]wFMCommunicate request_size=4 [14:01:48]MH_SAM_APDU [14:01:48]CAPDU: 80 09 00 00 [14:01:48]Write to MH i2c: E2 08 00 38 83 80 09 00 00 00 00 00 00 2D [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:48]Read from MH i2c: E2 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 03 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 03 00 38 83 00 90 00 2F [14:01:48]RAPDU: 90 00 [14:01:48]wFMCommunicate OK [14:01:48]SAM_PROTO_ClearQueue done [14:01:48]KKMCreateOFDPacket [14:01:48]OFDProtocolAddRootSTLVToBuf [14:01:48]FM_MakeSignedData [14:01:48]FM_MakeSignedData [14:01:48]SAM_PROTO_SignData [14:01:48]wFMCommunicate request_size=4 [14:01:48]MH_SAM_APDU [14:01:48]CAPDU: 80 0D 01 02 [14:01:48]Write to MH i2c: E2 08 00 39 83 80 0D 01 02 00 00 00 00 35 [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:48]Read from MH i2c: E2 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 03 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 03 00 39 83 00 90 00 30 [14:01:48]RAPDU: 90 00 [14:01:48]wFMCommunicate OK [14:01:48]wFMCommunicate request_size=255 [14:01:48]MH_SAM_APDU [14:01:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EE 02 00 35 04 06 00 D1 [14:01:48]Write to MH i2c: E2 02 01 3A 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EE 02 00 35 04 06 00 D1 00 00 FD [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 3A 83 00 90 00 31 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=10 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 02 02 05 05 97 13 BF 33 [14:01:49]Write to MH i2c: E2 0D 00 3B 83 80 0D 02 02 05 00 05 97 13 BF 33 00 00 E3 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 3B 83 00 90 00 32 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 03 02 [14:01:49]Write to MH i2c: E2 08 00 3C 83 80 0D 03 02 00 00 00 00 3A [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 3C 83 00 B0 C9 EA 40 EF 25 DE CF 90 00 9F [14:01:49]RAPDU: B0 C9 EA 40 EF 25 DE CF 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_SignData done [14:01:49]FM_MakeSignedData done [14:01:49]CreateOFDProtocolMessage [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 11 00 00 [14:01:49]Write to MH i2c: E2 08 00 3D 83 80 11 00 00 00 00 00 00 3A [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 17 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 17 00 3D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [14:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:01:49]wFMCommunicate OK [14:01:49]CreateOFDProtocolMessage done [14:01:49]OFDSenderStorePacket 192202 [14:01:49]StoreOFDPacket docnum=192202 [14:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C AD 07 01 D0 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EE 02 00 35 04 06 00 D1 05 97 13 BF 33 B0 C9 EA 40 EF 25 DE CF [14:01:49]CheckFolder [14:01:49]dirname=/storage/ofd_packets [14:01:49]CheckFolder done [14:01:49]ProducePacketName [14:01:49]name=ofd_packets/00192202 [14:01:49]NVStorageSaveData ofd_packets/00192202 [14:01:49]File name is /storage/ofd_packets/00192202 [14:01:49]Write 301 bytes [14:01:49]NVStorageSaveData done [14:01:49]OFDSenderStorePacket done [14:01:49]KKMCreateOFDPacket done [14:01:49]NVStorageSaveData kkm_last_timestamp [14:01:49]File name is /storage/kkm_last_timestamp [14:01:49]Write 4 bytes [14:01:49]NVStorageSaveData done [14:01:49]ExternCall_PrintAddStr [14:01:49]wPrintStart [14:01:49]Write to MH i2c: 01 00 00 3E 83 C1 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 07 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 07 00 3E 83 00 00 00 00 00 FF 0F D6 [14:01:49]RasterBufferAndPrint [14:01:49]line Счет N : (1)31516 [14:01:49]line ИНН: 02508201610067 [14:01:49]line Контрольно-Кассовый Чек [14:01:49]line ПРОДАЖА [14:01:49]line ТРК (МРК, ГНК) : 21 [14:01:49]line Товар: 2710124130 [14:01:49]line Аи-92-К-5 [14:01:49]line 4.490 * 66.90 [14:01:49]line = 300.38 [14:01:49]line НДС 12% НСП 1% [14:01:49]line > о реализуемом товаре [14:01:49]line ОКРУГЛЕНИЕ: -0.38 [14:01:49]line ИТОГО: 300.00 [14:01:49]line Внесено: 300.00 [14:01:49]line СДАЧА: 0.00 [14:01:49]line НСП 1% : 2.66 [14:01:49]line НДС 12% : 31.90 [14:01:49]line Наличными: 300.00 [14:01:49]line Безнал.: 0.00 [14:01:49]line Место: АЗС № 170 "Партнер Нефть" [14:01:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:01:49]line СНО: Общий режим [14:01:49]line Чек 234 27.10.2024 14:02 [14:01:49]line Смена: 542 ФФД: 1.0 [14:01:49]line ЗНМ: 0300000110 [14:01:49]line РНМ: 0000000000091776 [14:01:49]line Версия ККМ: 001 [14:01:49]line ФМ: 0000000000871754 [14:01:49]line ФД: 192202 [14:01:49]line ФПД: 229821939695411 [14:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140207&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192202&fm=229821939695411&tin=02508201610067®Number=0000000000091776&sum=30000 [14:01:49]OFD Sender: Processing packet 192202 [packets to send 75, broken 74] [14:01:49]ProducePacketName [14:01:49]name=ofd_packets/00192202 [14:01:49]OFD Sender: To server: pG, [14:01:49]CommunicateWithHost lk.salyk.kg:30040 [14:01:49]ConnectInit lk.salyk.kg [14:01:49]written 0, free lines is 4095 [14:01:49]Connected sock=8 [14:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C AD 07 01 D0 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EE 02 00 35 04 06 00 D1 05 97 13 BF 33 B0 C9 EA 40 EF 25 DE CF [14:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 50 07 47 00 78 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EE 02 00 F4 03 04 00 A7 EC 1D 67 B6 04 01 00 00 0C 79 19 06 90 19 EA 69 [14:01:49]CommunicateWithHost err = 0 [14:01:49]CheckOFDResponse [14:01:49]1017 (14) - 77093643461234 [14:01:49]1041 (16) - 0000000000871754 [14:01:49]1040 (4) - 192202 [14:01:49]1012 (4) - 27.10.2024 07:32 [14:01:49]1206 (1) - 0 [14:01:49]OFD Sender: Remove packet 192202 [14:01:49]ProducePacketName [14:01:49]name=ofd_packets/00192202 [14:01:49]NVStorageDeleteData [14:01:50]Write to MH i2c: 01 00 00 69 83 EC [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 69 83 00 00 00 00 00 D9 0C D8 [14:01:50]RasterBufferAndPrint [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]written 0, free lines is 3296 [14:01:50]MH_Cut [14:01:50]Write to MH i2c: D1 01 00 70 83 01 C5 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 01 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: D1 01 00 70 83 00 C4 [14:01:50]Write to MH i2c: 01 00 00 71 83 F4 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]OFD Sender: No OFD packet to send [14:01:50]*** Cut start [14:01:50]*** Partial cut [14:01:50]*** CUTSNS_PIN = 1 [14:01:50]*** CUTSNS_PIN = 0 [14:01:51]*** Brake cut motor [14:01:51]Read from MH i2c: 01 [14:01:51]MH_I2C_Read... [14:01:51]*** Stop cut motor [14:01:51]*** Cut end [14:01:51]Read from MH i2c: 01 07 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: 01 07 00 71 83 00 00 00 00 00 FF 0F 09 [14:01:51]process_action close_receipt done [14:01:51]requested_data is exist [14:01:51]produce_requested_data [14:01:51]requested_item fm.sn is exist - process it [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 11 00 00 [14:01:51]Write to MH i2c: E2 08 00 72 83 80 11 00 00 00 00 00 00 6F [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 17 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 17 00 72 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [14:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:01:51]wFMCommunicate OK [14:01:51]requested_item fd.num is exist - process it [14:01:51]SAM_PROTO_GetFieldsCounters [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 13 00 00 [14:01:51]Write to MH i2c: E2 08 00 73 83 80 13 00 00 00 00 00 00 72 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 62 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 62 00 73 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_GetFieldsCounters done [14:01:51]requested_item shift.num is exist - process it [14:01:51]requested_item shift.opened is exist - process it [14:01:51]req_shift_opened [14:01:51]FM_GetShiftState [14:01:51]SAM_PROTO_GetShiftState [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 13 01 00 [14:01:51]Write to MH i2c: E2 08 00 74 83 80 13 01 00 00 00 00 00 74 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 74 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B5 [14:01:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_GetShiftState done [14:01:51]FM_GetShiftState done [14:01:51]req_shift_opened done [14:01:51]requested_item shift.open_date is exist - process it [14:01:51]req_shift_open_date [14:01:51]req_shift_open_date done [14:01:51]produce_requested_data done [14:01:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192202,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:01:51]process_action_free close_receipt [14:01:51]json_value_free [14:01:51]json_value_free done [14:01:51]process_json_proto returns [14:01:51]Send response to host [14:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192202,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:01:51]free response buf [14:01:51]execute_script done [14:01:51]execute_script returns [14:01:51]free content buf [14:01:51]Sock 5.Close socket [14:01:51]Sock 5.Thread stoped [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:00]accept exits with 6 [14:02:00]New connection [14:02:00]New thread 3066817892 created [14:02:00]Thread 3066961252 joined [14:02:00]Waiting for new connection... [14:02:00] Sock 6.Parse request [14:02:00]Sock 6.Check first char [14:02:00]Sock 6.First char is OK [14:02:00]request: POST /json_proto HTTP/1.0 [14:02:00]Method: POST [14:02:00]URL: /json_proto [14:02:00]Method is POST - this is cgi request [14:02:00]url: /json_proto [14:02:00]query_string will be loaded in cgi processing [14:02:00]execute_cgi json_proto POST (null) [14:02:00]execute_cgi path=json_proto method=POST [14:02:00]POST find Content-Length [14:02:00]Host: 172.17.63.131:8080 [14:02:00]Content-Length: 678 [14:02:00]Content-Type: application/json [14:02:00] [14:02:00]POST finish read [14:02:00]Found Content-Length = 678 [14:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31515", "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" : 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" ] } } [14:02:00]execute_script... [14:02: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)31515", "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" : 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" ] } } [14:02:00]POST & json_proto [14:02:00]process_json_proto [14:02:00]json parsed OK: [14:02:00]protocol is kg_v1.0 [14:02:00]action value=close_receipt [14:02:00]process_action close_receipt [14:02:00]cmd_close_receipt [14:02:00]MH_GetDate [14:02:00]Write to MH i2c: F0 00 00 75 83 E7 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 09 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: F0 09 00 75 83 00 ED 47 1E 67 22 05 6E 64 A2 [14:02:00]GetLastDocTimeStamp 1730037727 [14:02:00]current date 1730037741 [14:02:00]FM_GetShiftState [14:02:00]SAM_PROTO_GetShiftState [14:02:00]wFMCommunicate request_size=4 [14:02:00]MH_SAM_APDU [14:02:00]CAPDU: 80 13 01 00 [14:02:00]Write to MH i2c: E2 08 00 76 83 80 13 01 00 00 00 00 00 76 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0E 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0E 00 76 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B7 [14:02:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:02:00]wFMCommunicate OK [14:02:00]SAM_PROTO_GetShiftState done [14:02:00]FM_GetShiftState done [14:02:00]opened in 1729989159 [14:02:00]opened+sec_in_day 1730075559 [14:02:00]quantity*price = 100050 [14:02:00]sum+1 = 100052 [14:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 235 27.10.2024 14:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192203 ФПД: 112097278806632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192203&fm=112097278806632&tin=02508201610067®Number=0000000000091776&sum=100000 [14:02:01]StoreToDocumentArchive [14:02:01]shift 542 fd 192203 [14:02:01]save to /storage/0542/doc_00192203 [14:02:01]save last doc name /storage/0542/doc_00192203 to /storage/kkm_last_doc_name [14:02:01]save OK [14:02:01]Clear old archive folders... [14:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:02:01]tlvbuf is 01748C50 [14:02:01]SAM_PROTO_ClearQueue [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 09 00 00 [14:02:01]Write to MH i2c: E2 08 00 83 83 80 09 00 00 00 00 00 00 78 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 83 83 00 90 00 7A [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_ClearQueue done [14:02:01]KKMCreateOFDPacket [14:02:01]OFDProtocolAddRootSTLVToBuf [14:02:01]FM_MakeSignedData [14:02:01]FM_MakeSignedData [14:02:01]SAM_PROTO_SignData [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 0D 01 02 [14:02:01]Write to MH i2c: E2 08 00 84 83 80 0D 01 02 00 00 00 00 80 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 03 00 84 83 00 90 00 7B [14:02:01]RAPDU: 90 00 [14:02:01]wFMCommunicate OK [14:02:01]wFMCommunicate request_size=255 [14:02:01]MH_SAM_APDU [14:02: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 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 EB 00 00 00 F4 03 04 00 ED 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EE 02 00 35 04 06 00 65 F3 AE 7B [14:02:01]Write to MH i2c: E2 02 01 85 83 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 EB 00 00 00 F4 03 04 00 ED 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EE 02 00 35 04 06 00 65 F3 AE 7B 00 00 0A [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:02]Read from MH i2c: E2 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 03 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 03 00 85 83 00 90 00 7C [14:02:02]RAPDU: 90 00 [14:02:02]wFMCommunicate OK [14:02:02]wFMCommunicate request_size=7 [14:02:02]MH_SAM_APDU [14:02:02]CAPDU: 80 0D 02 02 02 CA 68 [14:02:02]Write to MH i2c: E2 0A 00 86 83 80 0D 02 02 02 00 CA 68 00 00 B9 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:02]Read from MH i2c: E2 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 03 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 03 00 86 83 00 90 00 7D [14:02:02]RAPDU: 90 00 [14:02:02]wFMCommunicate OK [14:02:02]wFMCommunicate request_size=4 [14:02:02]MH_SAM_APDU [14:02:02]CAPDU: 80 0D 03 02 [14:02:02]Write to MH i2c: E2 08 00 87 83 80 0D 03 02 00 00 00 00 85 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:02]Read from MH i2c: E2 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 0B 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 0B 00 87 83 00 D2 F8 0E 0B 57 B7 09 A0 90 00 20 [14:02:02]RAPDU: D2 F8 0E 0B 57 B7 09 A0 90 00 [14:02:02]wFMCommunicate OK [14:02:02]SAM_PROTO_SignData done [14:02:02]FM_MakeSignedData done [14:02:02]CreateOFDProtocolMessage [14:02:02]wFMCommunicate request_size=4 [14:02:02]MH_SAM_APDU [14:02:02]CAPDU: 80 11 00 00 [14:02:02]Write to MH i2c: E2 08 00 88 83 80 11 00 00 00 00 00 00 85 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:02]Read from MH i2c: E2 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 17 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 17 00 88 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [14:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:02:02]wFMCommunicate OK [14:02:02]CreateOFDProtocolMessage done [14:02:02]OFDSenderStorePacket 192203 [14:02:02]StoreOFDPacket docnum=192203 [14:02:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 32 F6 04 01 F1 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 EB 00 00 00 F4 03 04 00 ED 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EE 02 00 35 04 06 00 65 F3 AE 7B CA 68 D2 F8 0E 0B 57 B7 09 A0 [14:02:02]CheckFolder [14:02:02]dirname=/storage/ofd_packets [14:02:02]CheckFolder done [14:02:02]ProducePacketName [14:02:02]name=ofd_packets/00192203 [14:02:02]NVStorageSaveData ofd_packets/00192203 [14:02:02]File name is /storage/ofd_packets/00192203 [14:02:02]Write 298 bytes [14:02:02]NVStorageSaveData done [14:02:02]OFDSenderStorePacket done [14:02:02]KKMCreateOFDPacket done [14:02:02]NVStorageSaveData kkm_last_timestamp [14:02:02]File name is /storage/kkm_last_timestamp [14:02:02]Write 4 bytes [14:02:02]NVStorageSaveData done [14:02:02]ExternCall_PrintAddStr [14:02:02]wPrintStart [14:02:02]Write to MH i2c: 01 00 00 89 83 0C [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 07 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: 01 07 00 89 83 00 00 00 00 00 FF 0F 21 [14:02:02]RasterBufferAndPrint [14:02:02]line Счет N : (1)31515 [14:02:02]line ИНН: 02508201610067 [14:02:02]line Контрольно-Кассовый Чек [14:02:02]line ПРОДАЖА [14:02:02]line ТРК (МРК, ГНК) : 11 [14:02:02]line Товар: 2710194210 [14:02:02]line ДТ-К-5 [14:02:02]line 13.130 * 76.20 [14:02:02]line = 1000.51 [14:02:02]line НДС 12% НСП 1% [14:02:02]line > о реализуемом товаре [14:02:02]line ОКРУГЛЕНИЕ: -0.51 [14:02:02]line ИТОГО: 1000.00 [14:02:02]line Внесено: 1000.00 [14:02:02]line СДАЧА: 0.00 [14:02:02]line НСП 1% : 8.85 [14:02:02]line НДС 12% : 106.25 [14:02:02]line Наличными: 1000.00 [14:02:02]line Безнал.: 0.00 [14:02:02]line Место: АЗС № 170 "Партнер Нефть" [14:02:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:02:02]line СНО: Общий режим [14:02:02]line Чек 235 27.10.2024 14:02 [14:02:02]line Смена: 542 ФФД: 1.0 [14:02:02]line ЗНМ: 0300000110 [14:02:02]line РНМ: 0000000000091776 [14:02:02]line Версия ККМ: 001 [14:02:02]line ФМ: 0000000000871754 [14:02:02]line ФД: 192203 [14:02:02]line ФПД: 112097278806632 [14:02:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192203&fm=112097278806632&tin=02508201610067®Number=0000000000091776&sum=100000 [14:02:02]OFD Sender: Processing packet 192203 [packets to send 75, broken 74] [14:02:02]ProducePacketName [14:02:02]name=ofd_packets/00192203 [14:02:02]OFD Sender: To server: pG, [14:02:02]CommunicateWithHost lk.salyk.kg:30040 [14:02:02]ConnectInit lk.salyk.kg [14:02:02]written 0, free lines is 4095 [14:02:02]Connected sock=8 [14:02:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 32 F6 04 01 F1 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 EB 00 00 00 F4 03 04 00 ED 47 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EE 02 00 35 04 06 00 65 F3 AE 7B CA 68 D2 F8 0E 0B 57 B7 09 A0 [14:02:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 98 47 00 8D C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EE 02 00 F4 03 04 00 B4 EC 1D 67 B6 04 01 00 00 4F 04 33 24 C1 8F 5A 23 [14:02:03]CommunicateWithHost err = 0 [14:02:03]CheckOFDResponse [14:02:03]1017 (14) - 77093643461234 [14:02:03]1041 (16) - 0000000000871754 [14:02:03]1040 (4) - 192203 [14:02:03]1012 (4) - 27.10.2024 07:33 [14:02:03]1206 (1) - 0 [14:02:03]OFD Sender: Remove packet 192203 [14:02:03]ProducePacketName [14:02:03]name=ofd_packets/00192203 [14:02:03]NVStorageDeleteData [14:02:03]Write to MH i2c: 01 00 00 B4 83 37 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: 01 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: 01 07 00 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: 01 07 00 B4 83 00 00 00 00 00 B9 0C 03 [14:02:03]RasterBufferAndPrint [14:02:03]line [14:02:03]line [14:02:03]line [14:02:03]line [14:02:03]line [14:02:03]written 0, free lines is 3266 [14:02:03]MH_Cut [14:02:03]Write to MH i2c: D1 01 00 BB 83 01 10 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: D1 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: D1 01 00 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: D1 01 00 BB 83 00 0F [14:02:03]Write to MH i2c: 01 00 00 BC 83 3F [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]OFD Sender: No OFD packet to send [14:02:04]*** Cut start [14:02:04]*** Partial cut [14:02:04]*** CUTSNS_PIN = 1 [14:02:04]*** CUTSNS_PIN = 0 [14:02:04]*** Brake cut motor [14:02:04]Read from MH i2c: 01 [14:02:04]MH_I2C_Read... [14:02:04]*** Stop cut motor [14:02:04]*** Cut end [14:02:04]Read from MH i2c: 01 07 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: 01 07 00 BC 83 00 00 00 00 00 FF 0F 54 [14:02:04]process_action close_receipt done [14:02:04]requested_data is exist [14:02:04]produce_requested_data [14:02:04]requested_item fm.sn is exist - process it [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 11 00 00 [14:02:04]Write to MH i2c: E2 08 00 BD 83 80 11 00 00 00 00 00 00 BA [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 BD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [14:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:02:04]wFMCommunicate OK [14:02:04]requested_item fd.num is exist - process it [14:02:04]SAM_PROTO_GetFieldsCounters [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 13 00 00 [14:02:04]Write to MH i2c: E2 08 00 BE 83 80 13 00 00 00 00 00 00 BD [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 62 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 62 00 BE 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [14:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetFieldsCounters done [14:02:04]requested_item shift.num is exist - process it [14:02:04]requested_item shift.opened is exist - process it [14:02:04]req_shift_opened [14:02:04]FM_GetShiftState [14:02:04]SAM_PROTO_GetShiftState [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 13 01 00 [14:02:04]Write to MH i2c: E2 08 00 BF 83 80 13 01 00 00 00 00 00 BF [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 BF 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 00 [14:02:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetShiftState done [14:02:04]FM_GetShiftState done [14:02:04]req_shift_opened done [14:02:04]requested_item shift.open_date is exist - process it [14:02:04]req_shift_open_date [14:02:04]req_shift_open_date done [14:02:04]produce_requested_data done [14:02:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192203,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:02:04]process_action_free close_receipt [14:02:04]json_value_free [14:02:04]json_value_free done [14:02:04]process_json_proto returns [14:02:04]Send response to host [14:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192203,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:02:04]free response buf [14:02:04]execute_script done [14:02:04]execute_script returns [14:02:04]free content buf [14:02:04]Sock 6.Close socket [14:02:04]Sock 6.Thread stoped [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:11]accept exits with 5 [14:05:11]New connection [14:05:11]New thread 3066961252 created [14:05:11]Thread 3066817892 joined [14:05:11]Waiting for new connection... [14:05:11] Sock 5.Parse request [14:05:11]Sock 5.Check first char [14:05:11]Sock 5.First char is OK [14:05:11]request: POST /json_proto HTTP/1.0 [14:05:11]Method: POST [14:05:11]URL: /json_proto [14:05:11]Method is POST - this is cgi request [14:05:11]url: /json_proto [14:05:11]query_string will be loaded in cgi processing [14:05:11]execute_cgi json_proto POST (null) [14:05:11]execute_cgi path=json_proto method=POST [14:05:11]POST find Content-Length [14:05:11]Host: 172.17.63.131:8080 [14:05:11]Content-Length: 678 [14:05:11]Content-Type: application/json [14:05:11] [14:05:11]POST finish read [14:05:11]Found Content-Length = 678 [14:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31517", "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" : 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" ] } } [14:05:11]execute_script... [14:05:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31517", "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" : 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" ] } } [14:05:11]POST & json_proto [14:05:11]process_json_proto [14:05:11]json parsed OK: [14:05:11]protocol is kg_v1.0 [14:05:11]action value=close_receipt [14:05:11]process_action close_receipt [14:05:11]cmd_close_receipt [14:05:11]MH_GetDate [14:05:11]Write to MH i2c: F0 00 00 C0 83 32 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 09 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 09 00 C0 83 00 AB 48 1E 67 22 05 6E 64 AC [14:05:11]GetLastDocTimeStamp 1730037741 [14:05:11]current date 1730037931 [14:05:11]FM_GetShiftState [14:05:11]SAM_PROTO_GetShiftState [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 13 01 00 [14:05:11]Write to MH i2c: E2 08 00 C1 83 80 13 01 00 00 00 00 00 C1 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0E 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0E 00 C1 83 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 02 [14:05:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:05:11]wFMCommunicate OK [14:05:11]SAM_PROTO_GetShiftState done [14:05:11]FM_GetShiftState done [14:05:11]opened in 1729989159 [14:05:11]opened+sec_in_day 1730075559 [14:05:11]quantity*price = 100050 [14:05:11]sum+1 = 100052 [14:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 236 27.10.2024 14:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192204 ФПД: 20689294992681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192204&fm=20689294992681&tin=02508201610067®Number=0000000000091776&sum=100000 [14:05:12]StoreToDocumentArchive [14:05:12]shift 542 fd 192204 [14:05:12]save to /storage/0542/doc_00192204 [14:05:12]save last doc name /storage/0542/doc_00192204 to /storage/kkm_last_doc_name [14:05:12]save OK [14:05:12]Clear old archive folders... [14:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:12]tlvbuf is 01DFBDE0 [14:05:12]SAM_PROTO_ClearQueue [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 09 00 00 [14:05:12]Write to MH i2c: E2 08 00 CE 83 80 09 00 00 00 00 00 00 C3 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 CE 83 00 90 00 C5 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]SAM_PROTO_ClearQueue done [14:05:12]KKMCreateOFDPacket [14:05:12]OFDProtocolAddRootSTLVToBuf [14:05:12]FM_MakeSignedData [14:05:12]FM_MakeSignedData [14:05:12]SAM_PROTO_SignData [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 01 02 [14:05:12]Write to MH i2c: E2 08 00 CF 83 80 0D 01 02 00 00 00 00 CB [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 CF 83 00 90 00 C6 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]wFMCommunicate request_size=255 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 AC 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EE 02 00 35 04 06 00 12 D1 1A 14 [14:05:12]Write to MH i2c: E2 02 01 D0 83 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 EC 00 00 00 F4 03 04 00 AC 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EE 02 00 35 04 06 00 12 D1 1A 14 00 00 A7 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 03 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 03 00 D0 83 00 90 00 C7 [14:05:13]RAPDU: 90 00 [14:05:13]wFMCommunicate OK [14:05:13]wFMCommunicate request_size=7 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 0D 02 02 02 25 29 [14:05:13]Write to MH i2c: E2 0A 00 D1 83 80 0D 02 02 02 00 25 29 00 00 20 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 03 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 03 00 D1 83 00 90 00 C8 [14:05:13]RAPDU: 90 00 [14:05:13]wFMCommunicate OK [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 0D 03 02 [14:05:13]Write to MH i2c: E2 08 00 D2 83 80 0D 03 02 00 00 00 00 D0 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0B 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0B 00 D2 83 00 81 03 10 5D FF 78 DC 4D 90 00 62 [14:05:13]RAPDU: 81 03 10 5D FF 78 DC 4D 90 00 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_SignData done [14:05:13]FM_MakeSignedData done [14:05:13]CreateOFDProtocolMessage [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 11 00 00 [14:05:13]Write to MH i2c: E2 08 00 D3 83 80 11 00 00 00 00 00 00 D0 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 D3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [14:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:13]wFMCommunicate OK [14:05:13]CreateOFDProtocolMessage done [14:05:13]OFDSenderStorePacket 192204 [14:05:13]StoreOFDPacket docnum=192204 [14:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9C 31 04 01 71 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 AC 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EE 02 00 35 04 06 00 12 D1 1A 14 25 29 81 03 10 5D FF 78 DC 4D [14:05:13]CheckFolder [14:05:13]dirname=/storage/ofd_packets [14:05:13]CheckFolder done [14:05:13]ProducePacketName [14:05:13]name=ofd_packets/00192204 [14:05:13]NVStorageSaveData ofd_packets/00192204 [14:05:13]File name is /storage/ofd_packets/00192204 [14:05:13]Write 298 bytes [14:05:13]NVStorageSaveData done [14:05:13]OFDSenderStorePacket done [14:05:13]KKMCreateOFDPacket done [14:05:13]NVStorageSaveData kkm_last_timestamp [14:05:13]File name is /storage/kkm_last_timestamp [14:05:13]Write 4 bytes [14:05:13]NVStorageSaveData done [14:05:13]ExternCall_PrintAddStr [14:05:13]wPrintStart [14:05:13]Write to MH i2c: 01 00 00 D4 83 57 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 07 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 07 00 D4 83 00 00 00 00 00 FF 0F 6C [14:05:13]RasterBufferAndPrint [14:05:13]line Счет N : (1)31517 [14:05:13]line ИНН: 02508201610067 [14:05:13]line Контрольно-Кассовый Чек [14:05:13]line ПРОДАЖА [14:05:13]line ТРК (МРК, ГНК) : 11 [14:05:13]line Товар: 2710194210 [14:05:13]line ДТ-К-5 [14:05:13]line 13.130 * 76.20 [14:05:13]line = 1000.51 [14:05:13]line НДС 12% НСП 1% [14:05:13]line > о реализуемом товаре [14:05:13]line ОКРУГЛЕНИЕ: -0.51 [14:05:13]line ИТОГО: 1000.00 [14:05:13]line Внесено: 1000.00 [14:05:13]line СДАЧА: 0.00 [14:05:13]line НСП 1% : 8.85 [14:05:13]line НДС 12% : 106.25 [14:05:13]line Наличными: 1000.00 [14:05:13]line Безнал.: 0.00 [14:05:13]line Место: АЗС № 170 "Партнер Нефть" [14:05:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:05:13]line СНО: Общий режим [14:05:13]line Чек 236 27.10.2024 14:05 [14:05:13]line Смена: 542 ФФД: 1.0 [14:05:13]line ЗНМ: 0300000110 [14:05:13]line РНМ: 0000000000091776 [14:05:13]line Версия ККМ: 001 [14:05:13]line ФМ: 0000000000871754 [14:05:13]line ФД: 192204 [14:05:13]line ФПД: 20689294992681 [14:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192204&fm=20689294992681&tin=02508201610067®Number=0000000000091776&sum=100000 [14:05:13]OFD Sender: Processing packet 192204 [packets to send 75, broken 74] [14:05:13]ProducePacketName [14:05:13]name=ofd_packets/00192204 [14:05:13]OFD Sender: To server: pG, [14:05:13]CommunicateWithHost lk.salyk.kg:30040 [14:05:13]ConnectInit lk.salyk.kg [14:05:13]written 0, free lines is 4095 [14:05:13]Connected sock=8 [14:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9C 31 04 01 71 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 AC 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EE 02 00 35 04 06 00 12 D1 1A 14 25 29 81 03 10 5D FF 78 DC 4D [14:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5D 9A 47 00 E5 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EE 02 00 F4 03 04 00 73 ED 1D 67 B6 04 01 00 00 59 C2 FE 02 68 BD C0 4F [14:05:13]CommunicateWithHost err = 0 [14:05:13]CheckOFDResponse [14:05:13]1017 (14) - 77093643461234 [14:05:13]1041 (16) - 0000000000871754 [14:05:13]1040 (4) - 192204 [14:05:13]1012 (4) - 27.10.2024 07:36 [14:05:13]1206 (1) - 0 [14:05:13]OFD Sender: Remove packet 192204 [14:05:13]ProducePacketName [14:05:13]name=ofd_packets/00192204 [14:05:13]NVStorageDeleteData [14:05:14]Write to MH i2c: 01 00 00 FF 83 82 [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 07 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: 01 07 00 FF 83 00 00 00 00 00 B3 0C 48 [14:05:14]RasterBufferAndPrint [14:05:14]line [14:05:14]line [14:05:14]line [14:05:14]line [14:05:14]line [14:05:14]written 0, free lines is 3258 [14:05:14]MH_Cut [14:05:14]Write to MH i2c: D1 01 00 06 84 01 5C [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: D1 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: D1 01 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: D1 01 00 06 84 00 5B [14:05:14]Write to MH i2c: 01 00 00 07 84 8B [14:05:14]Write i2c OK [14:05:14]MH_I2C_Read... [14:05:14]OFD Sender: No OFD packet to send [14:05:14]*** Cut start [14:05:14]*** Partial cut [14:05:14]*** CUTSNS_PIN = 1 [14:05:15]*** CUTSNS_PIN = 0 [14:05:15]*** Brake cut motor [14:05:15]Read from MH i2c: 01 [14:05:15]MH_I2C_Read... [14:05:15]*** Stop cut motor [14:05:15]*** Cut end [14:05:15]Read from MH i2c: 01 07 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: 01 07 00 07 84 00 00 00 00 00 FF 0F A0 [14:05:15]process_action close_receipt done [14:05:15]requested_data is exist [14:05:15]produce_requested_data [14:05:15]requested_item fm.sn is exist - process it [14:05:15]wFMCommunicate request_size=4 [14:05:15]MH_SAM_APDU [14:05:15]CAPDU: 80 11 00 00 [14:05:15]Write to MH i2c: E2 08 00 08 84 80 11 00 00 00 00 00 00 06 [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:15]Read from MH i2c: E2 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 17 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 17 00 08 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [14:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:15]wFMCommunicate OK [14:05:15]requested_item fd.num is exist - process it [14:05:15]SAM_PROTO_GetFieldsCounters [14:05:15]wFMCommunicate request_size=4 [14:05:15]MH_SAM_APDU [14:05:15]CAPDU: 80 13 00 00 [14:05:15]Write to MH i2c: E2 08 00 09 84 80 13 00 00 00 00 00 00 09 [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:15]Read from MH i2c: E2 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 62 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 62 00 09 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:05:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:15]wFMCommunicate OK [14:05:15]SAM_PROTO_GetFieldsCounters done [14:05:15]requested_item shift.num is exist - process it [14:05:15]requested_item shift.opened is exist - process it [14:05:15]req_shift_opened [14:05:15]FM_GetShiftState [14:05:15]SAM_PROTO_GetShiftState [14:05:15]wFMCommunicate request_size=4 [14:05:15]MH_SAM_APDU [14:05:15]CAPDU: 80 13 01 00 [14:05:15]Write to MH i2c: E2 08 00 0A 84 80 13 01 00 00 00 00 00 0B [14:05:15]Write i2c OK [14:05:15]MH_I2C_Read... [14:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:15]Read from MH i2c: E2 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 0E 00 [14:05:15]MH_I2C_Read... [14:05:15]Read from MH i2c: E2 0E 00 0A 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4C [14:05:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:05:15]wFMCommunicate OK [14:05:15]SAM_PROTO_GetShiftState done [14:05:15]FM_GetShiftState done [14:05:15]req_shift_opened done [14:05:15]requested_item shift.open_date is exist - process it [14:05:15]req_shift_open_date [14:05:15]req_shift_open_date done [14:05:15]produce_requested_data done [14:05:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192204,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:05:15]process_action_free close_receipt [14:05:15]json_value_free [14:05:15]json_value_free done [14:05:15]process_json_proto returns [14:05:15]Send response to host [14:05:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192204,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:05:15]free response buf [14:05:15]execute_script done [14:05:15]execute_script returns [14:05:15]free content buf [14:05:15]Sock 5.Close socket [14:05:15]Sock 5.Thread stoped [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:19]accept exits with 6 [14:06:19]New connection [14:06:19]New thread 3066817892 created [14:06:19]Thread 3066961252 joined [14:06:19]Waiting for new connection... [14:06:19] Sock 6.Parse request [14:06:19]Sock 6.Check first char [14:06:19]Sock 6.First char is OK [14:06:19]request: POST /json_proto HTTP/1.0 [14:06:19]Method: POST [14:06:19]URL: /json_proto [14:06:19]Method is POST - this is cgi request [14:06:19]url: /json_proto [14:06:19]query_string will be loaded in cgi processing [14:06:19]execute_cgi json_proto POST (null) [14:06:19]execute_cgi path=json_proto method=POST [14:06:19]POST find Content-Length [14:06:19]Host: 172.17.63.131:8080 [14:06:19]Content-Length: 676 [14:06:19]Content-Type: application/json [14:06:19] [14:06:19]POST finish read [14:06:19]Found Content-Length = 676 [14:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:19]execute_script... [14:06: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)31518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:19]POST & json_proto [14:06:19]process_json_proto [14:06:19]json parsed OK: [14:06:19]protocol is kg_v1.0 [14:06:19]action value=close_receipt [14:06:19]process_action close_receipt [14:06:19]cmd_close_receipt [14:06:19]MH_GetDate [14:06:19]Write to MH i2c: F0 00 00 0B 84 7E [14:06:19]Write i2c OK [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: F0 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: F0 09 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: F0 09 00 0B 84 00 F0 48 1E 67 22 05 6E 64 3D [14:06:19]GetLastDocTimeStamp 1730037932 [14:06:19]current date 1730038000 [14:06:19]FM_GetShiftState [14:06:19]SAM_PROTO_GetShiftState [14:06:19]wFMCommunicate request_size=4 [14:06:19]MH_SAM_APDU [14:06:19]CAPDU: 80 13 01 00 [14:06:19]Write to MH i2c: E2 08 00 0C 84 80 13 01 00 00 00 00 00 0D [14:06:19]Write i2c OK [14:06:19]MH_I2C_Read... [14:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:19]Read from MH i2c: E2 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 0C 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4E [14:06:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:06:19]wFMCommunicate OK [14:06:19]SAM_PROTO_GetShiftState done [14:06:19]FM_GetShiftState done [14:06:19]opened in 1729989159 [14:06:19]opened+sec_in_day 1730075559 [14:06:19]quantity*price = 60009 [14:06:19]sum+1 = 60010 [14:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 237 27.10.2024 14:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192205 ФПД: 54967367562269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192205&fm=54967367562269&tin=02508201610067®Number=0000000000091776&sum=60000 [14:06:20]StoreToDocumentArchive [14:06:20]shift 542 fd 192205 [14:06:20]save to /storage/0542/doc_00192205 [14:06:20]save last doc name /storage/0542/doc_00192205 to /storage/kkm_last_doc_name [14:06:20]save OK [14:06:20]Clear old archive folders... [14:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:20]tlvbuf is 01DFBEC0 [14:06:20]SAM_PROTO_ClearQueue [14:06:20]wFMCommunicate request_size=4 [14:06:20]MH_SAM_APDU [14:06:20]CAPDU: 80 09 00 00 [14:06:20]Write to MH i2c: E2 08 00 19 84 80 09 00 00 00 00 00 00 0F [14:06:20]Write i2c OK [14:06:20]MH_I2C_Read... [14:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:20]Read from MH i2c: E2 [14:06:20]MH_I2C_Read... [14:06:20]Read from MH i2c: E2 03 00 [14:06:20]MH_I2C_Read... [14:06:20]Read from MH i2c: E2 03 00 19 84 00 90 00 11 [14:06:20]RAPDU: 90 00 [14:06:20]wFMCommunicate OK [14:06:20]SAM_PROTO_ClearQueue done [14:06:20]KKMCreateOFDPacket [14:06:20]OFDProtocolAddRootSTLVToBuf [14:06:20]FM_MakeSignedData [14:06:20]FM_MakeSignedData [14:06:20]SAM_PROTO_SignData [14:06:20]wFMCommunicate request_size=4 [14:06:20]MH_SAM_APDU [14:06:20]CAPDU: 80 0D 01 02 [14:06:20]Write to MH i2c: E2 08 00 1A 84 80 0D 01 02 00 00 00 00 17 [14:06:20]Write i2c OK [14:06:20]MH_I2C_Read... [14:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:20]Read from MH i2c: E2 [14:06:20]MH_I2C_Read... [14:06:20]Read from MH i2c: E2 03 00 [14:06:20]MH_I2C_Read... [14:06:20]Read from MH i2c: E2 03 00 1A 84 00 90 00 12 [14:06:20]RAPDU: 90 00 [14:06:20]wFMCommunicate OK [14:06:20]wFMCommunicate request_size=255 [14:06:20]MH_SAM_APDU [14:06:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F0 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EE 02 00 35 04 06 00 31 [14:06:20]Write to MH i2c: E2 02 01 1B 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F0 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EE 02 00 35 04 06 00 31 00 00 40 [14:06:20]Write i2c OK [14:06:20]MH_I2C_Read... [14:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:21]Read from MH i2c: E2 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 03 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 03 00 1B 84 00 90 00 13 [14:06:21]RAPDU: 90 00 [14:06:21]wFMCommunicate OK [14:06:21]wFMCommunicate request_size=10 [14:06:21]MH_SAM_APDU [14:06:21]CAPDU: 80 0D 02 02 05 FE 16 6A F4 1D [14:06:21]Write to MH i2c: E2 0D 00 1C 84 80 0D 02 02 05 00 FE 16 6A F4 1D 00 00 B3 [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:21]Read from MH i2c: E2 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 03 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 03 00 1C 84 00 90 00 14 [14:06:21]RAPDU: 90 00 [14:06:21]wFMCommunicate OK [14:06:21]wFMCommunicate request_size=4 [14:06:21]MH_SAM_APDU [14:06:21]CAPDU: 80 0D 03 02 [14:06:21]Write to MH i2c: E2 08 00 1D 84 80 0D 03 02 00 00 00 00 1C [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:21]Read from MH i2c: E2 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 0B 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 0B 00 1D 84 00 5F 5B 49 4C BB CA B4 EC 90 00 91 [14:06:21]RAPDU: 5F 5B 49 4C BB CA B4 EC 90 00 [14:06:21]wFMCommunicate OK [14:06:21]SAM_PROTO_SignData done [14:06:21]FM_MakeSignedData done [14:06:21]CreateOFDProtocolMessage [14:06:21]wFMCommunicate request_size=4 [14:06:21]MH_SAM_APDU [14:06:21]CAPDU: 80 11 00 00 [14:06:21]Write to MH i2c: E2 08 00 1E 84 80 11 00 00 00 00 00 00 1C [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:21]Read from MH i2c: E2 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 17 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 17 00 1E 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [14:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:21]wFMCommunicate OK [14:06:21]CreateOFDProtocolMessage done [14:06:21]OFDSenderStorePacket 192205 [14:06:21]StoreOFDPacket docnum=192205 [14:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 CF 07 01 97 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F0 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EE 02 00 35 04 06 00 31 FE 16 6A F4 1D 5F 5B 49 4C BB CA B4 EC [14:06:21]CheckFolder [14:06:21]dirname=/storage/ofd_packets [14:06:21]CheckFolder done [14:06:21]ProducePacketName [14:06:21]name=ofd_packets/00192205 [14:06:21]NVStorageSaveData ofd_packets/00192205 [14:06:21]File name is /storage/ofd_packets/00192205 [14:06:21]Write 301 bytes [14:06:21]NVStorageSaveData done [14:06:21]OFDSenderStorePacket done [14:06:21]KKMCreateOFDPacket done [14:06:21]NVStorageSaveData kkm_last_timestamp [14:06:21]File name is /storage/kkm_last_timestamp [14:06:21]Write 4 bytes [14:06:21]NVStorageSaveData done [14:06:21]ExternCall_PrintAddStr [14:06:21]wPrintStart [14:06:21]Write to MH i2c: 01 00 00 1F 84 A3 [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: 01 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: 01 07 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: 01 07 00 1F 84 00 00 00 00 00 FF 0F B8 [14:06:21]RasterBufferAndPrint [14:06:21]line Счет N : (1)31518 [14:06:21]line ИНН: 02508201610067 [14:06:21]line Контрольно-Кассовый Чек [14:06:21]line ПРОДАЖА [14:06:21]line ТРК (МРК, ГНК) : 21 [14:06:21]line Товар: 2710124130 [14:06:21]line Аи-92-К-5 [14:06:21]line 8.970 * 66.90 [14:06:21]line = 600.09 [14:06:21]line НДС 12% НСП 1% [14:06:21]line > о реализуемом товаре [14:06:21]line ОКРУГЛЕНИЕ: -0.09 [14:06:21]line ИТОГО: 600.00 [14:06:21]line Внесено: 600.00 [14:06:21]line СДАЧА: 0.00 [14:06:21]line НСП 1% : 5.31 [14:06:21]line НДС 12% : 63.73 [14:06:21]line Наличными: 600.00 [14:06:21]line Безнал.: 0.00 [14:06:21]line Место: АЗС № 170 "Партнер Нефть" [14:06:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:06:21]line СНО: Общий режим [14:06:21]line Чек 237 27.10.2024 14:06 [14:06:21]line Смена: 542 ФФД: 1.0 [14:06:21]line ЗНМ: 0300000110 [14:06:21]line РНМ: 0000000000091776 [14:06:21]line Версия ККМ: 001 [14:06:21]line ФМ: 0000000000871754 [14:06:21]line ФД: 192205 [14:06:21]line ФПД: 54967367562269 [14:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192205&fm=54967367562269&tin=02508201610067®Number=0000000000091776&sum=60000 [14:06:21]OFD Sender: Processing packet 192205 [packets to send 75, broken 74] [14:06:21]ProducePacketName [14:06:21]name=ofd_packets/00192205 [14:06:21]OFD Sender: To server: pG, [14:06:21]CommunicateWithHost lk.salyk.kg:30040 [14:06:21]written 0, free lines is 4095 [14:06:21]ConnectInit lk.salyk.kg [14:06:21]Connected sock=8 [14:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 CF 07 01 97 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F0 48 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EE 02 00 35 04 06 00 31 FE 16 6A F4 1D 5F 5B 49 4C BB CA B4 EC [14:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 B0 47 00 19 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EE 02 00 F4 03 04 00 B7 ED 1D 67 B6 04 01 00 00 4D B2 E1 AD E3 2A D3 83 [14:06:22]CommunicateWithHost err = 0 [14:06:22]CheckOFDResponse [14:06:22]1017 (14) - 77093643461234 [14:06:22]1041 (16) - 0000000000871754 [14:06:22]1040 (4) - 192205 [14:06:22]1012 (4) - 27.10.2024 07:37 [14:06:22]1206 (1) - 0 [14:06:22]OFD Sender: Remove packet 192205 [14:06:22]ProducePacketName [14:06:22]name=ofd_packets/00192205 [14:06:22]NVStorageDeleteData [14:06:22]Write to MH i2c: 01 00 00 4A 84 CE [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: 01 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: 01 07 00 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: 01 07 00 4A 84 00 00 00 00 00 AA 0C 8B [14:06:22]RasterBufferAndPrint [14:06:22]line [14:06:22]line [14:06:22]line [14:06:22]line [14:06:22]line [14:06:22]written 0, free lines is 3248 [14:06:22]MH_Cut [14:06:22]Write to MH i2c: D1 01 00 51 84 01 A7 [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: D1 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: D1 01 00 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: D1 01 00 51 84 00 A6 [14:06:22]Write to MH i2c: 01 00 00 52 84 D6 [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]OFD Sender: No OFD packet to send [14:06:22]*** Cut start [14:06:22]*** Partial cut [14:06:22]*** CUTSNS_PIN = 1 [14:06:23]*** CUTSNS_PIN = 0 [14:06:23]*** Brake cut motor [14:06:23]Read from MH i2c: 01 [14:06:23]MH_I2C_Read... [14:06:23]*** Stop cut motor [14:06:23]*** Cut end [14:06:23]Read from MH i2c: 01 07 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 52 84 00 00 00 00 00 FF 0F EB [14:06:23]process_action close_receipt done [14:06:23]requested_data is exist [14:06:23]produce_requested_data [14:06:23]requested_item fm.sn is exist - process it [14:06:23]wFMCommunicate request_size=4 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 11 00 00 [14:06:23]Write to MH i2c: E2 08 00 53 84 80 11 00 00 00 00 00 00 51 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 17 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 17 00 53 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [14:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:23]wFMCommunicate OK [14:06:23]requested_item fd.num is exist - process it [14:06:23]SAM_PROTO_GetFieldsCounters [14:06:23]wFMCommunicate request_size=4 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 13 00 00 [14:06:23]Write to MH i2c: E2 08 00 54 84 80 13 00 00 00 00 00 00 54 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 62 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 62 00 54 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [14:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:23]wFMCommunicate OK [14:06:23]SAM_PROTO_GetFieldsCounters done [14:06:23]requested_item shift.num is exist - process it [14:06:23]requested_item shift.opened is exist - process it [14:06:23]req_shift_opened [14:06:23]FM_GetShiftState [14:06:23]SAM_PROTO_GetShiftState [14:06:23]wFMCommunicate request_size=4 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 13 01 00 [14:06:23]Write to MH i2c: E2 08 00 55 84 80 13 01 00 00 00 00 00 56 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 0E 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 0E 00 55 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 97 [14:06:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:06:23]wFMCommunicate OK [14:06:23]SAM_PROTO_GetShiftState done [14:06:23]FM_GetShiftState done [14:06:23]req_shift_opened done [14:06:23]requested_item shift.open_date is exist - process it [14:06:23]req_shift_open_date [14:06:23]req_shift_open_date done [14:06:23]produce_requested_data done [14:06:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192205,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:06:23]process_action_free close_receipt [14:06:23]json_value_free [14:06:23]json_value_free done [14:06:23]process_json_proto returns [14:06:23]Send response to host [14:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192205,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:06:23]free response buf [14:06:23]execute_script done [14:06:23]execute_script returns [14:06:23]free content buf [14:06:23]Sock 6.Close socket [14:06:23]Sock 6.Thread stoped [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:06]accept exits with 5 [14:07:06]New connection [14:07:06]New thread 3066961252 created [14:07:06]Thread 3066817892 joined [14:07:06]Waiting for new connection... [14:07:06] Sock 5.Parse request [14:07:06]Sock 5.Check first char [14:07:06]Sock 5.First char is OK [14:07:06]request: POST /json_proto HTTP/1.0 [14:07:06]Method: POST [14:07:06]URL: /json_proto [14:07:06]Method is POST - this is cgi request [14:07:06]url: /json_proto [14:07:06]query_string will be loaded in cgi processing [14:07:06]execute_cgi json_proto POST (null) [14:07:06]execute_cgi path=json_proto method=POST [14:07:06]POST find Content-Length [14:07:06]Host: 172.17.63.131:8080 [14:07:06]Content-Length: 676 [14:07:06]Content-Type: application/json [14:07:06] [14:07:06]POST finish read [14:07:06]Found Content-Length = 676 [14:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:06]execute_script... [14:07: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)31519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:06]POST & json_proto [14:07:06]process_json_proto [14:07:06]json parsed OK: [14:07:06]protocol is kg_v1.0 [14:07:06]action value=close_receipt [14:07:06]process_action close_receipt [14:07:06]cmd_close_receipt [14:07:06]MH_GetDate [14:07:06]Write to MH i2c: F0 00 00 56 84 C9 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: F0 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: F0 09 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: F0 09 00 56 84 00 1F 49 1E 67 22 05 6E 64 B8 [14:07:06]GetLastDocTimeStamp 1730038000 [14:07:06]current date 1730038047 [14:07:06]FM_GetShiftState [14:07:06]SAM_PROTO_GetShiftState [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 13 01 00 [14:07:06]Write to MH i2c: E2 08 00 57 84 80 13 01 00 00 00 00 00 58 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 0E 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 0E 00 57 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 99 [14:07:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:07:06]wFMCommunicate OK [14:07:06]SAM_PROTO_GetShiftState done [14:07:06]FM_GetShiftState done [14:07:06]opened in 1729989159 [14:07:06]opened+sec_in_day 1730075559 [14:07:06]quantity*price = 50041 [14:07:06]sum+1 = 50042 [14:07:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 238 27.10.2024 14:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192206 ФПД: 28285896066080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192206&fm=28285896066080&tin=02508201610067®Number=0000000000091776&sum=50000 [14:07:08]StoreToDocumentArchive [14:07:08]shift 542 fd 192206 [14:07:08]save to /storage/0542/doc_00192206 [14:07:08]save last doc name /storage/0542/doc_00192206 to /storage/kkm_last_doc_name [14:07:08]save OK [14:07:08]Clear old archive folders... [14:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:08]tlvbuf is 01BE16E0 [14:07:08]SAM_PROTO_ClearQueue [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 09 00 00 [14:07:08]Write to MH i2c: E2 08 00 64 84 80 09 00 00 00 00 00 00 5A [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 64 84 00 90 00 5C [14:07:08]RAPDU: 90 00 [14:07:08]wFMCommunicate OK [14:07:08]SAM_PROTO_ClearQueue done [14:07:08]KKMCreateOFDPacket [14:07:08]OFDProtocolAddRootSTLVToBuf [14:07:08]FM_MakeSignedData [14:07:08]FM_MakeSignedData [14:07:08]SAM_PROTO_SignData [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 0D 01 02 [14:07:08]Write to MH i2c: E2 08 00 65 84 80 0D 01 02 00 00 00 00 62 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 65 84 00 90 00 5D [14:07:08]RAPDU: 90 00 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=255 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1F 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EE 02 00 35 04 06 00 19 [14:07:08]Write to MH i2c: E2 02 01 66 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1F 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EE 02 00 35 04 06 00 19 00 00 C8 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 66 84 00 90 00 5E [14:07:08]RAPDU: 90 00 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=10 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 0D 02 02 05 B9 D2 C9 84 20 [14:07:08]Write to MH i2c: E2 0D 00 67 84 80 0D 02 02 05 00 B9 D2 C9 84 20 00 00 67 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:08]Read from MH i2c: E2 03 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 03 00 67 84 00 90 00 5F [14:07:08]RAPDU: 90 00 [14:07:08]wFMCommunicate OK [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 0D 03 02 [14:07:08]Write to MH i2c: E2 08 00 68 84 80 0D 03 02 00 00 00 00 67 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 0B 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 0B 00 68 84 00 CF 5D 2F 7E ED C0 28 18 90 00 2E [14:07:08]RAPDU: CF 5D 2F 7E ED C0 28 18 90 00 [14:07:08]wFMCommunicate OK [14:07:08]SAM_PROTO_SignData done [14:07:08]FM_MakeSignedData done [14:07:08]CreateOFDProtocolMessage [14:07:08]wFMCommunicate request_size=4 [14:07:08]MH_SAM_APDU [14:07:08]CAPDU: 80 11 00 00 [14:07:08]Write to MH i2c: E2 08 00 69 84 80 11 00 00 00 00 00 00 67 [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:08]Read from MH i2c: E2 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 17 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: E2 17 00 69 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [14:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:08]wFMCommunicate OK [14:07:08]CreateOFDProtocolMessage done [14:07:08]OFDSenderStorePacket 192206 [14:07:08]StoreOFDPacket docnum=192206 [14:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 84 07 01 A8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1F 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EE 02 00 35 04 06 00 19 B9 D2 C9 84 20 CF 5D 2F 7E ED C0 28 18 [14:07:08]CheckFolder [14:07:08]dirname=/storage/ofd_packets [14:07:08]CheckFolder done [14:07:08]ProducePacketName [14:07:08]name=ofd_packets/00192206 [14:07:08]NVStorageSaveData ofd_packets/00192206 [14:07:08]File name is /storage/ofd_packets/00192206 [14:07:08]Write 301 bytes [14:07:08]NVStorageSaveData done [14:07:08]OFDSenderStorePacket done [14:07:08]KKMCreateOFDPacket done [14:07:08]NVStorageSaveData kkm_last_timestamp [14:07:08]File name is /storage/kkm_last_timestamp [14:07:08]Write 4 bytes [14:07:08]NVStorageSaveData done [14:07:08]ExternCall_PrintAddStr [14:07:08]wPrintStart [14:07:08]Write to MH i2c: 01 00 00 6A 84 EE [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 07 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 07 00 6A 84 00 00 00 00 00 FF 0F 03 [14:07:08]RasterBufferAndPrint [14:07:08]line Счет N : (1)31519 [14:07:08]line ИНН: 02508201610067 [14:07:08]line Контрольно-Кассовый Чек [14:07:08]line ПРОДАЖА [14:07:08]line ТРК (МРК, ГНК) : 12 [14:07:08]line Товар: 2710124130 [14:07:08]line Аи-92-К-5 [14:07:08]line 7.480 * 66.90 [14:07:08]line = 500.41 [14:07:08]line НДС 12% НСП 1% [14:07:08]line > о реализуемом товаре [14:07:08]line ОКРУГЛЕНИЕ: -0.41 [14:07:08]line ИТОГО: 500.00 [14:07:08]line Внесено: 500.00 [14:07:08]line СДАЧА: 0.00 [14:07:08]line НСП 1% : 4.43 [14:07:08]line НДС 12% : 53.14 [14:07:08]line Наличными: 500.00 [14:07:08]line Безнал.: 0.00 [14:07:08]line Место: АЗС № 170 "Партнер Нефть" [14:07:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:07:08]line СНО: Общий режим [14:07:08]line Чек 238 27.10.2024 14:07 [14:07:08]line Смена: 542 ФФД: 1.0 [14:07:08]line ЗНМ: 0300000110 [14:07:08]line РНМ: 0000000000091776 [14:07:08]line Версия ККМ: 001 [14:07:08]line ФМ: 0000000000871754 [14:07:08]line ФД: 192206 [14:07:08]line ФПД: 28285896066080 [14:07:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192206&fm=28285896066080&tin=02508201610067®Number=0000000000091776&sum=50000 [14:07:08]OFD Sender: Processing packet 192206 [packets to send 75, broken 74] [14:07:08]ProducePacketName [14:07:08]name=ofd_packets/00192206 [14:07:08]OFD Sender: To server: pG, [14:07:08]CommunicateWithHost lk.salyk.kg:30040 [14:07:08]ConnectInit lk.salyk.kg [14:07:08]written 0, free lines is 4095 [14:07:09]Connected sock=8 [14:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 84 07 01 A8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1F 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EE 02 00 35 04 06 00 19 B9 D2 C9 84 20 CF 5D 2F 7E ED C0 28 18 [14:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB 7B 47 00 C0 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EE 02 00 F4 03 04 00 E6 ED 1D 67 B6 04 01 00 00 42 4B 56 24 16 6A 97 12 [14:07:09]CommunicateWithHost err = 0 [14:07:09]CheckOFDResponse [14:07:09]1017 (14) - 77093643461234 [14:07:09]1041 (16) - 0000000000871754 [14:07:09]1040 (4) - 192206 [14:07:09]1012 (4) - 27.10.2024 07:38 [14:07:09]1206 (1) - 0 [14:07:09]OFD Sender: Remove packet 192206 [14:07:09]ProducePacketName [14:07:09]name=ofd_packets/00192206 [14:07:09]NVStorageDeleteData [14:07:09]Write to MH i2c: 01 00 00 95 84 19 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: 01 07 00 95 84 00 00 00 00 00 B0 0C DC [14:07:09]RasterBufferAndPrint [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]line [14:07:09]written 0, free lines is 3258 [14:07:09]MH_Cut [14:07:09]Write to MH i2c: D1 01 00 9C 84 01 F2 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 01 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: D1 01 00 9C 84 00 F1 [14:07:09]Write to MH i2c: 01 00 00 9D 84 21 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]OFD Sender: No OFD packet to send [14:07:10]*** Cut start [14:07:10]*** Partial cut [14:07:10]*** CUTSNS_PIN = 1 [14:07:10]*** CUTSNS_PIN = 0 [14:07:10]*** Brake cut motor [14:07:10]Read from MH i2c: 01 [14:07:10]MH_I2C_Read... [14:07:10]*** Stop cut motor [14:07:10]*** Cut end [14:07:10]Read from MH i2c: 01 07 00 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: 01 07 00 9D 84 00 00 00 00 00 FF 0F 36 [14:07:10]process_action close_receipt done [14:07:10]requested_data is exist [14:07:10]produce_requested_data [14:07:10]requested_item fm.sn is exist - process it [14:07:10]wFMCommunicate request_size=4 [14:07:10]MH_SAM_APDU [14:07:10]CAPDU: 80 11 00 00 [14:07:10]Write to MH i2c: E2 08 00 9E 84 80 11 00 00 00 00 00 00 9C [14:07:10]Write i2c OK [14:07:10]MH_I2C_Read... [14:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:10]Read from MH i2c: E2 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 17 00 [14:07:10]MH_I2C_Read... [14:07:10]Read from MH i2c: E2 17 00 9E 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [14:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:10]wFMCommunicate OK [14:07:10]requested_item fd.num is exist - process it [14:07:10]SAM_PROTO_GetFieldsCounters [14:07:10]wFMCommunicate request_size=4 [14:07:10]MH_SAM_APDU [14:07:10]CAPDU: 80 13 00 00 [14:07:10]Write to MH i2c: E2 08 00 9F 84 80 13 00 00 00 00 00 00 9F [14:07:10]Write i2c OK [14:07:10]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 62 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 62 00 9F 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [14:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_GetFieldsCounters done [14:07:11]requested_item shift.num is exist - process it [14:07:11]requested_item shift.opened is exist - process it [14:07:11]req_shift_opened [14:07:11]FM_GetShiftState [14:07:11]SAM_PROTO_GetShiftState [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 13 01 00 [14:07:11]Write to MH i2c: E2 08 00 A0 84 80 13 01 00 00 00 00 00 A1 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 A0 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E2 [14:07:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_GetShiftState done [14:07:11]FM_GetShiftState done [14:07:11]req_shift_opened done [14:07:11]requested_item shift.open_date is exist - process it [14:07:11]req_shift_open_date [14:07:11]req_shift_open_date done [14:07:11]produce_requested_data done [14:07:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192206,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:07:11]process_action_free close_receipt [14:07:11]json_value_free [14:07:11]json_value_free done [14:07:11]process_json_proto returns [14:07:11]Send response to host [14:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192206,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:07:11]free response buf [14:07:11]execute_script done [14:07:11]execute_script returns [14:07:11]free content buf [14:07:11]Sock 5.Close socket [14:07:11]Sock 5.Thread stoped [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]accept exits with 6 [14:07:24]New connection [14:07:24]New thread 3066817892 created [14:07:24]Thread 3066961252 joined [14:07:24]Waiting for new connection... [14:07:24] Sock 6.Parse request [14:07:24]Sock 6.Check first char [14:07:24]Sock 6.First char is OK [14:07:24]request: POST /json_proto HTTP/1.0 [14:07:24]Method: POST [14:07:24]URL: /json_proto [14:07:24]Method is POST - this is cgi request [14:07:24]url: /json_proto [14:07:24]query_string will be loaded in cgi processing [14:07:24]execute_cgi json_proto POST (null) [14:07:24]execute_cgi path=json_proto method=POST [14:07:24]POST find Content-Length [14:07:24]Host: 172.17.63.131:8080 [14:07:24]Content-Length: 676 [14:07:24]Content-Type: application/json [14:07:24] [14:07:24]POST finish read [14:07:24]Found Content-Length = 676 [14:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.240, "sum" : 283.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 283.00, "payments": [ { "type": 0, "sum" : 283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:24]execute_script... [14:07: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)31520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.240, "sum" : 283.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 283.00, "payments": [ { "type": 0, "sum" : 283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:24]POST & json_proto [14:07:24]process_json_proto [14:07:24]json parsed OK: [14:07:24]protocol is kg_v1.0 [14:07:24]action value=close_receipt [14:07:24]process_action close_receipt [14:07:24]cmd_close_receipt [14:07:24]MH_GetDate [14:07:24]Write to MH i2c: F0 00 00 A1 84 14 [14:07:24]Write i2c OK [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: F0 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: F0 09 00 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: F0 09 00 A1 84 00 30 49 1E 67 22 05 6E 64 14 [14:07:24]GetLastDocTimeStamp 1730038047 [14:07:24]current date 1730038064 [14:07:24]FM_GetShiftState [14:07:24]SAM_PROTO_GetShiftState [14:07:24]wFMCommunicate request_size=4 [14:07:24]MH_SAM_APDU [14:07:24]CAPDU: 80 13 01 00 [14:07:24]Write to MH i2c: E2 08 00 A2 84 80 13 01 00 00 00 00 00 A3 [14:07:24]Write i2c OK [14:07:24]MH_I2C_Read... [14:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:24]Read from MH i2c: E2 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 0E 00 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 0E 00 A2 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E4 [14:07:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:07:24]wFMCommunicate OK [14:07:24]SAM_PROTO_GetShiftState done [14:07:24]FM_GetShiftState done [14:07:24]opened in 1729989159 [14:07:24]opened+sec_in_day 1730075559 [14:07:24]quantity*price = 28365 [14:07:24]sum+1 = 28367 [14:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 283.00 Внесено: 300.00 СДАЧА: 17.00 НСП 1% : 2.51 НДС 12% : 30.12 Наличными: 283.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 239 27.10.2024 14:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192207 ФПД: 276766689644739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192207&fm=276766689644739&tin=02508201610067®Number=0000000000091776&sum=28300 [14:07:25]StoreToDocumentArchive [14:07:25]shift 542 fd 192207 [14:07:25]save to /storage/0542/doc_00192207 [14:07:25]save last doc name /storage/0542/doc_00192207 to /storage/kkm_last_doc_name [14:07:25]save OK [14:07:25]Clear old archive folders... [14:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:25]tlvbuf is 019924F0 [14:07:25]SAM_PROTO_ClearQueue [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 09 00 00 [14:07:25]Write to MH i2c: E2 08 00 AF 84 80 09 00 00 00 00 00 00 A5 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 AF 84 00 90 00 A7 [14:07:25]RAPDU: 90 00 [14:07:25]wFMCommunicate OK [14:07:25]SAM_PROTO_ClearQueue done [14:07:25]KKMCreateOFDPacket [14:07:25]OFDProtocolAddRootSTLVToBuf [14:07:25]FM_MakeSignedData [14:07:25]FM_MakeSignedData [14:07:25]SAM_PROTO_SignData [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 0D 01 02 [14:07:25]Write to MH i2c: E2 08 00 B0 84 80 0D 01 02 00 00 00 00 AD [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 B0 84 00 90 00 A8 [14:07:25]RAPDU: 90 00 [14:07:25]wFMCommunicate OK [14:07:25]wFMCommunicate request_size=255 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0B 00 00 00 00 07 04 06 00 8C 6E 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 30 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EE 02 00 35 04 06 00 FB [14:07:25]Write to MH i2c: E2 02 01 B1 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0B 00 00 00 00 07 04 06 00 8C 6E 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 30 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EE 02 00 35 04 06 00 FB 00 00 59 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 B1 84 00 90 00 A9 [14:07:25]RAPDU: 90 00 [14:07:25]wFMCommunicate OK [14:07:25]wFMCommunicate request_size=10 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 0D 02 02 05 B7 C4 38 D0 C3 [14:07:25]Write to MH i2c: E2 0D 00 B2 84 80 0D 02 02 05 00 B7 C4 38 D0 C3 00 00 00 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 03 00 B2 84 00 90 00 AA [14:07:25]RAPDU: 90 00 [14:07:25]wFMCommunicate OK [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 0D 03 02 [14:07:25]Write to MH i2c: E2 08 00 B3 84 80 0D 03 02 00 00 00 00 B2 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 0B 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 0B 00 B3 84 00 62 DC BB 49 BA E1 10 A1 90 00 41 [14:07:25]RAPDU: 62 DC BB 49 BA E1 10 A1 90 00 [14:07:25]wFMCommunicate OK [14:07:25]SAM_PROTO_SignData done [14:07:25]FM_MakeSignedData done [14:07:25]CreateOFDProtocolMessage [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 11 00 00 [14:07:25]Write to MH i2c: E2 08 00 B4 84 80 11 00 00 00 00 00 00 B2 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 17 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 17 00 B4 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [14:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:25]wFMCommunicate OK [14:07:25]CreateOFDProtocolMessage done [14:07:25]OFDSenderStorePacket 192207 [14:07:25]StoreOFDPacket docnum=192207 [14:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF EF 07 01 FF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0B 00 00 00 00 07 04 06 00 8C 6E 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 30 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EE 02 00 35 04 06 00 FB B7 C4 38 D0 C3 62 DC BB 49 BA E1 10 A1 [14:07:25]CheckFolder [14:07:25]dirname=/storage/ofd_packets [14:07:25]CheckFolder done [14:07:25]ProducePacketName [14:07:25]name=ofd_packets/00192207 [14:07:25]NVStorageSaveData ofd_packets/00192207 [14:07:25]File name is /storage/ofd_packets/00192207 [14:07:25]Write 301 bytes [14:07:25]NVStorageSaveData done [14:07:25]OFDSenderStorePacket done [14:07:25]KKMCreateOFDPacket done [14:07:25]NVStorageSaveData kkm_last_timestamp [14:07:25]File name is /storage/kkm_last_timestamp [14:07:25]Write 4 bytes [14:07:25]NVStorageSaveData done [14:07:25]ExternCall_PrintAddStr [14:07:25]wPrintStart [14:07:25]Write to MH i2c: 01 00 00 B5 84 39 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: 01 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: 01 07 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: 01 07 00 B5 84 00 00 00 00 00 FF 0F 4E [14:07:25]RasterBufferAndPrint [14:07:25]line Счет N : (1)31520 [14:07:25]line ИНН: 02508201610067 [14:07:25]line Контрольно-Кассовый Чек [14:07:25]line ПРОДАЖА [14:07:25]line ТРК (МРК, ГНК) : 21 [14:07:25]line Товар: 2710124130 [14:07:25]line Аи-92-К-5 [14:07:25]line 4.240 * 66.90 [14:07:25]line = 283.66 [14:07:25]line НДС 12% НСП 1% [14:07:25]line > о реализуемом товаре [14:07:25]line ОКРУГЛЕНИЕ: -0.66 [14:07:25]line ИТОГО: 283.00 [14:07:25]line Внесено: 300.00 [14:07:25]line СДАЧА: 17.00 [14:07:25]line НСП 1% : 2.51 [14:07:25]line НДС 12% : 30.12 [14:07:25]line Наличными: 283.00 [14:07:25]line Безнал.: 0.00 [14:07:25]line Место: АЗС № 170 "Партнер Нефть" [14:07:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:07:25]line СНО: Общий режим [14:07:25]line Чек 239 27.10.2024 14:07 [14:07:25]line Смена: 542 ФФД: 1.0 [14:07:25]line ЗНМ: 0300000110 [14:07:25]line РНМ: 0000000000091776 [14:07:25]line Версия ККМ: 001 [14:07:25]line ФМ: 0000000000871754 [14:07:25]line ФД: 192207 [14:07:25]line ФПД: 276766689644739 [14:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192207&fm=276766689644739&tin=02508201610067®Number=0000000000091776&sum=28300 [14:07:26]OFD Sender: Processing packet 192207 [packets to send 75, broken 74] [14:07:26]ProducePacketName [14:07:26]name=ofd_packets/00192207 [14:07:26]OFD Sender: To server: pG, [14:07:26]CommunicateWithHost lk.salyk.kg:30040 [14:07:26]ConnectInit lk.salyk.kg [14:07:26]written 0, free lines is 4095 [14:07:26]Connected sock=8 [14:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF EF 07 01 FF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0B 00 00 00 00 07 04 06 00 8C 6E 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 30 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EE 02 00 35 04 06 00 FB B7 C4 38 D0 C3 62 DC BB 49 BA E1 10 A1 [14:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 18 13 47 00 5F C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EE 02 00 F4 03 04 00 F8 ED 1D 67 B6 04 01 00 00 31 49 2C 5A 5C 6B C3 30 [14:07:26]CommunicateWithHost err = 0 [14:07:26]CheckOFDResponse [14:07:26]1017 (14) - 77093643461234 [14:07:26]1041 (16) - 0000000000871754 [14:07:26]1040 (4) - 192207 [14:07:26]1012 (4) - 27.10.2024 07:38 [14:07:26]1206 (1) - 0 [14:07:26]OFD Sender: Remove packet 192207 [14:07:26]ProducePacketName [14:07:26]name=ofd_packets/00192207 [14:07:26]NVStorageDeleteData [14:07:26]Write to MH i2c: 01 00 00 E0 84 64 [14:07:26]Write i2c OK [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: 01 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: 01 07 00 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: 01 07 00 E0 84 00 00 00 00 00 B8 0C 2F [14:07:26]RasterBufferAndPrint [14:07:26]line [14:07:26]line [14:07:26]line [14:07:26]line [14:07:26]line [14:07:26]written 0, free lines is 3266 [14:07:26]MH_Cut [14:07:26]Write to MH i2c: D1 01 00 E7 84 01 3D [14:07:26]Write i2c OK [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: D1 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: D1 01 00 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: D1 01 00 E7 84 00 3C [14:07:26]Write to MH i2c: 01 00 00 E8 84 6C [14:07:26]Write i2c OK [14:07:26]MH_I2C_Read... [14:07:26]OFD Sender: No OFD packet to send [14:07:27]*** Cut start [14:07:27]*** Partial cut [14:07:27]*** CUTSNS_PIN = 1 [14:07:27]*** CUTSNS_PIN = 0 [14:07:27]*** Brake cut motor [14:07:28]Read from MH i2c: 01 [14:07:28]MH_I2C_Read... [14:07:28]*** Stop cut motor [14:07:28]*** Cut end [14:07:28]Read from MH i2c: 01 07 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 E8 84 00 00 00 00 00 FF 0F 81 [14:07:28]process_action close_receipt done [14:07:28]requested_data is exist [14:07:28]produce_requested_data [14:07:28]requested_item fm.sn is exist - process it [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 11 00 00 [14:07:28]Write to MH i2c: E2 08 00 E9 84 80 11 00 00 00 00 00 00 E7 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 17 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 17 00 E9 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [14:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:28]wFMCommunicate OK [14:07:28]requested_item fd.num is exist - process it [14:07:28]SAM_PROTO_GetFieldsCounters [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 13 00 00 [14:07:28]Write to MH i2c: E2 08 00 EA 84 80 13 00 00 00 00 00 00 EA [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 62 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 62 00 EA 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [14:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:28]wFMCommunicate OK [14:07:28]SAM_PROTO_GetFieldsCounters done [14:07:28]requested_item shift.num is exist - process it [14:07:28]requested_item shift.opened is exist - process it [14:07:28]req_shift_opened [14:07:28]FM_GetShiftState [14:07:28]SAM_PROTO_GetShiftState [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 13 01 00 [14:07:28]Write to MH i2c: E2 08 00 EB 84 80 13 01 00 00 00 00 00 EC [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 0E 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 0E 00 EB 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2D [14:07:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:07:28]wFMCommunicate OK [14:07:28]SAM_PROTO_GetShiftState done [14:07:28]FM_GetShiftState done [14:07:28]req_shift_opened done [14:07:28]requested_item shift.open_date is exist - process it [14:07:28]req_shift_open_date [14:07:28]req_shift_open_date done [14:07:28]produce_requested_data done [14:07:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192207,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:07:28]process_action_free close_receipt [14:07:28]json_value_free [14:07:28]json_value_free done [14:07:28]process_json_proto returns [14:07:28]Send response to host [14:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192207,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:07:28]free response buf [14:07:28]execute_script done [14:07:28]execute_script returns [14:07:28]free content buf [14:07:28]Sock 6.Close socket [14:07:28]Sock 6.Thread stoped [14:07:31]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:46]accept exits with 5 [14:08:46]New connection [14:08:46]New thread 3066961252 created [14:08:46]Thread 3066817892 joined [14:08:46]Waiting for new connection... [14:08:46] Sock 5.Parse request [14:08:46]Sock 5.Check first char [14:08:46]Sock 5.First char is OK [14:08:46]request: POST /json_proto HTTP/1.0 [14:08:46]Method: POST [14:08:46]URL: /json_proto [14:08:46]Method is POST - this is cgi request [14:08:46]url: /json_proto [14:08:46]query_string will be loaded in cgi processing [14:08:46]execute_cgi json_proto POST (null) [14:08:46]execute_cgi path=json_proto method=POST [14:08:46]POST find Content-Length [14:08:46]Host: 172.17.63.131:8080 [14:08:46]Content-Length: 673 [14:08:46]Content-Type: application/json [14:08:46] [14:08:46]POST finish read [14:08:46]Found Content-Length = 673 [14:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31521", "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" ] } } [14:08:46]execute_script... [14:08: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)31521", "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" ] } } [14:08:46]POST & json_proto [14:08:46]process_json_proto [14:08:46]json parsed OK: [14:08:46]protocol is kg_v1.0 [14:08:46]action value=close_receipt [14:08:46]process_action close_receipt [14:08:46]cmd_close_receipt [14:08:46]MH_GetDate [14:08:46]Write to MH i2c: F0 00 00 EC 84 5F [14:08:46]Write i2c OK [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 09 00 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 09 00 EC 84 00 83 49 1E 67 22 05 6E 64 B2 [14:08:46]GetLastDocTimeStamp 1730038064 [14:08:46]current date 1730038147 [14:08:46]FM_GetShiftState [14:08:46]SAM_PROTO_GetShiftState [14:08:46]wFMCommunicate request_size=4 [14:08:46]MH_SAM_APDU [14:08:46]CAPDU: 80 13 01 00 [14:08:46]Write to MH i2c: E2 08 00 ED 84 80 13 01 00 00 00 00 00 EE [14:08:46]Write i2c OK [14:08:46]MH_I2C_Read... [14:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:46]Read from MH i2c: E2 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: E2 0E 00 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: E2 0E 00 ED 84 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2F [14:08:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:08:46]wFMCommunicate OK [14:08:46]SAM_PROTO_GetShiftState done [14:08:46]FM_GetShiftState done [14:08:46]opened in 1729989159 [14:08:46]opened+sec_in_day 1730075559 [14:08:46]quantity*price = 50063 [14:08:46]sum+1 = 50064 [14:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 240 27.10.2024 14:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192208 ФПД: 168097847918742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192208&fm=168097847918742&tin=02508201610067®Number=0000000000091776&sum=50000 [14:08:47]StoreToDocumentArchive [14:08:47]shift 542 fd 192208 [14:08:47]save to /storage/0542/doc_00192208 [14:08:47]save last doc name /storage/0542/doc_00192208 to /storage/kkm_last_doc_name [14:08:47]save OK [14:08:47]Clear old archive folders... [14:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:47]tlvbuf is 01D13A00 [14:08:47]SAM_PROTO_ClearQueue [14:08:47]wFMCommunicate request_size=4 [14:08:47]MH_SAM_APDU [14:08:47]CAPDU: 80 09 00 00 [14:08:47]Write to MH i2c: E2 08 00 FA 84 80 09 00 00 00 00 00 00 F0 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 FA 84 00 90 00 F2 [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_ClearQueue done [14:08:48]KKMCreateOFDPacket [14:08:48]OFDProtocolAddRootSTLVToBuf [14:08:48]FM_MakeSignedData [14:08:48]FM_MakeSignedData [14:08:48]SAM_PROTO_SignData [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 01 02 [14:08:48]Write to MH i2c: E2 08 00 FB 84 80 0D 01 02 00 00 00 00 F8 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 FB 84 00 90 00 F3 [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=255 [14:08:48]MH_SAM_APDU [14:08:48]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 F0 00 00 00 F4 03 04 00 83 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EE 02 00 35 04 06 00 98 E2 54 83 [14:08:48]Write to MH i2c: E2 02 01 FC 84 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 F0 00 00 00 F4 03 04 00 83 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EE 02 00 35 04 06 00 98 E2 54 83 00 00 7C [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 FC 84 00 90 00 F4 [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=7 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 02 02 02 40 96 [14:08:48]Write to MH i2c: E2 0A 00 FD 84 80 0D 02 02 02 00 40 96 00 00 D5 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 FD 84 00 90 00 F5 [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 03 02 [14:08:48]Write to MH i2c: E2 08 00 FE 84 80 0D 03 02 00 00 00 00 FD [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0B 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0B 00 FE 84 00 98 26 16 4F E9 51 87 A1 90 00 83 [14:08:48]RAPDU: 98 26 16 4F E9 51 87 A1 90 00 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_SignData done [14:08:48]FM_MakeSignedData done [14:08:48]CreateOFDProtocolMessage [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 11 00 00 [14:08:48]Write to MH i2c: E2 08 00 FF 84 80 11 00 00 00 00 00 00 FD [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 FF 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [14:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:08:48]wFMCommunicate OK [14:08:48]CreateOFDProtocolMessage done [14:08:48]OFDSenderStorePacket 192208 [14:08:48]StoreOFDPacket docnum=192208 [14:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 03 D0 04 01 86 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F0 00 00 00 F4 03 04 00 83 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EE 02 00 35 04 06 00 98 E2 54 83 40 96 98 26 16 4F E9 51 87 A1 [14:08:48]CheckFolder [14:08:48]dirname=/storage/ofd_packets [14:08:48]CheckFolder done [14:08:48]ProducePacketName [14:08:48]name=ofd_packets/00192208 [14:08:48]NVStorageSaveData ofd_packets/00192208 [14:08:48]File name is /storage/ofd_packets/00192208 [14:08:48]Write 298 bytes [14:08:48]NVStorageSaveData done [14:08:48]OFDSenderStorePacket done [14:08:48]KKMCreateOFDPacket done [14:08:48]NVStorageSaveData kkm_last_timestamp [14:08:48]File name is /storage/kkm_last_timestamp [14:08:48]Write 4 bytes [14:08:48]NVStorageSaveData done [14:08:48]ExternCall_PrintAddStr [14:08:48]wPrintStart [14:08:48]Write to MH i2c: 01 00 00 00 85 85 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 07 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 07 00 00 85 00 00 00 00 00 FF 0F 9A [14:08:48]RasterBufferAndPrint [14:08:48]line Счет N : (1)31521 [14:08:48]line ИНН: 02508201610067 [14:08:48]line Контрольно-Кассовый Чек [14:08:48]line ПРОДАЖА [14:08:48]line ТРК (МРК, ГНК) : 11 [14:08:48]line Товар: 2710194210 [14:08:48]line ДТ-К-5 [14:08:48]line 6.570 * 76.20 [14:08:48]line = 500.63 [14:08:48]line НДС 12% НСП 1% [14:08:48]line > о реализуемом товаре [14:08:48]line ОКРУГЛЕНИЕ: -0.63 [14:08:48]line ИТОГО: 500.00 [14:08:48]line Внесено: 500.00 [14:08:48]line СДАЧА: 0.00 [14:08:48]line НСП 1% : 4.43 [14:08:48]line НДС 12% : 53.16 [14:08:48]line Наличными: 500.00 [14:08:48]line Безнал.: 0.00 [14:08:48]line Место: АЗС № 170 "Партнер Нефть" [14:08:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:08:48]line СНО: Общий режим [14:08:48]line Чек 240 27.10.2024 14:09 [14:08:48]line Смена: 542 ФФД: 1.0 [14:08:48]line ЗНМ: 0300000110 [14:08:48]line РНМ: 0000000000091776 [14:08:48]line Версия ККМ: 001 [14:08:48]line ФМ: 0000000000871754 [14:08:48]line ФД: 192208 [14:08:48]line ФПД: 168097847918742 [14:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192208&fm=168097847918742&tin=02508201610067®Number=0000000000091776&sum=50000 [14:08:48]OFD Sender: Processing packet 192208 [packets to send 75, broken 74] [14:08:48]ProducePacketName [14:08:48]name=ofd_packets/00192208 [14:08:48]OFD Sender: To server: pG, [14:08:48]CommunicateWithHost lk.salyk.kg:30040 [14:08:48]ConnectInit lk.salyk.kg [14:08:48]written 0, free lines is 4095 [14:08:48]Connected sock=8 [14:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 03 D0 04 01 86 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F0 00 00 00 F4 03 04 00 83 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EE 02 00 35 04 06 00 98 E2 54 83 40 96 98 26 16 4F E9 51 87 A1 [14:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CE ED 47 00 D8 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EE 02 00 F4 03 04 00 4A EE 1D 67 B6 04 01 00 00 78 C7 AC 44 84 62 B0 F3 [14:08:49]CommunicateWithHost err = 0 [14:08:49]CheckOFDResponse [14:08:49]1017 (14) - 77093643461234 [14:08:49]1041 (16) - 0000000000871754 [14:08:49]1040 (4) - 192208 [14:08:49]1012 (4) - 27.10.2024 07:39 [14:08:49]1206 (1) - 0 [14:08:49]OFD Sender: Remove packet 192208 [14:08:49]ProducePacketName [14:08:49]name=ofd_packets/00192208 [14:08:49]NVStorageDeleteData [14:08:49]Write to MH i2c: 01 00 00 2B 85 B0 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 07 00 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 07 00 2B 85 00 00 00 00 00 AD 0C 70 [14:08:49]RasterBufferAndPrint [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]written 0, free lines is 3254 [14:08:49]MH_Cut [14:08:49]Write to MH i2c: D1 01 00 32 85 01 89 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 01 00 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 01 00 32 85 00 88 [14:08:49]Write to MH i2c: 01 00 00 33 85 B8 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]OFD Sender: No OFD packet to send [14:08:50]*** Cut start [14:08:50]*** Partial cut [14:08:50]*** CUTSNS_PIN = 1 [14:08:50]*** CUTSNS_PIN = 0 [14:08:50]*** Brake cut motor [14:08:50]Read from MH i2c: 01 [14:08:50]MH_I2C_Read... [14:08:50]*** Stop cut motor [14:08:50]*** Cut end [14:08:50]Read from MH i2c: 01 07 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: 01 07 00 33 85 00 00 00 00 00 FF 0F CD [14:08:50]process_action close_receipt done [14:08:50]requested_data is exist [14:08:50]produce_requested_data [14:08:50]requested_item fm.sn is exist - process it [14:08:50]wFMCommunicate request_size=4 [14:08:50]MH_SAM_APDU [14:08:50]CAPDU: 80 11 00 00 [14:08:50]Write to MH i2c: E2 08 00 34 85 80 11 00 00 00 00 00 00 33 [14:08:50]Write i2c OK [14:08:50]MH_I2C_Read... [14:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:50]Read from MH i2c: E2 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 17 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 17 00 34 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [14:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:08:50]wFMCommunicate OK [14:08:50]requested_item fd.num is exist - process it [14:08:50]SAM_PROTO_GetFieldsCounters [14:08:50]wFMCommunicate request_size=4 [14:08:50]MH_SAM_APDU [14:08:50]CAPDU: 80 13 00 00 [14:08:50]Write to MH i2c: E2 08 00 35 85 80 13 00 00 00 00 00 00 36 [14:08:50]Write i2c OK [14:08:50]MH_I2C_Read... [14:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:50]Read from MH i2c: E2 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 62 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 62 00 35 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:51]wFMCommunicate OK [14:08:51]SAM_PROTO_GetFieldsCounters done [14:08:51]requested_item shift.num is exist - process it [14:08:51]requested_item shift.opened is exist - process it [14:08:51]req_shift_opened [14:08:51]FM_GetShiftState [14:08:51]SAM_PROTO_GetShiftState [14:08:51]wFMCommunicate request_size=4 [14:08:51]MH_SAM_APDU [14:08:51]CAPDU: 80 13 01 00 [14:08:51]Write to MH i2c: E2 08 00 36 85 80 13 01 00 00 00 00 00 38 [14:08:51]Write i2c OK [14:08:51]MH_I2C_Read... [14:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:51]Read from MH i2c: E2 [14:08:51]MH_I2C_Read... [14:08:51]Read from MH i2c: E2 0E 00 [14:08:51]MH_I2C_Read... [14:08:51]Read from MH i2c: E2 0E 00 36 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 79 [14:08:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:08:51]wFMCommunicate OK [14:08:51]SAM_PROTO_GetShiftState done [14:08:51]FM_GetShiftState done [14:08:51]req_shift_opened done [14:08:51]requested_item shift.open_date is exist - process it [14:08:51]req_shift_open_date [14:08:51]req_shift_open_date done [14:08:51]produce_requested_data done [14:08:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192208,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:08:51]process_action_free close_receipt [14:08:51]json_value_free [14:08:51]json_value_free done [14:08:51]process_json_proto returns [14:08:51]Send response to host [14:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192208,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:08:51]free response buf [14:08:51]execute_script done [14:08:51]execute_script returns [14:08:51]free content buf [14:08:51]Sock 5.Close socket [14:08:51]Sock 5.Thread stoped [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:21]accept exits with 6 [14:09:21]New connection [14:09:21]New thread 3066817892 created [14:09:21]Thread 3066961252 joined [14:09:21]Waiting for new connection... [14:09:21] Sock 6.Parse request [14:09:21]Sock 6.Check first char [14:09:21]Sock 6.First char is OK [14:09:21]request: POST /json_proto HTTP/1.0 [14:09:21]Method: POST [14:09:21]URL: /json_proto [14:09:21]Method is POST - this is cgi request [14:09:21]url: /json_proto [14:09:21]query_string will be loaded in cgi processing [14:09:21]execute_cgi json_proto POST (null) [14:09:21]execute_cgi path=json_proto method=POST [14:09:21]POST find Content-Length [14:09:21]Host: 172.17.63.131:8080 [14:09:21]Content-Length: 676 [14:09:21]Content-Type: application/json [14:09:21] [14:09:21]POST finish read [14:09:21]Found Content-Length = 676 [14:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:21]execute_script... [14:09: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)31522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:21]POST & json_proto [14:09:21]process_json_proto [14:09:21]json parsed OK: [14:09:21]protocol is kg_v1.0 [14:09:21]action value=close_receipt [14:09:21]process_action close_receipt [14:09:21]cmd_close_receipt [14:09:21]MH_GetDate [14:09:21]Write to MH i2c: F0 00 00 37 85 AB [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: F0 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: F0 09 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: F0 09 00 37 85 00 A6 49 1E 67 22 05 6E 64 21 [14:09:21]GetLastDocTimeStamp 1730038147 [14:09:21]current date 1730038182 [14:09:21]FM_GetShiftState [14:09:21]SAM_PROTO_GetShiftState [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 13 01 00 [14:09:21]Write to MH i2c: E2 08 00 38 85 80 13 01 00 00 00 00 00 3A [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 0E 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 0E 00 38 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7B [14:09:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:09:21]wFMCommunicate OK [14:09:21]SAM_PROTO_GetShiftState done [14:09:21]FM_GetShiftState done [14:09:21]opened in 1729989159 [14:09:21]opened+sec_in_day 1730075559 [14:09:21]quantity*price = 50041 [14:09:21]sum+1 = 50042 [14:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 241 27.10.2024 14:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192209 ФПД: 76855810589325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140942&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192209&fm=76855810589325&tin=02508201610067®Number=0000000000091776&sum=50000 [14:09:23]StoreToDocumentArchive [14:09:23]shift 542 fd 192209 [14:09:23]save to /storage/0542/doc_00192209 [14:09:23]save last doc name /storage/0542/doc_00192209 to /storage/kkm_last_doc_name [14:09:23]save OK [14:09:23]Clear old archive folders... [14:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:23]tlvbuf is 01608E70 [14:09:23]SAM_PROTO_ClearQueue [14:09:23]wFMCommunicate request_size=4 [14:09:23]MH_SAM_APDU [14:09:23]CAPDU: 80 09 00 00 [14:09:23]Write to MH i2c: E2 08 00 45 85 80 09 00 00 00 00 00 00 3C [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 45 85 00 90 00 3E [14:09:23]RAPDU: 90 00 [14:09:23]wFMCommunicate OK [14:09:23]SAM_PROTO_ClearQueue done [14:09:23]KKMCreateOFDPacket [14:09:23]OFDProtocolAddRootSTLVToBuf [14:09:23]FM_MakeSignedData [14:09:23]FM_MakeSignedData [14:09:23]SAM_PROTO_SignData [14:09:23]wFMCommunicate request_size=4 [14:09:23]MH_SAM_APDU [14:09:23]CAPDU: 80 0D 01 02 [14:09:23]Write to MH i2c: E2 08 00 46 85 80 0D 01 02 00 00 00 00 44 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 46 85 00 90 00 3F [14:09:23]RAPDU: 90 00 [14:09:23]wFMCommunicate OK [14:09:23]wFMCommunicate request_size=255 [14:09:23]MH_SAM_APDU [14:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EE 02 00 35 04 06 00 45 [14:09:23]Write to MH i2c: E2 02 01 47 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A6 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EE 02 00 35 04 06 00 45 00 00 63 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 47 85 00 90 00 40 [14:09:23]RAPDU: 90 00 [14:09:23]wFMCommunicate OK [14:09:23]wFMCommunicate request_size=10 [14:09:23]MH_SAM_APDU [14:09:23]CAPDU: 80 0D 02 02 05 E6 63 4A 02 8D [14:09:23]Write to MH i2c: E2 0D 00 48 85 80 0D 02 02 05 00 E6 63 4A 02 8D 00 00 73 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 03 00 48 85 00 90 00 41 [14:09:23]RAPDU: 90 00 [14:09:23]wFMCommunicate OK [14:09:23]wFMCommunicate request_size=4 [14:09:23]MH_SAM_APDU [14:09:23]CAPDU: 80 0D 03 02 [14:09:23]Write to MH i2c: E2 08 00 49 85 80 0D 03 02 00 00 00 00 49 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 0B 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 0B 00 49 85 00 BE 4A 9A 04 98 23 9B EA 90 00 30 [14:09:23]RAPDU: BE 4A 9A 04 98 23 9B EA 90 00 [14:09:23]wFMCommunicate OK [14:09:23]SAM_PROTO_SignData done [14:09:23]FM_MakeSignedData done [14:09:23]CreateOFDProtocolMessage [14:09:23]wFMCommunicate request_size=4 [14:09:23]MH_SAM_APDU [14:09:23]CAPDU: 80 11 00 00 [14:09:23]Write to MH i2c: E2 08 00 4A 85 80 11 00 00 00 00 00 00 49 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:23]Read from MH i2c: E2 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 17 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: E2 17 00 4A 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [14:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:09:23]wFMCommunicate OK [14:09:23]CreateOFDProtocolMessage done [14:09:23]OFDSenderStorePacket 192209 [14:09:23]StoreOFDPacket docnum=192209 [14:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 3E 07 01 74 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A6 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EE 02 00 35 04 06 00 45 E6 63 4A 02 8D BE 4A 9A 04 98 23 9B EA [14:09:23]CheckFolder [14:09:23]dirname=/storage/ofd_packets [14:09:23]CheckFolder done [14:09:23]ProducePacketName [14:09:23]name=ofd_packets/00192209 [14:09:23]NVStorageSaveData ofd_packets/00192209 [14:09:23]File name is /storage/ofd_packets/00192209 [14:09:23]Write 301 bytes [14:09:23]NVStorageSaveData done [14:09:23]OFDSenderStorePacket done [14:09:23]KKMCreateOFDPacket done [14:09:23]NVStorageSaveData kkm_last_timestamp [14:09:23]File name is /storage/kkm_last_timestamp [14:09:23]Write 4 bytes [14:09:23]NVStorageSaveData done [14:09:23]ExternCall_PrintAddStr [14:09:23]wPrintStart [14:09:23]Write to MH i2c: 01 00 00 4B 85 D0 [14:09:23]Write i2c OK [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: 01 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: 01 07 00 [14:09:23]MH_I2C_Read... [14:09:23]Read from MH i2c: 01 07 00 4B 85 00 00 00 00 00 FF 0F E5 [14:09:23]RasterBufferAndPrint [14:09:23]line Счет N : (1)31522 [14:09:23]line ИНН: 02508201610067 [14:09:23]line Контрольно-Кассовый Чек [14:09:23]line ПРОДАЖА [14:09:23]line ТРК (МРК, ГНК) : 12 [14:09:23]line Товар: 2710124130 [14:09:23]line Аи-92-К-5 [14:09:23]line 7.480 * 66.90 [14:09:23]line = 500.41 [14:09:23]line НДС 12% НСП 1% [14:09:23]line > о реализуемом товаре [14:09:23]line ОКРУГЛЕНИЕ: -0.41 [14:09:23]line ИТОГО: 500.00 [14:09:23]line Внесено: 500.00 [14:09:23]line СДАЧА: 0.00 [14:09:23]line НСП 1% : 4.43 [14:09:23]line НДС 12% : 53.14 [14:09:23]line Наличными: 500.00 [14:09:23]line Безнал.: 0.00 [14:09:23]line Место: АЗС № 170 "Партнер Нефть" [14:09:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:09:23]line СНО: Общий режим [14:09:23]line Чек 241 27.10.2024 14:09 [14:09:23]line Смена: 542 ФФД: 1.0 [14:09:23]line ЗНМ: 0300000110 [14:09:23]line РНМ: 0000000000091776 [14:09:23]line Версия ККМ: 001 [14:09:23]line ФМ: 0000000000871754 [14:09:23]line ФД: 192209 [14:09:23]line ФПД: 76855810589325 [14:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140942&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192209&fm=76855810589325&tin=02508201610067®Number=0000000000091776&sum=50000 [14:09:23]written 0, free lines is 4095 [14:09:23]OFD Sender: Processing packet 192209 [packets to send 75, broken 74] [14:09:23]ProducePacketName [14:09:23]name=ofd_packets/00192209 [14:09:23]OFD Sender: To server: pG, [14:09:23]CommunicateWithHost lk.salyk.kg:30040 [14:09:23]ConnectInit lk.salyk.kg [14:09:23]Connected sock=9 [14:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 3E 07 01 74 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A6 49 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EE 02 00 35 04 06 00 45 E6 63 4A 02 8D BE 4A 9A 04 98 23 9B EA [14:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 26 CC 47 00 6A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EE 02 00 F4 03 04 00 6D EE 1D 67 B6 04 01 00 00 98 5E 1B 78 74 4B CE 63 [14:09:24]CommunicateWithHost err = 0 [14:09:24]CheckOFDResponse [14:09:24]1017 (14) - 77093643461234 [14:09:24]1041 (16) - 0000000000871754 [14:09:24]1040 (4) - 192209 [14:09:24]1012 (4) - 27.10.2024 07:40 [14:09:24]1206 (1) - 0 [14:09:24]OFD Sender: Remove packet 192209 [14:09:24]ProducePacketName [14:09:24]name=ofd_packets/00192209 [14:09:24]NVStorageDeleteData [14:09:24]Write to MH i2c: 01 00 00 76 85 FB [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: 01 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: 01 07 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: 01 07 00 76 85 00 00 00 00 00 B7 0C C5 [14:09:24]RasterBufferAndPrint [14:09:24]line [14:09:24]line [14:09:24]line [14:09:24]line [14:09:24]line [14:09:24]written 0, free lines is 3263 [14:09:24]MH_Cut [14:09:24]Write to MH i2c: D1 01 00 7D 85 01 D4 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: D1 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: D1 01 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: D1 01 00 7D 85 00 D3 [14:09:24]Write to MH i2c: 01 00 00 7E 85 03 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]OFD Sender: No OFD packet to send [14:09:24]*** Cut start [14:09:24]*** Partial cut [14:09:24]*** CUTSNS_PIN = 1 [14:09:24]*** CUTSNS_PIN = 0 [14:09:25]*** Brake cut motor [14:09:25]Read from MH i2c: 01 [14:09:25]MH_I2C_Read... [14:09:25]*** Stop cut motor [14:09:25]*** Cut end [14:09:25]Read from MH i2c: 01 07 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: 01 07 00 7E 85 00 00 00 00 00 FF 0F 18 [14:09:25]process_action close_receipt done [14:09:25]requested_data is exist [14:09:25]produce_requested_data [14:09:25]requested_item fm.sn is exist - process it [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 11 00 00 [14:09:25]Write to MH i2c: E2 08 00 7F 85 80 11 00 00 00 00 00 00 7E [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 17 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 17 00 7F 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [14:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:09:25]wFMCommunicate OK [14:09:25]requested_item fd.num is exist - process it [14:09:25]SAM_PROTO_GetFieldsCounters [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 13 00 00 [14:09:25]Write to MH i2c: E2 08 00 80 85 80 13 00 00 00 00 00 00 81 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 62 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 62 00 80 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [14:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:25]wFMCommunicate OK [14:09:25]SAM_PROTO_GetFieldsCounters done [14:09:25]requested_item shift.num is exist - process it [14:09:25]requested_item shift.opened is exist - process it [14:09:25]req_shift_opened [14:09:25]FM_GetShiftState [14:09:25]SAM_PROTO_GetShiftState [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 13 01 00 [14:09:25]Write to MH i2c: E2 08 00 81 85 80 13 01 00 00 00 00 00 83 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0E 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0E 00 81 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C4 [14:09:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:09:25]wFMCommunicate OK [14:09:25]SAM_PROTO_GetShiftState done [14:09:25]FM_GetShiftState done [14:09:25]req_shift_opened done [14:09:25]requested_item shift.open_date is exist - process it [14:09:25]req_shift_open_date [14:09:25]req_shift_open_date done [14:09:25]produce_requested_data done [14:09:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192209,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:09:25]process_action_free close_receipt [14:09:25]json_value_free [14:09:25]json_value_free done [14:09:25]process_json_proto returns [14:09:25]Send response to host [14:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192209,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:09:25]free response buf [14:09:25]execute_script done [14:09:25]execute_script returns [14:09:25]free content buf [14:09:25]Sock 6.Close socket [14:09:25]Sock 6.Thread stoped [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11: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:41]accept exits with 5 [14:14:41]New connection [14:14:41]New thread 3066961252 created [14:14:41]Thread 3066817892 joined [14:14:41]Waiting for new connection... [14:14:41] Sock 5.Parse request [14:14:41]Sock 5.Check first char [14:14:41]Sock 5.First char is OK [14:14:41]request: POST /json_proto HTTP/1.0 [14:14:41]Method: POST [14:14:41]URL: /json_proto [14:14:41]Method is POST - this is cgi request [14:14:41]url: /json_proto [14:14:41]query_string will be loaded in cgi processing [14:14:41]execute_cgi json_proto POST (null) [14:14:41]execute_cgi path=json_proto method=POST [14:14:41]POST find Content-Length [14:14:41]Host: 172.17.63.131:8080 [14:14:41]Content-Length: 678 [14:14:41]Content-Type: application/json [14:14:41] [14:14:41]POST finish read [14:14:41]Found Content-Length = 678 [14:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31523", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:41]execute_script... [14:14: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)31523", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:41]POST & json_proto [14:14:41]process_json_proto [14:14:41]json parsed OK: [14:14:41]protocol is kg_v1.0 [14:14:41]action value=close_receipt [14:14:41]process_action close_receipt [14:14:41]cmd_close_receipt [14:14:41]MH_GetDate [14:14:41]Write to MH i2c: F0 00 00 82 85 F6 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: F0 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: F0 09 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: F0 09 00 82 85 00 E6 4A 1E 67 22 05 6E 64 AD [14:14:41]GetLastDocTimeStamp 1730038182 [14:14:41]current date 1730038502 [14:14:41]FM_GetShiftState [14:14:41]SAM_PROTO_GetShiftState [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 13 01 00 [14:14:41]Write to MH i2c: E2 08 00 83 85 80 13 01 00 00 00 00 00 85 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0E 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0E 00 83 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C6 [14:14:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:14:41]wFMCommunicate OK [14:14:41]SAM_PROTO_GetShiftState done [14:14:41]FM_GetShiftState done [14:14:41]opened in 1729989159 [14:14:41]opened+sec_in_day 1730075559 [14:14:41]quantity*price = 200025 [14:14:41]sum+1 = 200026 [14:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 242 27.10.2024 14:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192210 ФПД: 185149759638196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192210&fm=185149759638196&tin=02508201610067®Number=0000000000091776&sum=200000 [14:14:42]StoreToDocumentArchive [14:14:42]shift 542 fd 192210 [14:14:42]save to /storage/0542/doc_00192210 [14:14:42]save last doc name /storage/0542/doc_00192210 to /storage/kkm_last_doc_name [14:14:42]save OK [14:14:42]Clear old archive folders... [14:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:14:42]tlvbuf is 01A24160 [14:14:42]SAM_PROTO_ClearQueue [14:14:42]wFMCommunicate request_size=4 [14:14:42]MH_SAM_APDU [14:14:42]CAPDU: 80 09 00 00 [14:14:42]Write to MH i2c: E2 08 00 90 85 80 09 00 00 00 00 00 00 87 [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:42]Read from MH i2c: E2 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: E2 03 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: E2 03 00 90 85 00 90 00 89 [14:14:42]RAPDU: 90 00 [14:14:42]wFMCommunicate OK [14:14:42]SAM_PROTO_ClearQueue done [14:14:42]KKMCreateOFDPacket [14:14:42]OFDProtocolAddRootSTLVToBuf [14:14:42]FM_MakeSignedData [14:14:42]FM_MakeSignedData [14:14:42]SAM_PROTO_SignData [14:14:42]wFMCommunicate request_size=4 [14:14:42]MH_SAM_APDU [14:14:42]CAPDU: 80 0D 01 02 [14:14:42]Write to MH i2c: E2 08 00 91 85 80 0D 01 02 00 00 00 00 8F [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:42]Read from MH i2c: E2 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: E2 03 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: E2 03 00 91 85 00 90 00 8A [14:14:42]RAPDU: 90 00 [14:14:42]wFMCommunicate OK [14:14:42]wFMCommunicate request_size=255 [14:14:42]MH_SAM_APDU [14:14: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E6 4A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EE 02 00 35 04 06 00 A8 64 89 A7 [14:14:42]Write to MH i2c: E2 02 01 92 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E6 4A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EE 02 00 35 04 06 00 A8 64 89 A7 00 00 CC [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 03 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 03 00 92 85 00 90 00 8B [14:14:43]RAPDU: 90 00 [14:14:43]wFMCommunicate OK [14:14:43]wFMCommunicate request_size=7 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 0D 02 02 02 4A B4 [14:14:43]Write to MH i2c: E2 0A 00 93 85 80 0D 02 02 02 00 4A B4 00 00 94 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 03 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 03 00 93 85 00 90 00 8C [14:14:43]RAPDU: 90 00 [14:14:43]wFMCommunicate OK [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 0D 03 02 [14:14:43]Write to MH i2c: E2 08 00 94 85 80 0D 03 02 00 00 00 00 94 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0B 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0B 00 94 85 00 35 74 E9 0D F3 70 EA 86 90 00 07 [14:14:43]RAPDU: 35 74 E9 0D F3 70 EA 86 90 00 [14:14:43]wFMCommunicate OK [14:14:43]SAM_PROTO_SignData done [14:14:43]FM_MakeSignedData done [14:14:43]CreateOFDProtocolMessage [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 11 00 00 [14:14:43]Write to MH i2c: E2 08 00 95 85 80 11 00 00 00 00 00 00 94 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 95 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [14:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:43]wFMCommunicate OK [14:14:43]CreateOFDProtocolMessage done [14:14:43]OFDSenderStorePacket 192210 [14:14:43]StoreOFDPacket docnum=192210 [14:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 9B 04 01 0B CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E6 4A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EE 02 00 35 04 06 00 A8 64 89 A7 4A B4 35 74 E9 0D F3 70 EA 86 [14:14:43]CheckFolder [14:14:43]dirname=/storage/ofd_packets [14:14:43]CheckFolder done [14:14:43]ProducePacketName [14:14:43]name=ofd_packets/00192210 [14:14:43]NVStorageSaveData ofd_packets/00192210 [14:14:43]File name is /storage/ofd_packets/00192210 [14:14:43]Write 298 bytes [14:14:43]NVStorageSaveData done [14:14:43]OFDSenderStorePacket done [14:14:43]KKMCreateOFDPacket done [14:14:43]NVStorageSaveData kkm_last_timestamp [14:14:43]File name is /storage/kkm_last_timestamp [14:14:43]Write 4 bytes [14:14:43]NVStorageSaveData done [14:14:43]ExternCall_PrintAddStr [14:14:43]wPrintStart [14:14:43]Write to MH i2c: 01 00 00 96 85 1B [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: 01 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: 01 07 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: 01 07 00 96 85 00 00 00 00 00 FF 0F 30 [14:14:43]RasterBufferAndPrint [14:14:43]line Счет N : (1)31523 [14:14:43]line ИНН: 02508201610067 [14:14:43]line Контрольно-Кассовый Чек [14:14:43]line ПРОДАЖА [14:14:43]line ТРК (МРК, ГНК) : 11 [14:14:43]line Товар: 2710194210 [14:14:43]line ДТ-К-5 [14:14:43]line 26.250 * 76.20 [14:14:43]line = 2000.25 [14:14:43]line НДС 12% НСП 1% [14:14:43]line > о реализуемом товаре [14:14:43]line ОКРУГЛЕНИЕ: -0.25 [14:14:43]line ИТОГО: 2000.00 [14:14:43]line Внесено: 2000.00 [14:14:43]line СДАЧА: 0.00 [14:14:43]line НСП 1% : 17.70 [14:14:43]line НДС 12% : 212.42 [14:14:43]line Наличными: 2000.00 [14:14:43]line Безнал.: 0.00 [14:14:43]line Место: АЗС № 170 "Партнер Нефть" [14:14:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:14:43]line СНО: Общий режим [14:14:43]line Чек 242 27.10.2024 14:15 [14:14:43]line Смена: 542 ФФД: 1.0 [14:14:43]line ЗНМ: 0300000110 [14:14:43]line РНМ: 0000000000091776 [14:14:43]line Версия ККМ: 001 [14:14:43]line ФМ: 0000000000871754 [14:14:43]line ФД: 192210 [14:14:43]line ФПД: 185149759638196 [14:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192210&fm=185149759638196&tin=02508201610067®Number=0000000000091776&sum=200000 [14:14:43]OFD Sender: Processing packet 192210 [packets to send 75, broken 74] [14:14:43]ProducePacketName [14:14:43]name=ofd_packets/00192210 [14:14:43]OFD Sender: To server: pG, [14:14:43]CommunicateWithHost lk.salyk.kg:30040 [14:14:43]ConnectInit lk.salyk.kg [14:14:43]written 0, free lines is 4095 [14:14:43]Connected sock=6 [14:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 9B 04 01 0B CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E6 4A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EE 02 00 35 04 06 00 A8 64 89 A7 4A B4 35 74 E9 0D F3 70 EA 86 [14:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 0D 47 00 13 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EE 02 00 F4 03 04 00 AD EF 1D 67 B6 04 01 00 00 26 A6 9A 25 12 16 6D 00 [14:14:44]CommunicateWithHost err = 0 [14:14:44]CheckOFDResponse [14:14:44]1017 (14) - 77093643461234 [14:14:44]1041 (16) - 0000000000871754 [14:14:44]1040 (4) - 192210 [14:14:44]1012 (4) - 27.10.2024 07:45 [14:14:44]1206 (1) - 0 [14:14:44]OFD Sender: Remove packet 192210 [14:14:44]ProducePacketName [14:14:44]name=ofd_packets/00192210 [14:14:44]NVStorageDeleteData [14:14:44]Write to MH i2c: 01 00 00 C1 85 46 [14:14:44]Write i2c OK [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: 01 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: 01 07 00 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: 01 07 00 C1 85 00 00 00 00 00 AD 0C 06 [14:14:44]RasterBufferAndPrint [14:14:44]line [14:14:44]line [14:14:44]line [14:14:44]line [14:14:44]line [14:14:44]written 0, free lines is 3251 [14:14:44]MH_Cut [14:14:44]Write to MH i2c: D1 01 00 C8 85 01 1F [14:14:44]Write i2c OK [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: D1 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: D1 01 00 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: D1 01 00 C8 85 00 1E [14:14:44]Write to MH i2c: 01 00 00 C9 85 4E [14:14:44]Write i2c OK [14:14:44]MH_I2C_Read... [14:14:44]OFD Sender: No OFD packet to send [14:14:45]*** Cut start [14:14:45]*** Partial cut [14:14:45]*** CUTSNS_PIN = 1 [14:14:45]*** CUTSNS_PIN = 0 [14:14:45]*** Brake cut motor [14:14:45]Read from MH i2c: 01 [14:14:45]MH_I2C_Read... [14:14:45]*** Stop cut motor [14:14:45]*** Cut end [14:14:45]Read from MH i2c: 01 07 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: 01 07 00 C9 85 00 00 00 00 00 FF 0F 63 [14:14:45]process_action close_receipt done [14:14:45]requested_data is exist [14:14:45]produce_requested_data [14:14:45]requested_item fm.sn is exist - process it [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 11 00 00 [14:14:45]Write to MH i2c: E2 08 00 CA 85 80 11 00 00 00 00 00 00 C9 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 CA 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [14:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:45]wFMCommunicate OK [14:14:45]requested_item fd.num is exist - process it [14:14:45]SAM_PROTO_GetFieldsCounters [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 13 00 00 [14:14:45]Write to MH i2c: E2 08 00 CB 85 80 13 00 00 00 00 00 00 CC [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 62 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 62 00 CB 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [14:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_GetFieldsCounters done [14:14:45]requested_item shift.num is exist - process it [14:14:45]requested_item shift.opened is exist - process it [14:14:45]req_shift_opened [14:14:45]FM_GetShiftState [14:14:45]SAM_PROTO_GetShiftState [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 13 01 00 [14:14:45]Write to MH i2c: E2 08 00 CC 85 80 13 01 00 00 00 00 00 CE [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0E 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0E 00 CC 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0F [14:14:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_GetShiftState done [14:14:45]FM_GetShiftState done [14:14:45]req_shift_opened done [14:14:45]requested_item shift.open_date is exist - process it [14:14:45]req_shift_open_date [14:14:45]req_shift_open_date done [14:14:45]produce_requested_data done [14:14:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192210,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:14:45]process_action_free close_receipt [14:14:45]json_value_free [14:14:45]json_value_free done [14:14:45]process_json_proto returns [14:14:45]Send response to host [14:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192210,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:14:45]free response buf [14:14:45]execute_script done [14:14:45]execute_script returns [14:14:45]free content buf [14:14:45]Sock 5.Close socket [14:14:45]Sock 5.Thread stoped [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:48]accept exits with 8 [14:15:48]New connection [14:15:48]New thread 3066817892 created [14:15:48]Thread 3066961252 joined [14:15:48]Waiting for new connection... [14:15:48] Sock 8.Parse request [14:15:48]Sock 8.Check first char [14:15:48]Sock 8.First char is OK [14:15:48]request: POST /json_proto HTTP/1.0 [14:15:48]Method: POST [14:15:48]URL: /json_proto [14:15:48]Method is POST - this is cgi request [14:15:48]url: /json_proto [14:15:48]query_string will be loaded in cgi processing [14:15:48]execute_cgi json_proto POST (null) [14:15:48]execute_cgi path=json_proto method=POST [14:15:48]POST find Content-Length [14:15:48]Host: 172.17.63.131:8080 [14:15:48]Content-Length: 681 [14:15:48]Content-Type: application/json [14:15:48] [14:15:48]POST finish read [14:15:48]Found Content-Length = 681 [14:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:48]execute_script... [14:15: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)31525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:48]POST & json_proto [14:15:48]process_json_proto [14:15:48]json parsed OK: [14:15:48]protocol is kg_v1.0 [14:15:48]action value=close_receipt [14:15:48]process_action close_receipt [14:15:48]cmd_close_receipt [14:15:48]MH_GetDate [14:15:48]Write to MH i2c: F0 00 00 CD 85 41 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: F0 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: F0 09 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: F0 09 00 CD 85 00 28 4B 1E 67 22 05 6E 64 3B [14:15:48]GetLastDocTimeStamp 1730038502 [14:15:48]current date 1730038568 [14:15:48]FM_GetShiftState [14:15:48]SAM_PROTO_GetShiftState [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 13 01 00 [14:15:48]Write to MH i2c: E2 08 00 CE 85 80 13 01 00 00 00 00 00 D0 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 0E 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 0E 00 CE 85 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 11 [14:15:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:15:48]wFMCommunicate OK [14:15:48]SAM_PROTO_GetShiftState done [14:15:48]FM_GetShiftState done [14:15:48]opened in 1729989159 [14:15:48]opened+sec_in_day 1730075559 [14:15:48]quantity*price = 100015 [14:15:48]sum+1 = 100017 [14:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 243 27.10.2024 14:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192211 ФПД: 44084738446423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192211&fm=44084738446423&tin=02508201610067®Number=0000000000091776&sum=100000 [14:15:49]StoreToDocumentArchive [14:15:49]shift 542 fd 192211 [14:15:49]save to /storage/0542/doc_00192211 [14:15:49]save last doc name /storage/0542/doc_00192211 to /storage/kkm_last_doc_name [14:15:49]save OK [14:15:49]Clear old archive folders... [14:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:49]tlvbuf is 01A24350 [14:15:49]SAM_PROTO_ClearQueue [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 09 00 00 [14:15:49]Write to MH i2c: E2 08 00 DB 85 80 09 00 00 00 00 00 00 D2 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 DB 85 00 90 00 D4 [14:15:49]RAPDU: 90 00 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_ClearQueue done [14:15:49]KKMCreateOFDPacket [14:15:49]OFDProtocolAddRootSTLVToBuf [14:15:49]FM_MakeSignedData [14:15:49]FM_MakeSignedData [14:15:49]SAM_PROTO_SignData [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 0D 01 02 [14:15:49]Write to MH i2c: E2 08 00 DC 85 80 0D 01 02 00 00 00 00 DA [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 DC 85 00 90 00 D5 [14:15:49]RAPDU: 90 00 [14:15:49]wFMCommunicate OK [14:15:49]wFMCommunicate request_size=255 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 28 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EE 02 00 35 04 06 00 28 [14:15:49]Write to MH i2c: E2 02 01 DD 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 28 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EE 02 00 35 04 06 00 28 00 00 5E [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 DD 85 00 90 00 D6 [14:15:49]RAPDU: 90 00 [14:15:49]wFMCommunicate OK [14:15:49]wFMCommunicate request_size=10 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 0D 02 02 05 18 47 2C D4 57 [14:15:49]Write to MH i2c: E2 0D 00 DE 85 80 0D 02 02 05 00 18 47 2C D4 57 00 00 9D [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 03 00 DE 85 00 90 00 D7 [14:15:49]RAPDU: 90 00 [14:15:49]wFMCommunicate OK [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 0D 03 02 [14:15:49]Write to MH i2c: E2 08 00 DF 85 80 0D 03 02 00 00 00 00 DF [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]OFD Sender: No OFD packet to send [14:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0B 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0B 00 DF 85 00 E7 B5 9D 2C D7 93 86 BC 90 00 F1 [14:15:49]RAPDU: E7 B5 9D 2C D7 93 86 BC 90 00 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_SignData done [14:15:49]FM_MakeSignedData done [14:15:49]CreateOFDProtocolMessage [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 11 00 00 [14:15:49]Write to MH i2c: E2 08 00 E0 85 80 11 00 00 00 00 00 00 DF [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 17 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 17 00 E0 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [14:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:15:49]wFMCommunicate OK [14:15:49]CreateOFDProtocolMessage done [14:15:49]OFDSenderStorePacket 192211 [14:15:49]StoreOFDPacket docnum=192211 [14:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F6 C1 07 01 E4 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 28 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EE 02 00 35 04 06 00 28 18 47 2C D4 57 E7 B5 9D 2C D7 93 86 BC [14:15:49]CheckFolder [14:15:49]dirname=/storage/ofd_packets [14:15:49]CheckFolder done [14:15:49]ProducePacketName [14:15:49]name=ofd_packets/00192211 [14:15:49]NVStorageSaveData ofd_packets/00192211 [14:15:49]File name is /storage/ofd_packets/00192211 [14:15:49]Write 301 bytes [14:15:49]NVStorageSaveData done [14:15:49]OFDSenderStorePacket done [14:15:49]KKMCreateOFDPacket done [14:15:49]NVStorageSaveData kkm_last_timestamp [14:15:49]File name is /storage/kkm_last_timestamp [14:15:49]Write 4 bytes [14:15:49]NVStorageSaveData done [14:15:49]ExternCall_PrintAddStr [14:15:49]wPrintStart [14:15:49]Write to MH i2c: 01 00 00 E1 85 66 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 07 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 07 00 E1 85 00 00 00 00 00 FF 0F 7B [14:15:49]RasterBufferAndPrint [14:15:49]line Счет N : (1)31525 [14:15:49]line ИНН: 02508201610067 [14:15:49]line Контрольно-Кассовый Чек [14:15:49]line ПРОДАЖА [14:15:49]line ТРК (МРК, ГНК) : 21 [14:15:49]line Товар: 2710124130 [14:15:49]line Аи-92-К-5 [14:15:49]line 14.950 * 66.90 [14:15:49]line = 1000.16 [14:15:49]line НДС 12% НСП 1% [14:15:49]line > о реализуемом товаре [14:15:49]line ОКРУГЛЕНИЕ: -0.16 [14:15:49]line ИТОГО: 1000.00 [14:15:49]line Внесено: 1000.00 [14:15:49]line СДАЧА: 0.00 [14:15:49]line НСП 1% : 8.85 [14:15:49]line НДС 12% : 106.21 [14:15:49]line Наличными: 1000.00 [14:15:49]line Безнал.: 0.00 [14:15:49]line Место: АЗС № 170 "Партнер Нефть" [14:15:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:15:49]line СНО: Общий режим [14:15:49]line Чек 243 27.10.2024 14:16 [14:15:49]line Смена: 542 ФФД: 1.0 [14:15:49]line ЗНМ: 0300000110 [14:15:49]line РНМ: 0000000000091776 [14:15:49]line Версия ККМ: 001 [14:15:49]line ФМ: 0000000000871754 [14:15:49]line ФД: 192211 [14:15:49]line ФПД: 44084738446423 [14:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192211&fm=44084738446423&tin=02508201610067®Number=0000000000091776&sum=100000 [14:15:50]OFD Sender: Processing packet 192211 [packets to send 75, broken 74] [14:15:50]ProducePacketName [14:15:50]name=ofd_packets/00192211 [14:15:50]OFD Sender: To server: pG, [14:15:50]CommunicateWithHost lk.salyk.kg:30040 [14:15:50]ConnectInit lk.salyk.kg [14:15:50]written 0, free lines is 4095 [14:15:50]Connected sock=6 [14:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F6 C1 07 01 E4 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 28 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EE 02 00 35 04 06 00 28 18 47 2C D4 57 E7 B5 9D 2C D7 93 86 BC [14:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 DC 47 00 D3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EE 02 00 F4 03 04 00 F0 EF 1D 67 B6 04 01 00 00 47 02 A7 4E 70 75 AE A9 [14:15:50]CommunicateWithHost err = 0 [14:15:50]CheckOFDResponse [14:15:50]1017 (14) - 77093643461234 [14:15:50]1041 (16) - 0000000000871754 [14:15:50]1040 (4) - 192211 [14:15:50]1012 (4) - 27.10.2024 07:46 [14:15:50]1206 (1) - 0 [14:15:50]OFD Sender: Remove packet 192211 [14:15:50]ProducePacketName [14:15:50]name=ofd_packets/00192211 [14:15:50]NVStorageDeleteData [14:15:50]Write to MH i2c: 01 00 00 0C 86 92 [14:15:50]Write i2c OK [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: 01 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: 01 07 00 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: 01 07 00 0C 86 00 00 00 00 00 AD 0C 52 [14:15:50]RasterBufferAndPrint [14:15:50]line [14:15:50]line [14:15:50]line [14:15:50]line [14:15:50]line [14:15:50]written 0, free lines is 3251 [14:15:50]MH_Cut [14:15:50]Write to MH i2c: D1 01 00 13 86 01 6B [14:15:50]Write i2c OK [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: D1 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: D1 01 00 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: D1 01 00 13 86 00 6A [14:15:50]Write to MH i2c: 01 00 00 14 86 9A [14:15:50]Write i2c OK [14:15:50]MH_I2C_Read... [14:15:50]OFD Sender: No OFD packet to send [14:15:51]*** Cut start [14:15:51]*** Partial cut [14:15:51]*** CUTSNS_PIN = 1 [14:15:51]*** CUTSNS_PIN = 0 [14:15:51]*** Brake cut motor [14:15:52]Read from MH i2c: 01 [14:15:52]MH_I2C_Read... [14:15:52]*** Stop cut motor [14:15:52]*** Cut end [14:15:52]Read from MH i2c: 01 07 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: 01 07 00 14 86 00 00 00 00 00 FF 0F AF [14:15:52]process_action close_receipt done [14:15:52]requested_data is exist [14:15:52]produce_requested_data [14:15:52]requested_item fm.sn is exist - process it [14:15:52]wFMCommunicate request_size=4 [14:15:52]MH_SAM_APDU [14:15:52]CAPDU: 80 11 00 00 [14:15:52]Write to MH i2c: E2 08 00 15 86 80 11 00 00 00 00 00 00 15 [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:52]Read from MH i2c: E2 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 17 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 17 00 15 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [14:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:15:52]wFMCommunicate OK [14:15:52]requested_item fd.num is exist - process it [14:15:52]SAM_PROTO_GetFieldsCounters [14:15:52]wFMCommunicate request_size=4 [14:15:52]MH_SAM_APDU [14:15:52]CAPDU: 80 13 00 00 [14:15:52]Write to MH i2c: E2 08 00 16 86 80 13 00 00 00 00 00 00 18 [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:52]Read from MH i2c: E2 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 62 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 62 00 16 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [14:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:52]wFMCommunicate OK [14:15:52]SAM_PROTO_GetFieldsCounters done [14:15:52]requested_item shift.num is exist - process it [14:15:52]requested_item shift.opened is exist - process it [14:15:52]req_shift_opened [14:15:52]FM_GetShiftState [14:15:52]SAM_PROTO_GetShiftState [14:15:52]wFMCommunicate request_size=4 [14:15:52]MH_SAM_APDU [14:15:52]CAPDU: 80 13 01 00 [14:15:52]Write to MH i2c: E2 08 00 17 86 80 13 01 00 00 00 00 00 1A [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:52]Read from MH i2c: E2 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 0E 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: E2 0E 00 17 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5B [14:15:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:15:52]wFMCommunicate OK [14:15:52]SAM_PROTO_GetShiftState done [14:15:52]FM_GetShiftState done [14:15:52]req_shift_opened done [14:15:52]requested_item shift.open_date is exist - process it [14:15:52]req_shift_open_date [14:15:52]req_shift_open_date done [14:15:52]produce_requested_data done [14:15:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192211,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:15:52]process_action_free close_receipt [14:15:52]json_value_free [14:15:52]json_value_free done [14:15:52]process_json_proto returns [14:15:52]Send response to host [14:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192211,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:15:52]free response buf [14:15:52]execute_script done [14:15:52]execute_script returns [14:15:52]free content buf [14:15:52]Sock 8.Close socket [14:15:52]Sock 8.Thread stoped [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:45]accept exits with 5 [14:16:45]New connection [14:16:45]New thread 3066961252 created [14:16:45]Thread 3066817892 joined [14:16:45]Waiting for new connection... [14:16:45] Sock 5.Parse request [14:16:45]Sock 5.Check first char [14:16:45]Sock 5.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.63.131:8080 [14:16:45]Content-Length: 678 [14:16:45]Content-Type: application/json [14:16:45] [14:16:45]POST finish read [14:16:45]Found Content-Length = 678 [14:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31524", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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 : (1)31524", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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 18 86 8D [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 18 86 00 62 4B 1E 67 22 05 6E 64 C1 [14:16:45]GetLastDocTimeStamp 1730038568 [14:16:45]current date 1730038626 [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 19 86 80 13 01 00 00 00 00 00 1C [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 19 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5D [14:16:45]RAPDU: 09 00 01 27 8A 1D 67 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 1729989159 [14:16:45]opened+sec_in_day 1730075559 [14:16:45]quantity*price = 200025 [14:16:45]sum+1 = 200026 [14:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 244 27.10.2024 14:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192212 ФПД: 126225205815103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141706&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192212&fm=126225205815103&tin=02508201610067®Number=0000000000091776&sum=200000 [14:16:46]StoreToDocumentArchive [14:16:46]shift 542 fd 192212 [14:16:46]save to /storage/0542/doc_00192212 [14:16:46]save last doc name /storage/0542/doc_00192212 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=248 [14:16:46]tlvbuf is 019923C0 [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 26 86 80 09 00 00 00 00 00 00 1E [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 26 86 00 90 00 20 [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 27 86 80 0D 01 02 00 00 00 00 26 [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 27 86 00 90 00 21 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 62 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EE 02 00 35 04 06 00 72 CD 18 8D [14:16:46]Write to MH i2c: E2 02 01 28 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 62 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EE 02 00 35 04 06 00 72 CD 18 8D 00 00 8C [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 28 86 00 90 00 22 [14:16:47]RAPDU: 90 00 [14:16:47]wFMCommunicate OK [14:16:47]wFMCommunicate request_size=7 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 0D 02 02 02 E7 3F [14:16:47]Write to MH i2c: E2 0A 00 29 86 80 0D 02 02 02 00 E7 3F 00 00 53 [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 29 86 00 90 00 23 [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 2A 86 80 0D 03 02 00 00 00 00 2B [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 2A 86 00 2A 74 16 93 FE 46 C8 4D 90 00 CC [14:16:47]RAPDU: 2A 74 16 93 FE 46 C8 4D 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 2B 86 80 11 00 00 00 00 00 00 2B [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 2B 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [14:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:16:47]wFMCommunicate OK [14:16:47]CreateOFDProtocolMessage done [14:16:47]OFDSenderStorePacket 192212 [14:16:47]StoreOFDPacket docnum=192212 [14:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 81 D9 04 01 59 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 62 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EE 02 00 35 04 06 00 72 CD 18 8D E7 3F 2A 74 16 93 FE 46 C8 4D [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/00192212 [14:16:47]NVStorageSaveData ofd_packets/00192212 [14:16:47]File name is /storage/ofd_packets/00192212 [14:16:47]Write 298 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 2C 86 B2 [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 2C 86 00 00 00 00 00 FF 0F C7 [14:16:47]RasterBufferAndPrint [14:16:47]line Счет N : (1)31524 [14:16:47]line ИНН: 02508201610067 [14:16:47]line Контрольно-Кассовый Чек [14:16:47]line ПРОДАЖА [14:16:47]line ТРК (МРК, ГНК) : 11 [14:16:47]line Товар: 2710194210 [14:16:47]line ДТ-К-5 [14:16:47]line 26.250 * 76.20 [14:16:47]line = 2000.25 [14:16:47]line НДС 12% НСП 1% [14:16:47]line > о реализуемом товаре [14:16:47]line ОКРУГЛЕНИЕ: -0.25 [14:16:47]line ИТОГО: 2000.00 [14:16:47]line Внесено: 2000.00 [14:16:47]line СДАЧА: 0.00 [14:16:47]line НСП 1% : 17.70 [14:16:47]line НДС 12% : 212.42 [14:16:47]line Наличными: 2000.00 [14:16:47]line Безнал.: 0.00 [14:16:47]line Место: АЗС № 170 "Партнер Нефть" [14:16:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:16:47]line СНО: Общий режим [14:16:47]line Чек 244 27.10.2024 14:17 [14:16:47]line Смена: 542 ФФД: 1.0 [14:16:47]line ЗНМ: 0300000110 [14:16:47]line РНМ: 0000000000091776 [14:16:47]line Версия ККМ: 001 [14:16:47]line ФМ: 0000000000871754 [14:16:47]line ФД: 192212 [14:16:47]line ФПД: 126225205815103 [14:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141706&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192212&fm=126225205815103&tin=02508201610067®Number=0000000000091776&sum=200000 [14:16:47]OFD Sender: Processing packet 192212 [packets to send 75, broken 74] [14:16:47]ProducePacketName [14:16:47]name=ofd_packets/00192212 [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]written 0, free lines is 4095 [14:16:47]Connected sock=8 [14:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 81 D9 04 01 59 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 62 4B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EE 02 00 35 04 06 00 72 CD 18 8D E7 3F 2A 74 16 93 FE 46 C8 4D [14:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EC 2D 47 00 63 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EE 02 00 F4 03 04 00 29 F0 1D 67 B6 04 01 00 00 35 BD DD B5 D9 13 8B 6E [14:16:47]CommunicateWithHost err = 0 [14:16:47]CheckOFDResponse [14:16:47]1017 (14) - 77093643461234 [14:16:47]1041 (16) - 0000000000871754 [14:16:47]1040 (4) - 192212 [14:16:47]1012 (4) - 27.10.2024 07:47 [14:16:47]1206 (1) - 0 [14:16:47]OFD Sender: Remove packet 192212 [14:16:47]ProducePacketName [14:16:47]name=ofd_packets/00192212 [14:16:47]NVStorageDeleteData [14:16:48]Write to MH i2c: 01 00 00 57 86 DD [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 57 86 00 00 00 00 00 AE 0C 9E [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 3254 [14:16:48]MH_Cut [14:16:48]Write to MH i2c: D1 01 00 5E 86 01 B6 [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 5E 86 00 B5 [14:16:48]Write to MH i2c: 01 00 00 5F 86 E5 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]OFD Sender: No OFD packet to send [14:16:48]*** Cut start [14:16:48]*** Partial cut [14:16:48]*** CUTSNS_PIN = 1 [14:16:49]*** CUTSNS_PIN = 0 [14:16:49]*** Brake cut motor [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]*** Stop cut motor [14:16:49]*** Cut end [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 5F 86 00 00 00 00 00 FF 0F FA [14:16:49]process_action close_receipt done [14:16:49]requested_data is exist [14:16:49]produce_requested_data [14:16:49]requested_item fm.sn is exist - process it [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 11 00 00 [14:16:49]Write to MH i2c: E2 08 00 60 86 80 11 00 00 00 00 00 00 60 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 60 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [14:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:16:49]wFMCommunicate OK [14:16:49]requested_item fd.num is exist - process it [14:16:49]SAM_PROTO_GetFieldsCounters [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 13 00 00 [14:16:49]Write to MH i2c: E2 08 00 61 86 80 13 00 00 00 00 00 00 63 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 62 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 62 00 61 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:49]wFMCommunicate OK [14:16:49]SAM_PROTO_GetFieldsCounters done [14:16:49]requested_item shift.num is exist - process it [14:16:49]requested_item shift.opened is exist - process it [14:16:49]req_shift_opened [14:16:49]FM_GetShiftState [14:16:49]SAM_PROTO_GetShiftState [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 13 01 00 [14:16:49]Write to MH i2c: E2 08 00 62 86 80 13 01 00 00 00 00 00 65 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 0E 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 0E 00 62 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A6 [14:16:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:16:49]wFMCommunicate OK [14:16:49]SAM_PROTO_GetShiftState done [14:16:49]FM_GetShiftState done [14:16:49]req_shift_opened done [14:16:49]requested_item shift.open_date is exist - process it [14:16:49]req_shift_open_date [14:16:49]req_shift_open_date done [14:16:49]produce_requested_data done [14:16:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192212,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:16:49]process_action_free close_receipt [14:16:49]json_value_free [14:16:49]json_value_free done [14:16:49]process_json_proto returns [14:16:49]Send response to host [14:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192212,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:16:49]free response buf [14:16:49]execute_script done [14:16:49]execute_script returns [14:16:49]free content buf [14:16:49]Sock 5.Close socket [14:16:49]Sock 5.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:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:54]accept exits with 6 [14:20:54]New connection [14:20:54]New thread 3066817892 created [14:20:54]Thread 3066961252 joined [14:20:54]Waiting for new connection... [14:20:54] Sock 6.Parse request [14:20:54]Sock 6.Check first char [14:20:54]Sock 6.First char is OK [14:20:54]request: POST /json_proto HTTP/1.0 [14:20:54]Method: POST [14:20:54]URL: /json_proto [14:20:54]Method is POST - this is cgi request [14:20:54]url: /json_proto [14:20:54]query_string will be loaded in cgi processing [14:20:54]execute_cgi json_proto POST (null) [14:20:54]execute_cgi path=json_proto method=POST [14:20:54]POST find Content-Length [14:20:54]Host: 172.17.63.131:8080 [14:20:54]Content-Length: 863 [14:20:54]Content-Type: application/json [14:20:54] [14:20:54]POST finish read [14:20:54]Found Content-Length = 863 [14:20:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:54]execute_script... [14:20: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)31526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:54]POST & json_proto [14:20:54]process_json_proto [14:20:54]json parsed OK: [14:20:54]protocol is kg_v1.0 [14:20:54]action value=close_receipt [14:20:54]process_action close_receipt [14:20:54]cmd_close_receipt [14:20:54]MH_GetDate [14:20:54]Write to MH i2c: F0 00 00 63 86 D8 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 09 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 09 00 63 86 00 5A 4C 1E 67 22 05 6E 64 05 [14:20:54]GetLastDocTimeStamp 1730038626 [14:20:54]current date 1730038874 [14:20:54]FM_GetShiftState [14:20:54]SAM_PROTO_GetShiftState [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 13 01 00 [14:20:54]Write to MH i2c: E2 08 00 64 86 80 13 01 00 00 00 00 00 67 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 64 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A8 [14:20:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_GetShiftState done [14:20:54]FM_GetShiftState done [14:20:54]opened in 1729989159 [14:20:54]opened+sec_in_day 1730075559 [14:20:54]quantity*price = 70044 [14:20:54]sum+1 = 70045 [14:20:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 245 27.10.2024 14:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192213 ФПД: 9537844668776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142114&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192213&fm=9537844668776&tin=02508201610067®Number=0000000000091776&sum=70044 [14:20:55]StoreToDocumentArchive [14:20:55]shift 542 fd 192213 [14:20:55]save to /storage/0542/doc_00192213 [14:20:55]save last doc name /storage/0542/doc_00192213 to /storage/kkm_last_doc_name [14:20:55]save OK [14:20:55]Clear old archive folders... [14:20:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:55]tlvbuf is 01CAAAB0 [14:20:55]SAM_PROTO_ClearQueue [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 09 00 00 [14:20:55]Write to MH i2c: E2 08 00 71 86 80 09 00 00 00 00 00 00 69 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 71 86 00 90 00 6B [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]SAM_PROTO_ClearQueue done [14:20:55]KKMCreateOFDPacket [14:20:55]OFDProtocolAddRootSTLVToBuf [14:20:55]FM_MakeSignedData [14:20:55]FM_MakeSignedData [14:20:55]SAM_PROTO_SignData [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 01 02 [14:20:55]Write to MH i2c: E2 08 00 72 86 80 0D 01 02 00 00 00 00 71 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 72 86 00 90 00 6C [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]wFMCommunicate request_size=255 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5A 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EE 02 00 35 04 06 00 08 [14:20:55]Write to MH i2c: E2 02 01 73 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5A 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EE 02 00 35 04 06 00 08 00 00 7A [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 73 86 00 90 00 6D [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]wFMCommunicate request_size=10 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 02 02 05 AC B3 D7 E9 68 [14:20:55]Write to MH i2c: E2 0D 00 74 86 80 0D 02 02 05 00 AC B3 D7 E9 68 00 00 05 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 74 86 00 90 00 6E [14:20:56]RAPDU: 90 00 [14:20:56]wFMCommunicate OK [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 0D 03 02 [14:20:56]Write to MH i2c: E2 08 00 75 86 80 0D 03 02 00 00 00 00 76 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0B 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0B 00 75 86 00 41 74 50 C4 95 20 89 8F 90 00 0D [14:20:56]RAPDU: 41 74 50 C4 95 20 89 8F 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_SignData done [14:20:56]FM_MakeSignedData done [14:20:56]CreateOFDProtocolMessage [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 11 00 00 [14:20:56]Write to MH i2c: E2 08 00 76 86 80 11 00 00 00 00 00 00 76 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 76 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [14:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:20:56]wFMCommunicate OK [14:20:56]CreateOFDProtocolMessage done [14:20:56]OFDSenderStorePacket 192213 [14:20:56]StoreOFDPacket docnum=192213 [14:20:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 F5 07 01 0C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5A 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EE 02 00 35 04 06 00 08 AC B3 D7 E9 68 41 74 50 C4 95 20 89 8F [14:20:56]CheckFolder [14:20:56]dirname=/storage/ofd_packets [14:20:56]CheckFolder done [14:20:56]ProducePacketName [14:20:56]name=ofd_packets/00192213 [14:20:56]NVStorageSaveData ofd_packets/00192213 [14:20:56]File name is /storage/ofd_packets/00192213 [14:20:56]Write 301 bytes [14:20:56]NVStorageSaveData done [14:20:56]OFDSenderStorePacket done [14:20:56]KKMCreateOFDPacket done [14:20:56]NVStorageSaveData kkm_last_timestamp [14:20:56]File name is /storage/kkm_last_timestamp [14:20:56]Write 4 bytes [14:20:56]NVStorageSaveData done [14:20:56]ExternCall_PrintAddStr [14:20:56]wPrintStart [14:20:56]Write to MH i2c: 01 00 00 77 86 FD [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 77 86 00 00 00 00 00 FF 0F 12 [14:20:56]RasterBufferAndPrint [14:20:56]line Счет N : (1)31526 [14:20:56]line ИНН: 02508201610067 [14:20:56]line Контрольно-Кассовый Чек [14:20:56]line ПРОДАЖА [14:20:56]line ТРК (МРК, ГНК) : 12 [14:20:56]line Товар: 2710124130 [14:20:56]line Аи-92-К-5 [14:20:56]line 10.470 * 66.90 [14:20:56]line = 700.44 [14:20:56]line НДС 12% НСП 1% [14:20:56]line > о реализуемом товаре [14:20:56]line ИТОГО: 700.44 [14:20:56]line НСП 1% : 6.20 [14:20:56]line НДС 12% : 74.38 [14:20:56]line Наличными: 0.00 [14:20:56]line Безнал.: 700.44 [14:20:56]line Место: АЗС № 170 "Партнер Нефть" [14:20:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:20:56]line СНО: Общий режим [14:20:56]line Чек 245 27.10.2024 14:21 [14:20:56]line Смена: 542 ФФД: 1.0 [14:20:56]line ЗНМ: 0300000110 [14:20:56]line РНМ: 0000000000091776 [14:20:56]line Версия ККМ: 001 [14:20:56]line Платежная система: Кыргызкоммерцбанк [14:20:56]line ФМ: 0000000000871754 [14:20:56]line ФД: 192213 [14:20:56]line ФПД: 9537844668776 [14:20:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142114&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192213&fm=9537844668776&tin=02508201610067®Number=0000000000091776&sum=70044 [14:20:56]written 0, free lines is 4095 [14:20:56]OFD Sender: Processing packet 192213 [packets to send 75, broken 74] [14:20:56]ProducePacketName [14:20:56]name=ofd_packets/00192213 [14:20:56]OFD Sender: To server: pG, [14:20:56]CommunicateWithHost lk.salyk.kg:30040 [14:20:56]ConnectInit lk.salyk.kg [14:20:56]Connected sock=8 [14:20:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 F5 07 01 0C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5A 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EE 02 00 35 04 06 00 08 AC B3 D7 E9 68 41 74 50 C4 95 20 89 8F [14:20:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2B 76 47 00 04 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EE 02 00 F4 03 04 00 22 F1 1D 67 B6 04 01 00 00 A5 CA 77 EC 82 D7 CE 16 [14:20:56]CommunicateWithHost err = 0 [14:20:56]CheckOFDResponse [14:20:56]1017 (14) - 77093643461234 [14:20:56]1041 (16) - 0000000000871754 [14:20:56]1040 (4) - 192213 [14:20:56]1012 (4) - 27.10.2024 07:52 [14:20:56]1206 (1) - 0 [14:20:56]OFD Sender: Remove packet 192213 [14:20:56]ProducePacketName [14:20:56]name=ofd_packets/00192213 [14:20:56]NVStorageDeleteData [14:20:56]Write to MH i2c: 01 00 00 A1 86 27 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 A1 86 00 00 00 00 00 C8 0C 02 [14:20:56]RasterBufferAndPrint [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]written 0, free lines is 3281 [14:20:56]MH_Cut [14:20:56]Write to MH i2c: D1 01 00 A8 86 01 00 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: D1 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: D1 01 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: D1 01 00 A8 86 00 FF [14:20:56]Write to MH i2c: 01 00 00 A9 86 2F [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:57]OFD Sender: No OFD packet to send [14:20:57]*** Cut start [14:20:57]*** Partial cut [14:20:57]*** CUTSNS_PIN = 1 [14:20:57]*** CUTSNS_PIN = 0 [14:20:58]*** Brake cut motor [14:20:58]Read from MH i2c: 01 [14:20:58]MH_I2C_Read... [14:20:58]*** Stop cut motor [14:20:58]*** Cut end [14:20:58]Read from MH i2c: 01 07 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: 01 07 00 A9 86 00 00 00 00 00 FF 0F 44 [14:20:58]process_action close_receipt done [14:20:58]requested_data is exist [14:20:58]produce_requested_data [14:20:58]requested_item fm.sn is exist - process it [14:20:58]wFMCommunicate request_size=4 [14:20:58]MH_SAM_APDU [14:20:58]CAPDU: 80 11 00 00 [14:20:58]Write to MH i2c: E2 08 00 AA 86 80 11 00 00 00 00 00 00 AA [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:58]Read from MH i2c: E2 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 17 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 17 00 AA 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [14:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:20:58]wFMCommunicate OK [14:20:58]requested_item fd.num is exist - process it [14:20:58]SAM_PROTO_GetFieldsCounters [14:20:58]wFMCommunicate request_size=4 [14:20:58]MH_SAM_APDU [14:20:58]CAPDU: 80 13 00 00 [14:20:58]Write to MH i2c: E2 08 00 AB 86 80 13 00 00 00 00 00 00 AD [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:58]Read from MH i2c: E2 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 62 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 62 00 AB 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [14:20:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:58]wFMCommunicate OK [14:20:58]SAM_PROTO_GetFieldsCounters done [14:20:58]requested_item shift.num is exist - process it [14:20:58]requested_item shift.opened is exist - process it [14:20:58]req_shift_opened [14:20:58]FM_GetShiftState [14:20:58]SAM_PROTO_GetShiftState [14:20:58]wFMCommunicate request_size=4 [14:20:58]MH_SAM_APDU [14:20:58]CAPDU: 80 13 01 00 [14:20:58]Write to MH i2c: E2 08 00 AC 86 80 13 01 00 00 00 00 00 AF [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:58]Read from MH i2c: E2 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 0E 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 0E 00 AC 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F0 [14:20:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:20:58]wFMCommunicate OK [14:20:58]SAM_PROTO_GetShiftState done [14:20:58]FM_GetShiftState done [14:20:58]req_shift_opened done [14:20:58]requested_item shift.open_date is exist - process it [14:20:58]req_shift_open_date [14:20:58]req_shift_open_date done [14:20:58]produce_requested_data done [14:20:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192213,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:20:58]process_action_free close_receipt [14:20:58]json_value_free [14:20:58]json_value_free done [14:20:58]process_json_proto returns [14:20:58]Send response to host [14:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192213,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:20:58]free response buf [14:20:58]execute_script done [14:20:58]execute_script returns [14:20:58]free content buf [14:20:58]Sock 6.Close socket [14:20:58]Sock 6.Thread stoped [14:21:00]accept exits with 5 [14:21:00]New connection [14:21:00]New thread 3066961252 created [14:21:00]Thread 3066817892 joined [14:21:00]Waiting for new connection... [14:21:00] Sock 5.Parse request [14:21:00]Sock 5.Check first char [14:21:00]Sock 5.First char is OK [14:21:00]request: POST /json_proto HTTP/1.0 [14:21:00]Method: POST [14:21:00]URL: /json_proto [14:21:00]Method is POST - this is cgi request [14:21:00]url: /json_proto [14:21:00]query_string will be loaded in cgi processing [14:21:00]execute_cgi json_proto POST (null) [14:21:00]execute_cgi path=json_proto method=POST [14:21:00]POST find Content-Length [14:21:00]Host: 172.17.63.131:8080 [14:21:00]Content-Length: 676 [14:21:00]Content-Type: application/json [14:21:00] [14:21:00]POST finish read [14:21:00]Found Content-Length = 676 [14:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:00]execute_script... [14:21:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:00]POST & json_proto [14:21:00]process_json_proto [14:21:00]json parsed OK: [14:21:00]protocol is kg_v1.0 [14:21:00]action value=close_receipt [14:21:00]process_action close_receipt [14:21:00]cmd_close_receipt [14:21:00]MH_GetDate [14:21:00]Write to MH i2c: F0 00 00 AD 86 22 [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 09 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: F0 09 00 AD 86 00 61 4C 1E 67 22 05 6E 64 56 [14:21:00]GetLastDocTimeStamp 1730038874 [14:21:00]current date 1730038881 [14:21:00]FM_GetShiftState [14:21:00]SAM_PROTO_GetShiftState [14:21:00]wFMCommunicate request_size=4 [14:21:00]MH_SAM_APDU [14:21:00]CAPDU: 80 13 01 00 [14:21:00]Write to MH i2c: E2 08 00 AE 86 80 13 01 00 00 00 00 00 B1 [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0E 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0E 00 AE 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [14:21:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:21:00]wFMCommunicate OK [14:21:00]SAM_PROTO_GetShiftState done [14:21:00]FM_GetShiftState done [14:21:00]opened in 1729989159 [14:21:00]opened+sec_in_day 1730075559 [14:21:00]quantity*price = 30038 [14:21:00]sum+1 = 30039 [14:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 246 27.10.2024 14:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192214 ФПД: 193555099956627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192214&fm=193555099956627&tin=02508201610067®Number=0000000000091776&sum=30000 [14:21:01]StoreToDocumentArchive [14:21:01]shift 542 fd 192214 [14:21:01]save to /storage/0542/doc_00192214 [14:21:01]save last doc name /storage/0542/doc_00192214 to /storage/kkm_last_doc_name [14:21:01]save OK [14:21:01]Clear old archive folders... [14:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:01]tlvbuf is 018C8D60 [14:21:01]SAM_PROTO_ClearQueue [14:21:01]wFMCommunicate request_size=4 [14:21:01]MH_SAM_APDU [14:21:01]CAPDU: 80 09 00 00 [14:21:01]Write to MH i2c: E2 08 00 BB 86 80 09 00 00 00 00 00 00 B3 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 BB 86 00 90 00 B5 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_ClearQueue done [14:21:02]KKMCreateOFDPacket [14:21:02]OFDProtocolAddRootSTLVToBuf [14:21:02]FM_MakeSignedData [14:21:02]FM_MakeSignedData [14:21:02]SAM_PROTO_SignData [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 01 02 [14:21:02]Write to MH i2c: E2 08 00 BC 86 80 0D 01 02 00 00 00 00 BB [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 BC 86 00 90 00 B6 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=255 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 61 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EE 02 00 35 04 06 00 B0 [14:21:02]Write to MH i2c: E2 02 01 BD 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 61 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EE 02 00 35 04 06 00 B0 00 00 01 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]OFD Sender: No OFD packet to send [14:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 BD 86 00 90 00 B7 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=10 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 02 02 05 09 8E FA 35 93 [14:21:02]Write to MH i2c: E2 0D 00 BE 86 80 0D 02 02 05 00 09 8E FA 35 93 00 00 21 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 BE 86 00 90 00 B8 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 03 02 [14:21:02]Write to MH i2c: E2 08 00 BF 86 80 0D 03 02 00 00 00 00 C0 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 BF 86 00 F5 6B FE 1E F7 6E 36 FE 90 00 D6 [14:21:02]RAPDU: F5 6B FE 1E F7 6E 36 FE 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_SignData done [14:21:02]FM_MakeSignedData done [14:21:02]CreateOFDProtocolMessage [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 11 00 00 [14:21:02]Write to MH i2c: E2 08 00 C0 86 80 11 00 00 00 00 00 00 C0 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 C0 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [14:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:02]wFMCommunicate OK [14:21:02]CreateOFDProtocolMessage done [14:21:02]OFDSenderStorePacket 192214 [14:21:02]StoreOFDPacket docnum=192214 [14:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EF BB 07 01 D5 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 61 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EE 02 00 35 04 06 00 B0 09 8E FA 35 93 F5 6B FE 1E F7 6E 36 FE [14:21:02]CheckFolder [14:21:02]dirname=/storage/ofd_packets [14:21:02]CheckFolder done [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00192214 [14:21:02]NVStorageSaveData ofd_packets/00192214 [14:21:02]File name is /storage/ofd_packets/00192214 [14:21:02]Write 301 bytes [14:21:02]NVStorageSaveData done [14:21:02]OFDSenderStorePacket done [14:21:02]KKMCreateOFDPacket done [14:21:02]NVStorageSaveData kkm_last_timestamp [14:21:02]File name is /storage/kkm_last_timestamp [14:21:02]Write 4 bytes [14:21:02]NVStorageSaveData done [14:21:02]ExternCall_PrintAddStr [14:21:02]wPrintStart [14:21:02]Write to MH i2c: 01 00 00 C1 86 47 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 C1 86 00 00 00 00 00 FF 0F 5C [14:21:02]RasterBufferAndPrint [14:21:02]line Счет N : (1)31527 [14:21:02]line ИНН: 02508201610067 [14:21:02]line Контрольно-Кассовый Чек [14:21:02]line ПРОДАЖА [14:21:02]line ТРК (МРК, ГНК) : 21 [14:21:02]line Товар: 2710124130 [14:21:02]line Аи-92-К-5 [14:21:02]line 4.490 * 66.90 [14:21:02]line = 300.38 [14:21:02]line НДС 12% НСП 1% [14:21:02]line > о реализуемом товаре [14:21:02]line ОКРУГЛЕНИЕ: -0.38 [14:21:02]line ИТОГО: 300.00 [14:21:02]line Внесено: 300.00 [14:21:02]line СДАЧА: 0.00 [14:21:02]line НСП 1% : 2.66 [14:21:02]line НДС 12% : 31.90 [14:21:02]line Наличными: 300.00 [14:21:02]line Безнал.: 0.00 [14:21:02]line Место: АЗС № 170 "Партнер Нефть" [14:21:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:02]line СНО: Общий режим [14:21:02]line Чек 246 27.10.2024 14:21 [14:21:02]line Смена: 542 ФФД: 1.0 [14:21:02]line ЗНМ: 0300000110 [14:21:02]line РНМ: 0000000000091776 [14:21:02]line Версия ККМ: 001 [14:21:02]line ФМ: 0000000000871754 [14:21:02]line ФД: 192214 [14:21:02]line ФПД: 193555099956627 [14:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192214&fm=193555099956627&tin=02508201610067®Number=0000000000091776&sum=30000 [14:21:02]written 0, free lines is 4095 [14:21:02]OFD Sender: Processing packet 192214 [packets to send 75, broken 74] [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00192214 [14:21:02]OFD Sender: To server: pG, [14:21:02]CommunicateWithHost lk.salyk.kg:30040 [14:21:02]ConnectInit lk.salyk.kg [14:21:02]Connected sock=8 [14:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EF BB 07 01 D5 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 61 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EE 02 00 35 04 06 00 B0 09 8E FA 35 93 F5 6B FE 1E F7 6E 36 FE [14:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 94 D1 47 00 D3 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EE 02 00 F4 03 04 00 28 F1 1D 67 B6 04 01 00 00 E1 1C 61 6D D0 CD 91 0A [14:21:03]CommunicateWithHost err = 0 [14:21:03]CheckOFDResponse [14:21:03]1017 (14) - 77093643461234 [14:21:03]1041 (16) - 0000000000871754 [14:21:03]1040 (4) - 192214 [14:21:03]1012 (4) - 27.10.2024 07:52 [14:21:03]1206 (1) - 0 [14:21:03]OFD Sender: Remove packet 192214 [14:21:03]ProducePacketName [14:21:03]name=ofd_packets/00192214 [14:21:03]NVStorageDeleteData [14:21:03]Write to MH i2c: 01 00 00 EC 86 72 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 EC 86 00 00 00 00 00 BF 0C 44 [14:21:03]RasterBufferAndPrint [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]written 0, free lines is 3278 [14:21:03]MH_Cut [14:21:03]Write to MH i2c: D1 01 00 F3 86 01 4B [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 F3 86 00 4A [14:21:03]Write to MH i2c: 01 00 00 F4 86 7A [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]OFD Sender: No OFD packet to send [14:21:03]*** Cut start [14:21:03]*** Partial cut [14:21:03]*** CUTSNS_PIN = 1 [14:21:04]*** CUTSNS_PIN = 0 [14:21:04]*** Brake cut motor [14:21:04]Read from MH i2c: 01 [14:21:04]MH_I2C_Read... [14:21:04]*** Stop cut motor [14:21:04]*** Cut end [14:21:04]Read from MH i2c: 01 07 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 07 00 F4 86 00 00 00 00 00 FF 0F 8F [14:21:04]process_action close_receipt done [14:21:04]requested_data is exist [14:21:04]produce_requested_data [14:21:04]requested_item fm.sn is exist - process it [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 11 00 00 [14:21:04]Write to MH i2c: E2 08 00 F5 86 80 11 00 00 00 00 00 00 F5 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 F5 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [14:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:04]wFMCommunicate OK [14:21:04]requested_item fd.num is exist - process it [14:21:04]SAM_PROTO_GetFieldsCounters [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 00 00 [14:21:04]Write to MH i2c: E2 08 00 F6 86 80 13 00 00 00 00 00 00 F8 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 F6 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [14:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_GetFieldsCounters done [14:21:04]requested_item shift.num is exist - process it [14:21:04]requested_item shift.opened is exist - process it [14:21:04]req_shift_opened [14:21:04]FM_GetShiftState [14:21:04]SAM_PROTO_GetShiftState [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 01 00 [14:21:04]Write to MH i2c: E2 08 00 F7 86 80 13 01 00 00 00 00 00 FA [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:04]Read from MH i2c: E2 0E 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 0E 00 F7 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [14:21:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_GetShiftState done [14:21:04]FM_GetShiftState done [14:21:04]req_shift_opened done [14:21:04]requested_item shift.open_date is exist - process it [14:21:04]req_shift_open_date [14:21:04]req_shift_open_date done [14:21:04]produce_requested_data done [14:21:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192214,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:21:04]process_action_free close_receipt [14:21:04]json_value_free [14:21:04]json_value_free done [14:21:04]process_json_proto returns [14:21:04]Send response to host [14:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192214,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:21:04]free response buf [14:21:04]execute_script done [14:21:04]execute_script returns [14:21:04]free content buf [14:21:04]Sock 5.Close socket [14:21:04]Sock 5.Thread stoped [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:38]accept exits with 6 [14:21:38]New connection [14:21:38]New thread 3066817892 created [14:21:38]Thread 3066961252 joined [14:21:38]Waiting for new connection... [14:21:38] Sock 6.Parse request [14:21:38]Sock 6.Check first char [14:21:38]Sock 6.First char is OK [14:21:38]request: POST /json_proto HTTP/1.0 [14:21:38]Method: POST [14:21:38]URL: /json_proto [14:21:38]Method is POST - this is cgi request [14:21:38]url: /json_proto [14:21:38]query_string will be loaded in cgi processing [14:21:38]execute_cgi json_proto POST (null) [14:21:38]execute_cgi path=json_proto method=POST [14:21:38]POST find Content-Length [14:21:38]Host: 172.17.63.131:8080 [14:21:38]Content-Length: 676 [14:21:38]Content-Type: application/json [14:21:38] [14:21:38]POST finish read [14:21:38]Found Content-Length = 676 [14:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:38]execute_script... [14:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:38]POST & json_proto [14:21:38]process_json_proto [14:21:38]json parsed OK: [14:21:38]protocol is kg_v1.0 [14:21:38]action value=close_receipt [14:21:38]process_action close_receipt [14:21:38]cmd_close_receipt [14:21:38]MH_GetDate [14:21:38]Write to MH i2c: F0 00 00 F8 86 6D [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 09 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 09 00 F8 86 00 87 4C 1E 67 22 05 6E 64 C7 [14:21:38]GetLastDocTimeStamp 1730038881 [14:21:38]current date 1730038919 [14:21:38]FM_GetShiftState [14:21:38]SAM_PROTO_GetShiftState [14:21:38]wFMCommunicate request_size=4 [14:21:38]MH_SAM_APDU [14:21:38]CAPDU: 80 13 01 00 [14:21:38]Write to MH i2c: E2 08 00 F9 86 80 13 01 00 00 00 00 00 FC [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:38]Read from MH i2c: E2 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: E2 0E 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: E2 0E 00 F9 86 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3D [14:21:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:21:38]wFMCommunicate OK [14:21:38]SAM_PROTO_GetShiftState done [14:21:38]FM_GetShiftState done [14:21:38]opened in 1729989159 [14:21:38]opened+sec_in_day 1730075559 [14:21:38]quantity*price = 30038 [14:21:38]sum+1 = 30039 [14:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 247 27.10.2024 14:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192215 ФПД: 11898911113074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192215&fm=11898911113074&tin=02508201610067®Number=0000000000091776&sum=30000 [14:21:39]StoreToDocumentArchive [14:21:39]shift 542 fd 192215 [14:21:39]save to /storage/0542/doc_00192215 [14:21:39]save last doc name /storage/0542/doc_00192215 to /storage/kkm_last_doc_name [14:21:39]save OK [14:21:39]Clear old archive folders... [14:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:39]tlvbuf is 01E6D060 [14:21:39]SAM_PROTO_ClearQueue [14:21:39]wFMCommunicate request_size=4 [14:21:39]MH_SAM_APDU [14:21:39]CAPDU: 80 09 00 00 [14:21:39]Write to MH i2c: E2 08 00 06 87 80 09 00 00 00 00 00 00 FF [14:21:39]Write i2c OK [14:21:39]MH_I2C_Read... [14:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:39]Read from MH i2c: E2 [14:21:39]MH_I2C_Read... [14:21:39]Read from MH i2c: E2 03 00 [14:21:39]MH_I2C_Read... [14:21:39]Read from MH i2c: E2 03 00 06 87 00 90 00 01 [14:21:39]RAPDU: 90 00 [14:21:39]wFMCommunicate OK [14:21:39]SAM_PROTO_ClearQueue done [14:21:39]KKMCreateOFDPacket [14:21:39]OFDProtocolAddRootSTLVToBuf [14:21:39]FM_MakeSignedData [14:21:39]FM_MakeSignedData [14:21:39]SAM_PROTO_SignData [14:21:39]wFMCommunicate request_size=4 [14:21:39]MH_SAM_APDU [14:21:39]CAPDU: 80 0D 01 02 [14:21:39]Write to MH i2c: E2 08 00 07 87 80 0D 01 02 00 00 00 00 07 [14:21:39]Write i2c OK [14:21:39]MH_I2C_Read... [14:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 07 87 00 90 00 02 [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=255 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 87 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EE 02 00 35 04 06 00 0A [14:21:40]Write to MH i2c: E2 02 01 08 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 87 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EE 02 00 35 04 06 00 0A 00 00 CF [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 08 87 00 90 00 03 [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=10 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 02 02 05 D2 6E 5E BF 72 [14:21:40]Write to MH i2c: E2 0D 00 09 87 80 0D 02 02 05 00 D2 6E 5E BF 72 00 00 E3 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 09 87 00 90 00 04 [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 03 02 [14:21:40]Write to MH i2c: E2 08 00 0A 87 80 0D 03 02 00 00 00 00 0C [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0B 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0B 00 0A 87 00 1B 4C 60 05 AF B0 4B 7F 90 00 02 [14:21:40]RAPDU: 1B 4C 60 05 AF B0 4B 7F 90 00 [14:21:40]wFMCommunicate OK [14:21:40]SAM_PROTO_SignData done [14:21:40]FM_MakeSignedData done [14:21:40]CreateOFDProtocolMessage [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 11 00 00 [14:21:40]Write to MH i2c: E2 08 00 0B 87 80 11 00 00 00 00 00 00 0C [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 0B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [14:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:40]wFMCommunicate OK [14:21:40]CreateOFDProtocolMessage done [14:21:40]OFDSenderStorePacket 192215 [14:21:40]StoreOFDPacket docnum=192215 [14:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 8A 07 01 F5 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 87 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EE 02 00 35 04 06 00 0A D2 6E 5E BF 72 1B 4C 60 05 AF B0 4B 7F [14:21:40]CheckFolder [14:21:40]dirname=/storage/ofd_packets [14:21:40]CheckFolder done [14:21:40]ProducePacketName [14:21:40]name=ofd_packets/00192215 [14:21:40]NVStorageSaveData ofd_packets/00192215 [14:21:40]File name is /storage/ofd_packets/00192215 [14:21:40]Write 301 bytes [14:21:40]NVStorageSaveData done [14:21:40]OFDSenderStorePacket done [14:21:40]KKMCreateOFDPacket done [14:21:40]NVStorageSaveData kkm_last_timestamp [14:21:40]File name is /storage/kkm_last_timestamp [14:21:40]Write 4 bytes [14:21:40]NVStorageSaveData done [14:21:40]ExternCall_PrintAddStr [14:21:40]wPrintStart [14:21:40]Write to MH i2c: 01 00 00 0C 87 93 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 07 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 07 00 0C 87 00 00 00 00 00 FF 0F A8 [14:21:40]RasterBufferAndPrint [14:21:40]line Счет N : (1)31528 [14:21:40]line ИНН: 02508201610067 [14:21:40]line Контрольно-Кассовый Чек [14:21:40]line ПРОДАЖА [14:21:40]line ТРК (МРК, ГНК) : 12 [14:21:40]line Товар: 2710124130 [14:21:40]line Аи-92-К-5 [14:21:40]line 4.490 * 66.90 [14:21:40]line = 300.38 [14:21:40]line НДС 12% НСП 1% [14:21:40]line > о реализуемом товаре [14:21:40]line ОКРУГЛЕНИЕ: -0.38 [14:21:40]line ИТОГО: 300.00 [14:21:40]line Внесено: 300.00 [14:21:40]line СДАЧА: 0.00 [14:21:40]line НСП 1% : 2.66 [14:21:40]line НДС 12% : 31.90 [14:21:40]line Наличными: 300.00 [14:21:40]line Безнал.: 0.00 [14:21:40]line Место: АЗС № 170 "Партнер Нефть" [14:21:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:40]line СНО: Общий режим [14:21:40]line Чек 247 27.10.2024 14:21 [14:21:40]line Смена: 542 ФФД: 1.0 [14:21:40]line ЗНМ: 0300000110 [14:21:40]line РНМ: 0000000000091776 [14:21:40]line Версия ККМ: 001 [14:21:40]line ФМ: 0000000000871754 [14:21:40]line ФД: 192215 [14:21:40]line ФПД: 11898911113074 [14:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192215&fm=11898911113074&tin=02508201610067®Number=0000000000091776&sum=30000 [14:21:40]OFD Sender: Processing packet 192215 [packets to send 75, broken 74] [14:21:40]ProducePacketName [14:21:40]name=ofd_packets/00192215 [14:21:40]OFD Sender: To server: pG, [14:21:40]CommunicateWithHost lk.salyk.kg:30040 [14:21:40]ConnectInit lk.salyk.kg [14:21:40]written 0, free lines is 4095 [14:21:40]Connected sock=9 [14:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 8A 07 01 F5 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 87 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EE 02 00 35 04 06 00 0A D2 6E 5E BF 72 1B 4C 60 05 AF B0 4B 7F [14:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 7F 47 00 69 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EE 02 00 F4 03 04 00 4E F1 1D 67 B6 04 01 00 00 84 CC D2 A9 0B B8 C9 AC [14:21:41]CommunicateWithHost err = 0 [14:21:41]CheckOFDResponse [14:21:41]1017 (14) - 77093643461234 [14:21:41]1041 (16) - 0000000000871754 [14:21:41]1040 (4) - 192215 [14:21:41]1012 (4) - 27.10.2024 07:52 [14:21:41]1206 (1) - 0 [14:21:41]OFD Sender: Remove packet 192215 [14:21:41]ProducePacketName [14:21:41]name=ofd_packets/00192215 [14:21:41]NVStorageDeleteData [14:21:41]Write to MH i2c: 01 00 00 37 87 BE [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 07 00 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 07 00 37 87 00 00 00 00 00 AF 0C 80 [14:21:41]RasterBufferAndPrint [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]written 0, free lines is 3253 [14:21:41]MH_Cut [14:21:41]Write to MH i2c: D1 01 00 3E 87 01 97 [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 01 00 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 01 00 3E 87 00 96 [14:21:41]Write to MH i2c: 01 00 00 3F 87 C6 [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]OFD Sender: No OFD packet to send [14:21:42]*** Cut start [14:21:42]*** Partial cut [14:21:42]*** CUTSNS_PIN = 1 [14:21:42]*** CUTSNS_PIN = 0 [14:21:42]*** Brake cut motor [14:21:42]Read from MH i2c: 01 [14:21:42]MH_I2C_Read... [14:21:42]*** Stop cut motor [14:21:42]*** Cut end [14:21:42]Read from MH i2c: 01 07 00 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: 01 07 00 3F 87 00 00 00 00 00 FF 0F DB [14:21:42]process_action close_receipt done [14:21:42]requested_data is exist [14:21:42]produce_requested_data [14:21:42]requested_item fm.sn is exist - process it [14:21:42]wFMCommunicate request_size=4 [14:21:42]MH_SAM_APDU [14:21:42]CAPDU: 80 11 00 00 [14:21:42]Write to MH i2c: E2 08 00 40 87 80 11 00 00 00 00 00 00 41 [14:21:42]Write i2c OK [14:21:42]MH_I2C_Read... [14:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:42]Read from MH i2c: E2 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 17 00 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 17 00 40 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [14:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:42]wFMCommunicate OK [14:21:42]requested_item fd.num is exist - process it [14:21:42]SAM_PROTO_GetFieldsCounters [14:21:42]wFMCommunicate request_size=4 [14:21:42]MH_SAM_APDU [14:21:42]CAPDU: 80 13 00 00 [14:21:42]Write to MH i2c: E2 08 00 41 87 80 13 00 00 00 00 00 00 44 [14:21:42]Write i2c OK [14:21:42]MH_I2C_Read... [14:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:42]Read from MH i2c: E2 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 62 00 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 62 00 41 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [14:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:42]wFMCommunicate OK [14:21:42]SAM_PROTO_GetFieldsCounters done [14:21:42]requested_item shift.num is exist - process it [14:21:42]requested_item shift.opened is exist - process it [14:21:42]req_shift_opened [14:21:42]FM_GetShiftState [14:21:42]SAM_PROTO_GetShiftState [14:21:42]wFMCommunicate request_size=4 [14:21:42]MH_SAM_APDU [14:21:42]CAPDU: 80 13 01 00 [14:21:42]Write to MH i2c: E2 08 00 42 87 80 13 01 00 00 00 00 00 46 [14:21:42]Write i2c OK [14:21:42]MH_I2C_Read... [14:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:42]Read from MH i2c: E2 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 0E 00 [14:21:42]MH_I2C_Read... [14:21:42]Read from MH i2c: E2 0E 00 42 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 87 [14:21:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:21:42]wFMCommunicate OK [14:21:42]SAM_PROTO_GetShiftState done [14:21:42]FM_GetShiftState done [14:21:42]req_shift_opened done [14:21:42]requested_item shift.open_date is exist - process it [14:21:42]req_shift_open_date [14:21:42]req_shift_open_date done [14:21:42]produce_requested_data done [14:21:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192215,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:21:42]process_action_free close_receipt [14:21:42]json_value_free [14:21:42]json_value_free done [14:21:42]process_json_proto returns [14:21:42]Send response to host [14:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192215,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:21:42]free response buf [14:21:42]execute_script done [14:21:42]execute_script returns [14:21:42]free content buf [14:21:42]Sock 6.Close socket [14:21:42]Sock 6.Thread stoped [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]accept exits with 5 [14:23:36]New connection [14:23:36]New thread 3066961252 created [14:23:36]Thread 3066817892 joined [14:23:36]Waiting for new connection... [14:23:36] Sock 5.Parse request [14:23:36]Sock 5.Check first char [14:23:36]Sock 5.First char is OK [14:23:36]request: POST /json_proto HTTP/1.0 [14:23:36]Method: POST [14:23:36]URL: /json_proto [14:23:36]Method is POST - this is cgi request [14:23:36]url: /json_proto [14:23:36]query_string will be loaded in cgi processing [14:23:36]execute_cgi json_proto POST (null) [14:23:36]execute_cgi path=json_proto method=POST [14:23:36]POST find Content-Length [14:23:36]Host: 172.17.63.131:8080 [14:23:36]Content-Length: 678 [14:23:36]Content-Type: application/json [14:23:36] [14:23:36]POST finish read [14:23:36]Found Content-Length = 678 [14:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31529", "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" : 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" ] } } [14:23:36]execute_script... [14:23: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)31529", "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" : 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" ] } } [14:23:36]POST & json_proto [14:23:36]process_json_proto [14:23:36]json parsed OK: [14:23:36]protocol is kg_v1.0 [14:23:36]action value=close_receipt [14:23:36]process_action close_receipt [14:23:36]cmd_close_receipt [14:23:36]MH_GetDate [14:23:36]Write to MH i2c: F0 00 00 43 87 B9 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: F0 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: F0 09 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: F0 09 00 43 87 00 FC 4C 1E 67 22 05 6E 64 88 [14:23:36]GetLastDocTimeStamp 1730038919 [14:23:36]current date 1730039036 [14:23:36]FM_GetShiftState [14:23:36]SAM_PROTO_GetShiftState [14:23:36]wFMCommunicate request_size=4 [14:23:36]MH_SAM_APDU [14:23:36]CAPDU: 80 13 01 00 [14:23:36]Write to MH i2c: E2 08 00 44 87 80 13 01 00 00 00 00 00 48 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:36]Read from MH i2c: E2 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 0E 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 0E 00 44 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 89 [14:23:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:23:36]wFMCommunicate OK [14:23:36]SAM_PROTO_GetShiftState done [14:23:36]FM_GetShiftState done [14:23:36]opened in 1729989159 [14:23:36]opened+sec_in_day 1730075559 [14:23:36]quantity*price = 100050 [14:23:36]sum+1 = 100052 [14:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 248 27.10.2024 14:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192216 ФПД: 188369590175675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192216&fm=188369590175675&tin=02508201610067®Number=0000000000091776&sum=100000 [14:23:37]StoreToDocumentArchive [14:23:37]shift 542 fd 192216 [14:23:37]save to /storage/0542/doc_00192216 [14:23:37]save last doc name /storage/0542/doc_00192216 to /storage/kkm_last_doc_name [14:23:37]save OK [14:23:37]Clear old archive folders... [14:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:37]tlvbuf is 01AA7170 [14:23:37]SAM_PROTO_ClearQueue [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 09 00 00 [14:23:37]Write to MH i2c: E2 08 00 51 87 80 09 00 00 00 00 00 00 4A [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 51 87 00 90 00 4C [14:23:37]RAPDU: 90 00 [14:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_ClearQueue done [14:23:37]KKMCreateOFDPacket [14:23:37]OFDProtocolAddRootSTLVToBuf [14:23:37]FM_MakeSignedData [14:23:37]FM_MakeSignedData [14:23:37]SAM_PROTO_SignData [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 0D 01 02 [14:23:37]Write to MH i2c: E2 08 00 52 87 80 0D 01 02 00 00 00 00 52 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 52 87 00 90 00 4D [14:23:37]RAPDU: 90 00 [14:23:37]wFMCommunicate OK [14:23:37]wFMCommunicate request_size=255 [14:23:37]MH_SAM_APDU [14:23: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 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 F8 00 00 00 F4 03 04 00 FC 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EE 02 00 35 04 06 00 AB 52 36 82 [14:23:37]Write to MH i2c: E2 02 01 53 87 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 F8 00 00 00 F4 03 04 00 FC 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EE 02 00 35 04 06 00 AB 52 36 82 00 00 3E [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 53 87 00 90 00 4E [14:23:37]RAPDU: 90 00 [14:23:37]wFMCommunicate OK [14:23:37]wFMCommunicate request_size=7 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 0D 02 02 02 47 BB [14:23:37]Write to MH i2c: E2 0A 00 54 87 80 0D 02 02 02 00 47 BB 00 00 5B [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 54 87 00 90 00 4F [14:23:37]RAPDU: 90 00 [14:23:37]wFMCommunicate OK [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 0D 03 02 [14:23:37]Write to MH i2c: E2 08 00 55 87 80 0D 03 02 00 00 00 00 57 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 0B 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 0B 00 55 87 00 DC 8A E3 B6 09 BE 52 C6 90 00 36 [14:23:37]RAPDU: DC 8A E3 B6 09 BE 52 C6 90 00 [14:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_SignData done [14:23:37]FM_MakeSignedData done [14:23:37]CreateOFDProtocolMessage [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 11 00 00 [14:23:37]Write to MH i2c: E2 08 00 56 87 80 11 00 00 00 00 00 00 57 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 17 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 17 00 56 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [14:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:23:37]wFMCommunicate OK [14:23:37]CreateOFDProtocolMessage done [14:23:37]OFDSenderStorePacket 192216 [14:23:37]StoreOFDPacket docnum=192216 [14:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6A 68 04 01 C2 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 F8 00 00 00 F4 03 04 00 FC 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EE 02 00 35 04 06 00 AB 52 36 82 47 BB DC 8A E3 B6 09 BE 52 C6 [14:23:37]CheckFolder [14:23:37]dirname=/storage/ofd_packets [14:23:37]CheckFolder done [14:23:37]ProducePacketName [14:23:37]name=ofd_packets/00192216 [14:23:37]NVStorageSaveData ofd_packets/00192216 [14:23:37]File name is /storage/ofd_packets/00192216 [14:23:37]Write 298 bytes [14:23:37]NVStorageSaveData done [14:23:38]OFDSenderStorePacket done [14:23:38]KKMCreateOFDPacket done [14:23:38]NVStorageSaveData kkm_last_timestamp [14:23:38]File name is /storage/kkm_last_timestamp [14:23:38]Write 4 bytes [14:23:38]NVStorageSaveData done [14:23:38]ExternCall_PrintAddStr [14:23:38]wPrintStart [14:23:38]Write to MH i2c: 01 00 00 57 87 DE [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 57 87 00 00 00 00 00 FF 0F F3 [14:23:38]RasterBufferAndPrint [14:23:38]line Счет N : (1)31529 [14:23:38]line ИНН: 02508201610067 [14:23:38]line Контрольно-Кассовый Чек [14:23:38]line ПРОДАЖА [14:23:38]line ТРК (МРК, ГНК) : 11 [14:23:38]line Товар: 2710194210 [14:23:38]line ДТ-К-5 [14:23:38]line 13.130 * 76.20 [14:23:38]line = 1000.51 [14:23:38]line НДС 12% НСП 1% [14:23:38]line > о реализуемом товаре [14:23:38]line ОКРУГЛЕНИЕ: -0.51 [14:23:38]line ИТОГО: 1000.00 [14:23:38]line Внесено: 1000.00 [14:23:38]line СДАЧА: 0.00 [14:23:38]line НСП 1% : 8.85 [14:23:38]line НДС 12% : 106.25 [14:23:38]line Наличными: 1000.00 [14:23:38]line Безнал.: 0.00 [14:23:38]line Место: АЗС № 170 "Партнер Нефть" [14:23:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:23:38]line СНО: Общий режим [14:23:38]line Чек 248 27.10.2024 14:23 [14:23:38]line Смена: 542 ФФД: 1.0 [14:23:38]line ЗНМ: 0300000110 [14:23:38]line РНМ: 0000000000091776 [14:23:38]line Версия ККМ: 001 [14:23:38]line ФМ: 0000000000871754 [14:23:38]line ФД: 192216 [14:23:38]line ФПД: 188369590175675 [14:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192216&fm=188369590175675&tin=02508201610067®Number=0000000000091776&sum=100000 [14:23:38]OFD Sender: Processing packet 192216 [packets to send 75, broken 74] [14:23:38]ProducePacketName [14:23:38]name=ofd_packets/00192216 [14:23:38]OFD Sender: To server: pG, [14:23:38]CommunicateWithHost lk.salyk.kg:30040 [14:23:38]ConnectInit lk.salyk.kg [14:23:38]written 0, free lines is 4095 [14:23:38]Connected sock=8 [14:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6A 68 04 01 C2 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 F8 00 00 00 F4 03 04 00 FC 4C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EE 02 00 35 04 06 00 AB 52 36 82 47 BB DC 8A E3 B6 09 BE 52 C6 [14:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 A7 47 00 87 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EE 02 00 F4 03 04 00 C4 F1 1D 67 B6 04 01 00 00 9D B7 E4 63 59 00 83 3A [14:23:38]CommunicateWithHost err = 0 [14:23:38]CheckOFDResponse [14:23:38]1017 (14) - 77093643461234 [14:23:38]1041 (16) - 0000000000871754 [14:23:38]1040 (4) - 192216 [14:23:38]1012 (4) - 27.10.2024 07:54 [14:23:38]1206 (1) - 0 [14:23:38]OFD Sender: Remove packet 192216 [14:23:38]ProducePacketName [14:23:38]name=ofd_packets/00192216 [14:23:38]NVStorageDeleteData [14:23:38]Write to MH i2c: 01 00 00 82 87 09 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 82 87 00 00 00 00 00 9A 0C B6 [14:23:38]RasterBufferAndPrint [14:23:38]line [14:23:38]line [14:23:38]line [14:23:38]line [14:23:38]line [14:23:38]written 0, free lines is 3233 [14:23:38]MH_Cut [14:23:38]Write to MH i2c: D1 01 00 89 87 01 E2 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: D1 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: D1 01 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: D1 01 00 89 87 00 E1 [14:23:38]Write to MH i2c: 01 00 00 8A 87 11 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:39]OFD Sender: No OFD packet to send [14:23:39]*** Cut start [14:23:39]*** Partial cut [14:23:39]*** CUTSNS_PIN = 1 [14:23:39]*** CUTSNS_PIN = 0 [14:23:39]*** Brake cut motor [14:23:40]Read from MH i2c: 01 [14:23:40]MH_I2C_Read... [14:23:40]*** Stop cut motor [14:23:40]*** Cut end [14:23:40]Read from MH i2c: 01 07 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: 01 07 00 8A 87 00 00 00 00 00 FF 0F 26 [14:23:40]process_action close_receipt done [14:23:40]requested_data is exist [14:23:40]produce_requested_data [14:23:40]requested_item fm.sn is exist - process it [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 11 00 00 [14:23:40]Write to MH i2c: E2 08 00 8B 87 80 11 00 00 00 00 00 00 8C [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 17 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 17 00 8B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [14:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:23:40]wFMCommunicate OK [14:23:40]requested_item fd.num is exist - process it [14:23:40]SAM_PROTO_GetFieldsCounters [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 13 00 00 [14:23:40]Write to MH i2c: E2 08 00 8C 87 80 13 00 00 00 00 00 00 8F [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 62 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 62 00 8C 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [14:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_GetFieldsCounters done [14:23:40]requested_item shift.num is exist - process it [14:23:40]requested_item shift.opened is exist - process it [14:23:40]req_shift_opened [14:23:40]FM_GetShiftState [14:23:40]SAM_PROTO_GetShiftState [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 13 01 00 [14:23:40]Write to MH i2c: E2 08 00 8D 87 80 13 01 00 00 00 00 00 91 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0E 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0E 00 8D 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D2 [14:23:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_GetShiftState done [14:23:40]FM_GetShiftState done [14:23:40]req_shift_opened done [14:23:40]requested_item shift.open_date is exist - process it [14:23:40]req_shift_open_date [14:23:40]req_shift_open_date done [14:23:40]produce_requested_data done [14:23:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192216,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:23:40]process_action_free close_receipt [14:23:40]json_value_free [14:23:40]json_value_free done [14:23:40]process_json_proto returns [14:23:40]Send response to host [14:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192216,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:23:40]free response buf [14:23:40]execute_script done [14:23:40]execute_script returns [14:23:40]free content buf [14:23:40]Sock 5.Close socket [14:23:40]Sock 5.Thread stoped [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:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:07]accept exits with 6 [14:25:07]New connection [14:25:07]New thread 3066817892 created [14:25:07]Thread 3066961252 joined [14:25:07]Waiting for new connection... [14:25:07] Sock 6.Parse request [14:25:07]Sock 6.Check first char [14:25:07]Sock 6.First char is OK [14:25:07]request: POST /json_proto HTTP/1.0 [14:25:07]Method: POST [14:25:07]URL: /json_proto [14:25:07]Method is POST - this is cgi request [14:25:07]url: /json_proto [14:25:07]query_string will be loaded in cgi processing [14:25:07]execute_cgi json_proto POST (null) [14:25:07]execute_cgi path=json_proto method=POST [14:25:07]POST find Content-Length [14:25:07]Host: 172.17.63.131:8080 [14:25:07]Content-Length: 676 [14:25:07]Content-Type: application/json [14:25:07] [14:25:07]POST finish read [14:25:07]Found Content-Length = 676 [14:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:07]execute_script... [14:25:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:07]POST & json_proto [14:25:07]process_json_proto [14:25:07]json parsed OK: [14:25:07]protocol is kg_v1.0 [14:25:07]action value=close_receipt [14:25:07]process_action close_receipt [14:25:07]cmd_close_receipt [14:25:07]MH_GetDate [14:25:07]Write to MH i2c: F0 00 00 8E 87 04 [14:25:07]Write i2c OK [14:25:07]MH_I2C_Read... [14:25:07]Read from MH i2c: F0 [14:25:07]MH_I2C_Read... [14:25:07]Read from MH i2c: F0 09 00 [14:25:07]MH_I2C_Read... [14:25:07]Read from MH i2c: F0 09 00 8E 87 00 58 4D 1E 67 22 05 6E 64 30 [14:25:07]GetLastDocTimeStamp 1730039036 [14:25:07]current date 1730039128 [14:25:07]FM_GetShiftState [14:25:07]SAM_PROTO_GetShiftState [14:25:07]wFMCommunicate request_size=4 [14:25:07]MH_SAM_APDU [14:25:07]CAPDU: 80 13 01 00 [14:25:07]Write to MH i2c: E2 08 00 8F 87 80 13 01 00 00 00 00 00 93 [14:25:07]Write i2c OK [14:25:07]MH_I2C_Read... [14:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:07]Read from MH i2c: E2 [14:25:07]MH_I2C_Read... [14:25:07]Read from MH i2c: E2 0E 00 [14:25:07]MH_I2C_Read... [14:25:07]Read from MH i2c: E2 0E 00 8F 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D4 [14:25:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:25:07]wFMCommunicate OK [14:25:07]SAM_PROTO_GetShiftState done [14:25:07]FM_GetShiftState done [14:25:07]opened in 1729989159 [14:25:07]opened+sec_in_day 1730075559 [14:25:07]quantity*price = 50041 [14:25:07]sum+1 = 50042 [14:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 249 27.10.2024 14:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192217 ФПД: 188263239384999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192217&fm=188263239384999&tin=02508201610067®Number=0000000000091776&sum=50000 [14:25:09]StoreToDocumentArchive [14:25:09]shift 542 fd 192217 [14:25:09]save to /storage/0542/doc_00192217 [14:25:09]save last doc name /storage/0542/doc_00192217 to /storage/kkm_last_doc_name [14:25:09]save OK [14:25:09]Clear old archive folders... [14:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:09]tlvbuf is 01D13AC0 [14:25:09]SAM_PROTO_ClearQueue [14:25:09]wFMCommunicate request_size=4 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 09 00 00 [14:25:09]Write to MH i2c: E2 08 00 9C 87 80 09 00 00 00 00 00 00 95 [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 9C 87 00 90 00 97 [14:25:09]RAPDU: 90 00 [14:25:09]wFMCommunicate OK [14:25:09]SAM_PROTO_ClearQueue done [14:25:09]KKMCreateOFDPacket [14:25:09]OFDProtocolAddRootSTLVToBuf [14:25:09]FM_MakeSignedData [14:25:09]FM_MakeSignedData [14:25:09]SAM_PROTO_SignData [14:25:09]wFMCommunicate request_size=4 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 0D 01 02 [14:25:09]Write to MH i2c: E2 08 00 9D 87 80 0D 01 02 00 00 00 00 9D [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 9D 87 00 90 00 98 [14:25:09]RAPDU: 90 00 [14:25:09]wFMCommunicate OK [14:25:09]wFMCommunicate request_size=255 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 58 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EE 02 00 35 04 06 00 AB [14:25:09]Write to MH i2c: E2 02 01 9E 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 58 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EE 02 00 35 04 06 00 AB 00 00 E8 [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]OFD Sender: No OFD packet to send [14:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 9E 87 00 90 00 99 [14:25:09]RAPDU: 90 00 [14:25:09]wFMCommunicate OK [14:25:09]wFMCommunicate request_size=10 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 0D 02 02 05 39 73 81 FF A7 [14:25:09]Write to MH i2c: E2 0D 00 9F 87 80 0D 02 02 05 00 39 73 81 FF A7 00 00 7D [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 03 00 9F 87 00 90 00 9A [14:25:09]RAPDU: 90 00 [14:25:09]wFMCommunicate OK [14:25:09]wFMCommunicate request_size=4 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 0D 03 02 [14:25:09]Write to MH i2c: E2 08 00 A0 87 80 0D 03 02 00 00 00 00 A2 [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 0B 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 0B 00 A0 87 00 AF 2B 9D A4 15 30 3E 0C 90 00 4D [14:25:09]RAPDU: AF 2B 9D A4 15 30 3E 0C 90 00 [14:25:09]wFMCommunicate OK [14:25:09]SAM_PROTO_SignData done [14:25:09]FM_MakeSignedData done [14:25:09]CreateOFDProtocolMessage [14:25:09]wFMCommunicate request_size=4 [14:25:09]MH_SAM_APDU [14:25:09]CAPDU: 80 11 00 00 [14:25:09]Write to MH i2c: E2 08 00 A1 87 80 11 00 00 00 00 00 00 A2 [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:09]Read from MH i2c: E2 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 17 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: E2 17 00 A1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [14:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:25:09]wFMCommunicate OK [14:25:09]CreateOFDProtocolMessage done [14:25:09]OFDSenderStorePacket 192217 [14:25:09]StoreOFDPacket docnum=192217 [14:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 89 07 01 C8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 58 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EE 02 00 35 04 06 00 AB 39 73 81 FF A7 AF 2B 9D A4 15 30 3E 0C [14:25:09]CheckFolder [14:25:09]dirname=/storage/ofd_packets [14:25:09]CheckFolder done [14:25:09]ProducePacketName [14:25:09]name=ofd_packets/00192217 [14:25:09]NVStorageSaveData ofd_packets/00192217 [14:25:09]File name is /storage/ofd_packets/00192217 [14:25:09]Write 301 bytes [14:25:09]NVStorageSaveData done [14:25:09]OFDSenderStorePacket done [14:25:09]KKMCreateOFDPacket done [14:25:09]NVStorageSaveData kkm_last_timestamp [14:25:09]File name is /storage/kkm_last_timestamp [14:25:09]Write 4 bytes [14:25:09]NVStorageSaveData done [14:25:09]ExternCall_PrintAddStr [14:25:09]wPrintStart [14:25:09]Write to MH i2c: 01 00 00 A2 87 29 [14:25:09]Write i2c OK [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: 01 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: 01 07 00 [14:25:09]MH_I2C_Read... [14:25:09]Read from MH i2c: 01 07 00 A2 87 00 00 00 00 00 FF 0F 3E [14:25:09]RasterBufferAndPrint [14:25:09]line Счет N : (1)31531 [14:25:09]line ИНН: 02508201610067 [14:25:09]line Контрольно-Кассовый Чек [14:25:09]line ПРОДАЖА [14:25:09]line ТРК (МРК, ГНК) : 21 [14:25:09]line Товар: 2710124130 [14:25:09]line Аи-92-К-5 [14:25:09]line 7.480 * 66.90 [14:25:09]line = 500.41 [14:25:09]line НДС 12% НСП 1% [14:25:09]line > о реализуемом товаре [14:25:09]line ОКРУГЛЕНИЕ: -0.41 [14:25:09]line ИТОГО: 500.00 [14:25:09]line Внесено: 500.00 [14:25:09]line СДАЧА: 0.00 [14:25:09]line НСП 1% : 4.43 [14:25:09]line НДС 12% : 53.14 [14:25:09]line Наличными: 500.00 [14:25:09]line Безнал.: 0.00 [14:25:09]line Место: АЗС № 170 "Партнер Нефть" [14:25:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:25:09]line СНО: Общий режим [14:25:09]line Чек 249 27.10.2024 14:25 [14:25:09]line Смена: 542 ФФД: 1.0 [14:25:09]line ЗНМ: 0300000110 [14:25:09]line РНМ: 0000000000091776 [14:25:09]line Версия ККМ: 001 [14:25:09]line ФМ: 0000000000871754 [14:25:09]line ФД: 192217 [14:25:09]line ФПД: 188263239384999 [14:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142528&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192217&fm=188263239384999&tin=02508201610067®Number=0000000000091776&sum=50000 [14:25:09]OFD Sender: Processing packet 192217 [packets to send 75, broken 74] [14:25:09]ProducePacketName [14:25:09]name=ofd_packets/00192217 [14:25:09]OFD Sender: To server: pG, [14:25:09]CommunicateWithHost lk.salyk.kg:30040 [14:25:09]ConnectInit lk.salyk.kg [14:25:09]written 0, free lines is 4095 [14:25:10]Connected sock=8 [14:25:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C0 89 07 01 C8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 58 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EE 02 00 35 04 06 00 AB 39 73 81 FF A7 AF 2B 9D A4 15 30 3E 0C [14:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B CD 47 00 13 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EE 02 00 F4 03 04 00 1F F2 1D 67 B6 04 01 00 00 B7 A9 85 6E 17 BE 81 33 [14:25:10]CommunicateWithHost err = 0 [14:25:10]CheckOFDResponse [14:25:10]1017 (14) - 77093643461234 [14:25:10]1041 (16) - 0000000000871754 [14:25:10]1040 (4) - 192217 [14:25:10]1012 (4) - 27.10.2024 07:56 [14:25:10]1206 (1) - 0 [14:25:10]OFD Sender: Remove packet 192217 [14:25:10]ProducePacketName [14:25:10]name=ofd_packets/00192217 [14:25:10]NVStorageDeleteData [14:25:10]Write to MH i2c: 01 00 00 CD 87 54 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 CD 87 00 00 00 00 00 A9 0C 10 [14:25:10]RasterBufferAndPrint [14:25:10]line [14:25:10]line [14:25:10]line [14:25:10]line [14:25:10]line [14:25:10]written 0, free lines is 3248 [14:25:10]MH_Cut [14:25:10]Write to MH i2c: D1 01 00 D4 87 01 2D [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: D1 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: D1 01 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: D1 01 00 D4 87 00 2C [14:25:10]Write to MH i2c: 01 00 00 D5 87 5C [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]OFD Sender: No OFD packet to send [14:25:11]*** Cut start [14:25:11]*** Partial cut [14:25:11]*** CUTSNS_PIN = 1 [14:25:11]*** CUTSNS_PIN = 0 [14:25:11]*** Brake cut motor [14:25:11]Read from MH i2c: 01 [14:25:11]MH_I2C_Read... [14:25:11]*** Stop cut motor [14:25:11]*** Cut end [14:25:11]Read from MH i2c: 01 07 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 07 00 D5 87 00 00 00 00 00 FF 0F 71 [14:25:11]process_action close_receipt done [14:25:11]requested_data is exist [14:25:11]produce_requested_data [14:25:11]requested_item fm.sn is exist - process it [14:25:11]wFMCommunicate request_size=4 [14:25:11]MH_SAM_APDU [14:25:11]CAPDU: 80 11 00 00 [14:25:11]Write to MH i2c: E2 08 00 D6 87 80 11 00 00 00 00 00 00 D7 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:11]Read from MH i2c: E2 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 17 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 17 00 D6 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [14:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:25:11]wFMCommunicate OK [14:25:11]requested_item fd.num is exist - process it [14:25:11]SAM_PROTO_GetFieldsCounters [14:25:11]wFMCommunicate request_size=4 [14:25:11]MH_SAM_APDU [14:25:11]CAPDU: 80 13 00 00 [14:25:11]Write to MH i2c: E2 08 00 D7 87 80 13 00 00 00 00 00 00 DA [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 D7 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [14:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetFieldsCounters done [14:25:12]requested_item shift.num is exist - process it [14:25:12]requested_item shift.opened is exist - process it [14:25:12]req_shift_opened [14:25:12]FM_GetShiftState [14:25:12]SAM_PROTO_GetShiftState [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 13 01 00 [14:25:12]Write to MH i2c: E2 08 00 D8 87 80 13 01 00 00 00 00 00 DC [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 D8 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [14:25:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetShiftState done [14:25:12]FM_GetShiftState done [14:25:12]req_shift_opened done [14:25:12]requested_item shift.open_date is exist - process it [14:25:12]req_shift_open_date [14:25:12]req_shift_open_date done [14:25:12]produce_requested_data done [14:25:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192217,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:25:12]process_action_free close_receipt [14:25:12]json_value_free [14:25:12]json_value_free done [14:25:12]process_json_proto returns [14:25:12]Send response to host [14:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192217,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:25:12]free response buf [14:25:12]execute_script done [14:25:12]execute_script returns [14:25:12]free content buf [14:25:12]Sock 6.Close socket [14:25:12]Sock 6.Thread stoped [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:39]accept exits with 5 [14:25:39]New connection [14:25:39]New thread 3066961252 created [14:25:39]Thread 3066817892 joined [14:25:39]Waiting for new connection... [14:25:39] Sock 5.Parse request [14:25:39]Sock 5.Check first char [14:25:39]Sock 5.First char is OK [14:25:39]request: POST /json_proto HTTP/1.0 [14:25:39]Method: POST [14:25:39]URL: /json_proto [14:25:39]Method is POST - this is cgi request [14:25:39]url: /json_proto [14:25:39]query_string will be loaded in cgi processing [14:25:39]execute_cgi json_proto POST (null) [14:25:39]execute_cgi path=json_proto method=POST [14:25:39]POST find Content-Length [14:25:39]Host: 172.17.63.131:8080 [14:25:39]Content-Length: 677 [14:25:39]Content-Type: application/json [14:25:39] [14:25:39]POST finish read [14:25:39]Found Content-Length = 677 [14:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:39]execute_script... [14:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:39]POST & json_proto [14:25:39]process_json_proto [14:25:39]json parsed OK: [14:25:39]protocol is kg_v1.0 [14:25:39]action value=close_receipt [14:25:39]process_action close_receipt [14:25:39]cmd_close_receipt [14:25:39]MH_GetDate [14:25:39]Write to MH i2c: F0 00 00 D9 87 4F [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: F0 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: F0 09 00 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: F0 09 00 D9 87 00 78 4D 1E 67 22 05 6E 64 9B [14:25:39]GetLastDocTimeStamp 1730039128 [14:25:39]current date 1730039160 [14:25:39]FM_GetShiftState [14:25:39]SAM_PROTO_GetShiftState [14:25:39]wFMCommunicate request_size=4 [14:25:39]MH_SAM_APDU [14:25:39]CAPDU: 80 13 01 00 [14:25:39]Write to MH i2c: E2 08 00 DA 87 80 13 01 00 00 00 00 00 DE [14:25:39]Write i2c OK [14:25:39]MH_I2C_Read... [14:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:39]Read from MH i2c: E2 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: E2 0E 00 [14:25:39]MH_I2C_Read... [14:25:39]Read from MH i2c: E2 0E 00 DA 87 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [14:25:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:25:39]wFMCommunicate OK [14:25:39]SAM_PROTO_GetShiftState done [14:25:39]FM_GetShiftState done [14:25:39]opened in 1729989159 [14:25:39]opened+sec_in_day 1730075559 [14:25:39]quantity*price = 70044 [14:25:39]sum+1 = 70045 [14:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 250 27.10.2024 14:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192218 ФПД: 220208030913464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192218&fm=220208030913464&tin=02508201610067®Number=0000000000091776&sum=70000 [14:25:40]StoreToDocumentArchive [14:25:40]shift 542 fd 192218 [14:25:40]save to /storage/0542/doc_00192218 [14:25:40]save last doc name /storage/0542/doc_00192218 to /storage/kkm_last_doc_name [14:25:40]save OK [14:25:40]Clear old archive folders... [14:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:40]tlvbuf is 01609410 [14:25:40]SAM_PROTO_ClearQueue [14:25:40]wFMCommunicate request_size=4 [14:25:40]MH_SAM_APDU [14:25:40]CAPDU: 80 09 00 00 [14:25:40]Write to MH i2c: E2 08 00 E7 87 80 09 00 00 00 00 00 00 E0 [14:25:40]Write i2c OK [14:25:40]MH_I2C_Read... [14:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:40]Read from MH i2c: E2 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 03 00 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 03 00 E7 87 00 90 00 E2 [14:25:40]RAPDU: 90 00 [14:25:40]wFMCommunicate OK [14:25:40]SAM_PROTO_ClearQueue done [14:25:40]KKMCreateOFDPacket [14:25:40]OFDProtocolAddRootSTLVToBuf [14:25:40]FM_MakeSignedData [14:25:40]FM_MakeSignedData [14:25:40]SAM_PROTO_SignData [14:25:40]wFMCommunicate request_size=4 [14:25:40]MH_SAM_APDU [14:25:40]CAPDU: 80 0D 01 02 [14:25:40]Write to MH i2c: E2 08 00 E8 87 80 0D 01 02 00 00 00 00 E8 [14:25:40]Write i2c OK [14:25:40]MH_I2C_Read... [14:25:40]OFD Sender: No OFD packet to send [14:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:40]Read from MH i2c: E2 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 03 00 [14:25:40]MH_I2C_Read... [14:25:40]Read from MH i2c: E2 03 00 E8 87 00 90 00 E3 [14:25:40]RAPDU: 90 00 [14:25:40]wFMCommunicate OK [14:25:40]wFMCommunicate request_size=255 [14:25:40]MH_SAM_APDU [14:25:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 78 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EE 02 00 35 04 06 00 C8 [14:25:40]Write to MH i2c: E2 02 01 E9 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 78 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EE 02 00 35 04 06 00 C8 00 00 82 [14:25:40]Write i2c OK [14:25:40]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 03 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 03 00 E9 87 00 90 00 E4 [14:25:41]RAPDU: 90 00 [14:25:41]wFMCommunicate OK [14:25:41]wFMCommunicate request_size=10 [14:25:41]MH_SAM_APDU [14:25:41]CAPDU: 80 0D 02 02 05 47 2D 75 93 B8 [14:25:41]Write to MH i2c: E2 0D 00 EA 87 80 0D 02 02 05 00 47 2D 75 93 B8 00 00 29 [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 03 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 03 00 EA 87 00 90 00 E5 [14:25:41]RAPDU: 90 00 [14:25:41]wFMCommunicate OK [14:25:41]wFMCommunicate request_size=4 [14:25:41]MH_SAM_APDU [14:25:41]CAPDU: 80 0D 03 02 [14:25:41]Write to MH i2c: E2 08 00 EB 87 80 0D 03 02 00 00 00 00 ED [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:41]Read from MH i2c: E2 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 0B 00 [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: E2 0B 00 EB 87 00 42 06 47 92 C5 F6 B8 D7 90 00 59 [14:25:41]RAPDU: 42 06 47 92 C5 F6 B8 D7 90 00 [14:25:41]wFMCommunicate OK [14:25:41]SAM_PROTO_SignData done [14:25:41]FM_MakeSignedData done [14:25:41]CreateOFDProtocolMessage [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 EC 87 80 11 00 00 00 00 00 00 ED [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 EC 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [14:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:25:41]wFMCommunicate OK [14:25:41]CreateOFDProtocolMessage done [14:25:41]OFDSenderStorePacket 192218 [14:25:41]StoreOFDPacket docnum=192218 [14:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC B6 07 01 4F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 78 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EE 02 00 35 04 06 00 C8 47 2D 75 93 B8 42 06 47 92 C5 F6 B8 D7 [14:25:41]CheckFolder [14:25:41]dirname=/storage/ofd_packets [14:25:41]CheckFolder done [14:25:41]ProducePacketName [14:25:41]name=ofd_packets/00192218 [14:25:41]NVStorageSaveData ofd_packets/00192218 [14:25:41]File name is /storage/ofd_packets/00192218 [14:25:41]Write 301 bytes [14:25:41]NVStorageSaveData done [14:25:41]OFDSenderStorePacket done [14:25:41]KKMCreateOFDPacket done [14:25:41]NVStorageSaveData kkm_last_timestamp [14:25:41]File name is /storage/kkm_last_timestamp [14:25:41]Write 4 bytes [14:25:41]NVStorageSaveData done [14:25:41]ExternCall_PrintAddStr [14:25:41]wPrintStart [14:25:41]Write to MH i2c: 01 00 00 ED 87 74 [14:25:41]Write i2c OK [14:25:41]MH_I2C_Read... [14:25:41]Read from MH i2c: 01 [14:25:41]MH_I2C_Read... [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 ED 87 00 00 00 00 00 FF 0F 89 [14:25:41]RasterBufferAndPrint [14:25:41]line Счет N : (1)31532 [14:25:41]line ИНН: 02508201610067 [14:25:41]line Контрольно-Кассовый Чек [14:25:41]line ПРОДАЖА [14:25:41]line ТРК (МРК, ГНК) : 12 [14:25:41]line Товар: 2710124130 [14:25:41]line Аи-92-К-5 [14:25:41]line 10.470 * 66.90 [14:25:41]line = 700.44 [14:25:41]line НДС 12% НСП 1% [14:25:41]line > о реализуемом товаре [14:25:41]line ОКРУГЛЕНИЕ: -0.44 [14:25:41]line ИТОГО: 700.00 [14:25:41]line Внесено: 700.00 [14:25:41]line СДАЧА: 0.00 [14:25:41]line НСП 1% : 6.20 [14:25:41]line НДС 12% : 74.38 [14:25:41]line Наличными: 700.00 [14:25:41]line Безнал.: 0.00 [14:25:41]line Место: АЗС № 170 "Партнер Нефть" [14:25:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:25:41]line СНО: Общий режим [14:25:41]line Чек 250 27.10.2024 14:26 [14:25:41]line Смена: 542 ФФД: 1.0 [14:25:41]line ЗНМ: 0300000110 [14:25:41]line РНМ: 0000000000091776 [14:25:41]line Версия ККМ: 001 [14:25:41]line ФМ: 0000000000871754 [14:25:41]line ФД: 192218 [14:25:41]line ФПД: 220208030913464 [14:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192218&fm=220208030913464&tin=02508201610067®Number=0000000000091776&sum=70000 [14:25:41]OFD Sender: Processing packet 192218 [packets to send 75, broken 74] [14:25:41]ProducePacketName [14:25:41]name=ofd_packets/00192218 [14:25:41]OFD Sender: To server: pG, [14:25:41]CommunicateWithHost lk.salyk.kg:30040 [14:25:41]ConnectInit lk.salyk.kg [14:25:41]written 0, free lines is 4095 [14:25:41]Connected sock=8 [14:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC B6 07 01 4F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 78 4D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EE 02 00 35 04 06 00 C8 47 2D 75 93 B8 42 06 47 92 C5 F6 B8 D7 [14:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 E0 47 00 7B 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EE 02 00 F4 03 04 00 3F F2 1D 67 B6 04 01 00 00 DA DD 45 5F 1E 23 AA 54 [14:25:41]CommunicateWithHost err = 0 [14:25:41]CheckOFDResponse [14:25:41]1017 (14) - 77093643461234 [14:25:41]1041 (16) - 0000000000871754 [14:25:41]1040 (4) - 192218 [14:25:41]1012 (4) - 27.10.2024 07:56 [14:25:41]1206 (1) - 0 [14:25:41]OFD Sender: Remove packet 192218 [14:25:41]ProducePacketName [14:25:41]name=ofd_packets/00192218 [14:25:41]NVStorageDeleteData [14:25:42]Write to MH i2c: 01 00 00 18 88 A0 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: 01 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: 01 07 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: 01 07 00 18 88 00 00 00 00 00 A5 0C 58 [14:25:42]RasterBufferAndPrint [14:25:42]line [14:25:42]line [14:25:42]line [14:25:42]line [14:25:42]line [14:25:42]written 0, free lines is 3242 [14:25:42]MH_Cut [14:25:42]Write to MH i2c: D1 01 00 1F 88 01 79 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: D1 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: D1 01 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: D1 01 00 1F 88 00 78 [14:25:42]Write to MH i2c: 01 00 00 20 88 A8 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]OFD Sender: No OFD packet to send [14:25:42]*** Cut start [14:25:42]*** Partial cut [14:25:42]*** CUTSNS_PIN = 1 [14:25:42]*** CUTSNS_PIN = 0 [14:25:43]*** Brake cut motor [14:25:43]Read from MH i2c: 01 [14:25:43]MH_I2C_Read... [14:25:43]*** Stop cut motor [14:25:43]*** Cut end [14:25:43]Read from MH i2c: 01 07 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 07 00 20 88 00 00 00 00 00 FF 0F BD [14:25:43]process_action close_receipt done [14:25:43]requested_data is exist [14:25:43]produce_requested_data [14:25:43]requested_item fm.sn is exist - process it [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 11 00 00 [14:25:43]Write to MH i2c: E2 08 00 21 88 80 11 00 00 00 00 00 00 23 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 21 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [14:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:25:43]wFMCommunicate OK [14:25:43]requested_item fd.num is exist - process it [14:25:43]SAM_PROTO_GetFieldsCounters [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 13 00 00 [14:25:43]Write to MH i2c: E2 08 00 22 88 80 13 00 00 00 00 00 00 26 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 62 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 62 00 22 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:43]wFMCommunicate OK [14:25:43]SAM_PROTO_GetFieldsCounters done [14:25:43]requested_item shift.num is exist - process it [14:25:43]requested_item shift.opened is exist - process it [14:25:43]req_shift_opened [14:25:43]FM_GetShiftState [14:25:43]SAM_PROTO_GetShiftState [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 13 01 00 [14:25:43]Write to MH i2c: E2 08 00 23 88 80 13 01 00 00 00 00 00 28 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 0E 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 0E 00 23 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 69 [14:25:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:25:43]wFMCommunicate OK [14:25:43]SAM_PROTO_GetShiftState done [14:25:43]FM_GetShiftState done [14:25:43]req_shift_opened done [14:25:43]requested_item shift.open_date is exist - process it [14:25:43]req_shift_open_date [14:25:43]req_shift_open_date done [14:25:43]produce_requested_data done [14:25:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192218,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:25:43]process_action_free close_receipt [14:25:43]json_value_free [14:25:43]json_value_free done [14:25:43]process_json_proto returns [14:25:43]Send response to host [14:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192218,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:25:43]free response buf [14:25:43]execute_script done [14:25:43]execute_script returns [14:25:43]free content buf [14:25:43]Sock 5.Close socket [14:25:43]Sock 5.Thread stoped [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:54]accept exits with 6 [14:28:54]New connection [14:28:54]New thread 3066817892 created [14:28:54]Thread 3066961252 joined [14:28:54]Waiting for new connection... [14:28:54] Sock 6.Parse request [14:28:54]Sock 6.Check first char [14:28:54]Sock 6.First char is OK [14:28:54]request: POST /json_proto HTTP/1.0 [14:28:54]Method: POST [14:28:54]URL: /json_proto [14:28:54]Method is POST - this is cgi request [14:28:54]url: /json_proto [14:28:54]query_string will be loaded in cgi processing [14:28:54]execute_cgi json_proto POST (null) [14:28:54]execute_cgi path=json_proto method=POST [14:28:54]POST find Content-Length [14:28:54]Host: 172.17.63.131:8080 [14:28:54]Content-Length: 678 [14:28:54]Content-Type: application/json [14:28:54] [14:28:54]POST finish read [14:28:54]Found Content-Length = 678 [14:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31533", "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" : 21.400, "sum" : 1630.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1630.00, "payments": [ { "type": 0, "sum" : 1630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:54]execute_script... [14: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)31533", "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" : 21.400, "sum" : 1630.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1630.00, "payments": [ { "type": 0, "sum" : 1630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:54]POST & json_proto [14:28:54]process_json_proto [14:28:54]json parsed OK: [14:28:54]protocol is kg_v1.0 [14:28:54]action value=close_receipt [14:28:54]process_action close_receipt [14:28:54]cmd_close_receipt [14:28:54]MH_GetDate [14:28:54]Write to MH i2c: F0 00 00 24 88 9B [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: F0 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: F0 09 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: F0 09 00 24 88 00 3A 4E 1E 67 22 05 6E 64 AA [14:28:54]GetLastDocTimeStamp 1730039160 [14:28:54]current date 1730039354 [14:28:54]FM_GetShiftState [14:28:54]SAM_PROTO_GetShiftState [14:28:54]wFMCommunicate request_size=4 [14:28:54]MH_SAM_APDU [14:28:54]CAPDU: 80 13 01 00 [14:28:54]Write to MH i2c: E2 08 00 25 88 80 13 01 00 00 00 00 00 2A [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:54]Read from MH i2c: E2 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 0E 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 0E 00 25 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [14:28:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:28:54]wFMCommunicate OK [14:28:54]SAM_PROTO_GetShiftState done [14:28:54]FM_GetShiftState done [14:28:54]opened in 1729989159 [14:28:54]opened+sec_in_day 1730075559 [14:28:54]quantity*price = 163068 [14:28:54]sum+1 = 163069 [14:28:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1630.00 Внесено: 1700.00 СДАЧА: 70.00 НСП 1% : 14.43 НДС 12% : 173.17 Наличными: 1630.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 251 27.10.2024 14:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192219 ФПД: 116678710081337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142914&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192219&fm=116678710081337&tin=02508201610067®Number=0000000000091776&sum=163000 [14:28:55]StoreToDocumentArchive [14:28:55]shift 542 fd 192219 [14:28:55]save to /storage/0542/doc_00192219 [14:28:55]save last doc name /storage/0542/doc_00192219 to /storage/kkm_last_doc_name [14:28:55]save OK [14:28:55]Clear old archive folders... [14:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:28:55]tlvbuf is 01D13860 [14:28:55]SAM_PROTO_ClearQueue [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 09 00 00 [14:28:55]Write to MH i2c: E2 08 00 32 88 80 09 00 00 00 00 00 00 2C [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 32 88 00 90 00 2E [14:28:55]RAPDU: 90 00 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_ClearQueue done [14:28:55]KKMCreateOFDPacket [14:28:55]OFDProtocolAddRootSTLVToBuf [14:28:55]FM_MakeSignedData [14:28:55]FM_MakeSignedData [14:28:55]SAM_PROTO_SignData [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 0D 01 02 [14:28:55]Write to MH i2c: E2 08 00 33 88 80 0D 01 02 00 00 00 00 34 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 33 88 00 90 00 2F [14:28:55]RAPDU: 90 00 [14:28:55]wFMCommunicate OK [14:28:55]wFMCommunicate request_size=255 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 53 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FC 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 43 00 00 00 00 07 04 06 00 B8 7C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3A 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EE 02 00 35 04 06 00 6A 1E 61 11 [14:28:55]Write to MH i2c: E2 02 01 34 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 53 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FC 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 43 00 00 00 00 07 04 06 00 B8 7C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3A 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EE 02 00 35 04 06 00 6A 1E 61 11 00 00 C5 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 34 88 00 90 00 30 [14:28:55]RAPDU: 90 00 [14:28:55]wFMCommunicate OK [14:28:55]wFMCommunicate request_size=7 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 0D 02 02 02 37 39 [14:28:55]Write to MH i2c: E2 0A 00 35 88 80 0D 02 02 02 00 37 39 00 00 AB [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 03 00 35 88 00 90 00 31 [14:28:55]RAPDU: 90 00 [14:28:55]wFMCommunicate OK [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 0D 03 02 [14:28:55]Write to MH i2c: E2 08 00 36 88 80 0D 03 02 00 00 00 00 39 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0B 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0B 00 36 88 00 23 3D BB 23 DB 45 43 2C 90 00 07 [14:28:55]RAPDU: 23 3D BB 23 DB 45 43 2C 90 00 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_SignData done [14:28:55]FM_MakeSignedData done [14:28:55]CreateOFDProtocolMessage [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 11 00 00 [14:28:55]Write to MH i2c: E2 08 00 37 88 80 11 00 00 00 00 00 00 39 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 17 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 17 00 37 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [14:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:28:55]wFMCommunicate OK [14:28:55]CreateOFDProtocolMessage done [14:28:55]OFDSenderStorePacket 192219 [14:28:55]StoreOFDPacket docnum=192219 [14:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E2 64 04 01 5B 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 98 53 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FC 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 43 00 00 00 00 07 04 06 00 B8 7C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3A 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EE 02 00 35 04 06 00 6A 1E 61 11 37 39 23 3D BB 23 DB 45 43 2C [14:28:55]CheckFolder [14:28:55]dirname=/storage/ofd_packets [14:28:55]CheckFolder done [14:28:55]ProducePacketName [14:28:55]name=ofd_packets/00192219 [14:28:55]NVStorageSaveData ofd_packets/00192219 [14:28:55]File name is /storage/ofd_packets/00192219 [14:28:55]Write 298 bytes [14:28:55]NVStorageSaveData done [14:28:55]OFDSenderStorePacket done [14:28:55]KKMCreateOFDPacket done [14:28:55]NVStorageSaveData kkm_last_timestamp [14:28:55]File name is /storage/kkm_last_timestamp [14:28:55]Write 4 bytes [14:28:55]NVStorageSaveData done [14:28:55]ExternCall_PrintAddStr [14:28:55]wPrintStart [14:28:55]Write to MH i2c: 01 00 00 38 88 C0 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 38 88 00 00 00 00 00 FF 0F D5 [14:28:55]RasterBufferAndPrint [14:28:55]line Счет N : (1)31533 [14:28:55]line ИНН: 02508201610067 [14:28:55]line Контрольно-Кассовый Чек [14:28:55]line ПРОДАЖА [14:28:55]line ТРК (МРК, ГНК) : 11 [14:28:55]line Товар: 2710194210 [14:28:55]line ДТ-К-5 [14:28:55]line 21.400 * 76.20 [14:28:55]line = 1630.68 [14:28:55]line НДС 12% НСП 1% [14:28:55]line > о реализуемом товаре [14:28:55]line ОКРУГЛЕНИЕ: -0.68 [14:28:55]line ИТОГО: 1630.00 [14:28:55]line Внесено: 1700.00 [14:28:55]line СДАЧА: 70.00 [14:28:55]line НСП 1% : 14.43 [14:28:55]line НДС 12% : 173.17 [14:28:55]line Наличными: 1630.00 [14:28:55]line Безнал.: 0.00 [14:28:55]line Место: АЗС № 170 "Партнер Нефть" [14:28:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:28:55]line СНО: Общий режим [14:28:55]line Чек 251 27.10.2024 14:29 [14:28:55]line Смена: 542 ФФД: 1.0 [14:28:55]line ЗНМ: 0300000110 [14:28:55]line РНМ: 0000000000091776 [14:28:55]line Версия ККМ: 001 [14:28:55]line ФМ: 0000000000871754 [14:28:55]line ФД: 192219 [14:28:55]line ФПД: 116678710081337 [14:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142914&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192219&fm=116678710081337&tin=02508201610067®Number=0000000000091776&sum=163000 [14:28:56]OFD Sender: Processing packet 192219 [packets to send 75, broken 74] [14:28:56]ProducePacketName [14:28:56]name=ofd_packets/00192219 [14:28:56]OFD Sender: To server: pG, [14:28:56]CommunicateWithHost lk.salyk.kg:30040 [14:28:56]ConnectInit lk.salyk.kg [14:28:56]written 0, free lines is 4095 [14:28:56]Connected sock=8 [14: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 37 35 34 0C 01 00 00 E2 64 04 01 5B 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 98 53 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FC 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 43 00 00 00 00 07 04 06 00 B8 7C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 3A 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EE 02 00 35 04 06 00 6A 1E 61 11 37 39 23 3D BB 23 DB 45 43 2C [14: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 37 35 34 4F 00 00 00 32 27 47 00 69 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EE 02 00 F4 03 04 00 02 F3 1D 67 B6 04 01 00 00 F6 8F 3F 88 AE 02 F0 93 [14:28:56]CommunicateWithHost err = 0 [14:28:56]CheckOFDResponse [14:28:56]1017 (14) - 77093643461234 [14:28:56]1041 (16) - 0000000000871754 [14:28:56]1040 (4) - 192219 [14:28:56]1012 (4) - 27.10.2024 08:00 [14:28:56]1206 (1) - 0 [14:28:56]OFD Sender: Remove packet 192219 [14:28:56]ProducePacketName [14:28:56]name=ofd_packets/00192219 [14:28:56]NVStorageDeleteData [14:28:56]Write to MH i2c: 01 00 00 63 88 EB [14:28:56]Write i2c OK [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: 01 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: 01 07 00 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: 01 07 00 63 88 00 00 00 00 00 A7 0C A5 [14:28:56]RasterBufferAndPrint [14:28:56]line [14:28:56]line [14:28:56]line [14:28:56]line [14:28:56]line [14:28:56]written 0, free lines is 3244 [14:28:56]MH_Cut [14:28:56]Write to MH i2c: D1 01 00 6A 88 01 C4 [14:28:56]Write i2c OK [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: D1 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: D1 01 00 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: D1 01 00 6A 88 00 C3 [14:28:56]Write to MH i2c: 01 00 00 6B 88 F3 [14:28:56]Write i2c OK [14:28:56]MH_I2C_Read... [14:28:57]OFD Sender: No OFD packet to send [14:28:57]*** Cut start [14:28:57]*** Partial cut [14:28:57]*** CUTSNS_PIN = 1 [14:28:57]*** CUTSNS_PIN = 0 [14:28:57]*** Brake cut motor [14:28:58]Read from MH i2c: 01 [14:28:58]MH_I2C_Read... [14:28:58]*** Stop cut motor [14:28:58]*** Cut end [14:28:58]Read from MH i2c: 01 07 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: 01 07 00 6B 88 00 00 00 00 00 FF 0F 08 [14:28:58]process_action close_receipt done [14:28:58]requested_data is exist [14:28:58]produce_requested_data [14:28:58]requested_item fm.sn is exist - process it [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 11 00 00 [14:28:58]Write to MH i2c: E2 08 00 6C 88 80 11 00 00 00 00 00 00 6E [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 17 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 17 00 6C 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [14:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:28:58]wFMCommunicate OK [14:28:58]requested_item fd.num is exist - process it [14:28:58]SAM_PROTO_GetFieldsCounters [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 13 00 00 [14:28:58]Write to MH i2c: E2 08 00 6D 88 80 13 00 00 00 00 00 00 71 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 62 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 62 00 6D 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [14: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:58]wFMCommunicate OK [14:28:58]SAM_PROTO_GetFieldsCounters done [14:28:58]requested_item shift.num is exist - process it [14:28:58]requested_item shift.opened is exist - process it [14:28:58]req_shift_opened [14:28:58]FM_GetShiftState [14:28:58]SAM_PROTO_GetShiftState [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 13 01 00 [14:28:58]Write to MH i2c: E2 08 00 6E 88 80 13 01 00 00 00 00 00 73 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 0E 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 0E 00 6E 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B4 [14:28:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:28:58]wFMCommunicate OK [14:28:58]SAM_PROTO_GetShiftState done [14:28:58]FM_GetShiftState done [14:28:58]req_shift_opened done [14:28:58]requested_item shift.open_date is exist - process it [14:28:58]req_shift_open_date [14:28:58]req_shift_open_date done [14:28:58]produce_requested_data done [14:28:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192219,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:28:58]process_action_free close_receipt [14:28:58]json_value_free [14:28:58]json_value_free done [14:28:58]process_json_proto returns [14:28:58]Send response to host [14:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192219,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:28:58]free response buf [14:28:58]execute_script done [14:28:58]execute_script returns [14:28:58]free content buf [14:28:58]Sock 6.Close socket [14:28:58]Sock 6.Thread stoped [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [14:32:03]accept exits with 5 [14:32:03]New connection [14:32:03]New thread 3066961252 created [14:32:03]Thread 3066817892 joined [14:32:03]Waiting for new connection... [14:32:03] Sock 5.Parse request [14:32:03]Sock 5.Check first char [14:32:03]Sock 5.First char is OK [14:32:03]request: POST /json_proto HTTP/1.0 [14:32:03]Method: POST [14:32:03]URL: /json_proto [14:32:03]Method is POST - this is cgi request [14:32:03]url: /json_proto [14:32:03]query_string will be loaded in cgi processing [14:32:03]execute_cgi json_proto POST (null) [14:32:03]execute_cgi path=json_proto method=POST [14:32:03]POST find Content-Length [14:32:03]Host: 172.17.63.131:8080 [14:32:03]Content-Length: 676 [14:32:03]Content-Type: application/json [14:32:03] [14:32:03]POST finish read [14:32:03]Found Content-Length = 676 [14:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:03]execute_script... [14:32:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:03]POST & json_proto [14:32:03]process_json_proto [14:32:03]json parsed OK: [14:32:03]protocol is kg_v1.0 [14:32:03]action value=close_receipt [14:32:03]process_action close_receipt [14:32:03]cmd_close_receipt [14:32:03]MH_GetDate [14:32:03]Write to MH i2c: F0 00 00 6F 88 E6 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 09 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 09 00 6F 88 00 F7 4E 1E 67 22 05 6E 64 B2 [14:32:03]GetLastDocTimeStamp 1730039354 [14:32:03]current date 1730039543 [14:32:03]FM_GetShiftState [14:32:03]SAM_PROTO_GetShiftState [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 13 01 00 [14:32:03]Write to MH i2c: E2 08 00 70 88 80 13 01 00 00 00 00 00 75 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0E 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0E 00 70 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B6 [14:32:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_GetShiftState done [14:32:03]FM_GetShiftState done [14:32:03]opened in 1729989159 [14:32:03]opened+sec_in_day 1730075559 [14:32:03]quantity*price = 30038 [14:32:03]sum+1 = 30039 [14:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 252 27.10.2024 14:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192220 ФПД: 266214529430858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192220&fm=266214529430858&tin=02508201610067®Number=0000000000091776&sum=30000 [14:32:04]StoreToDocumentArchive [14:32:04]shift 542 fd 192220 [14:32:04]save to /storage/0542/doc_00192220 [14:32:04]save last doc name /storage/0542/doc_00192220 to /storage/kkm_last_doc_name [14:32:04]save OK [14:32:04]Clear old archive folders... [14:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:04]tlvbuf is 01960E90 [14:32:04]SAM_PROTO_ClearQueue [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 09 00 00 [14:32:04]Write to MH i2c: E2 08 00 7D 88 80 09 00 00 00 00 00 00 77 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 7D 88 00 90 00 79 [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]SAM_PROTO_ClearQueue done [14:32:04]KKMCreateOFDPacket [14:32:04]OFDProtocolAddRootSTLVToBuf [14:32:04]FM_MakeSignedData [14:32:04]FM_MakeSignedData [14:32:04]SAM_PROTO_SignData [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 01 02 [14:32:04]Write to MH i2c: E2 08 00 7E 88 80 0D 01 02 00 00 00 00 7F [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 7E 88 00 90 00 7A [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=255 [14:32:04]MH_SAM_APDU [14:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 F7 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EE 02 00 35 04 06 00 F2 [14:32:04]Write to MH i2c: E2 02 01 7F 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 F7 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EE 02 00 35 04 06 00 F2 00 00 AB [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 7F 88 00 90 00 7B [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=10 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 02 02 05 1E E6 75 F5 4A [14:32:04]Write to MH i2c: E2 0D 00 80 88 80 0D 02 02 05 00 1E E6 75 F5 4A 00 00 44 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 80 88 00 90 00 7C [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 03 02 [14:32:04]Write to MH i2c: E2 08 00 81 88 80 0D 03 02 00 00 00 00 84 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 0B 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 0B 00 81 88 00 2F 03 49 49 16 DA A1 44 90 00 1E [14:32:04]RAPDU: 2F 03 49 49 16 DA A1 44 90 00 [14:32:04]wFMCommunicate OK [14:32:04]SAM_PROTO_SignData done [14:32:04]FM_MakeSignedData done [14:32:04]CreateOFDProtocolMessage [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 11 00 00 [14:32:04]Write to MH i2c: E2 08 00 82 88 80 11 00 00 00 00 00 00 84 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 82 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [14:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:04]wFMCommunicate OK [14:32:04]CreateOFDProtocolMessage done [14:32:04]OFDSenderStorePacket 192220 [14:32:04]StoreOFDPacket docnum=192220 [14:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA A1 07 01 55 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 F7 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EE 02 00 35 04 06 00 F2 1E E6 75 F5 4A 2F 03 49 49 16 DA A1 44 [14:32:04]CheckFolder [14:32:04]dirname=/storage/ofd_packets [14:32:04]CheckFolder done [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00192220 [14:32:04]NVStorageSaveData ofd_packets/00192220 [14:32:04]File name is /storage/ofd_packets/00192220 [14:32:04]Write 301 bytes [14:32:04]NVStorageSaveData done [14:32:04]OFDSenderStorePacket done [14:32:04]KKMCreateOFDPacket done [14:32:04]NVStorageSaveData kkm_last_timestamp [14:32:04]File name is /storage/kkm_last_timestamp [14:32:04]Write 4 bytes [14:32:04]NVStorageSaveData done [14:32:04]ExternCall_PrintAddStr [14:32:04]wPrintStart [14:32:04]Write to MH i2c: 01 00 00 83 88 0B [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 83 88 00 00 00 00 00 FF 0F 20 [14:32:04]RasterBufferAndPrint [14:32:04]line Счет N : (1)31535 [14:32:04]line ИНН: 02508201610067 [14:32:04]line Контрольно-Кассовый Чек [14:32:04]line ПРОДАЖА [14:32:04]line ТРК (МРК, ГНК) : 12 [14:32:04]line Товар: 2710124130 [14:32:04]line Аи-92-К-5 [14:32:04]line 4.490 * 66.90 [14:32:04]line = 300.38 [14:32:04]line НДС 12% НСП 1% [14:32:04]line > о реализуемом товаре [14:32:04]line ОКРУГЛЕНИЕ: -0.38 [14:32:04]line ИТОГО: 300.00 [14:32:04]line Внесено: 300.00 [14:32:04]line СДАЧА: 0.00 [14:32:04]line НСП 1% : 2.66 [14:32:04]line НДС 12% : 31.90 [14:32:04]line Наличными: 300.00 [14:32:04]line Безнал.: 0.00 [14:32:04]line Место: АЗС № 170 "Партнер Нефть" [14:32:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:32:04]line СНО: Общий режим [14:32:04]line Чек 252 27.10.2024 14:32 [14:32:04]line Смена: 542 ФФД: 1.0 [14:32:04]line ЗНМ: 0300000110 [14:32:04]line РНМ: 0000000000091776 [14:32:04]line Версия ККМ: 001 [14:32:04]line ФМ: 0000000000871754 [14:32:04]line ФД: 192220 [14:32:04]line ФПД: 266214529430858 [14:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192220&fm=266214529430858&tin=02508201610067®Number=0000000000091776&sum=30000 [14:32:05]OFD Sender: Processing packet 192220 [packets to send 75, broken 74] [14:32:05]ProducePacketName [14:32:05]name=ofd_packets/00192220 [14:32:05]OFD Sender: To server: pG, [14:32:05]CommunicateWithHost lk.salyk.kg:30040 [14:32:05]ConnectInit lk.salyk.kg [14:32:05]written 0, free lines is 4095 [14:32:05]Connected sock=8 [14:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA A1 07 01 55 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 F7 4E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EE 02 00 35 04 06 00 F2 1E E6 75 F5 4A 2F 03 49 49 16 DA A1 44 [14:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB A8 47 00 B4 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EE 02 00 F4 03 04 00 BF F3 1D 67 B6 04 01 00 00 E3 AB 13 68 7F DB AB 54 [14:32:05]CommunicateWithHost err = 0 [14:32:05]CheckOFDResponse [14:32:05]1017 (14) - 77093643461234 [14:32:05]1041 (16) - 0000000000871754 [14:32:05]1040 (4) - 192220 [14:32:05]1012 (4) - 27.10.2024 08:03 [14:32:05]1206 (1) - 0 [14:32:05]OFD Sender: Remove packet 192220 [14:32:05]ProducePacketName [14:32:05]name=ofd_packets/00192220 [14:32:05]NVStorageDeleteData [14:32:05]Write to MH i2c: 01 00 00 AE 88 36 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 AE 88 00 00 00 00 00 A7 0C F0 [14:32:05]RasterBufferAndPrint [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]written 0, free lines is 3245 [14:32:05]MH_Cut [14:32:05]Write to MH i2c: D1 01 00 B5 88 01 0F [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 B5 88 00 0E [14:32:05]Write to MH i2c: 01 00 00 B6 88 3E [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]OFD Sender: No OFD packet to send [14:32:06]*** Cut start [14:32:06]*** Partial cut [14:32:06]*** CUTSNS_PIN = 1 [14:32:06]*** CUTSNS_PIN = 0 [14:32:06]*** Brake cut motor [14:32:07]Read from MH i2c: 01 [14:32:07]MH_I2C_Read... [14:32:07]*** Stop cut motor [14:32:07]*** Cut end [14:32:07]Read from MH i2c: 01 07 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: 01 07 00 B6 88 00 00 00 00 00 FF 0F 53 [14:32:07]process_action close_receipt done [14:32:07]requested_data is exist [14:32:07]produce_requested_data [14:32:07]requested_item fm.sn is exist - process it [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 11 00 00 [14:32:07]Write to MH i2c: E2 08 00 B7 88 80 11 00 00 00 00 00 00 B9 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 B7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [14:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:07]wFMCommunicate OK [14:32:07]requested_item fd.num is exist - process it [14:32:07]SAM_PROTO_GetFieldsCounters [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 13 00 00 [14:32:07]Write to MH i2c: E2 08 00 B8 88 80 13 00 00 00 00 00 00 BC [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 62 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 62 00 B8 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [14:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_GetFieldsCounters done [14:32:07]requested_item shift.num is exist - process it [14:32:07]requested_item shift.opened is exist - process it [14:32:07]req_shift_opened [14:32:07]FM_GetShiftState [14:32:07]SAM_PROTO_GetShiftState [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 13 01 00 [14:32:07]Write to MH i2c: E2 08 00 B9 88 80 13 01 00 00 00 00 00 BE [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 B9 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FF [14:32:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_GetShiftState done [14:32:07]FM_GetShiftState done [14:32:07]req_shift_opened done [14:32:07]requested_item shift.open_date is exist - process it [14:32:07]req_shift_open_date [14:32:07]req_shift_open_date done [14:32:07]produce_requested_data done [14:32:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192220,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:32:07]process_action_free close_receipt [14:32:07]json_value_free [14:32:07]json_value_free done [14:32:07]process_json_proto returns [14:32:07]Send response to host [14:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192220,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:32:07]free response buf [14:32:07]execute_script done [14:32:07]execute_script returns [14:32:07]free content buf [14:32:07]Sock 5.Close socket [14:32:07]Sock 5.Thread stoped [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:38]accept exits with 6 [14:33:38]New connection [14:33:38]New thread 3066817892 created [14:33:38]Thread 3066961252 joined [14:33:38]Waiting for new connection... [14:33:38] Sock 6.Parse request [14:33:38]Sock 6.Check first char [14:33:38]Sock 6.First char is OK [14:33:38]request: POST /json_proto HTTP/1.0 [14:33:38]Method: POST [14:33:38]URL: /json_proto [14:33:38]Method is POST - this is cgi request [14:33:38]url: /json_proto [14:33:38]query_string will be loaded in cgi processing [14:33:38]execute_cgi json_proto POST (null) [14:33:38]execute_cgi path=json_proto method=POST [14:33:38]POST find Content-Length [14:33:38]Host: 172.17.63.131:8080 [14:33:38]Content-Length: 678 [14:33:38]Content-Type: application/json [14:33:38] [14:33:38]POST finish read [14:33:38]Found Content-Length = 678 [14:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31534", "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" : 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" ] } } [14:33:38]execute_script... [14:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31534", "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" : 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" ] } } [14:33:38]POST & json_proto [14:33:38]process_json_proto [14:33:38]json parsed OK: [14:33:38]protocol is kg_v1.0 [14:33:38]action value=close_receipt [14:33:38]process_action close_receipt [14:33:38]cmd_close_receipt [14:33:38]MH_GetDate [14:33:38]Write to MH i2c: F0 00 00 BA 88 31 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 BA 88 00 57 4F 1E 67 22 05 6E 64 5E [14:33:38]GetLastDocTimeStamp 1730039543 [14:33:38]current date 1730039639 [14:33:38]FM_GetShiftState [14:33:38]SAM_PROTO_GetShiftState [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 13 01 00 [14:33:38]Write to MH i2c: E2 08 00 BB 88 80 13 01 00 00 00 00 00 C0 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 BB 88 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 01 [14:33:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_GetShiftState done [14:33:39]FM_GetShiftState done [14:33:39]opened in 1729989159 [14:33:39]opened+sec_in_day 1730075559 [14:33:39]quantity*price = 100050 [14:33:39]sum+1 = 100052 [14:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 253 27.10.2024 14:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192221 ФПД: 105685485564136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192221&fm=105685485564136&tin=02508201610067®Number=0000000000091776&sum=100000 [14:33:40]StoreToDocumentArchive [14:33:40]shift 542 fd 192221 [14:33:40]save to /storage/0542/doc_00192221 [14:33:40]save last doc name /storage/0542/doc_00192221 to /storage/kkm_last_doc_name [14:33:40]save OK [14:33:40]Clear old archive folders... [14:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:40]tlvbuf is 01B0C860 [14:33:40]SAM_PROTO_ClearQueue [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 09 00 00 [14:33:40]Write to MH i2c: E2 08 00 C8 88 80 09 00 00 00 00 00 00 C2 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 C8 88 00 90 00 C4 [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]SAM_PROTO_ClearQueue done [14:33:40]KKMCreateOFDPacket [14:33:40]OFDProtocolAddRootSTLVToBuf [14:33:40]FM_MakeSignedData [14:33:40]FM_MakeSignedData [14:33:40]SAM_PROTO_SignData [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 01 02 [14:33:40]Write to MH i2c: E2 08 00 C9 88 80 0D 01 02 00 00 00 00 CA [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 C9 88 00 90 00 C5 [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]wFMCommunicate request_size=255 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 FD 00 00 00 F4 03 04 00 57 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EE 02 00 35 04 06 00 60 1E D1 D3 [14:33:40]Write to MH i2c: E2 02 01 CA 88 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 FD 00 00 00 F4 03 04 00 57 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EE 02 00 35 04 06 00 60 1E D1 D3 00 00 8B [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 CA 88 00 90 00 C6 [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]wFMCommunicate request_size=7 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 02 02 02 30 E8 [14:33:40]Write to MH i2c: E2 0A 00 CB 88 80 0D 02 02 02 00 30 E8 00 00 E9 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 CB 88 00 90 00 C7 [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 03 02 [14:33:40]Write to MH i2c: E2 08 00 CC 88 80 0D 03 02 00 00 00 00 CF [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0B 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0B 00 CC 88 00 AD CA 76 28 19 45 EF DC 90 00 0E [14:33:40]RAPDU: AD CA 76 28 19 45 EF DC 90 00 [14:33:40]wFMCommunicate OK [14:33:40]SAM_PROTO_SignData done [14:33:40]FM_MakeSignedData done [14:33:40]CreateOFDProtocolMessage [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 11 00 00 [14:33:40]Write to MH i2c: E2 08 00 CD 88 80 11 00 00 00 00 00 00 CF [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 17 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 17 00 CD 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [14:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:33:40]wFMCommunicate OK [14:33:40]CreateOFDProtocolMessage done [14:33:40]OFDSenderStorePacket 192221 [14:33:40]StoreOFDPacket docnum=192221 [14:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3E F0 04 01 B4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 FD 00 00 00 F4 03 04 00 57 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EE 02 00 35 04 06 00 60 1E D1 D3 30 E8 AD CA 76 28 19 45 EF DC [14:33:40]CheckFolder [14:33:40]dirname=/storage/ofd_packets [14:33:40]CheckFolder done [14:33:40]ProducePacketName [14:33:40]name=ofd_packets/00192221 [14:33:40]NVStorageSaveData ofd_packets/00192221 [14:33:40]File name is /storage/ofd_packets/00192221 [14:33:40]Write 298 bytes [14:33:40]NVStorageSaveData done [14:33:40]OFDSenderStorePacket done [14:33:40]KKMCreateOFDPacket done [14:33:40]NVStorageSaveData kkm_last_timestamp [14:33:40]File name is /storage/kkm_last_timestamp [14:33:40]Write 4 bytes [14:33:40]NVStorageSaveData done [14:33:40]ExternCall_PrintAddStr [14:33:40]wPrintStart [14:33:40]Write to MH i2c: 01 00 00 CE 88 56 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 CE 88 00 00 00 00 00 FF 0F 6B [14:33:40]RasterBufferAndPrint [14:33:40]line Счет N : (1)31534 [14:33:40]line ИНН: 02508201610067 [14:33:40]line Контрольно-Кассовый Чек [14:33:40]line ПРОДАЖА [14:33:40]line ТРК (МРК, ГНК) : 11 [14:33:40]line Товар: 2710194210 [14:33:40]line ДТ-К-5 [14:33:40]line 13.130 * 76.20 [14:33:40]line = 1000.51 [14:33:40]line НДС 12% НСП 1% [14:33:40]line > о реализуемом товаре [14:33:40]line ОКРУГЛЕНИЕ: -0.51 [14:33:40]line ИТОГО: 1000.00 [14:33:40]line Внесено: 1000.00 [14:33:40]line СДАЧА: 0.00 [14:33:40]line НСП 1% : 8.85 [14:33:40]line НДС 12% : 106.25 [14:33:40]line Наличными: 1000.00 [14:33:40]line Безнал.: 0.00 [14:33:40]line Место: АЗС № 170 "Партнер Нефть" [14:33:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:33:40]line СНО: Общий режим [14:33:40]line Чек 253 27.10.2024 14:33 [14:33:40]line Смена: 542 ФФД: 1.0 [14:33:40]line ЗНМ: 0300000110 [14:33:40]line РНМ: 0000000000091776 [14:33:40]line Версия ККМ: 001 [14:33:40]line ФМ: 0000000000871754 [14:33:40]line ФД: 192221 [14:33:40]line ФПД: 105685485564136 [14:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192221&fm=105685485564136&tin=02508201610067®Number=0000000000091776&sum=100000 [14:33:41]OFD Sender: Processing packet 192221 [packets to send 75, broken 74] [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00192221 [14:33:41]OFD Sender: To server: pG, [14:33:41]CommunicateWithHost lk.salyk.kg:30040 [14:33:41]ConnectInit lk.salyk.kg [14:33:41]written 0, free lines is 4095 [14:33:41]Connected sock=8 [14:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3E F0 04 01 B4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 FD 00 00 00 F4 03 04 00 57 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EE 02 00 35 04 06 00 60 1E D1 D3 30 E8 AD CA 76 28 19 45 EF DC [14:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B D7 47 00 96 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EE 02 00 F4 03 04 00 1E F4 1D 67 B6 04 01 00 00 FB 94 C0 A5 8A 1D 2D C1 [14:33:41]CommunicateWithHost err = 0 [14:33:41]CheckOFDResponse [14:33:41]1017 (14) - 77093643461234 [14:33:41]1041 (16) - 0000000000871754 [14:33:41]1040 (4) - 192221 [14:33:41]1012 (4) - 27.10.2024 08:04 [14:33:41]1206 (1) - 0 [14:33:41]OFD Sender: Remove packet 192221 [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00192221 [14:33:41]NVStorageDeleteData [14:33:41]Write to MH i2c: 01 00 00 F9 88 81 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 F9 88 00 00 00 00 00 AF 0C 43 [14:33:41]RasterBufferAndPrint [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]written 0, free lines is 3253 [14:33:41]MH_Cut [14:33:41]Write to MH i2c: D1 01 00 00 89 01 5B [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 01 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 01 00 00 89 00 5A [14:33:41]Write to MH i2c: 01 00 00 01 89 8A [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]OFD Sender: No OFD packet to send [14:33:42]*** Cut start [14:33:42]*** Partial cut [14:33:42]*** CUTSNS_PIN = 1 [14:33:42]*** CUTSNS_PIN = 0 [14:33:42]*** Brake cut motor [14:33:42]Read from MH i2c: 01 [14:33:42]MH_I2C_Read... [14:33:42]*** Stop cut motor [14:33:42]*** Cut end [14:33:42]Read from MH i2c: 01 07 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 01 89 00 00 00 00 00 FF 0F 9F [14:33:42]process_action close_receipt done [14:33:42]requested_data is exist [14:33:42]produce_requested_data [14:33:42]requested_item fm.sn is exist - process it [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 11 00 00 [14:33:42]Write to MH i2c: E2 08 00 02 89 80 11 00 00 00 00 00 00 05 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 02 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [14:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:33:43]wFMCommunicate OK [14:33:43]requested_item fd.num is exist - process it [14:33:43]SAM_PROTO_GetFieldsCounters [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 13 00 00 [14:33:43]Write to MH i2c: E2 08 00 03 89 80 13 00 00 00 00 00 00 08 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 62 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 62 00 03 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_GetFieldsCounters done [14:33:43]requested_item shift.num is exist - process it [14:33:43]requested_item shift.opened is exist - process it [14:33:43]req_shift_opened [14:33:43]FM_GetShiftState [14:33:43]SAM_PROTO_GetShiftState [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 13 01 00 [14:33:43]Write to MH i2c: E2 08 00 04 89 80 13 01 00 00 00 00 00 0A [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 04 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4B [14:33:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_GetShiftState done [14:33:43]FM_GetShiftState done [14:33:43]req_shift_opened done [14:33:43]requested_item shift.open_date is exist - process it [14:33:43]req_shift_open_date [14:33:43]req_shift_open_date done [14:33:43]produce_requested_data done [14:33:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192221,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:33:43]process_action_free close_receipt [14:33:43]json_value_free [14:33:43]json_value_free done [14:33:43]process_json_proto returns [14:33:43]Send response to host [14:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192221,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:33:43]free response buf [14:33:43]execute_script done [14:33:43]execute_script returns [14:33:43]free content buf [14:33:43]Sock 6.Close socket [14:33:43]Sock 6.Thread stoped [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:34]accept exits with 5 [14:34:34]New connection [14:34:34]New thread 3066961252 created [14:34:34]Thread 3066817892 joined [14:34:34]Waiting for new connection... [14:34:34] Sock 5.Parse request [14:34:34]Sock 5.Check first char [14:34:34]Sock 5.First char is OK [14:34:34]request: POST /json_proto HTTP/1.0 [14:34:34]Method: POST [14:34:34]URL: /json_proto [14:34:34]Method is POST - this is cgi request [14:34:34]url: /json_proto [14:34:34]query_string will be loaded in cgi processing [14:34:34]execute_cgi json_proto POST (null) [14:34:34]execute_cgi path=json_proto method=POST [14:34:34]POST find Content-Length [14:34:34]Host: 172.17.63.131:8080 [14:34:34]Content-Length: 681 [14:34:34]Content-Type: application/json [14:34:34] [14:34:34]POST finish read [14:34:34]Found Content-Length = 681 [14:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]execute_script... [14:34: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)31536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]POST & json_proto [14:34:34]process_json_proto [14:34:34]json parsed OK: [14:34:34]protocol is kg_v1.0 [14:34:34]action value=close_receipt [14:34:34]process_action close_receipt [14:34:34]cmd_close_receipt [14:34:34]MH_GetDate [14:34:34]Write to MH i2c: F0 00 00 05 89 7D [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 05 89 00 8F 4F 1E 67 22 05 6E 64 E2 [14:34:34]GetLastDocTimeStamp 1730039639 [14:34:34]current date 1730039695 [14:34:34]FM_GetShiftState [14:34:34]SAM_PROTO_GetShiftState [14:34:34]wFMCommunicate request_size=4 [14:34:34]MH_SAM_APDU [14:34:34]CAPDU: 80 13 01 00 [14:34:34]Write to MH i2c: E2 08 00 06 89 80 13 01 00 00 00 00 00 0C [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:34]Read from MH i2c: E2 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 06 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4D [14:34:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:34:34]wFMCommunicate OK [14:34:34]SAM_PROTO_GetShiftState done [14:34:34]FM_GetShiftState done [14:34:34]opened in 1729989159 [14:34:34]opened+sec_in_day 1730075559 [14:34:34]quantity*price = 150056 [14:34:34]sum+1 = 150058 [14:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 254 27.10.2024 14:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192222 ФПД: 42406810933472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192222&fm=42406810933472&tin=02508201610067®Number=0000000000091776&sum=150000 [14:34:35]StoreToDocumentArchive [14:34:35]shift 542 fd 192222 [14:34:35]save to /storage/0542/doc_00192222 [14:34:35]save last doc name /storage/0542/doc_00192222 to /storage/kkm_last_doc_name [14:34:35]save OK [14:34:35]Clear old archive folders... [14:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:35]tlvbuf is 018DC380 [14:34:35]SAM_PROTO_ClearQueue [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 09 00 00 [14:34:35]Write to MH i2c: E2 08 00 13 89 80 09 00 00 00 00 00 00 0E [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 13 89 00 90 00 10 [14:34:35]RAPDU: 90 00 [14:34:35]wFMCommunicate OK [14:34:35]SAM_PROTO_ClearQueue done [14:34:35]KKMCreateOFDPacket [14:34:35]OFDProtocolAddRootSTLVToBuf [14:34:35]FM_MakeSignedData [14:34:35]FM_MakeSignedData [14:34:35]SAM_PROTO_SignData [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 0D 01 02 [14:34:35]Write to MH i2c: E2 08 00 14 89 80 0D 01 02 00 00 00 00 16 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 14 89 00 90 00 11 [14:34:35]RAPDU: 90 00 [14:34:35]wFMCommunicate OK [14:34:35]wFMCommunicate request_size=255 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 8F 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EE 02 00 35 04 06 00 26 [14:34:35]Write to MH i2c: E2 02 01 15 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 8F 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EE 02 00 35 04 06 00 26 00 00 68 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 15 89 00 90 00 12 [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=10 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 02 02 05 91 9A E6 D8 E0 [14:34:36]Write to MH i2c: E2 0D 00 16 89 80 0D 02 02 05 00 91 9A E6 D8 E0 00 00 EC [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 16 89 00 90 00 13 [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 03 02 [14:34:36]Write to MH i2c: E2 08 00 17 89 80 0D 03 02 00 00 00 00 1B [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 17 89 00 6D E1 12 64 95 B4 4F 94 90 00 0C [14:34:36]RAPDU: 6D E1 12 64 95 B4 4F 94 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_SignData done [14:34:36]FM_MakeSignedData done [14:34:36]CreateOFDProtocolMessage [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 11 00 00 [14:34:36]Write to MH i2c: E2 08 00 18 89 80 11 00 00 00 00 00 00 1B [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 18 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [14:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:36]wFMCommunicate OK [14:34:36]CreateOFDProtocolMessage done [14:34:36]OFDSenderStorePacket 192222 [14:34:36]StoreOFDPacket docnum=192222 [14:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 8E 07 01 6F AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 8F 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EE 02 00 35 04 06 00 26 91 9A E6 D8 E0 6D E1 12 64 95 B4 4F 94 [14:34:36]CheckFolder [14:34:36]dirname=/storage/ofd_packets [14:34:36]CheckFolder done [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00192222 [14:34:36]NVStorageSaveData ofd_packets/00192222 [14:34:36]File name is /storage/ofd_packets/00192222 [14:34:36]Write 301 bytes [14:34:36]NVStorageSaveData done [14:34:36]OFDSenderStorePacket done [14:34:36]KKMCreateOFDPacket done [14:34:36]NVStorageSaveData kkm_last_timestamp [14:34:36]File name is /storage/kkm_last_timestamp [14:34:36]Write 4 bytes [14:34:36]NVStorageSaveData done [14:34:36]ExternCall_PrintAddStr [14:34:36]wPrintStart [14:34:36]Write to MH i2c: 01 00 00 19 89 A2 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 19 89 00 00 00 00 00 FF 0F B7 [14:34:36]RasterBufferAndPrint [14:34:36]line Счет N : (1)31536 [14:34:36]line ИНН: 02508201610067 [14:34:36]line Контрольно-Кассовый Чек [14:34:36]line ПРОДАЖА [14:34:36]line ТРК (МРК, ГНК) : 12 [14:34:36]line Товар: 2710124130 [14:34:36]line Аи-92-К-5 [14:34:36]line 22.430 * 66.90 [14:34:36]line = 1500.57 [14:34:36]line НДС 12% НСП 1% [14:34:36]line > о реализуемом товаре [14:34:36]line ОКРУГЛЕНИЕ: -0.57 [14:34:36]line ИТОГО: 1500.00 [14:34:36]line Внесено: 1500.00 [14:34:36]line СДАЧА: 0.00 [14:34:36]line НСП 1% : 13.28 [14:34:36]line НДС 12% : 159.35 [14:34:36]line Наличными: 1500.00 [14:34:36]line Безнал.: 0.00 [14:34:36]line Место: АЗС № 170 "Партнер Нефть" [14:34:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:34:36]line СНО: Общий режим [14:34:36]line Чек 254 27.10.2024 14:34 [14:34:36]line Смена: 542 ФФД: 1.0 [14:34:36]line ЗНМ: 0300000110 [14:34:36]line РНМ: 0000000000091776 [14:34:36]line Версия ККМ: 001 [14:34:36]line ФМ: 0000000000871754 [14:34:36]line ФД: 192222 [14:34:36]line ФПД: 42406810933472 [14:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192222&fm=42406810933472&tin=02508201610067®Number=0000000000091776&sum=150000 [14:34:36]OFD Sender: Processing packet 192222 [packets to send 75, broken 74] [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00192222 [14:34:36]OFD Sender: To server: pG, [14:34:36]CommunicateWithHost lk.salyk.kg:30040 [14:34:36]ConnectInit lk.salyk.kg [14:34:36]written 0, free lines is 4095 [14:34:36]Connected sock=8 [14:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 8E 07 01 6F AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 8F 4F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EE 02 00 35 04 06 00 26 91 9A E6 D8 E0 6D E1 12 64 95 B4 4F 94 [14:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5E 53 47 00 D5 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EE 02 00 F4 03 04 00 56 F4 1D 67 B6 04 01 00 00 B7 D1 80 BF 25 95 94 D5 [14:34:37]CommunicateWithHost err = 0 [14:34:37]CheckOFDResponse [14:34:37]1017 (14) - 77093643461234 [14:34:37]1041 (16) - 0000000000871754 [14:34:37]1040 (4) - 192222 [14:34:37]1012 (4) - 27.10.2024 08:05 [14:34:37]1206 (1) - 0 [14:34:37]OFD Sender: Remove packet 192222 [14:34:37]ProducePacketName [14:34:37]name=ofd_packets/00192222 [14:34:37]NVStorageDeleteData [14:34:37]Write to MH i2c: 01 00 00 44 89 CD [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 44 89 00 00 00 00 00 A4 0C 84 [14:34:37]RasterBufferAndPrint [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]written 0, free lines is 3243 [14:34:37]MH_Cut [14:34:37]Write to MH i2c: D1 01 00 4B 89 01 A6 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 4B 89 00 A5 [14:34:37]Write to MH i2c: 01 00 00 4C 89 D5 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]OFD Sender: No OFD packet to send [14:34:37]*** Cut start [14:34:37]*** Partial cut [14:34:37]*** CUTSNS_PIN = 1 [14:34:38]*** CUTSNS_PIN = 0 [14:34:38]*** Brake cut motor [14:34:38]Read from MH i2c: 01 [14:34:38]MH_I2C_Read... [14:34:38]*** Stop cut motor [14:34:38]*** Cut end [14:34:38]Read from MH i2c: 01 07 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 4C 89 00 00 00 00 00 FF 0F EA [14:34:38]process_action close_receipt done [14:34:38]requested_data is exist [14:34:38]produce_requested_data [14:34:38]requested_item fm.sn is exist - process it [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 11 00 00 [14:34:38]Write to MH i2c: E2 08 00 4D 89 80 11 00 00 00 00 00 00 50 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 4D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [14:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:38]wFMCommunicate OK [14:34:38]requested_item fd.num is exist - process it [14:34:38]SAM_PROTO_GetFieldsCounters [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 00 00 [14:34:38]Write to MH i2c: E2 08 00 4E 89 80 13 00 00 00 00 00 00 53 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 4E 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [14:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetFieldsCounters done [14:34:38]requested_item shift.num is exist - process it [14:34:38]requested_item shift.opened is exist - process it [14:34:38]req_shift_opened [14:34:38]FM_GetShiftState [14:34:38]SAM_PROTO_GetShiftState [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 01 00 [14:34:38]Write to MH i2c: E2 08 00 4F 89 80 13 01 00 00 00 00 00 55 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 4F 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 96 [14:34:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetShiftState done [14:34:38]FM_GetShiftState done [14:34:38]req_shift_opened done [14:34:38]requested_item shift.open_date is exist - process it [14:34:38]req_shift_open_date [14:34:38]req_shift_open_date done [14:34:38]produce_requested_data done [14:34:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192222,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:34:38]process_action_free close_receipt [14:34:38]json_value_free [14:34:38]json_value_free done [14:34:38]process_json_proto returns [14:34:38]Send response to host [14:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192222,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:34:38]free response buf [14:34:38]execute_script done [14:34:38]execute_script returns [14:34:38]free content buf [14:34:38]Sock 5.Close socket [14:34:38]Sock 5.Thread stoped [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:38]accept exits with 6 [14:36:38]New connection [14:36:38]New thread 3066817892 created [14:36:38]Thread 3066961252 joined [14:36:38]Waiting for new connection... [14:36:38] Sock 6.Parse request [14:36:38]Sock 6.Check first char [14:36:38]Sock 6.First char is OK [14:36:38]request: POST /json_proto HTTP/1.0 [14:36:38]Method: POST [14:36:38]URL: /json_proto [14:36:38]Method is POST - this is cgi request [14:36:38]url: /json_proto [14:36:38]query_string will be loaded in cgi processing [14:36:38]execute_cgi json_proto POST (null) [14:36:38]execute_cgi path=json_proto method=POST [14:36:38]POST find Content-Length [14:36:38]Host: 172.17.63.131:8080 [14:36:38]Content-Length: 676 [14:36:38]Content-Type: application/json [14:36:38] [14:36:38]POST finish read [14:36:38]Found Content-Length = 676 [14:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:38]execute_script... [14: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 : (1)31538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:38]POST & json_proto [14:36:38]process_json_proto [14:36:38]json parsed OK: [14:36:38]protocol is kg_v1.0 [14:36:38]action value=close_receipt [14:36:38]process_action close_receipt [14:36:38]cmd_close_receipt [14:36:38]MH_GetDate [14:36:38]Write to MH i2c: F0 00 00 50 89 C8 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 09 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 09 00 50 89 00 0B 50 1E 67 22 05 6E 64 AA [14:36:38]GetLastDocTimeStamp 1730039695 [14:36:38]current date 1730039819 [14:36:38]FM_GetShiftState [14:36:38]SAM_PROTO_GetShiftState [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 13 01 00 [14:36:38]Write to MH i2c: E2 08 00 51 89 80 13 01 00 00 00 00 00 57 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0E 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0E 00 51 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 98 [14:36:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_GetShiftState done [14:36:38]FM_GetShiftState done [14:36:38]opened in 1729989159 [14:36:38]opened+sec_in_day 1730075559 [14:36:38]quantity*price = 22010 [14:36:38]sum+1 = 22011 [14:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 255 27.10.2024 14:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192223 ФПД: 170380991363460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192223&fm=170380991363460&tin=02508201610067®Number=0000000000091776&sum=22000 [14:36:39]StoreToDocumentArchive [14:36:39]shift 542 fd 192223 [14:36:39]save to /storage/0542/doc_00192223 [14:36:39]save last doc name /storage/0542/doc_00192223 to /storage/kkm_last_doc_name [14:36:39]save OK [14:36:39]Clear old archive folders... [14:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:39]tlvbuf is 01CAAC20 [14:36:39]SAM_PROTO_ClearQueue [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 09 00 00 [14:36:39]Write to MH i2c: E2 08 00 5E 89 80 09 00 00 00 00 00 00 59 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 03 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 03 00 5E 89 00 90 00 5B [14:36:39]RAPDU: 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_ClearQueue done [14:36:39]KKMCreateOFDPacket [14:36:39]OFDProtocolAddRootSTLVToBuf [14:36:39]FM_MakeSignedData [14:36:39]FM_MakeSignedData [14:36:39]SAM_PROTO_SignData [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 0D 01 02 [14:36:39]Write to MH i2c: E2 08 00 5F 89 80 0D 01 02 00 00 00 00 61 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 5F 89 00 90 00 5C [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=255 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0B 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EE 02 00 35 04 06 00 9A [14:36:40]Write to MH i2c: E2 02 01 60 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0B 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EE 02 00 35 04 06 00 9A 00 00 C0 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 60 89 00 90 00 5D [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=10 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 02 02 05 F5 EA 77 79 84 [14:36:40]Write to MH i2c: E2 0D 00 61 89 80 0D 02 02 05 00 F5 EA 77 79 84 00 00 C1 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 61 89 00 90 00 5E [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 03 02 [14:36:40]Write to MH i2c: E2 08 00 62 89 80 0D 03 02 00 00 00 00 66 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0B 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0B 00 62 89 00 AF D0 4A 4E C3 3A 7D E0 90 00 D8 [14:36:40]RAPDU: AF D0 4A 4E C3 3A 7D E0 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_SignData done [14:36:40]FM_MakeSignedData done [14:36:40]CreateOFDProtocolMessage [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 11 00 00 [14:36:40]Write to MH i2c: E2 08 00 63 89 80 11 00 00 00 00 00 00 66 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 63 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [14:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:36:40]wFMCommunicate OK [14:36:40]CreateOFDProtocolMessage done [14:36:40]OFDSenderStorePacket 192223 [14:36:40]StoreOFDPacket docnum=192223 [14:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 81 07 01 A2 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0B 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EE 02 00 35 04 06 00 9A F5 EA 77 79 84 AF D0 4A 4E C3 3A 7D E0 [14:36:40]CheckFolder [14:36:40]dirname=/storage/ofd_packets [14:36:40]CheckFolder done [14:36:40]ProducePacketName [14:36:40]name=ofd_packets/00192223 [14:36:40]NVStorageSaveData ofd_packets/00192223 [14:36:40]File name is /storage/ofd_packets/00192223 [14:36:40]Write 301 bytes [14:36:40]NVStorageSaveData done [14:36:40]OFDSenderStorePacket done [14:36:40]KKMCreateOFDPacket done [14:36:40]NVStorageSaveData kkm_last_timestamp [14:36:40]File name is /storage/kkm_last_timestamp [14:36:40]Write 4 bytes [14:36:40]NVStorageSaveData done [14:36:40]ExternCall_PrintAddStr [14:36:40]wPrintStart [14:36:40]Write to MH i2c: 01 00 00 64 89 ED [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 07 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 07 00 64 89 00 00 00 00 00 FF 0F 02 [14:36:40]RasterBufferAndPrint [14:36:40]line Счет N : (1)31538 [14:36:40]line ИНН: 02508201610067 [14:36:40]line Контрольно-Кассовый Чек [14:36:40]line ПРОДАЖА [14:36:40]line ТРК (МРК, ГНК) : 12 [14:36:40]line Товар: 2710124130 [14:36:40]line Аи-92-К-5 [14:36:40]line 3.290 * 66.90 [14:36:40]line = 220.10 [14:36:40]line НДС 12% НСП 1% [14:36:40]line > о реализуемом товаре [14:36:40]line ОКРУГЛЕНИЕ: -0.10 [14:36:40]line ИТОГО: 220.00 [14:36:40]line Внесено: 220.00 [14:36:40]line СДАЧА: 0.00 [14:36:40]line НСП 1% : 1.95 [14:36:40]line НДС 12% : 23.37 [14:36:40]line Наличными: 220.00 [14:36:40]line Безнал.: 0.00 [14:36:40]line Место: АЗС № 170 "Партнер Нефть" [14:36:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:36:40]line СНО: Общий режим [14:36:40]line Чек 255 27.10.2024 14:36 [14:36:40]line Смена: 542 ФФД: 1.0 [14:36:40]line ЗНМ: 0300000110 [14:36:40]line РНМ: 0000000000091776 [14:36:40]line Версия ККМ: 001 [14:36:40]line ФМ: 0000000000871754 [14:36:40]line ФД: 192223 [14:36:40]line ФПД: 170380991363460 [14:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192223&fm=170380991363460&tin=02508201610067®Number=0000000000091776&sum=22000 [14:36:40]OFD Sender: Processing packet 192223 [packets to send 75, broken 74] [14:36:40]ProducePacketName [14:36:40]name=ofd_packets/00192223 [14:36:40]OFD Sender: To server: pG, [14:36:40]CommunicateWithHost lk.salyk.kg:30040 [14:36:40]ConnectInit lk.salyk.kg [14:36:40]written 0, free lines is 4095 [14:36:40]Connected sock=8 [14: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 37 35 34 0F 01 00 00 B0 81 07 01 A2 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0B 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EE 02 00 35 04 06 00 9A F5 EA 77 79 84 AF D0 4A 4E C3 3A 7D E0 [14:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 1E 47 00 FF BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EE 02 00 F4 03 04 00 D2 F4 1D 67 B6 04 01 00 00 40 FB A3 69 73 6D B5 A8 [14:36:41]CommunicateWithHost err = 0 [14:36:41]CheckOFDResponse [14:36:41]1017 (14) - 77093643461234 [14:36:41]1041 (16) - 0000000000871754 [14:36:41]1040 (4) - 192223 [14:36:41]1012 (4) - 27.10.2024 08:07 [14:36:41]1206 (1) - 0 [14:36:41]OFD Sender: Remove packet 192223 [14:36:41]ProducePacketName [14:36:41]name=ofd_packets/00192223 [14:36:41]NVStorageDeleteData [14:36:41]Write to MH i2c: 01 00 00 8F 89 18 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 8F 89 00 00 00 00 00 AD 0C D8 [14:36:41]RasterBufferAndPrint [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]written 0, free lines is 3251 [14:36:41]MH_Cut [14:36:41]Write to MH i2c: D1 01 00 96 89 01 F1 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 01 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 01 00 96 89 00 F0 [14:36:41]Write to MH i2c: 01 00 00 97 89 20 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]OFD Sender: No OFD packet to send [14:36:42]*** Cut start [14:36:42]*** Partial cut [14:36:42]*** CUTSNS_PIN = 1 [14:36:42]*** CUTSNS_PIN = 0 [14:36:42]*** Brake cut motor [14:36:42]Read from MH i2c: 01 [14:36:42]MH_I2C_Read... [14:36:42]*** Stop cut motor [14:36:42]*** Cut end [14:36:42]Read from MH i2c: 01 07 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 97 89 00 00 00 00 00 FF 0F 35 [14:36:42]process_action close_receipt done [14:36:42]requested_data is exist [14:36:42]produce_requested_data [14:36:42]requested_item fm.sn is exist - process it [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 11 00 00 [14:36:42]Write to MH i2c: E2 08 00 98 89 80 11 00 00 00 00 00 00 9B [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 17 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 17 00 98 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [14:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:36:42]wFMCommunicate OK [14:36:42]requested_item fd.num is exist - process it [14:36:42]SAM_PROTO_GetFieldsCounters [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 13 00 00 [14:36:42]Write to MH i2c: E2 08 00 99 89 80 13 00 00 00 00 00 00 9E [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 62 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 62 00 99 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [14: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:42]wFMCommunicate OK [14:36:42]SAM_PROTO_GetFieldsCounters done [14:36:42]requested_item shift.num is exist - process it [14:36:42]requested_item shift.opened is exist - process it [14:36:42]req_shift_opened [14:36:42]FM_GetShiftState [14:36:42]SAM_PROTO_GetShiftState [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 13 01 00 [14:36:42]Write to MH i2c: E2 08 00 9A 89 80 13 01 00 00 00 00 00 A0 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 9A 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E1 [14:36:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:36:42]wFMCommunicate OK [14:36:42]SAM_PROTO_GetShiftState done [14:36:42]FM_GetShiftState done [14:36:42]req_shift_opened done [14:36:42]requested_item shift.open_date is exist - process it [14:36:42]req_shift_open_date [14:36:42]req_shift_open_date done [14:36:42]produce_requested_data done [14:36:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192223,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:36:42]process_action_free close_receipt [14:36:43]json_value_free [14:36:43]json_value_free done [14:36:43]process_json_proto returns [14:36:43]Send response to host [14:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192223,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:36:43]free response buf [14:36:43]execute_script done [14:36:43]execute_script returns [14:36:43]free content buf [14:36:43]Sock 6.Close socket [14:36:43]Sock 6.Thread stoped [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:06]accept exits with 5 [14:38:06]New connection [14:38:06]New thread 3066961252 created [14:38:06]Thread 3066817892 joined [14:38:06]Waiting for new connection... [14:38:06] Sock 5.Parse request [14:38:06]Sock 5.Check first char [14:38:06]Sock 5.First char is OK [14:38:06]request: POST /json_proto HTTP/1.0 [14:38:06]Method: POST [14:38:06]URL: /json_proto [14:38:06]Method is POST - this is cgi request [14:38:06]url: /json_proto [14:38:06]query_string will be loaded in cgi processing [14:38:06]execute_cgi json_proto POST (null) [14:38:06]execute_cgi path=json_proto method=POST [14:38:06]POST find Content-Length [14:38:06]Host: 172.17.63.131:8080 [14:38:06]Content-Length: 678 [14:38:06]Content-Type: application/json [14:38:06] [14:38:06]POST finish read [14:38:06]Found Content-Length = 678 [14:38:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31537", "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" : 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" ] } } [14:38:06]execute_script... [14:38: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)31537", "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" : 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" ] } } [14:38:06]POST & json_proto [14:38:06]process_json_proto [14:38:06]json parsed OK: [14:38:06]protocol is kg_v1.0 [14:38:06]action value=close_receipt [14:38:06]process_action close_receipt [14:38:06]cmd_close_receipt [14:38:06]MH_GetDate [14:38:06]Write to MH i2c: F0 00 00 9B 89 13 [14:38:06]Write i2c OK [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 09 00 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 09 00 9B 89 00 63 50 1E 67 22 05 6E 64 4D [14:38:06]GetLastDocTimeStamp 1730039819 [14:38:06]current date 1730039907 [14:38:06]FM_GetShiftState [14:38:06]SAM_PROTO_GetShiftState [14:38:06]wFMCommunicate request_size=4 [14:38:06]MH_SAM_APDU [14:38:06]CAPDU: 80 13 01 00 [14:38:06]Write to MH i2c: E2 08 00 9C 89 80 13 01 00 00 00 00 00 A2 [14:38:06]Write i2c OK [14:38:06]MH_I2C_Read... [14:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:06]Read from MH i2c: E2 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: E2 0E 00 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: E2 0E 00 9C 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E3 [14:38:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:38:06]wFMCommunicate OK [14:38:06]SAM_PROTO_GetShiftState done [14:38:06]FM_GetShiftState done [14:38:06]opened in 1729989159 [14:38:06]opened+sec_in_day 1730075559 [14:38:06]quantity*price = 100050 [14:38:06]sum+1 = 100052 [14:38:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 256 27.10.2024 14:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192224 ФПД: 192367733109405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192224&fm=192367733109405&tin=02508201610067®Number=0000000000091776&sum=100000 [14:38:08]StoreToDocumentArchive [14:38:08]shift 542 fd 192224 [14:38:08]save to /storage/0542/doc_00192224 [14:38:08]save last doc name /storage/0542/doc_00192224 to /storage/kkm_last_doc_name [14:38:08]save OK [14:38:08]Clear old archive folders... [14:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:38:08]tlvbuf is 0187DB40 [14:38:08]SAM_PROTO_ClearQueue [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 09 00 00 [14:38:08]Write to MH i2c: E2 08 00 A9 89 80 09 00 00 00 00 00 00 A4 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 A9 89 00 90 00 A6 [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]SAM_PROTO_ClearQueue done [14:38:08]KKMCreateOFDPacket [14:38:08]OFDProtocolAddRootSTLVToBuf [14:38:08]FM_MakeSignedData [14:38:08]FM_MakeSignedData [14:38:08]SAM_PROTO_SignData [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 0D 01 02 [14:38:08]Write to MH i2c: E2 08 00 AA 89 80 0D 01 02 00 00 00 00 AC [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 AA 89 00 90 00 A7 [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]wFMCommunicate request_size=255 [14:38:08]MH_SAM_APDU [14:38: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 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 00 01 00 00 F4 03 04 00 63 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EE 02 00 35 04 06 00 AE F5 1A 65 [14:38:08]Write to MH i2c: E2 02 01 AB 89 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 00 01 00 00 F4 03 04 00 63 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EE 02 00 35 04 06 00 AE F5 1A 65 00 00 81 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 AB 89 00 90 00 A8 [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]wFMCommunicate request_size=7 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 0D 02 02 02 F2 9D [14:38:08]Write to MH i2c: E2 0A 00 AC 89 80 0D 02 02 02 00 F2 9D 00 00 42 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 AC 89 00 90 00 A9 [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 0D 03 02 [14:38:08]Write to MH i2c: E2 08 00 AD 89 80 0D 03 02 00 00 00 00 B1 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 0B 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 0B 00 AD 89 00 93 AB D4 8D 1C 66 94 08 90 00 6F [14:38:08]RAPDU: 93 AB D4 8D 1C 66 94 08 90 00 [14:38:08]wFMCommunicate OK [14:38:08]SAM_PROTO_SignData done [14:38:08]FM_MakeSignedData done [14:38:08]CreateOFDProtocolMessage [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 11 00 00 [14:38:08]Write to MH i2c: E2 08 00 AE 89 80 11 00 00 00 00 00 00 B1 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 17 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 17 00 AE 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [14:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:08]wFMCommunicate OK [14:38:08]CreateOFDProtocolMessage done [14:38:08]OFDSenderStorePacket 192224 [14:38:08]StoreOFDPacket docnum=192224 [14:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 E1 04 01 39 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 01 00 00 F4 03 04 00 63 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EE 02 00 35 04 06 00 AE F5 1A 65 F2 9D 93 AB D4 8D 1C 66 94 08 [14:38:08]CheckFolder [14:38:08]dirname=/storage/ofd_packets [14:38:08]CheckFolder done [14:38:08]ProducePacketName [14:38:08]name=ofd_packets/00192224 [14:38:08]NVStorageSaveData ofd_packets/00192224 [14:38:08]File name is /storage/ofd_packets/00192224 [14:38:08]Write 298 bytes [14:38:08]NVStorageSaveData done [14:38:08]OFDSenderStorePacket done [14:38:08]KKMCreateOFDPacket done [14:38:08]NVStorageSaveData kkm_last_timestamp [14:38:08]File name is /storage/kkm_last_timestamp [14:38:08]Write 4 bytes [14:38:08]NVStorageSaveData done [14:38:08]ExternCall_PrintAddStr [14:38:08]wPrintStart [14:38:08]Write to MH i2c: 01 00 00 AF 89 38 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 07 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 07 00 AF 89 00 00 00 00 00 FF 0F 4D [14:38:08]RasterBufferAndPrint [14:38:08]line Счет N : (1)31537 [14:38:08]line ИНН: 02508201610067 [14:38:08]line Контрольно-Кассовый Чек [14:38:08]line ПРОДАЖА [14:38:08]line ТРК (МРК, ГНК) : 11 [14:38:08]line Товар: 2710194210 [14:38:08]line ДТ-К-5 [14:38:08]line 13.130 * 76.20 [14:38:08]line = 1000.51 [14:38:08]line НДС 12% НСП 1% [14:38:08]line > о реализуемом товаре [14:38:08]line ОКРУГЛЕНИЕ: -0.51 [14:38:08]line ИТОГО: 1000.00 [14:38:08]line Внесено: 1000.00 [14:38:08]line СДАЧА: 0.00 [14:38:08]line НСП 1% : 8.85 [14:38:08]line НДС 12% : 106.25 [14:38:08]line Наличными: 1000.00 [14:38:08]line Безнал.: 0.00 [14:38:08]line Место: АЗС № 170 "Партнер Нефть" [14:38:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:38:08]line СНО: Общий режим [14:38:08]line Чек 256 27.10.2024 14:38 [14:38:08]line Смена: 542 ФФД: 1.0 [14:38:08]line ЗНМ: 0300000110 [14:38:08]line РНМ: 0000000000091776 [14:38:08]line Версия ККМ: 001 [14:38:08]line ФМ: 0000000000871754 [14:38:08]line ФД: 192224 [14:38:08]line ФПД: 192367733109405 [14:38:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192224&fm=192367733109405&tin=02508201610067®Number=0000000000091776&sum=100000 [14:38:08]OFD Sender: Processing packet 192224 [packets to send 75, broken 74] [14:38:08]ProducePacketName [14:38:08]name=ofd_packets/00192224 [14:38:08]OFD Sender: To server: pG, [14:38:08]CommunicateWithHost lk.salyk.kg:30040 [14:38:08]ConnectInit lk.salyk.kg [14:38:08]written 0, free lines is 4095 [14:38:09]Connected sock=6 [14:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 E1 04 01 39 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 01 00 00 F4 03 04 00 63 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EE 02 00 35 04 06 00 AE F5 1A 65 F2 9D 93 AB D4 8D 1C 66 94 08 [14:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 27 47 00 AC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EE 02 00 F4 03 04 00 2A F5 1D 67 B6 04 01 00 00 7D 56 AF F5 71 5D A7 6C [14:38:09]CommunicateWithHost err = 0 [14:38:09]CheckOFDResponse [14:38:09]1017 (14) - 77093643461234 [14:38:09]1041 (16) - 0000000000871754 [14:38:09]1040 (4) - 192224 [14:38:09]1012 (4) - 27.10.2024 08:09 [14:38:09]1206 (1) - 0 [14:38:09]OFD Sender: Remove packet 192224 [14:38:09]ProducePacketName [14:38:09]name=ofd_packets/00192224 [14:38:09]NVStorageDeleteData [14:38:09]Write to MH i2c: 01 00 00 DA 89 63 [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 07 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 07 00 DA 89 00 00 00 00 00 A0 0C 16 [14:38:09]RasterBufferAndPrint [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]written 0, free lines is 3239 [14:38:09]MH_Cut [14:38:09]Write to MH i2c: D1 01 00 E1 89 01 3C [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 01 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 01 00 E1 89 00 3B [14:38:09]Write to MH i2c: 01 00 00 E2 89 6B [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]OFD Sender: No OFD packet to send [14:38:10]*** Cut start [14:38:10]*** Partial cut [14:38:10]*** CUTSNS_PIN = 1 [14:38:10]*** CUTSNS_PIN = 0 [14:38:10]*** Brake cut motor [14:38:10]Read from MH i2c: 01 [14:38:10]MH_I2C_Read... [14:38:10]*** Stop cut motor [14:38:10]*** Cut end [14:38:10]Read from MH i2c: 01 07 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: 01 07 00 E2 89 00 00 00 00 00 FF 0F 80 [14:38:10]process_action close_receipt done [14:38:10]requested_data is exist [14:38:10]produce_requested_data [14:38:10]requested_item fm.sn is exist - process it [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 11 00 00 [14:38:10]Write to MH i2c: E2 08 00 E3 89 80 11 00 00 00 00 00 00 E6 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 17 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 17 00 E3 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [14:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:10]wFMCommunicate OK [14:38:10]requested_item fd.num is exist - process it [14:38:10]SAM_PROTO_GetFieldsCounters [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 13 00 00 [14:38:10]Write to MH i2c: E2 08 00 E4 89 80 13 00 00 00 00 00 00 E9 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 62 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 62 00 E4 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_GetFieldsCounters done [14:38:11]requested_item shift.num is exist - process it [14:38:11]requested_item shift.opened is exist - process it [14:38:11]req_shift_opened [14:38:11]FM_GetShiftState [14:38:11]SAM_PROTO_GetShiftState [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 13 01 00 [14:38:11]Write to MH i2c: E2 08 00 E5 89 80 13 01 00 00 00 00 00 EB [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0E 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0E 00 E5 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2C [14:38:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_GetShiftState done [14:38:11]FM_GetShiftState done [14:38:11]req_shift_opened done [14:38:11]requested_item shift.open_date is exist - process it [14:38:11]req_shift_open_date [14:38:11]req_shift_open_date done [14:38:11]produce_requested_data done [14:38:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192224,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:38:11]process_action_free close_receipt [14:38:11]json_value_free [14:38:11]json_value_free done [14:38:11]process_json_proto returns [14:38:11]Send response to host [14:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192224,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:38:11]free response buf [14:38:11]execute_script done [14:38:11]execute_script returns [14:38:11]free content buf [14:38:11]Sock 5.Close socket [14:38:11]Sock 5.Thread stoped [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]accept exits with 8 [14:38:54]New connection [14:38:54]New thread 3066817892 created [14:38:54]Thread 3066961252 joined [14:38:54]Waiting for new connection... [14:38:54] Sock 8.Parse request [14:38:54]Sock 8.Check first char [14:38:54]Sock 8.First char is OK [14:38:54]request: POST /json_proto HTTP/1.0 [14:38:54]Method: POST [14:38:54]URL: /json_proto [14:38:54]Method is POST - this is cgi request [14:38:54]url: /json_proto [14:38:54]query_string will be loaded in cgi processing [14:38:54]execute_cgi json_proto POST (null) [14:38:54]execute_cgi path=json_proto method=POST [14:38:54]POST find Content-Length [14:38:54]Host: 172.17.63.131:8080 [14:38:54]Content-Length: 676 [14:38:54]Content-Type: application/json [14:38:54] [14:38:54]POST finish read [14:38:54]Found Content-Length = 676 [14:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:54]execute_script... [14:38: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)31540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:54]POST & json_proto [14:38:54]process_json_proto [14:38:54]json parsed OK: [14:38:54]protocol is kg_v1.0 [14:38:54]action value=close_receipt [14:38:54]process_action close_receipt [14:38:54]cmd_close_receipt [14:38:54]MH_GetDate [14:38:54]Write to MH i2c: F0 00 00 E6 89 5E [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 09 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: F0 09 00 E6 89 00 93 50 1E 67 22 05 6E 64 C8 [14:38:54]GetLastDocTimeStamp 1730039907 [14:38:54]current date 1730039955 [14:38:54]FM_GetShiftState [14:38:54]SAM_PROTO_GetShiftState [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 13 01 00 [14:38:54]Write to MH i2c: E2 08 00 E7 89 80 13 01 00 00 00 00 00 ED [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0E 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0E 00 E7 89 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2E [14:38:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_GetShiftState done [14:38:54]FM_GetShiftState done [14:38:54]opened in 1729989159 [14:38:54]opened+sec_in_day 1730075559 [14:38:54]quantity*price = 50041 [14:38:54]sum+1 = 50042 [14:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 257 27.10.2024 14:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192225 ФПД: 134084131752371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192225&fm=134084131752371&tin=02508201610067®Number=0000000000091776&sum=50000 [14:38:55]StoreToDocumentArchive [14:38:55]shift 542 fd 192225 [14:38:55]save to /storage/0542/doc_00192225 [14:38:55]save last doc name /storage/0542/doc_00192225 to /storage/kkm_last_doc_name [14:38:55]save OK [14:38:55]Clear old archive folders... [14:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:55]tlvbuf is 016142E0 [14:38:55]SAM_PROTO_ClearQueue [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 09 00 00 [14:38:55]Write to MH i2c: E2 08 00 F4 89 80 09 00 00 00 00 00 00 EF [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:55]Read from MH i2c: E2 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 03 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 03 00 F4 89 00 90 00 F1 [14:38:55]RAPDU: 90 00 [14:38:55]wFMCommunicate OK [14:38:55]SAM_PROTO_ClearQueue done [14:38:55]KKMCreateOFDPacket [14:38:55]OFDProtocolAddRootSTLVToBuf [14:38:55]FM_MakeSignedData [14:38:55]FM_MakeSignedData [14:38:55]SAM_PROTO_SignData [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 0D 01 02 [14:38:55]Write to MH i2c: E2 08 00 F5 89 80 0D 01 02 00 00 00 00 F7 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:55]Read from MH i2c: E2 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 03 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 03 00 F5 89 00 90 00 F2 [14:38:55]RAPDU: 90 00 [14:38:55]wFMCommunicate OK [14:38:55]wFMCommunicate request_size=255 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EE 02 00 35 04 06 00 79 [14:38:55]Write to MH i2c: E2 02 01 F6 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 93 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EE 02 00 35 04 06 00 79 00 00 5F [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 F6 89 00 90 00 F3 [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]wFMCommunicate request_size=10 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 0D 02 02 05 F2 E5 0B 09 B3 [14:38:56]Write to MH i2c: E2 0D 00 F7 89 80 0D 02 02 05 00 F2 E5 0B 09 B3 00 00 A2 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 03 00 F7 89 00 90 00 F4 [14:38:56]RAPDU: 90 00 [14:38:56]wFMCommunicate OK [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 0D 03 02 [14:38:56]Write to MH i2c: E2 08 00 F8 89 80 0D 03 02 00 00 00 00 FC [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0B 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0B 00 F8 89 00 7B 12 F1 7E F1 71 95 75 90 00 65 [14:38:56]RAPDU: 7B 12 F1 7E F1 71 95 75 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_SignData done [14:38:56]FM_MakeSignedData done [14:38:56]CreateOFDProtocolMessage [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 11 00 00 [14:38:56]Write to MH i2c: E2 08 00 F9 89 80 11 00 00 00 00 00 00 FC [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 F9 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [14:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:56]wFMCommunicate OK [14:38:56]CreateOFDProtocolMessage done [14:38:56]OFDSenderStorePacket 192225 [14:38:56]StoreOFDPacket docnum=192225 [14:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 6D 07 01 38 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EE 02 00 35 04 06 00 79 F2 E5 0B 09 B3 7B 12 F1 7E F1 71 95 75 [14:38:56]CheckFolder [14:38:56]dirname=/storage/ofd_packets [14:38:56]CheckFolder done [14:38:56]ProducePacketName [14:38:56]name=ofd_packets/00192225 [14:38:56]NVStorageSaveData ofd_packets/00192225 [14:38:56]File name is /storage/ofd_packets/00192225 [14:38:56]Write 301 bytes [14:38:56]NVStorageSaveData done [14:38:56]OFDSenderStorePacket done [14:38:56]KKMCreateOFDPacket done [14:38:56]NVStorageSaveData kkm_last_timestamp [14:38:56]File name is /storage/kkm_last_timestamp [14:38:56]Write 4 bytes [14:38:56]NVStorageSaveData done [14:38:56]ExternCall_PrintAddStr [14:38:56]wPrintStart [14:38:56]Write to MH i2c: 01 00 00 FA 89 83 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 FA 89 00 00 00 00 00 FF 0F 98 [14:38:56]RasterBufferAndPrint [14:38:56]line Счет N : (1)31540 [14:38:56]line ИНН: 02508201610067 [14:38:56]line Контрольно-Кассовый Чек [14:38:56]line ПРОДАЖА [14:38:56]line ТРК (МРК, ГНК) : 21 [14:38:56]line Товар: 2710124130 [14:38:56]line Аи-92-К-5 [14:38:56]line 7.480 * 66.90 [14:38:56]line = 500.41 [14:38:56]line НДС 12% НСП 1% [14:38:56]line > о реализуемом товаре [14:38:56]line ОКРУГЛЕНИЕ: -0.41 [14:38:56]line ИТОГО: 500.00 [14:38:56]line Внесено: 500.00 [14:38:56]line СДАЧА: 0.00 [14:38:56]line НСП 1% : 4.43 [14:38:56]line НДС 12% : 53.14 [14:38:56]line Наличными: 500.00 [14:38:56]line Безнал.: 0.00 [14:38:56]line Место: АЗС № 170 "Партнер Нефть" [14:38:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:38:56]line СНО: Общий режим [14:38:56]line Чек 257 27.10.2024 14:39 [14:38:56]line Смена: 542 ФФД: 1.0 [14:38:56]line ЗНМ: 0300000110 [14:38:56]line РНМ: 0000000000091776 [14:38:56]line Версия ККМ: 001 [14:38:56]line ФМ: 0000000000871754 [14:38:56]line ФД: 192225 [14:38:56]line ФПД: 134084131752371 [14:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192225&fm=134084131752371&tin=02508201610067®Number=0000000000091776&sum=50000 [14:38:56]OFD Sender: Processing packet 192225 [packets to send 75, broken 74] [14:38:56]ProducePacketName [14:38:56]name=ofd_packets/00192225 [14:38:56]OFD Sender: To server: pG, [14:38:56]CommunicateWithHost lk.salyk.kg:30040 [14:38:56]ConnectInit lk.salyk.kg [14:38:56]written 0, free lines is 4095 [14:38:56]Connected sock=5 [14:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 6D 07 01 38 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EE 02 00 35 04 06 00 79 F2 E5 0B 09 B3 7B 12 F1 7E F1 71 95 75 [14:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD 69 47 00 6E FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EE 02 00 F4 03 04 00 5A F5 1D 67 B6 04 01 00 00 61 2D 2B 88 DB AE E4 4F [14:38:56]CommunicateWithHost err = 0 [14:38:56]CheckOFDResponse [14:38:56]1017 (14) - 77093643461234 [14:38:56]1041 (16) - 0000000000871754 [14:38:56]1040 (4) - 192225 [14:38:56]1012 (4) - 27.10.2024 08:10 [14:38:56]1206 (1) - 0 [14:38:56]OFD Sender: Remove packet 192225 [14:38:56]ProducePacketName [14:38:56]name=ofd_packets/00192225 [14:38:56]NVStorageDeleteData [14:38:57]Write to MH i2c: 01 00 00 25 8A AF [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 07 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: 01 07 00 25 8A 00 00 00 00 00 9E 0C 60 [14:38:57]RasterBufferAndPrint [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]line [14:38:57]written 0, free lines is 3238 [14:38:57]MH_Cut [14:38:57]Write to MH i2c: D1 01 00 2C 8A 01 88 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 01 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: D1 01 00 2C 8A 00 87 [14:38:57]Write to MH i2c: 01 00 00 2D 8A B7 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]OFD Sender: No OFD packet to send [14:38:57]*** Cut start [14:38:57]*** Partial cut [14:38:57]*** CUTSNS_PIN = 1 [14:38:57]*** CUTSNS_PIN = 0 [14:38:58]*** Brake cut motor [14:38:58]Read from MH i2c: 01 [14:38:58]MH_I2C_Read... [14:38:58]*** Stop cut motor [14:38:58]*** Cut end [14:38:58]Read from MH i2c: 01 07 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: 01 07 00 2D 8A 00 00 00 00 00 FF 0F CC [14:38:58]process_action close_receipt done [14:38:58]requested_data is exist [14:38:58]produce_requested_data [14:38:58]requested_item fm.sn is exist - process it [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 11 00 00 [14:38:58]Write to MH i2c: E2 08 00 2E 8A 80 11 00 00 00 00 00 00 32 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 2E 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [14:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:38:58]wFMCommunicate OK [14:38:58]requested_item fd.num is exist - process it [14:38:58]SAM_PROTO_GetFieldsCounters [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 13 00 00 [14:38:58]Write to MH i2c: E2 08 00 2F 8A 80 13 00 00 00 00 00 00 35 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 62 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 62 00 2F 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [14:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_GetFieldsCounters done [14:38:58]requested_item shift.num is exist - process it [14:38:58]requested_item shift.opened is exist - process it [14:38:58]req_shift_opened [14:38:58]FM_GetShiftState [14:38:58]SAM_PROTO_GetShiftState [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 13 01 00 [14:38:58]Write to MH i2c: E2 08 00 30 8A 80 13 01 00 00 00 00 00 37 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0E 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0E 00 30 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 78 [14:38:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_GetShiftState done [14:38:58]FM_GetShiftState done [14:38:58]req_shift_opened done [14:38:58]requested_item shift.open_date is exist - process it [14:38:58]req_shift_open_date [14:38:58]req_shift_open_date done [14:38:58]produce_requested_data done [14:38:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192225,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:38:58]process_action_free close_receipt [14:38:58]json_value_free [14:38:58]json_value_free done [14:38:58]process_json_proto returns [14:38:58]Send response to host [14:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192225,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:38:58]free response buf [14:38:58]execute_script done [14:38:58]execute_script returns [14:38:58]free content buf [14:38:58]Sock 8.Close socket [14:38:58]Sock 8.Thread stoped [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:19]accept exits with 6 [14:39:19]New connection [14:39:19]New thread 3066961252 created [14:39:19]Thread 3066817892 joined [14:39:19]Waiting for new connection... [14:39:19] Sock 6.Parse request [14:39:19]Sock 6.Check first char [14:39:19]Sock 6.First char is OK [14:39:19]request: POST /json_proto HTTP/1.0 [14:39:19]Method: POST [14:39:19]URL: /json_proto [14:39:19]Method is POST - this is cgi request [14:39:19]url: /json_proto [14:39:19]query_string will be loaded in cgi processing [14:39:19]execute_cgi json_proto POST (null) [14:39:19]execute_cgi path=json_proto method=POST [14:39:19]POST find Content-Length [14:39:19]Host: 172.17.63.131:8080 [14:39:19]Content-Length: 678 [14:39:19]Content-Type: application/json [14:39:19] [14:39:19]POST finish read [14:39:19]Found Content-Length = 678 [14:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31539", "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" : 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" ] } } [14:39:19]execute_script... [14:39: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)31539", "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" : 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" ] } } [14:39:19]POST & json_proto [14:39:19]process_json_proto [14:39:19]json parsed OK: [14:39:19]protocol is kg_v1.0 [14:39:19]action value=close_receipt [14:39:19]process_action close_receipt [14:39:19]cmd_close_receipt [14:39:19]MH_GetDate [14:39:19]Write to MH i2c: F0 00 00 31 8A AA [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 31 8A 00 AC 50 1E 67 22 05 6E 64 2D [14:39:19]GetLastDocTimeStamp 1730039955 [14:39:19]current date 1730039980 [14:39:19]FM_GetShiftState [14:39:19]SAM_PROTO_GetShiftState [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 01 00 [14:39:19]Write to MH i2c: E2 08 00 32 8A 80 13 01 00 00 00 00 00 39 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 32 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 7A [14:39:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetShiftState done [14:39:19]FM_GetShiftState done [14:39:19]opened in 1729989159 [14:39:19]opened+sec_in_day 1730075559 [14:39:19]quantity*price = 100050 [14:39:19]sum+1 = 100052 [14:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 258 27.10.2024 14:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192226 ФПД: 102829375651578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143940&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192226&fm=102829375651578&tin=02508201610067®Number=0000000000091776&sum=100000 [14:39:20]StoreToDocumentArchive [14:39:20]shift 542 fd 192226 [14:39:20]save to /storage/0542/doc_00192226 [14:39:20]save last doc name /storage/0542/doc_00192226 to /storage/kkm_last_doc_name [14:39:20]save OK [14:39:20]Clear old archive folders... [14:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:39:20]tlvbuf is 0187D3F0 [14:39:20]SAM_PROTO_ClearQueue [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 09 00 00 [14:39:20]Write to MH i2c: E2 08 00 3F 8A 80 09 00 00 00 00 00 00 3B [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 3F 8A 00 90 00 3D [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_ClearQueue done [14:39:21]KKMCreateOFDPacket [14:39:21]OFDProtocolAddRootSTLVToBuf [14:39:21]FM_MakeSignedData [14:39:21]FM_MakeSignedData [14:39:21]SAM_PROTO_SignData [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 01 02 [14:39:21]Write to MH i2c: E2 08 00 40 8A 80 0D 01 02 00 00 00 00 43 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 40 8A 00 90 00 3E [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=255 [14:39:21]MH_SAM_APDU [14:39:21]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 02 01 00 00 F4 03 04 00 AC 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EE 02 00 35 04 06 00 5D 85 D4 68 [14:39:21]Write to MH i2c: E2 02 01 41 8A 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 02 01 00 00 F4 03 04 00 AC 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EE 02 00 35 04 06 00 5D 85 D4 68 00 00 61 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 41 8A 00 90 00 3F [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=7 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 02 02 02 7E FA [14:39:21]Write to MH i2c: E2 0A 00 42 8A 80 0D 02 02 02 00 7E FA 00 00 C2 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 03 00 42 8A 00 90 00 40 [14:39:21]RAPDU: 90 00 [14:39:21]wFMCommunicate OK [14:39:21]wFMCommunicate request_size=4 [14:39:21]MH_SAM_APDU [14:39:21]CAPDU: 80 0D 03 02 [14:39:21]Write to MH i2c: E2 08 00 43 8A 80 0D 03 02 00 00 00 00 48 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:21]Read from MH i2c: E2 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0B 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: E2 0B 00 43 8A 00 25 17 FC B2 F2 9D 9B E7 90 00 44 [14:39:21]RAPDU: 25 17 FC B2 F2 9D 9B E7 90 00 [14:39:21]wFMCommunicate OK [14:39:21]SAM_PROTO_SignData done [14:39:21]FM_MakeSignedData done [14:39:21]CreateOFDProtocolMessage [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 44 8A 80 11 00 00 00 00 00 00 48 [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 44 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [14:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:39:21]wFMCommunicate OK [14:39:21]CreateOFDProtocolMessage done [14:39:21]OFDSenderStorePacket 192226 [14:39:21]StoreOFDPacket docnum=192226 [14:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E6 BE 04 01 96 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 AC 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EE 02 00 35 04 06 00 5D 85 D4 68 7E FA 25 17 FC B2 F2 9D 9B E7 [14:39:21]CheckFolder [14:39:21]dirname=/storage/ofd_packets [14:39:21]CheckFolder done [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00192226 [14:39:21]NVStorageSaveData ofd_packets/00192226 [14:39:21]File name is /storage/ofd_packets/00192226 [14:39:21]Write 298 bytes [14:39:21]NVStorageSaveData done [14:39:21]OFDSenderStorePacket done [14:39:21]KKMCreateOFDPacket done [14:39:21]NVStorageSaveData kkm_last_timestamp [14:39:21]File name is /storage/kkm_last_timestamp [14:39:21]Write 4 bytes [14:39:21]NVStorageSaveData done [14:39:21]ExternCall_PrintAddStr [14:39:21]wPrintStart [14:39:21]Write to MH i2c: 01 00 00 45 8A CF [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 [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 45 8A 00 00 00 00 00 FF 0F E4 [14:39:21]RasterBufferAndPrint [14:39:21]line Счет N : (1)31539 [14:39:21]line ИНН: 02508201610067 [14:39:21]line Контрольно-Кассовый Чек [14:39:21]line ПРОДАЖА [14:39:21]line ТРК (МРК, ГНК) : 11 [14:39:21]line Товар: 2710194210 [14:39:21]line ДТ-К-5 [14:39:21]line 13.130 * 76.20 [14:39:21]line = 1000.51 [14:39:21]line НДС 12% НСП 1% [14:39:21]line > о реализуемом товаре [14:39:21]line ОКРУГЛЕНИЕ: -0.51 [14:39:21]line ИТОГО: 1000.00 [14:39:21]line Внесено: 1000.00 [14:39:21]line СДАЧА: 0.00 [14:39:21]line НСП 1% : 8.85 [14:39:21]line НДС 12% : 106.25 [14:39:21]line Наличными: 1000.00 [14:39:21]line Безнал.: 0.00 [14:39:21]line Место: АЗС № 170 "Партнер Нефть" [14:39:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:39:21]line СНО: Общий режим [14:39:21]line Чек 258 27.10.2024 14:39 [14:39:21]line Смена: 542 ФФД: 1.0 [14:39:21]line ЗНМ: 0300000110 [14:39:21]line РНМ: 0000000000091776 [14:39:21]line Версия ККМ: 001 [14:39:21]line ФМ: 0000000000871754 [14:39:21]line ФД: 192226 [14:39:21]line ФПД: 102829375651578 [14:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143940&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192226&fm=102829375651578&tin=02508201610067®Number=0000000000091776&sum=100000 [14:39:21]written 0, free lines is 4095 [14:39:21]OFD Sender: Processing packet 192226 [packets to send 75, broken 74] [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00192226 [14:39:21]OFD Sender: To server: pG, [14:39:21]CommunicateWithHost lk.salyk.kg:30040 [14:39:21]ConnectInit lk.salyk.kg [14:39:21]Connected sock=8 [14:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E6 BE 04 01 96 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 AC 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EE 02 00 35 04 06 00 5D 85 D4 68 7E FA 25 17 FC B2 F2 9D 9B E7 [14:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 36 47 00 AA 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EE 02 00 F4 03 04 00 73 F5 1D 67 B6 04 01 00 00 31 E3 AC 07 E7 C1 93 94 [14:39:22]CommunicateWithHost err = 0 [14:39:22]CheckOFDResponse [14:39:22]1017 (14) - 77093643461234 [14:39:22]1041 (16) - 0000000000871754 [14:39:22]1040 (4) - 192226 [14:39:22]1012 (4) - 27.10.2024 08:10 [14:39:22]1206 (1) - 0 [14:39:22]OFD Sender: Remove packet 192226 [14:39:22]ProducePacketName [14:39:22]name=ofd_packets/00192226 [14:39:22]NVStorageDeleteData [14:39:22]Write to MH i2c: 01 00 00 70 8A FA [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 07 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 07 00 70 8A 00 00 00 00 00 A5 0C B2 [14:39:22]RasterBufferAndPrint [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]line [14:39:22]written 0, free lines is 3242 [14:39:22]MH_Cut [14:39:22]Write to MH i2c: D1 01 00 77 8A 01 D3 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 01 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: D1 01 00 77 8A 00 D2 [14:39:22]Write to MH i2c: 01 00 00 78 8A 02 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]OFD Sender: No OFD packet to send [14:39:23]*** Cut start [14:39:23]*** Partial cut [14:39:23]*** CUTSNS_PIN = 1 [14:39:23]*** CUTSNS_PIN = 0 [14:39:23]*** Brake cut motor [14:39:23]Read from MH i2c: 01 [14:39:23]MH_I2C_Read... [14:39:23]*** Stop cut motor [14:39:23]*** Cut end [14:39:23]Read from MH i2c: 01 07 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: 01 07 00 78 8A 00 00 00 00 00 FF 0F 17 [14:39:23]process_action close_receipt done [14:39:23]requested_data is exist [14:39:23]produce_requested_data [14:39:23]requested_item fm.sn is exist - process it [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 11 00 00 [14:39:23]Write to MH i2c: E2 08 00 79 8A 80 11 00 00 00 00 00 00 7D [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 17 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 17 00 79 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [14:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:39:23]wFMCommunicate OK [14:39:23]requested_item fd.num is exist - process it [14:39:23]SAM_PROTO_GetFieldsCounters [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 13 00 00 [14:39:23]Write to MH i2c: E2 08 00 7A 8A 80 13 00 00 00 00 00 00 80 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 62 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 62 00 7A 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [14:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:23]wFMCommunicate OK [14:39:23]SAM_PROTO_GetFieldsCounters done [14:39:23]requested_item shift.num is exist - process it [14:39:23]requested_item shift.opened is exist - process it [14:39:23]req_shift_opened [14:39:23]FM_GetShiftState [14:39:23]SAM_PROTO_GetShiftState [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 13 01 00 [14:39:23]Write to MH i2c: E2 08 00 7B 8A 80 13 01 00 00 00 00 00 82 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:24]Read from MH i2c: E2 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0E 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: E2 0E 00 7B 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C3 [14:39:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:39:24]wFMCommunicate OK [14:39:24]SAM_PROTO_GetShiftState done [14:39:24]FM_GetShiftState done [14:39:24]req_shift_opened done [14:39:24]requested_item shift.open_date is exist - process it [14:39:24]req_shift_open_date [14:39:24]req_shift_open_date done [14:39:24]produce_requested_data done [14:39:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192226,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:39:24]process_action_free close_receipt [14:39:24]json_value_free [14:39:24]json_value_free done [14:39:24]process_json_proto returns [14:39:24]Send response to host [14:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192226,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:39:24]free response buf [14:39:24]execute_script done [14:39:24]execute_script returns [14:39:24]free content buf [14:39:24]Sock 6.Close socket [14:39:24]Sock 6.Thread stoped [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:38]accept exits with 5 [14:40:38]New connection [14:40:38]New thread 3066817892 created [14:40:38]Thread 3066961252 joined [14:40:38]Waiting for new connection... [14:40:38] Sock 5.Parse request [14:40:38]Sock 5.Check first char [14:40:38]Sock 5.First char is OK [14:40:38]request: POST /json_proto HTTP/1.0 [14:40:38]Method: POST [14:40:38]URL: /json_proto [14:40:38]Method is POST - this is cgi request [14:40:38]url: /json_proto [14:40:38]query_string will be loaded in cgi processing [14:40:38]execute_cgi json_proto POST (null) [14:40:38]execute_cgi path=json_proto method=POST [14:40:38]POST find Content-Length [14:40:38]Host: 172.17.63.131:8080 [14:40:38]Content-Length: 678 [14:40:38]Content-Type: application/json [14:40:38] [14:40:38]POST finish read [14:40:38]Found Content-Length = 678 [14:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31541", "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" : 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" ] } } [14:40:38]execute_script... [14:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31541", "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" : 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" ] } } [14:40:38]POST & json_proto [14:40:38]process_json_proto [14:40:38]json parsed OK: [14:40:38]protocol is kg_v1.0 [14:40:38]action value=close_receipt [14:40:38]process_action close_receipt [14:40:38]cmd_close_receipt [14:40:38]MH_GetDate [14:40:38]Write to MH i2c: F0 00 00 7C 8A F5 [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: F0 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: F0 09 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: F0 09 00 7C 8A 00 FB 50 1E 67 22 05 6E 64 C7 [14:40:38]GetLastDocTimeStamp 1730039980 [14:40:38]current date 1730040059 [14:40:38]FM_GetShiftState [14:40:38]SAM_PROTO_GetShiftState [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 13 01 00 [14:40:38]Write to MH i2c: E2 08 00 7D 8A 80 13 01 00 00 00 00 00 84 [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 7D 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C5 [14:40:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_GetShiftState done [14:40:38]FM_GetShiftState done [14:40:38]opened in 1729989159 [14:40:38]opened+sec_in_day 1730075559 [14:40:38]quantity*price = 100050 [14:40:38]sum+1 = 100052 [14:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 259 27.10.2024 14:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192227 ФПД: 181557762858442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144059&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192227&fm=181557762858442&tin=02508201610067®Number=0000000000091776&sum=100000 [14:40:39]StoreToDocumentArchive [14:40:39]shift 542 fd 192227 [14:40:39]save to /storage/0542/doc_00192227 [14:40:39]save last doc name /storage/0542/doc_00192227 to /storage/kkm_last_doc_name [14:40:39]save OK [14:40:39]Clear old archive folders... [14:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:39]tlvbuf is 01CAA600 [14:40:39]SAM_PROTO_ClearQueue [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 09 00 00 [14:40:39]Write to MH i2c: E2 08 00 8A 8A 80 09 00 00 00 00 00 00 86 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 8A 8A 00 90 00 88 [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]SAM_PROTO_ClearQueue done [14:40:39]KKMCreateOFDPacket [14:40:39]OFDProtocolAddRootSTLVToBuf [14:40:39]FM_MakeSignedData [14:40:39]FM_MakeSignedData [14:40:39]SAM_PROTO_SignData [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 01 02 [14:40:39]Write to MH i2c: E2 08 00 8B 8A 80 0D 01 02 00 00 00 00 8E [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 8B 8A 00 90 00 89 [14:40:40]RAPDU: 90 00 [14:40:40]wFMCommunicate OK [14:40:40]wFMCommunicate request_size=255 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 03 01 00 00 F4 03 04 00 FB 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EE 02 00 35 04 06 00 A5 20 35 F6 [14:40:40]Write to MH i2c: E2 02 01 8C 8A 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 03 01 00 00 F4 03 04 00 FB 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EE 02 00 35 04 06 00 A5 20 35 F6 00 00 CF [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 8C 8A 00 90 00 8A [14:40:40]RAPDU: 90 00 [14:40:40]wFMCommunicate OK [14:40:40]wFMCommunicate request_size=7 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 0D 02 02 02 1D CA [14:40:40]Write to MH i2c: E2 0A 00 8D 8A 80 0D 02 02 02 00 1D CA 00 00 7C [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 03 00 8D 8A 00 90 00 8B [14:40:40]RAPDU: 90 00 [14:40:40]wFMCommunicate OK [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 0D 03 02 [14:40:40]Write to MH i2c: E2 08 00 8E 8A 80 0D 03 02 00 00 00 00 93 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0B 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0B 00 8E 8A 00 81 66 9B 6D 73 64 A4 F2 90 00 F0 [14:40:40]RAPDU: 81 66 9B 6D 73 64 A4 F2 90 00 [14:40:40]wFMCommunicate OK [14:40:40]SAM_PROTO_SignData done [14:40:40]FM_MakeSignedData done [14:40:40]CreateOFDProtocolMessage [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 11 00 00 [14:40:40]Write to MH i2c: E2 08 00 8F 8A 80 11 00 00 00 00 00 00 93 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 17 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 17 00 8F 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [14:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:40]wFMCommunicate OK [14:40:40]CreateOFDProtocolMessage done [14:40:40]OFDSenderStorePacket 192227 [14:40:40]StoreOFDPacket docnum=192227 [14:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EF 9A 04 01 02 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 FB 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EE 02 00 35 04 06 00 A5 20 35 F6 1D CA 81 66 9B 6D 73 64 A4 F2 [14:40:40]CheckFolder [14:40:40]dirname=/storage/ofd_packets [14:40:40]CheckFolder done [14:40:40]ProducePacketName [14:40:40]name=ofd_packets/00192227 [14:40:40]NVStorageSaveData ofd_packets/00192227 [14:40:40]File name is /storage/ofd_packets/00192227 [14:40:40]Write 298 bytes [14:40:40]NVStorageSaveData done [14:40:40]OFDSenderStorePacket done [14:40:40]KKMCreateOFDPacket done [14:40:40]NVStorageSaveData kkm_last_timestamp [14:40:40]File name is /storage/kkm_last_timestamp [14:40:40]Write 4 bytes [14:40:40]NVStorageSaveData done [14:40:40]ExternCall_PrintAddStr [14:40:40]wPrintStart [14:40:40]Write to MH i2c: 01 00 00 90 8A 1A [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 07 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 07 00 90 8A 00 00 00 00 00 FF 0F 2F [14:40:40]RasterBufferAndPrint [14:40:40]line Счет N : (1)31541 [14:40:40]line ИНН: 02508201610067 [14:40:40]line Контрольно-Кассовый Чек [14:40:40]line ПРОДАЖА [14:40:40]line ТРК (МРК, ГНК) : 11 [14:40:40]line Товар: 2710194210 [14:40:40]line ДТ-К-5 [14:40:40]line 13.130 * 76.20 [14:40:40]line = 1000.51 [14:40:40]line НДС 12% НСП 1% [14:40:40]line > о реализуемом товаре [14:40:40]line ОКРУГЛЕНИЕ: -0.51 [14:40:40]line ИТОГО: 1000.00 [14:40:40]line Внесено: 1000.00 [14:40:40]line СДАЧА: 0.00 [14:40:40]line НСП 1% : 8.85 [14:40:40]line НДС 12% : 106.25 [14:40:40]line Наличными: 1000.00 [14:40:40]line Безнал.: 0.00 [14:40:40]line Место: АЗС № 170 "Партнер Нефть" [14:40:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:40:40]line СНО: Общий режим [14:40:40]line Чек 259 27.10.2024 14:40 [14:40:40]line Смена: 542 ФФД: 1.0 [14:40:40]line ЗНМ: 0300000110 [14:40:40]line РНМ: 0000000000091776 [14:40:40]line Версия ККМ: 001 [14:40:40]line ФМ: 0000000000871754 [14:40:40]line ФД: 192227 [14:40:40]line ФПД: 181557762858442 [14:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144059&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192227&fm=181557762858442&tin=02508201610067®Number=0000000000091776&sum=100000 [14:40:40]written 0, free lines is 4095 [14:40:40]OFD Sender: Processing packet 192227 [packets to send 75, broken 74] [14:40:40]ProducePacketName [14:40:40]name=ofd_packets/00192227 [14:40:40]OFD Sender: To server: pG, [14:40:40]CommunicateWithHost lk.salyk.kg:30040 [14:40:40]ConnectInit lk.salyk.kg [14:40:40]Connected sock=8 [14:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EF 9A 04 01 02 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 FB 50 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EE 02 00 35 04 06 00 A5 20 35 F6 1D CA 81 66 9B 6D 73 64 A4 F2 [14:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 29 60 47 00 6A D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EE 02 00 F4 03 04 00 C2 F5 1D 67 B6 04 01 00 00 72 F7 A6 11 62 F9 C1 EF [14:40:41]CommunicateWithHost err = 0 [14:40:41]CheckOFDResponse [14:40:41]1017 (14) - 77093643461234 [14:40:41]1041 (16) - 0000000000871754 [14:40:41]1040 (4) - 192227 [14:40:41]1012 (4) - 27.10.2024 08:11 [14:40:41]1206 (1) - 0 [14:40:41]OFD Sender: Remove packet 192227 [14:40:41]ProducePacketName [14:40:41]name=ofd_packets/00192227 [14:40:41]NVStorageDeleteData [14:40:41]Write to MH i2c: 01 00 00 BB 8A 45 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 07 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 07 00 BB 8A 00 00 00 00 00 A3 0C FB [14:40:41]RasterBufferAndPrint [14:40:41]line [14:40:41]line [14:40:41]line [14:40:41]line [14:40:41]line [14:40:41]written 0, free lines is 3239 [14:40:41]MH_Cut [14:40:41]Write to MH i2c: D1 01 00 C2 8A 01 1E [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: D1 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: D1 01 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: D1 01 00 C2 8A 00 1D [14:40:41]Write to MH i2c: 01 00 00 C3 8A 4D [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]OFD Sender: No OFD packet to send [14:40:42]*** Cut start [14:40:42]*** Partial cut [14:40:42]*** CUTSNS_PIN = 1 [14:40:42]*** CUTSNS_PIN = 0 [14:40:42]*** Brake cut motor [14:40:42]Read from MH i2c: 01 [14:40:42]MH_I2C_Read... [14:40:42]*** Stop cut motor [14:40:42]*** Cut end [14:40:42]Read from MH i2c: 01 07 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 C3 8A 00 00 00 00 00 FF 0F 62 [14:40:42]process_action close_receipt done [14:40:42]requested_data is exist [14:40:42]produce_requested_data [14:40:42]requested_item fm.sn is exist - process it [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 11 00 00 [14:40:42]Write to MH i2c: E2 08 00 C4 8A 80 11 00 00 00 00 00 00 C8 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 17 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 17 00 C4 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [14:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:42]wFMCommunicate OK [14:40:42]requested_item fd.num is exist - process it [14:40:42]SAM_PROTO_GetFieldsCounters [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 13 00 00 [14:40:42]Write to MH i2c: E2 08 00 C5 8A 80 13 00 00 00 00 00 00 CB [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 62 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 62 00 C5 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [14: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_GetFieldsCounters done [14:40:42]requested_item shift.num is exist - process it [14:40:42]requested_item shift.opened is exist - process it [14:40:42]req_shift_opened [14:40:42]FM_GetShiftState [14:40:42]SAM_PROTO_GetShiftState [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 13 01 00 [14:40:42]Write to MH i2c: E2 08 00 C6 8A 80 13 01 00 00 00 00 00 CD [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 C6 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0E [14:40:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_GetShiftState done [14:40:42]FM_GetShiftState done [14:40:42]req_shift_opened done [14:40:42]requested_item shift.open_date is exist - process it [14:40:42]req_shift_open_date [14:40:42]req_shift_open_date done [14:40:42]produce_requested_data done [14:40:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192227,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:40:42]process_action_free close_receipt [14:40:42]json_value_free [14:40:42]json_value_free done [14:40:42]process_json_proto returns [14:40:42]Send response to host [14:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192227,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:40:42]free response buf [14:40:42]execute_script done [14:40:42]execute_script returns [14:40:42]free content buf [14:40:43]Sock 5.Close socket [14:40:43]Sock 5.Thread stoped [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:33]accept exits with 6 [14:41:33]New connection [14:41:33]New thread 3066961252 created [14:41:33]Thread 3066817892 joined [14:41:33]Waiting for new connection... [14:41:33] Sock 6.Parse request [14:41:33]Sock 6.Check first char [14:41:33]Sock 6.First char is OK [14:41:33]request: POST /json_proto HTTP/1.0 [14:41:33]Method: POST [14:41:33]URL: /json_proto [14:41:33]Method is POST - this is cgi request [14:41:33]url: /json_proto [14:41:33]query_string will be loaded in cgi processing [14:41:33]execute_cgi json_proto POST (null) [14:41:33]execute_cgi path=json_proto method=POST [14:41:33]POST find Content-Length [14:41:33]Host: 172.17.63.131:8080 [14:41:33]Content-Length: 673 [14:41:33]Content-Type: application/json [14:41:33] [14:41:33]POST finish read [14:41:33]Found Content-Length = 673 [14:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31542", "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" : 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" ] } } [14:41:33]execute_script... [14:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31542", "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" : 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" ] } } [14:41:33]POST & json_proto [14:41:33]process_json_proto [14:41:33]json parsed OK: [14:41:33]protocol is kg_v1.0 [14:41:33]action value=close_receipt [14:41:33]process_action close_receipt [14:41:33]cmd_close_receipt [14:41:33]MH_GetDate [14:41:33]Write to MH i2c: F0 00 00 C7 8A 40 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 09 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 09 00 C7 8A 00 31 51 1E 67 22 05 6E 64 49 [14:41:33]GetLastDocTimeStamp 1730040059 [14:41:33]current date 1730040113 [14:41:33]FM_GetShiftState [14:41:33]SAM_PROTO_GetShiftState [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 13 01 00 [14:41:33]Write to MH i2c: E2 08 00 C8 8A 80 13 01 00 00 00 00 00 CF [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 C8 8A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 10 [14:41:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_GetShiftState done [14:41:33]FM_GetShiftState done [14:41:33]opened in 1729989159 [14:41:33]opened+sec_in_day 1730075559 [14:41:33]quantity*price = 60045 [14:41:33]sum+1 = 60047 [14:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 260 27.10.2024 14:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192228 ФПД: 181384277467522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192228&fm=181384277467522&tin=02508201610067®Number=0000000000091776&sum=60000 [14:41:34]StoreToDocumentArchive [14:41:34]shift 542 fd 192228 [14:41:34]save to /storage/0542/doc_00192228 [14:41:34]save last doc name /storage/0542/doc_00192228 to /storage/kkm_last_doc_name [14:41:34]save OK [14:41:34]Clear old archive folders... [14:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:34]tlvbuf is 01CAA830 [14:41:34]SAM_PROTO_ClearQueue [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 09 00 00 [14:41:34]Write to MH i2c: E2 08 00 D5 8A 80 09 00 00 00 00 00 00 D1 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 D5 8A 00 90 00 D3 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_ClearQueue done [14:41:34]KKMCreateOFDPacket [14:41:34]OFDProtocolAddRootSTLVToBuf [14:41:34]FM_MakeSignedData [14:41:34]FM_MakeSignedData [14:41:34]SAM_PROTO_SignData [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 01 02 [14:41:34]Write to MH i2c: E2 08 00 D6 8A 80 0D 01 02 00 00 00 00 D9 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 D6 8A 00 90 00 D4 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=255 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 04 01 00 00 F4 03 04 00 31 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EE 02 00 35 04 06 00 A4 F7 D1 6D [14:41:34]Write to MH i2c: E2 02 01 D7 8A 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 04 01 00 00 F4 03 04 00 31 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EE 02 00 35 04 06 00 A4 F7 D1 6D 00 00 FD [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 D7 8A 00 90 00 D5 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=7 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 02 02 02 21 82 [14:41:34]Write to MH i2c: E2 0A 00 D8 8A 80 0D 02 02 02 00 21 82 00 00 83 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 D8 8A 00 90 00 D6 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 03 02 [14:41:34]Write to MH i2c: E2 08 00 D9 8A 80 0D 03 02 00 00 00 00 DE [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0B 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0B 00 D9 8A 00 92 6C F0 F5 79 EA A5 80 90 00 4A [14:41:34]RAPDU: 92 6C F0 F5 79 EA A5 80 90 00 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_SignData done [14:41:34]FM_MakeSignedData done [14:41:34]CreateOFDProtocolMessage [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 11 00 00 [14:41:34]Write to MH i2c: E2 08 00 DA 8A 80 11 00 00 00 00 00 00 DE [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 DA 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [14:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:34]wFMCommunicate OK [14:41:34]CreateOFDProtocolMessage done [14:41:34]OFDSenderStorePacket 192228 [14:41:34]StoreOFDPacket docnum=192228 [14:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 1C 04 01 21 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 04 01 00 00 F4 03 04 00 31 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EE 02 00 35 04 06 00 A4 F7 D1 6D 21 82 92 6C F0 F5 79 EA A5 80 [14:41:34]CheckFolder [14:41:34]dirname=/storage/ofd_packets [14:41:34]CheckFolder done [14:41:34]ProducePacketName [14:41:34]name=ofd_packets/00192228 [14:41:34]NVStorageSaveData ofd_packets/00192228 [14:41:34]File name is /storage/ofd_packets/00192228 [14:41:34]Write 298 bytes [14:41:34]NVStorageSaveData done [14:41:34]OFDSenderStorePacket done [14:41:34]KKMCreateOFDPacket done [14:41:34]NVStorageSaveData kkm_last_timestamp [14:41:34]File name is /storage/kkm_last_timestamp [14:41:34]Write 4 bytes [14:41:34]NVStorageSaveData done [14:41:34]ExternCall_PrintAddStr [14:41:34]wPrintStart [14:41:34]Write to MH i2c: 01 00 00 DB 8A 65 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 07 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 07 00 DB 8A 00 00 00 00 00 FF 0F 7A [14:41:34]RasterBufferAndPrint [14:41:34]line Счет N : (1)31542 [14:41:34]line ИНН: 02508201610067 [14:41:34]line Контрольно-Кассовый Чек [14:41:34]line ПРОДАЖА [14:41:34]line ТРК (МРК, ГНК) : 11 [14:41:34]line Товар: 2710194210 [14:41:34]line ДТ-К-5 [14:41:34]line 7.880 * 76.20 [14:41:34]line = 600.46 [14:41:34]line НДС 12% НСП 1% [14:41:34]line > о реализуемом товаре [14:41:34]line ОКРУГЛЕНИЕ: -0.46 [14:41:34]line ИТОГО: 600.00 [14:41:34]line Внесено: 600.00 [14:41:34]line СДАЧА: 0.00 [14:41:34]line НСП 1% : 5.31 [14:41:34]line НДС 12% : 63.77 [14:41:34]line Наличными: 600.00 [14:41:34]line Безнал.: 0.00 [14:41:34]line Место: АЗС № 170 "Партнер Нефть" [14:41:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:34]line СНО: Общий режим [14:41:34]line Чек 260 27.10.2024 14:41 [14:41:34]line Смена: 542 ФФД: 1.0 [14:41:34]line ЗНМ: 0300000110 [14:41:34]line РНМ: 0000000000091776 [14:41:34]line Версия ККМ: 001 [14:41:34]line ФМ: 0000000000871754 [14:41:34]line ФД: 192228 [14:41:34]line ФПД: 181384277467522 [14:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192228&fm=181384277467522&tin=02508201610067®Number=0000000000091776&sum=60000 [14:41:35]OFD Sender: Processing packet 192228 [packets to send 75, broken 74] [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00192228 [14:41:35]OFD Sender: To server: pG, [14:41:35]CommunicateWithHost lk.salyk.kg:30040 [14:41:35]ConnectInit lk.salyk.kg [14:41:35]written 0, free lines is 4095 [14:41:35]Connected sock=8 [14:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 1C 04 01 21 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 04 01 00 00 F4 03 04 00 31 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EE 02 00 35 04 06 00 A4 F7 D1 6D 21 82 92 6C F0 F5 79 EA A5 80 [14:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 47 47 00 4E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EE 02 00 F4 03 04 00 F9 F5 1D 67 B6 04 01 00 00 3D 2E 51 7A 22 98 33 16 [14:41:35]CommunicateWithHost err = 0 [14:41:35]CheckOFDResponse [14:41:35]1017 (14) - 77093643461234 [14:41:35]1041 (16) - 0000000000871754 [14:41:35]1040 (4) - 192228 [14:41:35]1012 (4) - 27.10.2024 08:12 [14:41:35]1206 (1) - 0 [14:41:35]OFD Sender: Remove packet 192228 [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00192228 [14:41:35]NVStorageDeleteData [14:41:35]Write to MH i2c: 01 00 00 06 8B 91 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 07 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 07 00 06 8B 00 00 00 00 00 A9 0C 4D [14:41:35]RasterBufferAndPrint [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]written 0, free lines is 3246 [14:41:35]MH_Cut [14:41:35]Write to MH i2c: D1 01 00 0D 8B 01 6A [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 01 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 01 00 0D 8B 00 69 [14:41:35]Write to MH i2c: 01 00 00 0E 8B 99 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:36]OFD Sender: No OFD packet to send [14:41:36]*** Cut start [14:41:36]*** Partial cut [14:41:36]*** CUTSNS_PIN = 1 [14:41:36]*** CUTSNS_PIN = 0 [14:41:36]*** Brake cut motor [14:41:37]Read from MH i2c: 01 [14:41:37]MH_I2C_Read... [14:41:37]*** Stop cut motor [14:41:37]*** Cut end [14:41:37]Read from MH i2c: 01 07 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 07 00 0E 8B 00 00 00 00 00 FF 0F AE [14:41:37]process_action close_receipt done [14:41:37]requested_data is exist [14:41:37]produce_requested_data [14:41:37]requested_item fm.sn is exist - process it [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 11 00 00 [14:41:37]Write to MH i2c: E2 08 00 0F 8B 80 11 00 00 00 00 00 00 14 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 0F 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [14:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:37]wFMCommunicate OK [14:41:37]requested_item fd.num is exist - process it [14:41:37]SAM_PROTO_GetFieldsCounters [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 13 00 00 [14:41:37]Write to MH i2c: E2 08 00 10 8B 80 13 00 00 00 00 00 00 17 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 62 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 62 00 10 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [14:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_GetFieldsCounters done [14:41:37]requested_item shift.num is exist - process it [14:41:37]requested_item shift.opened is exist - process it [14:41:37]req_shift_opened [14:41:37]FM_GetShiftState [14:41:37]SAM_PROTO_GetShiftState [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 13 01 00 [14:41:37]Write to MH i2c: E2 08 00 11 8B 80 13 01 00 00 00 00 00 19 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 11 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5A [14:41:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_GetShiftState done [14:41:37]FM_GetShiftState done [14:41:37]req_shift_opened done [14:41:37]requested_item shift.open_date is exist - process it [14:41:37]req_shift_open_date [14:41:37]req_shift_open_date done [14:41:37]produce_requested_data done [14:41:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192228,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:41:37]process_action_free close_receipt [14:41:37]json_value_free [14:41:37]json_value_free done [14:41:37]process_json_proto returns [14:41:37]Send response to host [14:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192228,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:41:37]free response buf [14:41:37]execute_script done [14:41:37]execute_script returns [14:41:37]free content buf [14:41:37]Sock 6.Close socket [14:41:37]Sock 6.Thread stoped [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:54]accept exits with 5 [14:43:54]New connection [14:43:54]New thread 3066817892 created [14:43:54]Thread 3066961252 joined [14:43:54]Waiting for new connection... [14:43:54] Sock 5.Parse request [14:43:54]Sock 5.Check first char [14:43:54]Sock 5.First char is OK [14:43:54]request: POST /json_proto HTTP/1.0 [14:43:54]Method: POST [14:43:54]URL: /json_proto [14:43:54]Method is POST - this is cgi request [14:43:54]url: /json_proto [14:43:54]query_string will be loaded in cgi processing [14:43:54]execute_cgi json_proto POST (null) [14:43:54]execute_cgi path=json_proto method=POST [14:43:54]POST find Content-Length [14:43:54]Host: 172.17.63.131:8080 [14:43:54]Content-Length: 681 [14:43:54]Content-Type: application/json [14:43:54] [14:43:54]POST finish read [14:43:54]Found Content-Length = 681 [14:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:54]execute_script... [14:43: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)31544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:54]POST & json_proto [14:43:54]process_json_proto [14:43:54]json parsed OK: [14:43:54]protocol is kg_v1.0 [14:43:54]action value=close_receipt [14:43:54]process_action close_receipt [14:43:54]cmd_close_receipt [14:43:54]MH_GetDate [14:43:54]Write to MH i2c: F0 00 00 12 8B 8C [14:43:54]Write i2c OK [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 09 00 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 09 00 12 8B 00 BF 51 1E 67 22 05 6E 64 23 [14:43:54]GetLastDocTimeStamp 1730040113 [14:43:54]current date 1730040255 [14:43:54]FM_GetShiftState [14:43:54]SAM_PROTO_GetShiftState [14:43:54]wFMCommunicate request_size=4 [14:43:54]MH_SAM_APDU [14:43:54]CAPDU: 80 13 01 00 [14:43:54]Write to MH i2c: E2 08 00 13 8B 80 13 01 00 00 00 00 00 1B [14:43:54]Write i2c OK [14:43:54]MH_I2C_Read... [14:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:54]Read from MH i2c: E2 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: E2 0E 00 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: E2 0E 00 13 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5C [14:43:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:43:54]wFMCommunicate OK [14:43:54]SAM_PROTO_GetShiftState done [14:43:54]FM_GetShiftState done [14:43:54]opened in 1729989159 [14:43:54]opened+sec_in_day 1730075559 [14:43:54]quantity*price = 150056 [14:43:54]sum+1 = 150058 [14:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 261 27.10.2024 14:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192229 ФПД: 208923927663697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192229&fm=208923927663697&tin=02508201610067®Number=0000000000091776&sum=150000 [14:43:55]StoreToDocumentArchive [14:43:55]shift 542 fd 192229 [14:43:55]save to /storage/0542/doc_00192229 [14:43:55]save last doc name /storage/0542/doc_00192229 to /storage/kkm_last_doc_name [14:43:55]save OK [14:43:55]Clear old archive folders... [14:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:55]tlvbuf is 016BBF70 [14:43:55]SAM_PROTO_ClearQueue [14:43:55]wFMCommunicate request_size=4 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 09 00 00 [14:43:55]Write to MH i2c: E2 08 00 20 8B 80 09 00 00 00 00 00 00 1D [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:55]Read from MH i2c: E2 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 20 8B 00 90 00 1F [14:43:55]RAPDU: 90 00 [14:43:55]wFMCommunicate OK [14:43:55]SAM_PROTO_ClearQueue done [14:43:55]KKMCreateOFDPacket [14:43:55]OFDProtocolAddRootSTLVToBuf [14:43:55]FM_MakeSignedData [14:43:55]FM_MakeSignedData [14:43:55]SAM_PROTO_SignData [14:43:55]wFMCommunicate request_size=4 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 0D 01 02 [14:43:55]Write to MH i2c: E2 08 00 21 8B 80 0D 01 02 00 00 00 00 25 [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:55]Read from MH i2c: E2 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 21 8B 00 90 00 20 [14:43:55]RAPDU: 90 00 [14:43:55]wFMCommunicate OK [14:43:55]wFMCommunicate request_size=255 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 BF 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EE 02 00 35 04 06 00 BE [14:43:55]Write to MH i2c: E2 02 01 22 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 BF 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EE 02 00 35 04 06 00 BE 00 00 50 [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:56]OFD Sender: No OFD packet to send [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:56]Read from MH i2c: E2 03 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 22 8B 00 90 00 21 [14:43:56]RAPDU: 90 00 [14:43:56]wFMCommunicate OK [14:43:56]wFMCommunicate request_size=10 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 0D 02 02 05 03 E4 7E 54 51 [14:43:56]Write to MH i2c: E2 0D 00 23 8B 80 0D 02 02 05 00 03 E4 7E 54 51 00 00 3C [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:56]Read from MH i2c: E2 03 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 23 8B 00 90 00 22 [14:43:56]RAPDU: 90 00 [14:43:56]wFMCommunicate OK [14:43:56]wFMCommunicate request_size=4 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 0D 03 02 [14:43:56]Write to MH i2c: E2 08 00 24 8B 80 0D 03 02 00 00 00 00 2A [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 0B 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 0B 00 24 8B 00 34 40 92 8C 2A C4 3F 8E 90 00 78 [14:43:56]RAPDU: 34 40 92 8C 2A C4 3F 8E 90 00 [14:43:56]wFMCommunicate OK [14:43:56]SAM_PROTO_SignData done [14:43:56]FM_MakeSignedData done [14:43:56]CreateOFDProtocolMessage [14:43:56]wFMCommunicate request_size=4 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 11 00 00 [14:43:56]Write to MH i2c: E2 08 00 25 8B 80 11 00 00 00 00 00 00 2A [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 17 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 17 00 25 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [14:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:56]wFMCommunicate OK [14:43:56]CreateOFDProtocolMessage done [14:43:56]OFDSenderStorePacket 192229 [14:43:56]StoreOFDPacket docnum=192229 [14:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 85 07 01 DE 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 BF 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EE 02 00 35 04 06 00 BE 03 E4 7E 54 51 34 40 92 8C 2A C4 3F 8E [14:43:56]CheckFolder [14:43:56]dirname=/storage/ofd_packets [14:43:56]CheckFolder done [14:43:56]ProducePacketName [14:43:56]name=ofd_packets/00192229 [14:43:56]NVStorageSaveData ofd_packets/00192229 [14:43:56]File name is /storage/ofd_packets/00192229 [14:43:56]Write 301 bytes [14:43:56]NVStorageSaveData done [14:43:56]OFDSenderStorePacket done [14:43:56]KKMCreateOFDPacket done [14:43:56]NVStorageSaveData kkm_last_timestamp [14:43:56]File name is /storage/kkm_last_timestamp [14:43:56]Write 4 bytes [14:43:56]NVStorageSaveData done [14:43:56]ExternCall_PrintAddStr [14:43:56]wPrintStart [14:43:56]Write to MH i2c: 01 00 00 26 8B B1 [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 26 8B 00 00 00 00 00 FF 0F C6 [14:43:56]RasterBufferAndPrint [14:43:56]line Счет N : (1)31544 [14:43:56]line ИНН: 02508201610067 [14:43:56]line Контрольно-Кассовый Чек [14:43:56]line ПРОДАЖА [14:43:56]line ТРК (МРК, ГНК) : 12 [14:43:56]line Товар: 2710124130 [14:43:56]line Аи-92-К-5 [14:43:56]line 22.430 * 66.90 [14:43:56]line = 1500.57 [14:43:56]line НДС 12% НСП 1% [14:43:56]line > о реализуемом товаре [14:43:56]line ОКРУГЛЕНИЕ: -0.57 [14:43:56]line ИТОГО: 1500.00 [14:43:56]line Внесено: 1500.00 [14:43:56]line СДАЧА: 0.00 [14:43:56]line НСП 1% : 13.28 [14:43:56]line НДС 12% : 159.35 [14:43:56]line Наличными: 1500.00 [14:43:56]line Безнал.: 0.00 [14:43:56]line Место: АЗС № 170 "Партнер Нефть" [14:43:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:43:56]line СНО: Общий режим [14:43:56]line Чек 261 27.10.2024 14:44 [14:43:56]line Смена: 542 ФФД: 1.0 [14:43:56]line ЗНМ: 0300000110 [14:43:56]line РНМ: 0000000000091776 [14:43:56]line Версия ККМ: 001 [14:43:56]line ФМ: 0000000000871754 [14:43:56]line ФД: 192229 [14:43:56]line ФПД: 208923927663697 [14:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192229&fm=208923927663697&tin=02508201610067®Number=0000000000091776&sum=150000 [14:43:56]written 0, free lines is 4095 [14:43:56]OFD Sender: Processing packet 192229 [packets to send 75, broken 74] [14:43:56]ProducePacketName [14:43:56]name=ofd_packets/00192229 [14:43:56]OFD Sender: To server: pG, [14:43:56]CommunicateWithHost lk.salyk.kg:30040 [14:43:56]ConnectInit lk.salyk.kg [14:43:56]Connected sock=8 [14:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 85 07 01 DE 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 BF 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EE 02 00 35 04 06 00 BE 03 E4 7E 54 51 34 40 92 8C 2A C4 3F 8E [14:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 24 47 00 3C 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EE 02 00 F4 03 04 00 86 F6 1D 67 B6 04 01 00 00 98 2F 5D 76 AA 59 54 F5 [14:43:56]CommunicateWithHost err = 0 [14:43:56]CheckOFDResponse [14:43:56]1017 (14) - 77093643461234 [14:43:56]1041 (16) - 0000000000871754 [14:43:56]1040 (4) - 192229 [14:43:56]1012 (4) - 27.10.2024 08:15 [14:43:56]1206 (1) - 0 [14:43:56]OFD Sender: Remove packet 192229 [14:43:56]ProducePacketName [14:43:56]name=ofd_packets/00192229 [14:43:56]NVStorageDeleteData [14:43:56]Write to MH i2c: 01 00 00 51 8B DC [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 51 8B 00 00 00 00 00 B0 0C 9F [14:43:56]RasterBufferAndPrint [14:43:56]line [14:43:56]line [14:43:56]line [14:43:56]line [14:43:56]line [14:43:56]written 0, free lines is 3254 [14:43:56]MH_Cut [14:43:56]Write to MH i2c: D1 01 00 58 8B 01 B5 [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: D1 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: D1 01 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: D1 01 00 58 8B 00 B4 [14:43:56]Write to MH i2c: 01 00 00 59 8B E4 [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:57]OFD Sender: No OFD packet to send [14:43:57]*** Cut start [14:43:57]*** Partial cut [14:43:57]*** CUTSNS_PIN = 1 [14:43:57]*** CUTSNS_PIN = 0 [14:43:57]*** Brake cut motor [14:43:58]Read from MH i2c: 01 [14:43:58]MH_I2C_Read... [14:43:58]*** Stop cut motor [14:43:58]*** Cut end [14:43:58]Read from MH i2c: 01 07 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: 01 07 00 59 8B 00 00 00 00 00 FF 0F F9 [14:43:58]process_action close_receipt done [14:43:58]requested_data is exist [14:43:58]produce_requested_data [14:43:58]requested_item fm.sn is exist - process it [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 11 00 00 [14:43:58]Write to MH i2c: E2 08 00 5A 8B 80 11 00 00 00 00 00 00 5F [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 17 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 17 00 5A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [14:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:58]wFMCommunicate OK [14:43:58]requested_item fd.num is exist - process it [14:43:58]SAM_PROTO_GetFieldsCounters [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 00 00 [14:43:58]Write to MH i2c: E2 08 00 5B 8B 80 13 00 00 00 00 00 00 62 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 62 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 62 00 5B 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [14:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetFieldsCounters done [14:43:58]requested_item shift.num is exist - process it [14:43:58]requested_item shift.opened is exist - process it [14:43:58]req_shift_opened [14:43:58]FM_GetShiftState [14:43:58]SAM_PROTO_GetShiftState [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 01 00 [14:43:58]Write to MH i2c: E2 08 00 5C 8B 80 13 01 00 00 00 00 00 64 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 5C 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A5 [14:43:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetShiftState done [14:43:58]FM_GetShiftState done [14:43:58]req_shift_opened done [14:43:58]requested_item shift.open_date is exist - process it [14:43:58]req_shift_open_date [14:43:58]req_shift_open_date done [14:43:58]produce_requested_data done [14:43:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192229,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:43:58]process_action_free close_receipt [14:43:58]json_value_free [14:43:58]json_value_free done [14:43:58]process_json_proto returns [14:43:58]Send response to host [14:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192229,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:43:58]free response buf [14:43:58]execute_script done [14:43:58]execute_script returns [14:43:58]free content buf [14:43:58]Sock 5.Close socket [14:43:58]Sock 5.Thread stoped [14:44:00]accept exits with 6 [14:44:00]New connection [14:44:00]New thread 3066961252 created [14:44:00]Thread 3066817892 joined [14:44:00]Waiting for new connection... [14:44:00] Sock 6.Parse request [14:44:00]Sock 6.Check first char [14:44:00]Sock 6.First char is OK [14:44:00]request: POST /json_proto HTTP/1.0 [14:44:00]Method: POST [14:44:00]URL: /json_proto [14:44:00]Method is POST - this is cgi request [14:44:00]url: /json_proto [14:44:00]query_string will be loaded in cgi processing [14:44:00]execute_cgi json_proto POST (null) [14:44:00]execute_cgi path=json_proto method=POST [14:44:00]POST find Content-Length [14:44:00]Host: 172.17.63.131:8080 [14:44:00]Content-Length: 678 [14:44:00]Content-Type: application/json [14:44:00] [14:44:00]POST finish read [14:44:00]Found Content-Length = 678 [14:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31543", "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" : 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" ] } } [14:44:00]execute_script... [14:44: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)31543", "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" : 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" ] } } [14:44:00]POST & json_proto [14:44:00]process_json_proto [14:44:00]json parsed OK: [14:44:00]protocol is kg_v1.0 [14:44:00]action value=close_receipt [14:44:00]process_action close_receipt [14:44:00]cmd_close_receipt [14:44:00]MH_GetDate [14:44:00]Write to MH i2c: F0 00 00 5D 8B D7 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: F0 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: F0 09 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: F0 09 00 5D 8B 00 C5 51 1E 67 22 05 6E 64 74 [14:44:00]GetLastDocTimeStamp 1730040255 [14:44:00]current date 1730040261 [14:44:00]FM_GetShiftState [14:44:00]SAM_PROTO_GetShiftState [14:44:00]wFMCommunicate request_size=4 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 13 01 00 [14:44:00]Write to MH i2c: E2 08 00 5E 8B 80 13 01 00 00 00 00 00 66 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0E 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0E 00 5E 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A7 [14:44:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:44:00]wFMCommunicate OK [14:44:00]SAM_PROTO_GetShiftState done [14:44:00]FM_GetShiftState done [14:44:00]opened in 1729989159 [14:44:00]opened+sec_in_day 1730075559 [14:44:00]quantity*price = 150037 [14:44:00]sum+1 = 150039 [14:44: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 262 27.10.2024 14:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192230 ФПД: 175386666659036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192230&fm=175386666659036&tin=02508201610067®Number=0000000000091776&sum=150000 [14:44:01]StoreToDocumentArchive [14:44:01]shift 542 fd 192230 [14:44:01]save to /storage/0542/doc_00192230 [14:44:01]save last doc name /storage/0542/doc_00192230 to /storage/kkm_last_doc_name [14:44:01]save OK [14:44:01]Clear old archive folders... [14:44:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:01]tlvbuf is 01C4C710 [14:44:01]SAM_PROTO_ClearQueue [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 09 00 00 [14:44:01]Write to MH i2c: E2 08 00 6B 8B 80 09 00 00 00 00 00 00 68 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:01]Read from MH i2c: E2 03 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 03 00 6B 8B 00 90 00 6A [14:44:01]RAPDU: 90 00 [14:44:01]wFMCommunicate OK [14:44:01]SAM_PROTO_ClearQueue done [14:44:01]KKMCreateOFDPacket [14:44:01]OFDProtocolAddRootSTLVToBuf [14:44:01]FM_MakeSignedData [14:44:01]FM_MakeSignedData [14:44:01]SAM_PROTO_SignData [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 0D 01 02 [14:44:01]Write to MH i2c: E2 08 00 6C 8B 80 0D 01 02 00 00 00 00 70 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 03 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 03 00 6C 8B 00 90 00 6B [14:44:01]RAPDU: 90 00 [14:44:01]wFMCommunicate OK [14:44:01]wFMCommunicate request_size=255 [14:44:01]MH_SAM_APDU [14:44: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 06 01 00 00 F4 03 04 00 C5 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EE 02 00 35 04 06 00 9F 83 63 F6 [14:44:01]Write to MH i2c: E2 02 01 6D 8B 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 06 01 00 00 F4 03 04 00 C5 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EE 02 00 35 04 06 00 9F 83 63 F6 00 00 84 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 03 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 03 00 6D 8B 00 90 00 6C [14:44:02]RAPDU: 90 00 [14:44:02]wFMCommunicate OK [14:44:02]wFMCommunicate request_size=7 [14:44:02]MH_SAM_APDU [14:44:02]CAPDU: 80 0D 02 02 02 EC DC [14:44:02]Write to MH i2c: E2 0A 00 6E 8B 80 0D 02 02 02 00 EC DC 00 00 3F [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 03 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 03 00 6E 8B 00 90 00 6D [14:44:02]RAPDU: 90 00 [14:44:02]wFMCommunicate OK [14:44:02]wFMCommunicate request_size=4 [14:44:02]MH_SAM_APDU [14:44:02]CAPDU: 80 0D 03 02 [14:44:02]Write to MH i2c: E2 08 00 6F 8B 80 0D 03 02 00 00 00 00 75 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]OFD Sender: No OFD packet to send [14:44:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0B 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0B 00 6F 8B 00 74 D8 C0 6E 0E BD C0 D4 90 00 4F [14:44:02]RAPDU: 74 D8 C0 6E 0E BD C0 D4 90 00 [14:44:02]wFMCommunicate OK [14:44:02]SAM_PROTO_SignData done [14:44:02]FM_MakeSignedData done [14:44:02]CreateOFDProtocolMessage [14:44:02]wFMCommunicate request_size=4 [14:44:02]MH_SAM_APDU [14:44:02]CAPDU: 80 11 00 00 [14:44:02]Write to MH i2c: E2 08 00 70 8B 80 11 00 00 00 00 00 00 75 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 17 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 17 00 70 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [14:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:02]wFMCommunicate OK [14:44:02]CreateOFDProtocolMessage done [14:44:02]OFDSenderStorePacket 192230 [14:44:02]StoreOFDPacket docnum=192230 [14:44:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B2 08 04 01 5A EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 06 01 00 00 F4 03 04 00 C5 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EE 02 00 35 04 06 00 9F 83 63 F6 EC DC 74 D8 C0 6E 0E BD C0 D4 [14:44:02]CheckFolder [14:44:02]dirname=/storage/ofd_packets [14:44:02]CheckFolder done [14:44:02]ProducePacketName [14:44:02]name=ofd_packets/00192230 [14:44:02]NVStorageSaveData ofd_packets/00192230 [14:44:02]File name is /storage/ofd_packets/00192230 [14:44:02]Write 298 bytes [14:44:02]NVStorageSaveData done [14:44:02]OFDSenderStorePacket done [14:44:02]KKMCreateOFDPacket done [14:44:02]NVStorageSaveData kkm_last_timestamp [14:44:02]File name is /storage/kkm_last_timestamp [14:44:02]Write 4 bytes [14:44:02]NVStorageSaveData done [14:44:02]ExternCall_PrintAddStr [14:44:02]wPrintStart [14:44:02]Write to MH i2c: 01 00 00 71 8B FC [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 07 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 07 00 71 8B 00 00 00 00 00 FF 0F 11 [14:44:02]RasterBufferAndPrint [14:44:02]line Счет N : (1)31543 [14:44:02]line ИНН: 02508201610067 [14:44:02]line Контрольно-Кассовый Чек [14:44:02]line ПРОДАЖА [14:44:02]line ТРК (МРК, ГНК) : 11 [14:44:02]line Товар: 2710194210 [14:44:02]line ДТ-К-5 [14:44:02]line 19.690 * 76.20 [14:44:02]line = 1500.38 [14:44:02]line НДС 12% НСП 1% [14:44:02]line > о реализуемом товаре [14:44:02]line ОКРУГЛЕНИЕ: -0.38 [14:44:02]line ИТОГО: 1500.00 [14:44:02]line Внесено: 1500.00 [14:44:02]line СДАЧА: 0.00 [14:44:02]line НСП 1% : 13.28 [14:44:02]line НДС 12% : 159.33 [14:44:02]line Наличными: 1500.00 [14:44:02]line Безнал.: 0.00 [14:44:02]line Место: АЗС № 170 "Партнер Нефть" [14:44:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:44:02]line СНО: Общий режим [14:44:02]line Чек 262 27.10.2024 14:44 [14:44:02]line Смена: 542 ФФД: 1.0 [14:44:02]line ЗНМ: 0300000110 [14:44:02]line РНМ: 0000000000091776 [14:44:02]line Версия ККМ: 001 [14:44:02]line ФМ: 0000000000871754 [14:44:02]line ФД: 192230 [14:44:02]line ФПД: 175386666659036 [14:44:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192230&fm=175386666659036&tin=02508201610067®Number=0000000000091776&sum=150000 [14:44:02]written 0, free lines is 4095 [14:44:02]OFD Sender: Processing packet 192230 [packets to send 75, broken 74] [14:44:02]ProducePacketName [14:44:02]name=ofd_packets/00192230 [14:44:02]OFD Sender: To server: pG, [14:44:02]CommunicateWithHost lk.salyk.kg:30040 [14:44:02]ConnectInit lk.salyk.kg [14:44:02]Connected sock=8 [14:44:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B2 08 04 01 5A EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 06 01 00 00 F4 03 04 00 C5 51 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EE 02 00 35 04 06 00 9F 83 63 F6 EC DC 74 D8 C0 6E 0E BD C0 D4 [14:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 2E 47 00 61 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EE 02 00 F4 03 04 00 8C F6 1D 67 B6 04 01 00 00 2F 62 61 4C 9C A8 1C 9D [14:44:02]CommunicateWithHost err = 0 [14:44:02]CheckOFDResponse [14:44:02]1017 (14) - 77093643461234 [14:44:02]1041 (16) - 0000000000871754 [14:44:02]1040 (4) - 192230 [14:44:02]1012 (4) - 27.10.2024 08:15 [14:44:02]1206 (1) - 0 [14:44:02]OFD Sender: Remove packet 192230 [14:44:02]ProducePacketName [14:44:02]name=ofd_packets/00192230 [14:44:02]NVStorageDeleteData [14:44:02]Write to MH i2c: 01 00 00 9C 8B 27 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 07 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: 01 07 00 9C 8B 00 00 00 00 00 BB 0C F5 [14:44:02]RasterBufferAndPrint [14:44:02]line [14:44:02]line [14:44:02]line [14:44:02]line [14:44:02]line [14:44:02]written 0, free lines is 3271 [14:44:02]MH_Cut [14:44:02]Write to MH i2c: D1 01 00 A3 8B 01 00 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: D1 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: D1 01 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: D1 01 00 A3 8B 00 FF [14:44:02]Write to MH i2c: 01 00 00 A4 8B 2F [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:03]OFD Sender: No OFD packet to send [14:44:03]*** Cut start [14:44:03]*** Partial cut [14:44:03]*** CUTSNS_PIN = 1 [14:44:03]*** CUTSNS_PIN = 0 [14:44:04]*** Brake cut motor [14:44:04]Read from MH i2c: 01 [14:44:04]MH_I2C_Read... [14:44:04]*** Stop cut motor [14:44:04]*** Cut end [14:44:04]Read from MH i2c: 01 07 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: 01 07 00 A4 8B 00 00 00 00 00 FF 0F 44 [14:44:04]process_action close_receipt done [14:44:04]requested_data is exist [14:44:04]produce_requested_data [14:44:04]requested_item fm.sn is exist - process it [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 11 00 00 [14:44:04]Write to MH i2c: E2 08 00 A5 8B 80 11 00 00 00 00 00 00 AA [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 17 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 17 00 A5 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [14:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:04]wFMCommunicate OK [14:44:04]requested_item fd.num is exist - process it [14:44:04]SAM_PROTO_GetFieldsCounters [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 13 00 00 [14:44:04]Write to MH i2c: E2 08 00 A6 8B 80 13 00 00 00 00 00 00 AD [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 62 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 62 00 A6 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:44:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_GetFieldsCounters done [14:44:04]requested_item shift.num is exist - process it [14:44:04]requested_item shift.opened is exist - process it [14:44:04]req_shift_opened [14:44:04]FM_GetShiftState [14:44:04]SAM_PROTO_GetShiftState [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 13 01 00 [14:44:04]Write to MH i2c: E2 08 00 A7 8B 80 13 01 00 00 00 00 00 AF [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0E 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0E 00 A7 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F0 [14:44:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_GetShiftState done [14:44:04]FM_GetShiftState done [14:44:04]req_shift_opened done [14:44:04]requested_item shift.open_date is exist - process it [14:44:04]req_shift_open_date [14:44:04]req_shift_open_date done [14:44:04]produce_requested_data done [14:44:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192230,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:44:04]process_action_free close_receipt [14:44:04]json_value_free [14:44:04]json_value_free done [14:44:04]process_json_proto returns [14:44:04]Send response to host [14:44:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192230,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:44:04]free response buf [14:44:04]execute_script done [14:44:04]execute_script returns [14:44:04]free content buf [14:44:04]Sock 6.Close socket [14:44:04]Sock 6.Thread stoped [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:14]accept exits with 5 [14:45:14]New connection [14:45:14]New thread 3066817892 created [14:45:14]Thread 3066961252 joined [14:45:14]Waiting for new connection... [14:45:14] Sock 5.Parse request [14:45:14]Sock 5.Check first char [14:45:14]Sock 5.First char is OK [14:45:14]request: POST /json_proto HTTP/1.0 [14:45:14]Method: POST [14:45:14]URL: /json_proto [14:45:14]Method is POST - this is cgi request [14:45:14]url: /json_proto [14:45:14]query_string will be loaded in cgi processing [14:45:14]execute_cgi json_proto POST (null) [14:45:14]execute_cgi path=json_proto method=POST [14:45:14]POST find Content-Length [14:45:14]Host: 172.17.63.131:8080 [14:45:14]Content-Length: 676 [14:45:14]Content-Type: application/json [14:45:14] [14:45:14]POST finish read [14:45:14]Found Content-Length = 676 [14:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:14]execute_script... [14:45: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)31545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:14]POST & json_proto [14:45:14]process_json_proto [14:45:14]json parsed OK: [14:45:14]protocol is kg_v1.0 [14:45:14]action value=close_receipt [14:45:14]process_action close_receipt [14:45:14]cmd_close_receipt [14:45:14]MH_GetDate [14:45:14]Write to MH i2c: F0 00 00 A8 8B 22 [14:45:14]Write i2c OK [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 09 00 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 09 00 A8 8B 00 0E 52 1E 67 22 05 6E 64 09 [14:45:14]GetLastDocTimeStamp 1730040261 [14:45:14]current date 1730040334 [14:45:14]FM_GetShiftState [14:45:14]SAM_PROTO_GetShiftState [14:45:14]wFMCommunicate request_size=4 [14:45:14]MH_SAM_APDU [14:45:14]CAPDU: 80 13 01 00 [14:45:14]Write to MH i2c: E2 08 00 A9 8B 80 13 01 00 00 00 00 00 B1 [14:45:14]Write i2c OK [14:45:14]MH_I2C_Read... [14:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:14]Read from MH i2c: E2 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: E2 0E 00 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: E2 0E 00 A9 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [14:45:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:45:14]wFMCommunicate OK [14:45:14]SAM_PROTO_GetShiftState done [14:45:14]FM_GetShiftState done [14:45:14]opened in 1729989159 [14:45:14]opened+sec_in_day 1730075559 [14:45:14]quantity*price = 50041 [14:45:14]sum+1 = 50042 [14:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 263 27.10.2024 14:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192231 ФПД: 206041616263830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192231&fm=206041616263830&tin=02508201610067®Number=0000000000091776&sum=50000 [14:45:15]StoreToDocumentArchive [14:45:15]shift 542 fd 192231 [14:45:15]save to /storage/0542/doc_00192231 [14:45:15]save last doc name /storage/0542/doc_00192231 to /storage/kkm_last_doc_name [14:45:15]save OK [14:45:15]Clear old archive folders... [14:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:15]tlvbuf is 0187D890 [14:45:15]SAM_PROTO_ClearQueue [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 09 00 00 [14:45:15]Write to MH i2c: E2 08 00 B6 8B 80 09 00 00 00 00 00 00 B3 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 B6 8B 00 90 00 B5 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_ClearQueue done [14:45:15]KKMCreateOFDPacket [14:45:15]OFDProtocolAddRootSTLVToBuf [14:45:15]FM_MakeSignedData [14:45:15]FM_MakeSignedData [14:45:15]SAM_PROTO_SignData [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 01 02 [14:45:15]Write to MH i2c: E2 08 00 B7 8B 80 0D 01 02 00 00 00 00 BB [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 B7 8B 00 90 00 B6 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=255 [14:45:15]MH_SAM_APDU [14:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EE 02 00 35 04 06 00 BB [14:45:15]Write to MH i2c: E2 02 01 B8 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0E 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EE 02 00 35 04 06 00 BB 00 00 EE [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 B8 8B 00 90 00 B7 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=10 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 02 02 05 64 CD 58 AA 96 [14:45:15]Write to MH i2c: E2 0D 00 B9 8B 80 0D 02 02 05 00 64 CD 58 AA 96 00 00 91 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 B9 8B 00 90 00 B8 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 03 02 [14:45:15]Write to MH i2c: E2 08 00 BA 8B 80 0D 03 02 00 00 00 00 C0 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0B 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0B 00 BA 8B 00 B7 8D 18 52 67 29 DA 44 90 00 1D [14:45:15]RAPDU: B7 8D 18 52 67 29 DA 44 90 00 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_SignData done [14:45:15]FM_MakeSignedData done [14:45:15]CreateOFDProtocolMessage [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 11 00 00 [14:45:15]Write to MH i2c: E2 08 00 BB 8B 80 11 00 00 00 00 00 00 C0 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 BB 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [14:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:45:15]wFMCommunicate OK [14:45:15]CreateOFDProtocolMessage done [14:45:15]OFDSenderStorePacket 192231 [14:45:15]StoreOFDPacket docnum=192231 [14:45:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 32 07 01 35 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0E 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EE 02 00 35 04 06 00 BB 64 CD 58 AA 96 B7 8D 18 52 67 29 DA 44 [14:45:15]CheckFolder [14:45:15]dirname=/storage/ofd_packets [14:45:15]CheckFolder done [14:45:15]ProducePacketName [14:45:15]name=ofd_packets/00192231 [14:45:15]NVStorageSaveData ofd_packets/00192231 [14:45:15]File name is /storage/ofd_packets/00192231 [14:45:15]Write 301 bytes [14:45:15]NVStorageSaveData done [14:45:15]OFDSenderStorePacket done [14:45:15]KKMCreateOFDPacket done [14:45:15]NVStorageSaveData kkm_last_timestamp [14:45:15]File name is /storage/kkm_last_timestamp [14:45:15]Write 4 bytes [14:45:15]NVStorageSaveData done [14:45:15]ExternCall_PrintAddStr [14:45:15]wPrintStart [14:45:15]Write to MH i2c: 01 00 00 BC 8B 47 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 07 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 07 00 BC 8B 00 00 00 00 00 FF 0F 5C [14:45:15]RasterBufferAndPrint [14:45:15]line Счет N : (1)31545 [14:45:15]line ИНН: 02508201610067 [14:45:15]line Контрольно-Кассовый Чек [14:45:15]line ПРОДАЖА [14:45:15]line ТРК (МРК, ГНК) : 12 [14:45:15]line Товар: 2710124130 [14:45:15]line Аи-92-К-5 [14:45:15]line 7.480 * 66.90 [14:45:15]line = 500.41 [14:45:15]line НДС 12% НСП 1% [14:45:15]line > о реализуемом товаре [14:45:15]line ОКРУГЛЕНИЕ: -0.41 [14:45:15]line ИТОГО: 500.00 [14:45:15]line Внесено: 500.00 [14:45:15]line СДАЧА: 0.00 [14:45:15]line НСП 1% : 4.43 [14:45:15]line НДС 12% : 53.14 [14:45:15]line Наличными: 500.00 [14:45:15]line Безнал.: 0.00 [14:45:15]line Место: АЗС № 170 "Партнер Нефть" [14:45:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:45:15]line СНО: Общий режим [14:45:15]line Чек 263 27.10.2024 14:45 [14:45:15]line Смена: 542 ФФД: 1.0 [14:45:15]line ЗНМ: 0300000110 [14:45:15]line РНМ: 0000000000091776 [14:45:15]line Версия ККМ: 001 [14:45:15]line ФМ: 0000000000871754 [14:45:15]line ФД: 192231 [14:45:15]line ФПД: 206041616263830 [14:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192231&fm=206041616263830&tin=02508201610067®Number=0000000000091776&sum=50000 [14:45:16]OFD Sender: Processing packet 192231 [packets to send 75, broken 74] [14:45:16]ProducePacketName [14:45:16]name=ofd_packets/00192231 [14:45:16]OFD Sender: To server: pG, [14:45:16]CommunicateWithHost lk.salyk.kg:30040 [14:45:16]ConnectInit lk.salyk.kg [14:45:16]written 0, free lines is 4095 [14:45:16]Connected sock=9 [14:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 32 07 01 35 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0E 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EE 02 00 35 04 06 00 BB 64 CD 58 AA 96 B7 8D 18 52 67 29 DA 44 [14:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A F9 47 00 A8 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EE 02 00 F4 03 04 00 D6 F6 1D 67 B6 04 01 00 00 F4 BB 10 37 76 EC 06 AB [14:45:16]CommunicateWithHost err = 0 [14:45:16]CheckOFDResponse [14:45:16]1017 (14) - 77093643461234 [14:45:16]1041 (16) - 0000000000871754 [14:45:16]1040 (4) - 192231 [14:45:16]1012 (4) - 27.10.2024 08:16 [14:45:16]1206 (1) - 0 [14:45:16]OFD Sender: Remove packet 192231 [14:45:16]ProducePacketName [14:45:16]name=ofd_packets/00192231 [14:45:16]NVStorageDeleteData [14:45:16]Write to MH i2c: 01 00 00 E7 8B 72 [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 07 00 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 07 00 E7 8B 00 00 00 00 00 AB 0C 30 [14:45:16]RasterBufferAndPrint [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]written 0, free lines is 3248 [14:45:16]MH_Cut [14:45:16]Write to MH i2c: D1 01 00 EE 8B 01 4B [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 01 00 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 01 00 EE 8B 00 4A [14:45:16]Write to MH i2c: 01 00 00 EF 8B 7A [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14:45:17]OFD Sender: No OFD packet to send [14:45:17]*** Cut start [14:45:17]*** Partial cut [14:45:17]*** CUTSNS_PIN = 1 [14:45:17]*** CUTSNS_PIN = 0 [14:45:17]*** Brake cut motor [14:45:18]Read from MH i2c: 01 [14:45:18]MH_I2C_Read... [14:45:18]*** Stop cut motor [14:45:18]*** Cut end [14:45:18]Read from MH i2c: 01 07 00 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: 01 07 00 EF 8B 00 00 00 00 00 FF 0F 8F [14:45:18]process_action close_receipt done [14:45:18]requested_data is exist [14:45:18]produce_requested_data [14:45:18]requested_item fm.sn is exist - process it [14:45:18]wFMCommunicate request_size=4 [14:45:18]MH_SAM_APDU [14:45:18]CAPDU: 80 11 00 00 [14:45:18]Write to MH i2c: E2 08 00 F0 8B 80 11 00 00 00 00 00 00 F5 [14:45:18]Write i2c OK [14:45:18]MH_I2C_Read... [14:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:18]Read from MH i2c: E2 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 17 00 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 17 00 F0 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [14:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:45:18]wFMCommunicate OK [14:45:18]requested_item fd.num is exist - process it [14:45:18]SAM_PROTO_GetFieldsCounters [14:45:18]wFMCommunicate request_size=4 [14:45:18]MH_SAM_APDU [14:45:18]CAPDU: 80 13 00 00 [14:45:18]Write to MH i2c: E2 08 00 F1 8B 80 13 00 00 00 00 00 00 F8 [14:45:18]Write i2c OK [14:45:18]MH_I2C_Read... [14:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:18]Read from MH i2c: E2 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 62 00 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 62 00 F1 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [14:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:18]wFMCommunicate OK [14:45:18]SAM_PROTO_GetFieldsCounters done [14:45:18]requested_item shift.num is exist - process it [14:45:18]requested_item shift.opened is exist - process it [14:45:18]req_shift_opened [14:45:18]FM_GetShiftState [14:45:18]SAM_PROTO_GetShiftState [14:45:18]wFMCommunicate request_size=4 [14:45:18]MH_SAM_APDU [14:45:18]CAPDU: 80 13 01 00 [14:45:18]Write to MH i2c: E2 08 00 F2 8B 80 13 01 00 00 00 00 00 FA [14:45:18]Write i2c OK [14:45:18]MH_I2C_Read... [14:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:18]Read from MH i2c: E2 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 0E 00 [14:45:18]MH_I2C_Read... [14:45:18]Read from MH i2c: E2 0E 00 F2 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [14:45:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:45:18]wFMCommunicate OK [14:45:18]SAM_PROTO_GetShiftState done [14:45:18]FM_GetShiftState done [14:45:18]req_shift_opened done [14:45:18]requested_item shift.open_date is exist - process it [14:45:18]req_shift_open_date [14:45:18]req_shift_open_date done [14:45:18]produce_requested_data done [14:45:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192231,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:45:18]process_action_free close_receipt [14:45:18]json_value_free [14:45:18]json_value_free done [14:45:18]process_json_proto returns [14:45:18]Send response to host [14:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192231,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:45:18]free response buf [14:45:18]execute_script done [14:45:18]execute_script returns [14:45:18]free content buf [14:45:18]Sock 5.Close socket [14:45:18]Sock 5.Thread stoped [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:56]accept exits with 6 [14:45:56]New connection [14:45:56]New thread 3066961252 created [14:45:56]Thread 3066817892 joined [14:45:56]Waiting for new connection... [14:45:56] Sock 6.Parse request [14:45:56]Sock 6.Check first char [14:45:56]Sock 6.First char is OK [14:45:56]request: POST /json_proto HTTP/1.0 [14:45:56]Method: POST [14:45:56]URL: /json_proto [14:45:56]Method is POST - this is cgi request [14:45:56]url: /json_proto [14:45:56]query_string will be loaded in cgi processing [14:45:56]execute_cgi json_proto POST (null) [14:45:56]execute_cgi path=json_proto method=POST [14:45:56]POST find Content-Length [14:45:56]Host: 172.17.63.131:8080 [14:45:56]Content-Length: 676 [14:45:56]Content-Type: application/json [14:45:56] [14:45:56]POST finish read [14:45:56]Found Content-Length = 676 [14:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:56]execute_script... [14:45: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)31547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:56]POST & json_proto [14:45:56]process_json_proto [14:45:56]json parsed OK: [14:45:56]protocol is kg_v1.0 [14:45:56]action value=close_receipt [14:45:56]process_action close_receipt [14:45:56]cmd_close_receipt [14:45:56]MH_GetDate [14:45:56]Write to MH i2c: F0 00 00 F3 8B 6D [14:45:56]Write i2c OK [14:45:56]MH_I2C_Read... [14:45:56]Read from MH i2c: F0 [14:45:56]MH_I2C_Read... [14:45:56]Read from MH i2c: F0 09 00 [14:45:56]MH_I2C_Read... [14:45:56]Read from MH i2c: F0 09 00 F3 8B 00 38 52 1E 67 22 05 6E 64 7E [14:45:56]GetLastDocTimeStamp 1730040334 [14:45:56]current date 1730040376 [14:45:56]FM_GetShiftState [14:45:56]SAM_PROTO_GetShiftState [14:45:56]wFMCommunicate request_size=4 [14:45:56]MH_SAM_APDU [14:45:56]CAPDU: 80 13 01 00 [14:45:56]Write to MH i2c: E2 08 00 F4 8B 80 13 01 00 00 00 00 00 FC [14:45:56]Write i2c OK [14:45:56]MH_I2C_Read... [14:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:56]Read from MH i2c: E2 [14:45:56]MH_I2C_Read... [14:45:56]Read from MH i2c: E2 0E 00 [14:45:56]MH_I2C_Read... [14:45:56]Read from MH i2c: E2 0E 00 F4 8B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3D [14:45:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:45:56]wFMCommunicate OK [14:45:56]SAM_PROTO_GetShiftState done [14:45:56]FM_GetShiftState done [14:45:56]opened in 1729989159 [14:45:56]opened+sec_in_day 1730075559 [14:45:56]quantity*price = 20003 [14:45:56]sum+1 = 20004 [14:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 264 27.10.2024 14:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192232 ФПД: 12606168252793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192232&fm=12606168252793&tin=02508201610067®Number=0000000000091776&sum=20000 [14:45:57]StoreToDocumentArchive [14:45:57]shift 542 fd 192232 [14:45:57]save to /storage/0542/doc_00192232 [14:45:57]save last doc name /storage/0542/doc_00192232 to /storage/kkm_last_doc_name [14:45:57]save OK [14:45:57]Clear old archive folders... [14:45:57]OFD Sender: No OFD packet to send [14:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:57]tlvbuf is 01960CD0 [14:45:57]SAM_PROTO_ClearQueue [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 09 00 00 [14:45:57]Write to MH i2c: E2 08 00 01 8C 80 09 00 00 00 00 00 00 FF [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 01 8C 00 90 00 01 [14:45:57]RAPDU: 90 00 [14:45:57]wFMCommunicate OK [14:45:57]SAM_PROTO_ClearQueue done [14:45:57]KKMCreateOFDPacket [14:45:57]OFDProtocolAddRootSTLVToBuf [14:45:57]FM_MakeSignedData [14:45:57]FM_MakeSignedData [14:45:57]SAM_PROTO_SignData [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 0D 01 02 [14:45:57]Write to MH i2c: E2 08 00 02 8C 80 0D 01 02 00 00 00 00 07 [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 02 8C 00 90 00 02 [14:45:57]RAPDU: 90 00 [14:45:57]wFMCommunicate OK [14:45:57]wFMCommunicate request_size=255 [14:45:57]MH_SAM_APDU [14:45: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 38 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EE 02 00 35 04 06 00 0B [14:45:57]Write to MH i2c: E2 02 01 03 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 38 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EE 02 00 35 04 06 00 0B 00 00 78 [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 03 8C 00 90 00 03 [14:45:57]RAPDU: 90 00 [14:45:57]wFMCommunicate OK [14:45:57]wFMCommunicate request_size=10 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 0D 02 02 05 77 1A 2E 41 79 [14:45:57]Write to MH i2c: E2 0D 00 04 8C 80 0D 02 02 05 00 77 1A 2E 41 79 00 00 8D [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 03 00 04 8C 00 90 00 04 [14:45:57]RAPDU: 90 00 [14:45:57]wFMCommunicate OK [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 0D 03 02 [14:45:57]Write to MH i2c: E2 08 00 05 8C 80 0D 03 02 00 00 00 00 0C [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 0B 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 0B 00 05 8C 00 CB 84 36 76 33 6E 7B C6 90 00 EA [14:45:57]RAPDU: CB 84 36 76 33 6E 7B C6 90 00 [14:45:57]wFMCommunicate OK [14:45:57]SAM_PROTO_SignData done [14:45:57]FM_MakeSignedData done [14:45:57]CreateOFDProtocolMessage [14:45:57]wFMCommunicate request_size=4 [14:45:57]MH_SAM_APDU [14:45:57]CAPDU: 80 11 00 00 [14:45:57]Write to MH i2c: E2 08 00 06 8C 80 11 00 00 00 00 00 00 0C [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:57]Read from MH i2c: E2 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 17 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: E2 17 00 06 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [14:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:45:57]wFMCommunicate OK [14:45:57]CreateOFDProtocolMessage done [14:45:57]OFDSenderStorePacket 192232 [14:45:57]StoreOFDPacket docnum=192232 [14:45:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 4B 07 01 BB 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 38 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EE 02 00 35 04 06 00 0B 77 1A 2E 41 79 CB 84 36 76 33 6E 7B C6 [14:45:57]CheckFolder [14:45:57]dirname=/storage/ofd_packets [14:45:57]CheckFolder done [14:45:57]ProducePacketName [14:45:57]name=ofd_packets/00192232 [14:45:57]NVStorageSaveData ofd_packets/00192232 [14:45:57]File name is /storage/ofd_packets/00192232 [14:45:57]Write 301 bytes [14:45:57]NVStorageSaveData done [14:45:57]OFDSenderStorePacket done [14:45:57]KKMCreateOFDPacket done [14:45:57]NVStorageSaveData kkm_last_timestamp [14:45:57]File name is /storage/kkm_last_timestamp [14:45:57]Write 4 bytes [14:45:57]NVStorageSaveData done [14:45:57]ExternCall_PrintAddStr [14:45:57]wPrintStart [14:45:57]Write to MH i2c: 01 00 00 07 8C 93 [14:45:57]Write i2c OK [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: 01 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: 01 07 00 [14:45:57]MH_I2C_Read... [14:45:57]Read from MH i2c: 01 07 00 07 8C 00 00 00 00 00 FF 0F A8 [14:45:57]RasterBufferAndPrint [14:45:57]line Счет N : (1)31547 [14:45:57]line ИНН: 02508201610067 [14:45:57]line Контрольно-Кассовый Чек [14:45:57]line ПРОДАЖА [14:45:57]line ТРК (МРК, ГНК) : 12 [14:45:57]line Товар: 2710124130 [14:45:57]line Аи-92-К-5 [14:45:57]line 2.990 * 66.90 [14:45:57]line = 200.03 [14:45:57]line НДС 12% НСП 1% [14:45:57]line > о реализуемом товаре [14:45:57]line ОКРУГЛЕНИЕ: -0.03 [14:45:57]line ИТОГО: 200.00 [14:45:57]line Внесено: 200.00 [14:45:57]line СДАЧА: 0.00 [14:45:57]line НСП 1% : 1.77 [14:45:57]line НДС 12% : 21.24 [14:45:57]line Наличными: 200.00 [14:45:57]line Безнал.: 0.00 [14:45:57]line Место: АЗС № 170 "Партнер Нефть" [14:45:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:45:57]line СНО: Общий режим [14:45:57]line Чек 264 27.10.2024 14:46 [14:45:57]line Смена: 542 ФФД: 1.0 [14:45:57]line ЗНМ: 0300000110 [14:45:57]line РНМ: 0000000000091776 [14:45:57]line Версия ККМ: 001 [14:45:57]line ФМ: 0000000000871754 [14:45:57]line ФД: 192232 [14:45:57]line ФПД: 12606168252793 [14:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144616&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192232&fm=12606168252793&tin=02508201610067®Number=0000000000091776&sum=20000 [14:45:58]OFD Sender: Processing packet 192232 [packets to send 75, broken 74] [14:45:58]ProducePacketName [14:45:58]name=ofd_packets/00192232 [14:45:58]OFD Sender: To server: pG, [14:45:58]CommunicateWithHost lk.salyk.kg:30040 [14:45:58]ConnectInit lk.salyk.kg [14:45:58]written 0, free lines is 4095 [14:45:58]Connected sock=8 [14:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 4B 07 01 BB 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 38 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EE 02 00 35 04 06 00 0B 77 1A 2E 41 79 CB 84 36 76 33 6E 7B C6 [14:45:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B5 A3 47 00 42 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EE 02 00 F4 03 04 00 00 F7 1D 67 B6 04 01 00 00 53 33 34 9E 2D 87 74 55 [14:45:58]CommunicateWithHost err = 0 [14:45:58]CheckOFDResponse [14:45:58]1017 (14) - 77093643461234 [14:45:58]1041 (16) - 0000000000871754 [14:45:58]1040 (4) - 192232 [14:45:58]1012 (4) - 27.10.2024 08:17 [14:45:58]1206 (1) - 0 [14:45:58]OFD Sender: Remove packet 192232 [14:45:58]ProducePacketName [14:45:58]name=ofd_packets/00192232 [14:45:58]NVStorageDeleteData [14:45:58]Write to MH i2c: 01 00 00 32 8C BE [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: 01 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: 01 07 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: 01 07 00 32 8C 00 00 00 00 00 9E 0C 6F [14:45:58]RasterBufferAndPrint [14:45:58]line [14:45:58]line [14:45:58]line [14:45:58]line [14:45:58]line [14:45:58]written 0, free lines is 3235 [14:45:58]MH_Cut [14:45:58]Write to MH i2c: D1 01 00 39 8C 01 97 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: D1 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: D1 01 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: D1 01 00 39 8C 00 96 [14:45:58]Write to MH i2c: 01 00 00 3A 8C C6 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]OFD Sender: No OFD packet to send [14:45:59]*** Cut start [14:45:59]*** Partial cut [14:45:59]*** CUTSNS_PIN = 1 [14:45:59]*** CUTSNS_PIN = 0 [14:45:59]*** Brake cut motor [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]*** Stop cut motor [14:46:00]*** Cut end [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 3A 8C 00 00 00 00 00 FF 0F DB [14:46:00]process_action close_receipt done [14:46:00]requested_data is exist [14:46:00]produce_requested_data [14:46:00]requested_item fm.sn is exist - process it [14:46:00]wFMCommunicate request_size=4 [14:46:00]MH_SAM_APDU [14:46:00]CAPDU: 80 11 00 00 [14:46:00]Write to MH i2c: E2 08 00 3B 8C 80 11 00 00 00 00 00 00 41 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 [14:46:00]MH_I2C_Read... [14:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:00]Read from MH i2c: E2 17 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 17 00 3B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [14:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:00]wFMCommunicate OK [14:46:00]requested_item fd.num is exist - process it [14:46:00]SAM_PROTO_GetFieldsCounters [14:46:00]wFMCommunicate request_size=4 [14:46:00]MH_SAM_APDU [14:46:00]CAPDU: 80 13 00 00 [14:46:00]Write to MH i2c: E2 08 00 3C 8C 80 13 00 00 00 00 00 00 44 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:00]Read from MH i2c: E2 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 62 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 62 00 3C 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [14:46:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:00]wFMCommunicate OK [14:46:00]SAM_PROTO_GetFieldsCounters done [14:46:00]requested_item shift.num is exist - process it [14:46:00]requested_item shift.opened is exist - process it [14:46:00]req_shift_opened [14:46:00]FM_GetShiftState [14:46:00]SAM_PROTO_GetShiftState [14:46:00]wFMCommunicate request_size=4 [14:46:00]MH_SAM_APDU [14:46:00]CAPDU: 80 13 01 00 [14:46:00]Write to MH i2c: E2 08 00 3D 8C 80 13 01 00 00 00 00 00 46 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:00]Read from MH i2c: E2 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 0E 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 0E 00 3D 8C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 87 [14:46:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:46:00]wFMCommunicate OK [14:46:00]SAM_PROTO_GetShiftState done [14:46:00]FM_GetShiftState done [14:46:00]req_shift_opened done [14:46:00]requested_item shift.open_date is exist - process it [14:46:00]req_shift_open_date [14:46:00]req_shift_open_date done [14:46:00]produce_requested_data done [14:46:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192232,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:46:00]process_action_free close_receipt [14:46:00]json_value_free [14:46:00]json_value_free done [14:46:00]process_json_proto returns [14:46:00]Send response to host [14:46:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 47 8C 00 90 00 47 [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=13 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 02 00 08 F4 03 04 00 3D 52 1E 67 [14:46:01]Write to MH i2c: E2 10 00 48 8C 80 15 02 00 08 00 F4 03 04 00 3D 52 1E 67 00 00 73 [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 48 8C 00 90 00 48 [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=25 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [14:46:01]Write to MH i2c: E2 1C 00 49 8C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 BC [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 49 8C 00 90 00 49 [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 03 00 [14:46:01]Write to MH i2c: E2 08 00 4A 8C 80 15 03 00 00 00 00 00 57 [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 40 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 40 00 4A 8C 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 01 00 00 35 04 06 00 47 97 31 8C 41 EA 90 00 16 [14:46:02]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 01 00 00 35 04 06 00 47 97 31 8C 41 EA 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_ProcessDocument answer len = 59 [14:46:02]SAM_PROTO_ProcessDocument done [14:46:02]SetTLVBufToDocument [14:46:02]Processing tag 1209 (04B9) [14:46:02]Malloc new data [14:46:02]Processing tag 1041 (0411) [14:46:02]Processing tag 1040 (0410) [14:46:02]Malloc new data [14:46:02]Processing tag 1038 (040E) [14:46:02]Malloc new data [14:46:02]Processing tag 1042 (0412) [14:46:02]Malloc new data [14:46:02]Processing tag 1077 (0435) [14:46:02]Malloc new data [14:46:02]SetTLVBufToDocument err=0 [14:46:02]KKMLoadAndSignReceiptData store KKM data [14:46:02]KKMLoadAndSignReceiptData err=0 [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 11 00 00 [14:46:02]Write to MH i2c: E2 08 00 4B 8C 80 11 00 00 00 00 00 00 51 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 4B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [14:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:02]wFMCommunicate OK [14:46:02]Счет N : (1)31546 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 11.220 * 66.90 = 750.62 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 265 27.10.2024 14:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192233 ФПД: 78714696909290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192233&fm=78714696909290&tin=02508201610067®Number=0000000000091776&sum=75000 [14:46:02]StoreToDocumentArchive [14:46:02]shift 542 fd 192233 [14:46:02]save to /storage/0542/doc_00192233 [14:46:02]save last doc name /storage/0542/doc_00192233 to /storage/kkm_last_doc_name [14:46:02]save OK [14:46:02]Clear old archive folders... [14:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:02]tlvbuf is 01B4F090 [14:46:02]SAM_PROTO_ClearQueue [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 09 00 00 [14:46:02]Write to MH i2c: E2 08 00 4C 8C 80 09 00 00 00 00 00 00 4A [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4C 8C 00 90 00 4C [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_ClearQueue done [14:46:02]KKMCreateOFDPacket [14:46:02]OFDProtocolAddRootSTLVToBuf [14:46:02]FM_MakeSignedData [14:46:02]FM_MakeSignedData [14:46:02]SAM_PROTO_SignData [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 01 02 [14:46:02]Write to MH i2c: E2 08 00 4D 8C 80 0D 01 02 00 00 00 00 52 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4D 8C 00 90 00 4D [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=255 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 3D 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 35 04 06 00 47 [14:46:02]Write to MH i2c: E2 02 01 4E 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 3D 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 35 04 06 00 47 00 00 6C [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4E 8C 00 90 00 4E [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=10 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 02 02 05 97 31 8C 41 EA [14:46:02]Write to MH i2c: E2 0D 00 4F 8C 80 0D 02 02 05 00 97 31 8C 41 EA 00 00 DE [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4F 8C 00 90 00 4F [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 03 02 [14:46:02]Write to MH i2c: E2 08 00 50 8C 80 0D 03 02 00 00 00 00 57 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0B 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0B 00 50 8C 00 F2 0C 22 68 50 FC 03 B9 90 00 E8 [14:46:02]RAPDU: F2 0C 22 68 50 FC 03 B9 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_SignData done [14:46:02]FM_MakeSignedData done [14:46:02]CreateOFDProtocolMessage [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 11 00 00 [14:46:02]Write to MH i2c: E2 08 00 51 8C 80 11 00 00 00 00 00 00 57 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 51 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [14:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:02]wFMCommunicate OK [14:46:02]CreateOFDProtocolMessage done [14:46:02]OFDSenderStorePacket 192233 [14:46:02]StoreOFDPacket docnum=192233 [14:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 A9 07 01 68 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 3D 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 35 04 06 00 47 97 31 8C 41 EA F2 0C 22 68 50 FC 03 B9 [14:46:02]CheckFolder [14:46:02]dirname=/storage/ofd_packets [14:46:02]CheckFolder done [14:46:02]ProducePacketName [14:46:02]name=ofd_packets/00192233 [14:46:02]NVStorageSaveData ofd_packets/00192233 [14:46:02]File name is /storage/ofd_packets/00192233 [14:46:02]Write 301 bytes [14:46:02]NVStorageSaveData done [14:46:02]OFDSenderStorePacket done [14:46:02]KKMCreateOFDPacket done [14:46:02]NVStorageSaveData kkm_last_timestamp [14:46:02]File name is /storage/kkm_last_timestamp [14:46:02]Write 4 bytes [14:46:02]NVStorageSaveData done [14:46:02]ExternCall_PrintAddStr [14:46:02]wPrintStart [14:46:02]Write to MH i2c: 01 00 00 52 8C DE [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: 01 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: 01 07 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: 01 07 00 52 8C 00 00 00 00 00 FF 0F F3 [14:46:02]RasterBufferAndPrint [14:46:02]line Счет N : (1)31546 [14:46:02]line ИНН: 02508201610067 [14:46:02]line Контрольно-Кассовый Чек [14:46:02]line ПРОДАЖА [14:46:02]line ТРК (МРК, ГНК) : 21 [14:46:02]line Товар: 2710124130 [14:46:02]line Аи-92-К-5 [14:46:02]line 11.220 * 66.90 [14:46:02]line = 750.62 [14:46:02]line НДС 12% НСП 1% [14:46:02]line > о реализуемом товаре [14:46:02]line ОКРУГЛЕНИЕ: -0.62 [14:46:02]line ИТОГО: 750.00 [14:46:02]line Внесено: 750.00 [14:46:02]line СДАЧА: 0.00 [14:46:02]line НСП 1% : 6.64 [14:46:02]line НДС 12% : 79.71 [14:46:02]line Наличными: 750.00 [14:46:02]line Безнал.: 0.00 [14:46:02]line Место: АЗС № 170 "Партнер Нефть" [14:46:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:46:02]line СНО: Общий режим [14:46:02]line Чек 265 27.10.2024 14:46 [14:46:02]line Смена: 542 ФФД: 1.0 [14:46:02]line ЗНМ: 0300000110 [14:46:02]line РНМ: 0000000000091776 [14:46:02]line Версия ККМ: 001 [14:46:02]line ФМ: 0000000000871754 [14:46:02]line ФД: 192233 [14:46:02]line ФПД: 78714696909290 [14:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192233&fm=78714696909290&tin=02508201610067®Number=0000000000091776&sum=75000 [14:46:03]OFD Sender: Processing packet 192233 [packets to send 75, broken 74] [14:46:03]ProducePacketName [14:46:03]name=ofd_packets/00192233 [14:46:03]OFD Sender: To server: pG, [14:46:03]CommunicateWithHost lk.salyk.kg:30040 [14:46:03]ConnectInit lk.salyk.kg [14:46:03]written 0, free lines is 4095 [14:46:03]Connected sock=8 [14:46:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 A9 07 01 68 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 3D 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 35 04 06 00 47 97 31 8C 41 EA F2 0C 22 68 50 FC 03 B9 [14:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B8 AB 47 00 81 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EE 02 00 F4 03 04 00 05 F7 1D 67 B6 04 01 00 00 D6 27 45 78 9B 7F E8 AD [14:46:03]CommunicateWithHost err = 0 [14:46:03]CheckOFDResponse [14:46:03]1017 (14) - 77093643461234 [14:46:03]1041 (16) - 0000000000871754 [14:46:03]1040 (4) - 192233 [14:46:03]1012 (4) - 27.10.2024 08:17 [14:46:03]1206 (1) - 0 [14:46:03]OFD Sender: Remove packet 192233 [14:46:03]ProducePacketName [14:46:03]name=ofd_packets/00192233 [14:46:03]NVStorageDeleteData [14:46:03]Write to MH i2c: 01 00 00 7D 8C 09 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: 01 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: 01 07 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: 01 07 00 7D 8C 00 00 00 00 00 B9 0C D5 [14:46:03]RasterBufferAndPrint [14:46:03]line [14:46:03]line [14:46:03]line [14:46:03]line [14:46:03]line [14:46:03]written 0, free lines is 3272 [14:46:03]MH_Cut [14:46:03]Write to MH i2c: D1 01 00 84 8C 01 E2 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: D1 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: D1 01 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: D1 01 00 84 8C 00 E1 [14:46:03]Write to MH i2c: 01 00 00 85 8C 11 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]OFD Sender: No OFD packet to send [14:46:04]*** Cut start [14:46:04]*** Partial cut [14:46:04]*** CUTSNS_PIN = 1 [14:46:04]*** CUTSNS_PIN = 0 [14:46:04]*** Brake cut motor [14:46:05]Read from MH i2c: 01 [14:46:05]MH_I2C_Read... [14:46:05]*** Stop cut motor [14:46:05]*** Cut end [14:46:05]Read from MH i2c: 01 07 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 85 8C 00 00 00 00 00 FF 0F 26 [14:46:05]process_action close_receipt done [14:46:05]requested_data is exist [14:46:05]produce_requested_data [14:46:05]requested_item fm.sn is exist - process it [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 11 00 00 [14:46:05]Write to MH i2c: E2 08 00 86 8C 80 11 00 00 00 00 00 00 8C [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 86 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [14:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:05]wFMCommunicate OK [14:46:05]requested_item fd.num is exist - process it [14:46:05]SAM_PROTO_GetFieldsCounters [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 13 00 00 [14:46:05]Write to MH i2c: E2 08 00 87 8C 80 13 00 00 00 00 00 00 8F [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 62 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 62 00 87 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:05]wFMCommunicate OK [14:46:05]SAM_PROTO_GetFieldsCounters done [14:46:05]requested_item shift.num is exist - process it [14:46:05]requested_item shift.opened is exist - process it [14:46:05]req_shift_opened [14:46:05]FM_GetShiftState [14:46:05]SAM_PROTO_GetShiftState [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 13 01 00 [14:46:05]Write to MH i2c: E2 08 00 88 8C 80 13 01 00 00 00 00 00 91 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0E 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0E 00 88 8C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D2 [14:46:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:46:05]wFMCommunicate OK [14:46:05]SAM_PROTO_GetShiftState done [14:46:05]FM_GetShiftState done [14:46:05]req_shift_opened done [14:46:05]requested_item shift.open_date is exist - process it [14:46:05]req_shift_open_date [14:46:05]req_shift_open_date done [14:46:05]produce_requested_data done [14:46:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192233,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:46:05]process_action_free close_receipt [14:46:05]json_value_free [14:46:05]json_value_free done [14:46:05]process_json_proto returns [14:46:05]Send response to host [14:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192233,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:46:05]free response buf [14:46:05]execute_script done [14:46:05]execute_script returns [14:46:05]free content buf [14:46:05]Sock 5.Close socket [14:46:05]Sock 5.Thread stoped [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:22]recv_with_timeout no data received [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:47:59]accept exits with 6 [14:47:59]New connection [14:47:59]New thread 3066961252 created [14:47:59]Thread 3066817892 joined [14:47:59]Waiting for new connection... [14:47:59] Sock 6.Parse request [14:47:59]Sock 6.Check first char [14:47:59]Sock 6.First char is OK [14:47:59]request: POST /json_proto HTTP/1.0 [14:47:59]Method: POST [14:47:59]URL: /json_proto [14:47:59]Method is POST - this is cgi request [14:47:59]url: /json_proto [14:47:59]query_string will be loaded in cgi processing [14:47:59]execute_cgi json_proto POST (null) [14:47:59]execute_cgi path=json_proto method=POST [14:47:59]POST find Content-Length [14:47:59]Host: 172.17.63.131:8080 [14:47:59]Content-Length: 678 [14:47:59]Content-Type: application/json [14:47:59] [14:47:59]POST finish read [14:47:59]Found Content-Length = 678 [14:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31548", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]execute_script... [14:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31548", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]POST & json_proto [14:47:59]process_json_proto [14:47:59]json parsed OK: [14:47:59]protocol is kg_v1.0 [14:47:59]action value=close_receipt [14:47:59]process_action close_receipt [14:47:59]cmd_close_receipt [14:47:59]MH_GetDate [14:47:59]Write to MH i2c: F0 00 00 89 8C 04 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 89 8C 00 B4 52 1E 67 22 05 6E 64 91 [14:47:59]GetLastDocTimeStamp 1730040381 [14:47:59]current date 1730040500 [14:47:59]FM_GetShiftState [14:47:59]SAM_PROTO_GetShiftState [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 13 01 00 [14:47:59]Write to MH i2c: E2 08 00 8A 8C 80 13 01 00 00 00 00 00 93 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 8A 8C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D4 [14:47:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:47:59]wFMCommunicate OK [14:47:59]SAM_PROTO_GetShiftState done [14:47:59]FM_GetShiftState done [14:47:59]opened in 1729989159 [14:47:59]opened+sec_in_day 1730075559 [14:47:59]quantity*price = 120015 [14:47:59]sum+1 = 120016 [14:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 266 27.10.2024 14:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192234 ФПД: 806717233864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192234&fm=806717233864&tin=02508201610067®Number=0000000000091776&sum=120000 [14:48:00]StoreToDocumentArchive [14:48:00]shift 542 fd 192234 [14:48:00]save to /storage/0542/doc_00192234 [14:48:00]save last doc name /storage/0542/doc_00192234 to /storage/kkm_last_doc_name [14:48:00]save OK [14:48:00]Clear old archive folders... [14:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:00]tlvbuf is 01B0C9A0 [14:48:00]SAM_PROTO_ClearQueue [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 09 00 00 [14:48:00]Write to MH i2c: E2 08 00 97 8C 80 09 00 00 00 00 00 00 95 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 97 8C 00 90 00 97 [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]SAM_PROTO_ClearQueue done [14:48:00]KKMCreateOFDPacket [14:48:00]OFDProtocolAddRootSTLVToBuf [14:48:00]FM_MakeSignedData [14:48:00]FM_MakeSignedData [14:48:00]SAM_PROTO_SignData [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 01 02 [14:48:00]Write to MH i2c: E2 08 00 98 8C 80 0D 01 02 00 00 00 00 9D [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 98 8C 00 90 00 98 [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]wFMCommunicate request_size=255 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B4 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EE 02 00 35 04 06 00 00 BB D4 18 [14:48:00]Write to MH i2c: E2 02 01 99 8C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B4 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EE 02 00 35 04 06 00 00 BB D4 18 00 00 CC [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 99 8C 00 90 00 99 [14:48:01]RAPDU: 90 00 [14:48:01]wFMCommunicate OK [14:48:01]wFMCommunicate request_size=7 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 0D 02 02 02 1A C8 [14:48:01]Write to MH i2c: E2 0A 00 9A 8C 80 0D 02 02 02 00 1A C8 00 00 86 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 03 00 9A 8C 00 90 00 9A [14:48:01]RAPDU: 90 00 [14:48:01]wFMCommunicate OK [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 0D 03 02 [14:48:01]Write to MH i2c: E2 08 00 9B 8C 80 0D 03 02 00 00 00 00 A2 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0B 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0B 00 9B 8C 00 4D D7 1F B6 11 22 F9 AA 90 00 72 [14:48:01]RAPDU: 4D D7 1F B6 11 22 F9 AA 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_SignData done [14:48:01]FM_MakeSignedData done [14:48:01]CreateOFDProtocolMessage [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 11 00 00 [14:48:01]Write to MH i2c: E2 08 00 9C 8C 80 11 00 00 00 00 00 00 A2 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 9C 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [14:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:48:01]wFMCommunicate OK [14:48:01]CreateOFDProtocolMessage done [14:48:01]OFDSenderStorePacket 192234 [14:48:01]StoreOFDPacket docnum=192234 [14:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 30 04 01 91 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B4 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EE 02 00 35 04 06 00 00 BB D4 18 1A C8 4D D7 1F B6 11 22 F9 AA [14:48:01]CheckFolder [14:48:01]dirname=/storage/ofd_packets [14:48:01]CheckFolder done [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00192234 [14:48:01]NVStorageSaveData ofd_packets/00192234 [14:48:01]File name is /storage/ofd_packets/00192234 [14:48:01]Write 298 bytes [14:48:01]NVStorageSaveData done [14:48:01]OFDSenderStorePacket done [14:48:01]KKMCreateOFDPacket done [14:48:01]NVStorageSaveData kkm_last_timestamp [14:48:01]File name is /storage/kkm_last_timestamp [14:48:01]Write 4 bytes [14:48:01]NVStorageSaveData done [14:48:01]ExternCall_PrintAddStr [14:48:01]wPrintStart [14:48:01]Write to MH i2c: 01 00 00 9D 8C 29 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 9D 8C 00 00 00 00 00 FF 0F 3E [14:48:01]RasterBufferAndPrint [14:48:01]line Счет N : (1)31548 [14:48:01]line ИНН: 02508201610067 [14:48:01]line Контрольно-Кассовый Чек [14:48:01]line ПРОДАЖА [14:48:01]line ТРК (МРК, ГНК) : 11 [14:48:01]line Товар: 2710194210 [14:48:01]line ДТ-К-5 [14:48:01]line 15.750 * 76.20 [14:48:01]line = 1200.15 [14:48:01]line НДС 12% НСП 1% [14:48:01]line > о реализуемом товаре [14:48:01]line ОКРУГЛЕНИЕ: -0.15 [14:48:01]line ИТОГО: 1200.00 [14:48:01]line Внесено: 1200.00 [14:48:01]line СДАЧА: 0.00 [14:48:01]line НСП 1% : 10.62 [14:48:01]line НДС 12% : 127.45 [14:48:01]line Наличными: 1200.00 [14:48:01]line Безнал.: 0.00 [14:48:01]line Место: АЗС № 170 "Партнер Нефть" [14:48:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:48:01]line СНО: Общий режим [14:48:01]line Чек 266 27.10.2024 14:48 [14:48:01]line Смена: 542 ФФД: 1.0 [14:48:01]line ЗНМ: 0300000110 [14:48:01]line РНМ: 0000000000091776 [14:48:01]line Версия ККМ: 001 [14:48:01]line ФМ: 0000000000871754 [14:48:01]line ФД: 192234 [14:48:01]line ФПД: 806717233864 [14:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144820&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192234&fm=806717233864&tin=02508201610067®Number=0000000000091776&sum=120000 [14:48:01]OFD Sender: Processing packet 192234 [packets to send 75, broken 74] [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00192234 [14:48:01]OFD Sender: To server: pG, [14:48:01]CommunicateWithHost lk.salyk.kg:30040 [14:48:01]ConnectInit lk.salyk.kg [14:48:01]written 0, free lines is 4095 [14:48:01]Connected sock=8 [14:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 30 04 01 91 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B4 52 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EE 02 00 35 04 06 00 00 BB D4 18 1A C8 4D D7 1F B6 11 22 F9 AA [14:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 4A 47 00 9A A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EE 02 00 F4 03 04 00 7B F7 1D 67 B6 04 01 00 00 45 60 A5 6F 16 46 E1 70 [14:48:02]CommunicateWithHost err = 0 [14:48:02]CheckOFDResponse [14:48:02]1017 (14) - 77093643461234 [14:48:02]1041 (16) - 0000000000871754 [14:48:02]1040 (4) - 192234 [14:48:02]1012 (4) - 27.10.2024 08:19 [14:48:02]1206 (1) - 0 [14:48:02]OFD Sender: Remove packet 192234 [14:48:02]ProducePacketName [14:48:02]name=ofd_packets/00192234 [14:48:02]NVStorageDeleteData [14:48:02]Write to MH i2c: 01 00 00 C8 8C 54 [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 07 00 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: 01 07 00 C8 8C 00 00 00 00 00 C8 0C 2F [14:48:02]RasterBufferAndPrint [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]line [14:48:02]written 0, free lines is 3278 [14:48:02]MH_Cut [14:48:02]Write to MH i2c: D1 01 00 CF 8C 01 2D [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 01 00 [14:48:02]MH_I2C_Read... [14:48:02]Read from MH i2c: D1 01 00 CF 8C 00 2C [14:48:02]Write to MH i2c: 01 00 00 D0 8C 5C [14:48:02]Write i2c OK [14:48:02]MH_I2C_Read... [14:48:02]OFD Sender: No OFD packet to send [14:48:03]*** Cut start [14:48:03]*** Partial cut [14:48:03]*** CUTSNS_PIN = 1 [14:48:03]*** CUTSNS_PIN = 0 [14:48:03]*** Brake cut motor [14:48:03]Read from MH i2c: 01 [14:48:03]MH_I2C_Read... [14:48:03]*** Stop cut motor [14:48:03]*** Cut end [14:48:03]Read from MH i2c: 01 07 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: 01 07 00 D0 8C 00 00 00 00 00 FF 0F 71 [14:48:03]process_action close_receipt done [14:48:03]requested_data is exist [14:48:03]produce_requested_data [14:48:03]requested_item fm.sn is exist - process it [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 11 00 00 [14:48:03]Write to MH i2c: E2 08 00 D1 8C 80 11 00 00 00 00 00 00 D7 [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 D1 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [14:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:48:03]wFMCommunicate OK [14:48:03]requested_item fd.num is exist - process it [14:48:03]SAM_PROTO_GetFieldsCounters [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 00 00 [14:48:03]Write to MH i2c: E2 08 00 D2 8C 80 13 00 00 00 00 00 00 DA [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 D2 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [14:48:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetFieldsCounters done [14:48:03]requested_item shift.num is exist - process it [14:48:03]requested_item shift.opened is exist - process it [14:48:03]req_shift_opened [14:48:03]FM_GetShiftState [14:48:03]SAM_PROTO_GetShiftState [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 01 00 [14:48:03]Write to MH i2c: E2 08 00 D3 8C 80 13 01 00 00 00 00 00 DC [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 D3 8C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [14:48:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetShiftState done [14:48:03]FM_GetShiftState done [14:48:03]req_shift_opened done [14:48:03]requested_item shift.open_date is exist - process it [14:48:03]req_shift_open_date [14:48:03]req_shift_open_date done [14:48:03]produce_requested_data done [14:48:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192234,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:48:03]process_action_free close_receipt [14:48:03]json_value_free [14:48:03]json_value_free done [14:48:03]process_json_proto returns [14:48:03]Send response to host [14:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192234,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:48:03]free response buf [14:48:03]execute_script done [14:48:03]execute_script returns [14:48:03]free content buf [14:48:03]Sock 6.Close socket [14:48:03]Sock 6.Thread stoped [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:34]accept exits with 5 [14:50:34]New connection [14:50:34]New thread 3066817892 created [14:50:34]Thread 3066961252 joined [14:50:34]Waiting for new connection... [14:50:34] Sock 5.Parse request [14:50:34]Sock 5.Check first char [14:50:34]Sock 5.First char is OK [14:50:34]request: POST /json_proto HTTP/1.0 [14:50:34]Method: POST [14:50:34]URL: /json_proto [14:50:34]Method is POST - this is cgi request [14:50:34]url: /json_proto [14:50:34]query_string will be loaded in cgi processing [14:50:34]execute_cgi json_proto POST (null) [14:50:34]execute_cgi path=json_proto method=POST [14:50:34]POST find Content-Length [14:50:34]Host: 172.17.63.131:8080 [14:50:34]Content-Length: 678 [14:50:34]Content-Type: application/json [14:50:34] [14:50:34]POST finish read [14:50:34]Found Content-Length = 678 [14:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31549", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:34]execute_script... [14:50: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)31549", "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" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:34]POST & json_proto [14:50:34]process_json_proto [14:50:34]json parsed OK: [14:50:34]protocol is kg_v1.0 [14:50:34]action value=close_receipt [14:50:34]process_action close_receipt [14:50:34]cmd_close_receipt [14:50:34]MH_GetDate [14:50:34]Write to MH i2c: F0 00 00 D4 8C 4F [14:50:34]Write i2c OK [14:50:34]MH_I2C_Read... [14:50:34]Read from MH i2c: F0 [14:50:34]MH_I2C_Read... [14:50:34]Read from MH i2c: F0 09 00 [14:50:34]MH_I2C_Read... [14:50:34]Read from MH i2c: F0 09 00 D4 8C 00 4F 53 1E 67 22 05 6E 64 78 [14:50:34]GetLastDocTimeStamp 1730040500 [14:50:34]current date 1730040655 [14:50:34]FM_GetShiftState [14:50:34]SAM_PROTO_GetShiftState [14:50:34]wFMCommunicate request_size=4 [14:50:34]MH_SAM_APDU [14:50:34]CAPDU: 80 13 01 00 [14:50:34]Write to MH i2c: E2 08 00 D5 8C 80 13 01 00 00 00 00 00 DE [14:50:34]Write i2c OK [14:50:34]MH_I2C_Read... [14:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:34]Read from MH i2c: E2 [14:50:34]MH_I2C_Read... [14:50:34]Read from MH i2c: E2 0E 00 [14:50:34]MH_I2C_Read... [14:50:34]Read from MH i2c: E2 0E 00 D5 8C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [14:50:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:50:34]wFMCommunicate OK [14:50:34]SAM_PROTO_GetShiftState done [14:50:34]FM_GetShiftState done [14:50:34]opened in 1729989159 [14:50:34]opened+sec_in_day 1730075559 [14:50:34]quantity*price = 250012 [14:50:34]sum+1 = 250013 [14:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 267 27.10.2024 14:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192235 ФПД: 204566190497606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192235&fm=204566190497606&tin=02508201610067®Number=0000000000091776&sum=250000 [14:50:35]StoreToDocumentArchive [14:50:35]shift 542 fd 192235 [14:50:35]save to /storage/0542/doc_00192235 [14:50:35]save last doc name /storage/0542/doc_00192235 to /storage/kkm_last_doc_name [14:50:35]save OK [14:50:35]Clear old archive folders... [14:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:35]tlvbuf is 01D136E0 [14:50:35]SAM_PROTO_ClearQueue [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 09 00 00 [14:50:35]Write to MH i2c: E2 08 00 E2 8C 80 09 00 00 00 00 00 00 E0 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 E2 8C 00 90 00 E2 [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]SAM_PROTO_ClearQueue done [14:50:35]KKMCreateOFDPacket [14:50:35]OFDProtocolAddRootSTLVToBuf [14:50:35]FM_MakeSignedData [14:50:35]FM_MakeSignedData [14:50:35]SAM_PROTO_SignData [14:50:35]wFMCommunicate request_size=4 [14:50:35]MH_SAM_APDU [14:50:35]CAPDU: 80 0D 01 02 [14:50:35]Write to MH i2c: E2 08 00 E3 8C 80 0D 01 02 00 00 00 00 E8 [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:35]Read from MH i2c: E2 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 [14:50:35]MH_I2C_Read... [14:50:35]Read from MH i2c: E2 03 00 E3 8C 00 90 00 E3 [14:50:35]RAPDU: 90 00 [14:50:35]wFMCommunicate OK [14:50:35]wFMCommunicate request_size=255 [14:50:35]MH_SAM_APDU [14:50: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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 4F 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EE 02 00 35 04 06 00 BA 0D 47 1E [14:50:35]Write to MH i2c: E2 02 01 E4 8C 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 4F 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EE 02 00 35 04 06 00 BA 0D 47 1E 00 00 2D [14:50:35]Write i2c OK [14:50:35]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 03 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 03 00 E4 8C 00 90 00 E4 [14:50:36]RAPDU: 90 00 [14:50:36]wFMCommunicate OK [14:50:36]wFMCommunicate request_size=7 [14:50:36]MH_SAM_APDU [14:50:36]CAPDU: 80 0D 02 02 02 1F 46 [14:50:36]Write to MH i2c: E2 0A 00 E5 8C 80 0D 02 02 02 00 1F 46 00 00 54 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 03 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 03 00 E5 8C 00 90 00 E5 [14:50:36]RAPDU: 90 00 [14:50:36]wFMCommunicate OK [14:50:36]wFMCommunicate request_size=4 [14:50:36]MH_SAM_APDU [14:50:36]CAPDU: 80 0D 03 02 [14:50:36]Write to MH i2c: E2 08 00 E6 8C 80 0D 03 02 00 00 00 00 ED [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0B 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0B 00 E6 8C 00 35 85 C0 DF 89 8B 5B 76 90 00 2C [14:50:36]RAPDU: 35 85 C0 DF 89 8B 5B 76 90 00 [14:50:36]wFMCommunicate OK [14:50:36]SAM_PROTO_SignData done [14:50:36]FM_MakeSignedData done [14:50:36]CreateOFDProtocolMessage [14:50:36]wFMCommunicate request_size=4 [14:50:36]MH_SAM_APDU [14:50:36]CAPDU: 80 11 00 00 [14:50:36]Write to MH i2c: E2 08 00 E7 8C 80 11 00 00 00 00 00 00 ED [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 17 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 17 00 E7 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [14:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:36]wFMCommunicate OK [14:50:36]CreateOFDProtocolMessage done [14:50:36]OFDSenderStorePacket 192235 [14:50:36]StoreOFDPacket docnum=192235 [14:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3C 6E 04 01 E8 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 4F 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EE 02 00 35 04 06 00 BA 0D 47 1E 1F 46 35 85 C0 DF 89 8B 5B 76 [14:50:36]CheckFolder [14:50:36]dirname=/storage/ofd_packets [14:50:36]CheckFolder done [14:50:36]ProducePacketName [14:50:36]name=ofd_packets/00192235 [14:50:36]NVStorageSaveData ofd_packets/00192235 [14:50:36]File name is /storage/ofd_packets/00192235 [14:50:36]Write 298 bytes [14:50:36]NVStorageSaveData done [14:50:36]OFDSenderStorePacket done [14:50:36]KKMCreateOFDPacket done [14:50:36]NVStorageSaveData kkm_last_timestamp [14:50:36]File name is /storage/kkm_last_timestamp [14:50:36]Write 4 bytes [14:50:36]NVStorageSaveData done [14:50:36]ExternCall_PrintAddStr [14:50:36]wPrintStart [14:50:36]Write to MH i2c: 01 00 00 E8 8C 74 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 E8 8C 00 00 00 00 00 FF 0F 89 [14:50:36]RasterBufferAndPrint [14:50:36]line Счет N : (1)31549 [14:50:36]line ИНН: 02508201610067 [14:50:36]line Контрольно-Кассовый Чек [14:50:36]line ПРОДАЖА [14:50:36]line ТРК (МРК, ГНК) : 11 [14:50:36]line Товар: 2710194210 [14:50:36]line ДТ-К-5 [14:50:36]line 32.810 * 76.20 [14:50:36]line = 2500.12 [14:50:36]line НДС 12% НСП 1% [14:50:36]line > о реализуемом товаре [14:50:36]line ОКРУГЛЕНИЕ: -0.12 [14:50:36]line ИТОГО: 2500.00 [14:50:36]line Внесено: 2500.00 [14:50:36]line СДАЧА: 0.00 [14:50:36]line НСП 1% : 22.12 [14:50:36]line НДС 12% : 265.50 [14:50:36]line Наличными: 2500.00 [14:50:36]line Безнал.: 0.00 [14:50:36]line Место: АЗС № 170 "Партнер Нефть" [14:50:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:50:36]line СНО: Общий режим [14:50:36]line Чек 267 27.10.2024 14:50 [14:50:36]line Смена: 542 ФФД: 1.0 [14:50:36]line ЗНМ: 0300000110 [14:50:36]line РНМ: 0000000000091776 [14:50:36]line Версия ККМ: 001 [14:50:36]line ФМ: 0000000000871754 [14:50:36]line ФД: 192235 [14:50:36]line ФПД: 204566190497606 [14:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192235&fm=204566190497606&tin=02508201610067®Number=0000000000091776&sum=250000 [14:50:36]OFD Sender: Processing packet 192235 [packets to send 75, broken 74] [14:50:36]ProducePacketName [14:50:36]name=ofd_packets/00192235 [14:50:36]OFD Sender: To server: pG, [14:50:36]CommunicateWithHost lk.salyk.kg:30040 [14:50:36]ConnectInit lk.salyk.kg [14:50:36]written 0, free lines is 4095 [14:50:36]Connected sock=8 [14:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3C 6E 04 01 E8 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 4F 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EE 02 00 35 04 06 00 BA 0D 47 1E 1F 46 35 85 C0 DF 89 8B 5B 76 [14:50:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 79 47 00 44 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EE 02 00 F4 03 04 00 16 F8 1D 67 B6 04 01 00 00 EC 84 03 DC B0 4C 09 86 [14:50:36]CommunicateWithHost err = 0 [14:50:36]CheckOFDResponse [14:50:36]1017 (14) - 77093643461234 [14:50:36]1041 (16) - 0000000000871754 [14:50:36]1040 (4) - 192235 [14:50:36]1012 (4) - 27.10.2024 08:21 [14:50:36]1206 (1) - 0 [14:50:36]OFD Sender: Remove packet 192235 [14:50:36]ProducePacketName [14:50:36]name=ofd_packets/00192235 [14:50:36]NVStorageDeleteData [14:50:36]Write to MH i2c: 01 00 00 13 8D A0 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: 01 07 00 13 8D 00 00 00 00 00 A7 0C 5A [14:50:36]RasterBufferAndPrint [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]line [14:50:36]written 0, free lines is 3245 [14:50:36]MH_Cut [14:50:36]Write to MH i2c: D1 01 00 1A 8D 01 79 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 01 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: D1 01 00 1A 8D 00 78 [14:50:36]Write to MH i2c: 01 00 00 1B 8D A8 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:37]OFD Sender: No OFD packet to send [14:50:37]*** Cut start [14:50:37]*** Partial cut [14:50:37]*** CUTSNS_PIN = 1 [14:50:37]*** CUTSNS_PIN = 0 [14:50:38]*** Brake cut motor [14:50:38]Read from MH i2c: 01 [14:50:38]MH_I2C_Read... [14:50:38]*** Stop cut motor [14:50:38]*** Cut end [14:50:38]Read from MH i2c: 01 07 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 1B 8D 00 00 00 00 00 FF 0F BD [14:50:38]process_action close_receipt done [14:50:38]requested_data is exist [14:50:38]produce_requested_data [14:50:38]requested_item fm.sn is exist - process it [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 11 00 00 [14:50:38]Write to MH i2c: E2 08 00 1C 8D 80 11 00 00 00 00 00 00 23 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 17 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 17 00 1C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [14:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:38]wFMCommunicate OK [14:50:38]requested_item fd.num is exist - process it [14:50:38]SAM_PROTO_GetFieldsCounters [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 13 00 00 [14:50:38]Write to MH i2c: E2 08 00 1D 8D 80 13 00 00 00 00 00 00 26 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 62 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 62 00 1D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:38]wFMCommunicate OK [14:50:38]SAM_PROTO_GetFieldsCounters done [14:50:38]requested_item shift.num is exist - process it [14:50:38]requested_item shift.opened is exist - process it [14:50:38]req_shift_opened [14:50:38]FM_GetShiftState [14:50:38]SAM_PROTO_GetShiftState [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 13 01 00 [14:50:38]Write to MH i2c: E2 08 00 1E 8D 80 13 01 00 00 00 00 00 28 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0E 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0E 00 1E 8D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 69 [14:50:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:50:38]wFMCommunicate OK [14:50:38]SAM_PROTO_GetShiftState done [14:50:38]FM_GetShiftState done [14:50:38]req_shift_opened done [14:50:38]requested_item shift.open_date is exist - process it [14:50:38]req_shift_open_date [14:50:38]req_shift_open_date done [14:50:38]produce_requested_data done [14:50:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192235,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:50:38]process_action_free close_receipt [14:50:38]json_value_free [14:50:38]json_value_free done [14:50:38]process_json_proto returns [14:50:38]Send response to host [14:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192235,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:50:38]free response buf [14:50:38]execute_script done [14:50:38]execute_script returns [14:50:38]free content buf [14:50:38]Sock 5.Close socket [14:50:38]Sock 5.Thread stoped [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [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]accept exits with 6 [14:52:12]New connection [14:52:12]New thread 3066961252 created [14:52:12]Thread 3066817892 joined [14:52:12]Waiting for new connection... [14:52:12] Sock 6.Parse request [14:52:12]Sock 6.Check first char [14:52:12]Sock 6.First char is OK [14:52:12]request: POST /json_proto HTTP/1.0 [14:52:12]Method: POST [14:52:12]URL: /json_proto [14:52:12]Method is POST - this is cgi request [14:52:12]url: /json_proto [14:52:12]query_string will be loaded in cgi processing [14:52:12]execute_cgi json_proto POST (null) [14:52:12]execute_cgi path=json_proto method=POST [14:52:12]POST find Content-Length [14:52:12]Host: 172.17.63.131:8080 [14:52:12]Content-Length: 865 [14:52:12]Content-Type: application/json [14:52:12] [14:52:12]POST finish read [14:52:12]Found Content-Length = 865 [14:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:12]execute_script... [14:52: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)31551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:12]POST & json_proto [14:52:12]process_json_proto [14:52:12]json parsed OK: [14:52:12]protocol is kg_v1.0 [14:52:12]action value=close_receipt [14:52:12]process_action close_receipt [14:52:12]cmd_close_receipt [14:52:12]MH_GetDate [14:52:12]Write to MH i2c: F0 00 00 1F 8D 9B [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: F0 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: F0 09 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: F0 09 00 1F 8D 00 B0 53 1E 67 22 05 6E 64 25 [14:52:12]GetLastDocTimeStamp 1730040655 [14:52:12]current date 1730040752 [14:52:12]FM_GetShiftState [14:52:12]SAM_PROTO_GetShiftState [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 13 01 00 [14:52:12]Write to MH i2c: E2 08 00 20 8D 80 13 01 00 00 00 00 00 2A [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 0E 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 0E 00 20 8D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6B [14:52:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:52:12]wFMCommunicate OK [14:52:12]SAM_PROTO_GetShiftState done [14:52:12]FM_GetShiftState done [14:52:12]opened in 1729989159 [14:52:12]opened+sec_in_day 1730075559 [14:52:12]quantity*price = 100015 [14:52:12]sum+1 = 100017 [14:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 268 27.10.2024 14:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192236 ФПД: 153981983586315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145232&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192236&fm=153981983586315&tin=02508201610067®Number=0000000000091776&sum=100016 [14:52:13]StoreToDocumentArchive [14:52:13]shift 542 fd 192236 [14:52:13]save to /storage/0542/doc_00192236 [14:52:13]save last doc name /storage/0542/doc_00192236 to /storage/kkm_last_doc_name [14:52:13]save OK [14:52:13]Clear old archive folders... [14:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:13]tlvbuf is 01D13830 [14:52:13]SAM_PROTO_ClearQueue [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 09 00 00 [14:52:13]Write to MH i2c: E2 08 00 2D 8D 80 09 00 00 00 00 00 00 2C [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 2D 8D 00 90 00 2E [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]SAM_PROTO_ClearQueue done [14:52:13]KKMCreateOFDPacket [14:52:13]OFDProtocolAddRootSTLVToBuf [14:52:13]FM_MakeSignedData [14:52:13]FM_MakeSignedData [14:52:13]SAM_PROTO_SignData [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 01 02 [14:52:13]Write to MH i2c: E2 08 00 2E 8D 80 0D 01 02 00 00 00 00 34 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 2E 8D 00 90 00 2F [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]wFMCommunicate request_size=255 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B0 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EE 02 00 35 04 06 00 8C [14:52:13]Write to MH i2c: E2 02 01 2F 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B0 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EE 02 00 35 04 06 00 8C 00 00 FF [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 2F 8D 00 90 00 30 [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]wFMCommunicate request_size=10 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 02 02 05 0B B9 6E F8 0B [14:52:13]Write to MH i2c: E2 0D 00 30 8D 80 0D 02 02 05 00 0B B9 6E F8 0B 00 00 76 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 03 00 30 8D 00 90 00 31 [14:52:13]RAPDU: 90 00 [14:52:13]wFMCommunicate OK [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 0D 03 02 [14:52:13]Write to MH i2c: E2 08 00 31 8D 80 0D 03 02 00 00 00 00 39 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0B 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0B 00 31 8D 00 16 5E 94 23 60 9A 9F DE 90 00 DC [14:52:13]RAPDU: 16 5E 94 23 60 9A 9F DE 90 00 [14:52:13]wFMCommunicate OK [14:52:13]SAM_PROTO_SignData done [14:52:13]FM_MakeSignedData done [14:52:13]CreateOFDProtocolMessage [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 11 00 00 [14:52:13]Write to MH i2c: E2 08 00 32 8D 80 11 00 00 00 00 00 00 39 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 17 00 32 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [14:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:13]wFMCommunicate OK [14:52:13]CreateOFDProtocolMessage done [14:52:13]OFDSenderStorePacket 192236 [14:52:13]StoreOFDPacket docnum=192236 [14:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 F8 07 01 00 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B0 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EE 02 00 35 04 06 00 8C 0B B9 6E F8 0B 16 5E 94 23 60 9A 9F DE [14:52:13]CheckFolder [14:52:13]dirname=/storage/ofd_packets [14:52:13]CheckFolder done [14:52:13]ProducePacketName [14:52:13]name=ofd_packets/00192236 [14:52:13]NVStorageSaveData ofd_packets/00192236 [14:52:13]File name is /storage/ofd_packets/00192236 [14:52:13]Write 301 bytes [14:52:13]NVStorageSaveData done [14:52:13]OFDSenderStorePacket done [14:52:13]KKMCreateOFDPacket done [14:52:13]NVStorageSaveData kkm_last_timestamp [14:52:13]File name is /storage/kkm_last_timestamp [14:52:13]Write 4 bytes [14:52:13]NVStorageSaveData done [14:52:13]ExternCall_PrintAddStr [14:52:13]wPrintStart [14:52:13]Write to MH i2c: 01 00 00 33 8D C0 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]OFD Sender: Processing packet 192236 [packets to send 75, broken 74] [14:52:13]ProducePacketName [14:52:13]name=ofd_packets/00192236 [14:52:13]OFD Sender: To server: pG, [14:52:13]CommunicateWithHost lk.salyk.kg:30040 [14:52:13]ConnectInit lk.salyk.kg [14:52:13]Read from MH i2c: 01 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: 01 07 00 33 8D 00 00 00 00 00 FF 0F D5 [14:52:13]RasterBufferAndPrint [14:52:13]line Счет N : (1)31551 [14:52:13]line ИНН: 02508201610067 [14:52:13]line Контрольно-Кассовый Чек [14:52:13]line ПРОДАЖА [14:52:13]line ТРК (МРК, ГНК) : 21 [14:52:13]line Товар: 2710124130 [14:52:13]line Аи-92-К-5 [14:52:13]line 14.950 * 66.90 [14:52:13]line = 1000.16 [14:52:13]line НДС 12% НСП 1% [14:52:13]line > о реализуемом товаре [14:52:13]line ИТОГО: 1000.16 [14:52:13]line НСП 1% : 8.85 [14:52:13]line НДС 12% : 106.21 [14:52:13]line Наличными: 0.00 [14:52:13]line Безнал.: 1000.16 [14:52:13]line Место: АЗС № 170 "Партнер Нефть" [14:52:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:52:13]line СНО: Общий режим [14:52:13]line Чек 268 27.10.2024 14:52 [14:52:13]line Смена: 542 ФФД: 1.0 [14:52:13]line ЗНМ: 0300000110 [14:52:13]line РНМ: 0000000000091776 [14:52:13]line Версия ККМ: 001 [14:52:13]line Платежная система: Кыргызкоммерцбанк [14:52:13]line ФМ: 0000000000871754 [14:52:13]line ФД: 192236 [14:52:13]line ФПД: 153981983586315 [14:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145232&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192236&fm=153981983586315&tin=02508201610067®Number=0000000000091776&sum=100016 [14:52:13]written 0, free lines is 4095 [14:52:14]Connected sock=9 [14:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 F8 07 01 00 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B0 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EE 02 00 35 04 06 00 8C 0B B9 6E F8 0B 16 5E 94 23 60 9A 9F DE [14:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 24 47 00 C2 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EE 02 00 F4 03 04 00 77 F8 1D 67 B6 04 01 00 00 0B 3E FC 2E 16 CD D1 1A [14:52:14]CommunicateWithHost err = 0 [14:52:14]CheckOFDResponse [14:52:14]1017 (14) - 77093643461234 [14:52:14]1041 (16) - 0000000000871754 [14:52:14]1040 (4) - 192236 [14:52:14]1012 (4) - 27.10.2024 08:23 [14:52:14]1206 (1) - 0 [14:52:14]OFD Sender: Remove packet 192236 [14:52:14]ProducePacketName [14:52:14]name=ofd_packets/00192236 [14:52:14]NVStorageDeleteData [14:52:14]Write to MH i2c: 01 00 00 5D 8D EA [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: 01 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: 01 07 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: 01 07 00 5D 8D 00 00 00 00 00 C5 0C C2 [14:52:14]RasterBufferAndPrint [14:52:14]line [14:52:14]line [14:52:14]line [14:52:14]line [14:52:14]line [14:52:14]written 0, free lines is 3275 [14:52:14]MH_Cut [14:52:14]Write to MH i2c: D1 01 00 64 8D 01 C3 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: D1 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: D1 01 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: D1 01 00 64 8D 00 C2 [14:52:14]Write to MH i2c: 01 00 00 65 8D F2 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]OFD Sender: No OFD packet to send [14:52:15]*** Cut start [14:52:15]*** Partial cut [14:52:15]*** CUTSNS_PIN = 1 [14:52:15]*** CUTSNS_PIN = 0 [14:52:15]*** Brake cut motor [14:52:15]Read from MH i2c: 01 [14:52:15]MH_I2C_Read... [14:52:15]*** Stop cut motor [14:52:15]*** Cut end [14:52:15]Read from MH i2c: 01 07 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 65 8D 00 00 00 00 00 FF 0F 07 [14:52:15]process_action close_receipt done [14:52:15]requested_data is exist [14:52:15]produce_requested_data [14:52:15]requested_item fm.sn is exist - process it [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 11 00 00 [14:52:15]Write to MH i2c: E2 08 00 66 8D 80 11 00 00 00 00 00 00 6D [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 66 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [14:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:15]wFMCommunicate OK [14:52:15]requested_item fd.num is exist - process it [14:52:15]SAM_PROTO_GetFieldsCounters [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 13 00 00 [14:52:15]Write to MH i2c: E2 08 00 67 8D 80 13 00 00 00 00 00 00 70 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:16]Read from MH i2c: E2 [14:52:16]MH_I2C_Read... [14:52:16]Read from MH i2c: E2 62 00 [14:52:16]MH_I2C_Read... [14:52:16]Read from MH i2c: E2 62 00 67 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:16]wFMCommunicate OK [14:52:16]SAM_PROTO_GetFieldsCounters done [14:52:16]requested_item shift.num is exist - process it [14:52:16]requested_item shift.opened is exist - process it [14:52:16]req_shift_opened [14:52:16]FM_GetShiftState [14:52:16]SAM_PROTO_GetShiftState [14:52:16]wFMCommunicate request_size=4 [14:52:16]MH_SAM_APDU [14:52:16]CAPDU: 80 13 01 00 [14:52:16]Write to MH i2c: E2 08 00 68 8D 80 13 01 00 00 00 00 00 72 [14:52:16]Write i2c OK [14:52:16]MH_I2C_Read... [14:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:16]Read from MH i2c: E2 [14:52:16]MH_I2C_Read... [14:52:16]Read from MH i2c: E2 0E 00 [14:52:16]MH_I2C_Read... [14:52:16]Read from MH i2c: E2 0E 00 68 8D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [14:52:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:52:16]wFMCommunicate OK [14:52:16]SAM_PROTO_GetShiftState done [14:52:16]FM_GetShiftState done [14:52:16]req_shift_opened done [14:52:16]requested_item shift.open_date is exist - process it [14:52:16]req_shift_open_date [14:52:16]req_shift_open_date done [14:52:16]produce_requested_data done [14:52:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192236,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:52:16]process_action_free close_receipt [14:52:16]json_value_free [14:52:16]json_value_free done [14:52:16]process_json_proto returns [14:52:16]Send response to host [14:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192236,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:52:16]free response buf [14:52:16]execute_script done [14:52:16]execute_script returns [14:52:16]free content buf [14:52:16]Sock 6.Close socket [14:52:16]Sock 6.Thread stoped [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:27]accept exits with 5 [14:52:27]New connection [14:52:27]New thread 3066817892 created [14:52:27]Thread 3066961252 joined [14:52:27]Waiting for new connection... [14:52:27] Sock 5.Parse request [14:52:27]Sock 5.Check first char [14:52:27]Sock 5.First char is OK [14:52:27]request: POST /json_proto HTTP/1.0 [14:52:27]Method: POST [14:52:27]URL: /json_proto [14:52:27]Method is POST - this is cgi request [14:52:27]url: /json_proto [14:52:27]query_string will be loaded in cgi processing [14:52:27]execute_cgi json_proto POST (null) [14:52:27]execute_cgi path=json_proto method=POST [14:52:27]POST find Content-Length [14:52:27]Host: 172.17.63.131:8080 [14:52:27]Content-Length: 678 [14:52:27]Content-Type: application/json [14:52:27] [14:52:27]POST finish read [14:52:27]Found Content-Length = 678 [14:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31550", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:27]execute_script... [14: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)31550", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:27]POST & json_proto [14:52:27]process_json_proto [14:52:27]json parsed OK: [14:52:27]protocol is kg_v1.0 [14:52:27]action value=close_receipt [14:52:27]process_action close_receipt [14:52:27]cmd_close_receipt [14:52:27]MH_GetDate [14:52:27]Write to MH i2c: F0 00 00 69 8D E5 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: F0 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: F0 09 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: F0 09 00 69 8D 00 BF 53 1E 67 22 05 6E 64 7E [14:52:27]GetLastDocTimeStamp 1730040752 [14:52:27]current date 1730040767 [14:52:27]FM_GetShiftState [14:52:27]SAM_PROTO_GetShiftState [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 13 01 00 [14:52:27]Write to MH i2c: E2 08 00 6A 8D 80 13 01 00 00 00 00 00 74 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0E 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0E 00 6A 8D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B5 [14:52:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_GetShiftState done [14:52:27]FM_GetShiftState done [14:52:27]opened in 1729989159 [14:52:27]opened+sec_in_day 1730075559 [14:52:27]quantity*price = 120015 [14:52:27]sum+1 = 120016 [14:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 269 27.10.2024 14:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192237 ФПД: 174545082621328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192237&fm=174545082621328&tin=02508201610067®Number=0000000000091776&sum=120000 [14:52:28]StoreToDocumentArchive [14:52:28]shift 542 fd 192237 [14:52:28]save to /storage/0542/doc_00192237 [14:52:28]save last doc name /storage/0542/doc_00192237 to /storage/kkm_last_doc_name [14:52:28]save OK [14:52:28]Clear old archive folders... [14:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:28]tlvbuf is 0172E500 [14:52:28]SAM_PROTO_ClearQueue [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 09 00 00 [14:52:28]Write to MH i2c: E2 08 00 77 8D 80 09 00 00 00 00 00 00 76 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 77 8D 00 90 00 78 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_ClearQueue done [14:52:28]KKMCreateOFDPacket [14:52:28]OFDProtocolAddRootSTLVToBuf [14:52:28]FM_MakeSignedData [14:52:28]FM_MakeSignedData [14:52:28]SAM_PROTO_SignData [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 01 02 [14:52:28]Write to MH i2c: E2 08 00 78 8D 80 0D 01 02 00 00 00 00 7E [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 78 8D 00 90 00 79 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=255 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EE 02 00 35 04 06 00 9E BF 71 A5 [14:52:28]Write to MH i2c: E2 02 01 79 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EE 02 00 35 04 06 00 9E BF 71 A5 00 00 8B [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 79 8D 00 90 00 7A [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=7 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 02 02 02 9D 90 [14:52:28]Write to MH i2c: E2 0A 00 7A 8D 80 0D 02 02 02 00 9D 90 00 00 B2 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 7A 8D 00 90 00 7B [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 03 02 [14:52:28]Write to MH i2c: E2 08 00 7B 8D 80 0D 03 02 00 00 00 00 83 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 7B 8D 00 D4 51 02 BB EC 4B 18 32 90 00 E7 [14:52:28]RAPDU: D4 51 02 BB EC 4B 18 32 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_SignData done [14:52:28]FM_MakeSignedData done [14:52:28]CreateOFDProtocolMessage [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 11 00 00 [14:52:28]Write to MH i2c: E2 08 00 7C 8D 80 11 00 00 00 00 00 00 83 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 7C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [14:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:28]wFMCommunicate OK [14:52:28]CreateOFDProtocolMessage done [14:52:28]OFDSenderStorePacket 192237 [14:52:28]StoreOFDPacket docnum=192237 [14:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 00 DA 04 01 2F DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EE 02 00 35 04 06 00 9E BF 71 A5 9D 90 D4 51 02 BB EC 4B 18 32 [14:52:28]CheckFolder [14:52:28]dirname=/storage/ofd_packets [14:52:28]CheckFolder done [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00192237 [14:52:28]NVStorageSaveData ofd_packets/00192237 [14:52:28]File name is /storage/ofd_packets/00192237 [14:52:28]Write 298 bytes [14:52:28]NVStorageSaveData done [14:52:28]OFDSenderStorePacket done [14:52:28]KKMCreateOFDPacket done [14:52:28]NVStorageSaveData kkm_last_timestamp [14:52:28]File name is /storage/kkm_last_timestamp [14:52:28]Write 4 bytes [14:52:28]NVStorageSaveData done [14:52:28]ExternCall_PrintAddStr [14:52:28]wPrintStart [14:52:28]Write to MH i2c: 01 00 00 7D 8D 0A [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 7D 8D 00 00 00 00 00 FF 0F 1F [14:52:28]RasterBufferAndPrint [14:52:28]line Счет N : (1)31550 [14:52:28]line ИНН: 02508201610067 [14:52:28]line Контрольно-Кассовый Чек [14:52:28]line ПРОДАЖА [14:52:28]line ТРК (МРК, ГНК) : 11 [14:52:28]line Товар: 2710194210 [14:52:28]line ДТ-К-5 [14:52:28]line 15.750 * 76.20 [14:52:28]line = 1200.15 [14:52:28]line НДС 12% НСП 1% [14:52:28]line > о реализуемом товаре [14:52:28]line ОКРУГЛЕНИЕ: -0.15 [14:52:28]line ИТОГО: 1200.00 [14:52:28]line Внесено: 1200.00 [14:52:28]line СДАЧА: 0.00 [14:52:28]line НСП 1% : 10.62 [14:52:28]line НДС 12% : 127.45 [14:52:28]line Наличными: 1200.00 [14:52:28]line Безнал.: 0.00 [14:52:28]line Место: АЗС № 170 "Партнер Нефть" [14:52:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:52:28]line СНО: Общий режим [14:52:28]line Чек 269 27.10.2024 14:52 [14:52:28]line Смена: 542 ФФД: 1.0 [14:52:28]line ЗНМ: 0300000110 [14:52:28]line РНМ: 0000000000091776 [14:52:28]line Версия ККМ: 001 [14:52:28]line ФМ: 0000000000871754 [14:52:28]line ФД: 192237 [14:52:28]line ФПД: 174545082621328 [14:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192237&fm=174545082621328&tin=02508201610067®Number=0000000000091776&sum=120000 [14:52:29]OFD Sender: Processing packet 192237 [packets to send 75, broken 74] [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00192237 [14:52:29]OFD Sender: To server: pG, [14:52:29]CommunicateWithHost lk.salyk.kg:30040 [14:52:29]ConnectInit lk.salyk.kg [14:52:29]written 0, free lines is 4095 [14:52:29]Connected sock=8 [14: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 37 35 34 0C 01 00 00 00 DA 04 01 2F DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EE 02 00 35 04 06 00 9E BF 71 A5 9D 90 D4 51 02 BB EC 4B 18 32 [14: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 37 35 34 4F 00 00 00 10 9F 47 00 1F 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EE 02 00 F4 03 04 00 87 F8 1D 67 B6 04 01 00 00 E6 DB 15 ED A8 33 88 29 [14:52:29]CommunicateWithHost err = 0 [14:52:29]CheckOFDResponse [14:52:29]1017 (14) - 77093643461234 [14:52:29]1041 (16) - 0000000000871754 [14:52:29]1040 (4) - 192237 [14:52:29]1012 (4) - 27.10.2024 08:23 [14:52:29]1206 (1) - 0 [14:52:29]OFD Sender: Remove packet 192237 [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00192237 [14:52:29]NVStorageDeleteData [14:52:29]Write to MH i2c: 01 00 00 A8 8D 35 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 07 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 07 00 A8 8D 00 00 00 00 00 A5 0C ED [14:52:29]RasterBufferAndPrint [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]written 0, free lines is 3245 [14:52:29]MH_Cut [14:52:29]Write to MH i2c: D1 01 00 AF 8D 01 0E [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 01 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 01 00 AF 8D 00 0D [14:52:29]Write to MH i2c: 01 00 00 B0 8D 3D [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:30]OFD Sender: No OFD packet to send [14:52:30]*** Cut start [14:52:30]*** Partial cut [14:52:30]*** CUTSNS_PIN = 1 [14:52:30]*** CUTSNS_PIN = 0 [14:52:30]*** Brake cut motor [14:52:31]Read from MH i2c: 01 [14:52:31]MH_I2C_Read... [14:52:31]*** Stop cut motor [14:52:31]*** Cut end [14:52:31]Read from MH i2c: 01 07 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 07 00 B0 8D 00 00 00 00 00 FF 0F 52 [14:52:31]process_action close_receipt done [14:52:31]requested_data is exist [14:52:31]produce_requested_data [14:52:31]requested_item fm.sn is exist - process it [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 11 00 00 [14:52:31]Write to MH i2c: E2 08 00 B1 8D 80 11 00 00 00 00 00 00 B8 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 B1 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [14:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:31]wFMCommunicate OK [14:52:31]requested_item fd.num is exist - process it [14:52:31]SAM_PROTO_GetFieldsCounters [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 13 00 00 [14:52:31]Write to MH i2c: E2 08 00 B2 8D 80 13 00 00 00 00 00 00 BB [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 62 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 62 00 B2 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [14: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:31]wFMCommunicate OK [14:52:31]SAM_PROTO_GetFieldsCounters done [14:52:31]requested_item shift.num is exist - process it [14:52:31]requested_item shift.opened is exist - process it [14:52:31]req_shift_opened [14:52:31]FM_GetShiftState [14:52:31]SAM_PROTO_GetShiftState [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 13 01 00 [14:52:31]Write to MH i2c: E2 08 00 B3 8D 80 13 01 00 00 00 00 00 BD [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0E 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0E 00 B3 8D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [14:52:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:52:31]wFMCommunicate OK [14:52:31]SAM_PROTO_GetShiftState done [14:52:31]FM_GetShiftState done [14:52:31]req_shift_opened done [14:52:31]requested_item shift.open_date is exist - process it [14:52:31]req_shift_open_date [14:52:31]req_shift_open_date done [14:52:31]produce_requested_data done [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E3 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 88 [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 54000000005725E3 (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: 45109022+1684931874=1730040896 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [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 E3 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 89 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 41 54 1E 67 22 05 6E 64 12 [14:54:57]Current date/time: 27.10.2024 14:54 [14:54:57]FM_Init [14:54:57]wFMConnect [14:54:57]MH_SAM_On [14:54:57]Write to MH i2c: E0 00 00 08 00 E7 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_init finished! [14:54:57]*** atr: [14:54:57]*** 0F 3B D5 18 FF 81 91 FE [14:54:57]*** 1F C3 80 73 C8 21 10 0A [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]*** 00 00 00 00 00 00 00 00 [14:54:57]Read from MH i2c: E0 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E0 10 00 [14:54:57]MH_I2C_Read... [14:54:57]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 [14:54:57]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:54:57]wFMCommunicate request_size=10 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:54:57]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 11 00 00 [14:54:57]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [14:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:54:57]wFMCommunicate OK [14:54:57]Detected FM SN is 0000000000871754 [14:54:57]Stored FM SN is 0000000000871754 [14:54:57]wFMCommunicate request_size=9 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 16 00 00 04 D7 D4 00 00 [14:54:57]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D7 D4 00 00 00 00 3D [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]FM PIN OK [14:54:57]wFMCommunicate request_size=8 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 14 04 00 03 02 00 01 [14:54:57]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=13 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:54:57]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 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 11 00 00 [14:54:57]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [14:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:54:57]wFMCommunicate OK [14:54:57]DocumentArchiveInit [14:54:57]Start Httpd... [14:54:57]Httpd thread 3067366756 created [14:54:57]Write to MH i2c: 01 00 00 0F 00 0F [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 07 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:54:57]MH Int Process started [14:54:57]Allocated Socket 8 [14:54:57]Bind OK [14:54:57]Listen OK [14:54:57]httpd running on port 8080 [14:54:57]Waiting for new connection... [14:54:57]OFD Sender: Processing packet 192238 [packets to send 75, broken 74] [14:54:57]ProducePacketName [14:54:57]name=ofd_packets/00192238 [14:54:57]OFD Sender: To server: pG, [14:54:57]CommunicateWithHost lk.salyk.kg:30040 [14:54:57]ConnectInit lk.salyk.kg [14:55:02]ConnectInit Can't take IP for lk.salyk.kg [14:55:02]CommunicateWithHost connect error [14:55:02]CommunicateWithHost err = -1 [14:55:02]OFD Sender: Server communicate error [14:55:06]accept exits with 9 [14:55:06]New connection [14:55:06]New thread 3067080036 created [14:55:06]Waiting for new connection... [14:55:06] Sock 9.Parse request [14:55:06]Sock 9.Check first char [14:55:06]Sock 9.First char is OK [14:55:06]request: POST /json_proto HTTP/1.0 [14:55:06]Method: POST [14:55:06]URL: /json_proto [14:55:06]Method is POST - this is cgi request [14:55:06]url: /json_proto [14:55:06]query_string will be loaded in cgi processing [14:55:06]execute_cgi json_proto POST (null) [14:55:06]execute_cgi path=json_proto method=POST [14:55:06]POST find Content-Length [14:55:06]Host: 172.17.63.131:8080 [14:55:06]Content-Length: 215 [14:55:06]Content-Type: application/json [14:55:06] [14:55:06]POST finish read [14:55:06]Found Content-Length = 215 [14:55: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" ] } } [14:55:06]execute_script... [14:55: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" ] } } [14:55:06]POST & json_proto [14:55:06]process_json_proto [14:55:06]json parsed OK: [14:55:06]protocol is kg_v1.0 [14:55:06]action value=get_value [14:55:06]process_action get_value [14:55:06]cmd_get_value [14:55:06]process_action get_value done [14:55:06]requested_data is exist [14:55:06]produce_requested_data [14:55:06]requested_item kkm.sn is exist - process it [14:55:06]requested_item kkm.ver is exist - process it [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 10 00 80 11 00 00 00 00 00 00 8A [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 [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 17 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [14:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 11 00 80 13 00 00 00 00 00 00 8D [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 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 12 00 80 13 01 00 00 00 00 00 8F [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 12 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D0 [14:55:06]RAPDU: 09 00 01 27 8A 1D 67 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 {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192238,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:55:06]process_action_free get_value [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":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192238,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [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:06]accept exits with 6 [14:55:06]New connection [14:55:06]New thread 3066936676 created [14:55:06]Thread 3067080036 joined [14:55:06]Waiting for new connection... [14:55:06] Sock 6.Parse request [14:55:06]Sock 6.Check first char [14:55:06]Sock 6.First char is OK [14:55:06]request: POST /json_proto HTTP/1.0 [14:55:06]Method: POST [14:55:06]URL: /json_proto [14:55:06]Method is POST - this is cgi request [14:55:06]url: /json_proto [14:55:06]query_string will be loaded in cgi processing [14:55:06]execute_cgi json_proto POST (null) [14:55:06]execute_cgi path=json_proto method=POST [14:55:06]POST find Content-Length [14:55:06]Host: 172.17.63.131:8080 [14:55:06]Content-Length: 331 [14:55:06]Content-Type: application/json [14:55:06] [14:55:06]POST finish read [14:55:06]Found Content-Length = 331 [14:55: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" ] } } [14:55:06]execute_script... [14:55: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" ] } } [14:55:06]POST & json_proto [14:55:06]process_json_proto [14:55:06]json parsed OK: [14:55:06]protocol is kg_v1.0 [14:55:06]action value=get_value [14:55:06]process_action get_value [14:55:06]cmd_get_value [14:55:06]process_action get_value done [14:55:06]requested_data is exist [14:55:06]produce_requested_data [14:55:07]requested_item fm.sale.total is exist - process it [14:55:07]SAM_PROTO_GetFMData [14:55:07]wFMCommunicate request_size=4 [14:55:07]MH_SAM_APDU [14:55:07]CAPDU: 80 13 03 00 [14:55:07]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:55:07]Write i2c OK [14:55:07]MH_I2C_Read... [14:55:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:55:07]Read from MH i2c: E2 [14:55:07]MH_I2C_Read... [14:55:07]Read from MH i2c: E2 FD 00 [14:55:07]MH_I2C_Read... [14:55:07]OFD Sender: Processing packet 192238 [packets to send 75, broken 74] [14:55:07]ProducePacketName [14:55:07]name=ofd_packets/00192238 [14:55:07]OFD Sender: To server: pG, [14:55:07]CommunicateWithHost lk.salyk.kg:30040 [14:55:07]ConnectInit lk.salyk.kg [14:55:07]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 B2 EA 02 00 69 04 A3 00 6F 04 04 00 A8 EA 02 00 B1 04 05 00 B1 DA F7 B5 03 70 04 05 00 50 EC BE 88 03 72 04 04 00 61 EE 38 2D 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 2D 81 EB 64 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 EE C8 68 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 3B [14:55:07]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 B2 EA 02 00 69 04 A3 00 6F 04 04 00 A8 EA 02 00 B1 04 05 00 B1 DA F7 B5 03 70 04 05 00 50 EC BE 88 03 72 04 04 00 61 EE 38 2D 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 2D 81 EB 64 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 EE C8 68 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [14:55:07]wFMCommunicate OK [14:55:07]wFMCommunicate request_size=4 [14:55:07]MH_SAM_APDU [14:55:07]CAPDU: 80 17 00 00 [14:55:07]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:55:07]Write i2c OK [14:55:07]MH_I2C_Read... [14:55:07]Connected sock=10 [14:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 6D 07 01 8D AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 CB 53 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EE 02 00 35 04 06 00 F8 CD 04 97 4C B9 A9 66 85 E3 48 3F 36 EA [14:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:07]Read from MH i2c: E2 [14:55:07]MH_I2C_Read... [14:55:07]Read from MH i2c: E2 FD 00 [14:55:07]MH_I2C_Read... [14:55:07]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 A5 [14:55:07]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [14:55:07]wFMCommunicate OK [14:55:07]wFMCommunicate request_size=4 [14:55:07]MH_SAM_APDU [14:55:07]CAPDU: 80 17 00 00 [14:55:07]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:55:07]Write i2c OK [14:55:07]MH_I2C_Read... [14:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 72 47 00 48 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EE 02 00 F4 03 04 00 11 F9 1D 67 B6 04 01 00 00 42 53 41 91 45 4A B1 32 [14:55:07]CommunicateWithHost err = 0 [14:55:07]CheckOFDResponse [14:55:07]1017 (14) - 77093643461234 [14:55:07]1041 (16) - 0000000000871754 [14:55:07]1040 (4) - 192238 [14:55:07]1012 (4) - 27.10.2024 08:25 [14:55:07]1206 (1) - 0 [14:55:07]OFD Sender: Remove packet 192238 [14:55:07]ProducePacketName [14:55:07]name=ofd_packets/00192238 [14:55:07]NVStorageDeleteData [14:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:08]Read from MH i2c: E2 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 FD 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [14:55:08]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [14:55:08]wFMCommunicate OK [14:55:08]wFMCommunicate request_size=4 [14:55:08]MH_SAM_APDU [14:55:08]CAPDU: 80 17 00 00 [14:55:08]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:08]Read from MH i2c: E2 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 FD 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [14:55:08]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [14:55:08]wFMCommunicate OK [14:55:08]wFMCommunicate request_size=4 [14:55:08]MH_SAM_APDU [14:55:08]CAPDU: 80 17 00 00 [14:55:08]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]OFD Sender: No OFD packet to send [14:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [14:55:08]Read from MH i2c: E2 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 DE 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [14:55:08]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:55:08]wFMCommunicate OK [14:55:08]SAM_PROTO_GetFMData done [14:55:08]requested_item fm.sale_refund.total is exist - process it [14:55:08]requested_item fm.buy.total is exist - process it [14:55:08]requested_item shift.sale.total is exist - process it [14:55:08]SAM_PROTO_GetShiftData [14:55:08]wFMCommunicate request_size=4 [14:55:08]MH_SAM_APDU [14:55:08]CAPDU: 80 13 02 00 [14:55:08]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:55:09]Read from MH i2c: E2 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 0E 01 00 00 69 04 9E 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 AA F2 2C 01 70 04 04 00 20 99 13 01 72 04 03 00 8A 59 19 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 97 F8 1F 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 0C AA 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 83 [14:55:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0E 01 00 00 69 04 9E 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 AA F2 2C 01 70 04 04 00 20 99 13 01 72 04 03 00 8A 59 19 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 97 F8 1F 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 0C AA 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [14:55:09]wFMCommunicate OK [14:55:09]wFMCommunicate request_size=4 [14:55:09]MH_SAM_APDU [14:55:09]CAPDU: 80 17 00 00 [14:55:09]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:09]Read from MH i2c: E2 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [14:55:09]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [14:55:09]wFMCommunicate OK [14:55:09]wFMCommunicate request_size=4 [14:55:09]MH_SAM_APDU [14:55:09]CAPDU: 80 17 00 00 [14:55:09]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:09]Read from MH i2c: E2 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [14:55:09]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [14:55:09]wFMCommunicate OK [14:55:09]wFMCommunicate request_size=4 [14:55:09]MH_SAM_APDU [14:55:09]CAPDU: 80 17 00 00 [14:55:09]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:09]Read from MH i2c: E2 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [14:55:09]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [14:55:09]wFMCommunicate OK [14:55:09]wFMCommunicate request_size=4 [14:55:09]MH_SAM_APDU [14:55:09]CAPDU: 80 17 00 00 [14:55:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:10]Read from MH i2c: E2 [14:55:10]MH_I2C_Read... [14:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [14:55:10]Read from MH i2c: E2 CE 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [14:55:10]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:55:10]wFMCommunicate OK [14:55:10]SAM_PROTO_GetShiftData done [14:55:10]requested_item shift.sale.total_cash is exist - process it [14:55:10]requested_item shift.sale_refund.total is exist - process it [14:55:10]requested_item shift.sale_refund.total_cash is exist - process it [14:55:10]requested_item shift.buy.total is exist - process it [14:55:10]requested_item shift.buy.total_cash is exist - process it [14:55:10]produce_requested_data done [14:55:10]produce_requested_data return {"fm.sale.total":159378213.61,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":197229.22,"shift.sale.total_cash":180616.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} [14:55:10]process_action_free get_value [14:55:10]json_value_free [14:55:10]json_value_free done [14:55:10]process_json_proto returns [14:55:10]Send response to host [14:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159378213.61,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":197229.22,"shift.sale.total_cash":180616.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}}} [14:55:10]free response buf [14:55:10]execute_script done [14:55:10]execute_script returns [14:55:10]free content buf [14:55:10]Sock 6.Close socket [14:55:10]Sock 6.Thread stoped [14:55:10]accept exits with 9 [14:55:10]New connection [14:55:10]New thread 3067080036 created [14:55:10]Thread 3066936676 joined [14:55:10]Waiting for new connection... [14:55:10] Sock 9.Parse request [14:55:10]Sock 9.Check first char [14:55:10]Sock 9.First char is OK [14:55:10]request: POST /json_proto HTTP/1.0 [14:55:10]Method: POST [14:55:10]URL: /json_proto [14:55:10]Method is POST - this is cgi request [14:55:10]url: /json_proto [14:55:10]query_string will be loaded in cgi processing [14:55:10]execute_cgi json_proto POST (null) [14:55:10]execute_cgi path=json_proto method=POST [14:55:10]POST find Content-Length [14:55:10]Host: 172.17.63.131:8080 [14:55:10]Content-Length: 144 [14:55:10]Content-Type: application/json [14:55:10] [14:55:10]POST finish read [14:55:10]Found Content-Length = 144 [14:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:55:10]execute_script... [14:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:55:10]POST & json_proto [14:55:10]process_json_proto [14:55:10]json parsed OK: [14:55:10]protocol is kg_v1.0 [14:55:10]action value=print_doc [14:55:10]process_action print_doc [14:55:10]ExternCall_PrintAddStr [14:55:10]wPrintStart [14:55:10]Write to MH i2c: 01 00 00 1D 00 1D [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 07 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [14:55:10]RasterBufferAndPrint [14:55:10]line Счет N : (1)31552 [14:55:10]line ИНН: 02508201610067 [14:55:10]line Контрольно-Кассовый Чек [14:55:10]line ПРОДАЖА [14:55:10]line ТРК (МРК, ГНК) : 12 [14:55:10]line Товар: 2710124130 [14:55:10]line Аи-92-К-5 [14:55:10]line 8.970 * 66.90 [14:55:10]line = 600.09 [14:55:10]line НДС 12% НСП 1% [14:55:10]line > о реализуемом товаре [14:55:10]line ОКРУГЛЕНИЕ: -0.09 [14:55:10]line ИТОГО: 600.00 [14:55:10]line Внесено: 600.00 [14:55:10]line СДАЧА: 0.00 [14:55:10]line НСП 1% : 5.31 [14:55:10]line НДС 12% : 63.73 [14:55:10]line Наличными: 600.00 [14:55:10]line Безнал.: 0.00 [14:55:10]line Место: АЗС № 170 "Партнер Нефть" [14:55:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:55:10]line СНО: Общий режим [14:55:10]line Чек 270 27.10.2024 14:52 [14:55:10]line Смена: 542 ФФД: 1.0 [14:55:10]line ЗНМ: 0300000110 [14:55:10]line РНМ: 0000000000091776 [14:55:10]line Версия ККМ: 001 [14:55:10]line ФМ: 0000000000871754 [14:55:10]line ФД: 192238 [14:55:10]line ФПД: 273559429008569 [14:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192238&fm=273559429008569&tin=02508201610067®Number=0000000000091776&sum=60000 [14:55:10]written 0, free lines is 4095 [14:55:10]Write to MH i2c: 01 00 00 48 00 48 [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 07 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 B5 0C 10 [14:55:10]RasterBufferAndPrint [14:55:10]line [14:55:10]line [14:55:10]line [14:55:10]line [14:55:10]line [14:55:10]written 0, free lines is 3267 [14:55:10]MH_Cut [14:55:10]Write to MH i2c: D1 01 00 4F 00 01 21 [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: D1 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: D1 01 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: D1 01 00 4F 00 00 20 [14:55:10]Write to MH i2c: 01 00 00 50 00 50 [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:11]*** Cut start [14:55:11]*** Partial cut [14:55:11]*** CUTSNS_PIN = 1 [14:55:11]*** CUTSNS_PIN = 0 [14:55:11]*** Brake cut motor [14:55:12]Read from MH i2c: 01 [14:55:12]MH_I2C_Read... [14:55:12]*** Stop cut motor [14:55:12]*** Cut end [14:55:12]Read from MH i2c: 01 07 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [14:55:12]process_action print_doc done [14:55:12]requested_data is exist [14:55:12]produce_requested_data [14:55:12]produce_requested_data return (null) [14:55:12]process_action_free print_doc [14:55:12]json_value_free [14:55:12]json_value_free done [14:55:12]process_json_proto returns [14:55:12]Send response to host [14:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:55:12]free response buf [14:55:12]execute_script done [14:55:12]execute_script returns [14:55:12]free content buf [14:55:12]Sock 9.Close socket [14:55:12]Sock 9.Thread stoped [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:46]accept exits with 6 [14:56:46]New connection [14:56:46]New thread 3066936676 created [14:56:46]Thread 3067080036 joined [14:56:46]Waiting for new connection... [14:56:46] Sock 6.Parse request [14:56:46]Sock 6.Check first char [14:56:46]Sock 6.First char is OK [14:56:46]request: POST /json_proto HTTP/1.0 [14:56:46]Method: POST [14:56:46]URL: /json_proto [14:56:46]Method is POST - this is cgi request [14:56:46]url: /json_proto [14:56:46]query_string will be loaded in cgi processing [14:56:46]execute_cgi json_proto POST (null) [14:56:46]execute_cgi path=json_proto method=POST [14:56:46]POST find Content-Length [14:56:46]Host: 172.17.63.131:8080 [14:56:46]Content-Length: 681 [14:56:46]Content-Type: application/json [14:56:46] [14:56:46]POST finish read [14:56:46]Found Content-Length = 681 [14:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:46]execute_script... [14:56: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)31554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:46]POST & json_proto [14:56:46]process_json_proto [14:56:46]json parsed OK: [14:56:46]protocol is kg_v1.0 [14:56:46]action value=close_receipt [14:56:46]process_action close_receipt [14:56:46]cmd_close_receipt [14:56:46]MH_GetDate [14:56:46]Write to MH i2c: F0 00 00 51 00 40 [14:56:46]Write i2c OK [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: F0 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: F0 09 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: F0 09 00 51 00 00 AE 54 1E 67 22 05 6E 64 C9 [14:56:46]GetLastDocTimeStamp 1730040779 [14:56:46]current date 1730041006 [14:56:46]FM_GetShiftState [14:56:46]SAM_PROTO_GetShiftState [14:56:46]wFMCommunicate request_size=4 [14:56:46]MH_SAM_APDU [14:56:46]CAPDU: 80 13 01 00 [14:56:46]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [14:56:46]Write i2c OK [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 [14:56:46]MH_I2C_Read... [14:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:46]Read from MH i2c: E2 0E 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 10 [14:56:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:56:46]wFMCommunicate OK [14:56:46]SAM_PROTO_GetShiftState done [14:56:46]FM_GetShiftState done [14:56:46]opened in 1729989159 [14:56:46]opened+sec_in_day 1730075559 [14:56:46]quantity*price = 100015 [14:56:46]sum+1 = 100017 [14:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 271 27.10.2024 14:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192239 ФПД: 30787935938098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192239&fm=30787935938098&tin=02508201610067®Number=0000000000091776&sum=100000 [14:56:47]StoreToDocumentArchive [14:56:47]shift 542 fd 192239 [14:56:47]save to /storage/0542/doc_00192239 [14:56:47]save last doc name /storage/0542/doc_00192239 to /storage/kkm_last_doc_name [14:56:47]save OK [14:56:47]Clear old archive folders... [14:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:47]tlvbuf is 0030B630 [14:56:47]SAM_PROTO_ClearQueue [14:56:47]wFMCommunicate request_size=4 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 09 00 00 [14:56:47]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:56:47]RAPDU: 90 00 [14:56:47]wFMCommunicate OK [14:56:47]SAM_PROTO_ClearQueue done [14:56:47]KKMCreateOFDPacket [14:56:47]OFDProtocolAddRootSTLVToBuf [14:56:47]FM_MakeSignedData [14:56:47]FM_MakeSignedData [14:56:47]SAM_PROTO_SignData [14:56:47]wFMCommunicate request_size=4 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 0D 01 02 [14:56:47]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:56:47]RAPDU: 90 00 [14:56:47]wFMCommunicate OK [14:56:47]wFMCommunicate request_size=255 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 AE 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EE 02 00 35 04 06 00 1C [14:56:47]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 AE 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EE 02 00 35 04 06 00 1C 00 00 19 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:56:47]RAPDU: 90 00 [14:56:47]wFMCommunicate OK [14:56:47]wFMCommunicate request_size=10 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 0D 02 02 05 00 5F FC 26 32 [14:56:47]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 00 5F FC 26 32 00 00 99 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [14:56:47]RAPDU: 90 00 [14:56:47]wFMCommunicate OK [14:56:47]wFMCommunicate request_size=4 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 0D 03 02 [14:56:47]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 0B 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 0B 00 63 00 00 36 DA 6C CB 5F 9C E1 47 90 00 49 [14:56:47]RAPDU: 36 DA 6C CB 5F 9C E1 47 90 00 [14:56:47]wFMCommunicate OK [14:56:47]SAM_PROTO_SignData done [14:56:47]FM_MakeSignedData done [14:56:47]CreateOFDProtocolMessage [14:56:47]wFMCommunicate request_size=4 [14:56:47]MH_SAM_APDU [14:56:47]CAPDU: 80 11 00 00 [14:56:47]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:47]Read from MH i2c: E2 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 17 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [14:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:56:47]wFMCommunicate OK [14:56:47]CreateOFDProtocolMessage done [14:56:47]OFDSenderStorePacket 192239 [14:56:47]StoreOFDPacket docnum=192239 [14:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 8F 07 01 2D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 AE 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EE 02 00 35 04 06 00 1C 00 5F FC 26 32 36 DA 6C CB 5F 9C E1 47 [14:56:47]CheckFolder [14:56:47]dirname=/storage/ofd_packets [14:56:47]CheckFolder done [14:56:47]ProducePacketName [14:56:47]name=ofd_packets/00192239 [14:56:47]NVStorageSaveData ofd_packets/00192239 [14:56:47]File name is /storage/ofd_packets/00192239 [14:56:47]Write 301 bytes [14:56:47]NVStorageSaveData done [14:56:47]OFDSenderStorePacket done [14:56:47]KKMCreateOFDPacket done [14:56:47]NVStorageSaveData kkm_last_timestamp [14:56:47]File name is /storage/kkm_last_timestamp [14:56:47]Write 4 bytes [14:56:47]NVStorageSaveData done [14:56:47]ExternCall_PrintAddStr [14:56:47]wPrintStart [14:56:47]Write to MH i2c: 01 00 00 65 00 65 [14:56:47]Write i2c OK [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: 01 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: 01 07 00 [14:56:47]MH_I2C_Read... [14:56:47]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [14:56:47]RasterBufferAndPrint [14:56:47]line Счет N : (1)31554 [14:56:47]line ИНН: 02508201610067 [14:56:47]line Контрольно-Кассовый Чек [14:56:47]line ПРОДАЖА [14:56:47]line ТРК (МРК, ГНК) : 12 [14:56:47]line Товар: 2710124130 [14:56:47]line Аи-92-К-5 [14:56:47]line 14.950 * 66.90 [14:56:47]line = 1000.16 [14:56:47]line НДС 12% НСП 1% [14:56:47]line > о реализуемом товаре [14:56:47]line ОКРУГЛЕНИЕ: -0.16 [14:56:47]line ИТОГО: 1000.00 [14:56:47]line Внесено: 1000.00 [14:56:47]line СДАЧА: 0.00 [14:56:47]line НСП 1% : 8.85 [14:56:47]line НДС 12% : 106.21 [14:56:47]line Наличными: 1000.00 [14:56:47]line Безнал.: 0.00 [14:56:47]line Место: АЗС № 170 "Партнер Нефть" [14:56:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:56:47]line СНО: Общий режим [14:56:47]line Чек 271 27.10.2024 14:56 [14:56:47]line Смена: 542 ФФД: 1.0 [14:56:47]line ЗНМ: 0300000110 [14:56:47]line РНМ: 0000000000091776 [14:56:47]line Версия ККМ: 001 [14:56:47]line ФМ: 0000000000871754 [14:56:47]line ФД: 192239 [14:56:47]line ФПД: 30787935938098 [14:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192239&fm=30787935938098&tin=02508201610067®Number=0000000000091776&sum=100000 [14:56:48]OFD Sender: Processing packet 192239 [packets to send 75, broken 74] [14:56:48]ProducePacketName [14:56:48]name=ofd_packets/00192239 [14:56:48]OFD Sender: To server: pG, [14:56:48]CommunicateWithHost lk.salyk.kg:30040 [14:56:48]ConnectInit lk.salyk.kg [14:56:48]written 0, free lines is 4095 [14:56:48]Connected sock=10 [14:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 8F 07 01 2D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 AE 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EE 02 00 35 04 06 00 1C 00 5F FC 26 32 36 DA 6C CB 5F 9C E1 47 [14:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2C FF 47 00 08 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EE 02 00 F4 03 04 00 75 F9 1D 67 B6 04 01 00 00 81 A7 CB F7 6E D6 CF 9C [14:56:48]CommunicateWithHost err = 0 [14:56:48]CheckOFDResponse [14:56:48]1017 (14) - 77093643461234 [14:56:48]1041 (16) - 0000000000871754 [14:56:48]1040 (4) - 192239 [14:56:48]1012 (4) - 27.10.2024 08:27 [14:56:48]1206 (1) - 0 [14:56:48]OFD Sender: Remove packet 192239 [14:56:48]ProducePacketName [14:56:48]name=ofd_packets/00192239 [14:56:48]NVStorageDeleteData [14:56:48]Write to MH i2c: 01 00 00 90 00 90 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 07 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 B5 0C 58 [14:56:48]RasterBufferAndPrint [14:56:48]line [14:56:48]line [14:56:48]line [14:56:48]line [14:56:48]line [14:56:48]written 0, free lines is 3257 [14:56:48]MH_Cut [14:56:48]Write to MH i2c: D1 01 00 97 00 01 69 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: D1 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: D1 01 00 [14:56:48]MH_I2C_Read... [14:56:48]Read from MH i2c: D1 01 00 97 00 00 68 [14:56:48]Write to MH i2c: 01 00 00 98 00 98 [14:56:48]Write i2c OK [14:56:48]MH_I2C_Read... [14:56:49]OFD Sender: No OFD packet to send [14:56:49]*** Cut start [14:56:49]*** Partial cut [14:56:49]*** CUTSNS_PIN = 1 [14:56:49]*** CUTSNS_PIN = 0 [14:56:49]*** Brake cut motor [14:56:50]Read from MH i2c: 01 [14:56:50]MH_I2C_Read... [14:56:50]*** Stop cut motor [14:56:50]*** Cut end [14:56:50]Read from MH i2c: 01 07 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [14:56:50]process_action close_receipt done [14:56:50]requested_data is exist [14:56:50]produce_requested_data [14:56:50]requested_item fm.sn is exist - process it [14:56:50]wFMCommunicate request_size=4 [14:56:50]MH_SAM_APDU [14:56:50]CAPDU: 80 11 00 00 [14:56:50]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:50]Read from MH i2c: E2 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 17 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [14:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:56:50]wFMCommunicate OK [14:56:50]requested_item fd.num is exist - process it [14:56:50]SAM_PROTO_GetFieldsCounters [14:56:50]wFMCommunicate request_size=4 [14:56:50]MH_SAM_APDU [14:56:50]CAPDU: 80 13 00 00 [14:56:50]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:50]Read from MH i2c: E2 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 62 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:50]wFMCommunicate OK [14:56:50]SAM_PROTO_GetFieldsCounters done [14:56:50]requested_item shift.num is exist - process it [14:56:50]requested_item shift.opened is exist - process it [14:56:50]req_shift_opened [14:56:50]FM_GetShiftState [14:56:50]SAM_PROTO_GetShiftState [14:56:50]wFMCommunicate request_size=4 [14:56:50]MH_SAM_APDU [14:56:50]CAPDU: 80 13 01 00 [14:56:50]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:56:50]Write i2c OK [14:56:50]MH_I2C_Read... [14:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:50]Read from MH i2c: E2 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 0E 00 [14:56:50]MH_I2C_Read... [14:56:50]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 59 [14:56:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:56:50]wFMCommunicate OK [14:56:50]SAM_PROTO_GetShiftState done [14:56:50]FM_GetShiftState done [14:56:50]req_shift_opened done [14:56:50]requested_item shift.open_date is exist - process it [14:56:50]req_shift_open_date [14:56:50]req_shift_open_date done [14:56:50]produce_requested_data done [14:56:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192239,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:56:50]process_action_free close_receipt [14:56:50]json_value_free [14:56:50]json_value_free done [14:56:50]process_json_proto returns [14:56:50]Send response to host [14:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192239,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:56:50]free response buf [14:56:50]execute_script done [14:56:50]execute_script returns [14:56:50]free content buf [14:56:50]Sock 6.Close socket [14:56:50]Sock 6.Thread stoped [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:11]accept exits with 9 [14:57:11]New connection [14:57:11]New thread 3067080036 created [14:57:11]Thread 3066936676 joined [14:57:11]Waiting for new connection... [14:57:11] Sock 9.Parse request [14:57:11]Sock 9.Check first char [14:57:11]Sock 9.First char is OK [14:57:11]request: POST /json_proto HTTP/1.0 [14:57:11]Method: POST [14:57:11]URL: /json_proto [14:57:11]Method is POST - this is cgi request [14:57:11]url: /json_proto [14:57:11]query_string will be loaded in cgi processing [14:57:11]execute_cgi json_proto POST (null) [14:57:11]execute_cgi path=json_proto method=POST [14:57:11]POST find Content-Length [14:57:11]Host: 172.17.63.131:8080 [14:57:11]Content-Length: 678 [14:57:11]Content-Type: application/json [14:57:11] [14:57:11]POST finish read [14:57:11]Found Content-Length = 678 [14:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31553", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:11]execute_script... [14:57: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)31553", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:11]POST & json_proto [14:57:11]process_json_proto [14:57:11]json parsed OK: [14:57:11]protocol is kg_v1.0 [14:57:11]action value=close_receipt [14:57:11]process_action close_receipt [14:57:11]cmd_close_receipt [14:57:11]MH_GetDate [14:57:11]Write to MH i2c: F0 00 00 9C 00 8B [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 09 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 09 00 9C 00 00 C7 54 1E 67 22 05 6E 64 2D [14:57:11]GetLastDocTimeStamp 1730041006 [14:57:11]current date 1730041031 [14:57:11]FM_GetShiftState [14:57:11]SAM_PROTO_GetShiftState [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 13 01 00 [14:57:11]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0E 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5B [14:57:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:57:11]wFMCommunicate OK [14:57:11]SAM_PROTO_GetShiftState done [14:57:11]FM_GetShiftState done [14:57:11]opened in 1729989159 [14:57:11]opened+sec_in_day 1730075559 [14:57:11]quantity*price = 200025 [14:57:11]sum+1 = 200026 [14:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 272 27.10.2024 14:57 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192240 ФПД: 49993101099629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145711&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192240&fm=49993101099629&tin=02508201610067®Number=0000000000091776&sum=200000 [14:57:12]StoreToDocumentArchive [14:57:12]shift 542 fd 192240 [14:57:12]save to /storage/0542/doc_00192240 [14:57:12]save last doc name /storage/0542/doc_00192240 to /storage/kkm_last_doc_name [14:57:12]save OK [14:57:12]Clear old archive folders... [14:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:57:12]tlvbuf is 00302830 [14:57:12]SAM_PROTO_ClearQueue [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 09 00 00 [14:57:12]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_ClearQueue done [14:57:12]KKMCreateOFDPacket [14:57:12]OFDProtocolAddRootSTLVToBuf [14:57:12]FM_MakeSignedData [14:57:12]FM_MakeSignedData [14:57:12]SAM_PROTO_SignData [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 01 02 [14:57:12]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=255 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C7 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EE 02 00 35 04 06 00 2D 77 ED 08 [14:57:12]Write to MH i2c: E2 02 01 AC 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C7 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EE 02 00 35 04 06 00 2D 77 ED 08 00 00 E6 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [14:57:13]RAPDU: 90 00 [14:57:13]wFMCommunicate OK [14:57:13]wFMCommunicate request_size=7 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 0D 02 02 02 42 6D [14:57:13]Write to MH i2c: E2 0A 00 AD 00 80 0D 02 02 02 00 42 6D 00 00 DA [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [14:57:13]RAPDU: 90 00 [14:57:13]wFMCommunicate OK [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 0D 03 02 [14:57:13]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0B 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0B 00 AE 00 00 13 8D D4 5E DD C6 6E 0F 90 00 1C [14:57:13]RAPDU: 13 8D D4 5E DD C6 6E 0F 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_SignData done [14:57:13]FM_MakeSignedData done [14:57:13]CreateOFDProtocolMessage [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 11 00 00 [14:57:13]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 17 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [14:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:57:13]wFMCommunicate OK [14:57:13]CreateOFDProtocolMessage done [14:57:13]OFDSenderStorePacket 192240 [14:57:13]StoreOFDPacket docnum=192240 [14:57:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6C C4 04 01 1C 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C7 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EE 02 00 35 04 06 00 2D 77 ED 08 42 6D 13 8D D4 5E DD C6 6E 0F [14:57:13]CheckFolder [14:57:13]dirname=/storage/ofd_packets [14:57:13]CheckFolder done [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00192240 [14:57:13]NVStorageSaveData ofd_packets/00192240 [14:57:13]File name is /storage/ofd_packets/00192240 [14:57:13]Write 298 bytes [14:57:13]NVStorageSaveData done [14:57:13]OFDSenderStorePacket done [14:57:13]KKMCreateOFDPacket done [14:57:13]NVStorageSaveData kkm_last_timestamp [14:57:13]File name is /storage/kkm_last_timestamp [14:57:13]Write 4 bytes [14:57:13]NVStorageSaveData done [14:57:13]ExternCall_PrintAddStr [14:57:13]wPrintStart [14:57:13]Write to MH i2c: 01 00 00 B0 00 B0 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [14:57:13]RasterBufferAndPrint [14:57:13]line Счет N : (1)31553 [14:57:13]line ИНН: 02508201610067 [14:57:13]line Контрольно-Кассовый Чек [14:57:13]line ПРОДАЖА [14:57:13]line ТРК (МРК, ГНК) : 11 [14:57:13]line Товар: 2710194210 [14:57:13]line ДТ-К-5 [14:57:13]line 26.250 * 76.20 [14:57:13]line = 2000.25 [14:57:13]line НДС 12% НСП 1% [14:57:13]line > о реализуемом товаре [14:57:13]line ОКРУГЛЕНИЕ: -0.25 [14:57:13]line ИТОГО: 2000.00 [14:57:13]line Внесено: 2000.00 [14:57:13]line СДАЧА: 0.00 [14:57:13]line НСП 1% : 17.70 [14:57:13]line НДС 12% : 212.42 [14:57:13]line Наличными: 2000.00 [14:57:13]line Безнал.: 0.00 [14:57:13]line Место: АЗС № 170 "Партнер Нефть" [14:57:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:57:13]line СНО: Общий режим [14:57:13]line Чек 272 27.10.2024 14:57 [14:57:13]line Смена: 542 ФФД: 1.0 [14:57:13]line ЗНМ: 0300000110 [14:57:13]line РНМ: 0000000000091776 [14:57:13]line Версия ККМ: 001 [14:57:13]line ФМ: 0000000000871754 [14:57:13]line ФД: 192240 [14:57:13]line ФПД: 49993101099629 [14:57:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145711&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192240&fm=49993101099629&tin=02508201610067®Number=0000000000091776&sum=200000 [14:57:13]OFD Sender: Processing packet 192240 [packets to send 75, broken 74] [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00192240 [14:57:13]OFD Sender: To server: pG, [14:57:13]CommunicateWithHost lk.salyk.kg:30040 [14:57:13]ConnectInit lk.salyk.kg [14:57:13]written 0, free lines is 4095 [14:57:13]Connected sock=10 [14:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6C C4 04 01 1C 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C7 54 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EE 02 00 35 04 06 00 2D 77 ED 08 42 6D 13 8D D4 5E DD C6 6E 0F [14:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 1E 47 00 7B 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EE 02 00 F4 03 04 00 8F F9 1D 67 B6 04 01 00 00 84 32 72 6C CC 3B D3 9F [14:57:13]CommunicateWithHost err = 0 [14:57:13]CheckOFDResponse [14:57:13]1017 (14) - 77093643461234 [14:57:13]1041 (16) - 0000000000871754 [14:57:13]1040 (4) - 192240 [14:57:13]1012 (4) - 27.10.2024 08:27 [14:57:13]1206 (1) - 0 [14:57:13]OFD Sender: Remove packet 192240 [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00192240 [14:57:13]NVStorageDeleteData [14:57:14]Write to MH i2c: 01 00 00 DB 00 DB [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 AA 0C 98 [14:57:14]RasterBufferAndPrint [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]written 0, free lines is 3248 [14:57:14]MH_Cut [14:57:14]Write to MH i2c: D1 01 00 E2 00 01 B4 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 01 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 01 00 E2 00 00 B3 [14:57:14]Write to MH i2c: 01 00 00 E3 00 E3 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]OFD Sender: No OFD packet to send [14:57:14]*** Cut start [14:57:14]*** Partial cut [14:57:14]*** CUTSNS_PIN = 1 [14:57:15]*** CUTSNS_PIN = 0 [14:57:15]*** Brake cut motor [14:57:15]Read from MH i2c: 01 [14:57:15]MH_I2C_Read... [14:57:15]*** Stop cut motor [14:57:15]*** Cut end [14:57:15]Read from MH i2c: 01 07 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [14:57:15]process_action close_receipt done [14:57:15]requested_data is exist [14:57:15]produce_requested_data [14:57:15]requested_item fm.sn is exist - process it [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 11 00 00 [14:57:15]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [14:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:57:15]wFMCommunicate OK [14:57:15]requested_item fd.num is exist - process it [14:57:15]SAM_PROTO_GetFieldsCounters [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 13 00 00 [14:57:15]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 62 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:57:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_GetFieldsCounters done [14:57:15]requested_item shift.num is exist - process it [14:57:15]requested_item shift.opened is exist - process it [14:57:15]req_shift_opened [14:57:15]FM_GetShiftState [14:57:15]SAM_PROTO_GetShiftState [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 13 01 00 [14:57:15]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [14:57:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_GetShiftState done [14:57:15]FM_GetShiftState done [14:57:15]req_shift_opened done [14:57:15]requested_item shift.open_date is exist - process it [14:57:15]req_shift_open_date [14:57:15]req_shift_open_date done [14:57:15]produce_requested_data done [14:57:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192240,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:57:15]process_action_free close_receipt [14:57:15]json_value_free [14:57:15]json_value_free done [14:57:15]process_json_proto returns [14:57:15]Send response to host [14:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192240,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:57:15]free response buf [14:57:15]execute_script done [14:57:15]execute_script returns [14:57:15]free content buf [14:57:15]Sock 9.Close socket [14:57:15]Sock 9.Thread stoped [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:34]accept exits with 7 [14:58:34]New connection [14:58:34]New thread 3066936676 created [14:58:34]Thread 3067080036 joined [14:58:34]Waiting for new connection... [14:58:34] Sock 7.Parse request [14:58:34]Sock 7.Check first char [14:58:34]Sock 7.First char is OK [14:58:34]request: POST /json_proto HTTP/1.0 [14:58:34]Method: POST [14:58:34]URL: /json_proto [14:58:34]Method is POST - this is cgi request [14:58:34]url: /json_proto [14:58:34]query_string will be loaded in cgi processing [14:58:34]execute_cgi json_proto POST (null) [14:58:34]execute_cgi path=json_proto method=POST [14:58:34]POST find Content-Length [14:58:34]Host: 172.17.63.131:8080 [14:58:34]Content-Length: 677 [14:58:34]Content-Type: application/json [14:58:34] [14:58:34]POST finish read [14:58:34]Found Content-Length = 677 [14:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:34]execute_script... [14:58: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)31555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:34]POST & json_proto [14:58:34]process_json_proto [14:58:34]json parsed OK: [14:58:34]protocol is kg_v1.0 [14:58:34]action value=close_receipt [14:58:34]process_action close_receipt [14:58:34]cmd_close_receipt [14:58:34]MH_GetDate [14:58:34]Write to MH i2c: F0 00 00 E7 00 D6 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 09 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 09 00 E7 00 00 1B 55 1E 67 22 05 6E 64 CD [14:58:34]GetLastDocTimeStamp 1730041031 [14:58:34]current date 1730041115 [14:58:34]FM_GetShiftState [14:58:34]SAM_PROTO_GetShiftState [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 01 00 [14:58:34]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0E 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A6 [14:58:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:58:35]wFMCommunicate OK [14:58:35]SAM_PROTO_GetShiftState done [14:58:35]FM_GetShiftState done [14:58:35]opened in 1729989159 [14:58:35]opened+sec_in_day 1730075559 [14:58:35]quantity*price = 70044 [14:58:35]sum+1 = 70045 [14:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 273 27.10.2024 14:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192241 ФПД: 14978382823844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145835&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192241&fm=14978382823844&tin=02508201610067®Number=0000000000091776&sum=70000 [14:58:36]StoreToDocumentArchive [14:58:36]shift 542 fd 192241 [14:58:36]save to /storage/0542/doc_00192241 [14:58:36]save last doc name /storage/0542/doc_00192241 to /storage/kkm_last_doc_name [14:58:36]save OK [14:58:36]Clear old archive folders... [14:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:36]tlvbuf is 00327140 [14:58:36]SAM_PROTO_ClearQueue [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 09 00 00 [14:58:36]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_ClearQueue done [14:58:36]KKMCreateOFDPacket [14:58:36]OFDProtocolAddRootSTLVToBuf [14:58:36]FM_MakeSignedData [14:58:36]FM_MakeSignedData [14:58:36]SAM_PROTO_SignData [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 0D 01 02 [14:58:36]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]wFMCommunicate request_size=255 [14:58:36]MH_SAM_APDU [14:58: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 1B 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EE 02 00 35 04 06 00 0D [14:58:36]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 1B 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EE 02 00 35 04 06 00 0D 00 00 28 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]wFMCommunicate request_size=10 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 0D 02 02 05 9F 6D 30 01 A4 [14:58:36]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 9F 6D 30 01 A4 00 00 5D [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 0D 03 02 [14:58:36]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0B 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0B 00 F9 00 00 17 6B A1 B0 BE 48 80 F7 90 00 C5 [14:58:36]RAPDU: 17 6B A1 B0 BE 48 80 F7 90 00 [14:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_SignData done [14:58:36]FM_MakeSignedData done [14:58:36]CreateOFDProtocolMessage [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 11 00 00 [14:58:36]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 17 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [14:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:58:36]wFMCommunicate OK [14:58:36]CreateOFDProtocolMessage done [14:58:36]OFDSenderStorePacket 192241 [14:58:36]StoreOFDPacket docnum=192241 [14:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 35 07 01 6C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 1B 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EE 02 00 35 04 06 00 0D 9F 6D 30 01 A4 17 6B A1 B0 BE 48 80 F7 [14:58:36]CheckFolder [14:58:36]dirname=/storage/ofd_packets [14:58:36]CheckFolder done [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00192241 [14:58:36]NVStorageSaveData ofd_packets/00192241 [14:58:36]File name is /storage/ofd_packets/00192241 [14:58:36]Write 301 bytes [14:58:36]NVStorageSaveData done [14:58:36]OFDSenderStorePacket done [14:58:36]KKMCreateOFDPacket done [14:58:36]NVStorageSaveData kkm_last_timestamp [14:58:36]File name is /storage/kkm_last_timestamp [14:58:36]Write 4 bytes [14:58:36]NVStorageSaveData done [14:58:36]ExternCall_PrintAddStr [14:58:36]wPrintStart [14:58:36]Write to MH i2c: 01 00 00 FB 00 FB [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [14:58:36]RasterBufferAndPrint [14:58:36]line Счет N : (1)31555 [14:58:36]line ИНН: 02508201610067 [14:58:36]line Контрольно-Кассовый Чек [14:58:36]line ПРОДАЖА [14:58:36]line ТРК (МРК, ГНК) : 12 [14:58:36]line Товар: 2710124130 [14:58:36]line Аи-92-К-5 [14:58:36]line 10.470 * 66.90 [14:58:36]line = 700.44 [14:58:36]line НДС 12% НСП 1% [14:58:36]line > о реализуемом товаре [14:58:36]line ОКРУГЛЕНИЕ: -0.44 [14:58:36]line ИТОГО: 700.00 [14:58:36]line Внесено: 700.00 [14:58:36]line СДАЧА: 0.00 [14:58:36]line НСП 1% : 6.20 [14:58:36]line НДС 12% : 74.38 [14:58:36]line Наличными: 700.00 [14:58:36]line Безнал.: 0.00 [14:58:36]line Место: АЗС № 170 "Партнер Нефть" [14:58:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:58:36]line СНО: Общий режим [14:58:36]line Чек 273 27.10.2024 14:58 [14:58:36]line Смена: 542 ФФД: 1.0 [14:58:36]line ЗНМ: 0300000110 [14:58:36]line РНМ: 0000000000091776 [14:58:36]line Версия ККМ: 001 [14:58:36]line ФМ: 0000000000871754 [14:58:36]line ФД: 192241 [14:58:36]line ФПД: 14978382823844 [14:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145835&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192241&fm=14978382823844&tin=02508201610067®Number=0000000000091776&sum=70000 [14:58:37]OFD Sender: Processing packet 192241 [packets to send 75, broken 74] [14:58:37]ProducePacketName [14:58:37]name=ofd_packets/00192241 [14:58:37]OFD Sender: To server: pG, [14:58:37]CommunicateWithHost lk.salyk.kg:30040 [14:58:37]ConnectInit lk.salyk.kg [14:58:37]written 0, free lines is 4095 [14:58:37]Connected sock=9 [14:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 35 07 01 6C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 1B 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EE 02 00 35 04 06 00 0D 9F 6D 30 01 A4 17 6B A1 B0 BE 48 80 F7 [14:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5C 8F 47 00 DB AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EE 02 00 F4 03 04 00 E2 F9 1D 67 B6 04 01 00 00 BB 3E B9 72 AC A9 EB 1D [14:58:37]CommunicateWithHost err = 0 [14:58:37]CheckOFDResponse [14:58:37]1017 (14) - 77093643461234 [14:58:37]1041 (16) - 0000000000871754 [14:58:37]1040 (4) - 192241 [14:58:37]1012 (4) - 27.10.2024 08:29 [14:58:37]1206 (1) - 0 [14:58:37]OFD Sender: Remove packet 192241 [14:58:37]ProducePacketName [14:58:37]name=ofd_packets/00192241 [14:58:37]NVStorageDeleteData [14:58:37]Write to MH i2c: 01 00 00 26 01 27 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 AA 0C E4 [14:58:37]RasterBufferAndPrint [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]written 0, free lines is 3248 [14:58:37]MH_Cut [14:58:37]Write to MH i2c: D1 01 00 2D 01 01 00 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 01 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 01 00 2D 01 00 FF [14:58:37]Write to MH i2c: 01 00 00 2E 01 2F [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]OFD Sender: No OFD packet to send [14:58:38]*** Cut start [14:58:38]*** Partial cut [14:58:38]*** CUTSNS_PIN = 1 [14:58:38]*** CUTSNS_PIN = 0 [14:58:38]*** Brake cut motor [14:58:38]Read from MH i2c: 01 [14:58:38]MH_I2C_Read... [14:58:38]*** Stop cut motor [14:58:38]*** Cut end [14:58:38]Read from MH i2c: 01 07 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [14:58:38]process_action close_receipt done [14:58:38]requested_data is exist [14:58:38]produce_requested_data [14:58:38]requested_item fm.sn is exist - process it [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 11 00 00 [14:58:38]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [14:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:58:39]wFMCommunicate OK [14:58:39]requested_item fd.num is exist - process it [14:58:39]SAM_PROTO_GetFieldsCounters [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 13 00 00 [14:58:39]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 62 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:39]wFMCommunicate OK [14:58:39]SAM_PROTO_GetFieldsCounters done [14:58:39]requested_item shift.num is exist - process it [14:58:39]requested_item shift.opened is exist - process it [14:58:39]req_shift_opened [14:58:39]FM_GetShiftState [14:58:39]SAM_PROTO_GetShiftState [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 13 01 00 [14:58:39]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 0E 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F0 [14:58:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:58:39]wFMCommunicate OK [14:58:39]SAM_PROTO_GetShiftState done [14:58:39]FM_GetShiftState done [14:58:39]req_shift_opened done [14:58:39]requested_item shift.open_date is exist - process it [14:58:39]req_shift_open_date [14:58:39]req_shift_open_date done [14:58:39]produce_requested_data done [14:58:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192241,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:58:39]process_action_free close_receipt [14:58:39]json_value_free [14:58:39]json_value_free done [14:58:39]process_json_proto returns [14:58:39]Send response to host [14:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192241,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:58:39]free response buf [14:58:39]execute_script done [14:58:39]execute_script returns [14:58:39]free content buf [14:58:39]Sock 7.Close socket [14:58:39]Sock 7.Thread stoped [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:31]accept exits with 10 [14:59:31]New connection [14:59:31]New thread 3067080036 created [14:59:31]Thread 3066936676 joined [14:59:31]Waiting for new connection... [14:59:31] Sock 10.Parse request [14:59:31]Sock 10.Check first char [14:59:31]Sock 10.First char is OK [14:59:31]request: POST /json_proto HTTP/1.0 [14:59:31]Method: POST [14:59:31]URL: /json_proto [14:59:31]Method is POST - this is cgi request [14:59:31]url: /json_proto [14:59:31]query_string will be loaded in cgi processing [14:59:31]execute_cgi json_proto POST (null) [14:59:31]execute_cgi path=json_proto method=POST [14:59:31]POST find Content-Length [14:59:31]Host: 172.17.63.131:8080 [14:59:31]Content-Length: 860 [14:59:31]Content-Type: application/json [14:59:31] [14:59:31]POST finish read [14:59:31]Found Content-Length = 860 [14:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31556", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]execute_script... [14:59: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)31556", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:31]POST & json_proto [14:59:31]process_json_proto [14:59:31]json parsed OK: [14:59:31]protocol is kg_v1.0 [14:59:31]action value=close_receipt [14:59:31]process_action close_receipt [14:59:31]cmd_close_receipt [14:59:31]MH_GetDate [14:59:31]Write to MH i2c: F0 00 00 32 01 22 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: F0 09 00 32 01 00 53 55 1E 67 22 05 6E 64 51 [14:59:31]GetLastDocTimeStamp 1730041115 [14:59:31]current date 1730041171 [14:59:31]FM_GetShiftState [14:59:31]SAM_PROTO_GetShiftState [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 13 01 00 [14:59:31]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F2 [14:59:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_GetShiftState done [14:59:31]FM_GetShiftState done [14:59:31]opened in 1729989159 [14:59:31]opened+sec_in_day 1730075559 [14:59:31]quantity*price = 80010 [14:59:31]sum+1 = 80011 [14:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 274 27.10.2024 14:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192242 ФПД: 234244850712427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145932&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192242&fm=234244850712427&tin=02508201610067®Number=0000000000091776&sum=80010 [14:59:32]StoreToDocumentArchive [14:59:32]shift 542 fd 192242 [14:59:32]save to /storage/0542/doc_00192242 [14:59:32]save last doc name /storage/0542/doc_00192242 to /storage/kkm_last_doc_name [14:59:32]save OK [14:59:32]Clear old archive folders... [14:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:32]tlvbuf is 00329310 [14:59:32]SAM_PROTO_ClearQueue [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 09 00 00 [14:59:32]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_ClearQueue done [14:59:32]KKMCreateOFDPacket [14:59:32]OFDProtocolAddRootSTLVToBuf [14:59:32]FM_MakeSignedData [14:59:32]FM_MakeSignedData [14:59:32]SAM_PROTO_SignData [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 01 02 [14:59:32]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=255 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 54 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EE 02 00 35 04 06 00 D5 0B 61 1D [14:59:32]Write to MH i2c: E2 02 01 42 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 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 54 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EE 02 00 35 04 06 00 D5 0B 61 1D 00 00 2D [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]OFD Sender: No OFD packet to send [14:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:59:33]RAPDU: 90 00 [14:59:33]wFMCommunicate OK [14:59:33]wFMCommunicate request_size=7 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 0D 02 02 02 FF 6B [14:59:33]Write to MH i2c: E2 0A 00 43 01 80 0D 02 02 02 00 FF 6B 00 00 2C [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [14:59:33]RAPDU: 90 00 [14:59:33]wFMCommunicate OK [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 0D 03 02 [14:59:33]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0B 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0B 00 44 01 00 96 7B 15 BD D7 AF 79 A0 90 00 43 [14:59:33]RAPDU: 96 7B 15 BD D7 AF 79 A0 90 00 [14:59:33]wFMCommunicate OK [14:59:33]SAM_PROTO_SignData done [14:59:33]FM_MakeSignedData done [14:59:33]CreateOFDProtocolMessage [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 11 00 00 [14:59:33]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [14:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:33]wFMCommunicate OK [14:59:33]CreateOFDProtocolMessage done [14:59:33]OFDSenderStorePacket 192242 [14:59:33]StoreOFDPacket docnum=192242 [14:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C3 3D 04 01 75 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 54 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EE 02 00 35 04 06 00 D5 0B 61 1D FF 6B 96 7B 15 BD D7 AF 79 A0 [14:59:33]CheckFolder [14:59:33]dirname=/storage/ofd_packets [14:59:33]CheckFolder done [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00192242 [14:59:33]NVStorageSaveData ofd_packets/00192242 [14:59:33]File name is /storage/ofd_packets/00192242 [14:59:33]Write 298 bytes [14:59:33]NVStorageSaveData done [14:59:33]OFDSenderStorePacket done [14:59:33]KKMCreateOFDPacket done [14:59:33]NVStorageSaveData kkm_last_timestamp [14:59:33]File name is /storage/kkm_last_timestamp [14:59:33]Write 4 bytes [14:59:33]NVStorageSaveData done [14:59:33]ExternCall_PrintAddStr [14:59:33]wPrintStart [14:59:33]Write to MH i2c: 01 00 00 46 01 47 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [14:59:33]RasterBufferAndPrint [14:59:33]line Счет N : (1)31556 [14:59:33]line ИНН: 02508201610067 [14:59:33]line Контрольно-Кассовый Чек [14:59:33]line ПРОДАЖА [14:59:33]line ТРК (МРК, ГНК) : 11 [14:59:33]line Товар: 2710194210 [14:59:33]line ДТ-К-5 [14:59:33]line 10.500 * 76.20 [14:59:33]line = 800.10 [14:59:33]line НДС 12% НСП 1% [14:59:33]line > о реализуемом товаре [14:59:33]line ИТОГО: 800.10 [14:59:33]line НСП 1% : 7.08 [14:59:33]line НДС 12% : 84.97 [14:59:33]line Наличными: 0.00 [14:59:33]line Безнал.: 800.10 [14:59:33]line Место: АЗС № 170 "Партнер Нефть" [14:59:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:59:33]line СНО: Общий режим [14:59:33]line Чек 274 27.10.2024 14:59 [14:59:33]line Смена: 542 ФФД: 1.0 [14:59:33]line ЗНМ: 0300000110 [14:59:33]line РНМ: 0000000000091776 [14:59:33]line Версия ККМ: 001 [14:59:33]line Платежная система: Кыргызкоммерцбанк [14:59:33]line ФМ: 0000000000871754 [14:59:33]line ФД: 192242 [14:59:33]line ФПД: 234244850712427 [14:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145932&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192242&fm=234244850712427&tin=02508201610067®Number=0000000000091776&sum=80010 [14:59:33]OFD Sender: Processing packet 192242 [packets to send 75, broken 74] [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00192242 [14:59:33]OFD Sender: To server: pG, [14:59:33]CommunicateWithHost lk.salyk.kg:30040 [14:59:33]ConnectInit lk.salyk.kg [14:59:33]written 0, free lines is 4095 [14:59:33]Connected sock=9 [14:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C3 3D 04 01 75 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 54 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EE 02 00 35 04 06 00 D5 0B 61 1D FF 6B 96 7B 15 BD D7 AF 79 A0 [14:59:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 43 47 00 58 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EE 02 00 F4 03 04 00 1B FA 1D 67 B6 04 01 00 00 B3 A3 E9 4C C0 4A 2B E8 [14:59:34]CommunicateWithHost err = 0 [14:59:34]CheckOFDResponse [14:59:34]1017 (14) - 77093643461234 [14:59:34]1041 (16) - 0000000000871754 [14:59:34]1040 (4) - 192242 [14:59:34]1012 (4) - 27.10.2024 08:30 [14:59:34]1206 (1) - 0 [14:59:34]OFD Sender: Remove packet 192242 [14:59:34]ProducePacketName [14:59:34]name=ofd_packets/00192242 [14:59:34]NVStorageDeleteData [14:59:34]Write to MH i2c: 01 00 00 70 01 71 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 C8 0C 4C [14:59:34]RasterBufferAndPrint [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]line [14:59:34]written 0, free lines is 3280 [14:59:34]MH_Cut [14:59:34]Write to MH i2c: D1 01 00 77 01 01 4A [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 01 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: D1 01 00 77 01 00 49 [14:59:34]Write to MH i2c: 01 00 00 78 01 79 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]OFD Sender: No OFD packet to send [14:59:34]*** Cut start [14:59:34]*** Partial cut [14:59:34]*** CUTSNS_PIN = 1 [14:59:35]*** CUTSNS_PIN = 0 [14:59:35]*** Brake cut motor [14:59:35]Read from MH i2c: 01 [14:59:35]MH_I2C_Read... [14:59:35]*** Stop cut motor [14:59:35]*** Cut end [14:59:35]Read from MH i2c: 01 07 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [14:59:35]process_action close_receipt done [14:59:35]requested_data is exist [14:59:35]produce_requested_data [14:59:35]requested_item fm.sn is exist - process it [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 11 00 00 [14:59:35]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [14:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:35]wFMCommunicate OK [14:59:35]requested_item fd.num is exist - process it [14:59:35]SAM_PROTO_GetFieldsCounters [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 00 00 [14:59:35]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 62 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [14:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetFieldsCounters done [14:59:35]requested_item shift.num is exist - process it [14:59:35]requested_item shift.opened is exist - process it [14:59:35]req_shift_opened [14:59:35]FM_GetShiftState [14:59:35]SAM_PROTO_GetShiftState [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 01 00 [14:59:35]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3A [14:59:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetShiftState done [14:59:35]FM_GetShiftState done [14:59:35]req_shift_opened done [14:59:35]requested_item shift.open_date is exist - process it [14:59:35]req_shift_open_date [14:59:35]req_shift_open_date done [14:59:35]produce_requested_data done [14:59:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192242,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [14:59:35]process_action_free close_receipt [14:59:35]json_value_free [14:59:35]json_value_free done [14:59:35]process_json_proto returns [14:59:35]Send response to host [14:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192242,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [14:59:35]free response buf [14:59:35]execute_script done [14:59:35]execute_script returns [14:59:35]free content buf [14:59:35]Sock 10.Close socket [14:59:35]Sock 10.Thread stoped [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]accept exits with 7 [15:00:14]New connection [15:00:14]New thread 3066936676 created [15:00:14]Thread 3067080036 joined [15:00:14]Waiting for new connection... [15:00:14] Sock 7.Parse request [15:00:14]Sock 7.Check first char [15:00:14]Sock 7.First char is OK [15:00:14]request: POST /json_proto HTTP/1.0 [15:00:14]Method: POST [15:00:14]URL: /json_proto [15:00:14]Method is POST - this is cgi request [15:00:14]url: /json_proto [15:00:14]query_string will be loaded in cgi processing [15:00:14]execute_cgi json_proto POST (null) [15:00:14]execute_cgi path=json_proto method=POST [15:00:14]POST find Content-Length [15:00:14]Host: 172.17.63.131:8080 [15:00:14]Content-Length: 676 [15:00:14]Content-Type: application/json [15:00:14] [15:00:14]POST finish read [15:00:14]Found Content-Length = 676 [15:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:14]execute_script... [15:00: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)31557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:14]POST & json_proto [15:00:14]process_json_proto [15:00:14]json parsed OK: [15:00:14]protocol is kg_v1.0 [15:00:14]action value=close_receipt [15:00:14]process_action close_receipt [15:00:14]cmd_close_receipt [15:00:14]MH_GetDate [15:00:14]Write to MH i2c: F0 00 00 7C 01 6C [15:00:14]Write i2c OK [15:00:14]MH_I2C_Read... [15:00:14]Read from MH i2c: F0 [15:00:14]MH_I2C_Read... [15:00:14]Read from MH i2c: F0 09 00 [15:00:14]MH_I2C_Read... [15:00:14]Read from MH i2c: F0 09 00 7C 01 00 7E 55 1E 67 22 05 6E 64 C6 [15:00:14]GetLastDocTimeStamp 1730041172 [15:00:14]current date 1730041214 [15:00:14]FM_GetShiftState [15:00:14]SAM_PROTO_GetShiftState [15:00:14]wFMCommunicate request_size=4 [15:00:14]MH_SAM_APDU [15:00:14]CAPDU: 80 13 01 00 [15:00:14]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [15:00:14]Write i2c OK [15:00:14]MH_I2C_Read... [15:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:14]Read from MH i2c: E2 [15:00:14]MH_I2C_Read... [15:00:14]Read from MH i2c: E2 0E 00 [15:00:14]MH_I2C_Read... [15:00:14]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3C [15:00:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:00:14]wFMCommunicate OK [15:00:14]SAM_PROTO_GetShiftState done [15:00:14]FM_GetShiftState done [15:00:14]opened in 1729989159 [15:00:14]opened+sec_in_day 1730075559 [15:00:14]quantity*price = 33048 [15:00:14]sum+1 = 33050 [15:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 275 27.10.2024 15:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192243 ФПД: 131422525138104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192243&fm=131422525138104&tin=02508201610067®Number=0000000000091776&sum=33000 [15:00:15]StoreToDocumentArchive [15:00:15]shift 542 fd 192243 [15:00:15]save to /storage/0542/doc_00192243 [15:00:15]save last doc name /storage/0542/doc_00192243 to /storage/kkm_last_doc_name [15:00:15]save OK [15:00:15]Clear old archive folders... [15:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:15]tlvbuf is 002BF660 [15:00:15]SAM_PROTO_ClearQueue [15:00:15]wFMCommunicate request_size=4 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 09 00 00 [15:00:15]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [15:00:15]RAPDU: 90 00 [15:00:15]wFMCommunicate OK [15:00:15]SAM_PROTO_ClearQueue done [15:00:15]KKMCreateOFDPacket [15:00:15]OFDProtocolAddRootSTLVToBuf [15:00:15]FM_MakeSignedData [15:00:15]FM_MakeSignedData [15:00:15]SAM_PROTO_SignData [15:00:15]wFMCommunicate request_size=4 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 0D 01 02 [15:00:15]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [15:00:15]RAPDU: 90 00 [15:00:15]wFMCommunicate OK [15:00:15]wFMCommunicate request_size=255 [15:00:15]MH_SAM_APDU [15:00: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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EE 02 00 35 04 06 00 77 [15:00:15]Write to MH i2c: E2 02 01 8C 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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EE 02 00 35 04 06 00 77 00 00 E7 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [15:00:15]RAPDU: 90 00 [15:00:15]wFMCommunicate OK [15:00:15]wFMCommunicate request_size=10 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 0D 02 02 05 87 30 ED 24 B8 [15:00:15]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 87 30 ED 24 B8 00 00 92 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [15:00:15]RAPDU: 90 00 [15:00:15]wFMCommunicate OK [15:00:15]wFMCommunicate request_size=4 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 0D 03 02 [15:00:15]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 0B 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 0B 00 8E 01 00 AD D5 FF D4 86 B7 45 3A 90 00 1C [15:00:15]RAPDU: AD D5 FF D4 86 B7 45 3A 90 00 [15:00:15]wFMCommunicate OK [15:00:15]SAM_PROTO_SignData done [15:00:15]FM_MakeSignedData done [15:00:15]CreateOFDProtocolMessage [15:00:15]wFMCommunicate request_size=4 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 11 00 00 [15:00:15]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 17 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [15:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:00:15]wFMCommunicate OK [15:00:15]CreateOFDProtocolMessage done [15:00:15]OFDSenderStorePacket 192243 [15:00:15]StoreOFDPacket docnum=192243 [15:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 54 07 01 E7 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EE 02 00 35 04 06 00 77 87 30 ED 24 B8 AD D5 FF D4 86 B7 45 3A [15:00:15]CheckFolder [15:00:15]dirname=/storage/ofd_packets [15:00:15]CheckFolder done [15:00:15]ProducePacketName [15:00:15]name=ofd_packets/00192243 [15:00:15]NVStorageSaveData ofd_packets/00192243 [15:00:15]File name is /storage/ofd_packets/00192243 [15:00:15]Write 301 bytes [15:00:15]NVStorageSaveData done [15:00:15]OFDSenderStorePacket done [15:00:15]KKMCreateOFDPacket done [15:00:15]NVStorageSaveData kkm_last_timestamp [15:00:15]File name is /storage/kkm_last_timestamp [15:00:15]Write 4 bytes [15:00:15]NVStorageSaveData done [15:00:15]ExternCall_PrintAddStr [15:00:15]wPrintStart [15:00:15]Write to MH i2c: 01 00 00 90 01 91 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: 01 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: 01 07 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [15:00:15]RasterBufferAndPrint [15:00:15]line Счет N : (1)31557 [15:00:15]line ИНН: 02508201610067 [15:00:15]line Контрольно-Кассовый Чек [15:00:15]line ПРОДАЖА [15:00:15]line ТРК (МРК, ГНК) : 12 [15:00:15]line Товар: 2710124130 [15:00:15]line Аи-92-К-5 [15:00:15]line 4.940 * 66.90 [15:00:15]line = 330.49 [15:00:15]line НДС 12% НСП 1% [15:00:15]line > о реализуемом товаре [15:00:15]line ОКРУГЛЕНИЕ: -0.49 [15:00:15]line ИТОГО: 330.00 [15:00:15]line Внесено: 330.00 [15:00:15]line СДАЧА: 0.00 [15:00:15]line НСП 1% : 2.92 [15:00:15]line НДС 12% : 35.10 [15:00:15]line Наличными: 330.00 [15:00:15]line Безнал.: 0.00 [15:00:15]line Место: АЗС № 170 "Партнер Нефть" [15:00:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:00:15]line СНО: Общий режим [15:00:15]line Чек 275 27.10.2024 15:00 [15:00:15]line Смена: 542 ФФД: 1.0 [15:00:15]line ЗНМ: 0300000110 [15:00:15]line РНМ: 0000000000091776 [15:00:15]line Версия ККМ: 001 [15:00:15]line ФМ: 0000000000871754 [15:00:15]line ФД: 192243 [15:00:15]line ФПД: 131422525138104 [15:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150014&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192243&fm=131422525138104&tin=02508201610067®Number=0000000000091776&sum=33000 [15:00:16]OFD Sender: Processing packet 192243 [packets to send 75, broken 74] [15:00:16]ProducePacketName [15:00:16]name=ofd_packets/00192243 [15:00:16]OFD Sender: To server: pG, [15:00:16]CommunicateWithHost lk.salyk.kg:30040 [15:00:16]ConnectInit lk.salyk.kg [15:00:16]written 0, free lines is 4095 [15:00:16]Connected sock=10 [15:00:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 54 07 01 E7 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EE 02 00 35 04 06 00 77 87 30 ED 24 B8 AD D5 FF D4 86 B7 45 3A [15:00:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD A8 47 00 24 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EE 02 00 F4 03 04 00 45 FA 1D 67 B6 04 01 00 00 9B C4 F7 1A AC EC 8E 1D [15:00:16]CommunicateWithHost err = 0 [15:00:16]CheckOFDResponse [15:00:16]1017 (14) - 77093643461234 [15:00:16]1041 (16) - 0000000000871754 [15:00:16]1040 (4) - 192243 [15:00:16]1012 (4) - 27.10.2024 08:31 [15:00:16]1206 (1) - 0 [15:00:16]OFD Sender: Remove packet 192243 [15:00:16]ProducePacketName [15:00:16]name=ofd_packets/00192243 [15:00:16]NVStorageDeleteData [15:00:16]Write to MH i2c: 01 00 00 BB 01 BC [15:00:16]Write i2c OK [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: 01 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: 01 07 00 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 B2 0C 81 [15:00:16]RasterBufferAndPrint [15:00:16]line [15:00:16]line [15:00:16]line [15:00:16]line [15:00:16]line [15:00:16]written 0, free lines is 3254 [15:00:16]MH_Cut [15:00:16]Write to MH i2c: D1 01 00 C2 01 01 95 [15:00:16]Write i2c OK [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: D1 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: D1 01 00 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: D1 01 00 C2 01 00 94 [15:00:16]Write to MH i2c: 01 00 00 C3 01 C4 [15:00:16]Write i2c OK [15:00:16]MH_I2C_Read... [15:00:17]OFD Sender: No OFD packet to send [15:00:17]*** Cut start [15:00:17]*** Partial cut [15:00:17]*** CUTSNS_PIN = 1 [15:00:17]*** CUTSNS_PIN = 0 [15:00:17]*** Brake cut motor [15:00:18]Read from MH i2c: 01 [15:00:18]MH_I2C_Read... [15:00:18]*** Stop cut motor [15:00:18]*** Cut end [15:00:18]Read from MH i2c: 01 07 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [15:00:18]process_action close_receipt done [15:00:18]requested_data is exist [15:00:18]produce_requested_data [15:00:18]requested_item fm.sn is exist - process it [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 11 00 00 [15:00:18]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 17 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [15:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:00:18]wFMCommunicate OK [15:00:18]requested_item fd.num is exist - process it [15:00:18]SAM_PROTO_GetFieldsCounters [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 13 00 00 [15:00:18]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 62 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:18]wFMCommunicate OK [15:00:18]SAM_PROTO_GetFieldsCounters done [15:00:18]requested_item shift.num is exist - process it [15:00:18]requested_item shift.opened is exist - process it [15:00:18]req_shift_opened [15:00:18]FM_GetShiftState [15:00:18]SAM_PROTO_GetShiftState [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 13 01 00 [15:00:18]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:18]Read from MH i2c: E2 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 0E 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 85 [15:00:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:00:18]wFMCommunicate OK [15:00:18]SAM_PROTO_GetShiftState done [15:00:18]FM_GetShiftState done [15:00:18]req_shift_opened done [15:00:18]requested_item shift.open_date is exist - process it [15:00:18]req_shift_open_date [15:00:18]req_shift_open_date done [15:00:18]produce_requested_data done [15:00:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192243,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:00:18]process_action_free close_receipt [15:00:18]json_value_free [15:00:18]json_value_free done [15:00:18]process_json_proto returns [15:00:18]Send response to host [15:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192243,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:00:18]free response buf [15:00:18]execute_script done [15:00:18]execute_script returns [15:00:18]free content buf [15:00:18]Sock 7.Close socket [15:00:18]Sock 7.Thread stoped [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:17]accept exits with 9 [15:02:17]New connection [15:02:17]New thread 3067080036 created [15:02:17]Thread 3066936676 joined [15:02:17]Waiting for new connection... [15:02:17] Sock 9.Parse request [15:02:17]Sock 9.Check first char [15:02:17]Sock 9.First char is OK [15:02:17]request: POST /json_proto HTTP/1.0 [15:02:17]Method: POST [15:02:17]URL: /json_proto [15:02:17]Method is POST - this is cgi request [15:02:17]url: /json_proto [15:02:17]query_string will be loaded in cgi processing [15:02:17]execute_cgi json_proto POST (null) [15:02:17]execute_cgi path=json_proto method=POST [15:02:17]POST find Content-Length [15:02:17]Host: 172.17.63.131:8080 [15:02:17]Content-Length: 678 [15:02:17]Content-Type: application/json [15:02:17] [15:02:17]POST finish read [15:02:17]Found Content-Length = 678 [15:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31558", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:17]execute_script... [15:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31558", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:17]POST & json_proto [15:02:17]process_json_proto [15:02:17]json parsed OK: [15:02:17]protocol is kg_v1.0 [15:02:17]action value=close_receipt [15:02:17]process_action close_receipt [15:02:17]cmd_close_receipt [15:02:17]MH_GetDate [15:02:17]Write to MH i2c: F0 00 00 C7 01 B7 [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: F0 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: F0 09 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: F0 09 00 C7 01 00 FA 55 1E 67 22 05 6E 64 8D [15:02:17]GetLastDocTimeStamp 1730041214 [15:02:17]current date 1730041338 [15:02:17]FM_GetShiftState [15:02:17]SAM_PROTO_GetShiftState [15:02:17]wFMCommunicate request_size=4 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 13 01 00 [15:02:17]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:17]Read from MH i2c: E2 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 0E 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 87 [15:02:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:02:17]wFMCommunicate OK [15:02:17]SAM_PROTO_GetShiftState done [15:02:17]FM_GetShiftState done [15:02:17]opened in 1729989159 [15:02:17]opened+sec_in_day 1730075559 [15:02:17]quantity*price = 200025 [15:02:17]sum+1 = 200026 [15:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 276 27.10.2024 15:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192244 ФПД: 205427601337249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150218&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192244&fm=205427601337249&tin=02508201610067®Number=0000000000091776&sum=200000 [15:02:18]StoreToDocumentArchive [15:02:18]shift 542 fd 192244 [15:02:18]save to /storage/0542/doc_00192244 [15:02:18]save last doc name /storage/0542/doc_00192244 to /storage/kkm_last_doc_name [15:02:18]save OK [15:02:18]Clear old archive folders... [15:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:02:18]tlvbuf is 00328DE0 [15:02:18]SAM_PROTO_ClearQueue [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 09 00 00 [15:02:18]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [15:02:18]RAPDU: 90 00 [15:02:18]wFMCommunicate OK [15:02:18]SAM_PROTO_ClearQueue done [15:02:18]KKMCreateOFDPacket [15:02:18]OFDProtocolAddRootSTLVToBuf [15:02:18]FM_MakeSignedData [15:02:18]FM_MakeSignedData [15:02:18]SAM_PROTO_SignData [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 0D 01 02 [15:02:18]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [15:02:19]RAPDU: 90 00 [15:02:19]wFMCommunicate OK [15:02:19]wFMCommunicate request_size=255 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FA 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EE 02 00 35 04 06 00 BA D5 D7 34 [15:02:19]Write to MH i2c: E2 02 01 D7 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FA 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EE 02 00 35 04 06 00 BA D5 D7 34 00 00 4F [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [15:02:19]RAPDU: 90 00 [15:02:19]wFMCommunicate OK [15:02:19]wFMCommunicate request_size=7 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 0D 02 02 02 6B A1 [15:02:19]Write to MH i2c: E2 0A 00 D8 01 80 0D 02 02 02 00 6B A1 00 00 63 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [15:02:19]RAPDU: 90 00 [15:02:19]wFMCommunicate OK [15:02:19]wFMCommunicate request_size=4 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 0D 03 02 [15:02:19]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 0B 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 0B 00 D9 01 00 A1 23 66 03 3E 33 25 F7 90 00 10 [15:02:19]RAPDU: A1 23 66 03 3E 33 25 F7 90 00 [15:02:19]wFMCommunicate OK [15:02:19]SAM_PROTO_SignData done [15:02:19]FM_MakeSignedData done [15:02:19]CreateOFDProtocolMessage [15:02:19]wFMCommunicate request_size=4 [15:02:19]MH_SAM_APDU [15:02:19]CAPDU: 80 11 00 00 [15:02:19]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:19]Read from MH i2c: E2 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 17 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [15:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:02:19]wFMCommunicate OK [15:02:19]CreateOFDProtocolMessage done [15:02:19]OFDSenderStorePacket 192244 [15:02:19]StoreOFDPacket docnum=192244 [15:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7E CB 04 01 6F 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FA 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EE 02 00 35 04 06 00 BA D5 D7 34 6B A1 A1 23 66 03 3E 33 25 F7 [15:02:19]CheckFolder [15:02:19]dirname=/storage/ofd_packets [15:02:19]CheckFolder done [15:02:19]ProducePacketName [15:02:19]name=ofd_packets/00192244 [15:02:19]NVStorageSaveData ofd_packets/00192244 [15:02:19]File name is /storage/ofd_packets/00192244 [15:02:19]Write 298 bytes [15:02:19]NVStorageSaveData done [15:02:19]OFDSenderStorePacket done [15:02:19]KKMCreateOFDPacket done [15:02:19]NVStorageSaveData kkm_last_timestamp [15:02:19]File name is /storage/kkm_last_timestamp [15:02:19]Write 4 bytes [15:02:19]NVStorageSaveData done [15:02:19]ExternCall_PrintAddStr [15:02:19]wPrintStart [15:02:19]Write to MH i2c: 01 00 00 DB 01 DC [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [15:02:19]RasterBufferAndPrint [15:02:19]line Счет N : (1)31558 [15:02:19]line ИНН: 02508201610067 [15:02:19]line Контрольно-Кассовый Чек [15:02:19]line ПРОДАЖА [15:02:19]line ТРК (МРК, ГНК) : 11 [15:02:19]line Товар: 2710194210 [15:02:19]line ДТ-К-5 [15:02:19]line 26.250 * 76.20 [15:02:19]line = 2000.25 [15:02:19]line НДС 12% НСП 1% [15:02:19]line > о реализуемом товаре [15:02:19]line ОКРУГЛЕНИЕ: -0.25 [15:02:19]line ИТОГО: 2000.00 [15:02:19]line Внесено: 2000.00 [15:02:19]line СДАЧА: 0.00 [15:02:19]line НСП 1% : 17.70 [15:02:19]line НДС 12% : 212.42 [15:02:19]line Наличными: 2000.00 [15:02:19]line Безнал.: 0.00 [15:02:19]line Место: АЗС № 170 "Партнер Нефть" [15:02:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:02:19]line СНО: Общий режим [15:02:19]line Чек 276 27.10.2024 15:02 [15:02:19]line Смена: 542 ФФД: 1.0 [15:02:19]line ЗНМ: 0300000110 [15:02:19]line РНМ: 0000000000091776 [15:02:19]line Версия ККМ: 001 [15:02:19]line ФМ: 0000000000871754 [15:02:19]line ФД: 192244 [15:02:19]line ФПД: 205427601337249 [15:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150218&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192244&fm=205427601337249&tin=02508201610067®Number=0000000000091776&sum=200000 [15:02:19]written 0, free lines is 4095 [15:02:19]OFD Sender: Processing packet 192244 [packets to send 75, broken 74] [15:02:19]ProducePacketName [15:02:19]name=ofd_packets/00192244 [15:02:19]OFD Sender: To server: pG, [15:02:19]CommunicateWithHost lk.salyk.kg:30040 [15:02:19]ConnectInit lk.salyk.kg [15:02:19]Connected sock=7 [15:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7E CB 04 01 6F 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FA 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EE 02 00 35 04 06 00 BA D5 D7 34 6B A1 A1 23 66 03 3E 33 25 F7 [15:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 50 47 00 76 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EE 02 00 F4 03 04 00 C1 FA 1D 67 B6 04 01 00 00 C7 9C E6 A6 BA C9 AB AA [15:02:20]CommunicateWithHost err = 0 [15:02:20]CheckOFDResponse [15:02:20]1017 (14) - 77093643461234 [15:02:20]1041 (16) - 0000000000871754 [15:02:20]1040 (4) - 192244 [15:02:20]1012 (4) - 27.10.2024 08:33 [15:02:20]1206 (1) - 0 [15:02:20]OFD Sender: Remove packet 192244 [15:02:20]ProducePacketName [15:02:20]name=ofd_packets/00192244 [15:02:20]NVStorageDeleteData [15:02:20]Write to MH i2c: 01 00 00 06 02 08 [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: 01 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: 01 07 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 B4 0C CF [15:02:20]RasterBufferAndPrint [15:02:20]line [15:02:20]line [15:02:20]line [15:02:20]line [15:02:20]line [15:02:20]written 0, free lines is 3258 [15:02:20]MH_Cut [15:02:20]Write to MH i2c: D1 01 00 0D 02 01 E1 [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: D1 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: D1 01 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: D1 01 00 0D 02 00 E0 [15:02:20]Write to MH i2c: 01 00 00 0E 02 10 [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]OFD Sender: No OFD packet to send [15:02:21]*** Cut start [15:02:21]*** Partial cut [15:02:21]*** CUTSNS_PIN = 1 [15:02:21]*** CUTSNS_PIN = 0 [15:02:21]*** Brake cut motor [15:02:21]Read from MH i2c: 01 [15:02:21]MH_I2C_Read... [15:02:21]*** Stop cut motor [15:02:21]*** Cut end [15:02:21]Read from MH i2c: 01 07 00 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [15:02:21]process_action close_receipt done [15:02:21]requested_data is exist [15:02:21]produce_requested_data [15:02:21]requested_item fm.sn is exist - process it [15:02:21]wFMCommunicate request_size=4 [15:02:21]MH_SAM_APDU [15:02:21]CAPDU: 80 11 00 00 [15:02:21]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [15:02:21]Write i2c OK [15:02:21]MH_I2C_Read... [15:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:21]Read from MH i2c: E2 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 17 00 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [15:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:02:21]wFMCommunicate OK [15:02:21]requested_item fd.num is exist - process it [15:02:21]SAM_PROTO_GetFieldsCounters [15:02:21]wFMCommunicate request_size=4 [15:02:21]MH_SAM_APDU [15:02:21]CAPDU: 80 13 00 00 [15:02:21]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [15:02:21]Write i2c OK [15:02:21]MH_I2C_Read... [15:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:21]Read from MH i2c: E2 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 62 00 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [15:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:21]wFMCommunicate OK [15:02:21]SAM_PROTO_GetFieldsCounters done [15:02:21]requested_item shift.num is exist - process it [15:02:21]requested_item shift.opened is exist - process it [15:02:21]req_shift_opened [15:02:21]FM_GetShiftState [15:02:21]SAM_PROTO_GetShiftState [15:02:21]wFMCommunicate request_size=4 [15:02:21]MH_SAM_APDU [15:02:21]CAPDU: 80 13 01 00 [15:02:21]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [15:02:21]Write i2c OK [15:02:21]MH_I2C_Read... [15:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:21]Read from MH i2c: E2 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 0E 00 [15:02:21]MH_I2C_Read... [15:02:21]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [15:02:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:02:21]wFMCommunicate OK [15:02:21]SAM_PROTO_GetShiftState done [15:02:21]FM_GetShiftState done [15:02:21]req_shift_opened done [15:02:21]requested_item shift.open_date is exist - process it [15:02:21]req_shift_open_date [15:02:21]req_shift_open_date done [15:02:21]produce_requested_data done [15:02:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192244,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:02:21]process_action_free close_receipt [15:02:21]json_value_free [15:02:21]json_value_free done [15:02:21]process_json_proto returns [15:02:21]Send response to host [15:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192244,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:02:21]free response buf [15:02:21]execute_script done [15:02:21]execute_script returns [15:02:21]free content buf [15:02:21]Sock 9.Close socket [15:02:21]Sock 9.Thread stoped [15:02:22]accept exits with 10 [15:02:22]New connection [15:02:22]New thread 3066936676 created [15:02:22]Thread 3067080036 joined [15:02:22]Waiting for new connection... [15:02:22] Sock 10.Parse request [15:02:22]Sock 10.Check first char [15:02:22]Sock 10.First char is OK [15:02:22]request: POST /json_proto HTTP/1.0 [15:02:22]Method: POST [15:02:22]URL: /json_proto [15:02:22]Method is POST - this is cgi request [15:02:22]url: /json_proto [15:02:22]query_string will be loaded in cgi processing [15:02:22]execute_cgi json_proto POST (null) [15:02:22]execute_cgi path=json_proto method=POST [15:02:22]POST find Content-Length [15:02:22]Host: 172.17.63.131:8080 [15:02:22]Content-Length: 681 [15:02:22]Content-Type: application/json [15:02:22] [15:02:22]POST finish read [15:02:22]Found Content-Length = 681 [15:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:22]execute_script... [15:02: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)31559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:22]POST & json_proto [15:02:22]process_json_proto [15:02:22]json parsed OK: [15:02:22]protocol is kg_v1.0 [15:02:22]action value=close_receipt [15:02:22]process_action close_receipt [15:02:22]cmd_close_receipt [15:02:22]MH_GetDate [15:02:22]Write to MH i2c: F0 00 00 12 02 03 [15:02:22]Write i2c OK [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 09 00 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 09 00 12 02 00 FE 55 1E 67 22 05 6E 64 DD [15:02:22]GetLastDocTimeStamp 1730041338 [15:02:22]current date 1730041342 [15:02:22]FM_GetShiftState [15:02:22]SAM_PROTO_GetShiftState [15:02:22]wFMCommunicate request_size=4 [15:02:22]MH_SAM_APDU [15:02:22]CAPDU: 80 13 01 00 [15:02:22]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [15:02:22]Write i2c OK [15:02:22]MH_I2C_Read... [15:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:22]Read from MH i2c: E2 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: E2 0E 00 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D3 [15:02:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:02:22]wFMCommunicate OK [15:02:22]SAM_PROTO_GetShiftState done [15:02:22]FM_GetShiftState done [15:02:22]opened in 1729989159 [15:02:22]opened+sec_in_day 1730075559 [15:02:22]quantity*price = 100015 [15:02:22]sum+1 = 100017 [15:02:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 277 27.10.2024 15:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192245 ФПД: 104512814390127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192245&fm=104512814390127&tin=02508201610067®Number=0000000000091776&sum=100000 [15:02:23]StoreToDocumentArchive [15:02:23]shift 542 fd 192245 [15:02:23]save to /storage/0542/doc_00192245 [15:02:23]save last doc name /storage/0542/doc_00192245 to /storage/kkm_last_doc_name [15:02:23]save OK [15:02:23]Clear old archive folders... [15:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:23]tlvbuf is 003270E0 [15:02:23]SAM_PROTO_ClearQueue [15:02:23]wFMCommunicate request_size=4 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 09 00 00 [15:02:23]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:23]Read from MH i2c: E2 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [15:02:23]RAPDU: 90 00 [15:02:23]wFMCommunicate OK [15:02:23]SAM_PROTO_ClearQueue done [15:02:23]KKMCreateOFDPacket [15:02:23]OFDProtocolAddRootSTLVToBuf [15:02:23]FM_MakeSignedData [15:02:23]FM_MakeSignedData [15:02:23]SAM_PROTO_SignData [15:02:23]wFMCommunicate request_size=4 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 0D 01 02 [15:02:23]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:23]Read from MH i2c: E2 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [15:02:23]RAPDU: 90 00 [15:02:23]wFMCommunicate OK [15:02:23]wFMCommunicate request_size=255 [15:02:23]MH_SAM_APDU [15:02: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FE 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EE 02 00 35 04 06 00 5F [15:02:23]Write to MH i2c: E2 02 01 22 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FE 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EE 02 00 35 04 06 00 5F 00 00 7C [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=10 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 02 02 05 0D C9 2D 1B 6F [15:02:24]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 0D C9 2D 1B 6F 00 00 36 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 03 02 [15:02:24]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 0B 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 0B 00 24 02 00 C5 1D E3 4B A4 0C AE BF 90 00 CF [15:02:24]RAPDU: C5 1D E3 4B A4 0C AE BF 90 00 [15:02:24]wFMCommunicate OK [15:02:24]SAM_PROTO_SignData done [15:02:24]FM_MakeSignedData done [15:02:24]CreateOFDProtocolMessage [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 11 00 00 [15:02:24]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 17 00 [15:02:24]MH_I2C_Read... [15:02:24]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 37 35 34 90 00 F4 [15:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:02:24]wFMCommunicate OK [15:02:24]CreateOFDProtocolMessage done [15:02:24]OFDSenderStorePacket 192245 [15:02:24]StoreOFDPacket docnum=192245 [15:02:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 E7 07 01 60 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FE 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EE 02 00 35 04 06 00 5F 0D C9 2D 1B 6F C5 1D E3 4B A4 0C AE BF [15:02:24]CheckFolder [15:02:24]dirname=/storage/ofd_packets [15:02:24]CheckFolder done [15:02:24]ProducePacketName [15:02:24]name=ofd_packets/00192245 [15:02:24]NVStorageSaveData ofd_packets/00192245 [15:02:24]File name is /storage/ofd_packets/00192245 [15:02:24]Write 301 bytes [15:02:24]NVStorageSaveData done [15:02:24]OFDSenderStorePacket done [15:02:24]KKMCreateOFDPacket done [15:02:24]NVStorageSaveData kkm_last_timestamp [15:02:24]File name is /storage/kkm_last_timestamp [15:02:24]Write 4 bytes [15:02:24]NVStorageSaveData done [15:02:24]ExternCall_PrintAddStr [15:02:24]wPrintStart [15:02:24]Write to MH i2c: 01 00 00 26 02 28 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 07 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [15:02:24]RasterBufferAndPrint [15:02:24]line Счет N : (1)31559 [15:02:24]line ИНН: 02508201610067 [15:02:24]line Контрольно-Кассовый Чек [15:02:24]line ПРОДАЖА [15:02:24]line ТРК (МРК, ГНК) : 12 [15:02:24]line Товар: 2710124130 [15:02:24]line Аи-92-К-5 [15:02:24]line 14.950 * 66.90 [15:02:24]line = 1000.16 [15:02:24]line НДС 12% НСП 1% [15:02:24]line > о реализуемом товаре [15:02:24]line ОКРУГЛЕНИЕ: -0.16 [15:02:24]line ИТОГО: 1000.00 [15:02:24]line Внесено: 1000.00 [15:02:24]line СДАЧА: 0.00 [15:02:24]line НСП 1% : 8.85 [15:02:24]line НДС 12% : 106.21 [15:02:24]line Наличными: 1000.00 [15:02:24]line Безнал.: 0.00 [15:02:24]line Место: АЗС № 170 "Партнер Нефть" [15:02:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:02:24]line СНО: Общий режим [15:02:24]line Чек 277 27.10.2024 15:02 [15:02:24]line Смена: 542 ФФД: 1.0 [15:02:24]line ЗНМ: 0300000110 [15:02:24]line РНМ: 0000000000091776 [15:02:24]line Версия ККМ: 001 [15:02:24]line ФМ: 0000000000871754 [15:02:24]line ФД: 192245 [15:02:24]line ФПД: 104512814390127 [15:02:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192245&fm=104512814390127&tin=02508201610067®Number=0000000000091776&sum=100000 [15:02:24]OFD Sender: Processing packet 192245 [packets to send 75, broken 74] [15:02:24]ProducePacketName [15:02:24]name=ofd_packets/00192245 [15:02:24]OFD Sender: To server: pG, [15:02:24]CommunicateWithHost lk.salyk.kg:30040 [15:02:24]ConnectInit lk.salyk.kg [15:02:24]written 0, free lines is 4095 [15:02:24]Connected sock=9 [15:02:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 E7 07 01 60 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 FE 55 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EE 02 00 35 04 06 00 5F 0D C9 2D 1B 6F C5 1D E3 4B A4 0C AE BF [15:02:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 21 97 47 00 30 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EE 02 00 F4 03 04 00 C6 FA 1D 67 B6 04 01 00 00 9B 47 39 FC 1F 84 1D 01 [15:02:25]CommunicateWithHost err = 0 [15:02:25]CheckOFDResponse [15:02:25]1017 (14) - 77093643461234 [15:02:25]1041 (16) - 0000000000871754 [15:02:25]1040 (4) - 192245 [15:02:25]1012 (4) - 27.10.2024 08:33 [15:02:25]1206 (1) - 0 [15:02:25]OFD Sender: Remove packet 192245 [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00192245 [15:02:25]NVStorageDeleteData [15:02:25]Write to MH i2c: 01 00 00 51 02 53 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 B7 0C 1D [15:02:25]RasterBufferAndPrint [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]written 0, free lines is 3269 [15:02:25]MH_Cut [15:02:25]Write to MH i2c: D1 01 00 58 02 01 2C [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 58 02 00 2B [15:02:25]Write to MH i2c: 01 00 00 59 02 5B [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]OFD Sender: No OFD packet to send [15:02:26]*** Cut start [15:02:26]*** Partial cut [15:02:26]*** CUTSNS_PIN = 1 [15:02:26]*** CUTSNS_PIN = 0 [15:02:26]*** Brake cut motor [15:02:26]Read from MH i2c: 01 [15:02:26]MH_I2C_Read... [15:02:26]*** Stop cut motor [15:02:26]*** Cut end [15:02:26]Read from MH i2c: 01 07 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [15:02:26]process_action close_receipt done [15:02:26]requested_data is exist [15:02:26]produce_requested_data [15:02:26]requested_item fm.sn is exist - process it [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 11 00 00 [15:02:26]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 17 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [15:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:02:26]wFMCommunicate OK [15:02:26]requested_item fd.num is exist - process it [15:02:26]SAM_PROTO_GetFieldsCounters [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 13 00 00 [15:02:26]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 62 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [15:02:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:26]wFMCommunicate OK [15:02:26]SAM_PROTO_GetFieldsCounters done [15:02:26]requested_item shift.num is exist - process it [15:02:26]requested_item shift.opened is exist - process it [15:02:26]req_shift_opened [15:02:26]FM_GetShiftState [15:02:26]SAM_PROTO_GetShiftState [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 13 01 00 [15:02:26]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1C [15:02:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:02:27]wFMCommunicate OK [15:02:27]SAM_PROTO_GetShiftState done [15:02:27]FM_GetShiftState done [15:02:27]req_shift_opened done [15:02:27]requested_item shift.open_date is exist - process it [15:02:27]req_shift_open_date [15:02:27]req_shift_open_date done [15:02:27]produce_requested_data done [15:02:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192245,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:02:27]process_action_free close_receipt [15:02:27]json_value_free [15:02:27]json_value_free done [15:02:27]process_json_proto returns [15:02:27]Send response to host [15:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192245,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:02:27]free response buf [15:02:27]execute_script done [15:02:27]execute_script returns [15:02:27]free content buf [15:02:27]Sock 10.Close socket [15:02:27]Sock 10.Thread stoped [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:04:57]accept exits with 7 [15:04:57]New connection [15:04:57]New thread 3067080036 created [15:04:57]Thread 3066936676 joined [15:04:57]Waiting for new connection... [15:04:57] Sock 7.Parse request [15:04:57]Sock 7.Check first char [15:04:57]Sock 7.First char is OK [15:04:57]request: POST /json_proto HTTP/1.0 [15:04:57]Method: POST [15:04:57]URL: /json_proto [15:04:57]Method is POST - this is cgi request [15:04:57]url: /json_proto [15:04:57]query_string will be loaded in cgi processing [15:04:57]execute_cgi json_proto POST (null) [15:04:57]execute_cgi path=json_proto method=POST [15:04:57]POST find Content-Length [15:04:57]Host: 172.17.63.131:8080 [15:04:57]Content-Length: 862 [15:04:57]Content-Type: application/json [15:04:57] [15:04:57]POST finish read [15:04:57]Found Content-Length = 862 [15:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31560", "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" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:57]execute_script... [15:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31560", "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" : 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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:57]POST & json_proto [15:04:57]process_json_proto [15:04:57]json parsed OK: [15:04:57]protocol is kg_v1.0 [15:04:57]action value=close_receipt [15:04:57]process_action close_receipt [15:04:57]cmd_close_receipt [15:04:57]MH_GetDate [15:04:57]Write to MH i2c: F0 00 00 5D 02 4E [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 09 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: F0 09 00 5D 02 00 99 56 1E 67 22 05 6E 64 C4 [15:04:57]GetLastDocTimeStamp 1730041342 [15:04:57]current date 1730041497 [15:04:57]FM_GetShiftState [15:04:57]SAM_PROTO_GetShiftState [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 13 01 00 [15:04:57]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 0E 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1E [15:04:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:04:57]wFMCommunicate OK [15:04:57]SAM_PROTO_GetShiftState done [15:04:57]FM_GetShiftState done [15:04:57]opened in 1729989159 [15:04:57]opened+sec_in_day 1730075559 [15:04:57]quantity*price = 100050 [15:04:57]sum+1 = 100052 [15:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 278 27.10.2024 15:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192246 ФПД: 180497552237499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192246&fm=180497552237499&tin=02508201610067®Number=0000000000091776&sum=100051 [15:04:58]StoreToDocumentArchive [15:04:58]shift 542 fd 192246 [15:04:58]save to /storage/0542/doc_00192246 [15:04:58]save last doc name /storage/0542/doc_00192246 to /storage/kkm_last_doc_name [15:04:58]save OK [15:04:58]Clear old archive folders... [15:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:58]tlvbuf is 00327130 [15:04:58]SAM_PROTO_ClearQueue [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 09 00 00 [15:04:58]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_ClearQueue done [15:04:58]KKMCreateOFDPacket [15:04:58]OFDProtocolAddRootSTLVToBuf [15:04:58]FM_MakeSignedData [15:04:58]FM_MakeSignedData [15:04:58]SAM_PROTO_SignData [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 01 02 [15:04:58]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]wFMCommunicate request_size=255 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 01 00 00 F4 03 04 00 99 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EE 02 00 35 04 06 00 A4 29 5C 7B [15:04:58]Write to MH i2c: E2 02 01 6D 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 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 16 01 00 00 F4 03 04 00 99 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EE 02 00 35 04 06 00 A4 29 5C 7B 00 00 0C [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]wFMCommunicate request_size=7 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 02 02 02 E3 BB [15:04:58]Write to MH i2c: E2 0A 00 6E 02 80 0D 02 02 02 00 E3 BB 00 00 8C [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 03 02 [15:04:58]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0B 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0B 00 6F 02 00 63 15 A4 C4 FC 39 04 ED 90 00 F3 [15:04:58]RAPDU: 63 15 A4 C4 FC 39 04 ED 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_SignData done [15:04:58]FM_MakeSignedData done [15:04:58]CreateOFDProtocolMessage [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 11 00 00 [15:04:58]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 17 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [15:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:04:59]wFMCommunicate OK [15:04:59]CreateOFDProtocolMessage done [15:04:59]OFDSenderStorePacket 192246 [15:04:59]StoreOFDPacket docnum=192246 [15:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 56 70 04 01 E5 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 01 00 00 F4 03 04 00 99 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EE 02 00 35 04 06 00 A4 29 5C 7B E3 BB 63 15 A4 C4 FC 39 04 ED [15:04:59]CheckFolder [15:04:59]dirname=/storage/ofd_packets [15:04:59]CheckFolder done [15:04:59]ProducePacketName [15:04:59]name=ofd_packets/00192246 [15:04:59]NVStorageSaveData ofd_packets/00192246 [15:04:59]File name is /storage/ofd_packets/00192246 [15:04:59]Write 298 bytes [15:04:59]NVStorageSaveData done [15:04:59]OFDSenderStorePacket done [15:04:59]KKMCreateOFDPacket done [15:04:59]NVStorageSaveData kkm_last_timestamp [15:04:59]File name is /storage/kkm_last_timestamp [15:04:59]Write 4 bytes [15:04:59]NVStorageSaveData done [15:04:59]ExternCall_PrintAddStr [15:04:59]wPrintStart [15:04:59]Write to MH i2c: 01 00 00 71 02 73 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 07 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [15:04:59]RasterBufferAndPrint [15:04:59]line Счет N : (1)31560 [15:04:59]line ИНН: 02508201610067 [15:04:59]line Контрольно-Кассовый Чек [15:04:59]line ПРОДАЖА [15:04:59]line ТРК (МРК, ГНК) : 11 [15:04:59]line Товар: 2710194210 [15:04:59]line ДТ-К-5 [15:04:59]line 13.130 * 76.20 [15:04:59]line = 1000.51 [15:04:59]line НДС 12% НСП 1% [15:04:59]line > о реализуемом товаре [15:04:59]line ИТОГО: 1000.51 [15:04:59]line НСП 1% : 8.85 [15:04:59]line НДС 12% : 106.25 [15:04:59]line Наличными: 0.00 [15:04:59]line Безнал.: 1000.51 [15:04:59]line Место: АЗС № 170 "Партнер Нефть" [15:04:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:04:59]line СНО: Общий режим [15:04:59]line Чек 278 27.10.2024 15:04 [15:04:59]line Смена: 542 ФФД: 1.0 [15:04:59]line ЗНМ: 0300000110 [15:04:59]line РНМ: 0000000000091776 [15:04:59]line Версия ККМ: 001 [15:04:59]line Платежная система: Кыргызкоммерцбанк [15:04:59]line ФМ: 0000000000871754 [15:04:59]line ФД: 192246 [15:04:59]line ФПД: 180497552237499 [15:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192246&fm=180497552237499&tin=02508201610067®Number=0000000000091776&sum=100051 [15:04:59]OFD Sender: Processing packet 192246 [packets to send 75, broken 74] [15:04:59]ProducePacketName [15:04:59]name=ofd_packets/00192246 [15:04:59]OFD Sender: To server: pG, [15:04:59]CommunicateWithHost lk.salyk.kg:30040 [15:04:59]ConnectInit lk.salyk.kg [15:04:59]written 0, free lines is 4095 [15:04:59]Connected sock=10 [15:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 56 70 04 01 E5 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 01 00 00 F4 03 04 00 99 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EE 02 00 35 04 06 00 A4 29 5C 7B E3 BB 63 15 A4 C4 FC 39 04 ED [15:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 82 47 00 A2 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EE 02 00 F4 03 04 00 61 FB 1D 67 B6 04 01 00 00 07 A3 D1 97 1E 84 E7 4B [15:04:59]CommunicateWithHost err = 0 [15:04:59]CheckOFDResponse [15:04:59]1017 (14) - 77093643461234 [15:04:59]1041 (16) - 0000000000871754 [15:04:59]1040 (4) - 192246 [15:04:59]1012 (4) - 27.10.2024 08:35 [15:04:59]1206 (1) - 0 [15:04:59]OFD Sender: Remove packet 192246 [15:04:59]ProducePacketName [15:04:59]name=ofd_packets/00192246 [15:04:59]NVStorageDeleteData [15:04:59]Write to MH i2c: 01 00 00 9B 02 9D [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 07 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 D3 0C 83 [15:04:59]RasterBufferAndPrint [15:04:59]line [15:04:59]line [15:04:59]line [15:04:59]line [15:04:59]line [15:04:59]written 0, free lines is 3289 [15:04:59]MH_Cut [15:04:59]Write to MH i2c: D1 01 00 A2 02 01 76 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: D1 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: D1 01 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: D1 01 00 A2 02 00 75 [15:04:59]Write to MH i2c: 01 00 00 A3 02 A5 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:05:00]OFD Sender: No OFD packet to send [15:05:00]*** Cut start [15:05:00]*** Partial cut [15:05:00]*** CUTSNS_PIN = 1 [15:05:00]*** CUTSNS_PIN = 0 [15:05:00]*** Brake cut motor [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]*** Stop cut motor [15:05:01]*** Cut end [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [15:05:01]process_action close_receipt done [15:05:01]requested_data is exist [15:05:01]produce_requested_data [15:05:01]requested_item fm.sn is exist - process it [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 11 00 00 [15:05:01]Write to MH i2c: E2 08 00 A4 02 80 11 00 00 00 00 00 00 20 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 A4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [15:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:01]wFMCommunicate OK [15:05:01]requested_item fd.num is exist - process it [15:05:01]SAM_PROTO_GetFieldsCounters [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 13 00 00 [15:05:01]Write to MH i2c: E2 08 00 A5 02 80 13 00 00 00 00 00 00 23 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 62 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 62 00 A5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [15:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_GetFieldsCounters done [15:05:01]requested_item shift.num is exist - process it [15:05:01]requested_item shift.opened is exist - process it [15:05:01]req_shift_opened [15:05:01]FM_GetShiftState [15:05:01]SAM_PROTO_GetShiftState [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 13 01 00 [15:05:01]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0E 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [15:05:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_GetShiftState done [15:05:01]FM_GetShiftState done [15:05:01]req_shift_opened done [15:05:01]requested_item shift.open_date is exist - process it [15:05:01]req_shift_open_date [15:05:01]req_shift_open_date done [15:05:01]produce_requested_data done [15:05:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192246,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:05:01]process_action_free close_receipt [15:05:01]json_value_free [15:05:01]json_value_free done [15:05:01]process_json_proto returns [15:05:01]Send response to host [15:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192246,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:05:01]free response buf [15:05:01]execute_script done [15:05:01]execute_script returns [15:05:01]free content buf [15:05:01]Sock 7.Close socket [15:05:01]Sock 7.Thread stoped [15:05:01]accept exits with 9 [15:05:01]New connection [15:05:01]New thread 3066936676 created [15:05:01]Thread 3067080036 joined [15:05:01]Waiting for new connection... [15:05:01] Sock 9.Parse request [15:05:01]Sock 9.Check first char [15:05:01]Sock 9.First char is OK [15:05:01]request: POST /json_proto HTTP/1.0 [15:05:01]Method: POST [15:05:01]URL: /json_proto [15:05:01]Method is POST - this is cgi request [15:05:01]url: /json_proto [15:05:01]query_string will be loaded in cgi processing [15:05:01]execute_cgi json_proto POST (null) [15:05:01]execute_cgi path=json_proto method=POST [15:05:01]POST find Content-Length [15:05:01]Host: 172.17.63.131:8080 [15:05:01]Content-Length: 676 [15:05:01]Content-Type: application/json [15:05:01] [15:05:01]POST finish read [15:05:01]Found Content-Length = 676 [15:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:01]execute_script... [15:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:01]POST & json_proto [15:05:01]process_json_proto [15:05:01]json parsed OK: [15:05:01]protocol is kg_v1.0 [15:05:01]action value=close_receipt [15:05:01]process_action close_receipt [15:05:01]cmd_close_receipt [15:05:01]MH_GetDate [15:05:01]Write to MH i2c: F0 00 00 A7 02 98 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: F0 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: F0 09 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: F0 09 00 A7 02 00 9E 56 1E 67 22 05 6E 64 13 [15:05:01]GetLastDocTimeStamp 1730041497 [15:05:01]current date 1730041502 [15:05:01]FM_GetShiftState [15:05:01]SAM_PROTO_GetShiftState [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 13 01 00 [15:05:01]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:02]Read from MH i2c: E2 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 0E 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [15:05:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:05:02]wFMCommunicate OK [15:05:02]SAM_PROTO_GetShiftState done [15:05:02]FM_GetShiftState done [15:05:02]opened in 1729989159 [15:05:02]opened+sec_in_day 1730075559 [15:05:02]quantity*price = 35055 [15:05:02]sum+1 = 35057 [15:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 279 27.10.2024 15:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192247 ФПД: 201804778766483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192247&fm=201804778766483&tin=02508201610067®Number=0000000000091776&sum=35000 [15:05:03]StoreToDocumentArchive [15:05:03]shift 542 fd 192247 [15:05:03]save to /storage/0542/doc_00192247 [15:05:03]save last doc name /storage/0542/doc_00192247 to /storage/kkm_last_doc_name [15:05:03]save OK [15:05:03]Clear old archive folders... [15:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:03]tlvbuf is 00328A80 [15:05:03]SAM_PROTO_ClearQueue [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 09 00 00 [15:05:03]Write to MH i2c: E2 08 00 B5 02 80 09 00 00 00 00 00 00 29 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [15:05:03]RAPDU: 90 00 [15:05:03]wFMCommunicate OK [15:05:03]SAM_PROTO_ClearQueue done [15:05:03]KKMCreateOFDPacket [15:05:03]OFDProtocolAddRootSTLVToBuf [15:05:03]FM_MakeSignedData [15:05:03]FM_MakeSignedData [15:05:03]SAM_PROTO_SignData [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 0D 01 02 [15:05:03]Write to MH i2c: E2 08 00 B6 02 80 0D 01 02 00 00 00 00 31 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [15:05:03]RAPDU: 90 00 [15:05:03]wFMCommunicate OK [15:05:03]wFMCommunicate request_size=255 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 9E 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EE 02 00 35 04 06 00 B7 [15:05:03]Write to MH i2c: E2 02 01 B7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 9E 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EE 02 00 35 04 06 00 B7 00 00 1F [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [15:05:03]RAPDU: 90 00 [15:05:03]wFMCommunicate OK [15:05:03]wFMCommunicate request_size=10 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 0D 02 02 05 8A 56 27 00 93 [15:05:03]Write to MH i2c: E2 0D 00 B8 02 80 0D 02 02 05 00 8A 56 27 00 93 00 00 D8 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [15:05:03]RAPDU: 90 00 [15:05:03]wFMCommunicate OK [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 0D 03 02 [15:05:03]Write to MH i2c: E2 08 00 B9 02 80 0D 03 02 00 00 00 00 36 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 0B 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 0B 00 B9 02 00 27 AC 96 61 3D A3 74 52 90 00 A7 [15:05:03]RAPDU: 27 AC 96 61 3D A3 74 52 90 00 [15:05:03]wFMCommunicate OK [15:05:03]SAM_PROTO_SignData done [15:05:03]FM_MakeSignedData done [15:05:03]CreateOFDProtocolMessage [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 11 00 00 [15:05:03]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 17 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [15:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:04]wFMCommunicate OK [15:05:04]CreateOFDProtocolMessage done [15:05:04]OFDSenderStorePacket 192247 [15:05:04]StoreOFDPacket docnum=192247 [15:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 41 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 9E 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EE 02 00 35 04 06 00 B7 8A 56 27 00 93 27 AC 96 61 3D A3 74 52 [15:05:04]CheckFolder [15:05:04]dirname=/storage/ofd_packets [15:05:04]CheckFolder done [15:05:04]ProducePacketName [15:05:04]name=ofd_packets/00192247 [15:05:04]NVStorageSaveData ofd_packets/00192247 [15:05:04]File name is /storage/ofd_packets/00192247 [15:05:04]Write 301 bytes [15:05:04]NVStorageSaveData done [15:05:04]OFDSenderStorePacket done [15:05:04]KKMCreateOFDPacket done [15:05:04]NVStorageSaveData kkm_last_timestamp [15:05:04]File name is /storage/kkm_last_timestamp [15:05:04]Write 4 bytes [15:05:04]NVStorageSaveData done [15:05:04]ExternCall_PrintAddStr [15:05:04]wPrintStart [15:05:04]Write to MH i2c: 01 00 00 BB 02 BD [15:05:04]OFD Sender: Processing packet 192247 [packets to send 75, broken 74] [15:05:04]ProducePacketName [15:05:04]name=ofd_packets/00192247 [15:05:04]OFD Sender: To server: pG, [15:05:04]CommunicateWithHost lk.salyk.kg:30040 [15:05:04]ConnectInit lk.salyk.kg [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 07 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [15:05:04]RasterBufferAndPrint [15:05:04]line Счет N : (1)31561 [15:05:04]line ИНН: 02508201610067 [15:05:04]line Контрольно-Кассовый Чек [15:05:04]line ПРОДАЖА [15:05:04]line ТРК (МРК, ГНК) : 12 [15:05:04]line Товар: 2710124130 [15:05:04]line Аи-92-К-5 [15:05:04]line 5.240 * 66.90 [15:05:04]line = 350.56 [15:05:04]line НДС 12% НСП 1% [15:05:04]line > о реализуемом товаре [15:05:04]line ОКРУГЛЕНИЕ: -0.56 [15:05:04]line ИТОГО: 350.00 [15:05:04]line Внесено: 350.00 [15:05:04]line СДАЧА: 0.00 [15:05:04]line НСП 1% : 3.10 [15:05:04]line НДС 12% : 37.23 [15:05:04]line Наличными: 350.00 [15:05:04]line Безнал.: 0.00 [15:05:04]line Место: АЗС № 170 "Партнер Нефть" [15:05:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:05:04]line СНО: Общий режим [15:05:04]line Чек 279 27.10.2024 15:05 [15:05:04]line Смена: 542 ФФД: 1.0 [15:05:04]line ЗНМ: 0300000110 [15:05:04]line РНМ: 0000000000091776 [15:05:04]line Версия ККМ: 001 [15:05:04]line ФМ: 0000000000871754 [15:05:04]line ФД: 192247 [15:05:04]line ФПД: 201804778766483 [15:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192247&fm=201804778766483&tin=02508201610067®Number=0000000000091776&sum=35000 [15:05:04]written 0, free lines is 4095 [15:05:04]Connected sock=10 [15:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 41 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 9E 56 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EE 02 00 35 04 06 00 B7 8A 56 27 00 93 27 AC 96 61 3D A3 74 52 [15:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 40 87 47 00 8C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EE 02 00 F4 03 04 00 65 FB 1D 67 B6 04 01 00 00 0C EB A7 F9 A3 EB DB 4B [15:05:04]CommunicateWithHost err = 0 [15:05:04]CheckOFDResponse [15:05:04]1017 (14) - 77093643461234 [15:05:04]1041 (16) - 0000000000871754 [15:05:04]1040 (4) - 192247 [15:05:04]1012 (4) - 27.10.2024 08:35 [15:05:04]1206 (1) - 0 [15:05:04]OFD Sender: Remove packet 192247 [15:05:04]ProducePacketName [15:05:04]name=ofd_packets/00192247 [15:05:04]NVStorageDeleteData [15:05:04]Write to MH i2c: 01 00 00 E6 02 E8 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 07 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 BB 0C B6 [15:05:04]RasterBufferAndPrint [15:05:04]line [15:05:04]line [15:05:04]line [15:05:04]line [15:05:04]line [15:05:04]written 0, free lines is 3272 [15:05:04]MH_Cut [15:05:04]Write to MH i2c: D1 01 00 ED 02 01 C1 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: D1 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: D1 01 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: D1 01 00 ED 02 00 C0 [15:05:04]Write to MH i2c: 01 00 00 EE 02 F0 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]OFD Sender: No OFD packet to send [15:05:05]*** Cut start [15:05:05]*** Partial cut [15:05:05]*** CUTSNS_PIN = 1 [15:05:05]*** CUTSNS_PIN = 0 [15:05:05]*** Brake cut motor [15:05:05]Read from MH i2c: 01 [15:05:06]MH_I2C_Read... [15:05:06]*** Stop cut motor [15:05:06]*** Cut end [15:05:06]Read from MH i2c: 01 07 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 07 00 EE 02 00 00 00 00 00 FF 0F 05 [15:05:06]process_action close_receipt done [15:05:06]requested_data is exist [15:05:06]produce_requested_data [15:05:06]requested_item fm.sn is exist - process it [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 11 00 00 [15:05:06]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 17 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [15:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:06]wFMCommunicate OK [15:05:06]requested_item fd.num is exist - process it [15:05:06]SAM_PROTO_GetFieldsCounters [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 13 00 00 [15:05:06]Write to MH i2c: E2 08 00 F0 02 80 13 00 00 00 00 00 00 6E [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 62 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 62 00 F0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:06]wFMCommunicate OK [15:05:06]SAM_PROTO_GetFieldsCounters done [15:05:06]requested_item shift.num is exist - process it [15:05:06]requested_item shift.opened is exist - process it [15:05:06]req_shift_opened [15:05:06]FM_GetShiftState [15:05:06]SAM_PROTO_GetShiftState [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 13 01 00 [15:05:06]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 0E 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [15:05:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:05:06]wFMCommunicate OK [15:05:06]SAM_PROTO_GetShiftState done [15:05:06]FM_GetShiftState done [15:05:06]req_shift_opened done [15:05:06]requested_item shift.open_date is exist - process it [15:05:06]req_shift_open_date [15:05:06]req_shift_open_date done [15:05:06]produce_requested_data done [15:05:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192247,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:05:06]process_action_free close_receipt [15:05:06]json_value_free [15:05:06]json_value_free done [15:05:06]process_json_proto returns [15:05:06]Send response to host [15:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192247,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:05:06]free response buf [15:05:06]execute_script done [15:05:06]execute_script returns [15:05:06]free content buf [15:05:06]Sock 9.Close socket [15:05:06]Sock 9.Thread stoped [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:50]accept exits with 7 [15:06:50]New connection [15:06:50]New thread 3067080036 created [15:06:50]Thread 3066936676 joined [15:06:50]Waiting for new connection... [15:06:50] Sock 7.Parse request [15:06:50]Sock 7.Check first char [15:06:50]Sock 7.First char is OK [15:06:50]request: POST /json_proto HTTP/1.0 [15:06:50]Method: POST [15:06:50]URL: /json_proto [15:06:50]Method is POST - this is cgi request [15:06:50]url: /json_proto [15:06:50]query_string will be loaded in cgi processing [15:06:50]execute_cgi json_proto POST (null) [15:06:50]execute_cgi path=json_proto method=POST [15:06:50]POST find Content-Length [15:06:50]Host: 172.17.63.131:8080 [15:06:50]Content-Length: 678 [15:06:50]Content-Type: application/json [15:06:50] [15:06:50]POST finish read [15:06:50]Found Content-Length = 678 [15:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31562", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:50]execute_script... [15:06:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31562", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:50]POST & json_proto [15:06:50]process_json_proto [15:06:50]json parsed OK: [15:06:50]protocol is kg_v1.0 [15:06:50]action value=close_receipt [15:06:50]process_action close_receipt [15:06:50]cmd_close_receipt [15:06:50]MH_GetDate [15:06:50]Write to MH i2c: F0 00 00 F2 02 E3 [15:06:50]Write i2c OK [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 09 00 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: F0 09 00 F2 02 00 0A 57 1E 67 22 05 6E 64 CB [15:06:50]GetLastDocTimeStamp 1730041502 [15:06:50]current date 1730041610 [15:06:50]FM_GetShiftState [15:06:50]SAM_PROTO_GetShiftState [15:06:50]wFMCommunicate request_size=4 [15:06:50]MH_SAM_APDU [15:06:50]CAPDU: 80 13 01 00 [15:06:50]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [15:06:50]Write i2c OK [15:06:50]MH_I2C_Read... [15:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:50]Read from MH i2c: E2 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: E2 0E 00 [15:06:50]MH_I2C_Read... [15:06:50]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [15:06:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:06:50]wFMCommunicate OK [15:06:50]SAM_PROTO_GetShiftState done [15:06:50]FM_GetShiftState done [15:06:50]opened in 1729989159 [15:06:50]opened+sec_in_day 1730075559 [15:06:50]quantity*price = 100050 [15:06:50]sum+1 = 100052 [15:06: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 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 280 27.10.2024 15:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192248 ФПД: 78216708325908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150650&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192248&fm=78216708325908&tin=02508201610067®Number=0000000000091776&sum=100000 [15:06:51]StoreToDocumentArchive [15:06:51]shift 542 fd 192248 [15:06:51]save to /storage/0542/doc_00192248 [15:06:51]save last doc name /storage/0542/doc_00192248 to /storage/kkm_last_doc_name [15:06:51]save OK [15:06:51]Clear old archive folders... [15:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:06:51]tlvbuf is 00329370 [15:06:51]SAM_PROTO_ClearQueue [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 09 00 00 [15:06:51]Write to MH i2c: E2 08 00 00 03 80 09 00 00 00 00 00 00 75 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]SAM_PROTO_ClearQueue done [15:06:51]KKMCreateOFDPacket [15:06:51]OFDProtocolAddRootSTLVToBuf [15:06:51]FM_MakeSignedData [15:06:51]FM_MakeSignedData [15:06:51]SAM_PROTO_SignData [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 01 02 [15:06:51]Write to MH i2c: E2 08 00 01 03 80 0D 01 02 00 00 00 00 7D [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=255 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 0A 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EE 02 00 35 04 06 00 47 23 3F 1D [15:06:51]Write to MH i2c: E2 02 01 02 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 0A 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EE 02 00 35 04 06 00 47 23 3F 1D 00 00 D4 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=7 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 02 02 02 82 14 [15:06:51]Write to MH i2c: E2 0A 00 03 03 80 0D 02 02 02 00 82 14 00 00 1A [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [15:06:51]RAPDU: 90 00 [15:06:51]wFMCommunicate OK [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 0D 03 02 [15:06:51]Write to MH i2c: E2 08 00 04 03 80 0D 03 02 00 00 00 00 82 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 0B 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 0B 00 04 03 00 14 B8 17 F6 F5 9D EF 0B 90 00 E8 [15:06:51]RAPDU: 14 B8 17 F6 F5 9D EF 0B 90 00 [15:06:51]wFMCommunicate OK [15:06:51]SAM_PROTO_SignData done [15:06:51]FM_MakeSignedData done [15:06:51]CreateOFDProtocolMessage [15:06:51]wFMCommunicate request_size=4 [15:06:51]MH_SAM_APDU [15:06:51]CAPDU: 80 11 00 00 [15:06:51]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:51]Read from MH i2c: E2 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 17 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [15:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:06:51]wFMCommunicate OK [15:06:51]CreateOFDProtocolMessage done [15:06:51]OFDSenderStorePacket 192248 [15:06:51]StoreOFDPacket docnum=192248 [15:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FD 55 04 01 BD 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 0A 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EE 02 00 35 04 06 00 47 23 3F 1D 82 14 14 B8 17 F6 F5 9D EF 0B [15:06:51]CheckFolder [15:06:51]dirname=/storage/ofd_packets [15:06:51]CheckFolder done [15:06:51]ProducePacketName [15:06:51]name=ofd_packets/00192248 [15:06:51]NVStorageSaveData ofd_packets/00192248 [15:06:51]File name is /storage/ofd_packets/00192248 [15:06:51]Write 298 bytes [15:06:51]NVStorageSaveData done [15:06:51]OFDSenderStorePacket done [15:06:51]KKMCreateOFDPacket done [15:06:51]NVStorageSaveData kkm_last_timestamp [15:06:51]File name is /storage/kkm_last_timestamp [15:06:51]Write 4 bytes [15:06:51]NVStorageSaveData done [15:06:51]ExternCall_PrintAddStr [15:06:51]wPrintStart [15:06:51]Write to MH i2c: 01 00 00 06 03 09 [15:06:51]Write i2c OK [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 07 00 [15:06:51]MH_I2C_Read... [15:06:51]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [15:06:51]RasterBufferAndPrint [15:06:51]line Счет N : (1)31562 [15:06:51]line ИНН: 02508201610067 [15:06:51]line Контрольно-Кассовый Чек [15:06:51]line ПРОДАЖА [15:06:51]line ТРК (МРК, ГНК) : 11 [15:06:51]line Товар: 2710194210 [15:06:51]line ДТ-К-5 [15:06:51]line 13.130 * 76.20 [15:06:51]line = 1000.51 [15:06:51]line НДС 12% НСП 1% [15:06:51]line > о реализуемом товаре [15:06:51]line ОКРУГЛЕНИЕ: -0.51 [15:06:51]line ИТОГО: 1000.00 [15:06:51]line Внесено: 1000.00 [15:06:51]line СДАЧА: 0.00 [15:06:51]line НСП 1% : 8.85 [15:06:51]line НДС 12% : 106.25 [15:06:51]line Наличными: 1000.00 [15:06:51]line Безнал.: 0.00 [15:06:51]line Место: АЗС № 170 "Партнер Нефть" [15:06:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:06:51]line СНО: Общий режим [15:06:51]line Чек 280 27.10.2024 15:06 [15:06:51]line Смена: 542 ФФД: 1.0 [15:06:51]line ЗНМ: 0300000110 [15:06:51]line РНМ: 0000000000091776 [15:06:51]line Версия ККМ: 001 [15:06:51]line ФМ: 0000000000871754 [15:06:51]line ФД: 192248 [15:06:51]line ФПД: 78216708325908 [15:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150650&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192248&fm=78216708325908&tin=02508201610067®Number=0000000000091776&sum=100000 [15:06:52]written 0, free lines is 4095 [15:06:52]OFD Sender: Processing packet 192248 [packets to send 75, broken 74] [15:06:52]ProducePacketName [15:06:52]name=ofd_packets/00192248 [15:06:52]OFD Sender: To server: pG, [15:06:52]CommunicateWithHost lk.salyk.kg:30040 [15:06:52]ConnectInit lk.salyk.kg [15:06:52]Connected sock=10 [15:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FD 55 04 01 BD 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 0A 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EE 02 00 35 04 06 00 47 23 3F 1D 82 14 14 B8 17 F6 F5 9D EF 0B [15:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 0C 47 00 7A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EE 02 00 F4 03 04 00 D1 FB 1D 67 B6 04 01 00 00 28 F9 BF 05 B2 8F 13 BD [15:06:52]CommunicateWithHost err = 0 [15:06:52]CheckOFDResponse [15:06:52]1017 (14) - 77093643461234 [15:06:52]1041 (16) - 0000000000871754 [15:06:52]1040 (4) - 192248 [15:06:52]1012 (4) - 27.10.2024 08:37 [15:06:52]1206 (1) - 0 [15:06:52]OFD Sender: Remove packet 192248 [15:06:52]ProducePacketName [15:06:52]name=ofd_packets/00192248 [15:06:52]NVStorageDeleteData [15:06:52]Write to MH i2c: 01 00 00 31 03 34 [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 07 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 A0 0C E7 [15:06:52]RasterBufferAndPrint [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]line [15:06:52]written 0, free lines is 3240 [15:06:52]MH_Cut [15:06:52]Write to MH i2c: D1 01 00 38 03 01 0D [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 01 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: D1 01 00 38 03 00 0C [15:06:52]Write to MH i2c: 01 00 00 39 03 3C [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]OFD Sender: No OFD packet to send [15:06:53]*** Cut start [15:06:53]*** Partial cut [15:06:53]*** CUTSNS_PIN = 1 [15:06:53]*** CUTSNS_PIN = 0 [15:06:53]*** Brake cut motor [15:06:54]Read from MH i2c: 01 [15:06:54]MH_I2C_Read... [15:06:54]*** Stop cut motor [15:06:54]*** Cut end [15:06:54]Read from MH i2c: 01 07 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [15:06:54]process_action close_receipt done [15:06:54]requested_data is exist [15:06:54]produce_requested_data [15:06:54]requested_item fm.sn is exist - process it [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 11 00 00 [15:06:54]Write to MH i2c: E2 08 00 3A 03 80 11 00 00 00 00 00 00 B7 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 3A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [15:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:06:54]wFMCommunicate OK [15:06:54]requested_item fd.num is exist - process it [15:06:54]SAM_PROTO_GetFieldsCounters [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 13 00 00 [15:06:54]Write to MH i2c: E2 08 00 3B 03 80 13 00 00 00 00 00 00 BA [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 62 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 62 00 3B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_GetFieldsCounters done [15:06:54]requested_item shift.num is exist - process it [15:06:54]requested_item shift.opened is exist - process it [15:06:54]req_shift_opened [15:06:54]FM_GetShiftState [15:06:54]SAM_PROTO_GetShiftState [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 13 01 00 [15:06:54]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0E 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [15:06:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_GetShiftState done [15:06:54]FM_GetShiftState done [15:06:54]req_shift_opened done [15:06:54]requested_item shift.open_date is exist - process it [15:06:54]req_shift_open_date [15:06:54]req_shift_open_date done [15:06:54]produce_requested_data done [15:06:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192248,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:06:54]process_action_free close_receipt [15:06:54]json_value_free [15:06:54]json_value_free done [15:06:54]process_json_proto returns [15:06:54]Send response to host [15:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192248,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:06:54]free response buf [15:06:54]execute_script done [15:06:54]execute_script returns [15:06:54]free content buf [15:06:54]Sock 7.Close socket [15:06:54]Sock 7.Thread stoped [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:57]accept exits with 9 [15:08:57]New connection [15:08:57]New thread 3066936676 created [15:08:57]Thread 3067080036 joined [15:08:57]Waiting for new connection... [15:08:57] Sock 9.Parse request [15:08:57]Sock 9.Check first char [15:08:57]Sock 9.First char is OK [15:08:57]request: POST /json_proto HTTP/1.0 [15:08:57]Method: POST [15:08:57]URL: /json_proto [15:08:57]Method is POST - this is cgi request [15:08:57]url: /json_proto [15:08:57]query_string will be loaded in cgi processing [15:08:57]execute_cgi json_proto POST (null) [15:08:57]execute_cgi path=json_proto method=POST [15:08:57]POST find Content-Length [15:08:57]Host: 172.17.63.131:8080 [15:08:57]Content-Length: 677 [15:08:57]Content-Type: application/json [15:08:57] [15:08:57]POST finish read [15:08:57]Found Content-Length = 677 [15:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:57]execute_script... [15:08:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:57]POST & json_proto [15:08:57]process_json_proto [15:08:57]json parsed OK: [15:08:57]protocol is kg_v1.0 [15:08:57]action value=close_receipt [15:08:57]process_action close_receipt [15:08:57]cmd_close_receipt [15:08:57]MH_GetDate [15:08:57]Write to MH i2c: F0 00 00 3D 03 2F [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: F0 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: F0 09 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: F0 09 00 3D 03 00 89 57 1E 67 22 05 6E 64 96 [15:08:57]GetLastDocTimeStamp 1730041610 [15:08:57]current date 1730041737 [15:08:57]FM_GetShiftState [15:08:57]SAM_PROTO_GetShiftState [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 13 01 00 [15:08:57]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0E 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FF [15:08:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:08:57]wFMCommunicate OK [15:08:57]SAM_PROTO_GetShiftState done [15:08:57]FM_GetShiftState done [15:08:57]opened in 1729989159 [15:08:57]opened+sec_in_day 1730075559 [15:08:57]quantity*price = 80012 [15:08:57]sum+1 = 80013 [15:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 281 27.10.2024 15:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192249 ФПД: 138964857629430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192249&fm=138964857629430&tin=02508201610067®Number=0000000000091776&sum=80000 [15:08:58]StoreToDocumentArchive [15:08:58]shift 542 fd 192249 [15:08:58]save to /storage/0542/doc_00192249 [15:08:58]save last doc name /storage/0542/doc_00192249 to /storage/kkm_last_doc_name [15:08:58]save OK [15:08:58]Clear old archive folders... [15:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:58]tlvbuf is 00312120 [15:08:58]SAM_PROTO_ClearQueue [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 09 00 00 [15:08:58]Write to MH i2c: E2 08 00 4B 03 80 09 00 00 00 00 00 00 C0 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]SAM_PROTO_ClearQueue done [15:08:58]KKMCreateOFDPacket [15:08:58]OFDProtocolAddRootSTLVToBuf [15:08:58]FM_MakeSignedData [15:08:58]FM_MakeSignedData [15:08:58]SAM_PROTO_SignData [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 01 02 [15:08:58]Write to MH i2c: E2 08 00 4C 03 80 0D 01 02 00 00 00 00 C8 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=255 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 89 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EE 02 00 35 04 06 00 7E [15:08:58]Write to MH i2c: E2 02 01 4D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 89 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EE 02 00 35 04 06 00 7E 00 00 4E [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=10 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 02 02 05 63 46 F9 AA F6 [15:08:58]Write to MH i2c: E2 0D 00 4E 03 80 0D 02 02 05 00 63 46 F9 AA F6 00 00 17 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 03 02 [15:08:58]Write to MH i2c: E2 08 00 4F 03 80 0D 03 02 00 00 00 00 CD [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0B 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0B 00 4F 03 00 74 C7 64 E1 E1 9D 7A 4B 90 00 91 [15:08:58]RAPDU: 74 C7 64 E1 E1 9D 7A 4B 90 00 [15:08:58]wFMCommunicate OK [15:08:58]SAM_PROTO_SignData done [15:08:58]FM_MakeSignedData done [15:08:58]CreateOFDProtocolMessage [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 11 00 00 [15:08:58]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 17 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [15:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:08:58]wFMCommunicate OK [15:08:58]CreateOFDProtocolMessage done [15:08:58]OFDSenderStorePacket 192249 [15:08:58]StoreOFDPacket docnum=192249 [15:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 C6 07 01 48 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 89 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EE 02 00 35 04 06 00 7E 63 46 F9 AA F6 74 C7 64 E1 E1 9D 7A 4B [15:08:58]CheckFolder [15:08:58]dirname=/storage/ofd_packets [15:08:58]CheckFolder done [15:08:58]ProducePacketName [15:08:58]name=ofd_packets/00192249 [15:08:58]NVStorageSaveData ofd_packets/00192249 [15:08:58]File name is /storage/ofd_packets/00192249 [15:08:58]Write 301 bytes [15:08:58]NVStorageSaveData done [15:08:58]OFDSenderStorePacket done [15:08:58]KKMCreateOFDPacket done [15:08:58]NVStorageSaveData kkm_last_timestamp [15:08:58]File name is /storage/kkm_last_timestamp [15:08:58]Write 4 bytes [15:08:58]NVStorageSaveData done [15:08:58]ExternCall_PrintAddStr [15:08:58]wPrintStart [15:08:58]Write to MH i2c: 01 00 00 51 03 54 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 07 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [15:08:58]RasterBufferAndPrint [15:08:58]line Счет N : (1)31564 [15:08:58]line ИНН: 02508201610067 [15:08:58]line Контрольно-Кассовый Чек [15:08:58]line ПРОДАЖА [15:08:58]line ТРК (МРК, ГНК) : 12 [15:08:58]line Товар: 2710124130 [15:08:58]line Аи-92-К-5 [15:08:58]line 11.960 * 66.90 [15:08:58]line = 800.12 [15:08:58]line НДС 12% НСП 1% [15:08:58]line > о реализуемом товаре [15:08:58]line ОКРУГЛЕНИЕ: -0.12 [15:08:58]line ИТОГО: 800.00 [15:08:58]line Внесено: 800.00 [15:08:58]line СДАЧА: 0.00 [15:08:58]line НСП 1% : 7.08 [15:08:58]line НДС 12% : 84.97 [15:08:58]line Наличными: 800.00 [15:08:58]line Безнал.: 0.00 [15:08:58]line Место: АЗС № 170 "Партнер Нефть" [15:08:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:08:58]line СНО: Общий режим [15:08:58]line Чек 281 27.10.2024 15:08 [15:08:58]line Смена: 542 ФФД: 1.0 [15:08:58]line ЗНМ: 0300000110 [15:08:58]line РНМ: 0000000000091776 [15:08:58]line Версия ККМ: 001 [15:08:58]line ФМ: 0000000000871754 [15:08:58]line ФД: 192249 [15:08:58]line ФПД: 138964857629430 [15:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150857&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192249&fm=138964857629430&tin=02508201610067®Number=0000000000091776&sum=80000 [15:08:59]OFD Sender: Processing packet 192249 [packets to send 75, broken 74] [15:08:59]ProducePacketName [15:08:59]name=ofd_packets/00192249 [15:08:59]OFD Sender: To server: pG, [15:08:59]CommunicateWithHost lk.salyk.kg:30040 [15:08:59]ConnectInit lk.salyk.kg [15:08:59]written 0, free lines is 4095 [15:08:59]Connected sock=10 [15:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 C6 07 01 48 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 89 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EE 02 00 35 04 06 00 7E 63 46 F9 AA F6 74 C7 64 E1 E1 9D 7A 4B [15:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 8A 47 00 42 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EE 02 00 F4 03 04 00 50 FC 1D 67 B6 04 01 00 00 0A C6 8A CC C2 13 0A E4 [15:08:59]CommunicateWithHost err = 0 [15:08:59]CheckOFDResponse [15:08:59]1017 (14) - 77093643461234 [15:08:59]1041 (16) - 0000000000871754 [15:08:59]1040 (4) - 192249 [15:08:59]1012 (4) - 27.10.2024 08:39 [15:08:59]1206 (1) - 0 [15:08:59]OFD Sender: Remove packet 192249 [15:08:59]ProducePacketName [15:08:59]name=ofd_packets/00192249 [15:08:59]NVStorageDeleteData [15:08:59]Write to MH i2c: 01 00 00 7C 03 7F [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 A9 0C 3B [15:08:59]RasterBufferAndPrint [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]written 0, free lines is 3247 [15:08:59]MH_Cut [15:08:59]Write to MH i2c: D1 01 00 83 03 01 58 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 01 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 01 00 83 03 00 57 [15:08:59]Write to MH i2c: 01 00 00 84 03 87 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:09:00]OFD Sender: No OFD packet to send [15:09:00]*** Cut start [15:09:00]*** Partial cut [15:09:00]*** CUTSNS_PIN = 1 [15:09:00]*** CUTSNS_PIN = 0 [15:09:00]*** Brake cut motor [15:09:01]Read from MH i2c: 01 [15:09:01]MH_I2C_Read... [15:09:01]*** Stop cut motor [15:09:01]*** Cut end [15:09:01]Read from MH i2c: 01 07 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [15:09:01]process_action close_receipt done [15:09:01]requested_data is exist [15:09:01]produce_requested_data [15:09:01]requested_item fm.sn is exist - process it [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 11 00 00 [15:09:01]Write to MH i2c: E2 08 00 85 03 80 11 00 00 00 00 00 00 02 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:01]Read from MH i2c: E2 17 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 85 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [15:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:09:01]wFMCommunicate OK [15:09:01]requested_item fd.num is exist - process it [15:09:01]SAM_PROTO_GetFieldsCounters [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 13 00 00 [15:09:01]Write to MH i2c: E2 08 00 86 03 80 13 00 00 00 00 00 00 05 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 62 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 62 00 86 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_GetFieldsCounters done [15:09:01]requested_item shift.num is exist - process it [15:09:01]requested_item shift.opened is exist - process it [15:09:01]req_shift_opened [15:09:01]FM_GetShiftState [15:09:01]SAM_PROTO_GetShiftState [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 13 01 00 [15:09:01]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [15:09:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_GetShiftState done [15:09:01]FM_GetShiftState done [15:09:01]req_shift_opened done [15:09:01]requested_item shift.open_date is exist - process it [15:09:01]req_shift_open_date [15:09:01]req_shift_open_date done [15:09:01]produce_requested_data done [15:09:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192249,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:09:01]process_action_free close_receipt [15:09:01]json_value_free [15:09:01]json_value_free done [15:09:01]process_json_proto returns [15:09:01]Send response to host [15:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192249,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:09:01]free response buf [15:09:01]execute_script done [15:09:01]execute_script returns [15:09:01]free content buf [15:09:01]Sock 9.Close socket [15:09:01]Sock 9.Thread stoped [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:02]accept exits with 7 [15:10:02]New connection [15:10:02]New thread 3067080036 created [15:10:02]Thread 3066936676 joined [15:10:02]Waiting for new connection... [15:10:02] Sock 7.Parse request [15:10:02]Sock 7.Check first char [15:10:02]Sock 7.First char is OK [15:10:02]request: POST /json_proto HTTP/1.0 [15:10:02]Method: POST [15:10:02]URL: /json_proto [15:10:02]Method is POST - this is cgi request [15:10:02]url: /json_proto [15:10:02]query_string will be loaded in cgi processing [15:10:02]execute_cgi json_proto POST (null) [15:10:02]execute_cgi path=json_proto method=POST [15:10:02]POST find Content-Length [15:10:02]Host: 172.17.63.131:8080 [15:10:02]Content-Length: 678 [15:10:02]Content-Type: application/json [15:10:02] [15:10:02]POST finish read [15:10:02]Found Content-Length = 678 [15:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31563", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]execute_script... [15:10: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)31563", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]POST & json_proto [15:10:02]process_json_proto [15:10:02]json parsed OK: [15:10:02]protocol is kg_v1.0 [15:10:02]action value=close_receipt [15:10:02]process_action close_receipt [15:10:02]cmd_close_receipt [15:10:02]MH_GetDate [15:10:02]Write to MH i2c: F0 00 00 88 03 7A [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 88 03 00 CA 57 1E 67 22 05 6E 64 22 [15:10:02]GetLastDocTimeStamp 1730041737 [15:10:02]current date 1730041802 [15:10:02]FM_GetShiftState [15:10:02]SAM_PROTO_GetShiftState [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 13 01 00 [15:10:02]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4A [15:10:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_GetShiftState done [15:10:02]FM_GetShiftState done [15:10:02]opened in 1729989159 [15:10:02]opened+sec_in_day 1730075559 [15:10:02]quantity*price = 300075 [15:10:02]sum+1 = 300077 [15:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 282 27.10.2024 15:10 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192250 ФПД: 228175818975602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192250&fm=228175818975602&tin=02508201610067®Number=0000000000091776&sum=300000 [15:10:03]StoreToDocumentArchive [15:10:03]shift 542 fd 192250 [15:10:03]save to /storage/0542/doc_00192250 [15:10:03]save last doc name /storage/0542/doc_00192250 to /storage/kkm_last_doc_name [15:10:03]save OK [15:10:03]Clear old archive folders... [15:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:03]tlvbuf is 003429A0 [15:10:03]SAM_PROTO_ClearQueue [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 09 00 00 [15:10:03]Write to MH i2c: E2 08 00 96 03 80 09 00 00 00 00 00 00 0B [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_ClearQueue done [15:10:03]KKMCreateOFDPacket [15:10:03]OFDProtocolAddRootSTLVToBuf [15:10:03]FM_MakeSignedData [15:10:03]FM_MakeSignedData [15:10:03]SAM_PROTO_SignData [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 01 02 [15:10:03]Write to MH i2c: E2 08 00 97 03 80 0D 01 02 00 00 00 00 13 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]wFMCommunicate request_size=255 [15:10:03]MH_SAM_APDU [15:10: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CA 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EE 02 00 35 04 06 00 CF 86 52 A2 [15:10:03]Write to MH i2c: E2 02 01 98 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CA 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EE 02 00 35 04 06 00 CF 86 52 A2 00 00 E8 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=7 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 02 02 02 E9 72 [15:10:04]Write to MH i2c: E2 0A 00 99 03 80 0D 02 02 02 00 E9 72 00 00 75 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 03 02 [15:10:04]Write to MH i2c: E2 08 00 9A 03 80 0D 03 02 00 00 00 00 18 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 9A 03 00 75 A9 A2 1F 5D 77 64 64 90 00 94 [15:10:04]RAPDU: 75 A9 A2 1F 5D 77 64 64 90 00 [15:10:04]wFMCommunicate OK [15:10:04]SAM_PROTO_SignData done [15:10:04]FM_MakeSignedData done [15:10:04]CreateOFDProtocolMessage [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 11 00 00 [15:10:04]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 17 00 [15:10:04]MH_I2C_Read... [15:10:04]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 37 35 34 90 00 6B [15:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:04]wFMCommunicate OK [15:10:04]CreateOFDProtocolMessage done [15:10:04]OFDSenderStorePacket 192250 [15:10:04]StoreOFDPacket docnum=192250 [15:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D9 7B 04 01 89 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CA 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EE 02 00 35 04 06 00 CF 86 52 A2 E9 72 75 A9 A2 1F 5D 77 64 64 [15:10:04]CheckFolder [15:10:04]dirname=/storage/ofd_packets [15:10:04]CheckFolder done [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00192250 [15:10:04]NVStorageSaveData ofd_packets/00192250 [15:10:04]File name is /storage/ofd_packets/00192250 [15:10:04]Write 298 bytes [15:10:04]NVStorageSaveData done [15:10:04]OFDSenderStorePacket done [15:10:04]KKMCreateOFDPacket done [15:10:04]NVStorageSaveData kkm_last_timestamp [15:10:04]File name is /storage/kkm_last_timestamp [15:10:04]Write 4 bytes [15:10:04]NVStorageSaveData done [15:10:04]ExternCall_PrintAddStr [15:10:04]wPrintStart [15:10:04]Write to MH i2c: 01 00 00 9C 03 9F [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [15:10:04]RasterBufferAndPrint [15:10:04]line Счет N : (1)31563 [15:10:04]line ИНН: 02508201610067 [15:10:04]line Контрольно-Кассовый Чек [15:10:04]line ПРОДАЖА [15:10:04]line ТРК (МРК, ГНК) : 11 [15:10:04]line Товар: 2710194210 [15:10:04]line ДТ-К-5 [15:10:04]line 39.380 * 76.20 [15:10:04]line = 3000.76 [15:10:04]line НДС 12% НСП 1% [15:10:04]line > о реализуемом товаре [15:10:04]line ОКРУГЛЕНИЕ: -0.76 [15:10:04]line ИТОГО: 3000.00 [15:10:04]line Внесено: 3000.00 [15:10:04]line СДАЧА: 0.00 [15:10:04]line НСП 1% : 26.55 [15:10:04]line НДС 12% : 318.66 [15:10:04]line Наличными: 3000.00 [15:10:04]line Безнал.: 0.00 [15:10:04]line Место: АЗС № 170 "Партнер Нефть" [15:10:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:10:04]line СНО: Общий режим [15:10:04]line Чек 282 27.10.2024 15:10 [15:10:04]line Смена: 542 ФФД: 1.0 [15:10:04]line ЗНМ: 0300000110 [15:10:04]line РНМ: 0000000000091776 [15:10:04]line Версия ККМ: 001 [15:10:04]line ФМ: 0000000000871754 [15:10:04]line ФД: 192250 [15:10:04]line ФПД: 228175818975602 [15:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192250&fm=228175818975602&tin=02508201610067®Number=0000000000091776&sum=300000 [15:10:04]OFD Sender: Processing packet 192250 [packets to send 75, broken 74] [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00192250 [15:10:04]OFD Sender: To server: pG, [15:10:04]CommunicateWithHost lk.salyk.kg:30040 [15:10:04]ConnectInit lk.salyk.kg [15:10:04]written 0, free lines is 4095 [15:10:04]Connected sock=11 [15:10:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D9 7B 04 01 89 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 CA 57 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EE 02 00 35 04 06 00 CF 86 52 A2 E9 72 75 A9 A2 1F 5D 77 64 64 [15:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3C CD 47 00 72 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EE 02 00 F4 03 04 00 92 FC 1D 67 B6 04 01 00 00 53 83 16 95 50 12 E0 F0 [15:10:04]CommunicateWithHost err = 0 [15:10:04]CheckOFDResponse [15:10:04]1017 (14) - 77093643461234 [15:10:04]1041 (16) - 0000000000871754 [15:10:04]1040 (4) - 192250 [15:10:04]1012 (4) - 27.10.2024 08:40 [15:10:04]1206 (1) - 0 [15:10:04]OFD Sender: Remove packet 192250 [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00192250 [15:10:04]NVStorageDeleteData [15:10:04]Write to MH i2c: 01 00 00 C7 03 CA [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 C9 0C A6 [15:10:04]RasterBufferAndPrint [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]written 0, free lines is 3278 [15:10:04]MH_Cut [15:10:04]Write to MH i2c: D1 01 00 CE 03 01 A3 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 01 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 01 00 CE 03 00 A2 [15:10:04]Write to MH i2c: 01 00 00 CF 03 D2 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:05]OFD Sender: No OFD packet to send [15:10:05]*** Cut start [15:10:05]*** Partial cut [15:10:05]*** CUTSNS_PIN = 1 [15:10:05]*** CUTSNS_PIN = 0 [15:10:06]*** Brake cut motor [15:10:06]Read from MH i2c: 01 [15:10:06]MH_I2C_Read... [15:10:06]*** Stop cut motor [15:10:06]*** Cut end [15:10:06]Read from MH i2c: 01 07 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [15:10:06]process_action close_receipt done [15:10:06]requested_data is exist [15:10:06]produce_requested_data [15:10:06]requested_item fm.sn is exist - process it [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 11 00 00 [15:10:06]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [15:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:06]wFMCommunicate OK [15:10:06]requested_item fd.num is exist - process it [15:10:06]SAM_PROTO_GetFieldsCounters [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 00 00 [15:10:06]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetFieldsCounters done [15:10:06]requested_item shift.num is exist - process it [15:10:06]requested_item shift.opened is exist - process it [15:10:06]req_shift_opened [15:10:06]FM_GetShiftState [15:10:06]SAM_PROTO_GetShiftState [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 01 00 [15:10:06]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [15:10:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetShiftState done [15:10:06]FM_GetShiftState done [15:10:06]req_shift_opened done [15:10:06]requested_item shift.open_date is exist - process it [15:10:06]req_shift_open_date [15:10:06]req_shift_open_date done [15:10:06]produce_requested_data done [15:10:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192250,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:10:06]process_action_free close_receipt [15:10:06]json_value_free [15:10:06]json_value_free done [15:10:06]process_json_proto returns [15:10:06]Send response to host [15:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192250,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:10:06]free response buf [15:10:06]execute_script done [15:10:06]execute_script returns [15:10:06]free content buf [15:10:06]Sock 7.Close socket [15:10:06]Sock 7.Thread stoped [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:03]accept exits with 9 [15:11:03]New connection [15:11:03]New thread 3066936676 created [15:11:03]Thread 3067080036 joined [15:11:03]Waiting for new connection... [15:11:03] Sock 9.Parse request [15:11:03]Sock 9.Check first char [15:11:03]Sock 9.First char is OK [15:11:03]request: POST /json_proto HTTP/1.0 [15:11:03]Method: POST [15:11:03]URL: /json_proto [15:11:03]Method is POST - this is cgi request [15:11:03]url: /json_proto [15:11:03]query_string will be loaded in cgi processing [15:11:03]execute_cgi json_proto POST (null) [15:11:03]execute_cgi path=json_proto method=POST [15:11:03]POST find Content-Length [15:11:03]Host: 172.17.63.131:8080 [15:11:03]Content-Length: 676 [15:11:03]Content-Type: application/json [15:11:03] [15:11:03]POST finish read [15:11:03]Found Content-Length = 676 [15:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:03]execute_script... [15:11: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)31566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:03]POST & json_proto [15:11:03]process_json_proto [15:11:03]json parsed OK: [15:11:03]protocol is kg_v1.0 [15:11:03]action value=close_receipt [15:11:03]process_action close_receipt [15:11:03]cmd_close_receipt [15:11:03]MH_GetDate [15:11:03]Write to MH i2c: F0 00 00 D3 03 C5 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: F0 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: F0 09 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: F0 09 00 D3 03 00 07 58 1E 67 22 05 6E 64 AB [15:11:03]GetLastDocTimeStamp 1730041802 [15:11:03]current date 1730041863 [15:11:03]FM_GetShiftState [15:11:03]SAM_PROTO_GetShiftState [15:11:03]wFMCommunicate request_size=4 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 13 01 00 [15:11:03]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 0E 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 95 [15:11:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:11:03]wFMCommunicate OK [15:11:03]SAM_PROTO_GetShiftState done [15:11:03]FM_GetShiftState done [15:11:03]opened in 1729989159 [15:11:03]opened+sec_in_day 1730075559 [15:11:03]quantity*price = 50041 [15:11:03]sum+1 = 50042 [15:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 283 27.10.2024 15:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192251 ФПД: 162877566874491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192251&fm=162877566874491&tin=02508201610067®Number=0000000000091776&sum=50000 [15:11:04]StoreToDocumentArchive [15:11:04]shift 542 fd 192251 [15:11:04]save to /storage/0542/doc_00192251 [15:11:04]save last doc name /storage/0542/doc_00192251 to /storage/kkm_last_doc_name [15:11:04]save OK [15:11:04]Clear old archive folders... [15:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:04]tlvbuf is 0030A8A0 [15:11:04]SAM_PROTO_ClearQueue [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 09 00 00 [15:11:04]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [15:11:04]RAPDU: 90 00 [15:11:04]wFMCommunicate OK [15:11:04]SAM_PROTO_ClearQueue done [15:11:04]KKMCreateOFDPacket [15:11:04]OFDProtocolAddRootSTLVToBuf [15:11:04]FM_MakeSignedData [15:11:04]FM_MakeSignedData [15:11:04]SAM_PROTO_SignData [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 0D 01 02 [15:11:04]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [15:11:04]RAPDU: 90 00 [15:11:04]wFMCommunicate OK [15:11:04]wFMCommunicate request_size=255 [15:11:04]MH_SAM_APDU [15:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 07 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EE 02 00 35 04 06 00 94 [15:11:04]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 07 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EE 02 00 35 04 06 00 94 00 00 91 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [15:11:04]RAPDU: 90 00 [15:11:04]wFMCommunicate OK [15:11:04]wFMCommunicate request_size=10 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 0D 02 02 05 22 E3 83 F3 7B [15:11:04]Write to MH i2c: E2 0D 00 E4 03 80 0D 02 02 05 00 22 E3 83 F3 7B 00 00 61 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [15:11:04]RAPDU: 90 00 [15:11:04]wFMCommunicate OK [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 0D 03 02 [15:11:04]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 0B 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 0B 00 E5 03 00 2D 3C 55 F9 B2 98 9C 2A 90 00 2B [15:11:05]RAPDU: 2D 3C 55 F9 B2 98 9C 2A 90 00 [15:11:05]wFMCommunicate OK [15:11:05]SAM_PROTO_SignData done [15:11:05]FM_MakeSignedData done [15:11:05]CreateOFDProtocolMessage [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 11 00 00 [15:11:05]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 17 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [15:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:11:05]wFMCommunicate OK [15:11:05]CreateOFDProtocolMessage done [15:11:05]OFDSenderStorePacket 192251 [15:11:05]StoreOFDPacket docnum=192251 [15:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 05 07 01 38 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 07 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EE 02 00 35 04 06 00 94 22 E3 83 F3 7B 2D 3C 55 F9 B2 98 9C 2A [15:11:05]CheckFolder [15:11:05]dirname=/storage/ofd_packets [15:11:05]CheckFolder done [15:11:05]ProducePacketName [15:11:05]name=ofd_packets/00192251 [15:11:05]NVStorageSaveData ofd_packets/00192251 [15:11:05]File name is /storage/ofd_packets/00192251 [15:11:05]Write 301 bytes [15:11:05]NVStorageSaveData done [15:11:05]OFDSenderStorePacket done [15:11:05]KKMCreateOFDPacket done [15:11:05]NVStorageSaveData kkm_last_timestamp [15:11:05]File name is /storage/kkm_last_timestamp [15:11:05]Write 4 bytes [15:11:05]NVStorageSaveData done [15:11:05]OFD Sender: Processing packet 192251 [packets to send 75, broken 74] [15:11:05]ProducePacketName [15:11:05]name=ofd_packets/00192251 [15:11:05]OFD Sender: To server: pG, [15:11:05]CommunicateWithHost lk.salyk.kg:30040 [15:11:05]ConnectInit lk.salyk.kg [15:11:05]ExternCall_PrintAddStr [15:11:05]wPrintStart [15:11:05]Write to MH i2c: 01 00 00 E7 03 EA [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 07 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [15:11:05]RasterBufferAndPrint [15:11:05]line Счет N : (1)31566 [15:11:05]line ИНН: 02508201610067 [15:11:05]line Контрольно-Кассовый Чек [15:11:05]line ПРОДАЖА [15:11:05]line ТРК (МРК, ГНК) : 12 [15:11:05]line Товар: 2710124130 [15:11:05]line Аи-92-К-5 [15:11:05]line 7.480 * 66.90 [15:11:05]line = 500.41 [15:11:05]line НДС 12% НСП 1% [15:11:05]line > о реализуемом товаре [15:11:05]line ОКРУГЛЕНИЕ: -0.41 [15:11:05]line ИТОГО: 500.00 [15:11:05]line Внесено: 500.00 [15:11:05]line СДАЧА: 0.00 [15:11:05]line НСП 1% : 4.43 [15:11:05]line НДС 12% : 53.14 [15:11:05]line Наличными: 500.00 [15:11:05]line Безнал.: 0.00 [15:11:05]line Место: АЗС № 170 "Партнер Нефть" [15:11:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:11:05]line СНО: Общий режим [15:11:05]line Чек 283 27.10.2024 15:11 [15:11:05]line Смена: 542 ФФД: 1.0 [15:11:05]line ЗНМ: 0300000110 [15:11:05]line РНМ: 0000000000091776 [15:11:05]line Версия ККМ: 001 [15:11:05]line ФМ: 0000000000871754 [15:11:05]line ФД: 192251 [15:11:05]line ФПД: 162877566874491 [15:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192251&fm=162877566874491&tin=02508201610067®Number=0000000000091776&sum=50000 [15:11:05]Connected sock=11 [15:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 05 07 01 38 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 07 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EE 02 00 35 04 06 00 94 22 E3 83 F3 7B 2D 3C 55 F9 B2 98 9C 2A [15:11:05]written 0, free lines is 4095 [15:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 52 47 00 87 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EE 02 00 F4 03 04 00 CE FC 1D 67 B6 04 01 00 00 D2 01 B4 BF 1D C8 74 B2 [15:11:05]CommunicateWithHost err = 0 [15:11:05]CheckOFDResponse [15:11:05]1017 (14) - 77093643461234 [15:11:05]1041 (16) - 0000000000871754 [15:11:05]1040 (4) - 192251 [15:11:05]1012 (4) - 27.10.2024 08:41 [15:11:05]1206 (1) - 0 [15:11:05]OFD Sender: Remove packet 192251 [15:11:05]ProducePacketName [15:11:05]name=ofd_packets/00192251 [15:11:05]NVStorageDeleteData [15:11:05]Write to MH i2c: 01 00 00 12 04 16 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 07 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 A5 0C CE [15:11:05]RasterBufferAndPrint [15:11:05]line [15:11:05]line [15:11:05]line [15:11:05]line [15:11:05]line [15:11:05]written 0, free lines is 3242 [15:11:05]MH_Cut [15:11:05]Write to MH i2c: D1 01 00 19 04 01 EF [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: D1 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: D1 01 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: D1 01 00 19 04 00 EE [15:11:05]Write to MH i2c: 01 00 00 1A 04 1E [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:06]OFD Sender: No OFD packet to send [15:11:06]*** Cut start [15:11:06]*** Partial cut [15:11:06]*** CUTSNS_PIN = 1 [15:11:06]*** CUTSNS_PIN = 0 [15:11:07]*** Brake cut motor [15:11:07]Read from MH i2c: 01 [15:11:07]MH_I2C_Read... [15:11:07]*** Stop cut motor [15:11:07]*** Cut end [15:11:07]Read from MH i2c: 01 07 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [15:11:07]process_action close_receipt done [15:11:07]requested_data is exist [15:11:07]produce_requested_data [15:11:07]requested_item fm.sn is exist - process it [15:11:07]wFMCommunicate request_size=4 [15:11:07]MH_SAM_APDU [15:11:07]CAPDU: 80 11 00 00 [15:11:07]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:07]Read from MH i2c: E2 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 17 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [15:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:11:07]wFMCommunicate OK [15:11:07]requested_item fd.num is exist - process it [15:11:07]SAM_PROTO_GetFieldsCounters [15:11:07]wFMCommunicate request_size=4 [15:11:07]MH_SAM_APDU [15:11:07]CAPDU: 80 13 00 00 [15:11:07]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:07]Read from MH i2c: E2 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 62 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 62 00 1C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:07]wFMCommunicate OK [15:11:07]SAM_PROTO_GetFieldsCounters done [15:11:07]requested_item shift.num is exist - process it [15:11:07]requested_item shift.opened is exist - process it [15:11:07]req_shift_opened [15:11:07]FM_GetShiftState [15:11:07]SAM_PROTO_GetShiftState [15:11:07]wFMCommunicate request_size=4 [15:11:07]MH_SAM_APDU [15:11:07]CAPDU: 80 13 01 00 [15:11:07]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 [15:11:07]MH_I2C_Read... [15:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:07]Read from MH i2c: E2 0E 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DF [15:11:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:11:07]wFMCommunicate OK [15:11:07]SAM_PROTO_GetShiftState done [15:11:07]FM_GetShiftState done [15:11:07]req_shift_opened done [15:11:07]requested_item shift.open_date is exist - process it [15:11:07]req_shift_open_date [15:11:07]req_shift_open_date done [15:11:07]produce_requested_data done [15:11:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192251,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:11:07]process_action_free close_receipt [15:11:07]json_value_free [15:11:07]json_value_free done [15:11:07]process_json_proto returns [15:11:07]Send response to host [15:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192251,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:11:07]free response buf [15:11:07]execute_script done [15:11:07]execute_script returns [15:11:07]free content buf [15:11:07]Sock 9.Close socket [15:11:07]Sock 9.Thread stoped [15:11:11]OFD Sender: No OFD packet to send [15:11:15]accept exits with 7 [15:11:15]New connection [15:11:15]New thread 3067080036 created [15:11:15]Thread 3066936676 joined [15:11:15]Waiting for new connection... [15:11:15] Sock 7.Parse request [15:11:15]Sock 7.Check first char [15:11:15]Sock 7.First char is OK [15:11:15]request: POST /json_proto HTTP/1.0 [15:11:15]Method: POST [15:11:15]URL: /json_proto [15:11:15]Method is POST - this is cgi request [15:11:15]url: /json_proto [15:11:15]query_string will be loaded in cgi processing [15:11:15]execute_cgi json_proto POST (null) [15:11:15]execute_cgi path=json_proto method=POST [15:11:15]POST find Content-Length [15:11:15]Host: 172.17.63.131:8080 [15:11:15]Content-Length: 681 [15:11:15]Content-Type: application/json [15:11:15] [15:11:15]POST finish read [15:11:15]Found Content-Length = 681 [15:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:15]execute_script... [15:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:15]POST & json_proto [15:11:15]process_json_proto [15:11:15]json parsed OK: [15:11:15]protocol is kg_v1.0 [15:11:15]action value=close_receipt [15:11:15]process_action close_receipt [15:11:15]cmd_close_receipt [15:11:15]MH_GetDate [15:11:15]Write to MH i2c: F0 00 00 1E 04 11 [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: F0 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: F0 09 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: F0 09 00 1E 04 00 13 58 1E 67 22 05 6E 64 03 [15:11:15]GetLastDocTimeStamp 1730041863 [15:11:15]current date 1730041875 [15:11:15]FM_GetShiftState [15:11:15]SAM_PROTO_GetShiftState [15:11:15]wFMCommunicate request_size=4 [15:11:15]MH_SAM_APDU [15:11:15]CAPDU: 80 13 01 00 [15:11:15]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [15:11:15]Write i2c OK [15:11:15]MH_I2C_Read... [15:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:15]Read from MH i2c: E2 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 0E 00 [15:11:15]MH_I2C_Read... [15:11:15]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E1 [15:11:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:11:15]wFMCommunicate OK [15:11:15]SAM_PROTO_GetShiftState done [15:11:15]FM_GetShiftState done [15:11:15]opened in 1729989159 [15:11:15]opened+sec_in_day 1730075559 [15:11:15]quantity*price = 200031 [15:11:15]sum+1 = 200032 [15:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 284 27.10.2024 15:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192252 ФПД: 75762639094799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151115&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192252&fm=75762639094799&tin=02508201610067®Number=0000000000091776&sum=200000 [15:11:16]StoreToDocumentArchive [15:11:16]shift 542 fd 192252 [15:11:16]save to /storage/0542/doc_00192252 [15:11:16]save last doc name /storage/0542/doc_00192252 to /storage/kkm_last_doc_name [15:11:16]save OK [15:11:16]Clear old archive folders... [15:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:16]tlvbuf is 003115A0 [15:11:16]SAM_PROTO_ClearQueue [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 09 00 00 [15:11:16]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 03 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [15:11:16]RAPDU: 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_ClearQueue done [15:11:16]KKMCreateOFDPacket [15:11:16]OFDProtocolAddRootSTLVToBuf [15:11:16]FM_MakeSignedData [15:11:16]FM_MakeSignedData [15:11:16]SAM_PROTO_SignData [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 0D 01 02 [15:11:16]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 03 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [15:11:16]RAPDU: 90 00 [15:11:16]wFMCommunicate OK [15:11:16]wFMCommunicate request_size=255 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EE 02 00 35 04 06 00 44 [15:11:16]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EE 02 00 35 04 06 00 44 00 00 DD [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=10 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 02 02 05 E7 DD 30 C4 0F [15:11:17]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 E7 DD 30 C4 0F 00 00 7E [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 03 02 [15:11:17]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0B 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0B 00 30 04 00 99 AD F1 1C E9 23 A4 7D 90 00 30 [15:11:17]RAPDU: 99 AD F1 1C E9 23 A4 7D 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_SignData done [15:11:17]FM_MakeSignedData done [15:11:17]CreateOFDProtocolMessage [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 11 00 00 [15:11:17]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 17 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [15:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:11:17]wFMCommunicate OK [15:11:17]CreateOFDProtocolMessage done [15:11:17]OFDSenderStorePacket 192252 [15:11:17]StoreOFDPacket docnum=192252 [15:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 5E 07 01 C7 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EE 02 00 35 04 06 00 44 E7 DD 30 C4 0F 99 AD F1 1C E9 23 A4 7D [15:11:17]CheckFolder [15:11:17]dirname=/storage/ofd_packets [15:11:17]CheckFolder done [15:11:17]ProducePacketName [15:11:17]name=ofd_packets/00192252 [15:11:17]NVStorageSaveData ofd_packets/00192252 [15:11:17]File name is /storage/ofd_packets/00192252 [15:11:17]Write 301 bytes [15:11:17]NVStorageSaveData done [15:11:17]OFDSenderStorePacket done [15:11:17]KKMCreateOFDPacket done [15:11:17]NVStorageSaveData kkm_last_timestamp [15:11:17]File name is /storage/kkm_last_timestamp [15:11:17]Write 4 bytes [15:11:17]NVStorageSaveData done [15:11:17]ExternCall_PrintAddStr [15:11:17]wPrintStart [15:11:17]Write to MH i2c: 01 00 00 32 04 36 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [15:11:17]RasterBufferAndPrint [15:11:17]line Счет N : (1)31565 [15:11:17]line ИНН: 02508201610067 [15:11:17]line Контрольно-Кассовый Чек [15:11:17]line ПРОДАЖА [15:11:17]line ТРК (МРК, ГНК) : 21 [15:11:17]line Товар: 2710124130 [15:11:17]line Аи-92-К-5 [15:11:17]line 29.900 * 66.90 [15:11:17]line = 2000.31 [15:11:17]line НДС 12% НСП 1% [15:11:17]line > о реализуемом товаре [15:11:17]line ОКРУГЛЕНИЕ: -0.31 [15:11:17]line ИТОГО: 2000.00 [15:11:17]line Внесено: 2000.00 [15:11:17]line СДАЧА: 0.00 [15:11:17]line НСП 1% : 17.70 [15:11:17]line НДС 12% : 212.42 [15:11:17]line Наличными: 2000.00 [15:11:17]line Безнал.: 0.00 [15:11:17]line Место: АЗС № 170 "Партнер Нефть" [15:11:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:11:17]line СНО: Общий режим [15:11:17]line Чек 284 27.10.2024 15:11 [15:11:17]line Смена: 542 ФФД: 1.0 [15:11:17]line ЗНМ: 0300000110 [15:11:17]line РНМ: 0000000000091776 [15:11:17]line Версия ККМ: 001 [15:11:17]line ФМ: 0000000000871754 [15:11:17]line ФД: 192252 [15:11:17]line ФПД: 75762639094799 [15:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151115&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192252&fm=75762639094799&tin=02508201610067®Number=0000000000091776&sum=200000 [15:11:17]written 0, free lines is 4095 [15:11:17]OFD Sender: Processing packet 192252 [packets to send 75, broken 74] [15:11:17]ProducePacketName [15:11:17]name=ofd_packets/00192252 [15:11:17]OFD Sender: To server: pG, [15:11:17]CommunicateWithHost lk.salyk.kg:30040 [15:11:17]ConnectInit lk.salyk.kg [15:11:17]Connected sock=10 [15:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 5E 07 01 C7 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EE 02 00 35 04 06 00 44 E7 DD 30 C4 0F 99 AD F1 1C E9 23 A4 7D [15:11:17]Write to MH i2c: 01 00 00 5D 04 61 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 B1 0C 25 [15:11:17]RasterBufferAndPrint [15:11:17]line [15:11:17]line [15:11:17]line [15:11:17]line [15:11:17]line [15:11:17]written 0, free lines is 3258 [15:11:17]MH_Cut [15:11:17]Write to MH i2c: D1 01 00 64 04 01 3A [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: D1 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: D1 01 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: D1 01 00 64 04 00 39 [15:11:17]Write to MH i2c: 01 00 00 65 04 69 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 6C 47 00 5C E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EE 02 00 F4 03 04 00 DB FC 1D 67 B6 04 01 00 00 A4 1C 50 99 B3 3C 89 18 [15:11:17]CommunicateWithHost err = 0 [15:11:17]CheckOFDResponse [15:11:17]1017 (14) - 77093643461234 [15:11:17]1041 (16) - 0000000000871754 [15:11:17]1040 (4) - 192252 [15:11:17]1012 (4) - 27.10.2024 08:42 [15:11:17]1206 (1) - 0 [15:11:17]OFD Sender: Remove packet 192252 [15:11:17]ProducePacketName [15:11:17]name=ofd_packets/00192252 [15:11:17]NVStorageDeleteData [15:11:18]OFD Sender: No OFD packet to send [15:11:18]*** Cut start [15:11:18]*** Partial cut [15:11:18]*** CUTSNS_PIN = 1 [15:11:18]*** CUTSNS_PIN = 0 [15:11:18]*** Brake cut motor [15:11:19]Read from MH i2c: 01 [15:11:19]MH_I2C_Read... [15:11:19]*** Stop cut motor [15:11:19]*** Cut end [15:11:19]Read from MH i2c: 01 07 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [15:11:19]process_action close_receipt done [15:11:19]requested_data is exist [15:11:19]produce_requested_data [15:11:19]requested_item fm.sn is exist - process it [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 11 00 00 [15:11:19]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 17 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [15:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:11:19]wFMCommunicate OK [15:11:19]requested_item fd.num is exist - process it [15:11:19]SAM_PROTO_GetFieldsCounters [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 13 00 00 [15:11:19]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 62 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:19]wFMCommunicate OK [15:11:19]SAM_PROTO_GetFieldsCounters done [15:11:19]requested_item shift.num is exist - process it [15:11:19]requested_item shift.opened is exist - process it [15:11:19]req_shift_opened [15:11:19]FM_GetShiftState [15:11:19]SAM_PROTO_GetShiftState [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 13 01 00 [15:11:19]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 0E 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [15:11:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:11:19]wFMCommunicate OK [15:11:19]SAM_PROTO_GetShiftState done [15:11:19]FM_GetShiftState done [15:11:19]req_shift_opened done [15:11:19]requested_item shift.open_date is exist - process it [15:11:19]req_shift_open_date [15:11:19]req_shift_open_date done [15:11:19]produce_requested_data done [15:11:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192252,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:11:19]process_action_free close_receipt [15:11:19]json_value_free [15:11:19]json_value_free done [15:11:19]process_json_proto returns [15:11:19]Send response to host [15:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192252,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:11:19]free response buf [15:11:19]execute_script done [15:11:19]execute_script returns [15:11:19]free content buf [15:11:19]Sock 7.Close socket [15:11:19]Sock 7.Thread stoped [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:12]accept exits with 9 [15:12:12]New connection [15:12:12]New thread 3066936676 created [15:12:12]Thread 3067080036 joined [15:12:12]Waiting for new connection... [15:12:12] Sock 9.Parse request [15:12:12]Sock 9.Check first char [15:12:12]Sock 9.First char is OK [15:12:12]request: POST /json_proto HTTP/1.0 [15:12:12]Method: POST [15:12:12]URL: /json_proto [15:12:12]Method is POST - this is cgi request [15:12:12]url: /json_proto [15:12:12]query_string will be loaded in cgi processing [15:12:12]execute_cgi json_proto POST (null) [15:12:12]execute_cgi path=json_proto method=POST [15:12:12]POST find Content-Length [15:12:12]Host: 172.17.63.131:8080 [15:12:12]Content-Length: 676 [15:12:12]Content-Type: application/json [15:12:12] [15:12:12]POST finish read [15:12:12]Found Content-Length = 676 [15:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:12]execute_script... [15:12:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:12]POST & json_proto [15:12:12]process_json_proto [15:12:12]json parsed OK: [15:12:12]protocol is kg_v1.0 [15:12:12]action value=close_receipt [15:12:12]process_action close_receipt [15:12:12]cmd_close_receipt [15:12:12]MH_GetDate [15:12:12]Write to MH i2c: F0 00 00 69 04 5C [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 09 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: F0 09 00 69 04 00 4C 58 1E 67 22 05 6E 64 87 [15:12:12]GetLastDocTimeStamp 1730041875 [15:12:12]current date 1730041932 [15:12:12]FM_GetShiftState [15:12:12]SAM_PROTO_GetShiftState [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 13 01 00 [15:12:12]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0E 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2C [15:12:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:12:12]wFMCommunicate OK [15:12:12]SAM_PROTO_GetShiftState done [15:12:12]FM_GetShiftState done [15:12:12]opened in 1729989159 [15:12:12]opened+sec_in_day 1730075559 [15:12:12]quantity*price = 60009 [15:12:12]sum+1 = 60010 [15:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 285 27.10.2024 15:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192253 ФПД: 151525077131474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192253&fm=151525077131474&tin=02508201610067®Number=0000000000091776&sum=60000 [15:12:13]StoreToDocumentArchive [15:12:13]shift 542 fd 192253 [15:12:13]save to /storage/0542/doc_00192253 [15:12:13]save last doc name /storage/0542/doc_00192253 to /storage/kkm_last_doc_name [15:12:13]save OK [15:12:13]Clear old archive folders... [15:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:13]tlvbuf is 0030C460 [15:12:13]SAM_PROTO_ClearQueue [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 09 00 00 [15:12:13]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]SAM_PROTO_ClearQueue done [15:12:13]KKMCreateOFDPacket [15:12:13]OFDProtocolAddRootSTLVToBuf [15:12:13]FM_MakeSignedData [15:12:13]FM_MakeSignedData [15:12:13]SAM_PROTO_SignData [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 01 02 [15:12:13]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]wFMCommunicate request_size=255 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4C 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EE 02 00 35 04 06 00 89 [15:12:13]Write to MH i2c: E2 02 01 79 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4C 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EE 02 00 35 04 06 00 89 00 00 43 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]OFD Sender: No OFD packet to send [15:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]wFMCommunicate request_size=10 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 02 02 05 CF AE 65 A0 D2 [15:12:13]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 CF AE 65 A0 D2 00 00 56 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [15:12:13]RAPDU: 90 00 [15:12:13]wFMCommunicate OK [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 0D 03 02 [15:12:13]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 0B 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 0B 00 7B 04 00 2B 6E F6 2C C5 17 6B E8 90 00 E5 [15:12:13]RAPDU: 2B 6E F6 2C C5 17 6B E8 90 00 [15:12:13]wFMCommunicate OK [15:12:13]SAM_PROTO_SignData done [15:12:13]FM_MakeSignedData done [15:12:13]CreateOFDProtocolMessage [15:12:13]wFMCommunicate request_size=4 [15:12:13]MH_SAM_APDU [15:12:13]CAPDU: 80 11 00 00 [15:12:13]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:13]Read from MH i2c: E2 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 17 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [15:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:13]wFMCommunicate OK [15:12:13]CreateOFDProtocolMessage done [15:12:13]OFDSenderStorePacket 192253 [15:12:13]StoreOFDPacket docnum=192253 [15:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 7D 07 01 9F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4C 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EE 02 00 35 04 06 00 89 CF AE 65 A0 D2 2B 6E F6 2C C5 17 6B E8 [15:12:13]CheckFolder [15:12:13]dirname=/storage/ofd_packets [15:12:13]CheckFolder done [15:12:13]ProducePacketName [15:12:13]name=ofd_packets/00192253 [15:12:13]NVStorageSaveData ofd_packets/00192253 [15:12:13]File name is /storage/ofd_packets/00192253 [15:12:13]Write 301 bytes [15:12:13]NVStorageSaveData done [15:12:13]OFDSenderStorePacket done [15:12:13]KKMCreateOFDPacket done [15:12:13]NVStorageSaveData kkm_last_timestamp [15:12:13]File name is /storage/kkm_last_timestamp [15:12:13]Write 4 bytes [15:12:13]NVStorageSaveData done [15:12:13]ExternCall_PrintAddStr [15:12:13]wPrintStart [15:12:13]Write to MH i2c: 01 00 00 7D 04 81 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 07 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [15:12:13]RasterBufferAndPrint [15:12:13]line Счет N : (1)31567 [15:12:13]line ИНН: 02508201610067 [15:12:13]line Контрольно-Кассовый Чек [15:12:13]line ПРОДАЖА [15:12:13]line ТРК (МРК, ГНК) : 12 [15:12:13]line Товар: 2710124130 [15:12:13]line Аи-92-К-5 [15:12:13]line 8.970 * 66.90 [15:12:13]line = 600.09 [15:12:13]line НДС 12% НСП 1% [15:12:13]line > о реализуемом товаре [15:12:13]line ОКРУГЛЕНИЕ: -0.09 [15:12:13]line ИТОГО: 600.00 [15:12:13]line Внесено: 600.00 [15:12:13]line СДАЧА: 0.00 [15:12:13]line НСП 1% : 5.31 [15:12:13]line НДС 12% : 63.73 [15:12:13]line Наличными: 600.00 [15:12:13]line Безнал.: 0.00 [15:12:13]line Место: АЗС № 170 "Партнер Нефть" [15:12:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:12:13]line СНО: Общий режим [15:12:13]line Чек 285 27.10.2024 15:12 [15:12:13]line Смена: 542 ФФД: 1.0 [15:12:13]line ЗНМ: 0300000110 [15:12:13]line РНМ: 0000000000091776 [15:12:13]line Версия ККМ: 001 [15:12:13]line ФМ: 0000000000871754 [15:12:13]line ФД: 192253 [15:12:13]line ФПД: 151525077131474 [15:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192253&fm=151525077131474&tin=02508201610067®Number=0000000000091776&sum=60000 [15:12:14]OFD Sender: Processing packet 192253 [packets to send 75, broken 74] [15:12:14]ProducePacketName [15:12:14]name=ofd_packets/00192253 [15:12:14]OFD Sender: To server: pG, [15:12:14]CommunicateWithHost lk.salyk.kg:30040 [15:12:14]ConnectInit lk.salyk.kg [15:12:14]written 0, free lines is 4095 [15:12:14]Connected sock=10 [15:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 7D 07 01 9F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4C 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EE 02 00 35 04 06 00 89 CF AE 65 A0 D2 2B 6E F6 2C C5 17 6B E8 [15:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 41 1F 47 00 F9 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EE 02 00 F4 03 04 00 13 FD 1D 67 B6 04 01 00 00 E1 66 AF 1C B0 F6 13 CF [15:12:14]CommunicateWithHost err = 0 [15:12:14]CheckOFDResponse [15:12:14]1017 (14) - 77093643461234 [15:12:14]1041 (16) - 0000000000871754 [15:12:14]1040 (4) - 192253 [15:12:14]1012 (4) - 27.10.2024 08:42 [15:12:14]1206 (1) - 0 [15:12:14]OFD Sender: Remove packet 192253 [15:12:14]ProducePacketName [15:12:14]name=ofd_packets/00192253 [15:12:14]NVStorageDeleteData [15:12:14]Write to MH i2c: 01 00 00 A8 04 AC [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 A5 0C 64 [15:12:14]RasterBufferAndPrint [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]line [15:12:14]written 0, free lines is 3242 [15:12:14]MH_Cut [15:12:14]Write to MH i2c: D1 01 00 AF 04 01 85 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 01 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: D1 01 00 AF 04 00 84 [15:12:14]Write to MH i2c: 01 00 00 B0 04 B4 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]OFD Sender: No OFD packet to send [15:12:15]*** Cut start [15:12:15]*** Partial cut [15:12:15]*** CUTSNS_PIN = 1 [15:12:15]*** CUTSNS_PIN = 0 [15:12:15]*** Brake cut motor [15:12:15]Read from MH i2c: 01 [15:12:15]MH_I2C_Read... [15:12:15]*** Stop cut motor [15:12:15]*** Cut end [15:12:15]Read from MH i2c: 01 07 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [15:12:15]process_action close_receipt done [15:12:15]requested_data is exist [15:12:15]produce_requested_data [15:12:15]requested_item fm.sn is exist - process it [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 11 00 00 [15:12:15]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [15:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:12:16]wFMCommunicate OK [15:12:16]requested_item fd.num is exist - process it [15:12:16]SAM_PROTO_GetFieldsCounters [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 13 00 00 [15:12:16]Write to MH i2c: E2 08 00 B2 04 80 13 00 00 00 00 00 00 32 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 62 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 62 00 B2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:16]wFMCommunicate OK [15:12:16]SAM_PROTO_GetFieldsCounters done [15:12:16]requested_item shift.num is exist - process it [15:12:16]requested_item shift.opened is exist - process it [15:12:16]req_shift_opened [15:12:16]FM_GetShiftState [15:12:16]SAM_PROTO_GetShiftState [15:12:16]wFMCommunicate request_size=4 [15:12:16]MH_SAM_APDU [15:12:16]CAPDU: 80 13 01 00 [15:12:16]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0E 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [15:12:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:12:16]wFMCommunicate OK [15:12:16]SAM_PROTO_GetShiftState done [15:12:16]FM_GetShiftState done [15:12:16]req_shift_opened done [15:12:16]requested_item shift.open_date is exist - process it [15:12:16]req_shift_open_date [15:12:16]req_shift_open_date done [15:12:16]produce_requested_data done [15:12:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192253,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:12:16]process_action_free close_receipt [15:12:16]json_value_free [15:12:16]json_value_free done [15:12:16]process_json_proto returns [15:12:16]Send response to host [15:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192253,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:12:16]free response buf [15:12:16]execute_script done [15:12:16]execute_script returns [15:12:16]free content buf [15:12:16]Sock 9.Close socket [15:12:16]Sock 9.Thread stoped [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:06]accept exits with 7 [15:13:06]New connection [15:13:06]New thread 3067080036 created [15:13:06]Thread 3066936676 joined [15:13:06]Waiting for new connection... [15:13:06] Sock 7.Parse request [15:13:06]Sock 7.Check first char [15:13:06]Sock 7.First char is OK [15:13:06]request: POST /json_proto HTTP/1.0 [15:13:06]Method: POST [15:13:06]URL: /json_proto [15:13:06]Method is POST - this is cgi request [15:13:06]url: /json_proto [15:13:06]query_string will be loaded in cgi processing [15:13:06]execute_cgi json_proto POST (null) [15:13:06]execute_cgi path=json_proto method=POST [15:13:06]POST find Content-Length [15:13:06]Host: 172.17.63.131:8080 [15:13:06]Content-Length: 676 [15:13:06]Content-Type: application/json [15:13:06] [15:13:06]POST finish read [15:13:06]Found Content-Length = 676 [15:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:06]execute_script... [15:13: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)31568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:06]POST & json_proto [15:13:06]process_json_proto [15:13:06]json parsed OK: [15:13:06]protocol is kg_v1.0 [15:13:06]action value=close_receipt [15:13:06]process_action close_receipt [15:13:06]cmd_close_receipt [15:13:06]MH_GetDate [15:13:06]Write to MH i2c: F0 00 00 B4 04 A7 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: F0 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: F0 09 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: F0 09 00 B4 04 00 82 58 1E 67 22 05 6E 64 08 [15:13:06]GetLastDocTimeStamp 1730041932 [15:13:06]current date 1730041986 [15:13:06]FM_GetShiftState [15:13:06]SAM_PROTO_GetShiftState [15:13:06]wFMCommunicate request_size=4 [15:13:06]MH_SAM_APDU [15:13:06]CAPDU: 80 13 01 00 [15:13:06]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [15:13:06]Write i2c OK [15:13:06]MH_I2C_Read... [15:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:06]Read from MH i2c: E2 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 0E 00 [15:13:06]MH_I2C_Read... [15:13:06]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 77 [15:13:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:13:06]wFMCommunicate OK [15:13:06]SAM_PROTO_GetShiftState done [15:13:06]FM_GetShiftState done [15:13:06]opened in 1729989159 [15:13:06]opened+sec_in_day 1730075559 [15:13:06]quantity*price = 50041 [15:13:06]sum+1 = 50042 [15:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 286 27.10.2024 15:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192254 ФПД: 119503200468907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151306&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192254&fm=119503200468907&tin=02508201610067®Number=0000000000091776&sum=50000 [15:13:07]StoreToDocumentArchive [15:13:07]shift 542 fd 192254 [15:13:07]save to /storage/0542/doc_00192254 [15:13:07]save last doc name /storage/0542/doc_00192254 to /storage/kkm_last_doc_name [15:13:07]save OK [15:13:07]Clear old archive folders... [15:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:07]tlvbuf is 00336C30 [15:13:07]SAM_PROTO_ClearQueue [15:13:07]wFMCommunicate request_size=4 [15:13:07]MH_SAM_APDU [15:13:07]CAPDU: 80 09 00 00 [15:13:07]Write to MH i2c: E2 08 00 C2 04 80 09 00 00 00 00 00 00 38 [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:07]Read from MH i2c: E2 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [15:13:07]RAPDU: 90 00 [15:13:07]wFMCommunicate OK [15:13:07]SAM_PROTO_ClearQueue done [15:13:07]KKMCreateOFDPacket [15:13:07]OFDProtocolAddRootSTLVToBuf [15:13:07]FM_MakeSignedData [15:13:07]FM_MakeSignedData [15:13:07]SAM_PROTO_SignData [15:13:07]wFMCommunicate request_size=4 [15:13:07]MH_SAM_APDU [15:13:07]CAPDU: 80 0D 01 02 [15:13:07]Write to MH i2c: E2 08 00 C3 04 80 0D 01 02 00 00 00 00 40 [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:07]Read from MH i2c: E2 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [15:13:07]RAPDU: 90 00 [15:13:07]wFMCommunicate OK [15:13:07]wFMCommunicate request_size=255 [15:13:07]MH_SAM_APDU [15:13:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 82 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EE 02 00 35 04 06 00 6C [15:13:07]Write to MH i2c: E2 02 01 C4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 82 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EE 02 00 35 04 06 00 6C 00 00 CC [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:07]Read from MH i2c: E2 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 [15:13:07]MH_I2C_Read... [15:13:07]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [15:13:07]RAPDU: 90 00 [15:13:07]wFMCommunicate OK [15:13:07]wFMCommunicate request_size=10 [15:13:07]MH_SAM_APDU [15:13:07]CAPDU: 80 0D 02 02 05 B0 01 D0 3F AB [15:13:07]Write to MH i2c: E2 0D 00 C5 04 80 0D 02 02 05 00 B0 01 D0 3F AB 00 00 B8 [15:13:07]Write i2c OK [15:13:07]MH_I2C_Read... [15:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:08]Read from MH i2c: E2 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 03 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [15:13:08]RAPDU: 90 00 [15:13:08]wFMCommunicate OK [15:13:08]wFMCommunicate request_size=4 [15:13:08]MH_SAM_APDU [15:13:08]CAPDU: 80 0D 03 02 [15:13:08]Write to MH i2c: E2 08 00 C6 04 80 0D 03 02 00 00 00 00 45 [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:08]Read from MH i2c: E2 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 0B 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 0B 00 C6 04 00 62 39 31 57 B2 B6 11 4E 90 00 30 [15:13:08]RAPDU: 62 39 31 57 B2 B6 11 4E 90 00 [15:13:08]wFMCommunicate OK [15:13:08]SAM_PROTO_SignData done [15:13:08]FM_MakeSignedData done [15:13:08]CreateOFDProtocolMessage [15:13:08]wFMCommunicate request_size=4 [15:13:08]MH_SAM_APDU [15:13:08]CAPDU: 80 11 00 00 [15:13:08]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:08]Read from MH i2c: E2 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 17 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [15:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:08]wFMCommunicate OK [15:13:08]CreateOFDProtocolMessage done [15:13:08]OFDSenderStorePacket 192254 [15:13:08]StoreOFDPacket docnum=192254 [15:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E 76 07 01 B4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 82 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EE 02 00 35 04 06 00 6C B0 01 D0 3F AB 62 39 31 57 B2 B6 11 4E [15:13:08]CheckFolder [15:13:08]dirname=/storage/ofd_packets [15:13:08]CheckFolder done [15:13:08]ProducePacketName [15:13:08]name=ofd_packets/00192254 [15:13:08]NVStorageSaveData ofd_packets/00192254 [15:13:08]File name is /storage/ofd_packets/00192254 [15:13:08]Write 301 bytes [15:13:08]NVStorageSaveData done [15:13:08]OFDSenderStorePacket done [15:13:08]KKMCreateOFDPacket done [15:13:08]NVStorageSaveData kkm_last_timestamp [15:13:08]File name is /storage/kkm_last_timestamp [15:13:08]Write 4 bytes [15:13:08]NVStorageSaveData done [15:13:08]ExternCall_PrintAddStr [15:13:08]wPrintStart [15:13:08]Write to MH i2c: 01 00 00 C8 04 CC [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 07 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [15:13:08]RasterBufferAndPrint [15:13:08]line Счет N : (1)31568 [15:13:08]line ИНН: 02508201610067 [15:13:08]line Контрольно-Кассовый Чек [15:13:08]line ПРОДАЖА [15:13:08]line ТРК (МРК, ГНК) : 12 [15:13:08]line Товар: 2710124130 [15:13:08]line Аи-92-К-5 [15:13:08]line 7.480 * 66.90 [15:13:08]line = 500.41 [15:13:08]line НДС 12% НСП 1% [15:13:08]line > о реализуемом товаре [15:13:08]line ОКРУГЛЕНИЕ: -0.41 [15:13:08]line ИТОГО: 500.00 [15:13:08]line Внесено: 500.00 [15:13:08]line СДАЧА: 0.00 [15:13:08]line НСП 1% : 4.43 [15:13:08]line НДС 12% : 53.14 [15:13:08]line Наличными: 500.00 [15:13:08]line Безнал.: 0.00 [15:13:08]line Место: АЗС № 170 "Партнер Нефть" [15:13:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:13:08]line СНО: Общий режим [15:13:08]line Чек 286 27.10.2024 15:13 [15:13:08]line Смена: 542 ФФД: 1.0 [15:13:08]line ЗНМ: 0300000110 [15:13:08]line РНМ: 0000000000091776 [15:13:08]line Версия ККМ: 001 [15:13:08]line ФМ: 0000000000871754 [15:13:08]line ФД: 192254 [15:13:08]line ФПД: 119503200468907 [15:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151306&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192254&fm=119503200468907&tin=02508201610067®Number=0000000000091776&sum=50000 [15:13:08]OFD Sender: Processing packet 192254 [packets to send 75, broken 74] [15:13:08]ProducePacketName [15:13:08]name=ofd_packets/00192254 [15:13:08]OFD Sender: To server: pG, [15:13:08]CommunicateWithHost lk.salyk.kg:30040 [15:13:08]ConnectInit lk.salyk.kg [15:13:08]written 0, free lines is 4095 [15:13:08]Connected sock=10 [15:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E 76 07 01 B4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 82 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EE 02 00 35 04 06 00 6C B0 01 D0 3F AB 62 39 31 57 B2 B6 11 4E [15:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6F B5 47 00 BE 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EE 02 00 F4 03 04 00 4A FD 1D 67 B6 04 01 00 00 A6 12 1E EB EA DB A6 FE [15:13:08]CommunicateWithHost err = 0 [15:13:08]CheckOFDResponse [15:13:08]1017 (14) - 77093643461234 [15:13:08]1041 (16) - 0000000000871754 [15:13:08]1040 (4) - 192254 [15:13:08]1012 (4) - 27.10.2024 08:43 [15:13:08]1206 (1) - 0 [15:13:08]OFD Sender: Remove packet 192254 [15:13:08]ProducePacketName [15:13:08]name=ofd_packets/00192254 [15:13:08]NVStorageDeleteData [15:13:08]Write to MH i2c: 01 00 00 F3 04 F7 [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 07 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 A9 0C B3 [15:13:08]RasterBufferAndPrint [15:13:08]line [15:13:08]line [15:13:08]line [15:13:08]line [15:13:08]line [15:13:08]written 0, free lines is 3246 [15:13:08]MH_Cut [15:13:08]Write to MH i2c: D1 01 00 FA 04 01 D0 [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: D1 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: D1 01 00 [15:13:08]MH_I2C_Read... [15:13:08]Read from MH i2c: D1 01 00 FA 04 00 CF [15:13:08]Write to MH i2c: 01 00 00 FB 04 FF [15:13:08]Write i2c OK [15:13:08]MH_I2C_Read... [15:13:09]OFD Sender: No OFD packet to send [15:13:09]*** Cut start [15:13:09]*** Partial cut [15:13:09]*** CUTSNS_PIN = 1 [15:13:09]*** CUTSNS_PIN = 0 [15:13:10]*** Brake cut motor [15:13:10]Read from MH i2c: 01 [15:13:10]MH_I2C_Read... [15:13:10]*** Stop cut motor [15:13:10]*** Cut end [15:13:10]Read from MH i2c: 01 07 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [15:13:10]process_action close_receipt done [15:13:10]requested_data is exist [15:13:10]produce_requested_data [15:13:10]requested_item fm.sn is exist - process it [15:13:10]wFMCommunicate request_size=4 [15:13:10]MH_SAM_APDU [15:13:10]CAPDU: 80 11 00 00 [15:13:10]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:10]Read from MH i2c: E2 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 17 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [15:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:10]wFMCommunicate OK [15:13:10]requested_item fd.num is exist - process it [15:13:10]SAM_PROTO_GetFieldsCounters [15:13:10]wFMCommunicate request_size=4 [15:13:10]MH_SAM_APDU [15:13:10]CAPDU: 80 13 00 00 [15:13:10]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:10]Read from MH i2c: E2 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 62 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [15:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:10]wFMCommunicate OK [15:13:10]SAM_PROTO_GetFieldsCounters done [15:13:10]requested_item shift.num is exist - process it [15:13:10]requested_item shift.opened is exist - process it [15:13:10]req_shift_opened [15:13:10]FM_GetShiftState [15:13:10]SAM_PROTO_GetShiftState [15:13:10]wFMCommunicate request_size=4 [15:13:10]MH_SAM_APDU [15:13:10]CAPDU: 80 13 01 00 [15:13:10]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:10]Read from MH i2c: E2 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 0E 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [15:13:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:13:10]wFMCommunicate OK [15:13:10]SAM_PROTO_GetShiftState done [15:13:10]FM_GetShiftState done [15:13:10]req_shift_opened done [15:13:10]requested_item shift.open_date is exist - process it [15:13:10]req_shift_open_date [15:13:10]req_shift_open_date done [15:13:10]produce_requested_data done [15:13:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192254,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:13:10]process_action_free close_receipt [15:13:10]json_value_free [15:13:10]json_value_free done [15:13:10]process_json_proto returns [15:13:10]Send response to host [15:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192254,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:13:10]free response buf [15:13:10]execute_script done [15:13:10]execute_script returns [15:13:10]free content buf [15:13:10]Sock 7.Close socket [15:13:10]Sock 7.Thread stoped [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]accept exits with 9 [15:14:59]New connection [15:14:59]New thread 3066936676 created [15:14:59]Thread 3067080036 joined [15:14:59]Waiting for new connection... [15:14:59] Sock 9.Parse request [15:14:59]Sock 9.Check first char [15:14:59]Sock 9.First char is OK [15:14:59]request: POST /json_proto HTTP/1.0 [15:14:59]Method: POST [15:14:59]URL: /json_proto [15:14:59]Method is POST - this is cgi request [15:14:59]url: /json_proto [15:14:59]query_string will be loaded in cgi processing [15:14:59]execute_cgi json_proto POST (null) [15:14:59]execute_cgi path=json_proto method=POST [15:14:59]POST find Content-Length [15:14:59]Host: 172.17.63.131:8080 [15:14:59]Content-Length: 676 [15:14:59]Content-Type: application/json [15:14:59] [15:14:59]POST finish read [15:14:59]Found Content-Length = 676 [15:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:59]execute_script... [15:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:59]POST & json_proto [15:14:59]process_json_proto [15:14:59]json parsed OK: [15:14:59]protocol is kg_v1.0 [15:14:59]action value=close_receipt [15:14:59]process_action close_receipt [15:14:59]cmd_close_receipt [15:14:59]MH_GetDate [15:14:59]Write to MH i2c: F0 00 00 FF 04 F2 [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 09 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 09 00 FF 04 00 F3 58 1E 67 22 05 6E 64 C4 [15:14:59]GetLastDocTimeStamp 1730041986 [15:14:59]current date 1730042099 [15:14:59]FM_GetShiftState [15:14:59]SAM_PROTO_GetShiftState [15:14:59]wFMCommunicate request_size=4 [15:14:59]MH_SAM_APDU [15:14:59]CAPDU: 80 13 01 00 [15:14:59]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:59]Read from MH i2c: E2 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: E2 0E 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C3 [15:14:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:14:59]wFMCommunicate OK [15:14:59]SAM_PROTO_GetShiftState done [15:14:59]FM_GetShiftState done [15:14:59]opened in 1729989159 [15:14:59]opened+sec_in_day 1730075559 [15:14:59]quantity*price = 40006 [15:14:59]sum+1 = 40007 [15:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 287 27.10.2024 15:14 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192255 ФПД: 67802449449045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192255&fm=67802449449045&tin=02508201610067®Number=0000000000091776&sum=40000 [15:15:00]StoreToDocumentArchive [15:15:00]shift 542 fd 192255 [15:15:00]save to /storage/0542/doc_00192255 [15:15:00]save last doc name /storage/0542/doc_00192255 to /storage/kkm_last_doc_name [15:15:00]save OK [15:15:00]Clear old archive folders... [15:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:00]tlvbuf is 0030B920 [15:15:00]SAM_PROTO_ClearQueue [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 09 00 00 [15:15:00]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]SAM_PROTO_ClearQueue done [15:15:00]KKMCreateOFDPacket [15:15:00]OFDProtocolAddRootSTLVToBuf [15:15:00]FM_MakeSignedData [15:15:00]FM_MakeSignedData [15:15:00]SAM_PROTO_SignData [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 01 02 [15:15:00]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=255 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F3 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EE 02 00 35 04 06 00 3D [15:15:00]Write to MH i2c: E2 02 01 0F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F3 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EE 02 00 35 04 06 00 3D 00 00 2B [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=10 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 02 02 05 AA 7C EA 10 55 [15:15:00]Write to MH i2c: E2 0D 00 10 05 80 0D 02 02 05 00 AA 7C EA 10 55 00 00 0E [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 03 02 [15:15:00]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 0B 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 0B 00 11 05 00 99 E5 2F A4 05 C4 F1 7D 90 00 1A [15:15:00]RAPDU: 99 E5 2F A4 05 C4 F1 7D 90 00 [15:15:00]wFMCommunicate OK [15:15:00]SAM_PROTO_SignData done [15:15:00]FM_MakeSignedData done [15:15:00]CreateOFDProtocolMessage [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 11 00 00 [15:15:00]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 17 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [15:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:00]wFMCommunicate OK [15:15:00]CreateOFDProtocolMessage done [15:15:00]OFDSenderStorePacket 192255 [15:15:00]StoreOFDPacket docnum=192255 [15:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED B0 07 01 7C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F3 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EE 02 00 35 04 06 00 3D AA 7C EA 10 55 99 E5 2F A4 05 C4 F1 7D [15:15:00]CheckFolder [15:15:00]dirname=/storage/ofd_packets [15:15:00]CheckFolder done [15:15:00]ProducePacketName [15:15:00]name=ofd_packets/00192255 [15:15:00]NVStorageSaveData ofd_packets/00192255 [15:15:00]File name is /storage/ofd_packets/00192255 [15:15:00]Write 301 bytes [15:15:00]NVStorageSaveData done [15:15:00]OFDSenderStorePacket done [15:15:00]KKMCreateOFDPacket done [15:15:00]NVStorageSaveData kkm_last_timestamp [15:15:00]File name is /storage/kkm_last_timestamp [15:15:00]Write 4 bytes [15:15:00]NVStorageSaveData done [15:15:00]ExternCall_PrintAddStr [15:15:00]wPrintStart [15:15:00]Write to MH i2c: 01 00 00 13 05 18 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: 01 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: 01 07 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [15:15:00]RasterBufferAndPrint [15:15:00]line Счет N : (1)31570 [15:15:00]line ИНН: 02508201610067 [15:15:00]line Контрольно-Кассовый Чек [15:15:00]line ПРОДАЖА [15:15:00]line ТРК (МРК, ГНК) : 21 [15:15:00]line Товар: 2710124130 [15:15:00]line Аи-92-К-5 [15:15:00]line 5.980 * 66.90 [15:15:00]line = 400.06 [15:15:00]line НДС 12% НСП 1% [15:15:00]line > о реализуемом товаре [15:15:00]line ОКРУГЛЕНИЕ: -0.06 [15:15:00]line ИТОГО: 400.00 [15:15:00]line Внесено: 400.00 [15:15:00]line СДАЧА: 0.00 [15:15:00]line НСП 1% : 3.54 [15:15:00]line НДС 12% : 42.48 [15:15:00]line Наличными: 400.00 [15:15:00]line Безнал.: 0.00 [15:15:00]line Место: АЗС № 170 "Партнер Нефть" [15:15:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:15:00]line СНО: Общий режим [15:15:00]line Чек 287 27.10.2024 15:14 [15:15:00]line Смена: 542 ФФД: 1.0 [15:15:00]line ЗНМ: 0300000110 [15:15:00]line РНМ: 0000000000091776 [15:15:00]line Версия ККМ: 001 [15:15:00]line ФМ: 0000000000871754 [15:15:00]line ФД: 192255 [15:15:00]line ФПД: 67802449449045 [15:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192255&fm=67802449449045&tin=02508201610067®Number=0000000000091776&sum=40000 [15:15:01]OFD Sender: Processing packet 192255 [packets to send 75, broken 74] [15:15:01]ProducePacketName [15:15:01]name=ofd_packets/00192255 [15:15:01]OFD Sender: To server: pG, [15:15:01]CommunicateWithHost lk.salyk.kg:30040 [15:15:01]ConnectInit lk.salyk.kg [15:15:01]written 0, free lines is 4095 [15:15:01]Write to MH i2c: 01 00 00 3E 05 43 [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 A9 0C FF [15:15:01]RasterBufferAndPrint [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]written 0, free lines is 3246 [15:15:01]MH_Cut [15:15:01]Write to MH i2c: D1 01 00 45 05 01 1C [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 01 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 01 00 45 05 00 1B [15:15:01]Write to MH i2c: 01 00 00 46 05 4B [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:02]*** Cut start [15:15:02]*** Partial cut [15:15:02]*** CUTSNS_PIN = 1 [15:15:02]*** CUTSNS_PIN = 0 [15:15:02]*** Brake cut motor [15:15:03]Read from MH i2c: 01 [15:15:03]MH_I2C_Read... [15:15:03]*** Stop cut motor [15:15:03]*** Cut end [15:15:03]Read from MH i2c: 01 07 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [15:15:03]process_action close_receipt done [15:15:03]requested_data is exist [15:15:03]produce_requested_data [15:15:03]requested_item fm.sn is exist - process it [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 11 00 00 [15:15:03]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 17 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [15:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:03]wFMCommunicate OK [15:15:03]requested_item fd.num is exist - process it [15:15:03]SAM_PROTO_GetFieldsCounters [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 13 00 00 [15:15:03]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 62 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EE 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:03]wFMCommunicate OK [15:15:03]SAM_PROTO_GetFieldsCounters done [15:15:03]requested_item shift.num is exist - process it [15:15:03]requested_item shift.opened is exist - process it [15:15:03]req_shift_opened [15:15:03]FM_GetShiftState [15:15:03]SAM_PROTO_GetShiftState [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 13 01 00 [15:15:03]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [15:15:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:15:03]wFMCommunicate OK [15:15:03]SAM_PROTO_GetShiftState done [15:15:03]FM_GetShiftState done [15:15:03]req_shift_opened done [15:15:03]requested_item shift.open_date is exist - process it [15:15:03]req_shift_open_date [15:15:03]req_shift_open_date done [15:15:03]produce_requested_data done [15:15:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192255,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:15:03]process_action_free close_receipt [15:15:03]json_value_free [15:15:03]json_value_free done [15:15:03]process_json_proto returns [15:15:03]Send response to host [15:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192255,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:15:03]free response buf [15:15:03]execute_script done [15:15:03]execute_script returns [15:15:03]free content buf [15:15:03]Sock 9.Close socket [15:15:03]Sock 9.Thread stoped [15:16:18]accept exits with 7 [15:16:18]New connection [15:16:18]New thread 3067080036 created [15:16:18]Thread 3066936676 joined [15:16:18]Waiting for new connection... [15:16:18] Sock 7.Parse request [15:16:18]Sock 7.Check first char [15:16:18]Sock 7.First char is OK [15:16:18]request: POST /json_proto HTTP/1.0 [15:16:18]Method: POST [15:16:18]URL: /json_proto [15:16:18]Method is POST - this is cgi request [15:16:18]url: /json_proto [15:16:18]query_string will be loaded in cgi processing [15:16:18]execute_cgi json_proto POST (null) [15:16:18]execute_cgi path=json_proto method=POST [15:16:18]POST find Content-Length [15:16:18]Host: 172.17.63.131:8080 [15:16:18]Content-Length: 678 [15:16:18]Content-Type: application/json [15:16:18] [15:16:18]POST finish read [15:16:18]Found Content-Length = 678 [15:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31569", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:18]execute_script... [15:16: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)31569", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:18]POST & json_proto [15:16:18]process_json_proto [15:16:18]json parsed OK: [15:16:18]protocol is kg_v1.0 [15:16:18]action value=close_receipt [15:16:18]process_action close_receipt [15:16:18]cmd_close_receipt [15:16:18]MH_GetDate [15:16:18]Write to MH i2c: F0 00 00 4A 05 3E [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: F0 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: F0 09 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: F0 09 00 4A 05 00 43 59 1E 67 22 05 6E 64 61 [15:16:18]GetLastDocTimeStamp 1730042099 [15:16:18]current date 1730042179 [15:16:18]FM_GetShiftState [15:16:18]SAM_PROTO_GetShiftState [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 13 01 00 [15:16:18]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0E [15:16:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_GetShiftState done [15:16:18]FM_GetShiftState done [15:16:18]opened in 1729989159 [15:16:18]opened+sec_in_day 1730075559 [15:16:18]quantity*price = 200025 [15:16:18]sum+1 = 200026 [15:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 288 27.10.2024 15:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192256 ФПД: 129418407411314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192256&fm=129418407411314&tin=02508201610067®Number=0000000000091776&sum=200000 [15:16:19]StoreToDocumentArchive [15:16:19]shift 542 fd 192256 [15:16:19]save to /storage/0542/doc_00192256 [15:16:19]save last doc name /storage/0542/doc_00192256 to /storage/kkm_last_doc_name [15:16:19]save OK [15:16:19]Clear old archive folders... [15:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:19]tlvbuf is 002D3950 [15:16:19]SAM_PROTO_ClearQueue [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 09 00 00 [15:16:19]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 03 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [15:16:19]RAPDU: 90 00 [15:16:19]wFMCommunicate OK [15:16:19]SAM_PROTO_ClearQueue done [15:16:19]KKMCreateOFDPacket [15:16:19]OFDProtocolAddRootSTLVToBuf [15:16:19]FM_MakeSignedData [15:16:19]FM_MakeSignedData [15:16:19]SAM_PROTO_SignData [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 0D 01 02 [15:16:19]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=255 [15:16:20]MH_SAM_APDU [15:16: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 43 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EF 02 00 35 04 06 00 75 B4 92 33 [15:16:20]Write to MH i2c: E2 02 01 5A 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 43 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EF 02 00 35 04 06 00 75 B4 92 33 00 00 90 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=7 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 02 02 02 7E 72 [15:16:20]Write to MH i2c: E2 0A 00 5B 05 80 0D 02 02 02 00 7E 72 00 00 CE [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [15:16:20]RAPDU: 90 00 [15:16:20]wFMCommunicate OK [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 0D 03 02 [15:16:20]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0B 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0B 00 5C 05 00 87 47 7C EA 40 44 7E 9C 90 00 AF [15:16:20]RAPDU: 87 47 7C EA 40 44 7E 9C 90 00 [15:16:20]wFMCommunicate OK [15:16:20]SAM_PROTO_SignData done [15:16:20]FM_MakeSignedData done [15:16:20]CreateOFDProtocolMessage [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 11 00 00 [15:16:20]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [15:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:20]wFMCommunicate OK [15:16:20]CreateOFDProtocolMessage done [15:16:20]OFDSenderStorePacket 192256 [15:16:20]StoreOFDPacket docnum=192256 [15:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C 42 04 01 86 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 43 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EF 02 00 35 04 06 00 75 B4 92 33 7E 72 87 47 7C EA 40 44 7E 9C [15:16:20]CheckFolder [15:16:20]dirname=/storage/ofd_packets [15:16:20]CheckFolder done [15:16:20]ProducePacketName [15:16:20]name=ofd_packets/00192256 [15:16:20]NVStorageSaveData ofd_packets/00192256 [15:16:20]File name is /storage/ofd_packets/00192256 [15:16:20]Write 298 bytes [15:16:20]NVStorageSaveData done [15:16:20]OFDSenderStorePacket done [15:16:20]KKMCreateOFDPacket done [15:16:20]NVStorageSaveData kkm_last_timestamp [15:16:20]File name is /storage/kkm_last_timestamp [15:16:20]Write 4 bytes [15:16:20]NVStorageSaveData done [15:16:20]ExternCall_PrintAddStr [15:16:20]wPrintStart [15:16:20]Write to MH i2c: 01 00 00 5E 05 63 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [15:16:20]RasterBufferAndPrint [15:16:20]line Счет N : (1)31569 [15:16:20]line ИНН: 02508201610067 [15:16:20]line Контрольно-Кассовый Чек [15:16:20]line ПРОДАЖА [15:16:20]line ТРК (МРК, ГНК) : 11 [15:16:20]line Товар: 2710194210 [15:16:20]line ДТ-К-5 [15:16:20]line 26.250 * 76.20 [15:16:20]line = 2000.25 [15:16:20]line НДС 12% НСП 1% [15:16:20]line > о реализуемом товаре [15:16:20]line ОКРУГЛЕНИЕ: -0.25 [15:16:20]line ИТОГО: 2000.00 [15:16:20]line Внесено: 2000.00 [15:16:20]line СДАЧА: 0.00 [15:16:20]line НСП 1% : 17.70 [15:16:20]line НДС 12% : 212.42 [15:16:20]line Наличными: 2000.00 [15:16:20]line Безнал.: 0.00 [15:16:20]line Место: АЗС № 170 "Партнер Нефть" [15:16:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:16:20]line СНО: Общий режим [15:16:20]line Чек 288 27.10.2024 15:16 [15:16:20]line Смена: 542 ФФД: 1.0 [15:16:20]line ЗНМ: 0300000110 [15:16:20]line РНМ: 0000000000091776 [15:16:20]line Версия ККМ: 001 [15:16:20]line ФМ: 0000000000871754 [15:16:20]line ФД: 192256 [15:16:20]line ФПД: 129418407411314 [15:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192256&fm=129418407411314&tin=02508201610067®Number=0000000000091776&sum=200000 [15:16:20]written 0, free lines is 4095 [15:16:21]Write to MH i2c: 01 00 00 89 05 8E [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 07 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 AB 0C 4C [15:16:21]RasterBufferAndPrint [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]line [15:16:21]written 0, free lines is 3249 [15:16:21]MH_Cut [15:16:21]Write to MH i2c: D1 01 00 90 05 01 67 [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 01 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: D1 01 00 90 05 00 66 [15:16:21]Write to MH i2c: 01 00 00 91 05 96 [15:16:21]Write i2c OK [15:16:21]MH_I2C_Read... [15:16:22]*** Cut start [15:16:22]*** Partial cut [15:16:22]*** CUTSNS_PIN = 1 [15:16:22]*** CUTSNS_PIN = 0 [15:16:22]*** Brake cut motor [15:16:22]Read from MH i2c: 01 [15:16:22]MH_I2C_Read... [15:16:22]*** Stop cut motor [15:16:22]*** Cut end [15:16:22]Read from MH i2c: 01 07 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [15:16:22]process_action close_receipt done [15:16:22]requested_data is exist [15:16:22]produce_requested_data [15:16:22]requested_item fm.sn is exist - process it [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 11 00 00 [15:16:22]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 17 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [15:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:22]wFMCommunicate OK [15:16:22]requested_item fd.num is exist - process it [15:16:22]SAM_PROTO_GetFieldsCounters [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 13 00 00 [15:16:22]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 62 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [15: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:22]wFMCommunicate OK [15:16:22]SAM_PROTO_GetFieldsCounters done [15:16:22]requested_item shift.num is exist - process it [15:16:22]requested_item shift.opened is exist - process it [15:16:22]req_shift_opened [15:16:22]FM_GetShiftState [15:16:22]SAM_PROTO_GetShiftState [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 13 01 00 [15:16:22]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 0E 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [15:16:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:16:22]wFMCommunicate OK [15:16:22]SAM_PROTO_GetShiftState done [15:16:22]FM_GetShiftState done [15:16:22]req_shift_opened done [15:16:22]requested_item shift.open_date is exist - process it [15:16:22]req_shift_open_date [15:16:22]req_shift_open_date done [15:16:22]produce_requested_data done [15:16:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192256,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:16:22]process_action_free close_receipt [15:16:22]json_value_free [15:16:22]json_value_free done [15:16:22]process_json_proto returns [15:16:22]Send response to host [15:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192256,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:16:22]free response buf [15:16:22]execute_script done [15:16:22]execute_script returns [15:16:22]free content buf [15:16:22]Sock 7.Close socket [15:16:22]Sock 7.Thread stoped [15:17:12]ConnectInit Can't connect to host [15:17:12]CommunicateWithHost connect error [15:17:12]CommunicateWithHost err = -1 [15:17:12]OFD Sender: Server communicate error [15:17:12]OFD Sender: Processing packet 192255 [packets to send 76, broken 74] [15:17:12]ProducePacketName [15:17:12]name=ofd_packets/00192255 [15:17:12]OFD Sender: To server: pG, [15:17:12]CommunicateWithHost lk.salyk.kg:30040 [15:17:12]ConnectInit lk.salyk.kg [15:17:12]Connected sock=7 [15:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED B0 07 01 7C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F3 58 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EE 02 00 35 04 06 00 3D AA 7C EA 10 55 99 E5 2F A4 05 C4 F1 7D [15:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 D2 47 00 BE 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EE 02 00 F4 03 04 00 3E FE 1D 67 B6 04 01 00 00 01 97 15 DB 72 22 C8 3D [15:17:13]CommunicateWithHost err = 0 [15:17:13]CheckOFDResponse [15:17:13]1017 (14) - 77093643461234 [15:17:13]1041 (16) - 0000000000871754 [15:17:13]1040 (4) - 192255 [15:17:13]1012 (4) - 27.10.2024 08:47 [15:17:13]1206 (1) - 0 [15:17:13]OFD Sender: Remove packet 192255 [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00192255 [15:17:13]NVStorageDeleteData [15:17:13]OFD Sender: Processing packet 192256 [packets to send 75, broken 74] [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00192256 [15:17:13]OFD Sender: To server: pG, [15:17:13]CommunicateWithHost lk.salyk.kg:30040 [15:17:13]ConnectInit lk.salyk.kg [15:17:13]Connected sock=7 [15:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C 42 04 01 86 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 43 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EF 02 00 35 04 06 00 75 B4 92 33 7E 72 87 47 7C EA 40 44 7E 9C [15:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 50 6B 47 00 DE 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 EF 02 00 F4 03 04 00 3F FE 1D 67 B6 04 01 00 00 C8 AC 3E CC 9B B7 B3 41 [15:17:13]CommunicateWithHost err = 0 [15:17:13]CheckOFDResponse [15:17:13]1017 (14) - 77093643461234 [15:17:13]1041 (16) - 0000000000871754 [15:17:13]1040 (4) - 192256 [15:17:13]1012 (4) - 27.10.2024 08:47 [15:17:13]1206 (1) - 0 [15:17:13]OFD Sender: Remove packet 192256 [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00192256 [15:17:13]NVStorageDeleteData [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:10]accept exits with 9 [15:19:10]New connection [15:19:10]New thread 3066936676 created [15:19:10]Thread 3067080036 joined [15:19:10]Waiting for new connection... [15:19:10] Sock 9.Parse request [15:19:10]Sock 9.Check first char [15:19:10]Sock 9.First char is OK [15:19:10]request: POST /json_proto HTTP/1.0 [15:19:10]Method: POST [15:19:10]URL: /json_proto [15:19:10]Method is POST - this is cgi request [15:19:10]url: /json_proto [15:19:10]query_string will be loaded in cgi processing [15:19:10]execute_cgi json_proto POST (null) [15:19:10]execute_cgi path=json_proto method=POST [15:19:10]POST find Content-Length [15:19:10]Host: 172.17.63.131:8080 [15:19:10]Content-Length: 681 [15:19:10]Content-Type: application/json [15:19:10] [15:19:10]POST finish read [15:19:10]Found Content-Length = 681 [15:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.530, "sum" : 1373.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1373.00, "payments": [ { "type": 0, "sum" : 1373.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:10]execute_script... [15:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.530, "sum" : 1373.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1373.00, "payments": [ { "type": 0, "sum" : 1373.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:10]POST & json_proto [15:19:10]process_json_proto [15:19:10]json parsed OK: [15:19:10]protocol is kg_v1.0 [15:19:10]action value=close_receipt [15:19:10]process_action close_receipt [15:19:10]cmd_close_receipt [15:19:10]MH_GetDate [15:19:10]Write to MH i2c: F0 00 00 95 05 89 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: F0 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: F0 09 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: F0 09 00 95 05 00 EE 59 1E 67 22 05 6E 64 57 [15:19:10]GetLastDocTimeStamp 1730042179 [15:19:10]current date 1730042350 [15:19:10]FM_GetShiftState [15:19:10]SAM_PROTO_GetShiftState [15:19:10]wFMCommunicate request_size=4 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 13 01 00 [15:19:10]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:10]Read from MH i2c: E2 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 0E 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 59 [15:19:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:19:10]wFMCommunicate OK [15:19:10]SAM_PROTO_GetShiftState done [15:19:10]FM_GetShiftState done [15:19:10]opened in 1729989159 [15:19:10]opened+sec_in_day 1730075559 [15:19:10]quantity*price = 137345 [15:19:10]sum+1 = 137347 [15:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1373.00 Внесено: 1400.00 СДАЧА: 27.00 НСП 1% : 12.15 НДС 12% : 145.85 Наличными: 1373.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 289 27.10.2024 15:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192257 ФПД: 85480151724574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151910&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192257&fm=85480151724574&tin=02508201610067®Number=0000000000091776&sum=137300 [15:19:11]StoreToDocumentArchive [15:19:11]shift 542 fd 192257 [15:19:11]save to /storage/0542/doc_00192257 [15:19:11]save last doc name /storage/0542/doc_00192257 to /storage/kkm_last_doc_name [15:19:11]save OK [15:19:11]Clear old archive folders... [15:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:11]tlvbuf is 003407E0 [15:19:11]SAM_PROTO_ClearQueue [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 09 00 00 [15:19:11]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [15:19:11]RAPDU: 90 00 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_ClearQueue done [15:19:11]KKMCreateOFDPacket [15:19:11]OFDProtocolAddRootSTLVToBuf [15:19:11]FM_MakeSignedData [15:19:11]FM_MakeSignedData [15:19:11]SAM_PROTO_SignData [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 0D 01 02 [15:19:11]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [15:19:11]RAPDU: 90 00 [15:19:11]wFMCommunicate OK [15:19:11]wFMCommunicate request_size=255 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 18 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 38 00 00 00 00 07 04 06 00 54 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 EE 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EF 02 00 35 04 06 00 4D [15:19:11]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 18 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 38 00 00 00 00 07 04 06 00 54 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 EE 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EF 02 00 35 04 06 00 4D 00 00 A8 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [15:19:11]RAPDU: 90 00 [15:19:11]wFMCommunicate OK [15:19:11]wFMCommunicate request_size=10 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 0D 02 02 05 BE 66 14 32 1E [15:19:11]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 BE 66 14 32 1E 00 00 B7 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [15:19:11]RAPDU: 90 00 [15:19:11]wFMCommunicate OK [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 0D 03 02 [15:19:11]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0B 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0B 00 A7 05 00 4F B6 A0 76 9D C6 74 85 90 00 9F [15:19:11]RAPDU: 4F B6 A0 76 9D C6 74 85 90 00 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_SignData done [15:19:11]FM_MakeSignedData done [15:19:11]CreateOFDProtocolMessage [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 11 00 00 [15:19:11]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [15:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:11]wFMCommunicate OK [15:19:11]CreateOFDProtocolMessage done [15:19:11]OFDSenderStorePacket 192257 [15:19:11]StoreOFDPacket docnum=192257 [15:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 76 07 01 61 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 18 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 38 00 00 00 00 07 04 06 00 54 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 EE 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EF 02 00 35 04 06 00 4D BE 66 14 32 1E 4F B6 A0 76 9D C6 74 85 [15:19:11]CheckFolder [15:19:11]dirname=/storage/ofd_packets [15:19:11]CheckFolder done [15:19:11]ProducePacketName [15:19:11]name=ofd_packets/00192257 [15:19:11]NVStorageSaveData ofd_packets/00192257 [15:19:11]File name is /storage/ofd_packets/00192257 [15:19:11]Write 301 bytes [15:19:11]NVStorageSaveData done [15:19:11]OFDSenderStorePacket done [15:19:11]KKMCreateOFDPacket done [15:19:11]NVStorageSaveData kkm_last_timestamp [15:19:11]File name is /storage/kkm_last_timestamp [15:19:11]Write 4 bytes [15:19:11]NVStorageSaveData done [15:19:11]ExternCall_PrintAddStr [15:19:11]wPrintStart [15:19:11]Write to MH i2c: 01 00 00 A9 05 AE [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [15:19:11]RasterBufferAndPrint [15:19:11]line Счет N : (1)31571 [15:19:11]line ИНН: 02508201610067 [15:19:11]line Контрольно-Кассовый Чек [15:19:11]line ПРОДАЖА [15:19:11]line ТРК (МРК, ГНК) : 21 [15:19:11]line Товар: 2710124130 [15:19:11]line Аи-92-К-5 [15:19:11]line 20.530 * 66.90 [15:19:11]line = 1373.46 [15:19:11]line НДС 12% НСП 1% [15:19:11]line > о реализуемом товаре [15:19:11]line ОКРУГЛЕНИЕ: -0.46 [15:19:11]line ИТОГО: 1373.00 [15:19:11]line Внесено: 1400.00 [15:19:11]line СДАЧА: 27.00 [15:19:11]line НСП 1% : 12.15 [15:19:11]line НДС 12% : 145.85 [15:19:11]line Наличными: 1373.00 [15:19:11]line Безнал.: 0.00 [15:19:11]line Место: АЗС № 170 "Партнер Нефть" [15:19:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:19:11]line СНО: Общий режим [15:19:11]line Чек 289 27.10.2024 15:19 [15:19:11]line Смена: 542 ФФД: 1.0 [15:19:11]line ЗНМ: 0300000110 [15:19:11]line РНМ: 0000000000091776 [15:19:11]line Версия ККМ: 001 [15:19:11]line ФМ: 0000000000871754 [15:19:11]line ФД: 192257 [15:19:11]line ФПД: 85480151724574 [15:19:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151910&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192257&fm=85480151724574&tin=02508201610067®Number=0000000000091776&sum=137300 [15:19:12]OFD Sender: Processing packet 192257 [packets to send 75, broken 74] [15:19:12]ProducePacketName [15:19:12]name=ofd_packets/00192257 [15:19:12]OFD Sender: To server: pG, [15:19:12]CommunicateWithHost lk.salyk.kg:30040 [15:19:12]ConnectInit lk.salyk.kg [15:19:12]written 0, free lines is 4095 [15:19:12]Connected sock=7 [15:19:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 76 07 01 61 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 50 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 18 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 18 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 38 00 00 00 00 07 04 06 00 54 18 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 EE 59 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EF 02 00 35 04 06 00 4D BE 66 14 32 1E 4F B6 A0 76 9D C6 74 85 [15:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 DC 47 00 47 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 EF 02 00 F4 03 04 00 B5 FE 1D 67 B6 04 01 00 00 3A BC F5 14 40 BD DC DD [15:19:12]CommunicateWithHost err = 0 [15:19:12]CheckOFDResponse [15:19:12]1017 (14) - 77093643461234 [15:19:12]1041 (16) - 0000000000871754 [15:19:12]1040 (4) - 192257 [15:19:12]1012 (4) - 27.10.2024 08:49 [15:19:12]1206 (1) - 0 [15:19:12]OFD Sender: Remove packet 192257 [15:19:12]ProducePacketName [15:19:12]name=ofd_packets/00192257 [15:19:12]NVStorageDeleteData [15:19:12]Write to MH i2c: 01 00 00 D4 05 D9 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 07 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 B9 0C A5 [15:19:12]RasterBufferAndPrint [15:19:12]line [15:19:12]line [15:19:12]line [15:19:12]line [15:19:12]line [15:19:12]written 0, free lines is 3262 [15:19:12]MH_Cut [15:19:12]Write to MH i2c: D1 01 00 DB 05 01 B2 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: D1 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: D1 01 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: D1 01 00 DB 05 00 B1 [15:19:12]Write to MH i2c: 01 00 00 DC 05 E1 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]OFD Sender: No OFD packet to send [15:19:13]*** Cut start [15:19:13]*** Partial cut [15:19:13]*** CUTSNS_PIN = 1 [15:19:13]*** CUTSNS_PIN = 0 [15:19:13]*** Brake cut motor [15:19:14]Read from MH i2c: 01 [15:19:14]MH_I2C_Read... [15:19:14]*** Stop cut motor [15:19:14]*** Cut end [15:19:14]Read from MH i2c: 01 07 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [15:19:14]process_action close_receipt done [15:19:14]requested_data is exist [15:19:14]produce_requested_data [15:19:14]requested_item fm.sn is exist - process it [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 11 00 00 [15:19:14]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 17 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [15:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:14]wFMCommunicate OK [15:19:14]requested_item fd.num is exist - process it [15:19:14]SAM_PROTO_GetFieldsCounters [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 13 00 00 [15:19:14]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 62 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [15:19:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:14]wFMCommunicate OK [15:19:14]SAM_PROTO_GetFieldsCounters done [15:19:14]requested_item shift.num is exist - process it [15:19:14]requested_item shift.opened is exist - process it [15:19:14]req_shift_opened [15:19:14]FM_GetShiftState [15:19:14]SAM_PROTO_GetShiftState [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 13 01 00 [15:19:14]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 0E 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [15:19:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:19:14]wFMCommunicate OK [15:19:14]SAM_PROTO_GetShiftState done [15:19:14]FM_GetShiftState done [15:19:14]req_shift_opened done [15:19:14]requested_item shift.open_date is exist - process it [15:19:14]req_shift_open_date [15:19:14]req_shift_open_date done [15:19:14]produce_requested_data done [15:19:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192257,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:19:14]process_action_free close_receipt [15:19:14]json_value_free [15:19:14]json_value_free done [15:19:14]process_json_proto returns [15:19:14]Send response to host [15:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192257,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:19:14]free response buf [15:19:14]execute_script done [15:19:14]execute_script returns [15:19:14]free content buf [15:19:14]Sock 9.Close socket [15:19:14]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:56]accept exits with 10 [15:21:56]New connection [15:21:56]New thread 3067080036 created [15:21:56]Thread 3066936676 joined [15:21:56]Waiting for new connection... [15:21:56] Sock 10.Parse request [15:21:56]Sock 10.Check first char [15:21:56]Sock 10.First char is OK [15:21:56]request: POST /json_proto HTTP/1.0 [15:21:56]Method: POST [15:21:56]URL: /json_proto [15:21:56]Method is POST - this is cgi request [15:21:56]url: /json_proto [15:21:56]query_string will be loaded in cgi processing [15:21:56]execute_cgi json_proto POST (null) [15:21:56]execute_cgi path=json_proto method=POST [15:21:56]POST find Content-Length [15:21:56]Host: 172.17.63.131:8080 [15:21:56]Content-Length: 681 [15:21:56]Content-Type: application/json [15:21:56] [15:21:56]POST finish read [15:21:56]Found Content-Length = 681 [15:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:56]execute_script... [15:21: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)31573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:56]POST & json_proto [15:21:56]process_json_proto [15:21:56]json parsed OK: [15:21:56]protocol is kg_v1.0 [15:21:56]action value=close_receipt [15:21:56]process_action close_receipt [15:21:56]cmd_close_receipt [15:21:56]MH_GetDate [15:21:56]Write to MH i2c: F0 00 00 E0 05 D4 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: F0 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: F0 09 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: F0 09 00 E0 05 00 94 5A 1E 67 22 05 6E 64 49 [15:21:56]GetLastDocTimeStamp 1730042350 [15:21:56]current date 1730042516 [15:21:56]FM_GetShiftState [15:21:56]SAM_PROTO_GetShiftState [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 13 01 00 [15:21:56]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [15:21:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_GetShiftState done [15:21:56]FM_GetShiftState done [15:21:56]opened in 1729989159 [15:21:56]opened+sec_in_day 1730075559 [15:21:56]quantity*price = 100015 [15:21:56]sum+1 = 100017 [15:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 290 27.10.2024 15:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192258 ФПД: 156536714657341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192258&fm=156536714657341&tin=02508201610067®Number=0000000000091776&sum=100000 [15:21:57]StoreToDocumentArchive [15:21:57]shift 542 fd 192258 [15:21:57]save to /storage/0542/doc_00192258 [15:21:57]save last doc name /storage/0542/doc_00192258 to /storage/kkm_last_doc_name [15:21:57]save OK [15:21:57]Clear old archive folders... [15:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:57]tlvbuf is 002D3B40 [15:21:57]SAM_PROTO_ClearQueue [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 09 00 00 [15:21:57]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_ClearQueue done [15:21:57]KKMCreateOFDPacket [15:21:57]OFDProtocolAddRootSTLVToBuf [15:21:57]FM_MakeSignedData [15:21:57]FM_MakeSignedData [15:21:57]SAM_PROTO_SignData [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 0D 01 02 [15:21:57]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]wFMCommunicate request_size=255 [15:21:57]MH_SAM_APDU [15:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 94 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EF 02 00 35 04 06 00 8E [15:21:57]Write to MH i2c: E2 02 01 F0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 94 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EF 02 00 35 04 06 00 8E 00 00 32 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]wFMCommunicate request_size=10 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 0D 02 02 05 5E 8B 45 7E 3D [15:21:57]Write to MH i2c: E2 0D 00 F1 05 80 0D 02 02 05 00 5E 8B 45 7E 3D 00 00 63 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 0D 03 02 [15:21:57]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0B 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0B 00 F2 05 00 A5 59 9B 77 24 6A 1F FD 90 00 2D [15:21:57]RAPDU: A5 59 9B 77 24 6A 1F FD 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_SignData done [15:21:57]FM_MakeSignedData done [15:21:57]CreateOFDProtocolMessage [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 11 00 00 [15:21:57]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [15:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:57]wFMCommunicate OK [15:21:57]CreateOFDProtocolMessage done [15:21:57]OFDSenderStorePacket 192258 [15:21:57]StoreOFDPacket docnum=192258 [15:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 BA 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 94 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EF 02 00 35 04 06 00 8E 5E 8B 45 7E 3D A5 59 9B 77 24 6A 1F FD [15:21:57]CheckFolder [15:21:57]dirname=/storage/ofd_packets [15:21:57]CheckFolder done [15:21:57]ProducePacketName [15:21:57]name=ofd_packets/00192258 [15:21:57]NVStorageSaveData ofd_packets/00192258 [15:21:57]File name is /storage/ofd_packets/00192258 [15:21:57]Write 301 bytes [15:21:57]NVStorageSaveData done [15:21:57]OFDSenderStorePacket done [15:21:57]KKMCreateOFDPacket done [15:21:57]NVStorageSaveData kkm_last_timestamp [15:21:57]File name is /storage/kkm_last_timestamp [15:21:57]Write 4 bytes [15:21:57]NVStorageSaveData done [15:21:57]ExternCall_PrintAddStr [15:21:57]wPrintStart [15:21:57]Write to MH i2c: 01 00 00 F4 05 F9 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FF 0F 0E [15:21:57]RasterBufferAndPrint [15:21:57]line Счет N : (1)31573 [15:21:57]line ИНН: 02508201610067 [15:21:57]line Контрольно-Кассовый Чек [15:21:57]line ПРОДАЖА [15:21:57]line ТРК (МРК, ГНК) : 21 [15:21:57]line Товар: 2710124130 [15:21:57]line Аи-92-К-5 [15:21:57]line 14.950 * 66.90 [15:21:57]line = 1000.16 [15:21:57]line НДС 12% НСП 1% [15:21:57]line > о реализуемом товаре [15:21:57]line ОКРУГЛЕНИЕ: -0.16 [15:21:57]line ИТОГО: 1000.00 [15:21:57]line Внесено: 1000.00 [15:21:57]line СДАЧА: 0.00 [15:21:57]line НСП 1% : 8.85 [15:21:57]line НДС 12% : 106.21 [15:21:57]line Наличными: 1000.00 [15:21:57]line Безнал.: 0.00 [15:21:57]line Место: АЗС № 170 "Партнер Нефть" [15:21:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:21:57]line СНО: Общий режим [15:21:57]line Чек 290 27.10.2024 15:21 [15:21:57]line Смена: 542 ФФД: 1.0 [15:21:57]line ЗНМ: 0300000110 [15:21:57]line РНМ: 0000000000091776 [15:21:57]line Версия ККМ: 001 [15:21:57]line ФМ: 0000000000871754 [15:21:57]line ФД: 192258 [15:21:57]line ФПД: 156536714657341 [15:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192258&fm=156536714657341&tin=02508201610067®Number=0000000000091776&sum=100000 [15:21:58]OFD Sender: Processing packet 192258 [packets to send 75, broken 74] [15:21:58]ProducePacketName [15:21:58]name=ofd_packets/00192258 [15:21:58]OFD Sender: To server: pG, [15:21:58]CommunicateWithHost lk.salyk.kg:30040 [15:21:58]ConnectInit lk.salyk.kg [15:21:58]written 0, free lines is 4095 [15:21:58]Connected sock=9 [15:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 BA 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 94 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EF 02 00 35 04 06 00 8E 5E 8B 45 7E 3D A5 59 9B 77 24 6A 1F FD [15:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 E4 47 00 0F C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 EF 02 00 F4 03 04 00 5B FF 1D 67 B6 04 01 00 00 9F 9F 3E C6 49 D2 54 3D [15:21:58]CommunicateWithHost err = 0 [15:21:58]CheckOFDResponse [15:21:58]1017 (14) - 77093643461234 [15:21:58]1041 (16) - 0000000000871754 [15:21:58]1040 (4) - 192258 [15:21:58]1012 (4) - 27.10.2024 08:52 [15:21:58]1206 (1) - 0 [15:21:58]OFD Sender: Remove packet 192258 [15:21:58]ProducePacketName [15:21:58]name=ofd_packets/00192258 [15:21:58]NVStorageDeleteData [15:21:58]Write to MH i2c: 01 00 00 1F 06 25 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 07 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 C2 0C FA [15:21:58]RasterBufferAndPrint [15:21:58]line [15:21:58]line [15:21:58]line [15:21:58]line [15:21:58]line [15:21:58]written 0, free lines is 3272 [15:21:58]MH_Cut [15:21:58]Write to MH i2c: D1 01 00 26 06 01 FE [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: D1 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: D1 01 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: D1 01 00 26 06 00 FD [15:21:58]Write to MH i2c: 01 00 00 27 06 2D [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:59]OFD Sender: No OFD packet to send [15:21:59]*** Cut start [15:21:59]*** Partial cut [15:21:59]*** CUTSNS_PIN = 1 [15:21:59]*** CUTSNS_PIN = 0 [15:21:59]*** Brake cut motor [15:22:00]Read from MH i2c: 01 [15:22:00]MH_I2C_Read... [15:22:00]*** Stop cut motor [15:22:00]*** Cut end [15:22:00]Read from MH i2c: 01 07 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [15:22:00]process_action close_receipt done [15:22:00]requested_data is exist [15:22:00]produce_requested_data [15:22:00]requested_item fm.sn is exist - process it [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 11 00 00 [15:22:00]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 17 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [15:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:22:00]wFMCommunicate OK [15:22:00]requested_item fd.num is exist - process it [15:22:00]SAM_PROTO_GetFieldsCounters [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 13 00 00 [15:22:00]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 62 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:00]wFMCommunicate OK [15:22:00]SAM_PROTO_GetFieldsCounters done [15:22:00]requested_item shift.num is exist - process it [15:22:00]requested_item shift.opened is exist - process it [15:22:00]req_shift_opened [15:22:00]FM_GetShiftState [15:22:00]SAM_PROTO_GetShiftState [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 13 01 00 [15:22:00]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EE [15:22:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:22:00]wFMCommunicate OK [15:22:00]SAM_PROTO_GetShiftState done [15:22:00]FM_GetShiftState done [15:22:00]req_shift_opened done [15:22:00]requested_item shift.open_date is exist - process it [15:22:00]req_shift_open_date [15:22:00]req_shift_open_date done [15:22:00]produce_requested_data done [15:22:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192258,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:22:00]process_action_free close_receipt [15:22:00]json_value_free [15:22:00]json_value_free done [15:22:00]process_json_proto returns [15:22:00]Send response to host [15:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192258,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:22:00]free response buf [15:22:00]execute_script done [15:22:00]execute_script returns [15:22:00]free content buf [15:22:00]Sock 10.Close socket [15:22:00]Sock 10.Thread stoped [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:20]accept exits with 7 [15:23:20]New connection [15:23:20]New thread 3066936676 created [15:23:20]Thread 3067080036 joined [15:23:20]Waiting for new connection... [15:23:20] Sock 7.Parse request [15:23:20]Sock 7.Check first char [15:23:20]Sock 7.First char is OK [15:23:20]request: POST /json_proto HTTP/1.0 [15:23:20]Method: POST [15:23:20]URL: /json_proto [15:23:20]Method is POST - this is cgi request [15:23:20]url: /json_proto [15:23:20]query_string will be loaded in cgi processing [15:23:20]execute_cgi json_proto POST (null) [15:23:20]execute_cgi path=json_proto method=POST [15:23:20]POST find Content-Length [15:23:20]Host: 172.17.63.131:8080 [15:23:20]Content-Length: 681 [15:23:20]Content-Type: application/json [15:23:20] [15:23:20]POST finish read [15:23:20]Found Content-Length = 681 [15:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:20]execute_script... [15:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:20]POST & json_proto [15:23:20]process_json_proto [15:23:20]json parsed OK: [15:23:20]protocol is kg_v1.0 [15:23:20]action value=close_receipt [15:23:20]process_action close_receipt [15:23:20]cmd_close_receipt [15:23:20]MH_GetDate [15:23:20]Write to MH i2c: F0 00 00 2B 06 20 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 09 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: F0 09 00 2B 06 00 E8 5A 1E 67 22 05 6E 64 E9 [15:23:20]GetLastDocTimeStamp 1730042516 [15:23:20]current date 1730042600 [15:23:20]FM_GetShiftState [15:23:20]SAM_PROTO_GetShiftState [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 13 01 00 [15:23:20]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0E 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F0 [15:23:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:23:20]wFMCommunicate OK [15:23:20]SAM_PROTO_GetShiftState done [15:23:20]FM_GetShiftState done [15:23:20]opened in 1729989159 [15:23:20]opened+sec_in_day 1730075559 [15:23:20]quantity*price = 100015 [15:23:20]sum+1 = 100017 [15:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 291 27.10.2024 15:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192259 ФПД: 197008993118323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192259&fm=197008993118323&tin=02508201610067®Number=0000000000091776&sum=100000 [15:23:21]StoreToDocumentArchive [15:23:21]shift 542 fd 192259 [15:23:21]save to /storage/0542/doc_00192259 [15:23:21]save last doc name /storage/0542/doc_00192259 to /storage/kkm_last_doc_name [15:23:21]save OK [15:23:21]Clear old archive folders... [15:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:21]tlvbuf is 00310550 [15:23:21]SAM_PROTO_ClearQueue [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 09 00 00 [15:23:21]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [15:23:21]RAPDU: 90 00 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_ClearQueue done [15:23:21]KKMCreateOFDPacket [15:23:21]OFDProtocolAddRootSTLVToBuf [15:23:21]FM_MakeSignedData [15:23:21]FM_MakeSignedData [15:23:21]SAM_PROTO_SignData [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 0D 01 02 [15:23:21]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [15:23:21]RAPDU: 90 00 [15:23:21]wFMCommunicate OK [15:23:21]wFMCommunicate request_size=255 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E8 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EF 02 00 35 04 06 00 B3 [15:23:21]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E8 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EF 02 00 35 04 06 00 B3 00 00 F9 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [15:23:21]RAPDU: 90 00 [15:23:21]wFMCommunicate OK [15:23:21]wFMCommunicate request_size=10 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 0D 02 02 05 2D BB 0D 68 73 [15:23:21]Write to MH i2c: E2 0D 00 3C 06 80 0D 02 02 05 00 2D BB 0D 68 73 00 00 96 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [15:23:21]RAPDU: 90 00 [15:23:21]wFMCommunicate OK [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 0D 03 02 [15:23:21]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0B 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0B 00 3D 06 00 EC 2E 1C 9C 76 4A BC 30 90 00 3D [15:23:21]RAPDU: EC 2E 1C 9C 76 4A BC 30 90 00 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_SignData done [15:23:21]FM_MakeSignedData done [15:23:21]CreateOFDProtocolMessage [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 11 00 00 [15:23:21]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 17 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [15:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:21]wFMCommunicate OK [15:23:21]CreateOFDProtocolMessage done [15:23:21]OFDSenderStorePacket 192259 [15:23:21]StoreOFDPacket docnum=192259 [15:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 67 07 01 15 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E8 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EF 02 00 35 04 06 00 B3 2D BB 0D 68 73 EC 2E 1C 9C 76 4A BC 30 [15:23:21]CheckFolder [15:23:21]dirname=/storage/ofd_packets [15:23:21]CheckFolder done [15:23:21]ProducePacketName [15:23:21]name=ofd_packets/00192259 [15:23:21]NVStorageSaveData ofd_packets/00192259 [15:23:21]File name is /storage/ofd_packets/00192259 [15:23:21]Write 301 bytes [15:23:21]NVStorageSaveData done [15:23:21]OFDSenderStorePacket done [15:23:21]KKMCreateOFDPacket done [15:23:21]NVStorageSaveData kkm_last_timestamp [15:23:21]File name is /storage/kkm_last_timestamp [15:23:21]Write 4 bytes [15:23:21]NVStorageSaveData done [15:23:21]ExternCall_PrintAddStr [15:23:21]wPrintStart [15:23:21]Write to MH i2c: 01 00 00 3F 06 45 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 07 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [15:23:21]RasterBufferAndPrint [15:23:21]line Счет N : (1)31574 [15:23:21]line ИНН: 02508201610067 [15:23:21]line Контрольно-Кассовый Чек [15:23:21]line ПРОДАЖА [15:23:21]line ТРК (МРК, ГНК) : 21 [15:23:21]line Товар: 2710124130 [15:23:21]line Аи-92-К-5 [15:23:21]line 14.950 * 66.90 [15:23:21]line = 1000.16 [15:23:21]line НДС 12% НСП 1% [15:23:21]line > о реализуемом товаре [15:23:21]line ОКРУГЛЕНИЕ: -0.16 [15:23:21]line ИТОГО: 1000.00 [15:23:21]line Внесено: 1000.00 [15:23:21]line СДАЧА: 0.00 [15:23:21]line НСП 1% : 8.85 [15:23:21]line НДС 12% : 106.21 [15:23:21]line Наличными: 1000.00 [15:23:21]line Безнал.: 0.00 [15:23:21]line Место: АЗС № 170 "Партнер Нефть" [15:23:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:23:21]line СНО: Общий режим [15:23:21]line Чек 291 27.10.2024 15:23 [15:23:21]line Смена: 542 ФФД: 1.0 [15:23:21]line ЗНМ: 0300000110 [15:23:21]line РНМ: 0000000000091776 [15:23:21]line Версия ККМ: 001 [15:23:21]line ФМ: 0000000000871754 [15:23:21]line ФД: 192259 [15:23:21]line ФПД: 197008993118323 [15:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192259&fm=197008993118323&tin=02508201610067®Number=0000000000091776&sum=100000 [15:23:22]OFD Sender: Processing packet 192259 [packets to send 75, broken 74] [15:23:22]ProducePacketName [15:23:22]name=ofd_packets/00192259 [15:23:22]OFD Sender: To server: pG, [15:23:22]CommunicateWithHost lk.salyk.kg:30040 [15:23:22]ConnectInit lk.salyk.kg [15:23:22]written 0, free lines is 4095 [15:23:22]Connected sock=10 [15:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 67 07 01 15 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E8 5A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EF 02 00 35 04 06 00 B3 2D BB 0D 68 73 EC 2E 1C 9C 76 4A BC 30 [15:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 3E 47 00 48 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 EF 02 00 F4 03 04 00 AF FF 1D 67 B6 04 01 00 00 ED 03 46 8F 6D 1A 6B 67 [15:23:22]CommunicateWithHost err = 0 [15:23:22]CheckOFDResponse [15:23:22]1017 (14) - 77093643461234 [15:23:22]1041 (16) - 0000000000871754 [15:23:22]1040 (4) - 192259 [15:23:22]1012 (4) - 27.10.2024 08:54 [15:23:22]1206 (1) - 0 [15:23:22]OFD Sender: Remove packet 192259 [15:23:22]ProducePacketName [15:23:22]name=ofd_packets/00192259 [15:23:22]NVStorageDeleteData [15:23:22]Write to MH i2c: 01 00 00 6A 06 70 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 B8 0C 3B [15:23:22]RasterBufferAndPrint [15:23:22]line [15:23:22]line [15:23:22]line [15:23:22]line [15:23:22]line [15:23:22]written 0, free lines is 3263 [15:23:22]MH_Cut [15:23:22]Write to MH i2c: D1 01 00 71 06 01 49 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: D1 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: D1 01 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: D1 01 00 71 06 00 48 [15:23:22]Write to MH i2c: 01 00 00 72 06 78 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:23]OFD Sender: No OFD packet to send [15:23:23]*** Cut start [15:23:23]*** Partial cut [15:23:23]*** CUTSNS_PIN = 1 [15:23:23]*** CUTSNS_PIN = 0 [15:23:23]*** Brake cut motor [15:23:24]Read from MH i2c: 01 [15:23:24]MH_I2C_Read... [15:23:24]*** Stop cut motor [15:23:24]*** Cut end [15:23:24]Read from MH i2c: 01 07 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [15:23:24]process_action close_receipt done [15:23:24]requested_data is exist [15:23:24]produce_requested_data [15:23:24]requested_item fm.sn is exist - process it [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 11 00 00 [15:23:24]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [15:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:24]wFMCommunicate OK [15:23:24]requested_item fd.num is exist - process it [15:23:24]SAM_PROTO_GetFieldsCounters [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 13 00 00 [15:23:24]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 62 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_GetFieldsCounters done [15:23:24]requested_item shift.num is exist - process it [15:23:24]requested_item shift.opened is exist - process it [15:23:24]req_shift_opened [15:23:24]FM_GetShiftState [15:23:24]SAM_PROTO_GetShiftState [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 13 01 00 [15:23:24]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0E 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [15:23:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_GetShiftState done [15:23:24]FM_GetShiftState done [15:23:24]req_shift_opened done [15:23:24]requested_item shift.open_date is exist - process it [15:23:24]req_shift_open_date [15:23:24]req_shift_open_date done [15:23:24]produce_requested_data done [15:23:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192259,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:23:24]process_action_free close_receipt [15:23:24]json_value_free [15:23:24]json_value_free done [15:23:24]process_json_proto returns [15:23:24]Send response to host [15:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192259,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:23:24]free response buf [15:23:24]execute_script done [15:23:24]execute_script returns [15:23:24]free content buf [15:23:24]Sock 7.Close socket [15:23:24]Sock 7.Thread stoped [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:12]accept exits with 9 [15:25:12]New connection [15:25:12]New thread 3067080036 created [15:25:12]Thread 3066936676 joined [15:25:12]Waiting for new connection... [15:25:12] Sock 9.Parse request [15:25:12]Sock 9.Check first char [15:25:12]Sock 9.First char is OK [15:25:12]request: POST /json_proto HTTP/1.0 [15:25:12]Method: POST [15:25:12]URL: /json_proto [15:25:12]Method is POST - this is cgi request [15:25:12]url: /json_proto [15:25:12]query_string will be loaded in cgi processing [15:25:12]execute_cgi json_proto POST (null) [15:25:12]execute_cgi path=json_proto method=POST [15:25:12]POST find Content-Length [15:25:12]Host: 172.17.63.131:8080 [15:25:12]Content-Length: 673 [15:25:12]Content-Type: application/json [15:25:12] [15:25:12]POST finish read [15:25:12]Found Content-Length = 673 [15:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.470, "sum" : 31.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 31.00, "payments": [ { "type": 0, "sum" : 31.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:12]execute_script... [15: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 : (1)31575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.470, "sum" : 31.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 31.00, "payments": [ { "type": 0, "sum" : 31.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:12]POST & json_proto [15:25:12]process_json_proto [15:25:12]json parsed OK: [15:25:12]protocol is kg_v1.0 [15:25:12]action value=close_receipt [15:25:12]process_action close_receipt [15:25:12]cmd_close_receipt [15:25:12]MH_GetDate [15:25:12]Write to MH i2c: F0 00 00 76 06 6B [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 09 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: F0 09 00 76 06 00 58 5B 1E 67 22 05 6E 64 A5 [15:25:12]GetLastDocTimeStamp 1730042600 [15:25:12]current date 1730042712 [15:25:12]FM_GetShiftState [15:25:12]SAM_PROTO_GetShiftState [15:25:12]wFMCommunicate request_size=4 [15:25:12]MH_SAM_APDU [15:25:12]CAPDU: 80 13 01 00 [15:25:12]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:12]Read from MH i2c: E2 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [15:25:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:25:12]wFMCommunicate OK [15:25:12]SAM_PROTO_GetShiftState done [15:25:12]FM_GetShiftState done [15:25:12]opened in 1729989159 [15:25:12]opened+sec_in_day 1730075559 [15:25:12]quantity*price = 3144 [15:25:12]sum+1 = 3145 [15:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 31.00 Внесено: 750.00 СДАЧА: 719.00 НСП 1% : 0.28 НДС 12% : 3.34 Наличными: 31.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 292 27.10.2024 15:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192260 ФПД: 203820965445772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192260&fm=203820965445772&tin=02508201610067®Number=0000000000091776&sum=3100 [15:25:13]StoreToDocumentArchive [15:25:13]shift 542 fd 192260 [15:25:13]save to /storage/0542/doc_00192260 [15:25:13]save last doc name /storage/0542/doc_00192260 to /storage/kkm_last_doc_name [15:25:13]save OK [15:25:13]Clear old archive folders... [15:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:13]tlvbuf is 0033A3E0 [15:25:13]SAM_PROTO_ClearQueue [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 09 00 00 [15:25:13]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_ClearQueue done [15:25:13]KKMCreateOFDPacket [15:25:13]OFDProtocolAddRootSTLVToBuf [15:25:13]FM_MakeSignedData [15:25:13]FM_MakeSignedData [15:25:13]SAM_PROTO_SignData [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 01 02 [15:25:13]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=255 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 01 00 00 00 00 07 04 06 00 1C 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 58 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EF 02 00 35 04 06 00 B9 [15:25:13]Write to MH i2c: E2 02 01 86 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 D6 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 01 00 00 00 00 07 04 06 00 1C 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 58 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EF 02 00 35 04 06 00 B9 00 00 60 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=10 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 02 02 05 5F C4 3E 40 8C [15:25:13]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 5F C4 3E 40 8C 00 00 3E [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [15:25:13]RAPDU: 90 00 [15:25:13]wFMCommunicate OK [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 0D 03 02 [15:25:13]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0B 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0B 00 88 06 00 5E 0B 15 E1 5D 79 DC 4A 90 00 65 [15:25:13]RAPDU: 5E 0B 15 E1 5D 79 DC 4A 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_SignData done [15:25:13]FM_MakeSignedData done [15:25:13]CreateOFDProtocolMessage [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 11 00 00 [15:25:13]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [15:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:13]wFMCommunicate OK [15:25:13]CreateOFDProtocolMessage done [15:25:13]OFDSenderStorePacket 192260 [15:25:13]StoreOFDPacket docnum=192260 [15:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 C9 07 01 DF 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 01 00 00 00 00 07 04 06 00 1C 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 58 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EF 02 00 35 04 06 00 B9 5F C4 3E 40 8C 5E 0B 15 E1 5D 79 DC 4A [15:25:13]CheckFolder [15:25:13]dirname=/storage/ofd_packets [15:25:13]CheckFolder done [15:25:13]ProducePacketName [15:25:13]name=ofd_packets/00192260 [15:25:13]NVStorageSaveData ofd_packets/00192260 [15:25:13]File name is /storage/ofd_packets/00192260 [15:25:13]Write 301 bytes [15:25:13]NVStorageSaveData done [15:25:13]OFDSenderStorePacket done [15:25:13]KKMCreateOFDPacket done [15:25:13]NVStorageSaveData kkm_last_timestamp [15:25:13]File name is /storage/kkm_last_timestamp [15:25:13]Write 4 bytes [15:25:13]NVStorageSaveData done [15:25:13]ExternCall_PrintAddStr [15:25:13]wPrintStart [15:25:13]Write to MH i2c: 01 00 00 8A 06 90 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 07 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [15:25:13]RasterBufferAndPrint [15:25:13]line Счет N : (1)31575 [15:25:13]line ИНН: 02508201610067 [15:25:13]line Контрольно-Кассовый Чек [15:25:13]line ПРОДАЖА [15:25:13]line ТРК (МРК, ГНК) : 12 [15:25:13]line Товар: 2710124130 [15:25:13]line Аи-92-К-5 [15:25:13]line 0.470 * 66.90 [15:25:13]line = 31.44 [15:25:13]line НДС 12% НСП 1% [15:25:13]line > о реализуемом товаре [15:25:13]line ОКРУГЛЕНИЕ: -0.44 [15:25:13]line ИТОГО: 31.00 [15:25:13]line Внесено: 750.00 [15:25:13]line СДАЧА: 719.00 [15:25:13]line НСП 1% : 0.28 [15:25:13]line НДС 12% : 3.34 [15:25:13]line Наличными: 31.00 [15:25:13]line Безнал.: 0.00 [15:25:13]line Место: АЗС № 170 "Партнер Нефть" [15:25:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:25:13]line СНО: Общий режим [15:25:13]line Чек 292 27.10.2024 15:25 [15:25:13]line Смена: 542 ФФД: 1.0 [15:25:13]line ЗНМ: 0300000110 [15:25:13]line РНМ: 0000000000091776 [15:25:13]line Версия ККМ: 001 [15:25:13]line ФМ: 0000000000871754 [15:25:14]OFD Sender: Processing packet 192260 [packets to send 75, broken 74] [15:25:14]line ФД: 192260 [15:25:14]ProducePacketName [15:25:14]name=ofd_packets/00192260 [15:25:14]line ФПД: 203820965445772 [15:25:14]OFD Sender: To server: pG, [15:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192260&fm=203820965445772&tin=02508201610067®Number=0000000000091776&sum=3100 [15:25:14]CommunicateWithHost lk.salyk.kg:30040 [15:25:14]ConnectInit lk.salyk.kg [15:25:14]written 0, free lines is 4095 [15:25:14]Connected sock=10 [15:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 C9 07 01 DF 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 01 00 00 00 00 07 04 06 00 1C 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 58 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EF 02 00 35 04 06 00 B9 5F C4 3E 40 8C 5E 0B 15 E1 5D 79 DC 4A [15:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B9 53 47 00 49 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 EF 02 00 F4 03 04 00 1F 00 1E 67 B6 04 01 00 00 A0 E7 99 E6 64 29 46 AA [15:25:14]CommunicateWithHost err = 0 [15:25:14]CheckOFDResponse [15:25:14]1017 (14) - 77093643461234 [15:25:14]1041 (16) - 0000000000871754 [15:25:14]1040 (4) - 192260 [15:25:14]1012 (4) - 27.10.2024 08:55 [15:25:14]1206 (1) - 0 [15:25:14]OFD Sender: Remove packet 192260 [15:25:14]ProducePacketName [15:25:14]name=ofd_packets/00192260 [15:25:14]NVStorageDeleteData [15:25:14]Write to MH i2c: 01 00 00 B5 06 BB [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 07 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 B7 0C 85 [15:25:14]RasterBufferAndPrint [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]line [15:25:14]written 0, free lines is 3264 [15:25:14]MH_Cut [15:25:14]Write to MH i2c: D1 01 00 BC 06 01 94 [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 01 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: D1 01 00 BC 06 00 93 [15:25:14]Write to MH i2c: 01 00 00 BD 06 C3 [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:15]OFD Sender: No OFD packet to send [15:25:15]*** Cut start [15:25:15]*** Partial cut [15:25:15]*** CUTSNS_PIN = 1 [15:25:15]*** CUTSNS_PIN = 0 [15:25:15]*** Brake cut motor [15:25:16]Read from MH i2c: 01 [15:25:16]MH_I2C_Read... [15:25:16]*** Stop cut motor [15:25:16]*** Cut end [15:25:16]Read from MH i2c: 01 07 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [15:25:16]process_action close_receipt done [15:25:16]requested_data is exist [15:25:16]produce_requested_data [15:25:16]requested_item fm.sn is exist - process it [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 11 00 00 [15:25:16]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 17 00 [15:25:16]MH_I2C_Read... [15:25:16]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 37 35 34 90 00 91 [15:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:16]wFMCommunicate OK [15:25:16]requested_item fd.num is exist - process it [15:25:16]SAM_PROTO_GetFieldsCounters [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 13 00 00 [15:25:16]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 62 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_GetFieldsCounters done [15:25:16]requested_item shift.num is exist - process it [15:25:16]requested_item shift.opened is exist - process it [15:25:16]req_shift_opened [15:25:16]FM_GetShiftState [15:25:16]SAM_PROTO_GetShiftState [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 13 01 00 [15:25:16]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [15:25:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_GetShiftState done [15:25:16]FM_GetShiftState done [15:25:16]req_shift_opened done [15:25:16]requested_item shift.open_date is exist - process it [15:25:16]req_shift_open_date [15:25:16]req_shift_open_date done [15:25:16]produce_requested_data done [15:25:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192260,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:25:16]process_action_free close_receipt [15:25:16]json_value_free [15:25:16]json_value_free done [15:25:16]process_json_proto returns [15:25:16]Send response to host [15:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192260,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:25:16]free response buf [15:25:16]execute_script done [15:25:16]execute_script returns [15:25:16]free content buf [15:25:16]Sock 9.Close socket [15:25:16]Sock 9.Thread stoped [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:47]accept exits with 7 [15:25:47]New connection [15:25:47]New thread 3066936676 created [15:25:47]Thread 3067080036 joined [15:25:47]Waiting for new connection... [15:25:47] Sock 7.Parse request [15:25:47]Sock 7.Check first char [15:25:47]Sock 7.First char is OK [15:25:47]request: POST /json_proto HTTP/1.0 [15:25:47]Method: POST [15:25:47]URL: /json_proto [15:25:47]Method is POST - this is cgi request [15:25:47]url: /json_proto [15:25:47]query_string will be loaded in cgi processing [15:25:47]execute_cgi json_proto POST (null) [15:25:47]execute_cgi path=json_proto method=POST [15:25:47]POST find Content-Length [15:25:47]Host: 172.17.63.131:8080 [15:25:47]Content-Length: 676 [15:25:47]Content-Type: application/json [15:25:47] [15:25:47]POST finish read [15:25:47]Found Content-Length = 676 [15:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:47]execute_script... [15:25: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)31576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:47]POST & json_proto [15:25:47]process_json_proto [15:25:47]json parsed OK: [15:25:47]protocol is kg_v1.0 [15:25:47]action value=close_receipt [15:25:47]process_action close_receipt [15:25:47]cmd_close_receipt [15:25:47]MH_GetDate [15:25:47]Write to MH i2c: F0 00 00 C1 06 B6 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 C1 06 00 7C 5B 1E 67 22 05 6E 64 14 [15:25:47]GetLastDocTimeStamp 1730042712 [15:25:47]current date 1730042748 [15:25:47]FM_GetShiftState [15:25:47]SAM_PROTO_GetShiftState [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 01 00 [15:25:47]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 86 [15:25:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetShiftState done [15:25:47]FM_GetShiftState done [15:25:47]opened in 1729989159 [15:25:47]opened+sec_in_day 1730075559 [15:25:47]quantity*price = 30038 [15:25:47]sum+1 = 30039 [15:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 293 27.10.2024 15:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192261 ФПД: 196149947596329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192261&fm=196149947596329&tin=02508201610067®Number=0000000000091776&sum=30000 [15:25:48]StoreToDocumentArchive [15:25:48]shift 542 fd 192261 [15:25:48]save to /storage/0542/doc_00192261 [15:25:48]save last doc name /storage/0542/doc_00192261 to /storage/kkm_last_doc_name [15:25:48]save OK [15:25:48]Clear old archive folders... [15:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:48]tlvbuf is 002BBD80 [15:25:48]SAM_PROTO_ClearQueue [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 09 00 00 [15:25:48]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]SAM_PROTO_ClearQueue done [15:25:48]KKMCreateOFDPacket [15:25:48]OFDProtocolAddRootSTLVToBuf [15:25:48]FM_MakeSignedData [15:25:48]FM_MakeSignedData [15:25:48]SAM_PROTO_SignData [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 01 02 [15:25:48]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]wFMCommunicate request_size=255 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EF 02 00 35 04 06 00 B2 [15:25:48]Write to MH i2c: E2 02 01 D1 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EF 02 00 35 04 06 00 B2 00 00 21 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [15:25:49]RAPDU: 90 00 [15:25:49]wFMCommunicate OK [15:25:49]wFMCommunicate request_size=10 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 0D 02 02 05 65 B7 F2 FE 29 [15:25:49]Write to MH i2c: E2 0D 00 D2 06 80 0D 02 02 05 00 65 B7 F2 FE 29 00 00 91 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [15:25:49]RAPDU: 90 00 [15:25:49]wFMCommunicate OK [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 0D 03 02 [15:25:49]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0B 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0B 00 D3 06 00 8A 92 81 E1 D2 31 92 A0 90 00 08 [15:25:49]RAPDU: 8A 92 81 E1 D2 31 92 A0 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_SignData done [15:25:49]FM_MakeSignedData done [15:25:49]CreateOFDProtocolMessage [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 11 00 00 [15:25:49]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [15:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:49]wFMCommunicate OK [15:25:49]CreateOFDProtocolMessage done [15:25:49]OFDSenderStorePacket 192261 [15:25:49]StoreOFDPacket docnum=192261 [15:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 8C 07 01 73 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EF 02 00 35 04 06 00 B2 65 B7 F2 FE 29 8A 92 81 E1 D2 31 92 A0 [15:25:49]CheckFolder [15:25:49]dirname=/storage/ofd_packets [15:25:49]CheckFolder done [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00192261 [15:25:49]NVStorageSaveData ofd_packets/00192261 [15:25:49]File name is /storage/ofd_packets/00192261 [15:25:49]Write 301 bytes [15:25:49]NVStorageSaveData done [15:25:49]OFDSenderStorePacket done [15:25:49]KKMCreateOFDPacket done [15:25:49]NVStorageSaveData kkm_last_timestamp [15:25:49]File name is /storage/kkm_last_timestamp [15:25:49]Write 4 bytes [15:25:49]NVStorageSaveData done [15:25:49]ExternCall_PrintAddStr [15:25:49]wPrintStart [15:25:49]Write to MH i2c: 01 00 00 D5 06 DB [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [15:25:49]RasterBufferAndPrint [15:25:49]line Счет N : (1)31576 [15:25:49]line ИНН: 02508201610067 [15:25:49]line Контрольно-Кассовый Чек [15:25:49]line ПРОДАЖА [15:25:49]line ТРК (МРК, ГНК) : 21 [15:25:49]line Товар: 2710124130 [15:25:49]line Аи-92-К-5 [15:25:49]line 4.490 * 66.90 [15:25:49]line = 300.38 [15:25:49]line НДС 12% НСП 1% [15:25:49]line > о реализуемом товаре [15:25:49]line ОКРУГЛЕНИЕ: -0.38 [15:25:49]line ИТОГО: 300.00 [15:25:49]line Внесено: 300.00 [15:25:49]line СДАЧА: 0.00 [15:25:49]line НСП 1% : 2.66 [15:25:49]line НДС 12% : 31.90 [15:25:49]line Наличными: 300.00 [15:25:49]line Безнал.: 0.00 [15:25:49]line Место: АЗС № 170 "Партнер Нефть" [15:25:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:25:49]line СНО: Общий режим [15:25:49]line Чек 293 27.10.2024 15:25 [15:25:49]line Смена: 542 ФФД: 1.0 [15:25:49]line ЗНМ: 0300000110 [15:25:49]line РНМ: 0000000000091776 [15:25:49]line Версия ККМ: 001 [15:25:49]line ФМ: 0000000000871754 [15:25:49]line ФД: 192261 [15:25:49]line ФПД: 196149947596329 [15:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192261&fm=196149947596329&tin=02508201610067®Number=0000000000091776&sum=30000 [15:25:49]OFD Sender: Processing packet 192261 [packets to send 75, broken 74] [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00192261 [15:25:49]OFD Sender: To server: pG, [15:25:49]CommunicateWithHost lk.salyk.kg:30040 [15:25:49]ConnectInit lk.salyk.kg [15:25:49]written 0, free lines is 4095 [15:25:49]Connected sock=10 [15:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 8C 07 01 73 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 7C 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EF 02 00 35 04 06 00 B2 65 B7 F2 FE 29 8A 92 81 E1 D2 31 92 A0 [15:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 40 3A 47 00 88 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 EF 02 00 F4 03 04 00 43 00 1E 67 B6 04 01 00 00 6E 62 D6 60 0F 5B 68 D1 [15:25:49]CommunicateWithHost err = 0 [15:25:49]CheckOFDResponse [15:25:49]1017 (14) - 77093643461234 [15:25:49]1041 (16) - 0000000000871754 [15:25:49]1040 (4) - 192261 [15:25:49]1012 (4) - 27.10.2024 08:56 [15:25:49]1206 (1) - 0 [15:25:49]OFD Sender: Remove packet 192261 [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00192261 [15:25:49]NVStorageDeleteData [15:25:50]Write to MH i2c: 01 00 00 00 07 07 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 B8 0C D2 [15:25:50]RasterBufferAndPrint [15:25:50]line [15:25:50]line [15:25:50]line [15:25:50]line [15:25:50]line [15:25:50]written 0, free lines is 3263 [15:25:50]MH_Cut [15:25:50]Write to MH i2c: D1 01 00 07 07 01 E0 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: D1 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: D1 01 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: D1 01 00 07 07 00 DF [15:25:50]Write to MH i2c: 01 00 00 08 07 0F [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]OFD Sender: No OFD packet to send [15:25:50]*** Cut start [15:25:50]*** Partial cut [15:25:50]*** CUTSNS_PIN = 1 [15:25:51]*** CUTSNS_PIN = 0 [15:25:51]*** Brake cut motor [15:25:51]Read from MH i2c: 01 [15:25:51]MH_I2C_Read... [15:25:51]*** Stop cut motor [15:25:51]*** Cut end [15:25:51]Read from MH i2c: 01 07 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [15:25:51]process_action close_receipt done [15:25:51]requested_data is exist [15:25:51]produce_requested_data [15:25:51]requested_item fm.sn is exist - process it [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 11 00 00 [15:25:51]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [15:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:51]wFMCommunicate OK [15:25:51]requested_item fd.num is exist - process it [15:25:51]SAM_PROTO_GetFieldsCounters [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 13 00 00 [15:25:51]Write to MH i2c: E2 08 00 0A 07 80 13 00 00 00 00 00 00 8D [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 62 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [15:25:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_GetFieldsCounters done [15:25:51]requested_item shift.num is exist - process it [15:25:51]requested_item shift.opened is exist - process it [15:25:51]req_shift_opened [15:25:51]FM_GetShiftState [15:25:51]SAM_PROTO_GetShiftState [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 13 01 00 [15:25:51]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:51]Read from MH i2c: E2 0E 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D0 [15:25:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_GetShiftState done [15:25:51]FM_GetShiftState done [15:25:51]req_shift_opened done [15:25:51]requested_item shift.open_date is exist - process it [15:25:51]req_shift_open_date [15:25:51]req_shift_open_date done [15:25:51]produce_requested_data done [15:25:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192261,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:25:51]process_action_free close_receipt [15:25:51]json_value_free [15:25:51]json_value_free done [15:25:51]process_json_proto returns [15:25:51]Send response to host [15:25:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192261,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:25:51]free response buf [15:25:51]execute_script done [15:25:51]execute_script returns [15:25:51]free content buf [15:25:51]Sock 7.Close socket [15:25:51]Sock 7.Thread stoped [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:11]accept exits with 9 [15:27:11]New connection [15:27:11]New thread 3067080036 created [15:27:11]Thread 3066936676 joined [15:27:11]Waiting for new connection... [15:27:11] Sock 9.Parse request [15:27:11]Sock 9.Check first char [15:27:11]Sock 9.First char is OK [15:27:11]request: POST /json_proto HTTP/1.0 [15:27:11]Method: POST [15:27:11]URL: /json_proto [15:27:11]Method is POST - this is cgi request [15:27:11]url: /json_proto [15:27:11]query_string will be loaded in cgi processing [15:27:11]execute_cgi json_proto POST (null) [15:27:11]execute_cgi path=json_proto method=POST [15:27:11]POST find Content-Length [15:27:11]Host: 172.17.63.131:8080 [15:27:11]Content-Length: 678 [15:27:11]Content-Type: application/json [15:27:11] [15:27:11]POST finish read [15:27:11]Found Content-Length = 678 [15:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31572", "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" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]execute_script... [15:27: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)31572", "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" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]POST & json_proto [15:27:11]process_json_proto [15:27:11]json parsed OK: [15:27:11]protocol is kg_v1.0 [15:27:11]action value=close_receipt [15:27:11]process_action close_receipt [15:27:11]cmd_close_receipt [15:27:11]MH_GetDate [15:27:11]Write to MH i2c: F0 00 00 0C 07 02 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 0C 07 00 CF 5B 1E 67 22 05 6E 64 B3 [15:27:11]GetLastDocTimeStamp 1730042748 [15:27:11]current date 1730042831 [15:27:11]FM_GetShiftState [15:27:11]SAM_PROTO_GetShiftState [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 13 01 00 [15:27:11]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D2 [15:27:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_GetShiftState done [15:27:11]FM_GetShiftState done [15:27:11]opened in 1729989159 [15:27:11]opened+sec_in_day 1730075559 [15:27:11]quantity*price = 280035 [15:27:11]sum+1 = 280036 [15:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.38 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 294 27.10.2024 15:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192262 ФПД: 30190662340885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152711&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192262&fm=30190662340885&tin=02508201610067®Number=0000000000091776&sum=280000 [15:27:12]StoreToDocumentArchive [15:27:12]shift 542 fd 192262 [15:27:12]save to /storage/0542/doc_00192262 [15:27:12]save last doc name /storage/0542/doc_00192262 to /storage/kkm_last_doc_name [15:27:12]save OK [15:27:12]Clear old archive folders... [15:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:27:12]tlvbuf is 002C07A0 [15:27:12]SAM_PROTO_ClearQueue [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 09 00 00 [15:27:12]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_ClearQueue done [15:27:12]KKMCreateOFDPacket [15:27:12]OFDProtocolAddRootSTLVToBuf [15:27:12]FM_MakeSignedData [15:27:12]FM_MakeSignedData [15:27:12]SAM_PROTO_SignData [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 01 02 [15:27:12]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=255 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EF 02 00 35 04 06 00 1B 75 4F B4 [15:27:12]Write to MH i2c: E2 02 01 1C 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 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EF 02 00 35 04 06 00 1B 75 4F B4 00 00 0E [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=7 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 02 02 02 51 15 [15:27:12]Write to MH i2c: E2 0A 00 1D 07 80 0D 02 02 02 00 51 15 00 00 08 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 03 02 [15:27:12]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0B 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0B 00 1E 07 00 D2 EB 7A B9 12 74 57 78 90 00 E6 [15:27:12]RAPDU: D2 EB 7A B9 12 74 57 78 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_SignData done [15:27:12]FM_MakeSignedData done [15:27:12]CreateOFDProtocolMessage [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 11 00 00 [15:27:12]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 17 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [15:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:12]wFMCommunicate OK [15:27:12]CreateOFDProtocolMessage done [15:27:12]OFDSenderStorePacket 192262 [15:27:12]StoreOFDPacket docnum=192262 [15:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1A E1 04 01 1D 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EF 02 00 35 04 06 00 1B 75 4F B4 51 15 D2 EB 7A B9 12 74 57 78 [15:27:12]CheckFolder [15:27:12]dirname=/storage/ofd_packets [15:27:12]CheckFolder done [15:27:12]ProducePacketName [15:27:12]name=ofd_packets/00192262 [15:27:12]NVStorageSaveData ofd_packets/00192262 [15:27:12]File name is /storage/ofd_packets/00192262 [15:27:12]Write 298 bytes [15:27:12]NVStorageSaveData done [15:27:12]OFDSenderStorePacket done [15:27:12]KKMCreateOFDPacket done [15:27:12]NVStorageSaveData kkm_last_timestamp [15:27:12]File name is /storage/kkm_last_timestamp [15:27:12]Write 4 bytes [15:27:12]NVStorageSaveData done [15:27:12]ExternCall_PrintAddStr [15:27:12]wPrintStart [15:27:12]Write to MH i2c: 01 00 00 20 07 27 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 07 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [15:27:12]RasterBufferAndPrint [15:27:12]line Счет N : (1)31572 [15:27:12]line ИНН: 02508201610067 [15:27:12]line Контрольно-Кассовый Чек [15:27:12]line ПРОДАЖА [15:27:12]line ТРК (МРК, ГНК) : 11 [15:27:12]line Товар: 2710194210 [15:27:12]line ДТ-К-5 [15:27:12]line 36.750 * 76.20 [15:27:12]line = 2800.35 [15:27:12]line НДС 12% НСП 1% [15:27:12]line > о реализуемом товаре [15:27:12]line ОКРУГЛЕНИЕ: -0.35 [15:27:12]line ИТОГО: 2800.00 [15:27:12]line Внесено: 2800.00 [15:27:12]line СДАЧА: 0.00 [15:27:12]line НСП 1% : 24.78 [15:27:12]line НДС 12% : 297.38 [15:27:12]line Наличными: 2800.00 [15:27:12]line Безнал.: 0.00 [15:27:12]line Место: АЗС № 170 "Партнер Нефть" [15:27:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:27:12]line СНО: Общий режим [15:27:12]line Чек 294 27.10.2024 15:27 [15:27:12]line Смена: 542 ФФД: 1.0 [15:27:12]line ЗНМ: 0300000110 [15:27:12]line РНМ: 0000000000091776 [15:27:12]line Версия ККМ: 001 [15:27:12]line ФМ: 0000000000871754 [15:27:12]line ФД: 192262 [15:27:12]line ФПД: 30190662340885 [15:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152711&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192262&fm=30190662340885&tin=02508201610067®Number=0000000000091776&sum=280000 [15:27:13]written 0, free lines is 4095 [15:27:13]OFD Sender: Processing packet 192262 [packets to send 75, broken 74] [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00192262 [15:27:13]OFD Sender: To server: pG, [15:27:13]CommunicateWithHost lk.salyk.kg:30040 [15:27:13]ConnectInit lk.salyk.kg [15:27:13]Connected sock=10 [15:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1A E1 04 01 1D 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EF 02 00 35 04 06 00 1B 75 4F B4 51 15 D2 EB 7A B9 12 74 57 78 [15:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0E 5C 47 00 D9 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 EF 02 00 F4 03 04 00 96 00 1E 67 B6 04 01 00 00 17 52 67 A8 8F 11 45 6F [15:27:13]CommunicateWithHost err = 0 [15:27:13]CheckOFDResponse [15:27:13]1017 (14) - 77093643461234 [15:27:13]1041 (16) - 0000000000871754 [15:27:13]1040 (4) - 192262 [15:27:13]1012 (4) - 27.10.2024 08:57 [15:27:13]1206 (1) - 0 [15:27:13]OFD Sender: Remove packet 192262 [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00192262 [15:27:13]NVStorageDeleteData [15:27:13]Write to MH i2c: 01 00 00 4B 07 52 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 C2 0C 27 [15:27:13]RasterBufferAndPrint [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]written 0, free lines is 3271 [15:27:13]MH_Cut [15:27:13]Write to MH i2c: D1 01 00 52 07 01 2B [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 01 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 01 00 52 07 00 2A [15:27:13]Write to MH i2c: 01 00 00 53 07 5A [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:14]OFD Sender: No OFD packet to send [15:27:14]*** Cut start [15:27:14]*** Partial cut [15:27:14]*** CUTSNS_PIN = 1 [15:27:14]*** CUTSNS_PIN = 0 [15:27:14]*** Brake cut motor [15:27:15]Read from MH i2c: 01 [15:27:15]MH_I2C_Read... [15:27:15]*** Stop cut motor [15:27:15]*** Cut end [15:27:15]Read from MH i2c: 01 07 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [15:27:15]process_action close_receipt done [15:27:15]requested_data is exist [15:27:15]produce_requested_data [15:27:15]requested_item fm.sn is exist - process it [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 11 00 00 [15:27:15]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [15:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:15]wFMCommunicate OK [15:27:15]requested_item fd.num is exist - process it [15:27:15]SAM_PROTO_GetFieldsCounters [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 13 00 00 [15:27:15]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 62 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [15:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:15]wFMCommunicate OK [15:27:15]SAM_PROTO_GetFieldsCounters done [15:27:15]requested_item shift.num is exist - process it [15:27:15]requested_item shift.opened is exist - process it [15:27:15]req_shift_opened [15:27:15]FM_GetShiftState [15:27:15]SAM_PROTO_GetShiftState [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 13 01 00 [15:27:15]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0E 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [15:27:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:27:15]wFMCommunicate OK [15:27:15]SAM_PROTO_GetShiftState done [15:27:15]FM_GetShiftState done [15:27:15]req_shift_opened done [15:27:15]requested_item shift.open_date is exist - process it [15:27:15]req_shift_open_date [15:27:15]req_shift_open_date done [15:27:15]produce_requested_data done [15:27:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192262,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:27:15]process_action_free close_receipt [15:27:15]json_value_free [15:27:15]json_value_free done [15:27:15]process_json_proto returns [15:27:15]Send response to host [15:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192262,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:27:15]free response buf [15:27:15]execute_script done [15:27:15]execute_script returns [15:27:15]free content buf [15:27:15]Sock 9.Close socket [15:27:15]Sock 9.Thread stoped [15:27:19]OFD Sender: No OFD packet to send [15:27:19]accept exits with 7 [15:27:19]New connection [15:27:19]New thread 3066936676 created [15:27:19]Thread 3067080036 joined [15:27:19]Waiting for new connection... [15:27:19] Sock 7.Parse request [15:27:19]Sock 7.Check first char [15:27:19]Sock 7.First char is OK [15:27:19]request: POST /json_proto HTTP/1.0 [15:27:19]Method: POST [15:27:19]URL: /json_proto [15:27:19]Method is POST - this is cgi request [15:27:19]url: /json_proto [15:27:19]query_string will be loaded in cgi processing [15:27:19]execute_cgi json_proto POST (null) [15:27:19]execute_cgi path=json_proto method=POST [15:27:19]POST find Content-Length [15:27:19]Host: 172.17.63.131:8080 [15:27:19]Content-Length: 681 [15:27:19]Content-Type: application/json [15:27:19] [15:27:19]POST finish read [15:27:19]Found Content-Length = 681 [15:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:19]execute_script... [15:27: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)31577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:19]POST & json_proto [15:27:19]process_json_proto [15:27:19]json parsed OK: [15:27:19]protocol is kg_v1.0 [15:27:19]action value=close_receipt [15:27:19]process_action close_receipt [15:27:19]cmd_close_receipt [15:27:19]MH_GetDate [15:27:19]Write to MH i2c: F0 00 00 57 07 4D [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: F0 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: F0 09 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: F0 09 00 57 07 00 D7 5B 1E 67 22 05 6E 64 06 [15:27:19]GetLastDocTimeStamp 1730042831 [15:27:19]current date 1730042839 [15:27:19]FM_GetShiftState [15:27:19]SAM_PROTO_GetShiftState [15:27:19]wFMCommunicate request_size=4 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 13 01 00 [15:27:19]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 0E 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [15:27:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:27:19]wFMCommunicate OK [15:27:19]SAM_PROTO_GetShiftState done [15:27:19]FM_GetShiftState done [15:27:19]opened in 1729989159 [15:27:19]opened+sec_in_day 1730075559 [15:27:19]quantity*price = 150056 [15:27:19]sum+1 = 150058 [15:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 295 27.10.2024 15:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192263 ФПД: 190797708869268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152719&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192263&fm=190797708869268&tin=02508201610067®Number=0000000000091776&sum=150000 [15:27:20]StoreToDocumentArchive [15:27:20]shift 542 fd 192263 [15:27:20]save to /storage/0542/doc_00192263 [15:27:20]save last doc name /storage/0542/doc_00192263 to /storage/kkm_last_doc_name [15:27:20]save OK [15:27:20]Clear old archive folders... [15:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:20]tlvbuf is 003426E0 [15:27:20]SAM_PROTO_ClearQueue [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 09 00 00 [15:27:20]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [15:27:20]RAPDU: 90 00 [15:27:20]wFMCommunicate OK [15:27:20]SAM_PROTO_ClearQueue done [15:27:20]KKMCreateOFDPacket [15:27:20]OFDProtocolAddRootSTLVToBuf [15:27:20]FM_MakeSignedData [15:27:20]FM_MakeSignedData [15:27:20]SAM_PROTO_SignData [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 0D 01 02 [15:27:20]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [15:27:20]RAPDU: 90 00 [15:27:20]wFMCommunicate OK [15:27:20]wFMCommunicate request_size=255 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D7 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EF 02 00 35 04 06 00 AD [15:27:20]Write to MH i2c: E2 02 01 67 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D7 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EF 02 00 35 04 06 00 AD 00 00 67 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [15:27:20]RAPDU: 90 00 [15:27:20]wFMCommunicate OK [15:27:20]wFMCommunicate request_size=10 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 0D 02 02 05 87 8D A9 3E 94 [15:27:20]Write to MH i2c: E2 0D 00 68 07 80 0D 02 02 05 00 87 8D A9 3E 94 00 00 82 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [15:27:20]RAPDU: 90 00 [15:27:20]wFMCommunicate OK [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 0D 03 02 [15:27:20]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 0B 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 0B 00 69 07 00 96 DA D3 37 EA 23 6A 4D 90 00 2A [15:27:20]RAPDU: 96 DA D3 37 EA 23 6A 4D 90 00 [15:27:20]wFMCommunicate OK [15:27:20]SAM_PROTO_SignData done [15:27:20]FM_MakeSignedData done [15:27:20]CreateOFDProtocolMessage [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 11 00 00 [15:27:20]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 17 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [15:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:20]wFMCommunicate OK [15:27:20]CreateOFDProtocolMessage done [15:27:20]OFDSenderStorePacket 192263 [15:27:20]StoreOFDPacket docnum=192263 [15:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 C2 07 01 D8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D7 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EF 02 00 35 04 06 00 AD 87 8D A9 3E 94 96 DA D3 37 EA 23 6A 4D [15:27:20]CheckFolder [15:27:20]dirname=/storage/ofd_packets [15:27:20]CheckFolder done [15:27:20]ProducePacketName [15:27:20]name=ofd_packets/00192263 [15:27:20]NVStorageSaveData ofd_packets/00192263 [15:27:20]File name is /storage/ofd_packets/00192263 [15:27:20]Write 301 bytes [15:27:20]NVStorageSaveData done [15:27:20]OFDSenderStorePacket done [15:27:20]KKMCreateOFDPacket done [15:27:20]NVStorageSaveData kkm_last_timestamp [15:27:20]File name is /storage/kkm_last_timestamp [15:27:20]Write 4 bytes [15:27:20]NVStorageSaveData done [15:27:20]ExternCall_PrintAddStr [15:27:20]wPrintStart [15:27:20]Write to MH i2c: 01 00 00 6B 07 72 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [15:27:20]RasterBufferAndPrint [15:27:20]line Счет N : (1)31577 [15:27:20]line ИНН: 02508201610067 [15:27:20]line Контрольно-Кассовый Чек [15:27:20]line ПРОДАЖА [15:27:20]line ТРК (МРК, ГНК) : 12 [15:27:20]line Товар: 2710124130 [15:27:20]line Аи-92-К-5 [15:27:20]line 22.430 * 66.90 [15:27:20]line = 1500.57 [15:27:20]line НДС 12% НСП 1% [15:27:20]line > о реализуемом товаре [15:27:20]line ОКРУГЛЕНИЕ: -0.57 [15:27:20]line ИТОГО: 1500.00 [15:27:20]line Внесено: 1500.00 [15:27:20]line СДАЧА: 0.00 [15:27:20]line НСП 1% : 13.28 [15:27:20]line НДС 12% : 159.35 [15:27:20]line Наличными: 1500.00 [15:27:20]line Безнал.: 0.00 [15:27:20]line Место: АЗС № 170 "Партнер Нефть" [15:27:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:27:20]line СНО: Общий режим [15:27:20]line Чек 295 27.10.2024 15:27 [15:27:20]line Смена: 542 ФФД: 1.0 [15:27:20]line ЗНМ: 0300000110 [15:27:20]line РНМ: 0000000000091776 [15:27:20]line Версия ККМ: 001 [15:27:20]line ФМ: 0000000000871754 [15:27:20]line ФД: 192263 [15:27:20]line ФПД: 190797708869268 [15:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152719&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192263&fm=190797708869268&tin=02508201610067®Number=0000000000091776&sum=150000 [15:27:20]written 0, free lines is 4095 [15:27:20]OFD Sender: Processing packet 192263 [packets to send 75, broken 74] [15:27:20]ProducePacketName [15:27:20]name=ofd_packets/00192263 [15:27:20]OFD Sender: To server: pG, [15:27:20]CommunicateWithHost lk.salyk.kg:30040 [15:27:20]ConnectInit lk.salyk.kg [15:27:21]Connected sock=10 [15:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 C2 07 01 D8 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D7 5B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EF 02 00 35 04 06 00 AD 87 8D A9 3E 94 96 DA D3 37 EA 23 6A 4D [15:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 AA 47 00 DA 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 EF 02 00 F4 03 04 00 9E 00 1E 67 B6 04 01 00 00 28 DD C1 C4 13 D3 BE 3C [15:27:21]CommunicateWithHost err = 0 [15:27:21]CheckOFDResponse [15:27:21]1017 (14) - 77093643461234 [15:27:21]1041 (16) - 0000000000871754 [15:27:21]1040 (4) - 192263 [15:27:21]1012 (4) - 27.10.2024 08:58 [15:27:21]1206 (1) - 0 [15:27:21]OFD Sender: Remove packet 192263 [15:27:21]ProducePacketName [15:27:21]name=ofd_packets/00192263 [15:27:21]NVStorageDeleteData [15:27:21]Write to MH i2c: 01 00 00 96 07 9D [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 07 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 BE 0C 6E [15:27:21]RasterBufferAndPrint [15:27:21]line [15:27:21]line [15:27:21]line [15:27:21]line [15:27:21]line [15:27:21]written 0, free lines is 3271 [15:27:21]MH_Cut [15:27:21]Write to MH i2c: D1 01 00 9D 07 01 76 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: D1 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: D1 01 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: D1 01 00 9D 07 00 75 [15:27:21]Write to MH i2c: 01 00 00 9E 07 A5 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]OFD Sender: No OFD packet to send [15:27:22]*** Cut start [15:27:22]*** Partial cut [15:27:22]*** CUTSNS_PIN = 1 [15:27:22]*** CUTSNS_PIN = 0 [15:27:22]*** Brake cut motor [15:27:22]Read from MH i2c: 01 [15:27:22]MH_I2C_Read... [15:27:22]*** Stop cut motor [15:27:22]*** Cut end [15:27:22]Read from MH i2c: 01 07 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [15:27:22]process_action close_receipt done [15:27:22]requested_data is exist [15:27:22]produce_requested_data [15:27:22]requested_item fm.sn is exist - process it [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 11 00 00 [15:27:22]Write to MH i2c: E2 08 00 9F 07 80 11 00 00 00 00 00 00 20 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 9F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [15:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:22]wFMCommunicate OK [15:27:22]requested_item fd.num is exist - process it [15:27:22]SAM_PROTO_GetFieldsCounters [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 13 00 00 [15:27:22]Write to MH i2c: E2 08 00 A0 07 80 13 00 00 00 00 00 00 23 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:23]Read from MH i2c: E2 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: E2 62 00 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: E2 62 00 A0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [15:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:23]wFMCommunicate OK [15:27:23]SAM_PROTO_GetFieldsCounters done [15:27:23]requested_item shift.num is exist - process it [15:27:23]requested_item shift.opened is exist - process it [15:27:23]req_shift_opened [15:27:23]FM_GetShiftState [15:27:23]SAM_PROTO_GetShiftState [15:27:23]wFMCommunicate request_size=4 [15:27:23]MH_SAM_APDU [15:27:23]CAPDU: 80 13 01 00 [15:27:23]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [15:27:23]Write i2c OK [15:27:23]MH_I2C_Read... [15:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:23]Read from MH i2c: E2 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: E2 0E 00 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [15:27:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:27:23]wFMCommunicate OK [15:27:23]SAM_PROTO_GetShiftState done [15:27:23]FM_GetShiftState done [15:27:23]req_shift_opened done [15:27:23]requested_item shift.open_date is exist - process it [15:27:23]req_shift_open_date [15:27:23]req_shift_open_date done [15:27:23]produce_requested_data done [15:27:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192263,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:27:23]process_action_free close_receipt [15:27:23]json_value_free [15:27:23]json_value_free done [15:27:23]process_json_proto returns [15:27:23]Send response to host [15:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192263,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:27:23]free response buf [15:27:23]execute_script done [15:27:23]execute_script returns [15:27:23]free content buf [15:27:23]Sock 7.Close socket [15:27:23]Sock 7.Thread stoped [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]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:27]accept exits with 9 [15:30:27]New connection [15:30:27]New thread 3067080036 created [15:30:27]Thread 3066936676 joined [15:30:27]Waiting for new connection... [15:30:27] Sock 9.Parse request [15:30:27]Sock 9.Check first char [15:30:27]Sock 9.First char is OK [15:30:27]request: POST /json_proto HTTP/1.0 [15:30:27]Method: POST [15:30:27]URL: /json_proto [15:30:27]Method is POST - this is cgi request [15:30:27]url: /json_proto [15:30:27]query_string will be loaded in cgi processing [15:30:27]execute_cgi json_proto POST (null) [15:30:27]execute_cgi path=json_proto method=POST [15:30:27]POST find Content-Length [15:30:27]Host: 172.17.63.131:8080 [15:30:27]Content-Length: 676 [15:30:27]Content-Type: application/json [15:30:27] [15:30:27]POST finish read [15:30:27]Found Content-Length = 676 [15:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:27]execute_script... [15:30: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)31579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:27]POST & json_proto [15:30:27]process_json_proto [15:30:27]json parsed OK: [15:30:27]protocol is kg_v1.0 [15:30:27]action value=close_receipt [15:30:27]process_action close_receipt [15:30:27]cmd_close_receipt [15:30:27]MH_GetDate [15:30:27]Write to MH i2c: F0 00 00 A2 07 98 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 09 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 09 00 A2 07 00 94 5C 1E 67 22 05 6E 64 0F [15:30:27]GetLastDocTimeStamp 1730042839 [15:30:27]current date 1730043028 [15:30:27]FM_GetShiftState [15:30:27]SAM_PROTO_GetShiftState [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 13 01 00 [15:30:27]Write to MH i2c: E2 08 00 A3 07 80 13 01 00 00 00 00 00 27 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0E 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0E 00 A3 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [15:30:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_GetShiftState done [15:30:27]FM_GetShiftState done [15:30:27]opened in 1729989159 [15:30:27]opened+sec_in_day 1730075559 [15:30:27]quantity*price = 50041 [15:30:27]sum+1 = 50042 [15:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 296 27.10.2024 15:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192264 ФПД: 249217406479776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192264&fm=249217406479776&tin=02508201610067®Number=0000000000091776&sum=50000 [15:30:29]StoreToDocumentArchive [15:30:29]shift 542 fd 192264 [15:30:29]save to /storage/0542/doc_00192264 [15:30:29]save last doc name /storage/0542/doc_00192264 to /storage/kkm_last_doc_name [15:30:29]save OK [15:30:29]Clear old archive folders... [15:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:29]tlvbuf is B6F740C0 [15:30:29]SAM_PROTO_ClearQueue [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 09 00 00 [15:30:29]Write to MH i2c: E2 08 00 B0 07 80 09 00 00 00 00 00 00 29 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [15:30:29]RAPDU: 90 00 [15:30:29]wFMCommunicate OK [15:30:29]SAM_PROTO_ClearQueue done [15:30:29]KKMCreateOFDPacket [15:30:29]OFDProtocolAddRootSTLVToBuf [15:30:29]FM_MakeSignedData [15:30:29]FM_MakeSignedData [15:30:29]SAM_PROTO_SignData [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 0D 01 02 [15:30:29]Write to MH i2c: E2 08 00 B1 07 80 0D 01 02 00 00 00 00 31 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [15:30:29]RAPDU: 90 00 [15:30:29]wFMCommunicate OK [15:30:29]wFMCommunicate request_size=255 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 94 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EF 02 00 35 04 06 00 E2 [15:30:29]Write to MH i2c: E2 02 01 B2 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 94 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EF 02 00 35 04 06 00 E2 00 00 5E [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [15:30:29]RAPDU: 90 00 [15:30:29]wFMCommunicate OK [15:30:29]wFMCommunicate request_size=10 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 0D 02 02 05 A9 72 FC 2D A0 [15:30:29]Write to MH i2c: E2 0D 00 B3 07 80 0D 02 02 05 00 A9 72 FC 2D A0 00 00 22 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [15:30:29]RAPDU: 90 00 [15:30:29]wFMCommunicate OK [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 0D 03 02 [15:30:29]Write to MH i2c: E2 08 00 B4 07 80 0D 03 02 00 00 00 00 36 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 0B 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 0B 00 B4 07 00 63 77 B0 1B 97 2E E3 45 90 00 C9 [15:30:29]RAPDU: 63 77 B0 1B 97 2E E3 45 90 00 [15:30:29]wFMCommunicate OK [15:30:29]SAM_PROTO_SignData done [15:30:29]FM_MakeSignedData done [15:30:29]CreateOFDProtocolMessage [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 11 00 00 [15:30:29]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [15:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:30:29]wFMCommunicate OK [15:30:29]CreateOFDProtocolMessage done [15:30:29]OFDSenderStorePacket 192264 [15:30:29]StoreOFDPacket docnum=192264 [15:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 8B 07 01 40 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 94 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EF 02 00 35 04 06 00 E2 A9 72 FC 2D A0 63 77 B0 1B 97 2E E3 45 [15:30:29]CheckFolder [15:30:29]dirname=/storage/ofd_packets [15:30:29]CheckFolder done [15:30:29]ProducePacketName [15:30:29]name=ofd_packets/00192264 [15:30:29]NVStorageSaveData ofd_packets/00192264 [15:30:29]File name is /storage/ofd_packets/00192264 [15:30:29]Write 301 bytes [15:30:29]NVStorageSaveData done [15:30:29]OFDSenderStorePacket done [15:30:29]KKMCreateOFDPacket done [15:30:29]NVStorageSaveData kkm_last_timestamp [15:30:29]File name is /storage/kkm_last_timestamp [15:30:29]Write 4 bytes [15:30:29]NVStorageSaveData done [15:30:29]ExternCall_PrintAddStr [15:30:29]wPrintStart [15:30:29]Write to MH i2c: 01 00 00 B6 07 BD [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [15:30:29]RasterBufferAndPrint [15:30:29]line Счет N : (1)31579 [15:30:29]line ИНН: 02508201610067 [15:30:29]line Контрольно-Кассовый Чек [15:30:29]line ПРОДАЖА [15:30:29]line ТРК (МРК, ГНК) : 12 [15:30:29]line Товар: 2710124130 [15:30:29]line Аи-92-К-5 [15:30:29]line 7.480 * 66.90 [15:30:29]line = 500.41 [15:30:29]line НДС 12% НСП 1% [15:30:29]line > о реализуемом товаре [15:30:29]line ОКРУГЛЕНИЕ: -0.41 [15:30:29]line ИТОГО: 500.00 [15:30:29]line Внесено: 500.00 [15:30:29]line СДАЧА: 0.00 [15:30:29]line НСП 1% : 4.43 [15:30:29]line НДС 12% : 53.14 [15:30:29]line Наличными: 500.00 [15:30:29]line Безнал.: 0.00 [15:30:29]line Место: АЗС № 170 "Партнер Нефть" [15:30:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:30:29]line СНО: Общий режим [15:30:29]line Чек 296 27.10.2024 15:30 [15:30:29]line Смена: 542 ФФД: 1.0 [15:30:29]line ЗНМ: 0300000110 [15:30:29]line РНМ: 0000000000091776 [15:30:29]line Версия ККМ: 001 [15:30:29]line ФМ: 0000000000871754 [15:30:29]line ФД: 192264 [15:30:29]line ФПД: 249217406479776 [15:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192264&fm=249217406479776&tin=02508201610067®Number=0000000000091776&sum=50000 [15:30:29]OFD Sender: Processing packet 192264 [packets to send 75, broken 74] [15:30:29]ProducePacketName [15:30:29]name=ofd_packets/00192264 [15:30:29]OFD Sender: To server: pG, [15:30:29]CommunicateWithHost lk.salyk.kg:30040 [15:30:29]ConnectInit lk.salyk.kg [15:30:29]written 0, free lines is 4095 [15:30:30]Connected sock=10 [15:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 8B 07 01 40 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 94 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EF 02 00 35 04 06 00 E2 A9 72 FC 2D A0 63 77 B0 1B 97 2E E3 45 [15:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D4 DF 47 00 3D 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 EF 02 00 F4 03 04 00 5B 01 1E 67 B6 04 01 00 00 C1 7C 40 39 DB 96 D6 3D [15:30:30]CommunicateWithHost err = 0 [15:30:30]CheckOFDResponse [15:30:30]1017 (14) - 77093643461234 [15:30:30]1041 (16) - 0000000000871754 [15:30:30]1040 (4) - 192264 [15:30:30]1012 (4) - 27.10.2024 09:01 [15:30:30]1206 (1) - 0 [15:30:30]OFD Sender: Remove packet 192264 [15:30:30]ProducePacketName [15:30:30]name=ofd_packets/00192264 [15:30:30]NVStorageDeleteData [15:30:30]Write to MH i2c: 01 00 00 E1 07 E8 [15:30:30]Write i2c OK [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: 01 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: 01 07 00 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 9B 0C 96 [15:30:30]RasterBufferAndPrint [15:30:30]line [15:30:30]line [15:30:30]line [15:30:30]line [15:30:30]line [15:30:30]written 0, free lines is 3232 [15:30:30]MH_Cut [15:30:30]Write to MH i2c: D1 01 00 E8 07 01 C1 [15:30:30]Write i2c OK [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: D1 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: D1 01 00 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: D1 01 00 E8 07 00 C0 [15:30:30]Write to MH i2c: 01 00 00 E9 07 F0 [15:30:30]Write i2c OK [15:30:30]MH_I2C_Read... [15:30:30]OFD Sender: No OFD packet to send [15:30:31]*** Cut start [15:30:31]*** Partial cut [15:30:31]*** CUTSNS_PIN = 1 [15:30:31]*** CUTSNS_PIN = 0 [15:30:31]*** Brake cut motor [15:30:31]Read from MH i2c: 01 [15:30:31]MH_I2C_Read... [15:30:31]*** Stop cut motor [15:30:31]*** Cut end [15:30:31]Read from MH i2c: 01 07 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: 01 07 00 E9 07 00 00 00 00 00 FF 0F 05 [15:30:31]process_action close_receipt done [15:30:31]requested_data is exist [15:30:31]produce_requested_data [15:30:31]requested_item fm.sn is exist - process it [15:30:31]wFMCommunicate request_size=4 [15:30:31]MH_SAM_APDU [15:30:31]CAPDU: 80 11 00 00 [15:30:31]Write to MH i2c: E2 08 00 EA 07 80 11 00 00 00 00 00 00 6B [15:30:31]Write i2c OK [15:30:31]MH_I2C_Read... [15:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:31]Read from MH i2c: E2 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 17 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 17 00 EA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [15:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:30:31]wFMCommunicate OK [15:30:31]requested_item fd.num is exist - process it [15:30:31]SAM_PROTO_GetFieldsCounters [15:30:31]wFMCommunicate request_size=4 [15:30:31]MH_SAM_APDU [15:30:31]CAPDU: 80 13 00 00 [15:30:31]Write to MH i2c: E2 08 00 EB 07 80 13 00 00 00 00 00 00 6E [15:30:31]Write i2c OK [15:30:31]MH_I2C_Read... [15:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:32]Read from MH i2c: E2 [15:30:32]MH_I2C_Read... [15:30:32]Read from MH i2c: E2 62 00 [15:30:32]MH_I2C_Read... [15:30:32]Read from MH i2c: E2 62 00 EB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:32]wFMCommunicate OK [15:30:32]SAM_PROTO_GetFieldsCounters done [15:30:32]requested_item shift.num is exist - process it [15:30:32]requested_item shift.opened is exist - process it [15:30:32]req_shift_opened [15:30:32]FM_GetShiftState [15:30:32]SAM_PROTO_GetShiftState [15:30:32]wFMCommunicate request_size=4 [15:30:32]MH_SAM_APDU [15:30:32]CAPDU: 80 13 01 00 [15:30:32]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [15:30:32]Write i2c OK [15:30:32]MH_I2C_Read... [15:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:32]Read from MH i2c: E2 [15:30:32]MH_I2C_Read... [15:30:32]Read from MH i2c: E2 0E 00 [15:30:32]MH_I2C_Read... [15:30:32]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [15:30:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:30:32]wFMCommunicate OK [15:30:32]SAM_PROTO_GetShiftState done [15:30:32]FM_GetShiftState done [15:30:32]req_shift_opened done [15:30:32]requested_item shift.open_date is exist - process it [15:30:32]req_shift_open_date [15:30:32]req_shift_open_date done [15:30:32]produce_requested_data done [15:30:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192264,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:30:32]process_action_free close_receipt [15:30:32]json_value_free [15:30:32]json_value_free done [15:30:32]process_json_proto returns [15:30:32]Send response to host [15:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192264,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:30:32]free response buf [15:30:32]execute_script done [15:30:32]execute_script returns [15:30:32]free content buf [15:30:32]Sock 9.Close socket [15:30:32]Sock 9.Thread stoped [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:48]accept exits with 7 [15:31:48]New connection [15:31:48]New thread 3066936676 created [15:31:48]Thread 3067080036 joined [15:31:48]Waiting for new connection... [15:31:48] Sock 7.Parse request [15:31:48]Sock 7.Check first char [15:31:48]Sock 7.First char is OK [15:31:48]request: POST /json_proto HTTP/1.0 [15:31:48]Method: POST [15:31:48]URL: /json_proto [15:31:48]Method is POST - this is cgi request [15:31:48]url: /json_proto [15:31:48]query_string will be loaded in cgi processing [15:31:48]execute_cgi json_proto POST (null) [15:31:48]execute_cgi path=json_proto method=POST [15:31:48]POST find Content-Length [15:31:48]Host: 172.17.63.131:8080 [15:31:48]Content-Length: 678 [15:31:48]Content-Type: application/json [15:31:48] [15:31:48]POST finish read [15:31:48]Found Content-Length = 678 [15:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31578", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:48]execute_script... [15:31: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)31578", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:48]POST & json_proto [15:31:48]process_json_proto [15:31:48]json parsed OK: [15:31:48]protocol is kg_v1.0 [15:31:48]action value=close_receipt [15:31:48]process_action close_receipt [15:31:48]cmd_close_receipt [15:31:48]MH_GetDate [15:31:48]Write to MH i2c: F0 00 00 ED 07 E3 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: F0 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: F0 09 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: F0 09 00 ED 07 00 E4 5C 1E 67 22 05 6E 64 AA [15:31:48]GetLastDocTimeStamp 1730043028 [15:31:48]current date 1730043108 [15:31:48]FM_GetShiftState [15:31:48]SAM_PROTO_GetShiftState [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 13 01 00 [15:31:48]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0E 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B3 [15:31:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:31:48]wFMCommunicate OK [15:31:48]SAM_PROTO_GetShiftState done [15:31:48]FM_GetShiftState done [15:31:48]opened in 1729989159 [15:31:48]opened+sec_in_day 1730075559 [15:31:48]quantity*price = 200025 [15:31:48]sum+1 = 200026 [15:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 297 27.10.2024 15:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192265 ФПД: 73631048164158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192265&fm=73631048164158&tin=02508201610067®Number=0000000000091776&sum=200000 [15:31:49]StoreToDocumentArchive [15:31:49]shift 542 fd 192265 [15:31:49]save to /storage/0542/doc_00192265 [15:31:49]save last doc name /storage/0542/doc_00192265 to /storage/kkm_last_doc_name [15:31:49]save OK [15:31:49]Clear old archive folders... [15:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:49]tlvbuf is 002BCF70 [15:31:49]SAM_PROTO_ClearQueue [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 09 00 00 [15:31:49]Write to MH i2c: E2 08 00 FB 07 80 09 00 00 00 00 00 00 74 [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 03 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [15:31:49]RAPDU: 90 00 [15:31:49]wFMCommunicate OK [15:31:49]SAM_PROTO_ClearQueue done [15:31:49]KKMCreateOFDPacket [15:31:49]OFDProtocolAddRootSTLVToBuf [15:31:49]FM_MakeSignedData [15:31:49]FM_MakeSignedData [15:31:49]SAM_PROTO_SignData [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 0D 01 02 [15:31:49]Write to MH i2c: E2 08 00 FC 07 80 0D 01 02 00 00 00 00 7C [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 03 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [15:31:49]RAPDU: 90 00 [15:31:49]wFMCommunicate OK [15:31:49]wFMCommunicate request_size=255 [15:31:49]MH_SAM_APDU [15:31: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EF 02 00 35 04 06 00 42 F7 90 78 [15:31:49]Write to MH i2c: E2 02 01 FD 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EF 02 00 35 04 06 00 42 F7 90 78 00 00 3F [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:50]Read from MH i2c: E2 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 03 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [15:31:50]RAPDU: 90 00 [15:31:50]wFMCommunicate OK [15:31:50]wFMCommunicate request_size=7 [15:31:50]MH_SAM_APDU [15:31:50]CAPDU: 80 0D 02 02 02 63 3E [15:31:50]Write to MH i2c: E2 0A 00 FE 07 80 0D 02 02 02 00 63 3E 00 00 24 [15:31:50]Write i2c OK [15:31:50]MH_I2C_Read... [15:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:50]Read from MH i2c: E2 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 03 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [15:31:50]RAPDU: 90 00 [15:31:50]wFMCommunicate OK [15:31:50]wFMCommunicate request_size=4 [15:31:50]MH_SAM_APDU [15:31:50]CAPDU: 80 0D 03 02 [15:31:50]Write to MH i2c: E2 08 00 FF 07 80 0D 03 02 00 00 00 00 81 [15:31:50]Write i2c OK [15:31:50]MH_I2C_Read... [15:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:50]Read from MH i2c: E2 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 0B 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 0B 00 FF 07 00 4C 46 CC 6F D9 47 4B CB 90 00 85 [15:31:50]RAPDU: 4C 46 CC 6F D9 47 4B CB 90 00 [15:31:50]wFMCommunicate OK [15:31:50]SAM_PROTO_SignData done [15:31:50]FM_MakeSignedData done [15:31:50]CreateOFDProtocolMessage [15:31:50]wFMCommunicate request_size=4 [15:31:50]MH_SAM_APDU [15:31:50]CAPDU: 80 11 00 00 [15:31:50]Write to MH i2c: E2 08 00 00 08 80 11 00 00 00 00 00 00 82 [15:31:50]Write i2c OK [15:31:50]MH_I2C_Read... [15:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:50]Read from MH i2c: E2 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 17 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 17 00 00 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [15:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:50]wFMCommunicate OK [15:31:50]CreateOFDProtocolMessage done [15:31:50]OFDSenderStorePacket 192265 [15:31:50]StoreOFDPacket docnum=192265 [15:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 B8 04 01 EC 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EF 02 00 35 04 06 00 42 F7 90 78 63 3E 4C 46 CC 6F D9 47 4B CB [15:31:50]CheckFolder [15:31:50]dirname=/storage/ofd_packets [15:31:50]CheckFolder done [15:31:50]ProducePacketName [15:31:50]name=ofd_packets/00192265 [15:31:50]NVStorageSaveData ofd_packets/00192265 [15:31:50]File name is /storage/ofd_packets/00192265 [15:31:50]Write 298 bytes [15:31:50]NVStorageSaveData done [15:31:50]OFDSenderStorePacket done [15:31:50]KKMCreateOFDPacket done [15:31:50]NVStorageSaveData kkm_last_timestamp [15:31:50]File name is /storage/kkm_last_timestamp [15:31:50]Write 4 bytes [15:31:50]NVStorageSaveData done [15:31:50]ExternCall_PrintAddStr [15:31:50]wPrintStart [15:31:50]Write to MH i2c: 01 00 00 01 08 09 [15:31:50]Write i2c OK [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: 01 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: 01 07 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: 01 07 00 01 08 00 00 00 00 00 FF 0F 1E [15:31:50]RasterBufferAndPrint [15:31:50]line Счет N : (1)31578 [15:31:50]line ИНН: 02508201610067 [15:31:50]line Контрольно-Кассовый Чек [15:31:50]line ПРОДАЖА [15:31:50]line ТРК (МРК, ГНК) : 11 [15:31:50]line Товар: 2710194210 [15:31:50]line ДТ-К-5 [15:31:50]line 26.250 * 76.20 [15:31:50]line = 2000.25 [15:31:50]line НДС 12% НСП 1% [15:31:50]line > о реализуемом товаре [15:31:50]line ОКРУГЛЕНИЕ: -0.25 [15:31:50]line ИТОГО: 2000.00 [15:31:50]line Внесено: 2000.00 [15:31:50]line СДАЧА: 0.00 [15:31:50]line НСП 1% : 17.70 [15:31:50]line НДС 12% : 212.42 [15:31:50]line Наличными: 2000.00 [15:31:50]line Безнал.: 0.00 [15:31:50]line Место: АЗС № 170 "Партнер Нефть" [15:31:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:31:50]line СНО: Общий режим [15:31:50]line Чек 297 27.10.2024 15:31 [15:31:50]line Смена: 542 ФФД: 1.0 [15:31:50]line ЗНМ: 0300000110 [15:31:50]line РНМ: 0000000000091776 [15:31:50]line Версия ККМ: 001 [15:31:50]line ФМ: 0000000000871754 [15:31:50]line ФД: 192265 [15:31:50]line ФПД: 73631048164158 [15:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192265&fm=73631048164158&tin=02508201610067®Number=0000000000091776&sum=200000 [15:31:50]OFD Sender: Processing packet 192265 [packets to send 75, broken 74] [15:31:50]ProducePacketName [15:31:50]name=ofd_packets/00192265 [15:31:50]OFD Sender: To server: pG, [15:31:50]CommunicateWithHost lk.salyk.kg:30040 [15:31:50]ConnectInit lk.salyk.kg [15:31:50]written 0, free lines is 4095 [15:31:50]Connected sock=9 [15:31:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 B8 04 01 EC 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E5 5C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EF 02 00 35 04 06 00 42 F7 90 78 63 3E 4C 46 CC 6F D9 47 4B CB [15:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CD E2 47 00 F6 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 EF 02 00 F4 03 04 00 AC 01 1E 67 B6 04 01 00 00 D4 4E 1F 0E 85 3F 7E 13 [15:31:50]CommunicateWithHost err = 0 [15:31:50]CheckOFDResponse [15:31:50]1017 (14) - 77093643461234 [15:31:50]1041 (16) - 0000000000871754 [15:31:50]1040 (4) - 192265 [15:31:50]1012 (4) - 27.10.2024 09:02 [15:31:50]1206 (1) - 0 [15:31:50]OFD Sender: Remove packet 192265 [15:31:50]ProducePacketName [15:31:50]name=ofd_packets/00192265 [15:31:50]NVStorageDeleteData [15:31:51]Write to MH i2c: 01 00 00 2C 08 34 [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: 01 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: 01 07 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 AD 0C F4 [15:31:51]RasterBufferAndPrint [15:31:51]line [15:31:51]line [15:31:51]line [15:31:51]line [15:31:51]line [15:31:51]written 0, free lines is 3251 [15:31:51]MH_Cut [15:31:51]Write to MH i2c: D1 01 00 33 08 01 0D [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: D1 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: D1 01 00 [15:31:51]MH_I2C_Read... [15:31:51]Read from MH i2c: D1 01 00 33 08 00 0C [15:31:51]Write to MH i2c: 01 00 00 34 08 3C [15:31:51]Write i2c OK [15:31:51]MH_I2C_Read... [15:31:51]OFD Sender: No OFD packet to send [15:31:51]*** Cut start [15:31:51]*** Partial cut [15:31:51]*** CUTSNS_PIN = 1 [15:31:51]*** CUTSNS_PIN = 0 [15:31:52]*** Brake cut motor [15:31:52]Read from MH i2c: 01 [15:31:52]MH_I2C_Read... [15:31:52]*** Stop cut motor [15:31:52]*** Cut end [15:31:52]Read from MH i2c: 01 07 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [15:31:52]process_action close_receipt done [15:31:52]requested_data is exist [15:31:52]produce_requested_data [15:31:52]requested_item fm.sn is exist - process it [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 11 00 00 [15:31:52]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 17 00 [15:31:52]MH_I2C_Read... [15:31:52]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 37 35 34 90 00 0A [15:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:52]wFMCommunicate OK [15:31:52]requested_item fd.num is exist - process it [15:31:52]SAM_PROTO_GetFieldsCounters [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 13 00 00 [15:31:52]Write to MH i2c: E2 08 00 36 08 80 13 00 00 00 00 00 00 BA [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 62 00 [15:31:52]MH_I2C_Read... [15:31:52]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [15:31:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_GetFieldsCounters done [15:31:52]requested_item shift.num is exist - process it [15:31:52]requested_item shift.opened is exist - process it [15:31:52]req_shift_opened [15:31:52]FM_GetShiftState [15:31:52]SAM_PROTO_GetShiftState [15:31:52]wFMCommunicate request_size=4 [15:31:52]MH_SAM_APDU [15:31:52]CAPDU: 80 13 01 00 [15:31:52]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [15:31:52]Write i2c OK [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 [15:31:52]MH_I2C_Read... [15:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:52]Read from MH i2c: E2 0E 00 [15:31:52]MH_I2C_Read... [15:31:52]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [15:31:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:31:52]wFMCommunicate OK [15:31:52]SAM_PROTO_GetShiftState done [15:31:52]FM_GetShiftState done [15:31:52]req_shift_opened done [15:31:52]requested_item shift.open_date is exist - process it [15:31:52]req_shift_open_date [15:31:52]req_shift_open_date done [15:31:52]produce_requested_data done [15:31:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192265,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:31:52]process_action_free close_receipt [15:31:52]json_value_free [15:31:52]json_value_free done [15:31:52]process_json_proto returns [15:31:52]Send response to host [15:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192265,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:31:52]free response buf [15:31:52]execute_script done [15:31:52]execute_script returns [15:31:52]free content buf [15:31:52]Sock 7.Close socket [15:31:52]Sock 7.Thread stoped [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:30]accept exits with 10 [15:32:30]New connection [15:32:30]New thread 3067080036 created [15:32:30]Thread 3066936676 joined [15:32:30]Waiting for new connection... [15:32:30] Sock 10.Parse request [15:32:30]Sock 10.Check first char [15:32:30]Sock 10.First char is OK [15:32:30]request: POST /json_proto HTTP/1.0 [15:32:30]Method: POST [15:32:30]URL: /json_proto [15:32:30]Method is POST - this is cgi request [15:32:30]url: /json_proto [15:32:30]query_string will be loaded in cgi processing [15:32:30]execute_cgi json_proto POST (null) [15:32:30]execute_cgi path=json_proto method=POST [15:32:30]POST find Content-Length [15:32:30]Host: 172.17.63.131:8080 [15:32:30]Content-Length: 804 [15:32:30]Content-Type: application/json [15:32:30] [15:32:30]POST finish read [15:32:30]Found Content-Length = 804 [15:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:30]execute_script... [15:32:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:30]POST & json_proto [15:32:30]process_json_proto [15:32:30]json parsed OK: [15:32:30]protocol is kg_v1.0 [15:32:30]action value=close_receipt [15:32:30]process_action close_receipt [15:32:30]cmd_close_receipt [15:32:30]MH_GetDate [15:32:30]Write to MH i2c: F0 00 00 38 08 2F [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: F0 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: F0 09 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: F0 09 00 38 08 00 0E 5D 1E 67 22 05 6E 64 21 [15:32:30]GetLastDocTimeStamp 1730043109 [15:32:30]current date 1730043150 [15:32:30]FM_GetShiftState [15:32:30]SAM_PROTO_GetShiftState [15:32:30]wFMCommunicate request_size=4 [15:32:30]MH_SAM_APDU [15:32:30]CAPDU: 80 13 01 00 [15:32:30]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:30]Read from MH i2c: E2 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 0E 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FF [15:32:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:32:30]wFMCommunicate OK [15:32:30]SAM_PROTO_GetShiftState done [15:32:30]FM_GetShiftState done [15:32:30]opened in 1729989159 [15:32:30]opened+sec_in_day 1730075559 [15:32:30]quantity*price = 25020 [15:32:30]sum+1 = 25022 [15:32:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 298 27.10.2024 15:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192266 ФПД: 101790813606653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192266&fm=101790813606653&tin=02508201610067®Number=0000000000091776&sum=25021 [15:32:31]StoreToDocumentArchive [15:32:31]shift 542 fd 192266 [15:32:31]save to /storage/0542/doc_00192266 [15:32:31]save last doc name /storage/0542/doc_00192266 to /storage/kkm_last_doc_name [15:32:31]save OK [15:32:31]Clear old archive folders... [15:32:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:31]tlvbuf is 002C0590 [15:32:31]SAM_PROTO_ClearQueue [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 09 00 00 [15:32:31]Write to MH i2c: E2 08 00 46 08 80 09 00 00 00 00 00 00 C0 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]SAM_PROTO_ClearQueue done [15:32:31]KKMCreateOFDPacket [15:32:31]OFDProtocolAddRootSTLVToBuf [15:32:31]FM_MakeSignedData [15:32:31]FM_MakeSignedData [15:32:31]SAM_PROTO_SignData [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 0D 01 02 [15:32:31]Write to MH i2c: E2 08 00 47 08 80 0D 01 02 00 00 00 00 C8 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]wFMCommunicate request_size=255 [15:32:31]MH_SAM_APDU [15:32: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0E 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EF 02 00 35 04 06 00 5C [15:32:31]Write to MH i2c: E2 02 01 48 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0E 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EF 02 00 35 04 06 00 5C 00 00 F1 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]wFMCommunicate request_size=10 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 0D 02 02 05 94 05 49 52 FD [15:32:31]Write to MH i2c: E2 0D 00 49 08 80 0D 02 02 05 00 94 05 49 52 FD 00 00 06 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 0D 03 02 [15:32:31]Write to MH i2c: E2 08 00 4A 08 80 0D 03 02 00 00 00 00 CD [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:32]Read from MH i2c: E2 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: E2 0B 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: E2 0B 00 4A 08 00 C1 D3 D6 69 BD 31 AB C9 90 00 03 [15:32:32]RAPDU: C1 D3 D6 69 BD 31 AB C9 90 00 [15:32:32]wFMCommunicate OK [15:32:32]SAM_PROTO_SignData done [15:32:32]FM_MakeSignedData done [15:32:32]CreateOFDProtocolMessage [15:32:32]wFMCommunicate request_size=4 [15:32:32]MH_SAM_APDU [15:32:32]CAPDU: 80 11 00 00 [15:32:32]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:32]Read from MH i2c: E2 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: E2 17 00 [15:32:32]MH_I2C_Read... [15:32:32]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 37 35 34 90 00 20 [15:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:32:32]wFMCommunicate OK [15:32:32]CreateOFDProtocolMessage done [15:32:32]OFDSenderStorePacket 192266 [15:32:32]StoreOFDPacket docnum=192266 [15:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 2A 07 01 B9 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0E 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EF 02 00 35 04 06 00 5C 94 05 49 52 FD C1 D3 D6 69 BD 31 AB C9 [15:32:32]CheckFolder [15:32:32]dirname=/storage/ofd_packets [15:32:32]CheckFolder done [15:32:32]ProducePacketName [15:32:32]name=ofd_packets/00192266 [15:32:32]NVStorageSaveData ofd_packets/00192266 [15:32:32]File name is /storage/ofd_packets/00192266 [15:32:32]Write 301 bytes [15:32:32]NVStorageSaveData done [15:32:32]OFDSenderStorePacket done [15:32:32]KKMCreateOFDPacket done [15:32:32]NVStorageSaveData kkm_last_timestamp [15:32:32]File name is /storage/kkm_last_timestamp [15:32:32]Write 4 bytes [15:32:32]NVStorageSaveData done [15:32:32]ExternCall_PrintAddStr [15:32:32]wPrintStart [15:32:32]Write to MH i2c: 01 00 00 4C 08 54 [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [15:32:32]RasterBufferAndPrint [15:32:32]line Счет N : (1)31580 [15:32:32]line ИНН: 02508201610067 [15:32:32]line Контрольно-Кассовый Чек [15:32:32]line ПРОДАЖА [15:32:32]line ТРК (МРК, ГНК) : 21 [15:32:32]line Товар: 2710124130 [15:32:32]line Аи-92-К-5 [15:32:32]line 3.740 * 66.90 [15:32:32]line = 250.21 [15:32:32]line НДС 12% НСП 1% [15:32:32]line > о реализуемом товаре [15:32:32]line ИТОГО: 250.21 [15:32:32]line НСП 1% : 2.21 [15:32:32]line НДС 12% : 26.57 [15:32:32]line Наличными: 0.00 [15:32:32]line Безнал.: 250.21 [15:32:32]line Место: АЗС № 170 "Партнер Нефть" [15:32:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:32:32]line СНО: Общий режим [15:32:32]line Чек 298 27.10.2024 15:32 [15:32:32]line Смена: 542 ФФД: 1.0 [15:32:32]line ЗНМ: 0300000110 [15:32:32]line РНМ: 0000000000091776 [15:32:32]line Версия ККМ: 001 [15:32:32]line Платежная система: О! деньги [15:32:32]line ФМ: 0000000000871754 [15:32:32]line ФД: 192266 [15:32:32]line ФПД: 101790813606653 [15:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192266&fm=101790813606653&tin=02508201610067®Number=0000000000091776&sum=25021 [15:32:32]OFD Sender: Processing packet 192266 [packets to send 75, broken 74] [15:32:32]ProducePacketName [15:32:32]name=ofd_packets/00192266 [15:32:32]OFD Sender: To server: pG, [15:32:32]CommunicateWithHost lk.salyk.kg:30040 [15:32:32]ConnectInit lk.salyk.kg [15:32:32]written 0, free lines is 4095 [15:32:32]Connected sock=9 [15:32:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3A 2A 07 01 B9 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0E 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EF 02 00 35 04 06 00 5C 94 05 49 52 FD C1 D3 D6 69 BD 31 AB C9 [15:32:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 78 C4 47 00 8B F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A EF 02 00 F4 03 04 00 D6 01 1E 67 B6 04 01 00 00 23 92 0A 2B 81 22 B5 D6 [15:32:32]CommunicateWithHost err = 0 [15:32:32]CheckOFDResponse [15:32:32]1017 (14) - 77093643461234 [15:32:32]1041 (16) - 0000000000871754 [15:32:32]1040 (4) - 192266 [15:32:32]1012 (4) - 27.10.2024 09:03 [15:32:32]1206 (1) - 0 [15:32:32]OFD Sender: Remove packet 192266 [15:32:32]ProducePacketName [15:32:32]name=ofd_packets/00192266 [15:32:32]NVStorageDeleteData [15:32:32]Write to MH i2c: 01 00 00 76 08 7E [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 B4 0C 45 [15:32:32]RasterBufferAndPrint [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]written 0, free lines is 3258 [15:32:32]MH_Cut [15:32:32]Write to MH i2c: D1 01 00 7D 08 01 57 [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 01 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 01 00 7D 08 00 56 [15:32:32]Write to MH i2c: 01 00 00 7E 08 86 [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:33]OFD Sender: No OFD packet to send [15:32:33]*** Cut start [15:32:33]*** Partial cut [15:32:33]*** CUTSNS_PIN = 1 [15:32:33]*** CUTSNS_PIN = 0 [15:32:33]*** Brake cut motor [15:32:34]Read from MH i2c: 01 [15:32:34]MH_I2C_Read... [15:32:34]*** Stop cut motor [15:32:34]*** Cut end [15:32:34]Read from MH i2c: 01 07 00 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [15:32:34]process_action close_receipt done [15:32:34]requested_data is exist [15:32:34]produce_requested_data [15:32:34]requested_item fm.sn is exist - process it [15:32:34]wFMCommunicate request_size=4 [15:32:34]MH_SAM_APDU [15:32:34]CAPDU: 80 11 00 00 [15:32:34]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [15:32:34]Write i2c OK [15:32:34]MH_I2C_Read... [15:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:34]Read from MH i2c: E2 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: E2 17 00 [15:32:34]MH_I2C_Read... [15:32:34]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 37 35 34 90 00 54 [15:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:32:34]wFMCommunicate OK [15:32:34]requested_item fd.num is exist - process it [15:32:34]SAM_PROTO_GetFieldsCounters [15:32:34]wFMCommunicate request_size=4 [15:32:34]MH_SAM_APDU [15:32:34]CAPDU: 80 13 00 00 [15:32:34]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [15:32:34]Write i2c OK [15:32:34]MH_I2C_Read... [15:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:34]Read from MH i2c: E2 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: E2 62 00 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [15:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:34]wFMCommunicate OK [15:32:34]SAM_PROTO_GetFieldsCounters done [15:32:34]requested_item shift.num is exist - process it [15:32:34]requested_item shift.opened is exist - process it [15:32:34]req_shift_opened [15:32:34]FM_GetShiftState [15:32:34]SAM_PROTO_GetShiftState [15:32:34]wFMCommunicate request_size=4 [15:32:34]MH_SAM_APDU [15:32:34]CAPDU: 80 13 01 00 [15:32:34]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [15:32:34]Write i2c OK [15:32:34]MH_I2C_Read... [15:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:34]Read from MH i2c: E2 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: E2 0E 00 [15:32:34]MH_I2C_Read... [15:32:34]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [15:32:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:32:34]wFMCommunicate OK [15:32:34]SAM_PROTO_GetShiftState done [15:32:34]FM_GetShiftState done [15:32:34]req_shift_opened done [15:32:34]requested_item shift.open_date is exist - process it [15:32:34]req_shift_open_date [15:32:34]req_shift_open_date done [15:32:34]produce_requested_data done [15:32:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192266,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:32:34]process_action_free close_receipt [15:32:34]json_value_free [15:32:34]json_value_free done [15:32:34]process_json_proto returns [15:32:34]Send response to host [15:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192266,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:32:34]free response buf [15:32:34]execute_script done [15:32:34]execute_script returns [15:32:34]free content buf [15:32:34]Sock 10.Close socket [15:32:34]Sock 10.Thread stoped [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:31]accept exits with 7 [15:33:31]New connection [15:33:31]New thread 3066936676 created [15:33:31]Thread 3067080036 joined [15:33:31]Waiting for new connection... [15:33:31] Sock 7.Parse request [15:33:31]Sock 7.Check first char [15:33:31]Sock 7.First char is OK [15:33:31]request: POST /json_proto HTTP/1.0 [15:33:31]Method: POST [15:33:31]URL: /json_proto [15:33:31]Method is POST - this is cgi request [15:33:31]url: /json_proto [15:33:31]query_string will be loaded in cgi processing [15:33:31]execute_cgi json_proto POST (null) [15:33:31]execute_cgi path=json_proto method=POST [15:33:31]POST find Content-Length [15:33:31]Host: 172.17.63.131:8080 [15:33:31]Content-Length: 676 [15:33:31]Content-Type: application/json [15:33:31] [15:33:31]POST finish read [15:33:31]Found Content-Length = 676 [15:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:31]execute_script... [15: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 : (1)31581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:31]POST & json_proto [15:33:31]process_json_proto [15:33:31]json parsed OK: [15:33:31]protocol is kg_v1.0 [15:33:31]action value=close_receipt [15:33:31]process_action close_receipt [15:33:31]cmd_close_receipt [15:33:31]MH_GetDate [15:33:31]Write to MH i2c: F0 00 00 82 08 79 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: F0 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: F0 09 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: F0 09 00 82 08 00 4C 5D 1E 67 22 05 6E 64 A9 [15:33:31]GetLastDocTimeStamp 1730043150 [15:33:31]current date 1730043212 [15:33:31]FM_GetShiftState [15:33:31]SAM_PROTO_GetShiftState [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 13 01 00 [15:33:31]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0E 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 49 [15:33:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:33:31]wFMCommunicate OK [15:33:31]SAM_PROTO_GetShiftState done [15:33:31]FM_GetShiftState done [15:33:31]opened in 1729989159 [15:33:31]opened+sec_in_day 1730075559 [15:33:31]quantity*price = 50041 [15:33:31]sum+1 = 50042 [15:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 299 27.10.2024 15:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192267 ФПД: 99013957091851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192267&fm=99013957091851&tin=02508201610067®Number=0000000000091776&sum=50000 [15:33:32]StoreToDocumentArchive [15:33:32]shift 542 fd 192267 [15:33:32]save to /storage/0542/doc_00192267 [15:33:32]save last doc name /storage/0542/doc_00192267 to /storage/kkm_last_doc_name [15:33:32]save OK [15:33:32]Clear old archive folders... [15:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:32]tlvbuf is 002C0510 [15:33:32]SAM_PROTO_ClearQueue [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 09 00 00 [15:33:32]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:32]Read from MH i2c: E2 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 03 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [15:33:32]RAPDU: 90 00 [15:33:32]wFMCommunicate OK [15:33:32]SAM_PROTO_ClearQueue done [15:33:32]KKMCreateOFDPacket [15:33:32]OFDProtocolAddRootSTLVToBuf [15:33:32]FM_MakeSignedData [15:33:32]FM_MakeSignedData [15:33:32]SAM_PROTO_SignData [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 0D 01 02 [15:33:32]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:32]Read from MH i2c: E2 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 03 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [15:33:32]RAPDU: 90 00 [15:33:32]wFMCommunicate OK [15:33:32]wFMCommunicate request_size=255 [15:33:32]MH_SAM_APDU [15:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 4C 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EF 02 00 35 04 06 00 5A [15:33:32]Write to MH i2c: E2 02 01 92 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 4C 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EF 02 00 35 04 06 00 5A 00 00 76 [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=10 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 02 02 05 0D 7B BD 82 0B [15:33:33]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 0D 7B BD 82 0B 00 00 F1 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 03 02 [15:33:33]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:33]OFD Sender: No OFD packet to send [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0B 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0B 00 94 08 00 FA 9D 3E 81 F6 B5 F3 76 90 00 82 [15:33:33]RAPDU: FA 9D 3E 81 F6 B5 F3 76 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_SignData done [15:33:33]FM_MakeSignedData done [15:33:33]CreateOFDProtocolMessage [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 11 00 00 [15:33:33]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [15:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:33]wFMCommunicate OK [15:33:33]CreateOFDProtocolMessage done [15:33:33]OFDSenderStorePacket 192267 [15:33:33]StoreOFDPacket docnum=192267 [15:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 38 07 01 E5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 4C 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EF 02 00 35 04 06 00 5A 0D 7B BD 82 0B FA 9D 3E 81 F6 B5 F3 76 [15:33:33]CheckFolder [15:33:33]dirname=/storage/ofd_packets [15:33:33]CheckFolder done [15:33:33]ProducePacketName [15:33:33]name=ofd_packets/00192267 [15:33:33]NVStorageSaveData ofd_packets/00192267 [15:33:33]File name is /storage/ofd_packets/00192267 [15:33:33]Write 301 bytes [15:33:33]NVStorageSaveData done [15:33:33]OFDSenderStorePacket done [15:33:33]KKMCreateOFDPacket done [15:33:33]NVStorageSaveData kkm_last_timestamp [15:33:33]File name is /storage/kkm_last_timestamp [15:33:33]Write 4 bytes [15:33:33]NVStorageSaveData done [15:33:33]ExternCall_PrintAddStr [15:33:33]wPrintStart [15:33:33]Write to MH i2c: 01 00 00 96 08 9E [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: 01 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: 01 07 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [15:33:33]RasterBufferAndPrint [15:33:33]line Счет N : (1)31581 [15:33:33]line ИНН: 02508201610067 [15:33:33]line Контрольно-Кассовый Чек [15:33:33]line ПРОДАЖА [15:33:33]line ТРК (МРК, ГНК) : 12 [15:33:33]line Товар: 2710124130 [15:33:33]line Аи-92-К-5 [15:33:33]line 7.480 * 66.90 [15:33:33]line = 500.41 [15:33:33]line НДС 12% НСП 1% [15:33:33]line > о реализуемом товаре [15:33:33]line ОКРУГЛЕНИЕ: -0.41 [15:33:33]line ИТОГО: 500.00 [15:33:33]line Внесено: 500.00 [15:33:33]line СДАЧА: 0.00 [15:33:33]line НСП 1% : 4.43 [15:33:33]line НДС 12% : 53.14 [15:33:33]line Наличными: 500.00 [15:33:33]line Безнал.: 0.00 [15:33:33]line Место: АЗС № 170 "Партнер Нефть" [15:33:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:33:33]line СНО: Общий режим [15:33:33]line Чек 299 27.10.2024 15:33 [15:33:33]line Смена: 542 ФФД: 1.0 [15:33:33]line ЗНМ: 0300000110 [15:33:33]line РНМ: 0000000000091776 [15:33:33]line Версия ККМ: 001 [15:33:33]line ФМ: 0000000000871754 [15:33:33]line ФД: 192267 [15:33:33]line ФПД: 99013957091851 [15:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153332&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192267&fm=99013957091851&tin=02508201610067®Number=0000000000091776&sum=50000 [15:33:33]OFD Sender: Processing packet 192267 [packets to send 75, broken 74] [15:33:33]ProducePacketName [15:33:33]name=ofd_packets/00192267 [15:33:33]OFD Sender: To server: pG, [15:33:33]CommunicateWithHost lk.salyk.kg:30040 [15:33:33]ConnectInit lk.salyk.kg [15:33:33]written 0, free lines is 4095 [15:33:33]Connected sock=10 [15:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 38 07 01 E5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 4C 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EF 02 00 35 04 06 00 5A 0D 7B BD 82 0B FA 9D 3E 81 F6 B5 F3 76 [15:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8B 4F 47 00 A9 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B EF 02 00 F4 03 04 00 13 02 1E 67 B6 04 01 00 00 3A E4 5D A4 34 42 71 E2 [15:33:34]CommunicateWithHost err = 0 [15:33:34]CheckOFDResponse [15:33:34]1017 (14) - 77093643461234 [15:33:34]1041 (16) - 0000000000871754 [15:33:34]1040 (4) - 192267 [15:33:34]1012 (4) - 27.10.2024 09:04 [15:33:34]1206 (1) - 0 [15:33:34]OFD Sender: Remove packet 192267 [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00192267 [15:33:34]NVStorageDeleteData [15:33:34]Write to MH i2c: 01 00 00 C1 08 C9 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 AA 0C 86 [15:33:34]RasterBufferAndPrint [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]line [15:33:34]written 0, free lines is 3248 [15:33:34]MH_Cut [15:33:34]Write to MH i2c: D1 01 00 C8 08 01 A2 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 01 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: D1 01 00 C8 08 00 A1 [15:33:34]Write to MH i2c: 01 00 00 C9 08 D1 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]OFD Sender: No OFD packet to send [15:33:35]*** Cut start [15:33:35]*** Partial cut [15:33:35]*** CUTSNS_PIN = 1 [15:33:35]*** CUTSNS_PIN = 0 [15:33:35]*** Brake cut motor [15:33:35]Read from MH i2c: 01 [15:33:35]MH_I2C_Read... [15:33:35]*** Stop cut motor [15:33:35]*** Cut end [15:33:35]Read from MH i2c: 01 07 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [15:33:35]process_action close_receipt done [15:33:35]requested_data is exist [15:33:35]produce_requested_data [15:33:35]requested_item fm.sn is exist - process it [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 11 00 00 [15:33:35]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 17 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [15:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:35]wFMCommunicate OK [15:33:35]requested_item fd.num is exist - process it [15:33:35]SAM_PROTO_GetFieldsCounters [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 13 00 00 [15:33:35]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 62 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [15: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:35]wFMCommunicate OK [15:33:35]SAM_PROTO_GetFieldsCounters done [15:33:35]requested_item shift.num is exist - process it [15:33:35]requested_item shift.opened is exist - process it [15:33:35]req_shift_opened [15:33:35]FM_GetShiftState [15:33:35]SAM_PROTO_GetShiftState [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 13 01 00 [15:33:35]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 0E 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [15:33:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:33:35]wFMCommunicate OK [15:33:35]SAM_PROTO_GetShiftState done [15:33:35]FM_GetShiftState done [15:33:35]req_shift_opened done [15:33:35]requested_item shift.open_date is exist - process it [15:33:35]req_shift_open_date [15:33:35]req_shift_open_date done [15:33:35]produce_requested_data done [15:33:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192267,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:33:35]process_action_free close_receipt [15:33:35]json_value_free [15:33:35]json_value_free done [15:33:35]process_json_proto returns [15:33:35]Send response to host [15:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192267,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:33:35]free response buf [15:33:35]execute_script done [15:33:35]execute_script returns [15:33:35]free content buf [15:33:35]Sock 7.Close socket [15:33:35]Sock 7.Thread stoped [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:07]accept exits with 9 [15:34:07]New connection [15:34:07]New thread 3067080036 created [15:34:07]Thread 3066936676 joined [15:34:07]Waiting for new connection... [15:34:07] Sock 9.Parse request [15:34:07]Sock 9.Check first char [15:34:07]Sock 9.First char is OK [15:34:07]request: POST /json_proto HTTP/1.0 [15:34:07]Method: POST [15:34:07]URL: /json_proto [15:34:07]Method is POST - this is cgi request [15:34:07]url: /json_proto [15:34:07]query_string will be loaded in cgi processing [15:34:07]execute_cgi json_proto POST (null) [15:34:07]execute_cgi path=json_proto method=POST [15:34:07]POST find Content-Length [15:34:07]Host: 172.17.63.131:8080 [15:34:07]Content-Length: 678 [15:34:07]Content-Type: application/json [15:34:07] [15:34:07]POST finish read [15:34:07]Found Content-Length = 678 [15:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31582", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:07]execute_script... [15:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31582", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:07]POST & json_proto [15:34:07]process_json_proto [15:34:07]json parsed OK: [15:34:07]protocol is kg_v1.0 [15:34:07]action value=close_receipt [15:34:07]process_action close_receipt [15:34:07]cmd_close_receipt [15:34:07]MH_GetDate [15:34:07]Write to MH i2c: F0 00 00 CD 08 C4 [15:34:07]Write i2c OK [15:34:07]MH_I2C_Read... [15:34:07]Read from MH i2c: F0 [15:34:07]MH_I2C_Read... [15:34:07]Read from MH i2c: F0 09 00 [15:34:07]MH_I2C_Read... [15:34:07]Read from MH i2c: F0 09 00 CD 08 00 70 5D 1E 67 22 05 6E 64 18 [15:34:07]GetLastDocTimeStamp 1730043212 [15:34:07]current date 1730043248 [15:34:07]FM_GetShiftState [15:34:07]SAM_PROTO_GetShiftState [15:34:07]wFMCommunicate request_size=4 [15:34:07]MH_SAM_APDU [15:34:07]CAPDU: 80 13 01 00 [15:34:07]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [15:34:07]Write i2c OK [15:34:07]MH_I2C_Read... [15:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:08]Read from MH i2c: E2 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: E2 0E 00 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 94 [15:34:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:34:08]wFMCommunicate OK [15:34:08]SAM_PROTO_GetShiftState done [15:34:08]FM_GetShiftState done [15:34:08]opened in 1729989159 [15:34:08]opened+sec_in_day 1730075559 [15:34:08]quantity*price = 100050 [15:34:08]sum+1 = 100052 [15:34:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 300 27.10.2024 15:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192268 ФПД: 60535915158295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192268&fm=60535915158295&tin=02508201610067®Number=0000000000091776&sum=100000 [15:34:09]StoreToDocumentArchive [15:34:09]shift 542 fd 192268 [15:34:09]save to /storage/0542/doc_00192268 [15:34:09]save last doc name /storage/0542/doc_00192268 to /storage/kkm_last_doc_name [15:34:09]save OK [15:34:09]Clear old archive folders... [15:34:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:09]tlvbuf is 002D9A00 [15:34:09]SAM_PROTO_ClearQueue [15:34:09]wFMCommunicate request_size=4 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 09 00 00 [15:34:09]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [15:34:09]RAPDU: 90 00 [15:34:09]wFMCommunicate OK [15:34:09]SAM_PROTO_ClearQueue done [15:34:09]KKMCreateOFDPacket [15:34:09]OFDProtocolAddRootSTLVToBuf [15:34:09]FM_MakeSignedData [15:34:09]FM_MakeSignedData [15:34:09]SAM_PROTO_SignData [15:34:09]wFMCommunicate request_size=4 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 0D 01 02 [15:34:09]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [15:34:09]RAPDU: 90 00 [15:34:09]wFMCommunicate OK [15:34:09]wFMCommunicate request_size=255 [15:34:09]MH_SAM_APDU [15:34: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 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 2C 01 00 00 F4 03 04 00 70 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EF 02 00 35 04 06 00 37 0E 9D B8 [15:34:09]Write to MH i2c: E2 02 01 DD 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 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 2C 01 00 00 F4 03 04 00 70 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EF 02 00 35 04 06 00 37 0E 9D B8 00 00 1D [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [15:34:09]RAPDU: 90 00 [15:34:09]wFMCommunicate OK [15:34:09]wFMCommunicate request_size=7 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 0D 02 02 02 1B 17 [15:34:09]Write to MH i2c: E2 0A 00 DE 08 80 0D 02 02 02 00 1B 17 00 00 96 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [15:34:09]RAPDU: 90 00 [15:34:09]wFMCommunicate OK [15:34:09]wFMCommunicate request_size=4 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 0D 03 02 [15:34:09]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 0B 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 0B 00 DF 08 00 38 A1 7A 07 E6 6F CC 77 90 00 55 [15:34:09]RAPDU: 38 A1 7A 07 E6 6F CC 77 90 00 [15:34:09]wFMCommunicate OK [15:34:09]SAM_PROTO_SignData done [15:34:09]FM_MakeSignedData done [15:34:09]CreateOFDProtocolMessage [15:34:09]wFMCommunicate request_size=4 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 11 00 00 [15:34:09]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]OFD Sender: No OFD packet to send [15:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 17 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [15:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:09]wFMCommunicate OK [15:34:09]CreateOFDProtocolMessage done [15:34:09]OFDSenderStorePacket 192268 [15:34:09]StoreOFDPacket docnum=192268 [15:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FF 64 04 01 BA E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 2C 01 00 00 F4 03 04 00 70 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EF 02 00 35 04 06 00 37 0E 9D B8 1B 17 38 A1 7A 07 E6 6F CC 77 [15:34:09]CheckFolder [15:34:09]dirname=/storage/ofd_packets [15:34:09]CheckFolder done [15:34:09]ProducePacketName [15:34:09]name=ofd_packets/00192268 [15:34:09]NVStorageSaveData ofd_packets/00192268 [15:34:09]File name is /storage/ofd_packets/00192268 [15:34:09]Write 298 bytes [15:34:09]NVStorageSaveData done [15:34:09]OFDSenderStorePacket done [15:34:09]KKMCreateOFDPacket done [15:34:09]NVStorageSaveData kkm_last_timestamp [15:34:09]File name is /storage/kkm_last_timestamp [15:34:09]Write 4 bytes [15:34:09]NVStorageSaveData done [15:34:09]ExternCall_PrintAddStr [15:34:09]wPrintStart [15:34:09]Write to MH i2c: 01 00 00 E1 08 E9 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [15:34:09]RasterBufferAndPrint [15:34:09]line Счет N : (1)31582 [15:34:09]line ИНН: 02508201610067 [15:34:09]line Контрольно-Кассовый Чек [15:34:09]line ПРОДАЖА [15:34:09]line ТРК (МРК, ГНК) : 11 [15:34:09]line Товар: 2710194210 [15:34:09]line ДТ-К-5 [15:34:09]line 13.130 * 76.20 [15:34:09]line = 1000.51 [15:34:09]line НДС 12% НСП 1% [15:34:09]line > о реализуемом товаре [15:34:09]line ОКРУГЛЕНИЕ: -0.51 [15:34:09]line ИТОГО: 1000.00 [15:34:09]line Внесено: 1000.00 [15:34:09]line СДАЧА: 0.00 [15:34:09]line НСП 1% : 8.85 [15:34:09]line НДС 12% : 106.25 [15:34:09]line Наличными: 1000.00 [15:34:09]line Безнал.: 0.00 [15:34:09]line Место: АЗС № 170 "Партнер Нефть" [15:34:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:34:09]line СНО: Общий режим [15:34:09]line Чек 300 27.10.2024 15:34 [15:34:09]line Смена: 542 ФФД: 1.0 [15:34:09]line ЗНМ: 0300000110 [15:34:09]line РНМ: 0000000000091776 [15:34:09]line Версия ККМ: 001 [15:34:09]line ФМ: 0000000000871754 [15:34:09]line ФД: 192268 [15:34:09]line ФПД: 60535915158295 [15:34:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192268&fm=60535915158295&tin=02508201610067®Number=0000000000091776&sum=100000 [15:34:10]OFD Sender: Processing packet 192268 [packets to send 75, broken 74] [15:34:10]ProducePacketName [15:34:10]name=ofd_packets/00192268 [15:34:10]OFD Sender: To server: pG, [15:34:10]CommunicateWithHost lk.salyk.kg:30040 [15:34:10]ConnectInit lk.salyk.kg [15:34:10]written 0, free lines is 4095 [15:34:10]Connected sock=10 [15:34:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FF 64 04 01 BA E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 2C 01 00 00 F4 03 04 00 70 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EF 02 00 35 04 06 00 37 0E 9D B8 1B 17 38 A1 7A 07 E6 6F CC 77 [15:34:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D9 F3 47 00 F9 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C EF 02 00 F4 03 04 00 37 02 1E 67 B6 04 01 00 00 CE 87 5F 9A C5 AB 20 75 [15:34:10]CommunicateWithHost err = 0 [15:34:10]CheckOFDResponse [15:34:10]1017 (14) - 77093643461234 [15:34:10]1041 (16) - 0000000000871754 [15:34:10]1040 (4) - 192268 [15:34:10]1012 (4) - 27.10.2024 09:04 [15:34:10]1206 (1) - 0 [15:34:10]OFD Sender: Remove packet 192268 [15:34:10]ProducePacketName [15:34:10]name=ofd_packets/00192268 [15:34:10]NVStorageDeleteData [15:34:10]Write to MH i2c: 01 00 00 0C 09 15 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 07 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 AE 0C D6 [15:34:10]RasterBufferAndPrint [15:34:10]line [15:34:10]line [15:34:10]line [15:34:10]line [15:34:10]line [15:34:10]written 0, free lines is 3253 [15:34:10]MH_Cut [15:34:10]Write to MH i2c: D1 01 00 13 09 01 EE [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: D1 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: D1 01 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: D1 01 00 13 09 00 ED [15:34:10]Write to MH i2c: 01 00 00 14 09 1D [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]OFD Sender: No OFD packet to send [15:34:11]*** Cut start [15:34:11]*** Partial cut [15:34:11]*** CUTSNS_PIN = 1 [15:34:11]*** CUTSNS_PIN = 0 [15:34:11]*** Brake cut motor [15:34:11]Read from MH i2c: 01 [15:34:11]MH_I2C_Read... [15:34:11]*** Stop cut motor [15:34:11]*** Cut end [15:34:11]Read from MH i2c: 01 07 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [15:34:11]process_action close_receipt done [15:34:11]requested_data is exist [15:34:11]produce_requested_data [15:34:11]requested_item fm.sn is exist - process it [15:34:11]wFMCommunicate request_size=4 [15:34:11]MH_SAM_APDU [15:34:11]CAPDU: 80 11 00 00 [15:34:11]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:12]Read from MH i2c: E2 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 17 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [15:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:12]wFMCommunicate OK [15:34:12]requested_item fd.num is exist - process it [15:34:12]SAM_PROTO_GetFieldsCounters [15:34:12]wFMCommunicate request_size=4 [15:34:12]MH_SAM_APDU [15:34:12]CAPDU: 80 13 00 00 [15:34:12]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:12]Read from MH i2c: E2 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 62 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 62 00 16 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [15:34:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:12]wFMCommunicate OK [15:34:12]SAM_PROTO_GetFieldsCounters done [15:34:12]requested_item shift.num is exist - process it [15:34:12]requested_item shift.opened is exist - process it [15:34:12]req_shift_opened [15:34:12]FM_GetShiftState [15:34:12]SAM_PROTO_GetShiftState [15:34:12]wFMCommunicate request_size=4 [15:34:12]MH_SAM_APDU [15:34:12]CAPDU: 80 13 01 00 [15:34:12]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [15:34:12]Write i2c OK [15:34:12]MH_I2C_Read... [15:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:12]Read from MH i2c: E2 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 [15:34:12]MH_I2C_Read... [15:34:12]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [15:34:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:34:12]wFMCommunicate OK [15:34:12]SAM_PROTO_GetShiftState done [15:34:12]FM_GetShiftState done [15:34:12]req_shift_opened done [15:34:12]requested_item shift.open_date is exist - process it [15:34:12]req_shift_open_date [15:34:12]req_shift_open_date done [15:34:12]produce_requested_data done [15:34:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192268,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:34:12]process_action_free close_receipt [15:34:12]json_value_free [15:34:12]json_value_free done [15:34:12]process_json_proto returns [15:34:12]Send response to host [15:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192268,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:34:12]free response buf [15:34:12]execute_script done [15:34:12]execute_script returns [15:34:12]free content buf [15:34:12]Sock 9.Close socket [15:34:12]Sock 9.Thread stoped [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:34:56]accept exits with 7 [15:34:56]New connection [15:34:56]New thread 3066936676 created [15:34:56]Thread 3067080036 joined [15:34:56]Waiting for new connection... [15:34:56] Sock 7.Parse request [15:34:56]Sock 7.Check first char [15:34:56]Sock 7.First char is OK [15:34:56]request: POST /json_proto HTTP/1.0 [15:34:56]Method: POST [15:34:56]URL: /json_proto [15:34:56]Method is POST - this is cgi request [15:34:56]url: /json_proto [15:34:56]query_string will be loaded in cgi processing [15:34:56]execute_cgi json_proto POST (null) [15:34:56]execute_cgi path=json_proto method=POST [15:34:56]POST find Content-Length [15:34:56]Host: 172.17.63.131:8080 [15:34:56]Content-Length: 676 [15:34:56]Content-Type: application/json [15:34:56] [15:34:56]POST finish read [15:34:56]Found Content-Length = 676 [15:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:56]execute_script... [15:34:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:56]POST & json_proto [15:34:56]process_json_proto [15:34:56]json parsed OK: [15:34:56]protocol is kg_v1.0 [15:34:56]action value=close_receipt [15:34:56]process_action close_receipt [15:34:56]cmd_close_receipt [15:34:56]MH_GetDate [15:34:56]Write to MH i2c: F0 00 00 18 09 10 [15:34:56]Write i2c OK [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: F0 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: F0 09 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: F0 09 00 18 09 00 A1 5D 1E 67 22 05 6E 64 95 [15:34:56]GetLastDocTimeStamp 1730043248 [15:34:56]current date 1730043297 [15:34:56]FM_GetShiftState [15:34:56]SAM_PROTO_GetShiftState [15:34:56]wFMCommunicate request_size=4 [15:34:56]MH_SAM_APDU [15:34:56]CAPDU: 80 13 01 00 [15:34:56]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [15:34:56]Write i2c OK [15:34:56]MH_I2C_Read... [15:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:56]Read from MH i2c: E2 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 0E 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [15:34:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:34:56]wFMCommunicate OK [15:34:56]SAM_PROTO_GetShiftState done [15:34:56]FM_GetShiftState done [15:34:56]opened in 1729989159 [15:34:56]opened+sec_in_day 1730075559 [15:34:56]quantity*price = 50041 [15:34:56]sum+1 = 50042 [15:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 301 27.10.2024 15:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192269 ФПД: 60540078841397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192269&fm=60540078841397&tin=02508201610067®Number=0000000000091776&sum=50000 [15:34:57]StoreToDocumentArchive [15:34:57]shift 542 fd 192269 [15:34:57]save to /storage/0542/doc_00192269 [15:34:57]save last doc name /storage/0542/doc_00192269 to /storage/kkm_last_doc_name [15:34:57]save OK [15:34:57]Clear old archive folders... [15:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:57]tlvbuf is 002BBB10 [15:34:57]SAM_PROTO_ClearQueue [15:34:57]wFMCommunicate request_size=4 [15:34:57]MH_SAM_APDU [15:34:57]CAPDU: 80 09 00 00 [15:34:57]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [15:34:57]Write i2c OK [15:34:57]MH_I2C_Read... [15:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:57]Read from MH i2c: E2 [15:34:57]MH_I2C_Read... [15:34:57]Read from MH i2c: E2 03 00 [15:34:57]MH_I2C_Read... [15:34:57]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [15:34:57]RAPDU: 90 00 [15:34:57]wFMCommunicate OK [15:34:57]SAM_PROTO_ClearQueue done [15:34:57]KKMCreateOFDPacket [15:34:57]OFDProtocolAddRootSTLVToBuf [15:34:57]FM_MakeSignedData [15:34:57]FM_MakeSignedData [15:34:57]SAM_PROTO_SignData [15:34:57]wFMCommunicate request_size=4 [15:34:57]MH_SAM_APDU [15:34:57]CAPDU: 80 0D 01 02 [15:34:57]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [15:34:57]Write i2c OK [15:34:57]MH_I2C_Read... [15:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:57]Read from MH i2c: E2 [15:34:57]MH_I2C_Read... [15:34:57]Read from MH i2c: E2 03 00 [15:34:57]MH_I2C_Read... [15:34:57]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [15:34:57]RAPDU: 90 00 [15:34:57]wFMCommunicate OK [15:34:57]wFMCommunicate request_size=255 [15:34:57]MH_SAM_APDU [15:34:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A1 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EF 02 00 35 04 06 00 37 [15:34:57]Write to MH i2c: E2 02 01 28 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A1 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EF 02 00 35 04 06 00 37 00 00 43 [15:34:58]Write i2c OK [15:34:58]MH_I2C_Read... [15:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:58]Read from MH i2c: E2 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 03 00 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [15:34:58]RAPDU: 90 00 [15:34:58]wFMCommunicate OK [15:34:58]wFMCommunicate request_size=10 [15:34:58]MH_SAM_APDU [15:34:58]CAPDU: 80 0D 02 02 05 0F 95 E4 DE 35 [15:34:58]Write to MH i2c: E2 0D 00 29 09 80 0D 02 02 05 00 0F 95 E4 DE 35 00 00 51 [15:34:58]Write i2c OK [15:34:58]MH_I2C_Read... [15:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:58]Read from MH i2c: E2 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 03 00 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [15:34:58]RAPDU: 90 00 [15:34:58]wFMCommunicate OK [15:34:58]wFMCommunicate request_size=4 [15:34:58]MH_SAM_APDU [15:34:58]CAPDU: 80 0D 03 02 [15:34:58]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [15:34:58]Write i2c OK [15:34:58]MH_I2C_Read... [15:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:58]Read from MH i2c: E2 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 0B 00 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 0B 00 2A 09 00 C0 6A 43 58 22 03 3F E6 90 00 BE [15:34:58]RAPDU: C0 6A 43 58 22 03 3F E6 90 00 [15:34:58]wFMCommunicate OK [15:34:58]SAM_PROTO_SignData done [15:34:58]FM_MakeSignedData done [15:34:58]CreateOFDProtocolMessage [15:34:58]wFMCommunicate request_size=4 [15:34:58]MH_SAM_APDU [15:34:58]CAPDU: 80 11 00 00 [15:34:58]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [15:34:58]Write i2c OK [15:34:58]MH_I2C_Read... [15:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:58]Read from MH i2c: E2 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 17 00 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [15:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:58]wFMCommunicate OK [15:34:58]CreateOFDProtocolMessage done [15:34:58]OFDSenderStorePacket 192269 [15:34:58]StoreOFDPacket docnum=192269 [15:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 16 07 01 2F E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A1 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EF 02 00 35 04 06 00 37 0F 95 E4 DE 35 C0 6A 43 58 22 03 3F E6 [15:34:58]CheckFolder [15:34:58]dirname=/storage/ofd_packets [15:34:58]CheckFolder done [15:34:58]ProducePacketName [15:34:58]name=ofd_packets/00192269 [15:34:58]NVStorageSaveData ofd_packets/00192269 [15:34:58]File name is /storage/ofd_packets/00192269 [15:34:58]Write 301 bytes [15:34:58]NVStorageSaveData done [15:34:58]OFDSenderStorePacket done [15:34:58]KKMCreateOFDPacket done [15:34:58]NVStorageSaveData kkm_last_timestamp [15:34:58]File name is /storage/kkm_last_timestamp [15:34:58]Write 4 bytes [15:34:58]NVStorageSaveData done [15:34:58]ExternCall_PrintAddStr [15:34:58]wPrintStart [15:34:58]Write to MH i2c: 01 00 00 2C 09 35 [15:34:58]Write i2c OK [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: 01 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: 01 07 00 [15:34:58]MH_I2C_Read... [15:34:58]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [15:34:58]RasterBufferAndPrint [15:34:58]line Счет N : (1)31583 [15:34:58]line ИНН: 02508201610067 [15:34:58]line Контрольно-Кассовый Чек [15:34:58]line ПРОДАЖА [15:34:58]line ТРК (МРК, ГНК) : 21 [15:34:58]line Товар: 2710124130 [15:34:58]line Аи-92-К-5 [15:34:58]line 7.480 * 66.90 [15:34:58]line = 500.41 [15:34:58]line НДС 12% НСП 1% [15:34:58]line > о реализуемом товаре [15:34:58]line ОКРУГЛЕНИЕ: -0.41 [15:34:58]line ИТОГО: 500.00 [15:34:58]line Внесено: 500.00 [15:34:58]line СДАЧА: 0.00 [15:34:58]line НСП 1% : 4.43 [15:34:58]line НДС 12% : 53.14 [15:34:58]line Наличными: 500.00 [15:34:58]line Безнал.: 0.00 [15:34:58]line Место: АЗС № 170 "Партнер Нефть" [15:34:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:34:58]line СНО: Общий режим [15:34:58]line Чек 301 27.10.2024 15:34 [15:34:58]line Смена: 542 ФФД: 1.0 [15:34:58]line ЗНМ: 0300000110 [15:34:58]line РНМ: 0000000000091776 [15:34:58]line Версия ККМ: 001 [15:34:58]line ФМ: 0000000000871754 [15:34:58]line ФД: 192269 [15:34:58]line ФПД: 60540078841397 [15:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192269&fm=60540078841397&tin=02508201610067®Number=0000000000091776&sum=50000 [15:34:58]OFD Sender: Processing packet 192269 [packets to send 75, broken 74] [15:34:58]ProducePacketName [15:34:58]name=ofd_packets/00192269 [15:34:58]OFD Sender: To server: pG, [15:34:58]CommunicateWithHost lk.salyk.kg:30040 [15:34:58]ConnectInit lk.salyk.kg [15:34:58]written 0, free lines is 4095 [15:34:58]Connected sock=10 [15:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 16 07 01 2F E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A1 5D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EF 02 00 35 04 06 00 37 0F 95 E4 DE 35 C0 6A 43 58 22 03 3F E6 [15:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 56 47 00 05 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D EF 02 00 F4 03 04 00 68 02 1E 67 B6 04 01 00 00 CC 38 A9 EF 19 2F 78 A1 [15:34:59]CommunicateWithHost err = 0 [15:34:59]CheckOFDResponse [15:34:59]1017 (14) - 77093643461234 [15:34:59]1041 (16) - 0000000000871754 [15:34:59]1040 (4) - 192269 [15:34:59]1012 (4) - 27.10.2024 09:05 [15:34:59]1206 (1) - 0 [15:34:59]OFD Sender: Remove packet 192269 [15:34:59]ProducePacketName [15:34:59]name=ofd_packets/00192269 [15:34:59]NVStorageDeleteData [15:34:59]Write to MH i2c: 01 00 00 57 09 60 [15:34:59]Write i2c OK [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: 01 [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: 01 07 00 [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 A3 0C 16 [15:34:59]RasterBufferAndPrint [15:34:59]line [15:34:59]line [15:34:59]line [15:34:59]line [15:34:59]line [15:34:59]written 0, free lines is 3241 [15:34:59]MH_Cut [15:34:59]Write to MH i2c: D1 01 00 5E 09 01 39 [15:34:59]Write i2c OK [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: D1 [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: D1 01 00 [15:34:59]MH_I2C_Read... [15:34:59]Read from MH i2c: D1 01 00 5E 09 00 38 [15:34:59]Write to MH i2c: 01 00 00 5F 09 68 [15:34:59]Write i2c OK [15:34:59]MH_I2C_Read... [15:34:59]OFD Sender: No OFD packet to send [15:35:00]*** Cut start [15:35:00]*** Partial cut [15:35:00]*** CUTSNS_PIN = 1 [15:35:00]*** CUTSNS_PIN = 0 [15:35:00]*** Brake cut motor [15:35:00]Read from MH i2c: 01 [15:35:00]MH_I2C_Read... [15:35:00]*** Stop cut motor [15:35:00]*** Cut end [15:35:00]Read from MH i2c: 01 07 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [15:35:00]process_action close_receipt done [15:35:00]requested_data is exist [15:35:00]produce_requested_data [15:35:00]requested_item fm.sn is exist - process it [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 11 00 00 [15:35:00]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 17 00 [15:35:00]MH_I2C_Read... [15:35: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 37 35 34 90 00 36 [15:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:35:00]wFMCommunicate OK [15:35:00]requested_item fd.num is exist - process it [15:35:00]SAM_PROTO_GetFieldsCounters [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 13 00 00 [15:35:00]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 62 00 [15:35:00]MH_I2C_Read... [15:35: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:00]wFMCommunicate OK [15:35:00]SAM_PROTO_GetFieldsCounters done [15:35:00]requested_item shift.num is exist - process it [15:35:00]requested_item shift.opened is exist - process it [15:35:00]req_shift_opened [15:35:00]FM_GetShiftState [15:35:00]SAM_PROTO_GetShiftState [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 13 01 00 [15:35:00]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [15:35:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:35:00]wFMCommunicate OK [15:35:00]SAM_PROTO_GetShiftState done [15:35:00]FM_GetShiftState done [15:35:00]req_shift_opened done [15:35:00]requested_item shift.open_date is exist - process it [15:35:00]req_shift_open_date [15:35:00]req_shift_open_date done [15:35:00]produce_requested_data done [15:35:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192269,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:35:00]process_action_free close_receipt [15:35:00]json_value_free [15:35:00]json_value_free done [15:35:00]process_json_proto returns [15:35:00]Send response to host [15:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192269,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:35:00]free response buf [15:35:00]execute_script done [15:35:00]execute_script returns [15:35:00]free content buf [15:35:00]Sock 7.Close socket [15:35:00]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [15:36:42]accept exits with 9 [15:36:42]New connection [15:36:42]New thread 3067080036 created [15:36:42]Thread 3066936676 joined [15:36:42]Waiting for new connection... [15:36:42] Sock 9.Parse request [15:36:42]Sock 9.Check first char [15:36:42]Sock 9.First char is OK [15:36:42]request: POST /json_proto HTTP/1.0 [15:36:42]Method: POST [15:36:42]URL: /json_proto [15:36:42]Method is POST - this is cgi request [15:36:42]url: /json_proto [15:36:42]query_string will be loaded in cgi processing [15:36:42]execute_cgi json_proto POST (null) [15:36:42]execute_cgi path=json_proto method=POST [15:36:42]POST find Content-Length [15:36:42]Host: 172.17.63.131:8080 [15:36:42]Content-Length: 678 [15:36:42]Content-Type: application/json [15:36:42] [15:36:42]POST finish read [15:36:42]Found Content-Length = 678 [15:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31584", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:42]execute_script... [15:36:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31584", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:42]POST & json_proto [15:36:42]process_json_proto [15:36:42]json parsed OK: [15:36:42]protocol is kg_v1.0 [15:36:42]action value=close_receipt [15:36:42]process_action close_receipt [15:36:42]cmd_close_receipt [15:36:42]MH_GetDate [15:36:42]Write to MH i2c: F0 00 00 63 09 5B [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: F0 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: F0 09 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: F0 09 00 63 09 00 0A 5E 1E 67 22 05 6E 64 4A [15:36:42]GetLastDocTimeStamp 1730043297 [15:36:42]current date 1730043402 [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 64 09 80 13 01 00 00 00 00 00 EA [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 64 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2B [15:36:42]RAPDU: 09 00 01 27 8A 1D 67 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]opened in 1729989159 [15:36:42]opened+sec_in_day 1730075559 [15:36:42]quantity*price = 200025 [15:36:42]sum+1 = 200026 [15:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 302 27.10.2024 15:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192270 ФПД: 196353422375001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192270&fm=196353422375001&tin=02508201610067®Number=0000000000091776&sum=200000 [15:36:43]StoreToDocumentArchive [15:36:43]shift 542 fd 192270 [15:36:43]save to /storage/0542/doc_00192270 [15:36:43]save last doc name /storage/0542/doc_00192270 to /storage/kkm_last_doc_name [15:36:43]save OK [15:36:43]Clear old archive folders... [15:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:43]tlvbuf is 002A1C70 [15:36:43]SAM_PROTO_ClearQueue [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 09 00 00 [15:36:43]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [15:36:43]RAPDU: 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_ClearQueue done [15:36:43]KKMCreateOFDPacket [15:36:43]OFDProtocolAddRootSTLVToBuf [15:36:43]FM_MakeSignedData [15:36:43]FM_MakeSignedData [15:36:43]SAM_PROTO_SignData [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 0D 01 02 [15:36:43]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [15:36:43]RAPDU: 90 00 [15:36:43]wFMCommunicate OK [15:36:43]wFMCommunicate request_size=255 [15:36:43]MH_SAM_APDU [15:36: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 0B 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EF 02 00 35 04 06 00 B2 95 17 FD [15:36:43]Write to MH i2c: E2 02 01 73 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 0B 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EF 02 00 35 04 06 00 B2 95 17 FD 00 00 03 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [15:36:44]RAPDU: 90 00 [15:36:44]wFMCommunicate OK [15:36:44]wFMCommunicate request_size=7 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 0D 02 02 02 B8 59 [15:36:44]Write to MH i2c: E2 0A 00 74 09 80 0D 02 02 02 00 B8 59 00 00 0C [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [15:36:44]RAPDU: 90 00 [15:36:44]wFMCommunicate OK [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 0D 03 02 [15:36:44]Write to MH i2c: E2 08 00 75 09 80 0D 03 02 00 00 00 00 F9 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 0B 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 0B 00 75 09 00 96 16 1F EE F9 19 01 1F 90 00 E5 [15:36:44]RAPDU: 96 16 1F EE F9 19 01 1F 90 00 [15:36:44]wFMCommunicate OK [15:36:44]SAM_PROTO_SignData done [15:36:44]FM_MakeSignedData done [15:36:44]CreateOFDProtocolMessage [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 11 00 00 [15:36:44]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [15:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:44]wFMCommunicate OK [15:36:44]CreateOFDProtocolMessage done [15:36:44]OFDSenderStorePacket 192270 [15:36:44]StoreOFDPacket docnum=192270 [15:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 74 9B 04 01 A1 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 0B 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EF 02 00 35 04 06 00 B2 95 17 FD B8 59 96 16 1F EE F9 19 01 1F [15:36:44]CheckFolder [15:36:44]dirname=/storage/ofd_packets [15:36:44]CheckFolder done [15:36:44]ProducePacketName [15:36:44]name=ofd_packets/00192270 [15:36:44]NVStorageSaveData ofd_packets/00192270 [15:36:44]File name is /storage/ofd_packets/00192270 [15:36:44]Write 298 bytes [15:36:44]NVStorageSaveData done [15:36:44]OFDSenderStorePacket done [15:36:44]KKMCreateOFDPacket done [15:36:44]NVStorageSaveData kkm_last_timestamp [15:36:44]File name is /storage/kkm_last_timestamp [15:36:44]Write 4 bytes [15:36:44]NVStorageSaveData done [15:36:44]ExternCall_PrintAddStr [15:36:44]wPrintStart [15:36:44]Write to MH i2c: 01 00 00 77 09 80 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [15:36:44]RasterBufferAndPrint [15:36:44]line Счет N : (1)31584 [15:36:44]line ИНН: 02508201610067 [15:36:44]line Контрольно-Кассовый Чек [15:36:44]line ПРОДАЖА [15:36:44]line ТРК (МРК, ГНК) : 11 [15:36:44]line Товар: 2710194210 [15:36:44]line ДТ-К-5 [15:36:44]line 26.250 * 76.20 [15:36:44]line = 2000.25 [15:36:44]line НДС 12% НСП 1% [15:36:44]line > о реализуемом товаре [15:36:44]line ОКРУГЛЕНИЕ: -0.25 [15:36:44]line ИТОГО: 2000.00 [15:36:44]line Внесено: 2000.00 [15:36:44]line СДАЧА: 0.00 [15:36:44]line НСП 1% : 17.70 [15:36:44]line НДС 12% : 212.42 [15:36:44]line Наличными: 2000.00 [15:36:44]line Безнал.: 0.00 [15:36:44]line Место: АЗС № 170 "Партнер Нефть" [15:36:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:36:44]line СНО: Общий режим [15:36:44]line Чек 302 27.10.2024 15:36 [15:36:44]line Смена: 542 ФФД: 1.0 [15:36:44]line ЗНМ: 0300000110 [15:36:44]line РНМ: 0000000000091776 [15:36:44]line Версия ККМ: 001 [15:36:44]line ФМ: 0000000000871754 [15:36:44]line ФД: 192270 [15:36:44]line ФПД: 196353422375001 [15:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192270&fm=196353422375001&tin=02508201610067®Number=0000000000091776&sum=200000 [15:36:44]written 0, free lines is 4095 [15:36:44]OFD Sender: Processing packet 192270 [packets to send 75, broken 74] [15:36:44]ProducePacketName [15:36:44]name=ofd_packets/00192270 [15:36:44]OFD Sender: To server: pG, [15:36:44]CommunicateWithHost lk.salyk.kg:30040 [15:36:44]ConnectInit lk.salyk.kg [15:36:44]Connected sock=10 [15:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 74 9B 04 01 A1 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 0B 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EF 02 00 35 04 06 00 B2 95 17 FD B8 59 96 16 1F EE F9 19 01 1F [15:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7B A4 47 00 D4 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E EF 02 00 F4 03 04 00 D2 02 1E 67 B6 04 01 00 00 7A CD 07 36 00 FA BC AB [15:36:44]CommunicateWithHost err = 0 [15:36:44]CheckOFDResponse [15:36:44]1017 (14) - 77093643461234 [15:36:44]1041 (16) - 0000000000871754 [15:36:44]1040 (4) - 192270 [15:36:44]1012 (4) - 27.10.2024 09:07 [15:36:44]1206 (1) - 0 [15:36:44]OFD Sender: Remove packet 192270 [15:36:44]ProducePacketName [15:36:44]name=ofd_packets/00192270 [15:36:44]NVStorageDeleteData [15:36:45]Write to MH i2c: 01 00 00 A2 09 AB [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 07 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 AA 0C 68 [15:36:45]RasterBufferAndPrint [15:36:45]line [15:36:45]line [15:36:45]line [15:36:45]line [15:36:45]line [15:36:45]written 0, free lines is 3248 [15:36:45]MH_Cut [15:36:45]Write to MH i2c: D1 01 00 A9 09 01 84 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: D1 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: D1 01 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: D1 01 00 A9 09 00 83 [15:36:45]Write to MH i2c: 01 00 00 AA 09 B3 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]OFD Sender: No OFD packet to send [15:36:45]*** Cut start [15:36:45]*** Partial cut [15:36:45]*** CUTSNS_PIN = 1 [15:36:45]*** CUTSNS_PIN = 0 [15:36:46]*** Brake cut motor [15:36:46]Read from MH i2c: 01 [15:36:46]MH_I2C_Read... [15:36:46]*** Stop cut motor [15:36:46]*** Cut end [15:36:46]Read from MH i2c: 01 07 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [15:36:46]process_action close_receipt done [15:36:46]requested_data is exist [15:36:46]produce_requested_data [15:36:46]requested_item fm.sn is exist - process it [15:36:46]wFMCommunicate request_size=4 [15:36:46]MH_SAM_APDU [15:36:46]CAPDU: 80 11 00 00 [15:36:46]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:46]Read from MH i2c: E2 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 17 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [15:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:46]wFMCommunicate OK [15:36:46]requested_item fd.num is exist - process it [15:36:46]SAM_PROTO_GetFieldsCounters [15:36:46]wFMCommunicate request_size=4 [15:36:46]MH_SAM_APDU [15:36:46]CAPDU: 80 13 00 00 [15:36:46]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:46]Read from MH i2c: E2 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 62 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 62 00 AC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:46]wFMCommunicate OK [15:36:46]SAM_PROTO_GetFieldsCounters done [15:36:46]requested_item shift.num is exist - process it [15:36:46]requested_item shift.opened is exist - process it [15:36:46]req_shift_opened [15:36:46]FM_GetShiftState [15:36:46]SAM_PROTO_GetShiftState [15:36:46]wFMCommunicate request_size=4 [15:36:46]MH_SAM_APDU [15:36:46]CAPDU: 80 13 01 00 [15:36:46]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:46]Read from MH i2c: E2 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 0E 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [15:36:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:36:46]wFMCommunicate OK [15:36:46]SAM_PROTO_GetShiftState done [15:36:46]FM_GetShiftState done [15:36:46]req_shift_opened done [15:36:46]requested_item shift.open_date is exist - process it [15:36:46]req_shift_open_date [15:36:46]req_shift_open_date done [15:36:46]produce_requested_data done [15:36:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192270,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:36:46]process_action_free close_receipt [15:36:46]json_value_free [15:36:46]json_value_free done [15:36:46]process_json_proto returns [15:36:46]Send response to host [15:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192270,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:36:46]free response buf [15:36:46]execute_script done [15:36:46]execute_script returns [15:36:46]free content buf [15:36:46]Sock 9.Close socket [15:36:46]Sock 9.Thread stoped [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:38]accept exits with 7 [15:38:38]New connection [15:38:38]New thread 3066936676 created [15:38:38]Thread 3067080036 joined [15:38:38]Waiting for new connection... [15:38:38] Sock 7.Parse request [15:38:38]Sock 7.Check first char [15:38:38]Sock 7.First char is OK [15:38:38]request: POST /json_proto HTTP/1.0 [15:38:38]Method: POST [15:38:38]URL: /json_proto [15:38:38]Method is POST - this is cgi request [15:38:38]url: /json_proto [15:38:38]query_string will be loaded in cgi processing [15:38:38]execute_cgi json_proto POST (null) [15:38:38]execute_cgi path=json_proto method=POST [15:38:38]POST find Content-Length [15:38:38]Host: 172.17.63.131:8080 [15:38:38]Content-Length: 678 [15:38:38]Content-Type: application/json [15:38:38] [15:38:38]POST finish read [15:38:38]Found Content-Length = 678 [15:38:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31585", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:38]execute_script... [15:38:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31585", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:38]POST & json_proto [15:38:38]process_json_proto [15:38:38]json parsed OK: [15:38:38]protocol is kg_v1.0 [15:38:38]action value=close_receipt [15:38:38]process_action close_receipt [15:38:38]cmd_close_receipt [15:38:38]MH_GetDate [15:38:38]Write to MH i2c: F0 00 00 AE 09 A6 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: F0 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: F0 09 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: F0 09 00 AE 09 00 7F 5E 1E 67 22 05 6E 64 0A [15:38:38]GetLastDocTimeStamp 1730043403 [15:38:38]current date 1730043519 [15:38:38]FM_GetShiftState [15:38:38]SAM_PROTO_GetShiftState [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 13 01 00 [15:38:38]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 0E 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 76 [15:38:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:38:38]wFMCommunicate OK [15:38:38]SAM_PROTO_GetShiftState done [15:38:38]FM_GetShiftState done [15:38:38]opened in 1729989159 [15:38:38]opened+sec_in_day 1730075559 [15:38:38]quantity*price = 100050 [15:38:38]sum+1 = 100052 [15:38:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 303 27.10.2024 15:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192271 ФПД: 153621681177973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192271&fm=153621681177973&tin=02508201610067®Number=0000000000091776&sum=100000 [15:38:39]StoreToDocumentArchive [15:38:39]shift 542 fd 192271 [15:38:39]save to /storage/0542/doc_00192271 [15:38:39]save last doc name /storage/0542/doc_00192271 to /storage/kkm_last_doc_name [15:38:39]save OK [15:38:39]Clear old archive folders... [15:38:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:38:39]tlvbuf is 002BCE10 [15:38:39]SAM_PROTO_ClearQueue [15:38:39]wFMCommunicate request_size=4 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 09 00 00 [15:38:39]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [15:38:39]RAPDU: 90 00 [15:38:39]wFMCommunicate OK [15:38:39]SAM_PROTO_ClearQueue done [15:38:39]KKMCreateOFDPacket [15:38:39]OFDProtocolAddRootSTLVToBuf [15:38:39]FM_MakeSignedData [15:38:39]FM_MakeSignedData [15:38:39]SAM_PROTO_SignData [15:38:39]wFMCommunicate request_size=4 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 0D 01 02 [15:38:39]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [15:38:39]RAPDU: 90 00 [15:38:39]wFMCommunicate OK [15:38:39]wFMCommunicate request_size=255 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7F 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EF 02 00 35 04 06 00 8B B7 D5 BC [15:38:39]Write to MH i2c: E2 02 01 BE 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7F 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EF 02 00 35 04 06 00 8B B7 D5 BC 00 00 4E [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]wFMCommunicate request_size=7 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 02 02 02 85 75 [15:38:40]Write to MH i2c: E2 0A 00 BF 09 80 0D 02 02 02 00 85 75 00 00 40 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 03 02 [15:38:40]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0B 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0B 00 C0 09 00 03 57 6C 2B 57 2B BE 17 90 00 8D [15:38:40]RAPDU: 03 57 6C 2B 57 2B BE 17 90 00 [15:38:40]wFMCommunicate OK [15:38:40]SAM_PROTO_SignData done [15:38:40]FM_MakeSignedData done [15:38:40]CreateOFDProtocolMessage [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 11 00 00 [15:38:40]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 17 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [15:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:38:40]wFMCommunicate OK [15:38:40]CreateOFDProtocolMessage done [15:38:40]OFDSenderStorePacket 192271 [15:38:40]StoreOFDPacket docnum=192271 [15:38:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A6 04 04 01 2A 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7F 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EF 02 00 35 04 06 00 8B B7 D5 BC 85 75 03 57 6C 2B 57 2B BE 17 [15:38:40]CheckFolder [15:38:40]dirname=/storage/ofd_packets [15:38:40]CheckFolder done [15:38:40]ProducePacketName [15:38:40]name=ofd_packets/00192271 [15:38:40]NVStorageSaveData ofd_packets/00192271 [15:38:40]File name is /storage/ofd_packets/00192271 [15:38:40]Write 298 bytes [15:38:40]NVStorageSaveData done [15:38:40]OFDSenderStorePacket done [15:38:40]KKMCreateOFDPacket done [15:38:40]NVStorageSaveData kkm_last_timestamp [15:38:40]File name is /storage/kkm_last_timestamp [15:38:40]Write 4 bytes [15:38:40]NVStorageSaveData done [15:38:40]ExternCall_PrintAddStr [15:38:40]wPrintStart [15:38:40]Write to MH i2c: 01 00 00 C2 09 CB [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 07 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [15:38:40]RasterBufferAndPrint [15:38:40]line Счет N : (1)31585 [15:38:40]line ИНН: 02508201610067 [15:38:40]line Контрольно-Кассовый Чек [15:38:40]line ПРОДАЖА [15:38:40]line ТРК (МРК, ГНК) : 11 [15:38:40]line Товар: 2710194210 [15:38:40]line ДТ-К-5 [15:38:40]line 13.130 * 76.20 [15:38:40]line = 1000.51 [15:38:40]line НДС 12% НСП 1% [15:38:40]line > о реализуемом товаре [15:38:40]line ОКРУГЛЕНИЕ: -0.51 [15:38:40]line ИТОГО: 1000.00 [15:38:40]line Внесено: 1000.00 [15:38:40]line СДАЧА: 0.00 [15:38:40]line НСП 1% : 8.85 [15:38:40]line НДС 12% : 106.25 [15:38:40]line Наличными: 1000.00 [15:38:40]line Безнал.: 0.00 [15:38:40]line Место: АЗС № 170 "Партнер Нефть" [15:38:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:38:40]line СНО: Общий режим [15:38:40]line Чек 303 27.10.2024 15:38 [15:38:40]line Смена: 542 ФФД: 1.0 [15:38:40]line ЗНМ: 0300000110 [15:38:40]line РНМ: 0000000000091776 [15:38:40]line Версия ККМ: 001 [15:38:40]line ФМ: 0000000000871754 [15:38:40]line ФД: 192271 [15:38:40]line ФПД: 153621681177973 [15:38:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192271&fm=153621681177973&tin=02508201610067®Number=0000000000091776&sum=100000 [15:38:40]OFD Sender: Processing packet 192271 [packets to send 75, broken 74] [15:38:40]ProducePacketName [15:38:40]name=ofd_packets/00192271 [15:38:40]OFD Sender: To server: pG, [15:38:40]CommunicateWithHost lk.salyk.kg:30040 [15:38:40]ConnectInit lk.salyk.kg [15:38:40]written 0, free lines is 4095 [15:38:40]Connected sock=10 [15:38:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A6 04 04 01 2A 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7F 5E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EF 02 00 35 04 06 00 8B B7 D5 BC 85 75 03 57 6C 2B 57 2B BE 17 [15:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC CA 47 00 7E F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F EF 02 00 F4 03 04 00 46 03 1E 67 B6 04 01 00 00 4D 7F 8B 09 85 0B 5C 11 [15:38:41]CommunicateWithHost err = 0 [15:38:41]CheckOFDResponse [15:38:41]1017 (14) - 77093643461234 [15:38:41]1041 (16) - 0000000000871754 [15:38:41]1040 (4) - 192271 [15:38:41]1012 (4) - 27.10.2024 09:09 [15:38:41]1206 (1) - 0 [15:38:41]OFD Sender: Remove packet 192271 [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00192271 [15:38:41]NVStorageDeleteData [15:38:41]Write to MH i2c: 01 00 00 ED 09 F6 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 9D 0C A6 [15:38:41]RasterBufferAndPrint [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]written 0, free lines is 3237 [15:38:41]MH_Cut [15:38:41]Write to MH i2c: D1 01 00 F4 09 01 CF [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 01 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 01 00 F4 09 00 CE [15:38:41]Write to MH i2c: 01 00 00 F5 09 FE [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]OFD Sender: No OFD packet to send [15:38:42]*** Cut start [15:38:42]*** Partial cut [15:38:42]*** CUTSNS_PIN = 1 [15:38:42]*** CUTSNS_PIN = 0 [15:38:42]*** Brake cut motor [15:38:42]Read from MH i2c: 01 [15:38:42]MH_I2C_Read... [15:38:42]*** Stop cut motor [15:38:42]*** Cut end [15:38:42]Read from MH i2c: 01 07 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [15:38:42]process_action close_receipt done [15:38:42]requested_data is exist [15:38:42]produce_requested_data [15:38:42]requested_item fm.sn is exist - process it [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 11 00 00 [15:38:42]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [15:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:38:42]wFMCommunicate OK [15:38:42]requested_item fd.num is exist - process it [15:38:42]SAM_PROTO_GetFieldsCounters [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 13 00 00 [15:38:42]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 62 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 62 00 F7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:38:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:42]wFMCommunicate OK [15:38:42]SAM_PROTO_GetFieldsCounters done [15:38:42]requested_item shift.num is exist - process it [15:38:42]requested_item shift.opened is exist - process it [15:38:42]req_shift_opened [15:38:42]FM_GetShiftState [15:38:42]SAM_PROTO_GetShiftState [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 13 01 00 [15:38:42]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 0E 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [15:38:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:38:42]wFMCommunicate OK [15:38:42]SAM_PROTO_GetShiftState done [15:38:42]FM_GetShiftState done [15:38:42]req_shift_opened done [15:38:42]requested_item shift.open_date is exist - process it [15:38:42]req_shift_open_date [15:38:42]req_shift_open_date done [15:38:42]produce_requested_data done [15:38:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192271,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:38:42]process_action_free close_receipt [15:38:42]json_value_free [15:38:42]json_value_free done [15:38:42]process_json_proto returns [15:38:42]Send response to host [15:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192271,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:38:42]free response buf [15:38:42]execute_script done [15:38:42]execute_script returns [15:38:42]free content buf [15:38:42]Sock 7.Close socket [15:38:42]Sock 7.Thread stoped [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:33]accept exits with 9 [15:41:33]New connection [15:41:33]New thread 3067080036 created [15:41:33]Thread 3066936676 joined [15:41:33]Waiting for new connection... [15:41:33] Sock 9.Parse request [15:41:33]Sock 9.Check first char [15:41:33]Sock 9.First char is OK [15:41:33]request: POST /json_proto HTTP/1.0 [15:41:33]Method: POST [15:41:33]URL: /json_proto [15:41:33]Method is POST - this is cgi request [15:41:33]url: /json_proto [15:41:33]query_string will be loaded in cgi processing [15:41:33]execute_cgi json_proto POST (null) [15:41:33]execute_cgi path=json_proto method=POST [15:41:33]POST find Content-Length [15:41:33]Host: 172.17.63.131:8080 [15:41:33]Content-Length: 678 [15:41:33]Content-Type: application/json [15:41:33] [15:41:33]POST finish read [15:41:33]Found Content-Length = 678 [15:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31586", "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" : 14.200, "sum" : 1082.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1082.00, "payments": [ { "type": 0, "sum" : 1082.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:33]execute_script... [15:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31586", "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" : 14.200, "sum" : 1082.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1082.00, "payments": [ { "type": 0, "sum" : 1082.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:33]POST & json_proto [15:41:33]process_json_proto [15:41:33]json parsed OK: [15:41:33]protocol is kg_v1.0 [15:41:33]action value=close_receipt [15:41:33]process_action close_receipt [15:41:33]cmd_close_receipt [15:41:33]MH_GetDate [15:41:33]Write to MH i2c: F0 00 00 F9 09 F1 [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: F0 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: F0 09 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: F0 09 00 F9 09 00 2E 5F 1E 67 22 05 6E 64 05 [15:41:33]GetLastDocTimeStamp 1730043519 [15:41:33]current date 1730043694 [15:41:33]FM_GetShiftState [15:41:33]SAM_PROTO_GetShiftState [15:41:33]wFMCommunicate request_size=4 [15:41:33]MH_SAM_APDU [15:41:33]CAPDU: 80 13 01 00 [15:41:33]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0E 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C1 [15:41:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:41:33]wFMCommunicate OK [15:41:33]SAM_PROTO_GetShiftState done [15:41:33]FM_GetShiftState done [15:41:33]opened in 1729989159 [15:41:33]opened+sec_in_day 1730075559 [15:41:33]quantity*price = 108204 [15:41:33]sum+1 = 108205 [15:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1082.00 Внесено: 1600.00 СДАЧА: 518.00 НСП 1% : 9.58 НДС 12% : 114.91 Наличными: 1082.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 304 27.10.2024 15:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192272 ФПД: 85380881741973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192272&fm=85380881741973&tin=02508201610067®Number=0000000000091776&sum=108200 [15:41:34]StoreToDocumentArchive [15:41:34]shift 542 fd 192272 [15:41:34]save to /storage/0542/doc_00192272 [15:41:34]save last doc name /storage/0542/doc_00192272 to /storage/kkm_last_doc_name [15:41:34]save OK [15:41:34]Clear old archive folders... [15:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:34]tlvbuf is 0030A540 [15:41:34]SAM_PROTO_ClearQueue [15:41:34]wFMCommunicate request_size=4 [15:41:34]MH_SAM_APDU [15:41:34]CAPDU: 80 09 00 00 [15:41:34]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [15:41:34]Write i2c OK [15:41:34]MH_I2C_Read... [15:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [15:41:35]RAPDU: 90 00 [15:41:35]wFMCommunicate OK [15:41:35]SAM_PROTO_ClearQueue done [15:41:35]KKMCreateOFDPacket [15:41:35]OFDProtocolAddRootSTLVToBuf [15:41:35]FM_MakeSignedData [15:41:35]FM_MakeSignedData [15:41:35]SAM_PROTO_SignData [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 0D 01 02 [15:41:35]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [15:41:35]RAPDU: 90 00 [15:41:35]wFMCommunicate OK [15:41:35]wFMCommunicate request_size=255 [15:41:35]MH_SAM_APDU [15:41: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 78 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AC A6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 A6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2C 00 00 00 00 07 04 06 00 A8 A6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2E 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EF 02 00 35 04 06 00 4D A7 49 20 [15:41:35]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AC A6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 A6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2C 00 00 00 00 07 04 06 00 A8 A6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2E 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EF 02 00 35 04 06 00 4D A7 49 20 00 00 FF [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [15:41:35]RAPDU: 90 00 [15:41:35]wFMCommunicate OK [15:41:35]wFMCommunicate request_size=7 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 0D 02 02 02 78 95 [15:41:35]Write to MH i2c: E2 0A 00 0A 0A 80 0D 02 02 02 00 78 95 00 00 9F [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [15:41:35]RAPDU: 90 00 [15:41:35]wFMCommunicate OK [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 0D 03 02 [15:41:35]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 0B 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 0B 00 0B 0A 00 D1 FB 14 FA 59 A0 2C 8B 90 00 1B [15:41:35]RAPDU: D1 FB 14 FA 59 A0 2C 8B 90 00 [15:41:35]wFMCommunicate OK [15:41:35]SAM_PROTO_SignData done [15:41:35]FM_MakeSignedData done [15:41:35]CreateOFDProtocolMessage [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 11 00 00 [15:41:35]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [15:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:41:35]wFMCommunicate OK [15:41:35]CreateOFDProtocolMessage done [15:41:35]OFDSenderStorePacket 192272 [15:41:35]StoreOFDPacket docnum=192272 [15:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 87 F4 04 01 25 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AC A6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 A6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2C 00 00 00 00 07 04 06 00 A8 A6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2E 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EF 02 00 35 04 06 00 4D A7 49 20 78 95 D1 FB 14 FA 59 A0 2C 8B [15:41:35]CheckFolder [15:41:35]dirname=/storage/ofd_packets [15:41:35]CheckFolder done [15:41:35]ProducePacketName [15:41:35]name=ofd_packets/00192272 [15:41:35]NVStorageSaveData ofd_packets/00192272 [15:41:35]File name is /storage/ofd_packets/00192272 [15:41:35]Write 298 bytes [15:41:35]NVStorageSaveData done [15:41:35]OFDSenderStorePacket done [15:41:35]KKMCreateOFDPacket done [15:41:35]NVStorageSaveData kkm_last_timestamp [15:41:35]File name is /storage/kkm_last_timestamp [15:41:35]Write 4 bytes [15:41:35]NVStorageSaveData done [15:41:35]ExternCall_PrintAddStr [15:41:35]wPrintStart [15:41:35]Write to MH i2c: 01 00 00 0D 0A 17 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: 01 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: 01 07 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [15:41:35]RasterBufferAndPrint [15:41:35]line Счет N : (1)31586 [15:41:35]line ИНН: 02508201610067 [15:41:35]line Контрольно-Кассовый Чек [15:41:35]line ПРОДАЖА [15:41:35]line ТРК (МРК, ГНК) : 11 [15:41:35]line Товар: 2710194210 [15:41:35]line ДТ-К-5 [15:41:35]line 14.200 * 76.20 [15:41:35]line = 1082.04 [15:41:35]line НДС 12% НСП 1% [15:41:35]line > о реализуемом товаре [15:41:35]line ОКРУГЛЕНИЕ: -0.04 [15:41:35]line ИТОГО: 1082.00 [15:41:35]line Внесено: 1600.00 [15:41:35]line СДАЧА: 518.00 [15:41:35]line НСП 1% : 9.58 [15:41:35]line НДС 12% : 114.91 [15:41:35]line Наличными: 1082.00 [15:41:35]line Безнал.: 0.00 [15:41:35]line Место: АЗС № 170 "Партнер Нефть" [15:41:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:41:35]line СНО: Общий режим [15:41:35]line Чек 304 27.10.2024 15:41 [15:41:35]line Смена: 542 ФФД: 1.0 [15:41:35]line ЗНМ: 0300000110 [15:41:35]line РНМ: 0000000000091776 [15:41:35]line Версия ККМ: 001 [15:41:35]line ФМ: 0000000000871754 [15:41:35]line ФД: 192272 [15:41:35]line ФПД: 85380881741973 [15:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154134&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192272&fm=85380881741973&tin=02508201610067®Number=0000000000091776&sum=108200 [15:41:35]OFD Sender: Processing packet 192272 [packets to send 75, broken 74] [15:41:35]ProducePacketName [15:41:35]name=ofd_packets/00192272 [15:41:35]OFD Sender: To server: pG, [15:41:35]CommunicateWithHost lk.salyk.kg:30040 [15:41:35]ConnectInit lk.salyk.kg [15:41:35]written 0, free lines is 4095 [15:41:35]Connected sock=10 [15:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 87 F4 04 01 25 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AC A6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 A6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 2C 00 00 00 00 07 04 06 00 A8 A6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 2E 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EF 02 00 35 04 06 00 4D A7 49 20 78 95 D1 FB 14 FA 59 A0 2C 8B [15:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7A A5 47 00 81 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 EF 02 00 F4 03 04 00 F5 03 1E 67 B6 04 01 00 00 B3 54 6F 2B 74 93 14 E8 [15:41:36]CommunicateWithHost err = 0 [15:41:36]CheckOFDResponse [15:41:36]1017 (14) - 77093643461234 [15:41:36]1041 (16) - 0000000000871754 [15:41:36]1040 (4) - 192272 [15:41:36]1012 (4) - 27.10.2024 09:12 [15:41:36]1206 (1) - 0 [15:41:36]OFD Sender: Remove packet 192272 [15:41:36]ProducePacketName [15:41:36]name=ofd_packets/00192272 [15:41:36]NVStorageDeleteData [15:41:36]Write to MH i2c: 01 00 00 38 0A 42 [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: 01 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: 01 07 00 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 A7 0C FC [15:41:36]RasterBufferAndPrint [15:41:36]line [15:41:36]line [15:41:36]line [15:41:36]line [15:41:36]line [15:41:36]written 0, free lines is 3245 [15:41:36]MH_Cut [15:41:36]Write to MH i2c: D1 01 00 3F 0A 01 1B [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: D1 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: D1 01 00 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: D1 01 00 3F 0A 00 1A [15:41:36]Write to MH i2c: 01 00 00 40 0A 4A [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]OFD Sender: No OFD packet to send [15:41:37]*** Cut start [15:41:37]*** Partial cut [15:41:37]*** CUTSNS_PIN = 1 [15:41:37]*** CUTSNS_PIN = 0 [15:41:37]*** Brake cut motor [15:41:37]Read from MH i2c: 01 [15:41:37]MH_I2C_Read... [15:41:37]*** Stop cut motor [15:41:37]*** Cut end [15:41:37]Read from MH i2c: 01 07 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [15:41:37]process_action close_receipt done [15:41:37]requested_data is exist [15:41:37]produce_requested_data [15:41:37]requested_item fm.sn is exist - process it [15:41:37]wFMCommunicate request_size=4 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 11 00 00 [15:41:37]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:37]Read from MH i2c: E2 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 17 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [15:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:41:37]wFMCommunicate OK [15:41:37]requested_item fd.num is exist - process it [15:41:37]SAM_PROTO_GetFieldsCounters [15:41:37]wFMCommunicate request_size=4 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 13 00 00 [15:41:37]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:37]Read from MH i2c: E2 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 62 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:37]wFMCommunicate OK [15:41:37]SAM_PROTO_GetFieldsCounters done [15:41:37]requested_item shift.num is exist - process it [15:41:37]requested_item shift.opened is exist - process it [15:41:37]req_shift_opened [15:41:37]FM_GetShiftState [15:41:37]SAM_PROTO_GetShiftState [15:41:37]wFMCommunicate request_size=4 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 13 01 00 [15:41:37]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0E 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [15:41:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:41:38]wFMCommunicate OK [15:41:38]SAM_PROTO_GetShiftState done [15:41:38]FM_GetShiftState done [15:41:38]req_shift_opened done [15:41:38]requested_item shift.open_date is exist - process it [15:41:38]req_shift_open_date [15:41:38]req_shift_open_date done [15:41:38]produce_requested_data done [15:41:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192272,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:41:38]process_action_free close_receipt [15:41:38]json_value_free [15:41:38]json_value_free done [15:41:38]process_json_proto returns [15:41:38]Send response to host [15:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192272,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:41:38]free response buf [15:41:38]execute_script done [15:41:38]execute_script returns [15:41:38]free content buf [15:41:38]Sock 9.Close socket [15:41:38]Sock 9.Thread stoped [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:35]accept exits with 7 [15:44:35]New connection [15:44:35]New thread 3066936676 created [15:44:35]Thread 3067080036 joined [15:44:35]Waiting for new connection... [15:44:35] Sock 7.Parse request [15:44:35]Sock 7.Check first char [15:44:35]Sock 7.First char is OK [15:44:35]request: POST /json_proto HTTP/1.0 [15:44:35]Method: POST [15:44:35]URL: /json_proto [15:44:35]Method is POST - this is cgi request [15:44:35]url: /json_proto [15:44:35]query_string will be loaded in cgi processing [15:44:35]execute_cgi json_proto POST (null) [15:44:35]execute_cgi path=json_proto method=POST [15:44:35]POST find Content-Length [15:44:35]Host: 172.17.63.131:8080 [15:44:35]Content-Length: 676 [15:44:35]Content-Type: application/json [15:44:35] [15:44:35]POST finish read [15:44:35]Found Content-Length = 676 [15:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:35]execute_script... [15:44: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)31588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:35]POST & json_proto [15:44:35]process_json_proto [15:44:35]json parsed OK: [15:44:35]protocol is kg_v1.0 [15:44:35]action value=close_receipt [15:44:35]process_action close_receipt [15:44:35]cmd_close_receipt [15:44:35]MH_GetDate [15:44:35]Write to MH i2c: F0 00 00 44 0A 3D [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: F0 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: F0 09 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: F0 09 00 44 0A 00 E3 5F 1E 67 22 05 6E 64 06 [15:44:35]GetLastDocTimeStamp 1730043694 [15:44:35]current date 1730043875 [15:44:35]FM_GetShiftState [15:44:35]SAM_PROTO_GetShiftState [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 13 01 00 [15:44:35]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0D [15:44:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_GetShiftState done [15:44:35]FM_GetShiftState done [15:44:35]opened in 1729989159 [15:44:35]opened+sec_in_day 1730075559 [15:44:35]quantity*price = 50041 [15:44:35]sum+1 = 50042 [15:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 305 27.10.2024 15:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192273 ФПД: 108809277128116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192273&fm=108809277128116&tin=02508201610067®Number=0000000000091776&sum=50000 [15:44:36]StoreToDocumentArchive [15:44:36]shift 542 fd 192273 [15:44:36]save to /storage/0542/doc_00192273 [15:44:36]save last doc name /storage/0542/doc_00192273 to /storage/kkm_last_doc_name [15:44:36]save OK [15:44:36]Clear old archive folders... [15:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:36]tlvbuf is 002DA500 [15:44:36]SAM_PROTO_ClearQueue [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 09 00 00 [15:44:36]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [15:44:36]RAPDU: 90 00 [15:44:36]wFMCommunicate OK [15:44:36]SAM_PROTO_ClearQueue done [15:44:36]KKMCreateOFDPacket [15:44:36]OFDProtocolAddRootSTLVToBuf [15:44:36]FM_MakeSignedData [15:44:36]FM_MakeSignedData [15:44:36]SAM_PROTO_SignData [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 0D 01 02 [15:44:36]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [15:44:36]RAPDU: 90 00 [15:44:36]wFMCommunicate OK [15:44:36]wFMCommunicate request_size=255 [15:44:36]MH_SAM_APDU [15:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E3 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EF 02 00 35 04 06 00 62 [15:44:36]Write to MH i2c: E2 02 01 54 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E3 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EF 02 00 35 04 06 00 62 00 00 E7 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]OFD Sender: No OFD packet to send [15:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [15:44:36]RAPDU: 90 00 [15:44:36]wFMCommunicate OK [15:44:36]wFMCommunicate request_size=10 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 0D 02 02 05 F6 22 4F BD B4 [15:44:36]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 F6 22 4F BD B4 00 00 BB [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 03 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [15:44:37]RAPDU: 90 00 [15:44:37]wFMCommunicate OK [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 0D 03 02 [15:44:37]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0B 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0B 00 56 0A 00 AE 07 BA 93 97 68 BA EC 90 00 83 [15:44:37]RAPDU: AE 07 BA 93 97 68 BA EC 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_SignData done [15:44:37]FM_MakeSignedData done [15:44:37]CreateOFDProtocolMessage [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 11 00 00 [15:44:37]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 17 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [15:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:44:37]wFMCommunicate OK [15:44:37]CreateOFDProtocolMessage done [15:44:37]OFDSenderStorePacket 192273 [15:44:37]StoreOFDPacket docnum=192273 [15:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 0D 07 01 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E3 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EF 02 00 35 04 06 00 62 F6 22 4F BD B4 AE 07 BA 93 97 68 BA EC [15:44:37]CheckFolder [15:44:37]dirname=/storage/ofd_packets [15:44:37]CheckFolder done [15:44:37]ProducePacketName [15:44:37]name=ofd_packets/00192273 [15:44:37]NVStorageSaveData ofd_packets/00192273 [15:44:37]File name is /storage/ofd_packets/00192273 [15:44:37]Write 301 bytes [15:44:37]NVStorageSaveData done [15:44:37]OFDSenderStorePacket done [15:44:37]KKMCreateOFDPacket done [15:44:37]NVStorageSaveData kkm_last_timestamp [15:44:37]File name is /storage/kkm_last_timestamp [15:44:37]Write 4 bytes [15:44:37]NVStorageSaveData done [15:44:37]ExternCall_PrintAddStr [15:44:37]wPrintStart [15:44:37]Write to MH i2c: 01 00 00 58 0A 62 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [15:44:37]RasterBufferAndPrint [15:44:37]line Счет N : (1)31588 [15:44:37]line ИНН: 02508201610067 [15:44:37]line Контрольно-Кассовый Чек [15:44:37]line ПРОДАЖА [15:44:37]line ТРК (МРК, ГНК) : 12 [15:44:37]line Товар: 2710124130 [15:44:37]line Аи-92-К-5 [15:44:37]line 7.480 * 66.90 [15:44:37]line = 500.41 [15:44:37]line НДС 12% НСП 1% [15:44:37]line > о реализуемом товаре [15:44:37]line ОКРУГЛЕНИЕ: -0.41 [15:44:37]line ИТОГО: 500.00 [15:44:37]line Внесено: 500.00 [15:44:37]line СДАЧА: 0.00 [15:44:37]line НСП 1% : 4.43 [15:44:37]line НДС 12% : 53.14 [15:44:37]line Наличными: 500.00 [15:44:37]line Безнал.: 0.00 [15:44:37]line Место: АЗС № 170 "Партнер Нефть" [15:44:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:44:37]line СНО: Общий режим [15:44:37]line Чек 305 27.10.2024 15:44 [15:44:37]line Смена: 542 ФФД: 1.0 [15:44:37]line ЗНМ: 0300000110 [15:44:37]line РНМ: 0000000000091776 [15:44:37]line Версия ККМ: 001 [15:44:37]line ФМ: 0000000000871754 [15:44:37]line ФД: 192273 [15:44:37]line ФПД: 108809277128116 [15:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192273&fm=108809277128116&tin=02508201610067®Number=0000000000091776&sum=50000 [15:44:37]OFD Sender: Processing packet 192273 [packets to send 75, broken 74] [15:44:37]ProducePacketName [15:44:37]name=ofd_packets/00192273 [15:44:37]OFD Sender: To server: pG, [15:44:37]CommunicateWithHost lk.salyk.kg:30040 [15:44:37]ConnectInit lk.salyk.kg [15:44:37]written 0, free lines is 4095 [15:44:37]Write to MH i2c: 01 00 00 83 0A 8D [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 9F 0C 3F [15:44:37]RasterBufferAndPrint [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]written 0, free lines is 3236 [15:44:37]MH_Cut [15:44:37]Write to MH i2c: D1 01 00 8A 0A 01 66 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 01 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 01 00 8A 0A 00 65 [15:44:37]Write to MH i2c: 01 00 00 8B 0A 95 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:38]*** Cut start [15:44:38]*** Partial cut [15:44:38]*** CUTSNS_PIN = 1 [15:44:38]*** CUTSNS_PIN = 0 [15:44:39]*** Brake cut motor [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]*** Stop cut motor [15:44:39]*** Cut end [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [15:44:39]process_action close_receipt done [15:44:39]requested_data is exist [15:44:39]produce_requested_data [15:44:39]requested_item fm.sn is exist - process it [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 11 00 00 [15:44:39]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [15:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:44:39]wFMCommunicate OK [15:44:39]requested_item fd.num is exist - process it [15:44:39]SAM_PROTO_GetFieldsCounters [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 13 00 00 [15:44:39]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 62 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 62 00 8D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [15:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:39]wFMCommunicate OK [15:44:39]SAM_PROTO_GetFieldsCounters done [15:44:39]requested_item shift.num is exist - process it [15:44:39]requested_item shift.opened is exist - process it [15:44:39]req_shift_opened [15:44:39]FM_GetShiftState [15:44:39]SAM_PROTO_GetShiftState [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 13 01 00 [15:44:39]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0E 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [15:44:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:44:39]wFMCommunicate OK [15:44:39]SAM_PROTO_GetShiftState done [15:44:39]FM_GetShiftState done [15:44:39]req_shift_opened done [15:44:39]requested_item shift.open_date is exist - process it [15:44:39]req_shift_open_date [15:44:39]req_shift_open_date done [15:44:39]produce_requested_data done [15:44:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192273,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:44:39]process_action_free close_receipt [15:44:39]json_value_free [15:44:39]json_value_free done [15:44:39]process_json_proto returns [15:44:39]Send response to host [15:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192273,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:44:39]free response buf [15:44:39]execute_script done [15:44:39]execute_script returns [15:44:39]free content buf [15:44:39]Sock 7.Close socket [15:44:39]Sock 7.Thread stoped [15:46:24]accept exits with 9 [15:46:24]New connection [15:46:24]New thread 3067080036 created [15:46:24]Thread 3066936676 joined [15:46:24]Waiting for new connection... [15:46:24] Sock 9.Parse request [15:46:24]Sock 9.Check first char [15:46:24]Sock 9.First char is OK [15:46:24]request: POST /json_proto HTTP/1.0 [15:46:24]Method: POST [15:46:24]URL: /json_proto [15:46:24]Method is POST - this is cgi request [15:46:24]url: /json_proto [15:46:24]query_string will be loaded in cgi processing [15:46:24]execute_cgi json_proto POST (null) [15:46:24]execute_cgi path=json_proto method=POST [15:46:24]POST find Content-Length [15:46:24]Host: 172.17.63.131:8080 [15:46:24]Content-Length: 862 [15:46:24]Content-Type: application/json [15:46:24] [15:46:24]POST finish read [15:46:24]Found Content-Length = 862 [15:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31587", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:24]execute_script... [15:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31587", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:24]POST & json_proto [15:46:24]process_json_proto [15:46:24]json parsed OK: [15:46:24]protocol is kg_v1.0 [15:46:24]action value=close_receipt [15:46:24]process_action close_receipt [15:46:24]cmd_close_receipt [15:46:24]MH_GetDate [15:46:24]Write to MH i2c: F0 00 00 8F 0A 88 [15:46:24]Write i2c OK [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: F0 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: F0 09 00 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: F0 09 00 8F 0A 00 50 60 1E 67 22 05 6E 64 BF [15:46:24]GetLastDocTimeStamp 1730043875 [15:46:24]current date 1730043984 [15:46:24]FM_GetShiftState [15:46:24]SAM_PROTO_GetShiftState [15:46:24]wFMCommunicate request_size=4 [15:46:24]MH_SAM_APDU [15:46:24]CAPDU: 80 13 01 00 [15:46:24]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [15:46:24]Write i2c OK [15:46:24]MH_I2C_Read... [15:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:24]Read from MH i2c: E2 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: E2 0E 00 [15:46:24]MH_I2C_Read... [15:46:24]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [15:46:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:46:24]wFMCommunicate OK [15:46:24]SAM_PROTO_GetShiftState done [15:46:24]FM_GetShiftState done [15:46:24]opened in 1729989159 [15:46:24]opened+sec_in_day 1730075559 [15:46:24]quantity*price = 300075 [15:46:24]sum+1 = 300077 [15:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 306 27.10.2024 15:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192274 ФПД: 84693400706643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192274&fm=84693400706643&tin=02508201610067®Number=0000000000091776&sum=300076 [15:46:25]StoreToDocumentArchive [15:46:25]shift 542 fd 192274 [15:46:25]save to /storage/0542/doc_00192274 [15:46:25]save last doc name /storage/0542/doc_00192274 to /storage/kkm_last_doc_name [15:46:25]save OK [15:46:25]Clear old archive folders... [15:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:25]tlvbuf is 002DA330 [15:46:25]SAM_PROTO_ClearQueue [15:46:25]wFMCommunicate request_size=4 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 09 00 00 [15:46:25]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [15:46:25]RAPDU: 90 00 [15:46:25]wFMCommunicate OK [15:46:25]SAM_PROTO_ClearQueue done [15:46:25]KKMCreateOFDPacket [15:46:25]OFDProtocolAddRootSTLVToBuf [15:46:25]FM_MakeSignedData [15:46:25]FM_MakeSignedData [15:46:25]SAM_PROTO_SignData [15:46:25]wFMCommunicate request_size=4 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 0D 01 02 [15:46:25]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [15:46:25]RAPDU: 90 00 [15:46:25]wFMCommunicate OK [15:46:25]wFMCommunicate request_size=255 [15:46:25]MH_SAM_APDU [15:46: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 50 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EF 02 00 35 04 06 00 4D 07 38 10 [15:46:25]Write to MH i2c: E2 02 01 9F 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 50 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EF 02 00 35 04 06 00 4D 07 38 10 00 00 A3 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [15:46:25]RAPDU: 90 00 [15:46:25]wFMCommunicate OK [15:46:25]wFMCommunicate request_size=7 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 0D 02 02 02 5E 53 [15:46:25]Write to MH i2c: E2 0A 00 A0 0A 80 0D 02 02 02 00 5E 53 00 00 D9 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [15:46:25]RAPDU: 90 00 [15:46:25]wFMCommunicate OK [15:46:25]wFMCommunicate request_size=4 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 0D 03 02 [15:46:25]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 0B 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 0B 00 A1 0A 00 37 A0 57 32 15 26 01 B8 90 00 7B [15:46:25]RAPDU: 37 A0 57 32 15 26 01 B8 90 00 [15:46:25]wFMCommunicate OK [15:46:25]SAM_PROTO_SignData done [15:46:25]FM_MakeSignedData done [15:46:25]CreateOFDProtocolMessage [15:46:25]wFMCommunicate request_size=4 [15:46:25]MH_SAM_APDU [15:46:25]CAPDU: 80 11 00 00 [15:46:25]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:25]Read from MH i2c: E2 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 17 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [15:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:25]wFMCommunicate OK [15:46:25]CreateOFDProtocolMessage done [15:46:25]OFDSenderStorePacket 192274 [15:46:25]StoreOFDPacket docnum=192274 [15:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 39 04 01 C8 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 50 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EF 02 00 35 04 06 00 4D 07 38 10 5E 53 37 A0 57 32 15 26 01 B8 [15:46:25]CheckFolder [15:46:25]dirname=/storage/ofd_packets [15:46:25]CheckFolder done [15:46:25]ProducePacketName [15:46:25]name=ofd_packets/00192274 [15:46:25]NVStorageSaveData ofd_packets/00192274 [15:46:25]File name is /storage/ofd_packets/00192274 [15:46:25]Write 298 bytes [15:46:25]NVStorageSaveData done [15:46:25]OFDSenderStorePacket done [15:46:25]KKMCreateOFDPacket done [15:46:25]NVStorageSaveData kkm_last_timestamp [15:46:25]File name is /storage/kkm_last_timestamp [15:46:25]Write 4 bytes [15:46:25]NVStorageSaveData done [15:46:25]ExternCall_PrintAddStr [15:46:25]wPrintStart [15:46:25]Write to MH i2c: 01 00 00 A3 0A AD [15:46:25]Write i2c OK [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: 01 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: 01 07 00 [15:46:25]MH_I2C_Read... [15:46:25]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [15:46:25]RasterBufferAndPrint [15:46:25]line Счет N : (1)31587 [15:46:25]line ИНН: 02508201610067 [15:46:25]line Контрольно-Кассовый Чек [15:46:25]line ПРОДАЖА [15:46:25]line ТРК (МРК, ГНК) : 11 [15:46:25]line Товар: 2710194210 [15:46:25]line ДТ-К-5 [15:46:25]line 39.380 * 76.20 [15:46:25]line = 3000.76 [15:46:25]line НДС 12% НСП 1% [15:46:25]line > о реализуемом товаре [15:46:25]line ИТОГО: 3000.76 [15:46:25]line НСП 1% : 26.55 [15:46:25]line НДС 12% : 318.66 [15:46:25]line Наличными: 0.00 [15:46:25]line Безнал.: 3000.76 [15:46:25]line Место: АЗС № 170 "Партнер Нефть" [15:46:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:46:25]line СНО: Общий режим [15:46:25]line Чек 306 27.10.2024 15:46 [15:46:25]line Смена: 542 ФФД: 1.0 [15:46:25]line ЗНМ: 0300000110 [15:46:25]line РНМ: 0000000000091776 [15:46:25]line Версия ККМ: 001 [15:46:25]line Платежная система: Кыргызкоммерцбанк [15:46:25]line ФМ: 0000000000871754 [15:46:25]line ФД: 192274 [15:46:25]line ФПД: 84693400706643 [15:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192274&fm=84693400706643&tin=02508201610067®Number=0000000000091776&sum=300076 [15:46:26]written 0, free lines is 4095 [15:46:26]Write to MH i2c: 01 00 00 CD 0A D7 [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: 01 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: 01 07 00 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 BD 0C A7 [15:46:26]RasterBufferAndPrint [15:46:26]line [15:46:26]line [15:46:26]line [15:46:26]line [15:46:26]line [15:46:26]written 0, free lines is 3268 [15:46:26]MH_Cut [15:46:26]Write to MH i2c: D1 01 00 D4 0A 01 B0 [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: D1 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: D1 01 00 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: D1 01 00 D4 0A 00 AF [15:46:26]Write to MH i2c: 01 00 00 D5 0A DF [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:27]*** Cut start [15:46:27]*** Partial cut [15:46:27]*** CUTSNS_PIN = 1 [15:46:27]*** CUTSNS_PIN = 0 [15:46:27]*** Brake cut motor [15:46:28]Read from MH i2c: 01 [15:46:28]MH_I2C_Read... [15:46:28]*** Stop cut motor [15:46:28]*** Cut end [15:46:28]Read from MH i2c: 01 07 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [15:46:28]process_action close_receipt done [15:46:28]requested_data is exist [15:46:28]produce_requested_data [15:46:28]requested_item fm.sn is exist - process it [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 11 00 00 [15:46:28]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [15:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:46:28]wFMCommunicate OK [15:46:28]requested_item fd.num is exist - process it [15:46:28]SAM_PROTO_GetFieldsCounters [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 13 00 00 [15:46:28]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 62 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 62 00 D7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_GetFieldsCounters done [15:46:28]requested_item shift.num is exist - process it [15:46:28]requested_item shift.opened is exist - process it [15:46:28]req_shift_opened [15:46:28]FM_GetShiftState [15:46:28]SAM_PROTO_GetShiftState [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 13 01 00 [15:46:28]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0E 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A0 [15:46:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_GetShiftState done [15:46:28]FM_GetShiftState done [15:46:28]req_shift_opened done [15:46:28]requested_item shift.open_date is exist - process it [15:46:28]req_shift_open_date [15:46:28]req_shift_open_date done [15:46:28]produce_requested_data done [15:46:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192274,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:46:28]process_action_free close_receipt [15:46:28]json_value_free [15:46:28]json_value_free done [15:46:28]process_json_proto returns [15:46:28]Send response to host [15:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192274,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:46:28]free response buf [15:46:28]execute_script done [15:46:28]execute_script returns [15:46:28]free content buf [15:46:28]Sock 9.Close socket [15:46:28]Sock 9.Thread stoped [15:46:49]ConnectInit Can't connect to host [15:46:49]CommunicateWithHost connect error [15:46:49]CommunicateWithHost err = -1 [15:46:49]OFD Sender: Server communicate error [15:46:49]OFD Sender: Processing packet 192273 [packets to send 76, broken 74] [15:46:49]ProducePacketName [15:46:49]name=ofd_packets/00192273 [15:46:49]OFD Sender: To server: pG, [15:46:49]CommunicateWithHost lk.salyk.kg:30040 [15:46:49]ConnectInit lk.salyk.kg [15:46:49]Connected sock=9 [15:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 0D 07 01 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E3 5F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EF 02 00 35 04 06 00 62 F6 22 4F BD B4 AE 07 BA 93 97 68 BA EC [15:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 49 47 00 67 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 EF 02 00 F4 03 04 00 2F 05 1E 67 B6 04 01 00 00 B7 62 91 09 A3 1C 09 BA [15:46:49]CommunicateWithHost err = 0 [15:46:49]CheckOFDResponse [15:46:49]1017 (14) - 77093643461234 [15:46:49]1041 (16) - 0000000000871754 [15:46:49]1040 (4) - 192273 [15:46:49]1012 (4) - 27.10.2024 09:17 [15:46:49]1206 (1) - 0 [15:46:49]OFD Sender: Remove packet 192273 [15:46:49]ProducePacketName [15:46:49]name=ofd_packets/00192273 [15:46:49]NVStorageDeleteData [15:46:50]OFD Sender: Processing packet 192274 [packets to send 75, broken 74] [15:46:50]ProducePacketName [15:46:50]name=ofd_packets/00192274 [15:46:50]OFD Sender: To server: pG, [15:46:50]CommunicateWithHost lk.salyk.kg:30040 [15:46:50]ConnectInit lk.salyk.kg [15:46:50]Connected sock=9 [15:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 39 04 01 C8 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 50 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EF 02 00 35 04 06 00 4D 07 38 10 5E 53 37 A0 57 32 15 26 01 B8 [15:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B1 A7 47 00 E7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 EF 02 00 F4 03 04 00 30 05 1E 67 B6 04 01 00 00 85 66 4A DD D2 7B 08 DA [15:46:50]CommunicateWithHost err = 0 [15:46:50]CheckOFDResponse [15:46:50]1017 (14) - 77093643461234 [15:46:50]1041 (16) - 0000000000871754 [15:46:50]1040 (4) - 192274 [15:46:50]1012 (4) - 27.10.2024 09:17 [15:46:50]1206 (1) - 0 [15:46:50]OFD Sender: Remove packet 192274 [15:46:50]ProducePacketName [15:46:50]name=ofd_packets/00192274 [15:46:50]NVStorageDeleteData [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:02]accept exits with 7 [15:48:02]New connection [15:48:02]New thread 3066936676 created [15:48:02]Thread 3067080036 joined [15:48:02]Waiting for new connection... [15:48:02] Sock 7.Parse request [15:48:02]Sock 7.Check first char [15:48:02]Sock 7.First char is OK [15:48:02]request: POST /json_proto HTTP/1.0 [15:48:02]Method: POST [15:48:02]URL: /json_proto [15:48:02]Method is POST - this is cgi request [15:48:02]url: /json_proto [15:48:02]query_string will be loaded in cgi processing [15:48:02]execute_cgi json_proto POST (null) [15:48:02]execute_cgi path=json_proto method=POST [15:48:02]POST find Content-Length [15:48:02]Host: 172.17.63.131:8080 [15:48:02]Content-Length: 678 [15:48:02]Content-Type: application/json [15:48:02] [15:48:02]POST finish read [15:48:02]Found Content-Length = 678 [15:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31589", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:02]execute_script... [15:48: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)31589", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:02]POST & json_proto [15:48:02]process_json_proto [15:48:02]json parsed OK: [15:48:02]protocol is kg_v1.0 [15:48:02]action value=close_receipt [15:48:02]process_action close_receipt [15:48:02]cmd_close_receipt [15:48:02]MH_GetDate [15:48:02]Write to MH i2c: F0 00 00 D9 0A D2 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 09 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 09 00 D9 0A 00 B3 60 1E 67 22 05 6E 64 6C [15:48:02]GetLastDocTimeStamp 1730043984 [15:48:02]current date 1730044083 [15:48:02]FM_GetShiftState [15:48:02]SAM_PROTO_GetShiftState [15:48:02]wFMCommunicate request_size=4 [15:48:02]MH_SAM_APDU [15:48:02]CAPDU: 80 13 01 00 [15:48:02]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:02]Read from MH i2c: E2 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [15:48:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:48:02]wFMCommunicate OK [15:48:02]SAM_PROTO_GetShiftState done [15:48:02]FM_GetShiftState done [15:48:02]opened in 1729989159 [15:48:02]opened+sec_in_day 1730075559 [15:48:02]quantity*price = 120015 [15:48:02]sum+1 = 120016 [15:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 307 27.10.2024 15:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192275 ФПД: 68379611957513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154803&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192275&fm=68379611957513&tin=02508201610067®Number=0000000000091776&sum=120000 [15:48:03]StoreToDocumentArchive [15:48:03]shift 542 fd 192275 [15:48:03]save to /storage/0542/doc_00192275 [15:48:03]save last doc name /storage/0542/doc_00192275 to /storage/kkm_last_doc_name [15:48:03]save OK [15:48:03]Clear old archive folders... [15:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:03]tlvbuf is 002D1640 [15:48:03]SAM_PROTO_ClearQueue [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 09 00 00 [15:48:03]Write to MH i2c: E2 08 00 E7 0A 80 09 00 00 00 00 00 00 63 [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 03 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [15:48:03]RAPDU: 90 00 [15:48:03]wFMCommunicate OK [15:48:03]SAM_PROTO_ClearQueue done [15:48:03]KKMCreateOFDPacket [15:48:03]OFDProtocolAddRootSTLVToBuf [15:48:03]FM_MakeSignedData [15:48:03]FM_MakeSignedData [15:48:03]SAM_PROTO_SignData [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 0D 01 02 [15:48:03]Write to MH i2c: E2 08 00 E8 0A 80 0D 01 02 00 00 00 00 6B [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 03 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [15:48:03]RAPDU: 90 00 [15:48:03]wFMCommunicate OK [15:48:03]wFMCommunicate request_size=255 [15:48:03]MH_SAM_APDU [15:48: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EF 02 00 35 04 06 00 3E 30 DE 7B [15:48:03]Write to MH i2c: E2 02 01 E9 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EF 02 00 35 04 06 00 3E 30 DE 7B 00 00 1A [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=7 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 02 02 02 09 09 [15:48:04]Write to MH i2c: E2 0A 00 EA 0A 80 0D 02 02 02 00 09 09 00 00 84 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 03 02 [15:48:04]Write to MH i2c: E2 08 00 EB 0A 80 0D 03 02 00 00 00 00 70 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0B 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0B 00 EB 0A 00 34 54 E5 8C ED 20 DF E1 90 00 37 [15:48:04]RAPDU: 34 54 E5 8C ED 20 DF E1 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_SignData done [15:48:04]FM_MakeSignedData done [15:48:04]CreateOFDProtocolMessage [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 11 00 00 [15:48:04]Write to MH i2c: E2 08 00 EC 0A 80 11 00 00 00 00 00 00 70 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 EC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [15:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:48:04]wFMCommunicate OK [15:48:04]CreateOFDProtocolMessage done [15:48:04]OFDSenderStorePacket 192275 [15:48:04]StoreOFDPacket docnum=192275 [15:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B6 ED 04 01 8C 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EF 02 00 35 04 06 00 3E 30 DE 7B 09 09 34 54 E5 8C ED 20 DF E1 [15:48:04]CheckFolder [15:48:04]dirname=/storage/ofd_packets [15:48:04]CheckFolder done [15:48:04]ProducePacketName [15:48:04]name=ofd_packets/00192275 [15:48:04]NVStorageSaveData ofd_packets/00192275 [15:48:04]File name is /storage/ofd_packets/00192275 [15:48:04]Write 298 bytes [15:48:04]NVStorageSaveData done [15:48:04]OFDSenderStorePacket done [15:48:04]KKMCreateOFDPacket done [15:48:04]NVStorageSaveData kkm_last_timestamp [15:48:04]File name is /storage/kkm_last_timestamp [15:48:04]Write 4 bytes [15:48:04]NVStorageSaveData done [15:48:04]ExternCall_PrintAddStr [15:48:04]wPrintStart [15:48:04]Write to MH i2c: 01 00 00 ED 0A F7 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [15:48:04]RasterBufferAndPrint [15:48:04]line Счет N : (1)31589 [15:48:04]line ИНН: 02508201610067 [15:48:04]line Контрольно-Кассовый Чек [15:48:04]line ПРОДАЖА [15:48:04]line ТРК (МРК, ГНК) : 11 [15:48:04]line Товар: 2710194210 [15:48:04]line ДТ-К-5 [15:48:04]line 15.750 * 76.20 [15:48:04]line = 1200.15 [15:48:04]line НДС 12% НСП 1% [15:48:04]line > о реализуемом товаре [15:48:04]line ОКРУГЛЕНИЕ: -0.15 [15:48:04]line ИТОГО: 1200.00 [15:48:04]line Внесено: 1200.00 [15:48:04]line СДАЧА: 0.00 [15:48:04]line НСП 1% : 10.62 [15:48:04]line НДС 12% : 127.45 [15:48:04]line Наличными: 1200.00 [15:48:04]line Безнал.: 0.00 [15:48:04]line Место: АЗС № 170 "Партнер Нефть" [15:48:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:48:04]line СНО: Общий режим [15:48:04]line Чек 307 27.10.2024 15:48 [15:48:04]line Смена: 542 ФФД: 1.0 [15:48:04]line ЗНМ: 0300000110 [15:48:04]line РНМ: 0000000000091776 [15:48:04]line Версия ККМ: 001 [15:48:04]line ФМ: 0000000000871754 [15:48:04]line ФД: 192275 [15:48:04]line ФПД: 68379611957513 [15:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154803&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192275&fm=68379611957513&tin=02508201610067®Number=0000000000091776&sum=120000 [15:48:04]OFD Sender: Processing packet 192275 [packets to send 75, broken 74] [15:48:04]ProducePacketName [15:48:04]name=ofd_packets/00192275 [15:48:04]OFD Sender: To server: pG, [15:48:04]CommunicateWithHost lk.salyk.kg:30040 [15:48:04]ConnectInit lk.salyk.kg [15:48:04]written 0, free lines is 4095 [15:48:04]Connected sock=10 [15:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B6 ED 04 01 8C 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B3 60 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EF 02 00 35 04 06 00 3E 30 DE 7B 09 09 34 54 E5 8C ED 20 DF E1 [15:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8B FD 47 00 27 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 EF 02 00 F4 03 04 00 7A 05 1E 67 B6 04 01 00 00 D0 45 94 DB 6A BA 87 59 [15:48:05]CommunicateWithHost err = 0 [15:48:05]CheckOFDResponse [15:48:05]1017 (14) - 77093643461234 [15:48:05]1041 (16) - 0000000000871754 [15:48:05]1040 (4) - 192275 [15:48:05]1012 (4) - 27.10.2024 09:18 [15:48:05]1206 (1) - 0 [15:48:05]OFD Sender: Remove packet 192275 [15:48:05]ProducePacketName [15:48:05]name=ofd_packets/00192275 [15:48:05]NVStorageDeleteData [15:48:05]Write to MH i2c: 01 00 00 18 0B 23 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 AD 0C E3 [15:48:05]RasterBufferAndPrint [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]written 0, free lines is 3251 [15:48:05]MH_Cut [15:48:05]Write to MH i2c: D1 01 00 1F 0B 01 FC [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 1F 0B 00 FB [15:48:05]Write to MH i2c: 01 00 00 20 0B 2B [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]OFD Sender: No OFD packet to send [15:48:05]*** Cut start [15:48:05]*** Partial cut [15:48:05]*** CUTSNS_PIN = 1 [15:48:06]*** CUTSNS_PIN = 0 [15:48:06]*** Brake cut motor [15:48:06]Read from MH i2c: 01 [15:48:06]MH_I2C_Read... [15:48:06]*** Stop cut motor [15:48:06]*** Cut end [15:48:06]Read from MH i2c: 01 07 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 07 00 20 0B 00 00 00 00 00 FF 0F 40 [15:48:06]process_action close_receipt done [15:48:06]requested_data is exist [15:48:06]produce_requested_data [15:48:06]requested_item fm.sn is exist - process it [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 11 00 00 [15:48:06]Write to MH i2c: E2 08 00 21 0B 80 11 00 00 00 00 00 00 A6 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 [15:48:06]MH_I2C_Read... [15:48:06]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 37 35 34 90 00 F9 [15:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:48:06]wFMCommunicate OK [15:48:06]requested_item fd.num is exist - process it [15:48:06]SAM_PROTO_GetFieldsCounters [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 00 00 [15:48:06]Write to MH i2c: E2 08 00 22 0B 80 13 00 00 00 00 00 00 A9 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 62 00 [15:48:06]MH_I2C_Read... [15:48:06]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [15:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:06]wFMCommunicate OK [15:48:06]SAM_PROTO_GetFieldsCounters done [15:48:06]requested_item shift.num is exist - process it [15:48:06]requested_item shift.opened is exist - process it [15:48:06]req_shift_opened [15:48:06]FM_GetShiftState [15:48:06]SAM_PROTO_GetShiftState [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 01 00 [15:48:06]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [15:48:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:48:06]wFMCommunicate OK [15:48:06]SAM_PROTO_GetShiftState done [15:48:06]FM_GetShiftState done [15:48:06]req_shift_opened done [15:48:06]requested_item shift.open_date is exist - process it [15:48:06]req_shift_open_date [15:48:06]req_shift_open_date done [15:48:06]produce_requested_data done [15:48:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192275,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:48:06]process_action_free close_receipt [15:48:06]json_value_free [15:48:06]json_value_free done [15:48:06]process_json_proto returns [15:48:06]Send response to host [15:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192275,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:48:06]free response buf [15:48:06]execute_script done [15:48:06]execute_script returns [15:48:06]free content buf [15:48:06]Sock 7.Close socket [15:48:06]Sock 7.Thread stoped [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]accept exits with 9 [15:49:50]New connection [15:49:50]New thread 3067080036 created [15:49:50]Thread 3066936676 joined [15:49:50]Waiting for new connection... [15:49:50] Sock 9.Parse request [15:49:50]Sock 9.Check first char [15:49:50]Sock 9.First char is OK [15:49:50]request: POST /json_proto HTTP/1.0 [15:49:50]Method: POST [15:49:50]URL: /json_proto [15:49:50]Method is POST - this is cgi request [15:49:50]url: /json_proto [15:49:50]query_string will be loaded in cgi processing [15:49:50]execute_cgi json_proto POST (null) [15:49:50]execute_cgi path=json_proto method=POST [15:49:50]POST find Content-Length [15:49:50]Host: 172.17.63.131:8080 [15:49:50]Content-Length: 676 [15:49:50]Content-Type: application/json [15:49:50] [15:49:50]POST finish read [15:49:50]Found Content-Length = 676 [15:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:50]execute_script... [15:49: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)31590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:50]POST & json_proto [15:49:50]process_json_proto [15:49:50]json parsed OK: [15:49:50]protocol is kg_v1.0 [15:49:50]action value=close_receipt [15:49:50]process_action close_receipt [15:49:50]cmd_close_receipt [15:49:50]MH_GetDate [15:49:50]Write to MH i2c: F0 00 00 24 0B 1E [15:49:50]Write i2c OK [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 09 00 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 09 00 24 0B 00 1E 61 1E 67 22 05 6E 64 24 [15:49:50]GetLastDocTimeStamp 1730044083 [15:49:50]current date 1730044190 [15:49:50]FM_GetShiftState [15:49:50]SAM_PROTO_GetShiftState [15:49:50]wFMCommunicate request_size=4 [15:49:50]MH_SAM_APDU [15:49:50]CAPDU: 80 13 01 00 [15:49:50]Write to MH i2c: E2 08 00 25 0B 80 13 01 00 00 00 00 00 AD [15:49:50]Write i2c OK [15:49:50]MH_I2C_Read... [15:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:50]Read from MH i2c: E2 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: E2 0E 00 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: E2 0E 00 25 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EE [15:49:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:49:50]wFMCommunicate OK [15:49:50]SAM_PROTO_GetShiftState done [15:49:50]FM_GetShiftState done [15:49:50]opened in 1729989159 [15:49:50]opened+sec_in_day 1730075559 [15:49:50]quantity*price = 50041 [15:49:50]sum+1 = 50042 [15:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 308 27.10.2024 15:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192276 ФПД: 125103278756150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192276&fm=125103278756150&tin=02508201610067®Number=0000000000091776&sum=50000 [15:49:51]StoreToDocumentArchive [15:49:51]shift 542 fd 192276 [15:49:51]save to /storage/0542/doc_00192276 [15:49:51]save last doc name /storage/0542/doc_00192276 to /storage/kkm_last_doc_name [15:49:51]save OK [15:49:51]Clear old archive folders... [15:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:51]tlvbuf is 00329290 [15:49:51]SAM_PROTO_ClearQueue [15:49:51]wFMCommunicate request_size=4 [15:49:51]MH_SAM_APDU [15:49:51]CAPDU: 80 09 00 00 [15:49:51]Write to MH i2c: E2 08 00 32 0B 80 09 00 00 00 00 00 00 AF [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:51]Read from MH i2c: E2 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [15:49:51]RAPDU: 90 00 [15:49:51]wFMCommunicate OK [15:49:51]SAM_PROTO_ClearQueue done [15:49:51]KKMCreateOFDPacket [15:49:51]OFDProtocolAddRootSTLVToBuf [15:49:51]FM_MakeSignedData [15:49:51]FM_MakeSignedData [15:49:51]SAM_PROTO_SignData [15:49:51]wFMCommunicate request_size=4 [15:49:51]MH_SAM_APDU [15:49:51]CAPDU: 80 0D 01 02 [15:49:51]Write to MH i2c: E2 08 00 33 0B 80 0D 01 02 00 00 00 00 B7 [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:51]Read from MH i2c: E2 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [15:49:51]RAPDU: 90 00 [15:49:51]wFMCommunicate OK [15:49:51]wFMCommunicate request_size=255 [15:49:51]MH_SAM_APDU [15:49:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 1E 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EF 02 00 35 04 06 00 71 [15:49:51]Write to MH i2c: E2 02 01 34 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 1E 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EF 02 00 35 04 06 00 71 00 00 1A [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:51]Read from MH i2c: E2 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [15:49:51]RAPDU: 90 00 [15:49:51]wFMCommunicate OK [15:49:51]wFMCommunicate request_size=10 [15:49:51]MH_SAM_APDU [15:49:51]CAPDU: 80 0D 02 02 05 C7 E0 7D 91 36 [15:49:51]Write to MH i2c: E2 0D 00 35 0B 80 0D 02 02 05 00 C7 E0 7D 91 36 00 00 AF [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 03 02 [15:49:52]Write to MH i2c: E2 08 00 36 0B 80 0D 03 02 00 00 00 00 BC [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0B 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0B 00 36 0B 00 63 6F 07 F7 E8 81 8B B4 90 00 35 [15:49:52]RAPDU: 63 6F 07 F7 E8 81 8B B4 90 00 [15:49:52]wFMCommunicate OK [15:49:52]SAM_PROTO_SignData done [15:49:52]FM_MakeSignedData done [15:49:52]CreateOFDProtocolMessage [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 11 00 00 [15:49:52]Write to MH i2c: E2 08 00 37 0B 80 11 00 00 00 00 00 00 BC [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 17 00 [15:49:52]MH_I2C_Read... [15:49:52]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 37 35 34 90 00 0F [15:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:52]wFMCommunicate OK [15:49:52]CreateOFDProtocolMessage done [15:49:52]OFDSenderStorePacket 192276 [15:49:52]StoreOFDPacket docnum=192276 [15:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 D7 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 1E 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EF 02 00 35 04 06 00 71 C7 E0 7D 91 36 63 6F 07 F7 E8 81 8B B4 [15:49:52]CheckFolder [15:49:52]dirname=/storage/ofd_packets [15:49:52]CheckFolder done [15:49:52]ProducePacketName [15:49:52]name=ofd_packets/00192276 [15:49:52]NVStorageSaveData ofd_packets/00192276 [15:49:52]File name is /storage/ofd_packets/00192276 [15:49:52]Write 301 bytes [15:49:52]NVStorageSaveData done [15:49:52]OFDSenderStorePacket done [15:49:52]KKMCreateOFDPacket done [15:49:52]NVStorageSaveData kkm_last_timestamp [15:49:52]File name is /storage/kkm_last_timestamp [15:49:52]Write 4 bytes [15:49:52]NVStorageSaveData done [15:49:52]ExternCall_PrintAddStr [15:49:52]wPrintStart [15:49:52]Write to MH i2c: 01 00 00 38 0B 43 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 FF 0F 58 [15:49:52]RasterBufferAndPrint [15:49:52]line Счет N : (1)31590 [15:49:52]line ИНН: 02508201610067 [15:49:52]line Контрольно-Кассовый Чек [15:49:52]line ПРОДАЖА [15:49:52]line ТРК (МРК, ГНК) : 21 [15:49:52]line Товар: 2710124130 [15:49:52]line Аи-92-К-5 [15:49:52]line 7.480 * 66.90 [15:49:52]line = 500.41 [15:49:52]line НДС 12% НСП 1% [15:49:52]line > о реализуемом товаре [15:49:52]line ОКРУГЛЕНИЕ: -0.41 [15:49:52]line ИТОГО: 500.00 [15:49:52]line Внесено: 500.00 [15:49:52]line СДАЧА: 0.00 [15:49:52]line НСП 1% : 4.43 [15:49:52]line НДС 12% : 53.14 [15:49:52]line Наличными: 500.00 [15:49:52]line Безнал.: 0.00 [15:49:52]line Место: АЗС № 170 "Партнер Нефть" [15:49:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:49:52]line СНО: Общий режим [15:49:52]line Чек 308 27.10.2024 15:49 [15:49:52]line Смена: 542 ФФД: 1.0 [15:49:52]line ЗНМ: 0300000110 [15:49:52]line РНМ: 0000000000091776 [15:49:52]line Версия ККМ: 001 [15:49:52]line ФМ: 0000000000871754 [15:49:52]line ФД: 192276 [15:49:52]line ФПД: 125103278756150 [15:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192276&fm=125103278756150&tin=02508201610067®Number=0000000000091776&sum=50000 [15:49:52]OFD Sender: Processing packet 192276 [packets to send 75, broken 74] [15:49:52]ProducePacketName [15:49:52]name=ofd_packets/00192276 [15:49:52]OFD Sender: To server: pG, [15:49:52]CommunicateWithHost lk.salyk.kg:30040 [15:49:52]ConnectInit lk.salyk.kg [15:49:52]written 0, free lines is 4095 [15:49:52]Connected sock=10 [15:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 D7 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 1E 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EF 02 00 35 04 06 00 71 C7 E0 7D 91 36 63 6F 07 F7 E8 81 8B B4 [15:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 21 25 47 00 DB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 EF 02 00 F4 03 04 00 E6 05 1E 67 B6 04 01 00 00 C9 99 9C 20 28 77 08 5E [15:49:52]CommunicateWithHost err = 0 [15:49:52]CheckOFDResponse [15:49:52]1017 (14) - 77093643461234 [15:49:52]1041 (16) - 0000000000871754 [15:49:52]1040 (4) - 192276 [15:49:52]1012 (4) - 27.10.2024 09:20 [15:49:52]1206 (1) - 0 [15:49:52]OFD Sender: Remove packet 192276 [15:49:52]ProducePacketName [15:49:52]name=ofd_packets/00192276 [15:49:52]NVStorageDeleteData [15:49:52]Write to MH i2c: 01 00 00 63 0B 6E [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 B9 0C 3A [15:49:52]RasterBufferAndPrint [15:49:52]line [15:49:52]line [15:49:52]line [15:49:52]line [15:49:52]line [15:49:52]written 0, free lines is 3264 [15:49:52]MH_Cut [15:49:52]Write to MH i2c: D1 01 00 6A 0B 01 47 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: D1 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: D1 01 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: D1 01 00 6A 0B 00 46 [15:49:52]Write to MH i2c: 01 00 00 6B 0B 76 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:53]OFD Sender: No OFD packet to send [15:49:53]*** Cut start [15:49:53]*** Partial cut [15:49:53]*** CUTSNS_PIN = 1 [15:49:53]*** CUTSNS_PIN = 0 [15:49:54]*** Brake cut motor [15:49:54]Read from MH i2c: 01 [15:49:54]MH_I2C_Read... [15:49:54]*** Stop cut motor [15:49:54]*** Cut end [15:49:54]Read from MH i2c: 01 07 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 6B 0B 00 00 00 00 00 FF 0F 8B [15:49:54]process_action close_receipt done [15:49:54]requested_data is exist [15:49:54]produce_requested_data [15:49:54]requested_item fm.sn is exist - process it [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 11 00 00 [15:49:54]Write to MH i2c: E2 08 00 6C 0B 80 11 00 00 00 00 00 00 F1 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 6C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [15:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:49:54]wFMCommunicate OK [15:49:54]requested_item fd.num is exist - process it [15:49:54]SAM_PROTO_GetFieldsCounters [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 13 00 00 [15:49:54]Write to MH i2c: E2 08 00 6D 0B 80 13 00 00 00 00 00 00 F4 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 62 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 62 00 6D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [15:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:54]wFMCommunicate OK [15:49:54]SAM_PROTO_GetFieldsCounters done [15:49:54]requested_item shift.num is exist - process it [15:49:54]requested_item shift.opened is exist - process it [15:49:54]req_shift_opened [15:49:54]FM_GetShiftState [15:49:54]SAM_PROTO_GetShiftState [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 13 01 00 [15:49:54]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0E 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 37 [15:49:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:49:54]wFMCommunicate OK [15:49:54]SAM_PROTO_GetShiftState done [15:49:54]FM_GetShiftState done [15:49:54]req_shift_opened done [15:49:54]requested_item shift.open_date is exist - process it [15:49:54]req_shift_open_date [15:49:54]req_shift_open_date done [15:49:54]produce_requested_data done [15:49:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192276,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:49:54]process_action_free close_receipt [15:49:54]json_value_free [15:49:54]json_value_free done [15:49:54]process_json_proto returns [15:49:54]Send response to host [15:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192276,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:49:54]free response buf [15:49:54]execute_script done [15:49:54]execute_script returns [15:49:54]free content buf [15:49:54]Sock 9.Close socket [15:49:54]Sock 9.Thread stoped [15:49:58]OFD Sender: No OFD packet to send [15:50:02]accept exits with 7 [15:50:02]New connection [15:50:02]New thread 3066936676 created [15:50:02]Thread 3067080036 joined [15:50:02]Waiting for new connection... [15:50:02] Sock 7.Parse request [15:50:02]Sock 7.Check first char [15:50:02]Sock 7.First char is OK [15:50:02]request: POST /json_proto HTTP/1.0 [15:50:02]Method: POST [15:50:02]URL: /json_proto [15:50:02]Method is POST - this is cgi request [15:50:02]url: /json_proto [15:50:02]query_string will be loaded in cgi processing [15:50:02]execute_cgi json_proto POST (null) [15:50:02]execute_cgi path=json_proto method=POST [15:50:02]POST find Content-Length [15:50:02]Host: 172.17.63.131:8080 [15:50:02]Content-Length: 676 [15:50:02]Content-Type: application/json [15:50:02] [15:50:02]POST finish read [15:50:02]Found Content-Length = 676 [15:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:02]execute_script... [15:50: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)31591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:02]POST & json_proto [15:50:02]process_json_proto [15:50:02]json parsed OK: [15:50:02]protocol is kg_v1.0 [15:50:02]action value=close_receipt [15:50:02]process_action close_receipt [15:50:02]cmd_close_receipt [15:50:02]MH_GetDate [15:50:02]Write to MH i2c: F0 00 00 6F 0B 69 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: F0 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: F0 09 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: F0 09 00 6F 0B 00 2A 61 1E 67 22 05 6E 64 7B [15:50:02]GetLastDocTimeStamp 1730044190 [15:50:02]current date 1730044202 [15:50:02]FM_GetShiftState [15:50:02]SAM_PROTO_GetShiftState [15:50:02]wFMCommunicate request_size=4 [15:50:02]MH_SAM_APDU [15:50:02]CAPDU: 80 13 01 00 [15:50:02]Write to MH i2c: E2 08 00 70 0B 80 13 01 00 00 00 00 00 F8 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:02]Read from MH i2c: E2 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 0E 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 0E 00 70 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [15:50:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:50:02]wFMCommunicate OK [15:50:02]SAM_PROTO_GetShiftState done [15:50:02]FM_GetShiftState done [15:50:02]opened in 1729989159 [15:50:02]opened+sec_in_day 1730075559 [15:50:02]quantity*price = 50041 [15:50:02]sum+1 = 50042 [15:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 309 27.10.2024 15:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192277 ФПД: 142365343842735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192277&fm=142365343842735&tin=02508201610067®Number=0000000000091776&sum=50000 [15:50:03]StoreToDocumentArchive [15:50:03]shift 542 fd 192277 [15:50:03]save to /storage/0542/doc_00192277 [15:50:03]save last doc name /storage/0542/doc_00192277 to /storage/kkm_last_doc_name [15:50:03]save OK [15:50:03]Clear old archive folders... [15:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:03]tlvbuf is 002A1C10 [15:50:03]SAM_PROTO_ClearQueue [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 09 00 00 [15:50:03]Write to MH i2c: E2 08 00 7D 0B 80 09 00 00 00 00 00 00 FA [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:03]OFD Sender: No OFD packet to send [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [15:50:03]RAPDU: 90 00 [15:50:03]wFMCommunicate OK [15:50:03]SAM_PROTO_ClearQueue done [15:50:03]KKMCreateOFDPacket [15:50:03]OFDProtocolAddRootSTLVToBuf [15:50:03]FM_MakeSignedData [15:50:03]FM_MakeSignedData [15:50:03]SAM_PROTO_SignData [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 0D 01 02 [15:50:03]Write to MH i2c: E2 08 00 7E 0B 80 0D 01 02 00 00 00 00 02 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [15:50:03]RAPDU: 90 00 [15:50:03]wFMCommunicate OK [15:50:03]wFMCommunicate request_size=255 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2A 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EF 02 00 35 04 06 00 81 [15:50:03]Write to MH i2c: E2 02 01 7F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2A 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EF 02 00 35 04 06 00 81 00 00 83 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [15:50:03]RAPDU: 90 00 [15:50:03]wFMCommunicate OK [15:50:03]wFMCommunicate request_size=10 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 0D 02 02 05 7B 03 BF 81 AF [15:50:03]Write to MH i2c: E2 0D 00 80 0B 80 0D 02 02 05 00 7B 03 BF 81 AF 00 00 7C [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [15:50:03]RAPDU: 90 00 [15:50:03]wFMCommunicate OK [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 0D 03 02 [15:50:03]Write to MH i2c: E2 08 00 81 0B 80 0D 03 02 00 00 00 00 07 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 0B 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 0B 00 81 0B 00 06 37 09 EB 0A E4 38 B7 90 00 16 [15:50:03]RAPDU: 06 37 09 EB 0A E4 38 B7 90 00 [15:50:03]wFMCommunicate OK [15:50:03]SAM_PROTO_SignData done [15:50:03]FM_MakeSignedData done [15:50:03]CreateOFDProtocolMessage [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 11 00 00 [15:50:03]Write to MH i2c: E2 08 00 82 0B 80 11 00 00 00 00 00 00 07 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 17 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 17 00 82 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [15:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:50:03]wFMCommunicate OK [15:50:03]CreateOFDProtocolMessage done [15:50:03]OFDSenderStorePacket 192277 [15:50:03]StoreOFDPacket docnum=192277 [15:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 90 07 01 8D 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2A 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EF 02 00 35 04 06 00 81 7B 03 BF 81 AF 06 37 09 EB 0A E4 38 B7 [15:50:03]CheckFolder [15:50:03]dirname=/storage/ofd_packets [15:50:03]CheckFolder done [15:50:03]ProducePacketName [15:50:03]name=ofd_packets/00192277 [15:50:03]NVStorageSaveData ofd_packets/00192277 [15:50:03]File name is /storage/ofd_packets/00192277 [15:50:03]Write 301 bytes [15:50:03]NVStorageSaveData done [15:50:03]OFDSenderStorePacket done [15:50:03]KKMCreateOFDPacket done [15:50:03]NVStorageSaveData kkm_last_timestamp [15:50:03]File name is /storage/kkm_last_timestamp [15:50:03]Write 4 bytes [15:50:03]NVStorageSaveData done [15:50:03]ExternCall_PrintAddStr [15:50:03]wPrintStart [15:50:03]Write to MH i2c: 01 00 00 83 0B 8E [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 07 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 FF 0F A3 [15:50:03]RasterBufferAndPrint [15:50:03]line Счет N : (1)31591 [15:50:03]line ИНН: 02508201610067 [15:50:03]line Контрольно-Кассовый Чек [15:50:03]line ПРОДАЖА [15:50:03]line ТРК (МРК, ГНК) : 12 [15:50:03]line Товар: 2710124130 [15:50:03]line Аи-92-К-5 [15:50:03]line 7.480 * 66.90 [15:50:03]line = 500.41 [15:50:03]line НДС 12% НСП 1% [15:50:03]line > о реализуемом товаре [15:50:03]line ОКРУГЛЕНИЕ: -0.41 [15:50:03]line ИТОГО: 500.00 [15:50:03]line Внесено: 500.00 [15:50:03]line СДАЧА: 0.00 [15:50:03]line НСП 1% : 4.43 [15:50:03]line НДС 12% : 53.14 [15:50:03]line Наличными: 500.00 [15:50:03]line Безнал.: 0.00 [15:50:03]line Место: АЗС № 170 "Партнер Нефть" [15:50:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:50:03]line СНО: Общий режим [15:50:03]line Чек 309 27.10.2024 15:50 [15:50:03]line Смена: 542 ФФД: 1.0 [15:50:03]line ЗНМ: 0300000110 [15:50:03]line РНМ: 0000000000091776 [15:50:03]line Версия ККМ: 001 [15:50:03]line ФМ: 0000000000871754 [15:50:03]line ФД: 192277 [15:50:03]OFD Sender: Processing packet 192277 [packets to send 75, broken 74] [15:50:03]ProducePacketName [15:50:03]name=ofd_packets/00192277 [15:50:03]OFD Sender: To server: pG, [15:50:03]CommunicateWithHost lk.salyk.kg:30040 [15:50:03]ConnectInit lk.salyk.kg [15:50:03]line ФПД: 142365343842735 [15:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192277&fm=142365343842735&tin=02508201610067®Number=0000000000091776&sum=50000 [15:50:03]written 0, free lines is 4095 [15:50:04]Connected sock=10 [15:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 90 07 01 8D 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2A 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EF 02 00 35 04 06 00 81 7B 03 BF 81 AF 06 37 09 EB 0A E4 38 B7 [15:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 12 47 00 2F 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 EF 02 00 F4 03 04 00 F1 05 1E 67 B6 04 01 00 00 D4 32 07 48 D1 D3 BD E3 [15:50:04]CommunicateWithHost err = 0 [15:50:04]CheckOFDResponse [15:50:04]1017 (14) - 77093643461234 [15:50:04]1041 (16) - 0000000000871754 [15:50:04]1040 (4) - 192277 [15:50:04]1012 (4) - 27.10.2024 09:20 [15:50:04]1206 (1) - 0 [15:50:04]OFD Sender: Remove packet 192277 [15:50:04]ProducePacketName [15:50:04]name=ofd_packets/00192277 [15:50:04]NVStorageDeleteData [15:50:04]Write to MH i2c: 01 00 00 AE 0B B9 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: 01 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: 01 07 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 BE 0C 8A [15:50:04]RasterBufferAndPrint [15:50:04]line [15:50:04]line [15:50:04]line [15:50:04]line [15:50:04]line [15:50:04]written 0, free lines is 3274 [15:50:04]MH_Cut [15:50:04]Write to MH i2c: D1 01 00 B5 0B 01 92 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: D1 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: D1 01 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: D1 01 00 B5 0B 00 91 [15:50:04]Write to MH i2c: 01 00 00 B6 0B C1 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]OFD Sender: No OFD packet to send [15:50:05]*** Cut start [15:50:05]*** Partial cut [15:50:05]*** CUTSNS_PIN = 1 [15:50:05]*** CUTSNS_PIN = 0 [15:50:05]*** Brake cut motor [15:50:05]Read from MH i2c: 01 [15:50:05]MH_I2C_Read... [15:50:05]*** Stop cut motor [15:50:05]*** Cut end [15:50:05]Read from MH i2c: 01 07 00 [15:50:05]MH_I2C_Read... [15:50:05]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 FF 0F D6 [15:50:05]process_action close_receipt done [15:50:05]requested_data is exist [15:50:05]produce_requested_data [15:50:05]requested_item fm.sn is exist - process it [15:50:05]wFMCommunicate request_size=4 [15:50:05]MH_SAM_APDU [15:50:05]CAPDU: 80 11 00 00 [15:50:05]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [15:50:05]Write i2c OK [15:50:05]MH_I2C_Read... [15:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:05]Read from MH i2c: E2 [15:50:05]MH_I2C_Read... [15:50:05]Read from MH i2c: E2 17 00 [15:50:05]MH_I2C_Read... [15:50:05]Read from MH i2c: E2 17 00 B7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [15:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:50:05]wFMCommunicate OK [15:50:05]requested_item fd.num is exist - process it [15:50:05]SAM_PROTO_GetFieldsCounters [15:50:05]wFMCommunicate request_size=4 [15:50:05]MH_SAM_APDU [15:50:05]CAPDU: 80 13 00 00 [15:50:05]Write to MH i2c: E2 08 00 B8 0B 80 13 00 00 00 00 00 00 3F [15:50:05]Write i2c OK [15:50:05]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 62 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 62 00 B8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [15:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_GetFieldsCounters done [15:50:06]requested_item shift.num is exist - process it [15:50:06]requested_item shift.opened is exist - process it [15:50:06]req_shift_opened [15:50:06]FM_GetShiftState [15:50:06]SAM_PROTO_GetShiftState [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 13 01 00 [15:50:06]Write to MH i2c: E2 08 00 B9 0B 80 13 01 00 00 00 00 00 41 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:06]Read from MH i2c: E2 0E 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 0E 00 B9 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 82 [15:50:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_GetShiftState done [15:50:06]FM_GetShiftState done [15:50:06]req_shift_opened done [15:50:06]requested_item shift.open_date is exist - process it [15:50:06]req_shift_open_date [15:50:06]req_shift_open_date done [15:50:06]produce_requested_data done [15:50:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192277,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:50:06]process_action_free close_receipt [15:50:06]json_value_free [15:50:06]json_value_free done [15:50:06]process_json_proto returns [15:50:06]Send response to host [15:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192277,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:50:06]free response buf [15:50:06]execute_script done [15:50:06]execute_script returns [15:50:06]free content buf [15:50:06]Sock 7.Close socket [15:50:06]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]accept exits with 9 [15:53:34]New connection [15:53:34]New thread 3067080036 created [15:53:34]Thread 3066936676 joined [15:53:34]Waiting for new connection... [15:53:34] Sock 9.Parse request [15:53:34]Sock 9.Check first char [15:53:34]Sock 9.First char is OK [15:53:34]request: POST /json_proto HTTP/1.0 [15:53:34]Method: POST [15:53:34]URL: /json_proto [15:53:34]Method is POST - this is cgi request [15:53:34]url: /json_proto [15:53:34]query_string will be loaded in cgi processing [15:53:34]execute_cgi json_proto POST (null) [15:53:34]execute_cgi path=json_proto method=POST [15:53:34]POST find Content-Length [15:53:34]Host: 172.17.63.131:8080 [15:53:34]Content-Length: 676 [15:53:34]Content-Type: application/json [15:53:34] [15:53:34]POST finish read [15:53:34]Found Content-Length = 676 [15:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:34]execute_script... [15:53: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)31592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:34]POST & json_proto [15:53:34]process_json_proto [15:53:34]json parsed OK: [15:53:34]protocol is kg_v1.0 [15:53:34]action value=close_receipt [15:53:34]process_action close_receipt [15:53:34]cmd_close_receipt [15:53:34]MH_GetDate [15:53:34]Write to MH i2c: F0 00 00 BA 0B B4 [15:53:34]Write i2c OK [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: F0 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: F0 09 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: F0 09 00 BA 0B 00 FE 61 1E 67 22 05 6E 64 9A [15:53:34]GetLastDocTimeStamp 1730044202 [15:53:34]current date 1730044414 [15:53:34]FM_GetShiftState [15:53:34]SAM_PROTO_GetShiftState [15:53:34]wFMCommunicate request_size=4 [15:53:34]MH_SAM_APDU [15:53:34]CAPDU: 80 13 01 00 [15:53:34]Write to MH i2c: E2 08 00 BB 0B 80 13 01 00 00 00 00 00 43 [15:53:34]Write i2c OK [15:53:34]MH_I2C_Read... [15:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:34]Read from MH i2c: E2 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 0E 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 0E 00 BB 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [15:53:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:53:34]wFMCommunicate OK [15:53:34]SAM_PROTO_GetShiftState done [15:53:34]FM_GetShiftState done [15:53:34]opened in 1729989159 [15:53:34]opened+sec_in_day 1730075559 [15:53:34]quantity*price = 20003 [15:53:34]sum+1 = 20004 [15:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 310 27.10.2024 15:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192278 ФПД: 203434409620614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155335&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192278&fm=203434409620614&tin=02508201610067®Number=0000000000091776&sum=20000 [15:53:35]StoreToDocumentArchive [15:53:35]shift 542 fd 192278 [15:53:35]save to /storage/0542/doc_00192278 [15:53:35]save last doc name /storage/0542/doc_00192278 to /storage/kkm_last_doc_name [15:53:35]save OK [15:53:35]Clear old archive folders... [15:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:35]tlvbuf is 002FD540 [15:53:35]SAM_PROTO_ClearQueue [15:53:35]wFMCommunicate request_size=4 [15:53:35]MH_SAM_APDU [15:53:35]CAPDU: 80 09 00 00 [15:53:35]Write to MH i2c: E2 08 00 C8 0B 80 09 00 00 00 00 00 00 45 [15:53:35]Write i2c OK [15:53:35]MH_I2C_Read... [15:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:35]Read from MH i2c: E2 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 03 00 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [15:53:35]RAPDU: 90 00 [15:53:35]wFMCommunicate OK [15:53:35]SAM_PROTO_ClearQueue done [15:53:35]KKMCreateOFDPacket [15:53:35]OFDProtocolAddRootSTLVToBuf [15:53:35]FM_MakeSignedData [15:53:35]FM_MakeSignedData [15:53:35]SAM_PROTO_SignData [15:53:35]wFMCommunicate request_size=4 [15:53:35]MH_SAM_APDU [15:53:35]CAPDU: 80 0D 01 02 [15:53:35]Write to MH i2c: E2 08 00 C9 0B 80 0D 01 02 00 00 00 00 4D [15:53:35]Write i2c OK [15:53:35]MH_I2C_Read... [15:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:35]Read from MH i2c: E2 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 03 00 [15:53:35]MH_I2C_Read... [15:53:35]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [15:53:35]RAPDU: 90 00 [15:53:35]wFMCommunicate OK [15:53:35]wFMCommunicate request_size=255 [15:53:35]MH_SAM_APDU [15:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FF 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EF 02 00 35 04 06 00 B9 [15:53:35]Write to MH i2c: E2 02 01 CA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FF 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EF 02 00 35 04 06 00 B9 00 00 9F [15:53:35]Write i2c OK [15:53:35]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]wFMCommunicate request_size=10 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 02 02 05 05 C3 B8 74 86 [15:53:36]Write to MH i2c: E2 0D 00 CB 0B 80 0D 02 02 05 00 05 C3 B8 74 86 00 00 D4 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [15:53:36]RAPDU: 90 00 [15:53:36]wFMCommunicate OK [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 0D 03 02 [15:53:36]Write to MH i2c: E2 08 00 CC 0B 80 0D 03 02 00 00 00 00 52 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 0B 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 0B 00 CC 0B 00 3B 0C 81 67 3A E8 23 B4 90 00 7B [15:53:36]RAPDU: 3B 0C 81 67 3A E8 23 B4 90 00 [15:53:36]wFMCommunicate OK [15:53:36]SAM_PROTO_SignData done [15:53:36]FM_MakeSignedData done [15:53:36]CreateOFDProtocolMessage [15:53:36]wFMCommunicate request_size=4 [15:53:36]MH_SAM_APDU [15:53:36]CAPDU: 80 11 00 00 [15:53:36]Write to MH i2c: E2 08 00 CD 0B 80 11 00 00 00 00 00 00 52 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:36]Read from MH i2c: E2 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 17 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: E2 17 00 CD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [15:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:53:36]wFMCommunicate OK [15:53:36]CreateOFDProtocolMessage done [15:53:36]OFDSenderStorePacket 192278 [15:53:36]StoreOFDPacket docnum=192278 [15:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 DE 07 01 EF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FF 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EF 02 00 35 04 06 00 B9 05 C3 B8 74 86 3B 0C 81 67 3A E8 23 B4 [15:53:36]CheckFolder [15:53:36]dirname=/storage/ofd_packets [15:53:36]CheckFolder done [15:53:36]ProducePacketName [15:53:36]name=ofd_packets/00192278 [15:53:36]NVStorageSaveData ofd_packets/00192278 [15:53:36]File name is /storage/ofd_packets/00192278 [15:53:36]Write 301 bytes [15:53:36]NVStorageSaveData done [15:53:36]OFDSenderStorePacket done [15:53:36]KKMCreateOFDPacket done [15:53:36]NVStorageSaveData kkm_last_timestamp [15:53:36]File name is /storage/kkm_last_timestamp [15:53:36]Write 4 bytes [15:53:36]NVStorageSaveData done [15:53:36]ExternCall_PrintAddStr [15:53:36]wPrintStart [15:53:36]Write to MH i2c: 01 00 00 CE 0B D9 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 FF 0F EE [15:53:36]RasterBufferAndPrint [15:53:36]line Счет N : (1)31592 [15:53:36]line ИНН: 02508201610067 [15:53:36]line Контрольно-Кассовый Чек [15:53:36]line ПРОДАЖА [15:53:36]line ТРК (МРК, ГНК) : 12 [15:53:36]line Товар: 2710124130 [15:53:36]line Аи-92-К-5 [15:53:36]line 2.990 * 66.90 [15:53:36]line = 200.03 [15:53:36]line НДС 12% НСП 1% [15:53:36]line > о реализуемом товаре [15:53:36]line ОКРУГЛЕНИЕ: -0.03 [15:53:36]line ИТОГО: 200.00 [15:53:36]line Внесено: 200.00 [15:53:36]line СДАЧА: 0.00 [15:53:36]line НСП 1% : 1.77 [15:53:36]line НДС 12% : 21.24 [15:53:36]line Наличными: 200.00 [15:53:36]line Безнал.: 0.00 [15:53:36]line Место: АЗС № 170 "Партнер Нефть" [15:53:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:53:36]line СНО: Общий режим [15:53:36]line Чек 310 27.10.2024 15:53 [15:53:36]line Смена: 542 ФФД: 1.0 [15:53:36]line ЗНМ: 0300000110 [15:53:36]line РНМ: 0000000000091776 [15:53:36]line Версия ККМ: 001 [15:53:36]line ФМ: 0000000000871754 [15:53:36]line ФД: 192278 [15:53:36]line ФПД: 203434409620614 [15:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155335&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192278&fm=203434409620614&tin=02508201610067®Number=0000000000091776&sum=20000 [15:53:36]OFD Sender: Processing packet 192278 [packets to send 75, broken 74] [15:53:36]ProducePacketName [15:53:36]name=ofd_packets/00192278 [15:53:36]OFD Sender: To server: pG, [15:53:36]CommunicateWithHost lk.salyk.kg:30040 [15:53:36]ConnectInit lk.salyk.kg [15:53:36]written 0, free lines is 4095 [15:53:36]Connected sock=10 [15:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 DE 07 01 EF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FF 61 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EF 02 00 35 04 06 00 B9 05 C3 B8 74 86 3B 0C 81 67 3A E8 23 B4 [15:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 89 69 47 00 CE DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 EF 02 00 F4 03 04 00 C6 06 1E 67 B6 04 01 00 00 7E BA 55 FA 3C D9 7A 9F [15:53:36]CommunicateWithHost err = 0 [15:53:36]CheckOFDResponse [15:53:36]1017 (14) - 77093643461234 [15:53:36]1041 (16) - 0000000000871754 [15:53:36]1040 (4) - 192278 [15:53:36]1012 (4) - 27.10.2024 09:24 [15:53:36]1206 (1) - 0 [15:53:36]OFD Sender: Remove packet 192278 [15:53:36]ProducePacketName [15:53:36]name=ofd_packets/00192278 [15:53:36]NVStorageDeleteData [15:53:36]Write to MH i2c: 01 00 00 F9 0B 04 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 AE 0C C5 [15:53:36]RasterBufferAndPrint [15:53:36]line [15:53:36]line [15:53:36]line [15:53:36]line [15:53:36]line [15:53:36]written 0, free lines is 3252 [15:53:36]MH_Cut [15:53:36]Write to MH i2c: D1 01 00 00 0C 01 DE [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: D1 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: D1 01 00 [15:53:37]MH_I2C_Read... [15:53:37]Read from MH i2c: D1 01 00 00 0C 00 DD [15:53:37]Write to MH i2c: 01 00 00 01 0C 0D [15:53:37]Write i2c OK [15:53:37]MH_I2C_Read... [15:53:37]OFD Sender: No OFD packet to send [15:53:37]*** Cut start [15:53:37]*** Partial cut [15:53:37]*** CUTSNS_PIN = 1 [15:53:37]*** CUTSNS_PIN = 0 [15:53:38]*** Brake cut motor [15:53:38]Read from MH i2c: 01 [15:53:38]MH_I2C_Read... [15:53:38]*** Stop cut motor [15:53:38]*** Cut end [15:53:38]Read from MH i2c: 01 07 00 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [15:53:38]process_action close_receipt done [15:53:38]requested_data is exist [15:53:38]produce_requested_data [15:53:38]requested_item fm.sn is exist - process it [15:53:38]wFMCommunicate request_size=4 [15:53:38]MH_SAM_APDU [15:53:38]CAPDU: 80 11 00 00 [15:53:38]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [15:53:38]Write i2c OK [15:53:38]MH_I2C_Read... [15:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:38]Read from MH i2c: E2 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 17 00 [15:53:38]MH_I2C_Read... [15:53:38]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 37 35 34 90 00 DB [15:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:53:38]wFMCommunicate OK [15:53:38]requested_item fd.num is exist - process it [15:53:38]SAM_PROTO_GetFieldsCounters [15:53:38]wFMCommunicate request_size=4 [15:53:38]MH_SAM_APDU [15:53:38]CAPDU: 80 13 00 00 [15:53:38]Write to MH i2c: E2 08 00 03 0C 80 13 00 00 00 00 00 00 8B [15:53:38]Write i2c OK [15:53:38]MH_I2C_Read... [15:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:38]Read from MH i2c: E2 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 62 00 [15:53:38]MH_I2C_Read... [15:53:38]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [15:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:38]wFMCommunicate OK [15:53:38]SAM_PROTO_GetFieldsCounters done [15:53:38]requested_item shift.num is exist - process it [15:53:38]requested_item shift.opened is exist - process it [15:53:38]req_shift_opened [15:53:38]FM_GetShiftState [15:53:38]SAM_PROTO_GetShiftState [15:53:38]wFMCommunicate request_size=4 [15:53:38]MH_SAM_APDU [15:53:38]CAPDU: 80 13 01 00 [15:53:38]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [15:53:38]Write i2c OK [15:53:38]MH_I2C_Read... [15:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:38]Read from MH i2c: E2 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 0E 00 [15:53:38]MH_I2C_Read... [15:53:38]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CE [15:53:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:53:38]wFMCommunicate OK [15:53:38]SAM_PROTO_GetShiftState done [15:53:38]FM_GetShiftState done [15:53:38]req_shift_opened done [15:53:38]requested_item shift.open_date is exist - process it [15:53:38]req_shift_open_date [15:53:38]req_shift_open_date done [15:53:38]produce_requested_data done [15:53:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192278,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:53:38]process_action_free close_receipt [15:53:38]json_value_free [15:53:38]json_value_free done [15:53:38]process_json_proto returns [15:53:38]Send response to host [15:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192278,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:53:38]free response buf [15:53:38]execute_script done [15:53:38]execute_script returns [15:53:38]free content buf [15:53:38]Sock 9.Close socket [15:53:38]Sock 9.Thread stoped [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:50]accept exits with 7 [15:55:50]New connection [15:55:50]New thread 3066936676 created [15:55:50]Thread 3067080036 joined [15:55:50]Waiting for new connection... [15:55:50] Sock 7.Parse request [15:55:50]Sock 7.Check first char [15:55:50]Sock 7.First char is OK [15:55:50]request: POST /json_proto HTTP/1.0 [15:55:50]Method: POST [15:55:50]URL: /json_proto [15:55:50]Method is POST - this is cgi request [15:55:50]url: /json_proto [15:55:50]query_string will be loaded in cgi processing [15:55:50]execute_cgi json_proto POST (null) [15:55:50]execute_cgi path=json_proto method=POST [15:55:50]POST find Content-Length [15:55:50]Host: 172.17.63.131:8080 [15:55:50]Content-Length: 681 [15:55:50]Content-Type: application/json [15:55:50] [15:55:50]POST finish read [15:55:50]Found Content-Length = 681 [15:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:50]execute_script... [15:55: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)31593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:50]POST & json_proto [15:55:50]process_json_proto [15:55:50]json parsed OK: [15:55:50]protocol is kg_v1.0 [15:55:50]action value=close_receipt [15:55:50]process_action close_receipt [15:55:50]cmd_close_receipt [15:55:50]MH_GetDate [15:55:50]Write to MH i2c: F0 00 00 05 0C 00 [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: F0 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: F0 09 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: F0 09 00 05 0C 00 86 62 1E 67 22 05 6E 64 6F [15:55:50]GetLastDocTimeStamp 1730044415 [15:55:50]current date 1730044550 [15:55:50]FM_GetShiftState [15:55:50]SAM_PROTO_GetShiftState [15:55:50]wFMCommunicate request_size=4 [15:55:50]MH_SAM_APDU [15:55:50]CAPDU: 80 13 01 00 [15:55:50]Write to MH i2c: E2 08 00 06 0C 80 13 01 00 00 00 00 00 8F [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:50]Read from MH i2c: E2 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 0E 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 0E 00 06 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D0 [15:55:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:55:50]wFMCommunicate OK [15:55:50]SAM_PROTO_GetShiftState done [15:55:50]FM_GetShiftState done [15:55:50]opened in 1729989159 [15:55:50]opened+sec_in_day 1730075559 [15:55:50]quantity*price = 100015 [15:55:50]sum+1 = 100017 [15:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 311 27.10.2024 15:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192279 ФПД: 211137308863888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192279&fm=211137308863888&tin=02508201610067®Number=0000000000091776&sum=100000 [15:55:51]StoreToDocumentArchive [15:55:51]shift 542 fd 192279 [15:55:51]save to /storage/0542/doc_00192279 [15:55:51]save last doc name /storage/0542/doc_00192279 to /storage/kkm_last_doc_name [15:55:51]save OK [15:55:51]Clear old archive folders... [15:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:51]tlvbuf is 00328140 [15:55:51]SAM_PROTO_ClearQueue [15:55:51]wFMCommunicate request_size=4 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 09 00 00 [15:55:51]Write to MH i2c: E2 08 00 13 0C 80 09 00 00 00 00 00 00 91 [15:55:51]Write i2c OK [15:55:51]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 13 0C 00 90 00 93 [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 14 0C 80 0D 01 02 00 00 00 00 99 [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 14 0C 00 90 00 94 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 62 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EF 02 00 35 04 06 00 C0 [15:55:51]Write to MH i2c: E2 02 01 15 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 62 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EF 02 00 35 04 06 00 C0 00 00 B4 [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 15 0C 00 90 00 95 [15:55:51]RAPDU: 90 00 [15:55:51]wFMCommunicate OK [15:55:51]wFMCommunicate request_size=10 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 0D 02 02 05 07 3C 4B 2D 90 [15:55:51]Write to MH i2c: E2 0D 00 16 0C 80 0D 02 02 05 00 07 3C 4B 2D 90 00 00 F1 [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 16 0C 00 90 00 96 [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 17 0C 80 0D 03 02 00 00 00 00 9E [15:55:51]Write i2c OK [15:55:51]MH_I2C_Read... [15:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:51]Read from MH i2c: E2 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 0B 00 [15:55:51]MH_I2C_Read... [15:55:51]Read from MH i2c: E2 0B 00 17 0C 00 CA CF 42 DF 32 CE 48 BF 90 00 60 [15:55:51]RAPDU: CA CF 42 DF 32 CE 48 BF 90 00 [15:55:51]wFMCommunicate OK [15:55:51]SAM_PROTO_SignData done [15:55:51]FM_MakeSignedData done [15:55:51]CreateOFDProtocolMessage [15:55:51]wFMCommunicate request_size=4 [15:55:51]MH_SAM_APDU [15:55:51]CAPDU: 80 11 00 00 [15:55:51]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [15:55:51]Write i2c OK [15:55:51]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 18 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [15:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:55:52]wFMCommunicate OK [15:55:52]CreateOFDProtocolMessage done [15:55:52]OFDSenderStorePacket 192279 [15:55:52]StoreOFDPacket docnum=192279 [15:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 F4 07 01 50 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 62 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EF 02 00 35 04 06 00 C0 07 3C 4B 2D 90 CA CF 42 DF 32 CE 48 BF [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/00192279 [15:55:52]NVStorageSaveData ofd_packets/00192279 [15:55:52]File name is /storage/ofd_packets/00192279 [15:55:52]Write 301 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 19 0C 25 [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 19 0C 00 00 00 00 00 FF 0F 3A [15:55:52]RasterBufferAndPrint [15:55:52]line Счет N : (1)31593 [15:55:52]line ИНН: 02508201610067 [15:55:52]line Контрольно-Кассовый Чек [15:55:52]line ПРОДАЖА [15:55:52]line ТРК (МРК, ГНК) : 12 [15:55:52]line Товар: 2710124130 [15:55:52]line Аи-92-К-5 [15:55:52]line 14.950 * 66.90 [15:55:52]line = 1000.16 [15:55:52]line НДС 12% НСП 1% [15:55:52]line > о реализуемом товаре [15:55:52]line ОКРУГЛЕНИЕ: -0.16 [15:55:52]line ИТОГО: 1000.00 [15:55:52]line Внесено: 1000.00 [15:55:52]line СДАЧА: 0.00 [15:55:52]line НСП 1% : 8.85 [15:55:52]line НДС 12% : 106.21 [15:55:52]line Наличными: 1000.00 [15:55:52]line Безнал.: 0.00 [15:55:52]line Место: АЗС № 170 "Партнер Нефть" [15:55:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:55:52]line СНО: Общий режим [15:55:52]line Чек 311 27.10.2024 15:55 [15:55:52]line Смена: 542 ФФД: 1.0 [15:55:52]line ЗНМ: 0300000110 [15:55:52]line РНМ: 0000000000091776 [15:55:52]line Версия ККМ: 001 [15:55:52]line ФМ: 0000000000871754 [15:55:52]line ФД: 192279 [15:55:52]line ФПД: 211137308863888 [15:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192279&fm=211137308863888&tin=02508201610067®Number=0000000000091776&sum=100000 [15:55:52]OFD Sender: Processing packet 192279 [packets to send 75, broken 74] [15:55:52]ProducePacketName [15:55:52]name=ofd_packets/00192279 [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]written 0, free lines is 4095 [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 37 35 34 0F 01 00 00 11 F4 07 01 50 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 62 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EF 02 00 35 04 06 00 C0 07 3C 4B 2D 90 CA CF 42 DF 32 CE 48 BF [15:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 FC 47 00 BF DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 EF 02 00 F4 03 04 00 4E 07 1E 67 B6 04 01 00 00 8C EA DB C5 70 9D 1D D4 [15:55:52]CommunicateWithHost err = 0 [15:55:52]CheckOFDResponse [15:55:52]1017 (14) - 77093643461234 [15:55:52]1041 (16) - 0000000000871754 [15:55:52]1040 (4) - 192279 [15:55:52]1012 (4) - 27.10.2024 09:26 [15:55:52]1206 (1) - 0 [15:55:52]OFD Sender: Remove packet 192279 [15:55:52]ProducePacketName [15:55:52]name=ofd_packets/00192279 [15:55:52]NVStorageDeleteData [15:55:52]Write to MH i2c: 01 00 00 44 0C 50 [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 44 0C 00 00 00 00 00 B6 0C 19 [15:55:52]RasterBufferAndPrint [15:55:52]line [15:55:52]line [15:55:52]line [15:55:52]line [15:55:52]line [15:55:52]written 0, free lines is 3262 [15:55:52]MH_Cut [15:55:52]Write to MH i2c: D1 01 00 4B 0C 01 29 [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: D1 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: D1 01 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: D1 01 00 4B 0C 00 28 [15:55:52]Write to MH i2c: 01 00 00 4C 0C 58 [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:53]OFD Sender: No OFD packet to send [15:55:53]*** Cut start [15:55:53]*** Partial cut [15:55:53]*** CUTSNS_PIN = 1 [15:55:53]*** CUTSNS_PIN = 0 [15:55:54]*** Brake cut motor [15:55:54]Read from MH i2c: 01 [15:55:54]MH_I2C_Read... [15:55:54]*** Stop cut motor [15:55:54]*** Cut end [15:55:54]Read from MH i2c: 01 07 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [15:55:54]process_action close_receipt done [15:55:54]requested_data is exist [15:55:54]produce_requested_data [15:55:54]requested_item fm.sn is exist - process it [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 11 00 00 [15:55:54]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 17 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [15:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:55:54]wFMCommunicate OK [15:55:54]requested_item fd.num is exist - process it [15:55:54]SAM_PROTO_GetFieldsCounters [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 13 00 00 [15:55:54]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 62 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 62 00 4E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [15:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:54]wFMCommunicate OK [15:55:54]SAM_PROTO_GetFieldsCounters done [15:55:54]requested_item shift.num is exist - process it [15:55:54]requested_item shift.opened is exist - process it [15:55:54]req_shift_opened [15:55:54]FM_GetShiftState [15:55:54]SAM_PROTO_GetShiftState [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 13 01 00 [15:55:54]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 0E 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [15:55:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:55:54]wFMCommunicate OK [15:55:54]SAM_PROTO_GetShiftState done [15:55:54]FM_GetShiftState done [15:55:54]req_shift_opened done [15:55:54]requested_item shift.open_date is exist - process it [15:55:54]req_shift_open_date [15:55:54]req_shift_open_date done [15:55:54]produce_requested_data done [15:55:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192279,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:55:54]process_action_free close_receipt [15:55:54]json_value_free [15:55:54]json_value_free done [15:55:54]process_json_proto returns [15:55:54]Send response to host [15:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192279,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:55:54]free response buf [15:55:54]execute_script done [15:55:54]execute_script returns [15:55:54]free content buf [15:55:54]Sock 7.Close socket [15:55:54]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:04]accept exits with 9 [15:58:04]New connection [15:58:04]New thread 3067080036 created [15:58:04]Thread 3066936676 joined [15:58:04]Waiting for new connection... [15:58:04] Sock 9.Parse request [15:58:04]Sock 9.Check first char [15:58:04]Sock 9.First char is OK [15:58:04]request: POST /json_proto HTTP/1.0 [15:58:04]Method: POST [15:58:04]URL: /json_proto [15:58:04]Method is POST - this is cgi request [15:58:04]url: /json_proto [15:58:04]query_string will be loaded in cgi processing [15:58:04]execute_cgi json_proto POST (null) [15:58:04]execute_cgi path=json_proto method=POST [15:58:04]POST find Content-Length [15:58:04]Host: 172.17.63.131:8080 [15:58:04]Content-Length: 681 [15:58:04]Content-Type: application/json [15:58:04] [15:58:04]POST finish read [15:58:04]Found Content-Length = 681 [15:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:04]execute_script... [15:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:04]POST & json_proto [15:58:04]process_json_proto [15:58:04]json parsed OK: [15:58:04]protocol is kg_v1.0 [15:58:04]action value=close_receipt [15:58:04]process_action close_receipt [15:58:04]cmd_close_receipt [15:58:04]MH_GetDate [15:58:04]Write to MH i2c: F0 00 00 50 0C 4B [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: F0 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: F0 09 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: F0 09 00 50 0C 00 0D 63 1E 67 22 05 6E 64 42 [15:58:04]GetLastDocTimeStamp 1730044550 [15:58:04]current date 1730044685 [15:58:04]FM_GetShiftState [15:58:04]SAM_PROTO_GetShiftState [15:58:04]wFMCommunicate request_size=4 [15:58:04]MH_SAM_APDU [15:58:04]CAPDU: 80 13 01 00 [15:58:04]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [15:58:04]Write i2c OK [15:58:04]MH_I2C_Read... [15:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:04]Read from MH i2c: E2 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 0E 00 [15:58:04]MH_I2C_Read... [15:58:04]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [15:58:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:58:04]wFMCommunicate OK [15:58:04]SAM_PROTO_GetShiftState done [15:58:04]FM_GetShiftState done [15:58:04]opened in 1729989159 [15:58:04]opened+sec_in_day 1730075559 [15:58:04]quantity*price = 100015 [15:58:04]sum+1 = 100017 [15:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 312 27.10.2024 15:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192280 ФПД: 35440617353832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155805&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192280&fm=35440617353832&tin=02508201610067®Number=0000000000091776&sum=100000 [15:58:05]StoreToDocumentArchive [15:58:05]shift 542 fd 192280 [15:58:05]save to /storage/0542/doc_00192280 [15:58:05]save last doc name /storage/0542/doc_00192280 to /storage/kkm_last_doc_name [15:58:05]save OK [15:58:05]Clear old archive folders... [15:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:05]tlvbuf is 002FD2B0 [15:58:05]SAM_PROTO_ClearQueue [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 09 00 00 [15:58:05]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 03 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [15:58:05]RAPDU: 90 00 [15:58:05]wFMCommunicate OK [15:58:05]SAM_PROTO_ClearQueue done [15:58:05]KKMCreateOFDPacket [15:58:05]OFDProtocolAddRootSTLVToBuf [15:58:05]FM_MakeSignedData [15:58:05]FM_MakeSignedData [15:58:05]SAM_PROTO_SignData [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 0D 01 02 [15:58:05]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 03 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [15:58:05]RAPDU: 90 00 [15:58:05]wFMCommunicate OK [15:58:05]wFMCommunicate request_size=255 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 0D 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EF 02 00 35 04 06 00 20 [15:58:05]Write to MH i2c: E2 02 01 60 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 0D 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EF 02 00 35 04 06 00 20 00 00 E9 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [15:58:06]RAPDU: 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=10 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 0D 02 02 05 3B A9 68 72 68 [15:58:06]Write to MH i2c: E2 0D 00 61 0C 80 0D 02 02 05 00 3B A9 68 72 68 00 00 17 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [15:58:06]RAPDU: 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 0D 03 02 [15:58:06]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 0B 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 0B 00 62 0C 00 8D 5B 01 2B 7B 6C B4 0B 90 00 A4 [15:58:06]RAPDU: 8D 5B 01 2B 7B 6C B4 0B 90 00 [15:58:06]wFMCommunicate OK [15:58:06]SAM_PROTO_SignData done [15:58:06]FM_MakeSignedData done [15:58:06]CreateOFDProtocolMessage [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 11 00 00 [15:58:06]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 17 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [15:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:58:06]wFMCommunicate OK [15:58:06]CreateOFDProtocolMessage done [15:58:06]OFDSenderStorePacket 192280 [15:58:06]StoreOFDPacket docnum=192280 [15:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 5D 07 01 77 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 0D 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EF 02 00 35 04 06 00 20 3B A9 68 72 68 8D 5B 01 2B 7B 6C B4 0B [15:58:06]CheckFolder [15:58:06]dirname=/storage/ofd_packets [15:58:06]CheckFolder done [15:58:06]ProducePacketName [15:58:06]name=ofd_packets/00192280 [15:58:06]NVStorageSaveData ofd_packets/00192280 [15:58:06]File name is /storage/ofd_packets/00192280 [15:58:06]Write 301 bytes [15:58:06]NVStorageSaveData done [15:58:06]OFDSenderStorePacket done [15:58:06]KKMCreateOFDPacket done [15:58:06]NVStorageSaveData kkm_last_timestamp [15:58:06]File name is /storage/kkm_last_timestamp [15:58:06]Write 4 bytes [15:58:06]NVStorageSaveData done [15:58:06]ExternCall_PrintAddStr [15:58:06]wPrintStart [15:58:06]Write to MH i2c: 01 00 00 64 0C 70 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: 01 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: 01 07 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [15:58:06]RasterBufferAndPrint [15:58:06]line Счет N : (1)31594 [15:58:06]line ИНН: 02508201610067 [15:58:06]line Контрольно-Кассовый Чек [15:58:06]line ПРОДАЖА [15:58:06]line ТРК (МРК, ГНК) : 12 [15:58:06]line Товар: 2710124130 [15:58:06]line Аи-92-К-5 [15:58:06]line 14.950 * 66.90 [15:58:06]line = 1000.16 [15:58:06]line НДС 12% НСП 1% [15:58:06]line > о реализуемом товаре [15:58:06]line ОКРУГЛЕНИЕ: -0.16 [15:58:06]line ИТОГО: 1000.00 [15:58:06]line Внесено: 1000.00 [15:58:06]line СДАЧА: 0.00 [15:58:06]line НСП 1% : 8.85 [15:58:06]line НДС 12% : 106.21 [15:58:06]line Наличными: 1000.00 [15:58:06]line Безнал.: 0.00 [15:58:06]line Место: АЗС № 170 "Партнер Нефть" [15:58:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:58:06]line СНО: Общий режим [15:58:06]line Чек 312 27.10.2024 15:58 [15:58:06]line Смена: 542 ФФД: 1.0 [15:58:06]line ЗНМ: 0300000110 [15:58:06]line РНМ: 0000000000091776 [15:58:06]line Версия ККМ: 001 [15:58:06]line ФМ: 0000000000871754 [15:58:06]line ФД: 192280 [15:58:06]line ФПД: 35440617353832 [15:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155805&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192280&fm=35440617353832&tin=02508201610067®Number=0000000000091776&sum=100000 [15:58:06]OFD Sender: Processing packet 192280 [packets to send 75, broken 74] [15:58:06]ProducePacketName [15:58:06]name=ofd_packets/00192280 [15:58:06]OFD Sender: To server: pG, [15:58:06]CommunicateWithHost lk.salyk.kg:30040 [15:58:06]ConnectInit lk.salyk.kg [15:58:06]written 0, free lines is 4095 [15:58:06]Connected sock=10 [15:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 5D 07 01 77 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 0D 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EF 02 00 35 04 06 00 20 3B A9 68 72 68 8D 5B 01 2B 7B 6C B4 0B [15:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 BE 47 00 AF AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 EF 02 00 F4 03 04 00 D4 07 1E 67 B6 04 01 00 00 34 29 DE 3D 1D AB 36 59 [15:58:06]CommunicateWithHost err = 0 [15:58:06]CheckOFDResponse [15:58:06]1017 (14) - 77093643461234 [15:58:06]1041 (16) - 0000000000871754 [15:58:06]1040 (4) - 192280 [15:58:06]1012 (4) - 27.10.2024 09:28 [15:58:06]1206 (1) - 0 [15:58:06]OFD Sender: Remove packet 192280 [15:58:06]ProducePacketName [15:58:06]name=ofd_packets/00192280 [15:58:06]NVStorageDeleteData [15:58:07]Write to MH i2c: 01 00 00 8F 0C 9B [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 8F 0C 00 00 00 00 00 A5 0C 53 [15:58:07]RasterBufferAndPrint [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]written 0, free lines is 3242 [15:58:07]MH_Cut [15:58:07]Write to MH i2c: D1 01 00 96 0C 01 74 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: D1 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: D1 01 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: D1 01 00 96 0C 00 73 [15:58:07]Write to MH i2c: 01 00 00 97 0C A3 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]OFD Sender: No OFD packet to send [15:58:07]*** Cut start [15:58:07]*** Partial cut [15:58:07]*** CUTSNS_PIN = 1 [15:58:07]*** CUTSNS_PIN = 0 [15:58:08]*** Brake cut motor [15:58:08]Read from MH i2c: 01 [15:58:08]MH_I2C_Read... [15:58:08]*** Stop cut motor [15:58:08]*** Cut end [15:58:08]Read from MH i2c: 01 07 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [15:58:08]process_action close_receipt done [15:58:08]requested_data is exist [15:58:08]produce_requested_data [15:58:08]requested_item fm.sn is exist - process it [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 11 00 00 [15:58:08]Write to MH i2c: E2 08 00 98 0C 80 11 00 00 00 00 00 00 1E [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 17 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 17 00 98 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [15:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:58:08]wFMCommunicate OK [15:58:08]requested_item fd.num is exist - process it [15:58:08]SAM_PROTO_GetFieldsCounters [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 13 00 00 [15:58:08]Write to MH i2c: E2 08 00 99 0C 80 13 00 00 00 00 00 00 21 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 62 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 62 00 99 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:08]wFMCommunicate OK [15:58:08]SAM_PROTO_GetFieldsCounters done [15:58:08]requested_item shift.num is exist - process it [15:58:08]requested_item shift.opened is exist - process it [15:58:08]req_shift_opened [15:58:08]FM_GetShiftState [15:58:08]SAM_PROTO_GetShiftState [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 13 01 00 [15:58:08]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0E 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 64 [15:58:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:58:08]wFMCommunicate OK [15:58:08]SAM_PROTO_GetShiftState done [15:58:08]FM_GetShiftState done [15:58:08]req_shift_opened done [15:58:08]requested_item shift.open_date is exist - process it [15:58:08]req_shift_open_date [15:58:08]req_shift_open_date done [15:58:08]produce_requested_data done [15:58:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192280,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:58:08]process_action_free close_receipt [15:58:08]json_value_free [15:58:08]json_value_free done [15:58:08]process_json_proto returns [15:58:08]Send response to host [15:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192280,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:58:08]free response buf [15:58:08]execute_script done [15:58:08]execute_script returns [15:58:08]free content buf [15:58:08]Sock 9.Close socket [15:58:08]Sock 9.Thread stoped [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:13]accept exits with 7 [15:59:13]New connection [15:59:13]New thread 3066936676 created [15:59:13]Thread 3067080036 joined [15:59:13]Waiting for new connection... [15:59:13] Sock 7.Parse request [15:59:13]Sock 7.Check first char [15:59:13]Sock 7.First char is OK [15:59:13]request: POST /json_proto HTTP/1.0 [15:59:13]Method: POST [15:59:13]URL: /json_proto [15:59:13]Method is POST - this is cgi request [15:59:13]url: /json_proto [15:59:13]query_string will be loaded in cgi processing [15:59:13]execute_cgi json_proto POST (null) [15:59:13]execute_cgi path=json_proto method=POST [15:59:13]POST find Content-Length [15:59:13]Host: 172.17.63.131:8080 [15:59:13]Content-Length: 677 [15:59:13]Content-Type: application/json [15:59:13] [15:59:13]POST finish read [15:59:13]Found Content-Length = 677 [15:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:13]execute_script... [15:59:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:13]POST & json_proto [15:59:13]process_json_proto [15:59:13]json parsed OK: [15:59:13]protocol is kg_v1.0 [15:59:13]action value=close_receipt [15:59:13]process_action close_receipt [15:59:13]cmd_close_receipt [15:59:13]MH_GetDate [15:59:13]Write to MH i2c: F0 00 00 9B 0C 96 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 09 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 09 00 9B 0C 00 52 63 1E 67 22 05 6E 64 D2 [15:59:13]GetLastDocTimeStamp 1730044685 [15:59:13]current date 1730044754 [15:59:13]FM_GetShiftState [15:59:13]SAM_PROTO_GetShiftState [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 01 00 [15:59:13]Write to MH i2c: E2 08 00 9C 0C 80 13 01 00 00 00 00 00 25 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 9C 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [15:59:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetShiftState done [15:59:13]FM_GetShiftState done [15:59:13]opened in 1729989159 [15:59:13]opened+sec_in_day 1730075559 [15:59:13]quantity*price = 70044 [15:59:13]sum+1 = 70045 [15:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 313 27.10.2024 15:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192281 ФПД: 3500565273738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155914&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192281&fm=3500565273738&tin=02508201610067®Number=0000000000091776&sum=70000 [15:59:14]StoreToDocumentArchive [15:59:14]shift 542 fd 192281 [15:59:14]save to /storage/0542/doc_00192281 [15:59:14]save last doc name /storage/0542/doc_00192281 to /storage/kkm_last_doc_name [15:59:14]save OK [15:59:14]Clear old archive folders... [15:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:14]tlvbuf is 0030A760 [15:59:14]SAM_PROTO_ClearQueue [15:59:14]wFMCommunicate request_size=4 [15:59:14]MH_SAM_APDU [15:59:14]CAPDU: 80 09 00 00 [15:59:14]Write to MH i2c: E2 08 00 A9 0C 80 09 00 00 00 00 00 00 27 [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:14]Read from MH i2c: E2 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [15:59:14]RAPDU: 90 00 [15:59:14]wFMCommunicate OK [15:59:14]SAM_PROTO_ClearQueue done [15:59:14]KKMCreateOFDPacket [15:59:14]OFDProtocolAddRootSTLVToBuf [15:59:14]FM_MakeSignedData [15:59:14]FM_MakeSignedData [15:59:14]SAM_PROTO_SignData [15:59:14]wFMCommunicate request_size=4 [15:59:14]MH_SAM_APDU [15:59:14]CAPDU: 80 0D 01 02 [15:59:14]Write to MH i2c: E2 08 00 AA 0C 80 0D 01 02 00 00 00 00 2F [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:14]Read from MH i2c: E2 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [15:59:14]RAPDU: 90 00 [15:59:14]wFMCommunicate OK [15:59:14]wFMCommunicate request_size=255 [15:59:14]MH_SAM_APDU [15:59:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 52 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EF 02 00 35 04 06 00 03 [15:59:14]Write to MH i2c: E2 02 01 AB 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 39 01 00 00 F4 03 04 00 52 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EF 02 00 35 04 06 00 03 00 00 74 [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [15:59:15]RAPDU: 90 00 [15:59:15]wFMCommunicate OK [15:59:15]wFMCommunicate request_size=10 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 0D 02 02 05 2F 09 F3 1C 8A [15:59:15]Write to MH i2c: E2 0D 00 AC 0C 80 0D 02 02 05 00 2F 09 F3 1C 8A 00 00 0D [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [15:59:15]RAPDU: 90 00 [15:59:15]wFMCommunicate OK [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 0D 03 02 [15:59:15]Write to MH i2c: E2 08 00 AD 0C 80 0D 03 02 00 00 00 00 34 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0B 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0B 00 AD 0C 00 76 02 09 D0 78 3A DD BD 90 00 D2 [15:59:15]RAPDU: 76 02 09 D0 78 3A DD BD 90 00 [15:59:15]wFMCommunicate OK [15:59:15]SAM_PROTO_SignData done [15:59:15]FM_MakeSignedData done [15:59:15]CreateOFDProtocolMessage [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 11 00 00 [15:59:15]Write to MH i2c: E2 08 00 AE 0C 80 11 00 00 00 00 00 00 34 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 17 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 17 00 AE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [15:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:59:15]wFMCommunicate OK [15:59:15]CreateOFDProtocolMessage done [15:59:15]OFDSenderStorePacket 192281 [15:59:15]StoreOFDPacket docnum=192281 [15:59:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 3F 07 01 B0 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 52 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EF 02 00 35 04 06 00 03 2F 09 F3 1C 8A 76 02 09 D0 78 3A DD BD [15:59:15]CheckFolder [15:59:15]dirname=/storage/ofd_packets [15:59:15]CheckFolder done [15:59:15]ProducePacketName [15:59:15]name=ofd_packets/00192281 [15:59:15]NVStorageSaveData ofd_packets/00192281 [15:59:15]File name is /storage/ofd_packets/00192281 [15:59:15]Write 301 bytes [15:59:15]NVStorageSaveData done [15:59:15]OFDSenderStorePacket done [15:59:15]KKMCreateOFDPacket done [15:59:15]NVStorageSaveData kkm_last_timestamp [15:59:15]File name is /storage/kkm_last_timestamp [15:59:15]Write 4 bytes [15:59:15]NVStorageSaveData done [15:59:15]OFD Sender: Processing packet 192281 [packets to send 75, broken 74] [15:59:15]ProducePacketName [15:59:15]name=ofd_packets/00192281 [15:59:15]OFD Sender: To server: pG, [15:59:15]CommunicateWithHost lk.salyk.kg:30040 [15:59:15]ConnectInit lk.salyk.kg [15:59:15]ExternCall_PrintAddStr [15:59:15]wPrintStart [15:59:15]Write to MH i2c: 01 00 00 AF 0C BB [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: 01 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: 01 07 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: 01 07 00 AF 0C 00 00 00 00 00 FF 0F D0 [15:59:15]RasterBufferAndPrint [15:59:15]line Счет N : (1)31595 [15:59:15]line ИНН: 02508201610067 [15:59:15]line Контрольно-Кассовый Чек [15:59:15]line ПРОДАЖА [15:59:15]line ТРК (МРК, ГНК) : 21 [15:59:15]line Товар: 2710124130 [15:59:15]line Аи-92-К-5 [15:59:15]line 10.470 * 66.90 [15:59:15]line = 700.44 [15:59:15]line НДС 12% НСП 1% [15:59:15]line > о реализуемом товаре [15:59:15]line ОКРУГЛЕНИЕ: -0.44 [15:59:15]line ИТОГО: 700.00 [15:59:15]line Внесено: 700.00 [15:59:15]line СДАЧА: 0.00 [15:59:15]line НСП 1% : 6.20 [15:59:15]line НДС 12% : 74.38 [15:59:15]line Наличными: 700.00 [15:59:15]line Безнал.: 0.00 [15:59:15]line Место: АЗС № 170 "Партнер Нефть" [15:59:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:59:15]line СНО: Общий режим [15:59:15]line Чек 313 27.10.2024 15:59 [15:59:15]line Смена: 542 ФФД: 1.0 [15:59:15]line ЗНМ: 0300000110 [15:59:15]line РНМ: 0000000000091776 [15:59:15]line Версия ККМ: 001 [15:59:15]line ФМ: 0000000000871754 [15:59:15]line ФД: 192281 [15:59:15]line ФПД: 3500565273738 [15:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155914&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192281&fm=3500565273738&tin=02508201610067®Number=0000000000091776&sum=70000 [15:59:15]Connected sock=11 [15:59:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 3F 07 01 B0 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 52 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EF 02 00 35 04 06 00 03 2F 09 F3 1C 8A 76 02 09 D0 78 3A DD BD [15:59:15]written 0, free lines is 4095 [15:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 61 47 00 87 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 EF 02 00 F4 03 04 00 19 08 1E 67 B6 04 01 00 00 9C 52 77 92 65 F8 76 A8 [15:59:15]CommunicateWithHost err = 0 [15:59:15]CheckOFDResponse [15:59:15]1017 (14) - 77093643461234 [15:59:15]1041 (16) - 0000000000871754 [15:59:15]1040 (4) - 192281 [15:59:15]1012 (4) - 27.10.2024 09:30 [15:59:15]1206 (1) - 0 [15:59:15]OFD Sender: Remove packet 192281 [15:59:15]ProducePacketName [15:59:15]name=ofd_packets/00192281 [15:59:15]NVStorageDeleteData [15:59:16]Write to MH i2c: 01 00 00 DA 0C E6 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 07 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 07 00 DA 0C 00 00 00 00 00 AD 0C A6 [15:59:16]RasterBufferAndPrint [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]written 0, free lines is 3251 [15:59:16]MH_Cut [15:59:16]Write to MH i2c: D1 01 00 E1 0C 01 BF [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 01 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 01 00 E1 0C 00 BE [15:59:16]Write to MH i2c: 01 00 00 E2 0C EE [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]OFD Sender: No OFD packet to send [15:59:16]*** Cut start [15:59:16]*** Partial cut [15:59:16]*** CUTSNS_PIN = 1 [15:59:17]*** CUTSNS_PIN = 0 [15:59:17]*** Brake cut motor [15:59:17]Read from MH i2c: 01 [15:59:17]MH_I2C_Read... [15:59:17]*** Stop cut motor [15:59:17]*** Cut end [15:59:17]Read from MH i2c: 01 07 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: 01 07 00 E2 0C 00 00 00 00 00 FF 0F 03 [15:59:17]process_action close_receipt done [15:59:17]requested_data is exist [15:59:17]produce_requested_data [15:59:17]requested_item fm.sn is exist - process it [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 11 00 00 [15:59:17]Write to MH i2c: E2 08 00 E3 0C 80 11 00 00 00 00 00 00 69 [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 E3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [15:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:59:17]wFMCommunicate OK [15:59:17]requested_item fd.num is exist - process it [15:59:17]SAM_PROTO_GetFieldsCounters [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 13 00 00 [15:59:17]Write to MH i2c: E2 08 00 E4 0C 80 13 00 00 00 00 00 00 6C [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 62 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 62 00 E4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:17]wFMCommunicate OK [15:59:17]SAM_PROTO_GetFieldsCounters done [15:59:17]requested_item shift.num is exist - process it [15:59:17]requested_item shift.opened is exist - process it [15:59:17]req_shift_opened [15:59:17]FM_GetShiftState [15:59:17]SAM_PROTO_GetShiftState [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 13 01 00 [15:59:17]Write to MH i2c: E2 08 00 E5 0C 80 13 01 00 00 00 00 00 6E [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 0E 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 0E 00 E5 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AF [15:59:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [15:59:17]wFMCommunicate OK [15:59:17]SAM_PROTO_GetShiftState done [15:59:17]FM_GetShiftState done [15:59:17]req_shift_opened done [15:59:17]requested_item shift.open_date is exist - process it [15:59:17]req_shift_open_date [15:59:17]req_shift_open_date done [15:59:17]produce_requested_data done [15:59:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192281,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [15:59:17]process_action_free close_receipt [15:59:17]json_value_free [15:59:17]json_value_free done [15:59:17]process_json_proto returns [15:59:17]Send response to host [15:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192281,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [15:59:17]free response buf [15:59:17]execute_script done [15:59:17]execute_script returns [15:59:17]free content buf [15:59:17]Sock 7.Close socket [15:59:17]Sock 7.Thread stoped [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:19]accept exits with 9 [16:00:19]New connection [16:00:19]New thread 3067080036 created [16:00:19]Thread 3066936676 joined [16:00:19]Waiting for new connection... [16:00:19] Sock 9.Parse request [16:00:19]Sock 9.Check first char [16:00:19]Sock 9.First char is OK [16:00:19]request: POST /json_proto HTTP/1.0 [16:00:19]Method: POST [16:00:19]URL: /json_proto [16:00:19]Method is POST - this is cgi request [16:00:19]url: /json_proto [16:00:19]query_string will be loaded in cgi processing [16:00:19]execute_cgi json_proto POST (null) [16:00:19]execute_cgi path=json_proto method=POST [16:00:19]POST find Content-Length [16:00:19]Host: 172.17.63.131:8080 [16:00:19]Content-Length: 677 [16:00:19]Content-Type: application/json [16:00:19] [16:00:19]POST finish read [16:00:19]Found Content-Length = 677 [16:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:19]execute_script... [16:00: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)31596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:19]POST & json_proto [16:00:19]process_json_proto [16:00:19]json parsed OK: [16:00:19]protocol is kg_v1.0 [16:00:19]action value=close_receipt [16:00:19]process_action close_receipt [16:00:19]cmd_close_receipt [16:00:19]MH_GetDate [16:00:19]Write to MH i2c: F0 00 00 E6 0C E1 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 09 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 09 00 E6 0C 00 93 63 1E 67 22 05 6E 64 5E [16:00:19]GetLastDocTimeStamp 1730044754 [16:00:19]current date 1730044819 [16:00:19]FM_GetShiftState [16:00:19]SAM_PROTO_GetShiftState [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 13 01 00 [16:00:19]Write to MH i2c: E2 08 00 E7 0C 80 13 01 00 00 00 00 00 70 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 E7 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [16:00:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetShiftState done [16:00:19]FM_GetShiftState done [16:00:19]opened in 1729989159 [16:00:19]opened+sec_in_day 1730075559 [16:00:19]quantity*price = 70044 [16:00:19]sum+1 = 70045 [16:00:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 314 27.10.2024 16:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192282 ФПД: 110017516054289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160019&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192282&fm=110017516054289&tin=02508201610067®Number=0000000000091776&sum=70000 [16:00:20]StoreToDocumentArchive [16:00:20]shift 542 fd 192282 [16:00:20]save to /storage/0542/doc_00192282 [16:00:20]save last doc name /storage/0542/doc_00192282 to /storage/kkm_last_doc_name [16:00:20]save OK [16:00:20]Clear old archive folders... [16:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:20]tlvbuf is 0033B970 [16:00:20]SAM_PROTO_ClearQueue [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 09 00 00 [16:00:20]Write to MH i2c: E2 08 00 F4 0C 80 09 00 00 00 00 00 00 72 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_ClearQueue done [16:00:20]KKMCreateOFDPacket [16:00:20]OFDProtocolAddRootSTLVToBuf [16:00:20]FM_MakeSignedData [16:00:20]FM_MakeSignedData [16:00:20]SAM_PROTO_SignData [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 01 02 [16:00:20]Write to MH i2c: E2 08 00 F5 0C 80 0D 01 02 00 00 00 00 7A [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=255 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 93 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EF 02 00 35 04 06 00 64 [16:00:20]Write to MH i2c: E2 02 01 F6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 93 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EF 02 00 35 04 06 00 64 00 00 63 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=10 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 02 02 05 0F 72 F6 A7 11 [16:00:20]Write to MH i2c: E2 0D 00 F7 0C 80 0D 02 02 05 00 0F 72 F6 A7 11 00 00 B6 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 03 02 [16:00:20]Write to MH i2c: E2 08 00 F8 0C 80 0D 03 02 00 00 00 00 7F [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 F8 0C 00 94 51 9C 48 E2 75 DA E6 90 00 60 [16:00:20]RAPDU: 94 51 9C 48 E2 75 DA E6 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_SignData done [16:00:20]FM_MakeSignedData done [16:00:20]CreateOFDProtocolMessage [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 11 00 00 [16:00:20]Write to MH i2c: E2 08 00 F9 0C 80 11 00 00 00 00 00 00 7F [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 F9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [16:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:20]wFMCommunicate OK [16:00:20]CreateOFDProtocolMessage done [16:00:20]OFDSenderStorePacket 192282 [16:00:20]StoreOFDPacket docnum=192282 [16:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 20 07 01 01 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 93 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EF 02 00 35 04 06 00 64 0F 72 F6 A7 11 94 51 9C 48 E2 75 DA E6 [16:00:20]CheckFolder [16:00:20]dirname=/storage/ofd_packets [16:00:20]CheckFolder done [16:00:20]ProducePacketName [16:00:20]name=ofd_packets/00192282 [16:00:20]NVStorageSaveData ofd_packets/00192282 [16:00:20]File name is /storage/ofd_packets/00192282 [16:00:20]Write 301 bytes [16:00:20]NVStorageSaveData done [16:00:20]OFDSenderStorePacket done [16:00:20]KKMCreateOFDPacket done [16:00:20]NVStorageSaveData kkm_last_timestamp [16:00:20]File name is /storage/kkm_last_timestamp [16:00:20]Write 4 bytes [16:00:20]NVStorageSaveData done [16:00:20]ExternCall_PrintAddStr [16:00:20]wPrintStart [16:00:20]Write to MH i2c: 01 00 00 FA 0C 06 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 FA 0C 00 00 00 00 00 FF 0F 1B [16:00:20]RasterBufferAndPrint [16:00:20]line Счет N : (1)31596 [16:00:20]line ИНН: 02508201610067 [16:00:20]line Контрольно-Кассовый Чек [16:00:20]line ПРОДАЖА [16:00:20]line ТРК (МРК, ГНК) : 12 [16:00:20]line Товар: 2710124130 [16:00:20]line Аи-92-К-5 [16:00:20]line 10.470 * 66.90 [16:00:20]line = 700.44 [16:00:20]line НДС 12% НСП 1% [16:00:20]line > о реализуемом товаре [16:00:20]line ОКРУГЛЕНИЕ: -0.44 [16:00:20]line ИТОГО: 700.00 [16:00:20]line Внесено: 700.00 [16:00:20]line СДАЧА: 0.00 [16:00:20]line НСП 1% : 6.20 [16:00:20]line НДС 12% : 74.38 [16:00:20]line Наличными: 700.00 [16:00:20]line Безнал.: 0.00 [16:00:20]line Место: АЗС № 170 "Партнер Нефть" [16:00:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:00:20]line СНО: Общий режим [16:00:20]line Чек 314 27.10.2024 16:00 [16:00:20]line Смена: 542 ФФД: 1.0 [16:00:20]line ЗНМ: 0300000110 [16:00:20]line РНМ: 0000000000091776 [16:00:20]line Версия ККМ: 001 [16:00:20]line ФМ: 0000000000871754 [16:00:20]line ФД: 192282 [16:00:20]line ФПД: 110017516054289 [16:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160019&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192282&fm=110017516054289&tin=02508201610067®Number=0000000000091776&sum=70000 [16:00:21]OFD Sender: Processing packet 192282 [packets to send 75, broken 74] [16:00:21]ProducePacketName [16:00:21]name=ofd_packets/00192282 [16:00:21]OFD Sender: To server: pG, [16:00:21]CommunicateWithHost lk.salyk.kg:30040 [16:00:21]ConnectInit lk.salyk.kg [16:00:21]written 0, free lines is 4095 [16:00:21]Connected sock=10 [16:00:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 20 07 01 01 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 93 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EF 02 00 35 04 06 00 64 0F 72 F6 A7 11 94 51 9C 48 E2 75 DA E6 [16:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC 92 47 00 D4 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A EF 02 00 F4 03 04 00 5A 08 1E 67 B6 04 01 00 00 7E 9C EE D3 18 AB 74 94 [16:00:21]CommunicateWithHost err = 0 [16:00:21]CheckOFDResponse [16:00:21]1017 (14) - 77093643461234 [16:00:21]1041 (16) - 0000000000871754 [16:00:21]1040 (4) - 192282 [16:00:21]1012 (4) - 27.10.2024 09:31 [16:00:21]1206 (1) - 0 [16:00:21]OFD Sender: Remove packet 192282 [16:00:21]ProducePacketName [16:00:21]name=ofd_packets/00192282 [16:00:21]NVStorageDeleteData [16:00:21]Write to MH i2c: 01 00 00 25 0D 32 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 25 0D 00 00 00 00 00 A4 0C E9 [16:00:21]RasterBufferAndPrint [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]written 0, free lines is 3242 [16:00:21]MH_Cut [16:00:21]Write to MH i2c: D1 01 00 2C 0D 01 0B [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 2C 0D 00 0A [16:00:21]Write to MH i2c: 01 00 00 2D 0D 3A [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]OFD Sender: No OFD packet to send [16:00:22]*** Cut start [16:00:22]*** Partial cut [16:00:22]*** CUTSNS_PIN = 1 [16:00:22]*** CUTSNS_PIN = 0 [16:00:22]*** Brake cut motor [16:00:23]Read from MH i2c: 01 [16:00:23]MH_I2C_Read... [16:00:23]*** Stop cut motor [16:00:23]*** Cut end [16:00:23]Read from MH i2c: 01 07 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 FF 0F 4F [16:00:23]process_action close_receipt done [16:00:23]requested_data is exist [16:00:23]produce_requested_data [16:00:23]requested_item fm.sn is exist - process it [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 11 00 00 [16:00:23]Write to MH i2c: E2 08 00 2E 0D 80 11 00 00 00 00 00 00 B5 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 17 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 17 00 2E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [16:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:23]wFMCommunicate OK [16:00:23]requested_item fd.num is exist - process it [16:00:23]SAM_PROTO_GetFieldsCounters [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 00 00 [16:00:23]Write to MH i2c: E2 08 00 2F 0D 80 13 00 00 00 00 00 00 B8 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 2F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [16:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetFieldsCounters done [16:00:23]requested_item shift.num is exist - process it [16:00:23]requested_item shift.opened is exist - process it [16:00:23]req_shift_opened [16:00:23]FM_GetShiftState [16:00:23]SAM_PROTO_GetShiftState [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 01 00 [16:00:23]Write to MH i2c: E2 08 00 30 0D 80 13 01 00 00 00 00 00 BA [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 30 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [16:00:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetShiftState done [16:00:23]FM_GetShiftState done [16:00:23]req_shift_opened done [16:00:23]requested_item shift.open_date is exist - process it [16:00:23]req_shift_open_date [16:00:23]req_shift_open_date done [16:00:23]produce_requested_data done [16:00:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192282,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:00:23]process_action_free close_receipt [16:00:23]json_value_free [16:00:23]json_value_free done [16:00:23]process_json_proto returns [16:00:23]Send response to host [16:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192282,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:00:23]free response buf [16:00:23]execute_script done [16:00:23]execute_script returns [16:00:23]free content buf [16:00:23]Sock 9.Close socket [16:00:23]Sock 9.Thread stoped [16:00:26]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:46]accept exits with 7 [16:01:46]New connection [16:01:46]New thread 3066936676 created [16:01:46]Thread 3067080036 joined [16:01:46]Waiting for new connection... [16:01:46] Sock 7.Parse request [16:01:46]Sock 7.Check first char [16:01:46]Sock 7.First char is OK [16:01:46]request: POST /json_proto HTTP/1.0 [16:01:46]Method: POST [16:01:46]URL: /json_proto [16:01:46]Method is POST - this is cgi request [16:01:46]url: /json_proto [16:01:46]query_string will be loaded in cgi processing [16:01:46]execute_cgi json_proto POST (null) [16:01:46]execute_cgi path=json_proto method=POST [16:01:46]POST find Content-Length [16:01:46]Host: 172.17.63.131:8080 [16:01:46]Content-Length: 676 [16:01:46]Content-Type: application/json [16:01:46] [16:01:46]POST finish read [16:01:46]Found Content-Length = 676 [16:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:46]execute_script... [16:01: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)31598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:46]POST & json_proto [16:01:46]process_json_proto [16:01:46]json parsed OK: [16:01:46]protocol is kg_v1.0 [16:01:46]action value=close_receipt [16:01:46]process_action close_receipt [16:01:46]cmd_close_receipt [16:01:46]MH_GetDate [16:01:46]Write to MH i2c: F0 00 00 31 0D 2D [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 09 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 09 00 31 0D 00 EA 63 1E 67 22 05 6E 64 01 [16:01:46]GetLastDocTimeStamp 1730044819 [16:01:46]current date 1730044906 [16:01:46]FM_GetShiftState [16:01:46]SAM_PROTO_GetShiftState [16:01:46]wFMCommunicate request_size=4 [16:01:46]MH_SAM_APDU [16:01:46]CAPDU: 80 13 01 00 [16:01:46]Write to MH i2c: E2 08 00 32 0D 80 13 01 00 00 00 00 00 BC [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:46]Read from MH i2c: E2 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 0E 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 0E 00 32 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [16:01:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:01:46]wFMCommunicate OK [16:01:46]SAM_PROTO_GetShiftState done [16:01:46]FM_GetShiftState done [16:01:46]opened in 1729989159 [16:01:46]opened+sec_in_day 1730075559 [16:01:46]quantity*price = 50041 [16:01:46]sum+1 = 50042 [16:01:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 315 27.10.2024 16:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192283 ФПД: 198760597861392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192283&fm=198760597861392&tin=02508201610067®Number=0000000000091776&sum=50000 [16:01:47]StoreToDocumentArchive [16:01:47]shift 542 fd 192283 [16:01:47]save to /storage/0542/doc_00192283 [16:01:47]save last doc name /storage/0542/doc_00192283 to /storage/kkm_last_doc_name [16:01:47]save OK [16:01:47]Clear old archive folders... [16:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:47]tlvbuf is 00337040 [16:01:47]SAM_PROTO_ClearQueue [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 09 00 00 [16:01:47]Write to MH i2c: E2 08 00 3F 0D 80 09 00 00 00 00 00 00 BE [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_ClearQueue done [16:01:47]KKMCreateOFDPacket [16:01:47]OFDProtocolAddRootSTLVToBuf [16:01:47]FM_MakeSignedData [16:01:47]FM_MakeSignedData [16:01:47]SAM_PROTO_SignData [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 01 02 [16:01:47]Write to MH i2c: E2 08 00 40 0D 80 0D 01 02 00 00 00 00 C6 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=255 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 EA 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EF 02 00 35 04 06 00 B4 [16:01:47]Write to MH i2c: E2 02 01 41 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 EA 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EF 02 00 35 04 06 00 B4 00 00 48 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=10 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 02 02 05 C5 8E D4 B4 10 [16:01:47]Write to MH i2c: E2 0D 00 42 0D 80 0D 02 02 05 00 C5 8E D4 B4 10 00 00 BE [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 03 02 [16:01:47]Write to MH i2c: E2 08 00 43 0D 80 0D 03 02 00 00 00 00 CB [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0B 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0B 00 43 0D 00 92 C2 FF D8 04 24 A8 0A 90 00 D1 [16:01:47]RAPDU: 92 C2 FF D8 04 24 A8 0A 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_SignData done [16:01:47]FM_MakeSignedData done [16:01:47]CreateOFDProtocolMessage [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 11 00 00 [16:01:47]Write to MH i2c: E2 08 00 44 0D 80 11 00 00 00 00 00 00 CB [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 17 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 17 00 44 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [16:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:01:47]wFMCommunicate OK [16:01:47]CreateOFDProtocolMessage done [16:01:47]OFDSenderStorePacket 192283 [16:01:47]StoreOFDPacket docnum=192283 [16:01:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F DE 07 01 AB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 EA 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EF 02 00 35 04 06 00 B4 C5 8E D4 B4 10 92 C2 FF D8 04 24 A8 0A [16:01:47]CheckFolder [16:01:47]dirname=/storage/ofd_packets [16:01:47]CheckFolder done [16:01:47]ProducePacketName [16:01:47]name=ofd_packets/00192283 [16:01:47]NVStorageSaveData ofd_packets/00192283 [16:01:47]File name is /storage/ofd_packets/00192283 [16:01:47]Write 301 bytes [16:01:47]NVStorageSaveData done [16:01:47]OFDSenderStorePacket done [16:01:47]KKMCreateOFDPacket done [16:01:47]NVStorageSaveData kkm_last_timestamp [16:01:47]File name is /storage/kkm_last_timestamp [16:01:47]Write 4 bytes [16:01:47]NVStorageSaveData done [16:01:47]ExternCall_PrintAddStr [16:01:47]wPrintStart [16:01:47]Write to MH i2c: 01 00 00 45 0D 52 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 07 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 FF 0F 67 [16:01:47]RasterBufferAndPrint [16:01:47]line Счет N : (1)31598 [16:01:47]line ИНН: 02508201610067 [16:01:47]line Контрольно-Кассовый Чек [16:01:47]line ПРОДАЖА [16:01:47]line ТРК (МРК, ГНК) : 12 [16:01:47]line Товар: 2710124130 [16:01:47]line Аи-92-К-5 [16:01:47]line 7.480 * 66.90 [16:01:47]line = 500.41 [16:01:47]line НДС 12% НСП 1% [16:01:47]line > о реализуемом товаре [16:01:47]line ОКРУГЛЕНИЕ: -0.41 [16:01:47]line ИТОГО: 500.00 [16:01:47]line Внесено: 500.00 [16:01:47]line СДАЧА: 0.00 [16:01:47]line НСП 1% : 4.43 [16:01:47]line НДС 12% : 53.14 [16:01:47]line Наличными: 500.00 [16:01:47]line Безнал.: 0.00 [16:01:47]line Место: АЗС № 170 "Партнер Нефть" [16:01:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:01:47]line СНО: Общий режим [16:01:47]line Чек 315 27.10.2024 16:01 [16:01:47]line Смена: 542 ФФД: 1.0 [16:01:47]line ЗНМ: 0300000110 [16:01:47]line РНМ: 0000000000091776 [16:01:47]line Версия ККМ: 001 [16:01:47]line ФМ: 0000000000871754 [16:01:47]line ФД: 192283 [16:01:47]line ФПД: 198760597861392 [16:01:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192283&fm=198760597861392&tin=02508201610067®Number=0000000000091776&sum=50000 [16:01:48]OFD Sender: Processing packet 192283 [packets to send 75, broken 74] [16:01:48]ProducePacketName [16:01:48]name=ofd_packets/00192283 [16:01:48]OFD Sender: To server: pG, [16:01:48]CommunicateWithHost lk.salyk.kg:30040 [16:01:48]ConnectInit lk.salyk.kg [16:01:48]written 0, free lines is 4095 [16:01:48]Connected sock=10 [16:01:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F DE 07 01 AB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 EA 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EF 02 00 35 04 06 00 B4 C5 8E D4 B4 10 92 C2 FF D8 04 24 A8 0A [16:01:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 98 8B 47 00 43 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B EF 02 00 F4 03 04 00 B2 08 1E 67 B6 04 01 00 00 7B 33 4A B5 DB E7 88 99 [16:01:48]CommunicateWithHost err = 0 [16:01:48]CheckOFDResponse [16:01:48]1017 (14) - 77093643461234 [16:01:48]1041 (16) - 0000000000871754 [16:01:48]1040 (4) - 192283 [16:01:48]1012 (4) - 27.10.2024 09:32 [16:01:48]1206 (1) - 0 [16:01:48]OFD Sender: Remove packet 192283 [16:01:48]ProducePacketName [16:01:48]name=ofd_packets/00192283 [16:01:48]NVStorageDeleteData [16:01:48]Write to MH i2c: 01 00 00 70 0D 7D [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 07 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 07 00 70 0D 00 00 00 00 00 A7 0C 37 [16:01:48]RasterBufferAndPrint [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]written 0, free lines is 3245 [16:01:48]MH_Cut [16:01:48]Write to MH i2c: D1 01 00 77 0D 01 56 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 01 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 01 00 77 0D 00 55 [16:01:48]Write to MH i2c: 01 00 00 78 0D 85 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:49]OFD Sender: No OFD packet to send [16:01:49]*** Cut start [16:01:49]*** Partial cut [16:01:49]*** CUTSNS_PIN = 1 [16:01:49]*** CUTSNS_PIN = 0 [16:01:49]*** Brake cut motor [16:01:50]Read from MH i2c: 01 [16:01:50]MH_I2C_Read... [16:01:50]*** Stop cut motor [16:01:50]*** Cut end [16:01:50]Read from MH i2c: 01 07 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 FF 0F 9A [16:01:50]process_action close_receipt done [16:01:50]requested_data is exist [16:01:50]produce_requested_data [16:01:50]requested_item fm.sn is exist - process it [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 11 00 00 [16:01:50]Write to MH i2c: E2 08 00 79 0D 80 11 00 00 00 00 00 00 00 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 17 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 17 00 79 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:01:50]wFMCommunicate OK [16:01:50]requested_item fd.num is exist - process it [16:01:50]SAM_PROTO_GetFieldsCounters [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 13 00 00 [16:01:50]Write to MH i2c: E2 08 00 7A 0D 80 13 00 00 00 00 00 00 03 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 62 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 62 00 7A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [16:01:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_GetFieldsCounters done [16:01:50]requested_item shift.num is exist - process it [16:01:50]requested_item shift.opened is exist - process it [16:01:50]req_shift_opened [16:01:50]FM_GetShiftState [16:01:50]SAM_PROTO_GetShiftState [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 13 01 00 [16:01:50]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 46 [16:01:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_GetShiftState done [16:01:50]FM_GetShiftState done [16:01:50]req_shift_opened done [16:01:50]requested_item shift.open_date is exist - process it [16:01:50]req_shift_open_date [16:01:50]req_shift_open_date done [16:01:50]produce_requested_data done [16:01:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192283,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:01:50]process_action_free close_receipt [16:01:50]json_value_free [16:01:50]json_value_free done [16:01:50]process_json_proto returns [16:01:50]Send response to host [16:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192283,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:01:50]free response buf [16:01:50]execute_script done [16:01:50]execute_script returns [16:01:50]free content buf [16:01:50]Sock 7.Close socket [16:01:50]Sock 7.Thread stoped [16:01:50]accept exits with 9 [16:01:50]New connection [16:01:50]New thread 3067080036 created [16:01:50]Thread 3066936676 joined [16:01:50]Waiting for new connection... [16:01:50] Sock 9.Parse request [16:01:50]Sock 9.Check first char [16:01:50]Sock 9.First char is OK [16:01:50]request: POST /json_proto HTTP/1.0 [16:01:50]Method: POST [16:01:50]URL: /json_proto [16:01:50]Method is POST - this is cgi request [16:01:50]url: /json_proto [16:01:50]query_string will be loaded in cgi processing [16:01:50]execute_cgi json_proto POST (null) [16:01:50]execute_cgi path=json_proto method=POST [16:01:50]POST find Content-Length [16:01:50]Host: 172.17.63.131:8080 [16:01:50]Content-Length: 678 [16:01:50]Content-Type: application/json [16:01:50] [16:01:50]POST finish read [16:01:50]Found Content-Length = 678 [16:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31597", "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" : 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" ] } } [16:01:50]execute_script... [16:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31597", "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" : 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" ] } } [16:01:50]POST & json_proto [16:01:50]process_json_proto [16:01:50]json parsed OK: [16:01:50]protocol is kg_v1.0 [16:01:50]action value=close_receipt [16:01:50]process_action close_receipt [16:01:50]cmd_close_receipt [16:01:50]MH_GetDate [16:01:50]Write to MH i2c: F0 00 00 7C 0D 78 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 09 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 09 00 7C 0D 00 EF 63 1E 67 22 05 6E 64 51 [16:01:50]GetLastDocTimeStamp 1730044906 [16:01:50]current date 1730044911 [16:01:50]FM_GetShiftState [16:01:50]SAM_PROTO_GetShiftState [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 13 01 00 [16:01:50]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [16:01:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_GetShiftState done [16:01:50]FM_GetShiftState done [16:01:50]opened in 1729989159 [16:01:50]opened+sec_in_day 1730075559 [16:01:50]quantity*price = 150037 [16:01:50]sum+1 = 150039 [16:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 316 27.10.2024 16:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192284 ФПД: 248760472976981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192284&fm=248760472976981&tin=02508201610067®Number=0000000000091776&sum=150000 [16:01:52]StoreToDocumentArchive [16:01:52]shift 542 fd 192284 [16:01:52]save to /storage/0542/doc_00192284 [16:01:52]save last doc name /storage/0542/doc_00192284 to /storage/kkm_last_doc_name [16:01:52]save OK [16:01:52]Clear old archive folders... [16:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:52]tlvbuf is 00346A70 [16:01:52]SAM_PROTO_ClearQueue [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 09 00 00 [16:01:52]Write to MH i2c: E2 08 00 8A 0D 80 09 00 00 00 00 00 00 09 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [16:01:52]RAPDU: 90 00 [16:01:52]wFMCommunicate OK [16:01:52]SAM_PROTO_ClearQueue done [16:01:52]KKMCreateOFDPacket [16:01:52]OFDProtocolAddRootSTLVToBuf [16:01:52]FM_MakeSignedData [16:01:52]FM_MakeSignedData [16:01:52]SAM_PROTO_SignData [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 0D 01 02 [16:01:52]Write to MH i2c: E2 08 00 8B 0D 80 0D 01 02 00 00 00 00 11 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [16:01:52]RAPDU: 90 00 [16:01:52]wFMCommunicate OK [16:01:52]wFMCommunicate request_size=255 [16:01:52]MH_SAM_APDU [16:01: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 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 3C 01 00 00 F4 03 04 00 EF 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EF 02 00 35 04 06 00 E2 3F 0F A0 [16:01:52]Write to MH i2c: E2 02 01 8C 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 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 3C 01 00 00 F4 03 04 00 EF 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EF 02 00 35 04 06 00 E2 3F 0F A0 00 00 23 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [16:01:52]RAPDU: 90 00 [16:01:52]wFMCommunicate OK [16:01:52]wFMCommunicate request_size=7 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 0D 02 02 02 3E 55 [16:01:52]Write to MH i2c: E2 0A 00 8D 0D 80 0D 02 02 02 00 3E 55 00 00 AB [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [16:01:52]RAPDU: 90 00 [16:01:52]wFMCommunicate OK [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 0D 03 02 [16:01:52]Write to MH i2c: E2 08 00 8E 0D 80 0D 03 02 00 00 00 00 16 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0B 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0B 00 8E 0D 00 19 C8 D2 12 1E 10 A7 9C 90 00 4D [16:01:52]RAPDU: 19 C8 D2 12 1E 10 A7 9C 90 00 [16:01:52]wFMCommunicate OK [16:01:52]SAM_PROTO_SignData done [16:01:52]FM_MakeSignedData done [16:01:52]CreateOFDProtocolMessage [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 11 00 00 [16:01:52]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 17 00 [16:01:52]MH_I2C_Read... [16:01:52]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 37 35 34 90 00 69 [16:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:01:52]wFMCommunicate OK [16:01:52]CreateOFDProtocolMessage done [16:01:52]OFDSenderStorePacket 192284 [16:01:52]StoreOFDPacket docnum=192284 [16:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E1 45 04 01 0F 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 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 3C 01 00 00 F4 03 04 00 EF 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EF 02 00 35 04 06 00 E2 3F 0F A0 3E 55 19 C8 D2 12 1E 10 A7 9C [16:01:53]CheckFolder [16:01:53]dirname=/storage/ofd_packets [16:01:53]CheckFolder done [16:01:53]ProducePacketName [16:01:53]name=ofd_packets/00192284 [16:01:53]NVStorageSaveData ofd_packets/00192284 [16:01:53]File name is /storage/ofd_packets/00192284 [16:01:53]Write 298 bytes [16:01:53]NVStorageSaveData done [16:01:53]OFDSenderStorePacket done [16:01:53]KKMCreateOFDPacket done [16:01:53]NVStorageSaveData kkm_last_timestamp [16:01:53]File name is /storage/kkm_last_timestamp [16:01:53]Write 4 bytes [16:01:53]NVStorageSaveData done [16:01:53]ExternCall_PrintAddStr [16:01:53]wPrintStart [16:01:53]Write to MH i2c: 01 00 00 90 0D 9D [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [16:01:53]RasterBufferAndPrint [16:01:53]line Счет N : (1)31597 [16:01:53]line ИНН: 02508201610067 [16:01:53]line Контрольно-Кассовый Чек [16:01:53]line ПРОДАЖА [16:01:53]line ТРК (МРК, ГНК) : 11 [16:01:53]line Товар: 2710194210 [16:01:53]line ДТ-К-5 [16:01:53]line 19.690 * 76.20 [16:01:53]line = 1500.38 [16:01:53]line НДС 12% НСП 1% [16:01:53]line > о реализуемом товаре [16:01:53]line ОКРУГЛЕНИЕ: -0.38 [16:01:53]line ИТОГО: 1500.00 [16:01:53]line Внесено: 1500.00 [16:01:53]line СДАЧА: 0.00 [16:01:53]line НСП 1% : 13.28 [16:01:53]line НДС 12% : 159.33 [16:01:53]line Наличными: 1500.00 [16:01:53]line Безнал.: 0.00 [16:01:53]line Место: АЗС № 170 "Партнер Нефть" [16:01:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:01:53]line СНО: Общий режим [16:01:53]line Чек 316 27.10.2024 16:01 [16:01:53]line Смена: 542 ФФД: 1.0 [16:01:53]line ЗНМ: 0300000110 [16:01:53]line РНМ: 0000000000091776 [16:01:53]line Версия ККМ: 001 [16:01:53]line ФМ: 0000000000871754 [16:01:53]line ФД: 192284 [16:01:53]line ФПД: 248760472976981 [16:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192284&fm=248760472976981&tin=02508201610067®Number=0000000000091776&sum=150000 [16:01:53]written 0, free lines is 4095 [16:01:53]OFD Sender: Processing packet 192284 [packets to send 75, broken 74] [16:01:53]ProducePacketName [16:01:53]name=ofd_packets/00192284 [16:01:53]OFD Sender: To server: pG, [16:01:53]CommunicateWithHost lk.salyk.kg:30040 [16:01:53]ConnectInit lk.salyk.kg [16:01:53]Connected sock=10 [16:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E1 45 04 01 0F 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 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 3C 01 00 00 F4 03 04 00 EF 63 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EF 02 00 35 04 06 00 E2 3F 0F A0 3E 55 19 C8 D2 12 1E 10 A7 9C [16:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 94 6C 47 00 F4 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C EF 02 00 F4 03 04 00 B6 08 1E 67 B6 04 01 00 00 61 8C 59 FA 39 D9 FA D2 [16:01:53]CommunicateWithHost err = 0 [16:01:53]CheckOFDResponse [16:01:53]1017 (14) - 77093643461234 [16:01:53]1041 (16) - 0000000000871754 [16:01:53]1040 (4) - 192284 [16:01:53]1012 (4) - 27.10.2024 09:32 [16:01:53]1206 (1) - 0 [16:01:53]OFD Sender: Remove packet 192284 [16:01:53]ProducePacketName [16:01:53]name=ofd_packets/00192284 [16:01:53]NVStorageDeleteData [16:01:53]Write to MH i2c: 01 00 00 BB 0D C8 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 B0 0C 8B [16:01:53]RasterBufferAndPrint [16:01:53]line [16:01:53]line [16:01:53]line [16:01:53]line [16:01:53]line [16:01:53]written 0, free lines is 3260 [16:01:53]MH_Cut [16:01:53]Write to MH i2c: D1 01 00 C2 0D 01 A1 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: D1 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: D1 01 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: D1 01 00 C2 0D 00 A0 [16:01:53]Write to MH i2c: 01 00 00 C3 0D D0 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]OFD Sender: No OFD packet to send [16:01:54]*** Cut start [16:01:54]*** Partial cut [16:01:54]*** CUTSNS_PIN = 1 [16:01:54]*** CUTSNS_PIN = 0 [16:01:54]*** Brake cut motor [16:01:54]Read from MH i2c: 01 [16:01:54]MH_I2C_Read... [16:01:54]*** Stop cut motor [16:01:54]*** Cut end [16:01:54]Read from MH i2c: 01 07 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [16:01:54]process_action close_receipt done [16:01:54]requested_data is exist [16:01:54]produce_requested_data [16:01:54]requested_item fm.sn is exist - process it [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 11 00 00 [16:01:54]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 [16:01:55]MH_I2C_Read... [16:01:55]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 37 35 34 90 00 9E [16:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:01:55]wFMCommunicate OK [16:01:55]requested_item fd.num is exist - process it [16:01:55]SAM_PROTO_GetFieldsCounters [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 13 00 00 [16:01:55]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 62 00 [16:01:55]MH_I2C_Read... [16:01:55]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_GetFieldsCounters done [16:01:55]requested_item shift.num is exist - process it [16:01:55]requested_item shift.opened is exist - process it [16:01:55]req_shift_opened [16:01:55]FM_GetShiftState [16:01:55]SAM_PROTO_GetShiftState [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 13 01 00 [16:01:55]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0E 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 91 [16:01:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_GetShiftState done [16:01:55]FM_GetShiftState done [16:01:55]req_shift_opened done [16:01:55]requested_item shift.open_date is exist - process it [16:01:55]req_shift_open_date [16:01:55]req_shift_open_date done [16:01:55]produce_requested_data done [16:01:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192284,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:01:55]process_action_free close_receipt [16:01:55]json_value_free [16:01:55]json_value_free done [16:01:55]process_json_proto returns [16:01:55]Send response to host [16:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192284,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:01:55]free response buf [16:01:55]execute_script done [16:01:55]execute_script returns [16:01:55]free content buf [16:01:55]Sock 9.Close socket [16:01:55]Sock 9.Thread stoped [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]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:31]accept exits with 7 [16:03:31]New connection [16:03:31]New thread 3066936676 created [16:03:31]Thread 3067080036 joined [16:03:31]Waiting for new connection... [16:03:31] Sock 7.Parse request [16:03:31]Sock 7.Check first char [16:03:31]Sock 7.First char is OK [16:03:31]request: POST /json_proto HTTP/1.0 [16:03:31]Method: POST [16:03:31]URL: /json_proto [16:03:31]Method is POST - this is cgi request [16:03:31]url: /json_proto [16:03:31]query_string will be loaded in cgi processing [16:03:31]execute_cgi json_proto POST (null) [16:03:31]execute_cgi path=json_proto method=POST [16:03:31]POST find Content-Length [16:03:31]Host: 172.17.63.131:8080 [16:03:31]Content-Length: 677 [16:03:31]Content-Type: application/json [16:03:31] [16:03:31]POST finish read [16:03:31]Found Content-Length = 677 [16:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:31]execute_script... [16:03: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)31600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:31]POST & json_proto [16:03:31]process_json_proto [16:03:31]json parsed OK: [16:03:31]protocol is kg_v1.0 [16:03:31]action value=close_receipt [16:03:31]process_action close_receipt [16:03:31]cmd_close_receipt [16:03:31]MH_GetDate [16:03:31]Write to MH i2c: F0 00 00 C7 0D C3 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: F0 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: F0 09 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: F0 09 00 C7 0D 00 53 64 1E 67 22 05 6E 64 01 [16:03:31]GetLastDocTimeStamp 1730044911 [16:03:31]current date 1730045011 [16:03:31]FM_GetShiftState [16:03:31]SAM_PROTO_GetShiftState [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 13 01 00 [16:03:31]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [16:03:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_GetShiftState done [16:03:31]FM_GetShiftState done [16:03:31]opened in 1729989159 [16:03:31]opened+sec_in_day 1730075559 [16:03:31]quantity*price = 70044 [16:03:31]sum+1 = 70045 [16:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 317 27.10.2024 16:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192285 ФПД: 186326929527901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192285&fm=186326929527901&tin=02508201610067®Number=0000000000091776&sum=70000 [16:03:32]StoreToDocumentArchive [16:03:32]shift 542 fd 192285 [16:03:32]save to /storage/0542/doc_00192285 [16:03:32]save last doc name /storage/0542/doc_00192285 to /storage/kkm_last_doc_name [16:03:32]save OK [16:03:32]Clear old archive folders... [16:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:32]tlvbuf is 00322AF0 [16:03:32]SAM_PROTO_ClearQueue [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 09 00 00 [16:03:32]Write to MH i2c: E2 08 00 D5 0D 80 09 00 00 00 00 00 00 54 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_ClearQueue done [16:03:32]KKMCreateOFDPacket [16:03:32]OFDProtocolAddRootSTLVToBuf [16:03:32]FM_MakeSignedData [16:03:32]FM_MakeSignedData [16:03:32]SAM_PROTO_SignData [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 0D 01 02 [16:03:32]Write to MH i2c: E2 08 00 D6 0D 80 0D 01 02 00 00 00 00 5C [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]wFMCommunicate request_size=255 [16:03:32]MH_SAM_APDU [16:03: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 53 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EF 02 00 35 04 06 00 A9 [16:03:32]Write to MH i2c: E2 02 01 D7 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 53 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EF 02 00 35 04 06 00 A9 00 00 51 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]wFMCommunicate request_size=10 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 0D 02 02 05 76 9E 72 54 5D [16:03:32]Write to MH i2c: E2 0D 00 D8 0D 80 0D 02 02 05 00 76 9E 72 54 5D 00 00 A0 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 0D 03 02 [16:03:32]Write to MH i2c: E2 08 00 D9 0D 80 0D 03 02 00 00 00 00 61 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0B 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0B 00 D9 0D 00 14 37 CD 02 F9 A2 94 F9 90 00 A4 [16:03:32]RAPDU: 14 37 CD 02 F9 A2 94 F9 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_SignData done [16:03:32]FM_MakeSignedData done [16:03:32]CreateOFDProtocolMessage [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 11 00 00 [16:03:32]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 [16:03:32]MH_I2C_Read... [16:03:32]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 37 35 34 90 00 B4 [16:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:03:32]wFMCommunicate OK [16:03:32]CreateOFDProtocolMessage done [16:03:32]OFDSenderStorePacket 192285 [16:03:32]StoreOFDPacket docnum=192285 [16:03:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C 9A 07 01 F9 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 53 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EF 02 00 35 04 06 00 A9 76 9E 72 54 5D 14 37 CD 02 F9 A2 94 F9 [16:03:32]CheckFolder [16:03:32]dirname=/storage/ofd_packets [16:03:32]CheckFolder done [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00192285 [16:03:32]NVStorageSaveData ofd_packets/00192285 [16:03:32]File name is /storage/ofd_packets/00192285 [16:03:32]Write 301 bytes [16:03:32]NVStorageSaveData done [16:03:32]OFDSenderStorePacket done [16:03:32]KKMCreateOFDPacket done [16:03:32]NVStorageSaveData kkm_last_timestamp [16:03:32]File name is /storage/kkm_last_timestamp [16:03:32]Write 4 bytes [16:03:32]NVStorageSaveData done [16:03:32]ExternCall_PrintAddStr [16:03:32]wPrintStart [16:03:32]Write to MH i2c: 01 00 00 DB 0D E8 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [16:03:32]RasterBufferAndPrint [16:03:32]line Счет N : (1)31600 [16:03:32]line ИНН: 02508201610067 [16:03:32]line Контрольно-Кассовый Чек [16:03:32]line ПРОДАЖА [16:03:32]line ТРК (МРК, ГНК) : 12 [16:03:32]line Товар: 2710124130 [16:03:32]line Аи-92-К-5 [16:03:32]line 10.470 * 66.90 [16:03:32]line = 700.44 [16:03:32]line НДС 12% НСП 1% [16:03:32]line > о реализуемом товаре [16:03:32]line ОКРУГЛЕНИЕ: -0.44 [16:03:32]line ИТОГО: 700.00 [16:03:32]line Внесено: 700.00 [16:03:32]line СДАЧА: 0.00 [16:03:32]line НСП 1% : 6.20 [16:03:32]line НДС 12% : 74.38 [16:03:32]line Наличными: 700.00 [16:03:32]line Безнал.: 0.00 [16:03:32]line Место: АЗС № 170 "Партнер Нефть" [16:03:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:03:32]line СНО: Общий режим [16:03:32]line Чек 317 27.10.2024 16:03 [16:03:32]line Смена: 542 ФФД: 1.0 [16:03:32]line ЗНМ: 0300000110 [16:03:32]line РНМ: 0000000000091776 [16:03:32]line Версия ККМ: 001 [16:03:32]line ФМ: 0000000000871754 [16:03:32]line ФД: 192285 [16:03:32]line ФПД: 186326929527901 [16:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192285&fm=186326929527901&tin=02508201610067®Number=0000000000091776&sum=70000 [16:03:33]OFD Sender: Processing packet 192285 [packets to send 75, broken 74] [16:03:33]ProducePacketName [16:03:33]name=ofd_packets/00192285 [16:03:33]OFD Sender: To server: pG, [16:03:33]CommunicateWithHost lk.salyk.kg:30040 [16:03:33]ConnectInit lk.salyk.kg [16:03:33]written 0, free lines is 4095 [16:03:33]Connected sock=10 [16:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C 9A 07 01 F9 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 53 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EF 02 00 35 04 06 00 A9 76 9E 72 54 5D 14 37 CD 02 F9 A2 94 F9 [16:03:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 89 47 00 22 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D EF 02 00 F4 03 04 00 1A 09 1E 67 B6 04 01 00 00 D3 51 23 76 A0 1A 01 C9 [16:03:33]CommunicateWithHost err = 0 [16:03:33]CheckOFDResponse [16:03:33]1017 (14) - 77093643461234 [16:03:33]1041 (16) - 0000000000871754 [16:03:33]1040 (4) - 192285 [16:03:33]1012 (4) - 27.10.2024 09:34 [16:03:33]1206 (1) - 0 [16:03:33]OFD Sender: Remove packet 192285 [16:03:33]ProducePacketName [16:03:33]name=ofd_packets/00192285 [16:03:33]NVStorageDeleteData [16:03:33]Write to MH i2c: 01 00 00 06 0E 14 [16:03:33]Write i2c OK [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: 01 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: 01 07 00 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: 01 07 00 06 0E 00 00 00 00 00 AA 0C D1 [16:03:33]RasterBufferAndPrint [16:03:33]line [16:03:33]line [16:03:33]line [16:03:33]line [16:03:33]line [16:03:33]written 0, free lines is 3248 [16:03:33]MH_Cut [16:03:33]Write to MH i2c: D1 01 00 0D 0E 01 ED [16:03:33]Write i2c OK [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: D1 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: D1 01 00 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: D1 01 00 0D 0E 00 EC [16:03:33]Write to MH i2c: 01 00 00 0E 0E 1C [16:03:33]Write i2c OK [16:03:33]MH_I2C_Read... [16:03:33]OFD Sender: No OFD packet to send [16:03:34]*** Cut start [16:03:34]*** Partial cut [16:03:34]*** CUTSNS_PIN = 1 [16:03:34]*** CUTSNS_PIN = 0 [16:03:34]*** Brake cut motor [16:03:34]Read from MH i2c: 01 [16:03:34]MH_I2C_Read... [16:03:34]*** Stop cut motor [16:03:34]*** Cut end [16:03:34]Read from MH i2c: 01 07 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 FF 0F 31 [16:03:34]process_action close_receipt done [16:03:34]requested_data is exist [16:03:34]produce_requested_data [16:03:34]requested_item fm.sn is exist - process it [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 11 00 00 [16:03:34]Write to MH i2c: E2 08 00 0F 0E 80 11 00 00 00 00 00 00 97 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 17 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 17 00 0F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [16:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:03:35]wFMCommunicate OK [16:03:35]requested_item fd.num is exist - process it [16:03:35]SAM_PROTO_GetFieldsCounters [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 13 00 00 [16:03:35]Write to MH i2c: E2 08 00 10 0E 80 13 00 00 00 00 00 00 9A [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 62 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 62 00 10 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [16:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:35]wFMCommunicate OK [16:03:35]SAM_PROTO_GetFieldsCounters done [16:03:35]requested_item shift.num is exist - process it [16:03:35]requested_item shift.opened is exist - process it [16:03:35]req_shift_opened [16:03:35]FM_GetShiftState [16:03:35]SAM_PROTO_GetShiftState [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 13 01 00 [16:03:35]Write to MH i2c: E2 08 00 11 0E 80 13 01 00 00 00 00 00 9C [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:35]Read from MH i2c: E2 0E 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 0E 00 11 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [16:03:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:03:35]wFMCommunicate OK [16:03:35]SAM_PROTO_GetShiftState done [16:03:35]FM_GetShiftState done [16:03:35]req_shift_opened done [16:03:35]requested_item shift.open_date is exist - process it [16:03:35]req_shift_open_date [16:03:35]req_shift_open_date done [16:03:35]produce_requested_data done [16:03:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192285,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:03:35]process_action_free close_receipt [16:03:35]json_value_free [16:03:35]json_value_free done [16:03:35]process_json_proto returns [16:03:35]Send response to host [16:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192285,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:03:35]free response buf [16:03:35]execute_script done [16:03:35]execute_script returns [16:03:35]free content buf [16:03:35]Sock 7.Close socket [16:03:35]Sock 7.Thread stoped [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:57]accept exits with 9 [16:03:57]New connection [16:03:57]New thread 3067080036 created [16:03:57]Thread 3066936676 joined [16:03:57]Waiting for new connection... [16:03:57] Sock 9.Parse request [16:03:57]Sock 9.Check first char [16:03:57]Sock 9.First char is OK [16:03:57]request: POST /json_proto HTTP/1.0 [16:03:57]Method: POST [16:03:57]URL: /json_proto [16:03:57]Method is POST - this is cgi request [16:03:57]url: /json_proto [16:03:57]query_string will be loaded in cgi processing [16:03:57]execute_cgi json_proto POST (null) [16:03:57]execute_cgi path=json_proto method=POST [16:03:57]POST find Content-Length [16:03:57]Host: 172.17.63.131:8080 [16:03:57]Content-Length: 676 [16:03:57]Content-Type: application/json [16:03:57] [16:03:57]POST finish read [16:03:57]Found Content-Length = 676 [16:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:57]execute_script... [16:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:57]POST & json_proto [16:03:57]process_json_proto [16:03:57]json parsed OK: [16:03:57]protocol is kg_v1.0 [16:03:57]action value=close_receipt [16:03:57]process_action close_receipt [16:03:57]cmd_close_receipt [16:03:57]MH_GetDate [16:03:57]Write to MH i2c: F0 00 00 12 0E 0F [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 09 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: F0 09 00 12 0E 00 6D 64 1E 67 22 05 6E 64 67 [16:03:57]GetLastDocTimeStamp 1730045011 [16:03:57]current date 1730045037 [16:03:57]FM_GetShiftState [16:03:57]SAM_PROTO_GetShiftState [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 13 01 00 [16:03:57]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DF [16:03:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:03:57]wFMCommunicate OK [16:03:57]SAM_PROTO_GetShiftState done [16:03:57]FM_GetShiftState done [16:03:57]opened in 1729989159 [16:03:57]opened+sec_in_day 1730075559 [16:03:57]quantity*price = 30038 [16:03:57]sum+1 = 30039 [16:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 318 27.10.2024 16:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192286 ФПД: 210236123842526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192286&fm=210236123842526&tin=02508201610067®Number=0000000000091776&sum=30000 [16:03:58]StoreToDocumentArchive [16:03:58]shift 542 fd 192286 [16:03:58]save to /storage/0542/doc_00192286 [16:03:58]save last doc name /storage/0542/doc_00192286 to /storage/kkm_last_doc_name [16:03:58]save OK [16:03:58]Clear old archive folders... [16:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:58]tlvbuf is 002B9AB0 [16:03:58]SAM_PROTO_ClearQueue [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 09 00 00 [16:03:58]Write to MH i2c: E2 08 00 20 0E 80 09 00 00 00 00 00 00 A0 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]SAM_PROTO_ClearQueue done [16:03:58]KKMCreateOFDPacket [16:03:58]OFDProtocolAddRootSTLVToBuf [16:03:58]FM_MakeSignedData [16:03:58]FM_MakeSignedData [16:03:58]SAM_PROTO_SignData [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 0D 01 02 [16:03:58]Write to MH i2c: E2 08 00 21 0E 80 0D 01 02 00 00 00 00 A8 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]wFMCommunicate request_size=255 [16:03:58]MH_SAM_APDU [16:03: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6D 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EF 02 00 35 04 06 00 BF [16:03:58]Write to MH i2c: E2 02 01 22 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6D 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EF 02 00 35 04 06 00 BF 00 00 B3 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]wFMCommunicate request_size=10 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 0D 02 02 05 35 69 7B 07 DE [16:03:58]Write to MH i2c: E2 0D 00 23 0E 80 0D 02 02 05 00 35 69 7B 07 DE 00 00 B3 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [16:03:58]RAPDU: 90 00 [16:03:58]wFMCommunicate OK [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 0D 03 02 [16:03:58]Write to MH i2c: E2 08 00 24 0E 80 0D 03 02 00 00 00 00 AD [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 0B 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 0B 00 24 0E 00 CE 8C 05 0F 7D 18 FA E2 90 00 8D [16:03:58]RAPDU: CE 8C 05 0F 7D 18 FA E2 90 00 [16:03:58]wFMCommunicate OK [16:03:58]SAM_PROTO_SignData done [16:03:58]FM_MakeSignedData done [16:03:58]CreateOFDProtocolMessage [16:03:58]wFMCommunicate request_size=4 [16:03:58]MH_SAM_APDU [16:03:58]CAPDU: 80 11 00 00 [16:03:58]Write to MH i2c: E2 08 00 25 0E 80 11 00 00 00 00 00 00 AD [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:58]Read from MH i2c: E2 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 17 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: E2 17 00 25 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:03:58]wFMCommunicate OK [16:03:58]CreateOFDProtocolMessage done [16:03:58]OFDSenderStorePacket 192286 [16:03:58]StoreOFDPacket docnum=192286 [16:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 9F 07 01 E7 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6D 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EF 02 00 35 04 06 00 BF 35 69 7B 07 DE CE 8C 05 0F 7D 18 FA E2 [16:03:58]CheckFolder [16:03:58]dirname=/storage/ofd_packets [16:03:58]CheckFolder done [16:03:58]ProducePacketName [16:03:58]name=ofd_packets/00192286 [16:03:58]NVStorageSaveData ofd_packets/00192286 [16:03:58]File name is /storage/ofd_packets/00192286 [16:03:58]Write 301 bytes [16:03:58]NVStorageSaveData done [16:03:58]OFDSenderStorePacket done [16:03:58]KKMCreateOFDPacket done [16:03:58]NVStorageSaveData kkm_last_timestamp [16:03:58]File name is /storage/kkm_last_timestamp [16:03:58]Write 4 bytes [16:03:58]NVStorageSaveData done [16:03:58]ExternCall_PrintAddStr [16:03:58]wPrintStart [16:03:58]Write to MH i2c: 01 00 00 26 0E 34 [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 07 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 07 00 26 0E 00 00 00 00 00 FF 0F 49 [16:03:58]RasterBufferAndPrint [16:03:58]line Счет N : (1)31601 [16:03:58]line ИНН: 02508201610067 [16:03:58]line Контрольно-Кассовый Чек [16:03:58]line ПРОДАЖА [16:03:58]line ТРК (МРК, ГНК) : 21 [16:03:58]line Товар: 2710124130 [16:03:58]line Аи-92-К-5 [16:03:58]line 4.490 * 66.90 [16:03:58]line = 300.38 [16:03:58]line НДС 12% НСП 1% [16:03:58]line > о реализуемом товаре [16:03:58]line ОКРУГЛЕНИЕ: -0.38 [16:03:58]line ИТОГО: 300.00 [16:03:58]line Внесено: 300.00 [16:03:58]line СДАЧА: 0.00 [16:03:58]line НСП 1% : 2.66 [16:03:58]line НДС 12% : 31.90 [16:03:58]line Наличными: 300.00 [16:03:58]line Безнал.: 0.00 [16:03:58]line Место: АЗС № 170 "Партнер Нефть" [16:03:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:03:58]line СНО: Общий режим [16:03:58]line Чек 318 27.10.2024 16:03 [16:03:58]line Смена: 542 ФФД: 1.0 [16:03:58]line ЗНМ: 0300000110 [16:03:58]line РНМ: 0000000000091776 [16:03:58]line Версия ККМ: 001 [16:03:58]line ФМ: 0000000000871754 [16:03:58]line ФД: 192286 [16:03:58]line ФПД: 210236123842526 [16:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192286&fm=210236123842526&tin=02508201610067®Number=0000000000091776&sum=30000 [16:03:59]OFD Sender: Processing packet 192286 [packets to send 75, broken 74] [16:03:59]ProducePacketName [16:03:59]name=ofd_packets/00192286 [16:03:59]OFD Sender: To server: pG, [16:03:59]CommunicateWithHost lk.salyk.kg:30040 [16:03:59]ConnectInit lk.salyk.kg [16:03:59]written 0, free lines is 4095 [16:03:59]Connected sock=10 [16:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 9F 07 01 E7 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 6D 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EF 02 00 35 04 06 00 BF 35 69 7B 07 DE CE 8C 05 0F 7D 18 FA E2 [16:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 36 08 47 00 62 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E EF 02 00 F4 03 04 00 34 09 1E 67 B6 04 01 00 00 B4 C5 FA D9 2B 8A E5 EE [16:03:59]CommunicateWithHost err = 0 [16:03:59]CheckOFDResponse [16:03:59]1017 (14) - 77093643461234 [16:03:59]1041 (16) - 0000000000871754 [16:03:59]1040 (4) - 192286 [16:03:59]1012 (4) - 27.10.2024 09:34 [16:03:59]1206 (1) - 0 [16:03:59]OFD Sender: Remove packet 192286 [16:03:59]ProducePacketName [16:03:59]name=ofd_packets/00192286 [16:03:59]NVStorageDeleteData [16:03:59]Write to MH i2c: 01 00 00 51 0E 5F [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 AD 0C 1F [16:03:59]RasterBufferAndPrint [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]written 0, free lines is 3251 [16:03:59]MH_Cut [16:03:59]Write to MH i2c: D1 01 00 58 0E 01 38 [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 01 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 01 00 58 0E 00 37 [16:03:59]Write to MH i2c: 01 00 00 59 0E 67 [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]OFD Sender: No OFD packet to send [16:04:00]*** Cut start [16:04:00]*** Partial cut [16:04:00]*** CUTSNS_PIN = 1 [16:04:00]*** CUTSNS_PIN = 0 [16:04:00]*** Brake cut motor [16:04:01]Read from MH i2c: 01 [16:04:01]MH_I2C_Read... [16:04:01]*** Stop cut motor [16:04:01]*** Cut end [16:04:01]Read from MH i2c: 01 07 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: 01 07 00 59 0E 00 00 00 00 00 FF 0F 7C [16:04:01]process_action close_receipt done [16:04:01]requested_data is exist [16:04:01]produce_requested_data [16:04:01]requested_item fm.sn is exist - process it [16:04:01]wFMCommunicate request_size=4 [16:04:01]MH_SAM_APDU [16:04:01]CAPDU: 80 11 00 00 [16:04:01]Write to MH i2c: E2 08 00 5A 0E 80 11 00 00 00 00 00 00 E2 [16:04:01]Write i2c OK [16:04:01]MH_I2C_Read... [16:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:01]Read from MH i2c: E2 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 17 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 17 00 5A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [16:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:04:01]wFMCommunicate OK [16:04:01]requested_item fd.num is exist - process it [16:04:01]SAM_PROTO_GetFieldsCounters [16:04:01]wFMCommunicate request_size=4 [16:04:01]MH_SAM_APDU [16:04:01]CAPDU: 80 13 00 00 [16:04:01]Write to MH i2c: E2 08 00 5B 0E 80 13 00 00 00 00 00 00 E5 [16:04:01]Write i2c OK [16:04:01]MH_I2C_Read... [16:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:01]Read from MH i2c: E2 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 62 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 62 00 5B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [16:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:01]wFMCommunicate OK [16:04:01]SAM_PROTO_GetFieldsCounters done [16:04:01]requested_item shift.num is exist - process it [16:04:01]requested_item shift.opened is exist - process it [16:04:01]req_shift_opened [16:04:01]FM_GetShiftState [16:04:01]SAM_PROTO_GetShiftState [16:04:01]wFMCommunicate request_size=4 [16:04:01]MH_SAM_APDU [16:04:01]CAPDU: 80 13 01 00 [16:04:01]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [16:04:01]Write i2c OK [16:04:01]MH_I2C_Read... [16:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:01]Read from MH i2c: E2 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 0E 00 [16:04:01]MH_I2C_Read... [16:04:01]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 28 [16:04:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:04:01]wFMCommunicate OK [16:04:01]SAM_PROTO_GetShiftState done [16:04:01]FM_GetShiftState done [16:04:01]req_shift_opened done [16:04:01]requested_item shift.open_date is exist - process it [16:04:01]req_shift_open_date [16:04:01]req_shift_open_date done [16:04:01]produce_requested_data done [16:04:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192286,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:04:01]process_action_free close_receipt [16:04:01]json_value_free [16:04:01]json_value_free done [16:04:01]process_json_proto returns [16:04:01]Send response to host [16:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192286,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:04:01]free response buf [16:04:01]execute_script done [16:04:01]execute_script returns [16:04:01]free content buf [16:04:01]Sock 9.Close socket [16:04:01]Sock 9.Thread stoped [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:10]accept exits with 7 [16:04:10]New connection [16:04:10]New thread 3066936676 created [16:04:10]Thread 3067080036 joined [16:04:10]Waiting for new connection... [16:04:10] Sock 7.Parse request [16:04:10]Sock 7.Check first char [16:04:10]Sock 7.First char is OK [16:04:10]request: POST /json_proto HTTP/1.0 [16:04:10]Method: POST [16:04:10]URL: /json_proto [16:04:10]Method is POST - this is cgi request [16:04:10]url: /json_proto [16:04:10]query_string will be loaded in cgi processing [16:04:10]execute_cgi json_proto POST (null) [16:04:10]execute_cgi path=json_proto method=POST [16:04:10]POST find Content-Length [16:04:10]Host: 172.17.63.131:8080 [16:04:10]Content-Length: 678 [16:04:10]Content-Type: application/json [16:04:10] [16:04:10]POST finish read [16:04:10]Found Content-Length = 678 [16:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31599", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:10]execute_script... [16:04:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31599", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:10]POST & json_proto [16:04:10]process_json_proto [16:04:10]json parsed OK: [16:04:10]protocol is kg_v1.0 [16:04:10]action value=close_receipt [16:04:10]process_action close_receipt [16:04:10]cmd_close_receipt [16:04:10]MH_GetDate [16:04:10]Write to MH i2c: F0 00 00 5D 0E 5A [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: F0 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: F0 09 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: F0 09 00 5D 0E 00 7A 64 1E 67 22 05 6E 64 BF [16:04:10]GetLastDocTimeStamp 1730045037 [16:04:10]current date 1730045050 [16:04:10]FM_GetShiftState [16:04:10]SAM_PROTO_GetShiftState [16:04:10]wFMCommunicate request_size=4 [16:04:10]MH_SAM_APDU [16:04:10]CAPDU: 80 13 01 00 [16:04:10]Write to MH i2c: E2 08 00 5E 0E 80 13 01 00 00 00 00 00 E9 [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:10]Read from MH i2c: E2 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: E2 0E 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: E2 0E 00 5E 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [16:04:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:04:10]wFMCommunicate OK [16:04:10]SAM_PROTO_GetShiftState done [16:04:10]FM_GetShiftState done [16:04:10]opened in 1729989159 [16:04:10]opened+sec_in_day 1730075559 [16:04:10]quantity*price = 200025 [16:04:10]sum+1 = 200026 [16:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 319 27.10.2024 16:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192287 ФПД: 5388684462190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160410&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192287&fm=5388684462190&tin=02508201610067®Number=0000000000091776&sum=200000 [16:04:11]StoreToDocumentArchive [16:04:11]shift 542 fd 192287 [16:04:11]save to /storage/0542/doc_00192287 [16:04:11]save last doc name /storage/0542/doc_00192287 to /storage/kkm_last_doc_name [16:04:11]save OK [16:04:11]Clear old archive folders... [16:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:04:11]tlvbuf is 00322920 [16:04:11]SAM_PROTO_ClearQueue [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 09 00 00 [16:04:11]Write to MH i2c: E2 08 00 6B 0E 80 09 00 00 00 00 00 00 EB [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]SAM_PROTO_ClearQueue done [16:04:11]KKMCreateOFDPacket [16:04:11]OFDProtocolAddRootSTLVToBuf [16:04:11]FM_MakeSignedData [16:04:11]FM_MakeSignedData [16:04:11]SAM_PROTO_SignData [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 01 02 [16:04:11]Write to MH i2c: E2 08 00 6C 0E 80 0D 01 02 00 00 00 00 F3 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=255 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7A 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EF 02 00 35 04 06 00 04 E6 A6 9F [16:04:11]Write to MH i2c: E2 02 01 6D 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7A 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EF 02 00 35 04 06 00 04 E6 A6 9F 00 00 6D [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=7 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 02 02 02 88 6E [16:04:11]Write to MH i2c: E2 0A 00 6E 0E 80 0D 02 02 02 00 88 6E 00 00 F0 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [16:04:11]RAPDU: 90 00 [16:04:11]wFMCommunicate OK [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 0D 03 02 [16:04:11]Write to MH i2c: E2 08 00 6F 0E 80 0D 03 02 00 00 00 00 F8 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 0B 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 0B 00 6F 0E 00 B7 45 3D 77 8B B5 7F F3 90 00 5B [16:04:11]RAPDU: B7 45 3D 77 8B B5 7F F3 90 00 [16:04:11]wFMCommunicate OK [16:04:11]SAM_PROTO_SignData done [16:04:11]FM_MakeSignedData done [16:04:11]CreateOFDProtocolMessage [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 11 00 00 [16:04:11]Write to MH i2c: E2 08 00 70 0E 80 11 00 00 00 00 00 00 F8 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 17 00 [16:04:12]MH_I2C_Read... [16:04:12]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 37 35 34 90 00 4B [16:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:04:12]wFMCommunicate OK [16:04:12]CreateOFDProtocolMessage done [16:04:12]OFDSenderStorePacket 192287 [16:04:12]StoreOFDPacket docnum=192287 [16:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BB 52 04 01 F8 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7A 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EF 02 00 35 04 06 00 04 E6 A6 9F 88 6E B7 45 3D 77 8B B5 7F F3 [16:04:12]CheckFolder [16:04:12]dirname=/storage/ofd_packets [16:04:12]CheckFolder done [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00192287 [16:04:12]NVStorageSaveData ofd_packets/00192287 [16:04:12]File name is /storage/ofd_packets/00192287 [16:04:12]Write 298 bytes [16:04:12]NVStorageSaveData done [16:04:12]OFDSenderStorePacket done [16:04:12]KKMCreateOFDPacket done [16:04:12]NVStorageSaveData kkm_last_timestamp [16:04:12]File name is /storage/kkm_last_timestamp [16:04:12]Write 4 bytes [16:04:12]NVStorageSaveData done [16:04:12]ExternCall_PrintAddStr [16:04:12]wPrintStart [16:04:12]Write to MH i2c: 01 00 00 71 0E 7F [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 71 0E 00 00 00 00 00 FF 0F 94 [16:04:12]RasterBufferAndPrint [16:04:12]line Счет N : (1)31599 [16:04:12]line ИНН: 02508201610067 [16:04:12]line Контрольно-Кассовый Чек [16:04:12]line ПРОДАЖА [16:04:12]line ТРК (МРК, ГНК) : 11 [16:04:12]line Товар: 2710194210 [16:04:12]line ДТ-К-5 [16:04:12]line 26.250 * 76.20 [16:04:12]line = 2000.25 [16:04:12]line НДС 12% НСП 1% [16:04:12]line > о реализуемом товаре [16:04:12]line ОКРУГЛЕНИЕ: -0.25 [16:04:12]line ИТОГО: 2000.00 [16:04:12]line Внесено: 2000.00 [16:04:12]line СДАЧА: 0.00 [16:04:12]line НСП 1% : 17.70 [16:04:12]line НДС 12% : 212.42 [16:04:12]line Наличными: 2000.00 [16:04:12]line Безнал.: 0.00 [16:04:12]line Место: АЗС № 170 "Партнер Нефть" [16:04:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:04:12]line СНО: Общий режим [16:04:12]line Чек 319 27.10.2024 16:04 [16:04:12]line Смена: 542 ФФД: 1.0 [16:04:12]line ЗНМ: 0300000110 [16:04:12]line РНМ: 0000000000091776 [16:04:12]line Версия ККМ: 001 [16:04:12]line ФМ: 0000000000871754 [16:04:12]line ФД: 192287 [16:04:12]line ФПД: 5388684462190 [16:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160410&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192287&fm=5388684462190&tin=02508201610067®Number=0000000000091776&sum=200000 [16:04:12]OFD Sender: Processing packet 192287 [packets to send 75, broken 74] [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00192287 [16:04:12]OFD Sender: To server: pG, [16:04:12]CommunicateWithHost lk.salyk.kg:30040 [16:04:12]ConnectInit lk.salyk.kg [16:04:12]written 0, free lines is 4095 [16:04:12]Connected sock=10 [16:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BB 52 04 01 F8 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7A 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EF 02 00 35 04 06 00 04 E6 A6 9F 88 6E B7 45 3D 77 8B B5 7F F3 [16:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CA 73 47 00 CC E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F EF 02 00 F4 03 04 00 42 09 1E 67 B6 04 01 00 00 06 7C DF 1E 6A FD 37 20 [16:04:12]CommunicateWithHost err = 0 [16:04:12]CheckOFDResponse [16:04:12]1017 (14) - 77093643461234 [16:04:12]1041 (16) - 0000000000871754 [16:04:12]1040 (4) - 192287 [16:04:12]1012 (4) - 27.10.2024 09:34 [16:04:12]1206 (1) - 0 [16:04:12]OFD Sender: Remove packet 192287 [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00192287 [16:04:12]NVStorageDeleteData [16:04:12]Write to MH i2c: 01 00 00 9C 0E AA [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 9C 0E 00 00 00 00 00 A5 0C 62 [16:04:12]RasterBufferAndPrint [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]line [16:04:12]written 0, free lines is 3242 [16:04:12]MH_Cut [16:04:12]Write to MH i2c: D1 01 00 A3 0E 01 83 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 01 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: D1 01 00 A3 0E 00 82 [16:04:12]Write to MH i2c: 01 00 00 A4 0E B2 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:13]OFD Sender: No OFD packet to send [16:04:13]*** Cut start [16:04:13]*** Partial cut [16:04:13]*** CUTSNS_PIN = 1 [16:04:13]*** CUTSNS_PIN = 0 [16:04:13]*** Brake cut motor [16:04:14]Read from MH i2c: 01 [16:04:14]MH_I2C_Read... [16:04:14]*** Stop cut motor [16:04:14]*** Cut end [16:04:14]Read from MH i2c: 01 07 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: 01 07 00 A4 0E 00 00 00 00 00 FF 0F C7 [16:04:14]process_action close_receipt done [16:04:14]requested_data is exist [16:04:14]produce_requested_data [16:04:14]requested_item fm.sn is exist - process it [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 11 00 00 [16:04:14]Write to MH i2c: E2 08 00 A5 0E 80 11 00 00 00 00 00 00 2D [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 17 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 17 00 A5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [16:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:04:14]wFMCommunicate OK [16:04:14]requested_item fd.num is exist - process it [16:04:14]SAM_PROTO_GetFieldsCounters [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 13 00 00 [16:04:14]Write to MH i2c: E2 08 00 A6 0E 80 13 00 00 00 00 00 00 30 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 62 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 62 00 A6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [16:04:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_GetFieldsCounters done [16:04:14]requested_item shift.num is exist - process it [16:04:14]requested_item shift.opened is exist - process it [16:04:14]req_shift_opened [16:04:14]FM_GetShiftState [16:04:14]SAM_PROTO_GetShiftState [16:04:14]wFMCommunicate request_size=4 [16:04:14]MH_SAM_APDU [16:04:14]CAPDU: 80 13 01 00 [16:04:14]Write to MH i2c: E2 08 00 A7 0E 80 13 01 00 00 00 00 00 32 [16:04:14]Write i2c OK [16:04:14]MH_I2C_Read... [16:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:14]Read from MH i2c: E2 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 [16:04:14]MH_I2C_Read... [16:04:14]Read from MH i2c: E2 0E 00 A7 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 73 [16:04:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:04:14]wFMCommunicate OK [16:04:14]SAM_PROTO_GetShiftState done [16:04:14]FM_GetShiftState done [16:04:14]req_shift_opened done [16:04:14]requested_item shift.open_date is exist - process it [16:04:14]req_shift_open_date [16:04:14]req_shift_open_date done [16:04:14]produce_requested_data done [16:04:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192287,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:04:14]process_action_free close_receipt [16:04:14]json_value_free [16:04:14]json_value_free done [16:04:14]process_json_proto returns [16:04:14]Send response to host [16:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192287,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:04:14]free response buf [16:04:14]execute_script done [16:04:14]execute_script returns [16:04:14]free content buf [16:04:14]Sock 7.Close socket [16:04:14]Sock 7.Thread stoped [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:04:59]accept exits with 9 [16:04:59]New connection [16:04:59]New thread 3067080036 created [16:04:59]Thread 3066936676 joined [16:04:59]Waiting for new connection... [16:04:59] Sock 9.Parse request [16:04:59]Sock 9.Check first char [16:04:59]Sock 9.First char is OK [16:04:59]request: POST /json_proto HTTP/1.0 [16:04:59]Method: POST [16:04:59]URL: /json_proto [16:04:59]Method is POST - this is cgi request [16:04:59]url: /json_proto [16:04:59]query_string will be loaded in cgi processing [16:04:59]execute_cgi json_proto POST (null) [16:04:59]execute_cgi path=json_proto method=POST [16:04:59]POST find Content-Length [16:04:59]Host: 172.17.63.131:8080 [16:04:59]Content-Length: 678 [16:04:59]Content-Type: application/json [16:04:59] [16:04:59]POST finish read [16:04:59]Found Content-Length = 678 [16:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.130, "sum" : 811.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 811.00, "payments": [ { "type": 0, "sum" : 811.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:59]execute_script... [16:04:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.130, "sum" : 811.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 811.00, "payments": [ { "type": 0, "sum" : 811.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:59]POST & json_proto [16:04:59]process_json_proto [16:04:59]json parsed OK: [16:04:59]protocol is kg_v1.0 [16:04:59]action value=close_receipt [16:04:59]process_action close_receipt [16:04:59]cmd_close_receipt [16:04:59]MH_GetDate [16:04:59]Write to MH i2c: F0 00 00 A8 0E A5 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: F0 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: F0 09 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: F0 09 00 A8 0E 00 AB 64 1E 67 22 05 6E 64 3B [16:04:59]GetLastDocTimeStamp 1730045050 [16:04:59]current date 1730045099 [16:04:59]FM_GetShiftState [16:04:59]SAM_PROTO_GetShiftState [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 13 01 00 [16:04:59]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0E 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [16:04:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:04:59]wFMCommunicate OK [16:04:59]SAM_PROTO_GetShiftState done [16:04:59]FM_GetShiftState done [16:04:59]opened in 1729989159 [16:04:59]opened+sec_in_day 1730075559 [16:04:59]quantity*price = 81149 [16:04:59]sum+1 = 81151 [16:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 811.00 Внесено: 1000.00 СДАЧА: 189.00 НСП 1% : 7.18 НДС 12% : 86.18 Наличными: 811.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 320 27.10.2024 16:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192288 ФПД: 247476814050810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192288&fm=247476814050810&tin=02508201610067®Number=0000000000091776&sum=81100 [16:05:00]StoreToDocumentArchive [16:05:00]shift 542 fd 192288 [16:05:00]save to /storage/0542/doc_00192288 [16:05:00]save last doc name /storage/0542/doc_00192288 to /storage/kkm_last_doc_name [16:05:00]save OK [16:05:00]Clear old archive folders... [16:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:00]tlvbuf is 002D8FD0 [16:05:00]SAM_PROTO_ClearQueue [16:05:00]wFMCommunicate request_size=4 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 09 00 00 [16:05:00]Write to MH i2c: E2 08 00 B6 0E 80 09 00 00 00 00 00 00 36 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [16:05:00]RAPDU: 90 00 [16:05:00]wFMCommunicate OK [16:05:00]SAM_PROTO_ClearQueue done [16:05:00]KKMCreateOFDPacket [16:05:00]OFDProtocolAddRootSTLVToBuf [16:05:00]FM_MakeSignedData [16:05:00]FM_MakeSignedData [16:05:00]SAM_PROTO_SignData [16:05:00]wFMCommunicate request_size=4 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 0D 01 02 [16:05:00]Write to MH i2c: E2 08 00 B7 0E 80 0D 01 02 00 00 00 00 3E [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [16:05:00]RAPDU: 90 00 [16:05:00]wFMCommunicate OK [16:05:00]wFMCommunicate request_size=255 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 AB 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EF 02 00 35 04 06 00 E1 [16:05:00]Write to MH i2c: E2 02 01 B8 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 AB 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EF 02 00 35 04 06 00 E1 00 00 E9 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [16:05:00]RAPDU: 90 00 [16:05:00]wFMCommunicate OK [16:05:00]wFMCommunicate request_size=10 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 0D 02 02 05 14 2F 97 75 FA [16:05:00]Write to MH i2c: E2 0D 00 B9 0E 80 0D 02 02 05 00 14 2F 97 75 FA 00 00 94 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [16:05:00]RAPDU: 90 00 [16:05:00]wFMCommunicate OK [16:05:00]wFMCommunicate request_size=4 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 0D 03 02 [16:05:00]Write to MH i2c: E2 08 00 BA 0E 80 0D 03 02 00 00 00 00 43 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 0B 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 0B 00 BA 0E 00 1B B5 02 EF A6 F4 ED 83 90 00 0F [16:05:00]RAPDU: 1B B5 02 EF A6 F4 ED 83 90 00 [16:05:00]wFMCommunicate OK [16:05:00]SAM_PROTO_SignData done [16:05:00]FM_MakeSignedData done [16:05:00]CreateOFDProtocolMessage [16:05:00]wFMCommunicate request_size=4 [16:05:00]MH_SAM_APDU [16:05:00]CAPDU: 80 11 00 00 [16:05:00]Write to MH i2c: E2 08 00 BB 0E 80 11 00 00 00 00 00 00 43 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:00]Read from MH i2c: E2 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 17 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: E2 17 00 BB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [16:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:05:00]wFMCommunicate OK [16:05:00]CreateOFDProtocolMessage done [16:05:00]OFDSenderStorePacket 192288 [16:05:00]StoreOFDPacket docnum=192288 [16:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 56 07 01 76 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 AB 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EF 02 00 35 04 06 00 E1 14 2F 97 75 FA 1B B5 02 EF A6 F4 ED 83 [16:05:00]CheckFolder [16:05:00]dirname=/storage/ofd_packets [16:05:00]CheckFolder done [16:05:00]ProducePacketName [16:05:00]name=ofd_packets/00192288 [16:05:00]NVStorageSaveData ofd_packets/00192288 [16:05:00]File name is /storage/ofd_packets/00192288 [16:05:00]Write 301 bytes [16:05:00]NVStorageSaveData done [16:05:00]OFDSenderStorePacket done [16:05:00]KKMCreateOFDPacket done [16:05:00]NVStorageSaveData kkm_last_timestamp [16:05:00]File name is /storage/kkm_last_timestamp [16:05:00]Write 4 bytes [16:05:00]NVStorageSaveData done [16:05:00]ExternCall_PrintAddStr [16:05:00]wPrintStart [16:05:00]Write to MH i2c: 01 00 00 BC 0E CA [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 BC 0E 00 00 00 00 00 FF 0F DF [16:05:00]RasterBufferAndPrint [16:05:00]line Счет N : (1)31602 [16:05:00]line ИНН: 02508201610067 [16:05:00]line Контрольно-Кассовый Чек [16:05:00]line ПРОДАЖА [16:05:00]line ТРК (МРК, ГНК) : 21 [16:05:00]line Товар: 2710124130 [16:05:00]line Аи-92-К-5 [16:05:00]line 12.130 * 66.90 [16:05:00]line = 811.50 [16:05:00]line НДС 12% НСП 1% [16:05:00]line > о реализуемом товаре [16:05:00]line ОКРУГЛЕНИЕ: -0.50 [16:05:00]line ИТОГО: 811.00 [16:05:00]line Внесено: 1000.00 [16:05:00]line СДАЧА: 189.00 [16:05:00]line НСП 1% : 7.18 [16:05:00]line НДС 12% : 86.18 [16:05:00]line Наличными: 811.00 [16:05:00]line Безнал.: 0.00 [16:05:00]line Место: АЗС № 170 "Партнер Нефть" [16:05:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:05:00]line СНО: Общий режим [16:05:00]line Чек 320 27.10.2024 16:04 [16:05:00]line Смена: 542 ФФД: 1.0 [16:05:00]line ЗНМ: 0300000110 [16:05:00]line РНМ: 0000000000091776 [16:05:00]line Версия ККМ: 001 [16:05:00]line ФМ: 0000000000871754 [16:05:00]line ФД: 192288 [16:05:00]line ФПД: 247476814050810 [16:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192288&fm=247476814050810&tin=02508201610067®Number=0000000000091776&sum=81100 [16:05:01]OFD Sender: Processing packet 192288 [packets to send 75, broken 74] [16:05:01]ProducePacketName [16:05:01]name=ofd_packets/00192288 [16:05:01]OFD Sender: To server: pG, [16:05:01]CommunicateWithHost lk.salyk.kg:30040 [16:05:01]ConnectInit lk.salyk.kg [16:05:01]written 0, free lines is 4095 [16:05:01]Connected sock=10 [16:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 56 07 01 76 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 AB 64 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EF 02 00 35 04 06 00 E1 14 2F 97 75 FA 1B B5 02 EF A6 F4 ED 83 [16:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4A F3 47 00 C5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 EF 02 00 F4 03 04 00 73 09 1E 67 B6 04 01 00 00 BB A5 73 EF 13 79 D2 AB [16:05:01]CommunicateWithHost err = 0 [16:05:01]CheckOFDResponse [16:05:01]1017 (14) - 77093643461234 [16:05:01]1041 (16) - 0000000000871754 [16:05:01]1040 (4) - 192288 [16:05:01]1012 (4) - 27.10.2024 09:35 [16:05:01]1206 (1) - 0 [16:05:01]OFD Sender: Remove packet 192288 [16:05:01]ProducePacketName [16:05:01]name=ofd_packets/00192288 [16:05:01]NVStorageDeleteData [16:05:01]Write to MH i2c: 01 00 00 E7 0E F5 [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: 01 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: 01 07 00 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 B5 0C BD [16:05:01]RasterBufferAndPrint [16:05:01]line [16:05:01]line [16:05:01]line [16:05:01]line [16:05:01]line [16:05:01]written 0, free lines is 3258 [16:05:01]MH_Cut [16:05:01]Write to MH i2c: D1 01 00 EE 0E 01 CE [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: D1 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: D1 01 00 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: D1 01 00 EE 0E 00 CD [16:05:01]Write to MH i2c: 01 00 00 EF 0E FD [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:02]OFD Sender: No OFD packet to send [16:05:02]*** Cut start [16:05:02]*** Partial cut [16:05:02]*** CUTSNS_PIN = 1 [16:05:02]*** CUTSNS_PIN = 0 [16:05:02]*** Brake cut motor [16:05:03]Read from MH i2c: 01 [16:05:03]MH_I2C_Read... [16:05:03]*** Stop cut motor [16:05:03]*** Cut end [16:05:03]Read from MH i2c: 01 07 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 FF 0F 12 [16:05:03]process_action close_receipt done [16:05:03]requested_data is exist [16:05:03]produce_requested_data [16:05:03]requested_item fm.sn is exist - process it [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 11 00 00 [16:05:03]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 17 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [16:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:05:03]wFMCommunicate OK [16:05:03]requested_item fd.num is exist - process it [16:05:03]SAM_PROTO_GetFieldsCounters [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 13 00 00 [16:05:03]Write to MH i2c: E2 08 00 F1 0E 80 13 00 00 00 00 00 00 7B [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 62 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 62 00 F1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_GetFieldsCounters done [16:05:03]requested_item shift.num is exist - process it [16:05:03]requested_item shift.opened is exist - process it [16:05:03]req_shift_opened [16:05:03]FM_GetShiftState [16:05:03]SAM_PROTO_GetShiftState [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 13 01 00 [16:05:03]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0E 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BE [16:05:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_GetShiftState done [16:05:03]FM_GetShiftState done [16:05:03]req_shift_opened done [16:05:03]requested_item shift.open_date is exist - process it [16:05:03]req_shift_open_date [16:05:03]req_shift_open_date done [16:05:03]produce_requested_data done [16:05:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192288,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:05:03]process_action_free close_receipt [16:05:03]json_value_free [16:05:03]json_value_free done [16:05:03]process_json_proto returns [16:05:03]Send response to host [16:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192288,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:05:03]free response buf [16:05:03]execute_script done [16:05:03]execute_script returns [16:05:03]free content buf [16:05:03]Sock 9.Close socket [16:05:03]Sock 9.Thread stoped [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [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:06:58]accept exits with 7 [16:06:58]New connection [16:06:58]New thread 3066936676 created [16:06:58]Thread 3067080036 joined [16:06:58]Waiting for new connection... [16:06:58] Sock 7.Parse request [16:06:58]Sock 7.Check first char [16:06:58]Sock 7.First char is OK [16:06:58]request: POST /json_proto HTTP/1.0 [16:06:58]Method: POST [16:06:58]URL: /json_proto [16:06:58]Method is POST - this is cgi request [16:06:58]url: /json_proto [16:06:58]query_string will be loaded in cgi processing [16:06:58]execute_cgi json_proto POST (null) [16:06:58]execute_cgi path=json_proto method=POST [16:06:58]POST find Content-Length [16:06:58]Host: 172.17.63.131:8080 [16:06:58]Content-Length: 681 [16:06:58]Content-Type: application/json [16:06:58] [16:06:58]POST finish read [16:06:58]Found Content-Length = 681 [16:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:58]execute_script... [16:06:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:58]POST & json_proto [16:06:58]process_json_proto [16:06:58]json parsed OK: [16:06:58]protocol is kg_v1.0 [16:06:58]action value=close_receipt [16:06:58]process_action close_receipt [16:06:58]cmd_close_receipt [16:06:58]MH_GetDate [16:06:58]Write to MH i2c: F0 00 00 F3 0E F0 [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: F0 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: F0 09 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: F0 09 00 F3 0E 00 23 65 1E 67 22 05 6E 64 FF [16:06:58]GetLastDocTimeStamp 1730045099 [16:06:58]current date 1730045219 [16:06:58]FM_GetShiftState [16:06:58]SAM_PROTO_GetShiftState [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 13 01 00 [16:06:58]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [16:06:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:06:58]wFMCommunicate OK [16:06:58]SAM_PROTO_GetShiftState done [16:06:58]FM_GetShiftState done [16:06:58]opened in 1729989159 [16:06:58]opened+sec_in_day 1730075559 [16:06:58]quantity*price = 100015 [16:06:58]sum+1 = 100017 [16:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 321 27.10.2024 16:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192289 ФПД: 92752117086830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192289&fm=92752117086830&tin=02508201610067®Number=0000000000091776&sum=100000 [16:06:59]StoreToDocumentArchive [16:06:59]shift 542 fd 192289 [16:06:59]save to /storage/0542/doc_00192289 [16:06:59]save last doc name /storage/0542/doc_00192289 to /storage/kkm_last_doc_name [16:06:59]save OK [16:06:59]Clear old archive folders... [16:06:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:59]tlvbuf is 0030A540 [16:06:59]SAM_PROTO_ClearQueue [16:06:59]wFMCommunicate request_size=4 [16:06:59]MH_SAM_APDU [16:06:59]CAPDU: 80 09 00 00 [16:06:59]Write to MH i2c: E2 08 00 01 0F 80 09 00 00 00 00 00 00 82 [16:06:59]Write i2c OK [16:06:59]MH_I2C_Read... [16:06:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:59]Read from MH i2c: E2 [16:06:59]MH_I2C_Read... [16:06:59]Read from MH i2c: E2 03 00 [16:06:59]MH_I2C_Read... [16:06:59]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [16:06:59]RAPDU: 90 00 [16:06:59]wFMCommunicate OK [16:06:59]SAM_PROTO_ClearQueue done [16:06:59]KKMCreateOFDPacket [16:06:59]OFDProtocolAddRootSTLVToBuf [16:06:59]FM_MakeSignedData [16:06:59]FM_MakeSignedData [16:06:59]SAM_PROTO_SignData [16:06:59]wFMCommunicate request_size=4 [16:06:59]MH_SAM_APDU [16:06:59]CAPDU: 80 0D 01 02 [16:06:59]Write to MH i2c: E2 08 00 02 0F 80 0D 01 02 00 00 00 00 8A [16:06:59]Write i2c OK [16:06:59]MH_I2C_Read... [16:06:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:59]Read from MH i2c: E2 [16:06:59]MH_I2C_Read... [16:06:59]Read from MH i2c: E2 03 00 [16:06:59]MH_I2C_Read... [16:06:59]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [16:06:59]RAPDU: 90 00 [16:06:59]wFMCommunicate OK [16:06:59]wFMCommunicate request_size=255 [16:06:59]MH_SAM_APDU [16:06:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 23 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EF 02 00 35 04 06 00 54 [16:06:59]Write to MH i2c: E2 02 01 03 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 23 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EF 02 00 35 04 06 00 54 00 00 ED [16:06:59]Write i2c OK [16:06:59]MH_I2C_Read... [16:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:00]Read from MH i2c: E2 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 03 00 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [16:07:00]RAPDU: 90 00 [16:07:00]wFMCommunicate OK [16:07:00]wFMCommunicate request_size=10 [16:07:00]MH_SAM_APDU [16:07:00]CAPDU: 80 0D 02 02 05 5B 88 FD BA 6E [16:07:00]Write to MH i2c: E2 0D 00 04 0F 80 0D 02 02 05 00 5B 88 FD BA 6E 00 00 9F [16:07:00]Write i2c OK [16:07:00]MH_I2C_Read... [16:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:00]Read from MH i2c: E2 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 03 00 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [16:07:00]RAPDU: 90 00 [16:07:00]wFMCommunicate OK [16:07:00]wFMCommunicate request_size=4 [16:07:00]MH_SAM_APDU [16:07:00]CAPDU: 80 0D 03 02 [16:07:00]Write to MH i2c: E2 08 00 05 0F 80 0D 03 02 00 00 00 00 8F [16:07:00]Write i2c OK [16:07:00]MH_I2C_Read... [16:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:00]Read from MH i2c: E2 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 0B 00 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 0B 00 05 0F 00 8A FC 11 F0 CB 37 B7 B7 90 00 87 [16:07:00]RAPDU: 8A FC 11 F0 CB 37 B7 B7 90 00 [16:07:00]wFMCommunicate OK [16:07:00]SAM_PROTO_SignData done [16:07:00]FM_MakeSignedData done [16:07:00]CreateOFDProtocolMessage [16:07:00]wFMCommunicate request_size=4 [16:07:00]MH_SAM_APDU [16:07:00]CAPDU: 80 11 00 00 [16:07:00]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [16:07:00]Write i2c OK [16:07:00]MH_I2C_Read... [16:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:00]Read from MH i2c: E2 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: E2 17 00 [16:07:00]MH_I2C_Read... [16:07:00]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 37 35 34 90 00 E2 [16:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:07:00]wFMCommunicate OK [16:07:00]CreateOFDProtocolMessage done [16:07:00]OFDSenderStorePacket 192289 [16:07:00]StoreOFDPacket docnum=192289 [16:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 8A 07 01 9A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 23 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EF 02 00 35 04 06 00 54 5B 88 FD BA 6E 8A FC 11 F0 CB 37 B7 B7 [16:07:00]CheckFolder [16:07:00]dirname=/storage/ofd_packets [16:07:00]CheckFolder done [16:07:00]ProducePacketName [16:07:00]name=ofd_packets/00192289 [16:07:00]NVStorageSaveData ofd_packets/00192289 [16:07:00]File name is /storage/ofd_packets/00192289 [16:07:00]Write 301 bytes [16:07:00]NVStorageSaveData done [16:07:00]OFDSenderStorePacket done [16:07:00]KKMCreateOFDPacket done [16:07:00]NVStorageSaveData kkm_last_timestamp [16:07:00]File name is /storage/kkm_last_timestamp [16:07:00]Write 4 bytes [16:07:00]NVStorageSaveData done [16:07:00]ExternCall_PrintAddStr [16:07:00]wPrintStart [16:07:00]Write to MH i2c: 01 00 00 07 0F 16 [16:07:00]Write i2c OK [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 07 00 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [16:07:00]RasterBufferAndPrint [16:07:00]line Счет N : (1)31603 [16:07:00]line ИНН: 02508201610067 [16:07:00]line Контрольно-Кассовый Чек [16:07:00]line ПРОДАЖА [16:07:00]line ТРК (МРК, ГНК) : 21 [16:07:00]line Товар: 2710124130 [16:07:00]line Аи-92-К-5 [16:07:00]line 14.950 * 66.90 [16:07:00]line = 1000.16 [16:07:00]line НДС 12% НСП 1% [16:07:00]line > о реализуемом товаре [16:07:00]line ОКРУГЛЕНИЕ: -0.16 [16:07:00]line ИТОГО: 1000.00 [16:07:00]line Внесено: 1000.00 [16:07:00]line СДАЧА: 0.00 [16:07:00]line НСП 1% : 8.85 [16:07:00]line НДС 12% : 106.21 [16:07:00]line Наличными: 1000.00 [16:07:00]line Безнал.: 0.00 [16:07:00]line Место: АЗС № 170 "Партнер Нефть" [16:07:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:07:00]line СНО: Общий режим [16:07:00]line Чек 321 27.10.2024 16:06 [16:07:00]line Смена: 542 ФФД: 1.0 [16:07:00]line ЗНМ: 0300000110 [16:07:00]line РНМ: 0000000000091776 [16:07:00]line Версия ККМ: 001 [16:07:00]line ФМ: 0000000000871754 [16:07:00]line ФД: 192289 [16:07:00]line ФПД: 92752117086830 [16:07:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160659&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192289&fm=92752117086830&tin=02508201610067®Number=0000000000091776&sum=100000 [16:07:00]OFD Sender: Processing packet 192289 [packets to send 75, broken 74] [16:07:00]ProducePacketName [16:07:00]name=ofd_packets/00192289 [16:07:00]OFD Sender: To server: pG, [16:07:00]CommunicateWithHost lk.salyk.kg:30040 [16:07:00]ConnectInit lk.salyk.kg [16:07:00]written 0, free lines is 4095 [16:07:00]Connected sock=10 [16:07:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 8A 07 01 9A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 23 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EF 02 00 35 04 06 00 54 5B 88 FD BA 6E 8A FC 11 F0 CB 37 B7 B7 [16:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 C2 47 00 00 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 EF 02 00 F4 03 04 00 EA 09 1E 67 B6 04 01 00 00 D3 B5 AC 27 16 E6 4E 92 [16:07:00]CommunicateWithHost err = 0 [16:07:00]CheckOFDResponse [16:07:00]1017 (14) - 77093643461234 [16:07:00]1041 (16) - 0000000000871754 [16:07:00]1040 (4) - 192289 [16:07:00]1012 (4) - 27.10.2024 09:37 [16:07:00]1206 (1) - 0 [16:07:00]OFD Sender: Remove packet 192289 [16:07:00]ProducePacketName [16:07:00]name=ofd_packets/00192289 [16:07:00]NVStorageDeleteData [16:07:00]Write to MH i2c: 01 00 00 32 0F 41 [16:07:00]Write i2c OK [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 07 00 [16:07:00]MH_I2C_Read... [16:07:00]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 AD 0C 01 [16:07:00]RasterBufferAndPrint [16:07:00]line [16:07:00]line [16:07:00]line [16:07:00]line [16:07:00]line [16:07:00]written 0, free lines is 3251 [16:07:01]MH_Cut [16:07:01]Write to MH i2c: D1 01 00 39 0F 01 1A [16:07:01]Write i2c OK [16:07:01]MH_I2C_Read... [16:07:01]Read from MH i2c: D1 [16:07:01]MH_I2C_Read... [16:07:01]Read from MH i2c: D1 01 00 [16:07:01]MH_I2C_Read... [16:07:01]Read from MH i2c: D1 01 00 39 0F 00 19 [16:07:01]Write to MH i2c: 01 00 00 3A 0F 49 [16:07:01]Write i2c OK [16:07:01]MH_I2C_Read... [16:07:01]OFD Sender: No OFD packet to send [16:07:01]*** Cut start [16:07:01]*** Partial cut [16:07:01]*** CUTSNS_PIN = 1 [16:07:01]*** CUTSNS_PIN = 0 [16:07:02]*** Brake cut motor [16:07:02]Read from MH i2c: 01 [16:07:02]MH_I2C_Read... [16:07:02]*** Stop cut motor [16:07:02]Read from MH i2c: 01 07 00 [16:07:02]MH_I2C_Read... [16:07:02]*** Cut end [16:07:02]Read from MH i2c: 01 07 00 3A 0F 00 00 00 00 00 FF 0F 5E [16:07:02]process_action close_receipt done [16:07:02]requested_data is exist [16:07:02]produce_requested_data [16:07:02]requested_item fm.sn is exist - process it [16:07:02]wFMCommunicate request_size=4 [16:07:02]MH_SAM_APDU [16:07:02]CAPDU: 80 11 00 00 [16:07:02]Write to MH i2c: E2 08 00 3B 0F 80 11 00 00 00 00 00 00 C4 [16:07:02]Write i2c OK [16:07:02]MH_I2C_Read... [16:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:02]Read from MH i2c: E2 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 17 00 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 17 00 3B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [16:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:07:02]wFMCommunicate OK [16:07:02]requested_item fd.num is exist - process it [16:07:02]SAM_PROTO_GetFieldsCounters [16:07:02]wFMCommunicate request_size=4 [16:07:02]MH_SAM_APDU [16:07:02]CAPDU: 80 13 00 00 [16:07:02]Write to MH i2c: E2 08 00 3C 0F 80 13 00 00 00 00 00 00 C7 [16:07:02]Write i2c OK [16:07:02]MH_I2C_Read... [16:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:02]Read from MH i2c: E2 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 62 00 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 62 00 3C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [16:07:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:02]wFMCommunicate OK [16:07:02]SAM_PROTO_GetFieldsCounters done [16:07:02]requested_item shift.num is exist - process it [16:07:02]requested_item shift.opened is exist - process it [16:07:02]req_shift_opened [16:07:02]FM_GetShiftState [16:07:02]SAM_PROTO_GetShiftState [16:07:02]wFMCommunicate request_size=4 [16:07:02]MH_SAM_APDU [16:07:02]CAPDU: 80 13 01 00 [16:07:02]Write to MH i2c: E2 08 00 3D 0F 80 13 01 00 00 00 00 00 C9 [16:07:02]Write i2c OK [16:07:02]MH_I2C_Read... [16:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:02]Read from MH i2c: E2 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 0E 00 [16:07:02]MH_I2C_Read... [16:07:02]Read from MH i2c: E2 0E 00 3D 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [16:07:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:07:02]wFMCommunicate OK [16:07:02]SAM_PROTO_GetShiftState done [16:07:02]FM_GetShiftState done [16:07:02]req_shift_opened done [16:07:02]requested_item shift.open_date is exist - process it [16:07:02]req_shift_open_date [16:07:02]req_shift_open_date done [16:07:02]produce_requested_data done [16:07:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192289,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:07:02]process_action_free close_receipt [16:07:02]json_value_free [16:07:02]json_value_free done [16:07:02]process_json_proto returns [16:07:02]Send response to host [16:07:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192289,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:07:02]free response buf [16:07:02]execute_script done [16:07:02]execute_script returns [16:07:02]free content buf [16:07:02]Sock 7.Close socket [16:07:02]Sock 7.Thread stoped [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:10]accept exits with 9 [16:08:10]New connection [16:08:10]New thread 3067080036 created [16:08:10]Thread 3066936676 joined [16:08:10]Waiting for new connection... [16:08:10] Sock 9.Parse request [16:08:10]Sock 9.Check first char [16:08:10]Sock 9.First char is OK [16:08:10]request: POST /json_proto HTTP/1.0 [16:08:10]Method: POST [16:08:10]URL: /json_proto [16:08:10]Method is POST - this is cgi request [16:08:10]url: /json_proto [16:08:10]query_string will be loaded in cgi processing [16:08:10]execute_cgi json_proto POST (null) [16:08:10]execute_cgi path=json_proto method=POST [16:08:10]POST find Content-Length [16:08:10]Host: 172.17.63.131:8080 [16:08:10]Content-Length: 678 [16:08:10]Content-Type: application/json [16:08:10] [16:08:10]POST finish read [16:08:10]Found Content-Length = 678 [16:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31604", "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" : 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" ] } } [16:08:10]execute_script... [16:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31604", "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" : 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" ] } } [16:08:10]POST & json_proto [16:08:10]process_json_proto [16:08:10]json parsed OK: [16:08:10]protocol is kg_v1.0 [16:08:10]action value=close_receipt [16:08:10]process_action close_receipt [16:08:10]cmd_close_receipt [16:08:10]MH_GetDate [16:08:10]Write to MH i2c: F0 00 00 3E 0F 3C [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: F0 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: F0 09 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: F0 09 00 3E 0F 00 6A 65 1E 67 22 05 6E 64 92 [16:08:10]GetLastDocTimeStamp 1730045219 [16:08:10]current date 1730045290 [16:08:10]FM_GetShiftState [16:08:10]SAM_PROTO_GetShiftState [16:08:10]wFMCommunicate request_size=4 [16:08:10]MH_SAM_APDU [16:08:10]CAPDU: 80 13 01 00 [16:08:10]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [16:08:10]Write i2c OK [16:08:10]MH_I2C_Read... [16:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:10]Read from MH i2c: E2 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 0E 00 [16:08:10]MH_I2C_Read... [16:08:10]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [16:08:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:08:10]wFMCommunicate OK [16:08:10]SAM_PROTO_GetShiftState done [16:08:10]FM_GetShiftState done [16:08:10]opened in 1729989159 [16:08:10]opened+sec_in_day 1730075559 [16:08:10]quantity*price = 100050 [16:08:10]sum+1 = 100052 [16:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 322 27.10.2024 16:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192290 ФПД: 260340536082431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192290&fm=260340536082431&tin=02508201610067®Number=0000000000091776&sum=100000 [16:08:11]StoreToDocumentArchive [16:08:11]shift 542 fd 192290 [16:08:11]save to /storage/0542/doc_00192290 [16:08:11]save last doc name /storage/0542/doc_00192290 to /storage/kkm_last_doc_name [16:08:11]save OK [16:08:11]Clear old archive folders... [16:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:08:11]tlvbuf is 002FE250 [16:08:11]SAM_PROTO_ClearQueue [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 09 00 00 [16:08:11]Write to MH i2c: E2 08 00 4C 0F 80 09 00 00 00 00 00 00 CD [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [16:08:11]RAPDU: 90 00 [16:08:11]wFMCommunicate OK [16:08:11]SAM_PROTO_ClearQueue done [16:08:11]KKMCreateOFDPacket [16:08:11]OFDProtocolAddRootSTLVToBuf [16:08:11]FM_MakeSignedData [16:08:11]FM_MakeSignedData [16:08:11]SAM_PROTO_SignData [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 0D 01 02 [16:08:11]Write to MH i2c: E2 08 00 4D 0F 80 0D 01 02 00 00 00 00 D5 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [16:08:11]RAPDU: 90 00 [16:08:11]wFMCommunicate OK [16:08:11]wFMCommunicate request_size=255 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 6A 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EF 02 00 35 04 06 00 EC C7 41 2C [16:08:11]Write to MH i2c: E2 02 01 4E 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 6A 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EF 02 00 35 04 06 00 EC C7 41 2C 00 00 49 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [16:08:11]RAPDU: 90 00 [16:08:11]wFMCommunicate OK [16:08:11]wFMCommunicate request_size=7 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 0D 02 02 02 7F FF [16:08:11]Write to MH i2c: E2 0A 00 4F 0F 80 0D 02 02 02 00 7F FF 00 00 5A [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [16:08:11]RAPDU: 90 00 [16:08:11]wFMCommunicate OK [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 0D 03 02 [16:08:11]Write to MH i2c: E2 08 00 50 0F 80 0D 03 02 00 00 00 00 DA [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0B 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0B 00 50 0F 00 C0 33 FB 04 04 90 A5 17 90 00 1D [16:08:11]RAPDU: C0 33 FB 04 04 90 A5 17 90 00 [16:08:11]wFMCommunicate OK [16:08:11]SAM_PROTO_SignData done [16:08:11]FM_MakeSignedData done [16:08:11]CreateOFDProtocolMessage [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 11 00 00 [16:08:11]Write to MH i2c: E2 08 00 51 0F 80 11 00 00 00 00 00 00 DA [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 17 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 17 00 51 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [16:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:08:12]wFMCommunicate OK [16:08:12]CreateOFDProtocolMessage done [16:08:12]OFDSenderStorePacket 192290 [16:08:12]StoreOFDPacket docnum=192290 [16:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 39 B3 04 01 68 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 42 01 00 00 F4 03 04 00 6A 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EF 02 00 35 04 06 00 EC C7 41 2C 7F FF C0 33 FB 04 04 90 A5 17 [16:08:12]CheckFolder [16:08:12]dirname=/storage/ofd_packets [16:08:12]CheckFolder done [16:08:12]ProducePacketName [16:08:12]name=ofd_packets/00192290 [16:08:12]NVStorageSaveData ofd_packets/00192290 [16:08:12]File name is /storage/ofd_packets/00192290 [16:08:12]Write 298 bytes [16:08:12]NVStorageSaveData done [16:08:12]OFDSenderStorePacket done [16:08:12]KKMCreateOFDPacket done [16:08:12]NVStorageSaveData kkm_last_timestamp [16:08:12]File name is /storage/kkm_last_timestamp [16:08:12]Write 4 bytes [16:08:12]NVStorageSaveData done [16:08:12]ExternCall_PrintAddStr [16:08:12]wPrintStart [16:08:12]Write to MH i2c: 01 00 00 52 0F 61 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 07 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 07 00 52 0F 00 00 00 00 00 FF 0F 76 [16:08:12]RasterBufferAndPrint [16:08:12]line Счет N : (1)31604 [16:08:12]line ИНН: 02508201610067 [16:08:12]line Контрольно-Кассовый Чек [16:08:12]line ПРОДАЖА [16:08:12]line ТРК (МРК, ГНК) : 11 [16:08:12]line Товар: 2710194210 [16:08:12]line ДТ-К-5 [16:08:12]line 13.130 * 76.20 [16:08:12]line = 1000.51 [16:08:12]line НДС 12% НСП 1% [16:08:12]line > о реализуемом товаре [16:08:12]line ОКРУГЛЕНИЕ: -0.51 [16:08:12]line ИТОГО: 1000.00 [16:08:12]line Внесено: 1000.00 [16:08:12]line СДАЧА: 0.00 [16:08:12]line НСП 1% : 8.85 [16:08:12]line НДС 12% : 106.25 [16:08:12]line Наличными: 1000.00 [16:08:12]line Безнал.: 0.00 [16:08:12]line Место: АЗС № 170 "Партнер Нефть" [16:08:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:08:12]line СНО: Общий режим [16:08:12]line Чек 322 27.10.2024 16:08 [16:08:12]line Смена: 542 ФФД: 1.0 [16:08:12]line ЗНМ: 0300000110 [16:08:12]line РНМ: 0000000000091776 [16:08:12]line Версия ККМ: 001 [16:08:12]line ФМ: 0000000000871754 [16:08:12]line ФД: 192290 [16:08:12]line ФПД: 260340536082431 [16:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192290&fm=260340536082431&tin=02508201610067®Number=0000000000091776&sum=100000 [16:08:12]OFD Sender: Processing packet 192290 [packets to send 75, broken 74] [16:08:12]ProducePacketName [16:08:12]name=ofd_packets/00192290 [16:08:12]OFD Sender: To server: pG, [16:08:12]CommunicateWithHost lk.salyk.kg:30040 [16:08:12]ConnectInit lk.salyk.kg [16:08:12]written 0, free lines is 4095 [16:08:12]Connected sock=11 [16:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 39 B3 04 01 68 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 42 01 00 00 F4 03 04 00 6A 65 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EF 02 00 35 04 06 00 EC C7 41 2C 7F FF C0 33 FB 04 04 90 A5 17 [16:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 09 47 00 43 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 EF 02 00 F4 03 04 00 32 0A 1E 67 B6 04 01 00 00 8C AF 13 96 12 38 30 FA [16:08:12]CommunicateWithHost err = 0 [16:08:12]CheckOFDResponse [16:08:12]1017 (14) - 77093643461234 [16:08:12]1041 (16) - 0000000000871754 [16:08:12]1040 (4) - 192290 [16:08:12]1012 (4) - 27.10.2024 09:38 [16:08:12]1206 (1) - 0 [16:08:12]OFD Sender: Remove packet 192290 [16:08:12]ProducePacketName [16:08:12]name=ofd_packets/00192290 [16:08:12]NVStorageDeleteData [16:08:12]Write to MH i2c: 01 00 00 7D 0F 8C [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 07 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 AB 0C 4A [16:08:12]RasterBufferAndPrint [16:08:12]line [16:08:12]line [16:08:12]line [16:08:12]line [16:08:12]line [16:08:12]written 0, free lines is 3249 [16:08:12]MH_Cut [16:08:12]Write to MH i2c: D1 01 00 84 0F 01 65 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: D1 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: D1 01 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: D1 01 00 84 0F 00 64 [16:08:12]Write to MH i2c: 01 00 00 85 0F 94 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:13]OFD Sender: No OFD packet to send [16:08:13]*** Cut start [16:08:13]*** Partial cut [16:08:13]*** CUTSNS_PIN = 1 [16:08:13]*** CUTSNS_PIN = 0 [16:08:13]*** Brake cut motor [16:08:14]Read from MH i2c: 01 [16:08:14]MH_I2C_Read... [16:08:14]*** Stop cut motor [16:08:14]*** Cut end [16:08:14]Read from MH i2c: 01 07 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: 01 07 00 85 0F 00 00 00 00 00 FF 0F A9 [16:08:14]process_action close_receipt done [16:08:14]requested_data is exist [16:08:14]produce_requested_data [16:08:14]requested_item fm.sn is exist - process it [16:08:14]wFMCommunicate request_size=4 [16:08:14]MH_SAM_APDU [16:08:14]CAPDU: 80 11 00 00 [16:08:14]Write to MH i2c: E2 08 00 86 0F 80 11 00 00 00 00 00 00 0F [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:14]Read from MH i2c: E2 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 17 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 17 00 86 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [16:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:08:14]wFMCommunicate OK [16:08:14]requested_item fd.num is exist - process it [16:08:14]SAM_PROTO_GetFieldsCounters [16:08:14]wFMCommunicate request_size=4 [16:08:14]MH_SAM_APDU [16:08:14]CAPDU: 80 13 00 00 [16:08:14]Write to MH i2c: E2 08 00 87 0F 80 13 00 00 00 00 00 00 12 [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:14]Read from MH i2c: E2 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 62 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 62 00 87 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [16:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:14]wFMCommunicate OK [16:08:14]SAM_PROTO_GetFieldsCounters done [16:08:14]requested_item shift.num is exist - process it [16:08:14]requested_item shift.opened is exist - process it [16:08:14]req_shift_opened [16:08:14]FM_GetShiftState [16:08:14]SAM_PROTO_GetShiftState [16:08:14]wFMCommunicate request_size=4 [16:08:14]MH_SAM_APDU [16:08:14]CAPDU: 80 13 01 00 [16:08:14]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:14]Read from MH i2c: E2 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 0E 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [16:08:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:08:14]wFMCommunicate OK [16:08:14]SAM_PROTO_GetShiftState done [16:08:14]FM_GetShiftState done [16:08:14]req_shift_opened done [16:08:14]requested_item shift.open_date is exist - process it [16:08:14]req_shift_open_date [16:08:14]req_shift_open_date done [16:08:14]produce_requested_data done [16:08:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192290,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:08:14]process_action_free close_receipt [16:08:14]json_value_free [16:08:14]json_value_free done [16:08:14]process_json_proto returns [16:08:14]Send response to host [16:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192290,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:08:14]free response buf [16:08:14]execute_script done [16:08:14]execute_script returns [16:08:14]free content buf [16:08:14]Sock 9.Close socket [16:08:14]Sock 9.Thread stoped [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]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:11:58]accept exits with 7 [16:11:58]New connection [16:11:58]New thread 3066936676 created [16:11:58]Thread 3067080036 joined [16:11:58]Waiting for new connection... [16:11:58] Sock 7.Parse request [16:11:58]Sock 7.Check first char [16:11:58]Sock 7.First char is OK [16:11:58]request: POST /json_proto HTTP/1.0 [16:11:58]Method: POST [16:11:58]URL: /json_proto [16:11:58]Method is POST - this is cgi request [16:11:58]url: /json_proto [16:11:58]query_string will be loaded in cgi processing [16:11:58]execute_cgi json_proto POST (null) [16:11:58]execute_cgi path=json_proto method=POST [16:11:58]POST find Content-Length [16:11:58]Host: 172.17.63.131:8080 [16:11:58]Content-Length: 678 [16:11:58]Content-Type: application/json [16:11:58] [16:11:58]POST finish read [16:11:58]Found Content-Length = 678 [16:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31605", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:58]execute_script... [16:11:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31605", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:58]POST & json_proto [16:11:58]process_json_proto [16:11:58]json parsed OK: [16:11:58]protocol is kg_v1.0 [16:11:58]action value=close_receipt [16:11:58]process_action close_receipt [16:11:58]cmd_close_receipt [16:11:58]MH_GetDate [16:11:58]Write to MH i2c: F0 00 00 89 0F 87 [16:11:58]Write i2c OK [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: F0 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: F0 09 00 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: F0 09 00 89 0F 00 4F 66 1E 67 22 05 6E 64 C3 [16:11:58]GetLastDocTimeStamp 1730045290 [16:11:58]current date 1730045519 [16:11:58]FM_GetShiftState [16:11:58]SAM_PROTO_GetShiftState [16:11:58]wFMCommunicate request_size=4 [16:11:58]MH_SAM_APDU [16:11:58]CAPDU: 80 13 01 00 [16:11:58]Write to MH i2c: E2 08 00 8A 0F 80 13 01 00 00 00 00 00 16 [16:11:58]Write i2c OK [16:11:58]MH_I2C_Read... [16:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:58]Read from MH i2c: E2 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: E2 0E 00 [16:11:58]MH_I2C_Read... [16:11:58]Read from MH i2c: E2 0E 00 8A 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [16:11:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:11:58]wFMCommunicate OK [16:11:58]SAM_PROTO_GetShiftState done [16:11:58]FM_GetShiftState done [16:11:58]opened in 1729989159 [16:11:58]opened+sec_in_day 1730075559 [16:11:58]quantity*price = 300075 [16:11:58]sum+1 = 300077 [16:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 323 27.10.2024 16:11 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192291 ФПД: 276124656586330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192291&fm=276124656586330&tin=02508201610067®Number=0000000000091776&sum=300000 [16:11:59]StoreToDocumentArchive [16:11:59]shift 542 fd 192291 [16:11:59]save to /storage/0542/doc_00192291 [16:11:59]save last doc name /storage/0542/doc_00192291 to /storage/kkm_last_doc_name [16:11:59]save OK [16:11:59]Clear old archive folders... [16:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:59]tlvbuf is 00336ED0 [16:11:59]SAM_PROTO_ClearQueue [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 09 00 00 [16:11:59]Write to MH i2c: E2 08 00 97 0F 80 09 00 00 00 00 00 00 18 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 03 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [16:11:59]RAPDU: 90 00 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_ClearQueue done [16:11:59]KKMCreateOFDPacket [16:11:59]OFDProtocolAddRootSTLVToBuf [16:11:59]FM_MakeSignedData [16:11:59]FM_MakeSignedData [16:11:59]SAM_PROTO_SignData [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 0D 01 02 [16:11:59]Write to MH i2c: E2 08 00 98 0F 80 0D 01 02 00 00 00 00 20 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 03 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [16:11:59]RAPDU: 90 00 [16:11:59]wFMCommunicate OK [16:11:59]wFMCommunicate request_size=255 [16:11:59]MH_SAM_APDU [16:11: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4F 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EF 02 00 35 04 06 00 FB 22 48 11 [16:11:59]Write to MH i2c: E2 02 01 99 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4F 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EF 02 00 35 04 06 00 FB 22 48 11 00 00 09 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:00]Read from MH i2c: E2 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 03 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [16:12:00]RAPDU: 90 00 [16:12:00]wFMCommunicate OK [16:12:00]wFMCommunicate request_size=7 [16:12:00]MH_SAM_APDU [16:12:00]CAPDU: 80 0D 02 02 02 CE 5A [16:12:00]Write to MH i2c: E2 0A 00 9A 0F 80 0D 02 02 02 00 CE 5A 00 00 4F [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:00]Read from MH i2c: E2 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 03 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [16:12:00]RAPDU: 90 00 [16:12:00]wFMCommunicate OK [16:12:00]wFMCommunicate request_size=4 [16:12:00]MH_SAM_APDU [16:12:00]CAPDU: 80 0D 03 02 [16:12:00]Write to MH i2c: E2 08 00 9B 0F 80 0D 03 02 00 00 00 00 25 [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:00]Read from MH i2c: E2 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 0B 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 0B 00 9B 0F 00 9E FE 9C 9E 2F 6F 03 23 90 00 C0 [16:12:00]RAPDU: 9E FE 9C 9E 2F 6F 03 23 90 00 [16:12:00]wFMCommunicate OK [16:12:00]SAM_PROTO_SignData done [16:12:00]FM_MakeSignedData done [16:12:00]CreateOFDProtocolMessage [16:12:00]wFMCommunicate request_size=4 [16:12:00]MH_SAM_APDU [16:12:00]CAPDU: 80 11 00 00 [16:12:00]Write to MH i2c: E2 08 00 9C 0F 80 11 00 00 00 00 00 00 25 [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:00]Read from MH i2c: E2 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 17 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 17 00 9C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [16:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:00]wFMCommunicate OK [16:12:00]CreateOFDProtocolMessage done [16:12:00]OFDSenderStorePacket 192291 [16:12:00]StoreOFDPacket docnum=192291 [16:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 08 04 01 DC 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4F 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EF 02 00 35 04 06 00 FB 22 48 11 CE 5A 9E FE 9C 9E 2F 6F 03 23 [16:12:00]CheckFolder [16:12:00]dirname=/storage/ofd_packets [16:12:00]CheckFolder done [16:12:00]ProducePacketName [16:12:00]name=ofd_packets/00192291 [16:12:00]NVStorageSaveData ofd_packets/00192291 [16:12:00]File name is /storage/ofd_packets/00192291 [16:12:00]Write 298 bytes [16:12:00]NVStorageSaveData done [16:12:00]OFDSenderStorePacket done [16:12:00]KKMCreateOFDPacket done [16:12:00]NVStorageSaveData kkm_last_timestamp [16:12:00]File name is /storage/kkm_last_timestamp [16:12:00]Write 4 bytes [16:12:00]NVStorageSaveData done [16:12:00]ExternCall_PrintAddStr [16:12:00]wPrintStart [16:12:00]Write to MH i2c: 01 00 00 9D 0F AC [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: 01 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: 01 07 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 FF 0F C1 [16:12:00]RasterBufferAndPrint [16:12:00]line Счет N : (1)31605 [16:12:00]line ИНН: 02508201610067 [16:12:00]line Контрольно-Кассовый Чек [16:12:00]line ПРОДАЖА [16:12:00]line ТРК (МРК, ГНК) : 11 [16:12:00]line Товар: 2710194210 [16:12:00]line ДТ-К-5 [16:12:00]line 39.380 * 76.20 [16:12:00]line = 3000.76 [16:12:00]line НДС 12% НСП 1% [16:12:00]line > о реализуемом товаре [16:12:00]line ОКРУГЛЕНИЕ: -0.76 [16:12:00]line ИТОГО: 3000.00 [16:12:00]line Внесено: 3000.00 [16:12:00]line СДАЧА: 0.00 [16:12:00]line НСП 1% : 26.55 [16:12:00]line НДС 12% : 318.66 [16:12:00]line Наличными: 3000.00 [16:12:00]line Безнал.: 0.00 [16:12:00]line Место: АЗС № 170 "Партнер Нефть" [16:12:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:12:00]line СНО: Общий режим [16:12:00]line Чек 323 27.10.2024 16:11 [16:12:00]line Смена: 542 ФФД: 1.0 [16:12:00]line ЗНМ: 0300000110 [16:12:00]line РНМ: 0000000000091776 [16:12:00]line Версия ККМ: 001 [16:12:00]line ФМ: 0000000000871754 [16:12:00]line ФД: 192291 [16:12:00]line ФПД: 276124656586330 [16:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161159&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192291&fm=276124656586330&tin=02508201610067®Number=0000000000091776&sum=300000 [16:12:00]OFD Sender: Processing packet 192291 [packets to send 75, broken 74] [16:12:00]ProducePacketName [16:12:00]name=ofd_packets/00192291 [16:12:00]OFD Sender: To server: pG, [16:12:00]CommunicateWithHost lk.salyk.kg:30040 [16:12:00]ConnectInit lk.salyk.kg [16:12:00]written 0, free lines is 4095 [16:12:00]Connected sock=11 [16:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 08 04 01 DC 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4F 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EF 02 00 35 04 06 00 FB 22 48 11 CE 5A 9E FE 9C 9E 2F 6F 03 23 [16:12:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 33 47 00 A6 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 EF 02 00 F4 03 04 00 16 0B 1E 67 B6 04 01 00 00 31 52 AB 07 C3 6D CE 12 [16:12:01]CommunicateWithHost err = 0 [16:12:01]CheckOFDResponse [16:12:01]1017 (14) - 77093643461234 [16:12:01]1041 (16) - 0000000000871754 [16:12:01]1040 (4) - 192291 [16:12:01]1012 (4) - 27.10.2024 09:42 [16:12:01]1206 (1) - 0 [16:12:01]OFD Sender: Remove packet 192291 [16:12:01]ProducePacketName [16:12:01]name=ofd_packets/00192291 [16:12:01]NVStorageDeleteData [16:12:01]Write to MH i2c: 01 00 00 C8 0F D7 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 C8 0F 00 00 00 00 00 BE 0C A8 [16:12:01]RasterBufferAndPrint [16:12:01]line [16:12:01]line [16:12:01]line [16:12:01]line [16:12:01]line [16:12:01]written 0, free lines is 3268 [16:12:01]MH_Cut [16:12:01]Write to MH i2c: D1 01 00 CF 0F 01 B0 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: D1 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: D1 01 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: D1 01 00 CF 0F 00 AF [16:12:01]Write to MH i2c: 01 00 00 D0 0F DF [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]OFD Sender: No OFD packet to send [16:12:01]*** Cut start [16:12:01]*** Partial cut [16:12:01]*** CUTSNS_PIN = 1 [16:12:01]*** CUTSNS_PIN = 0 [16:12:02]*** Brake cut motor [16:12:02]Read from MH i2c: 01 [16:12:02]MH_I2C_Read... [16:12:02]*** Stop cut motor [16:12:02]*** Cut end [16:12:02]Read from MH i2c: 01 07 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 07 00 D0 0F 00 00 00 00 00 FF 0F F4 [16:12:02]process_action close_receipt done [16:12:02]requested_data is exist [16:12:02]produce_requested_data [16:12:02]requested_item fm.sn is exist - process it [16:12:02]wFMCommunicate request_size=4 [16:12:02]MH_SAM_APDU [16:12:02]CAPDU: 80 11 00 00 [16:12:02]Write to MH i2c: E2 08 00 D1 0F 80 11 00 00 00 00 00 00 5A [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:02]Read from MH i2c: E2 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 17 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 17 00 D1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [16:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:02]wFMCommunicate OK [16:12:02]requested_item fd.num is exist - process it [16:12:02]SAM_PROTO_GetFieldsCounters [16:12:02]wFMCommunicate request_size=4 [16:12:02]MH_SAM_APDU [16:12:02]CAPDU: 80 13 00 00 [16:12:02]Write to MH i2c: E2 08 00 D2 0F 80 13 00 00 00 00 00 00 5D [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:02]Read from MH i2c: E2 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 62 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 62 00 D2 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:02]wFMCommunicate OK [16:12:02]SAM_PROTO_GetFieldsCounters done [16:12:02]requested_item shift.num is exist - process it [16:12:02]requested_item shift.opened is exist - process it [16:12:02]req_shift_opened [16:12:02]FM_GetShiftState [16:12:02]SAM_PROTO_GetShiftState [16:12:02]wFMCommunicate request_size=4 [16:12:02]MH_SAM_APDU [16:12:02]CAPDU: 80 13 01 00 [16:12:02]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:02]Read from MH i2c: E2 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 0E 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A0 [16:12:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:12:02]wFMCommunicate OK [16:12:02]SAM_PROTO_GetShiftState done [16:12:02]FM_GetShiftState done [16:12:02]req_shift_opened done [16:12:02]requested_item shift.open_date is exist - process it [16:12:02]req_shift_open_date [16:12:02]req_shift_open_date done [16:12:02]produce_requested_data done [16:12:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192291,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:12:02]process_action_free close_receipt [16:12:02]json_value_free [16:12:02]json_value_free done [16:12:02]process_json_proto returns [16:12:02]Send response to host [16:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192291,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:12:02]free response buf [16:12:02]execute_script done [16:12:02]execute_script returns [16:12:02]free content buf [16:12:02]Sock 7.Close socket [16:12:02]Sock 7.Thread stoped [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:54]accept exits with 9 [16:12:54]New connection [16:12:54]New thread 3067080036 created [16:12:54]Thread 3066936676 joined [16:12:54]Waiting for new connection... [16:12:54] Sock 9.Parse request [16:12:54]Sock 9.Check first char [16:12:54]Sock 9.First char is OK [16:12:54]request: POST /json_proto HTTP/1.0 [16:12:54]Method: POST [16:12:54]URL: /json_proto [16:12:54]Method is POST - this is cgi request [16:12:54]url: /json_proto [16:12:54]query_string will be loaded in cgi processing [16:12:54]execute_cgi json_proto POST (null) [16:12:54]execute_cgi path=json_proto method=POST [16:12:54]POST find Content-Length [16:12:54]Host: 172.17.63.131:8080 [16:12:54]Content-Length: 676 [16:12:54]Content-Type: application/json [16:12:54] [16:12:54]POST finish read [16:12:54]Found Content-Length = 676 [16:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:54]execute_script... [16:12:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:54]POST & json_proto [16:12:54]process_json_proto [16:12:54]json parsed OK: [16:12:54]protocol is kg_v1.0 [16:12:54]action value=close_receipt [16:12:54]process_action close_receipt [16:12:54]cmd_close_receipt [16:12:54]MH_GetDate [16:12:54]Write to MH i2c: F0 00 00 D4 0F D2 [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: F0 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: F0 09 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: F0 09 00 D4 0F 00 87 66 1E 67 22 05 6E 64 46 [16:12:54]GetLastDocTimeStamp 1730045519 [16:12:54]current date 1730045575 [16:12:54]FM_GetShiftState [16:12:54]SAM_PROTO_GetShiftState [16:12:54]wFMCommunicate request_size=4 [16:12:54]MH_SAM_APDU [16:12:54]CAPDU: 80 13 01 00 [16:12:54]Write to MH i2c: E2 08 00 D5 0F 80 13 01 00 00 00 00 00 61 [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 D5 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [16:12:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:12:54]wFMCommunicate OK [16:12:54]SAM_PROTO_GetShiftState done [16:12:54]FM_GetShiftState done [16:12:54]opened in 1729989159 [16:12:54]opened+sec_in_day 1730075559 [16:12:54]quantity*price = 50041 [16:12:54]sum+1 = 50042 [16:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 324 27.10.2024 16:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192292 ФПД: 177403211270049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161255&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192292&fm=177403211270049&tin=02508201610067®Number=0000000000091776&sum=50000 [16:12:55]StoreToDocumentArchive [16:12:55]shift 542 fd 192292 [16:12:55]save to /storage/0542/doc_00192292 [16:12:55]save last doc name /storage/0542/doc_00192292 to /storage/kkm_last_doc_name [16:12:55]save OK [16:12:55]Clear old archive folders... [16:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:55]tlvbuf is 002DA080 [16:12:55]SAM_PROTO_ClearQueue [16:12:55]wFMCommunicate request_size=4 [16:12:55]MH_SAM_APDU [16:12:55]CAPDU: 80 09 00 00 [16:12:55]Write to MH i2c: E2 08 00 E2 0F 80 09 00 00 00 00 00 00 63 [16:12:55]Write i2c OK [16:12:55]MH_I2C_Read... [16:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:55]Read from MH i2c: E2 [16:12:55]MH_I2C_Read... [16:12:55]Read from MH i2c: E2 03 00 [16:12:55]MH_I2C_Read... [16:12:55]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [16:12:55]RAPDU: 90 00 [16:12:55]wFMCommunicate OK [16:12:55]SAM_PROTO_ClearQueue done [16:12:55]KKMCreateOFDPacket [16:12:55]OFDProtocolAddRootSTLVToBuf [16:12:55]FM_MakeSignedData [16:12:55]FM_MakeSignedData [16:12:55]SAM_PROTO_SignData [16:12:55]wFMCommunicate request_size=4 [16:12:55]MH_SAM_APDU [16:12:55]CAPDU: 80 0D 01 02 [16:12:55]Write to MH i2c: E2 08 00 E3 0F 80 0D 01 02 00 00 00 00 6B [16:12:55]Write i2c OK [16:12:55]MH_I2C_Read... [16:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:55]Read from MH i2c: E2 [16:12:55]MH_I2C_Read... [16:12:55]Read from MH i2c: E2 03 00 [16:12:55]MH_I2C_Read... [16:12:55]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [16:12:55]RAPDU: 90 00 [16:12:55]wFMCommunicate OK [16:12:55]wFMCommunicate request_size=255 [16:12:55]MH_SAM_APDU [16:12:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 87 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EF 02 00 35 04 06 00 A1 [16:12:55]Write to MH i2c: E2 02 01 E4 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 87 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EF 02 00 35 04 06 00 A1 00 00 8C [16:12:55]Write i2c OK [16:12:55]MH_I2C_Read... [16:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:56]Read from MH i2c: E2 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 03 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [16:12:56]RAPDU: 90 00 [16:12:56]wFMCommunicate OK [16:12:56]wFMCommunicate request_size=10 [16:12:56]MH_SAM_APDU [16:12:56]CAPDU: 80 0D 02 02 05 58 E7 63 C7 A1 [16:12:56]Write to MH i2c: E2 0D 00 E5 0F 80 0D 02 02 05 00 58 E7 63 C7 A1 00 00 82 [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:56]Read from MH i2c: E2 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 03 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [16:12:56]RAPDU: 90 00 [16:12:56]wFMCommunicate OK [16:12:56]wFMCommunicate request_size=4 [16:12:56]MH_SAM_APDU [16:12:56]CAPDU: 80 0D 03 02 [16:12:56]Write to MH i2c: E2 08 00 E6 0F 80 0D 03 02 00 00 00 00 70 [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:56]Read from MH i2c: E2 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 0B 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 0B 00 E6 0F 00 A1 E0 17 05 0E 22 DF E4 90 00 01 [16:12:56]RAPDU: A1 E0 17 05 0E 22 DF E4 90 00 [16:12:56]wFMCommunicate OK [16:12:56]SAM_PROTO_SignData done [16:12:56]FM_MakeSignedData done [16:12:56]CreateOFDProtocolMessage [16:12:56]wFMCommunicate request_size=4 [16:12:56]MH_SAM_APDU [16:12:56]CAPDU: 80 11 00 00 [16:12:56]Write to MH i2c: E2 08 00 E7 0F 80 11 00 00 00 00 00 00 70 [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:56]Read from MH i2c: E2 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 17 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: E2 17 00 E7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [16:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:56]wFMCommunicate OK [16:12:56]CreateOFDProtocolMessage done [16:12:56]OFDSenderStorePacket 192292 [16:12:56]StoreOFDPacket docnum=192292 [16:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D A5 07 01 49 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 87 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EF 02 00 35 04 06 00 A1 58 E7 63 C7 A1 A1 E0 17 05 0E 22 DF E4 [16:12:56]CheckFolder [16:12:56]dirname=/storage/ofd_packets [16:12:56]CheckFolder done [16:12:56]ProducePacketName [16:12:56]name=ofd_packets/00192292 [16:12:56]NVStorageSaveData ofd_packets/00192292 [16:12:56]File name is /storage/ofd_packets/00192292 [16:12:56]Write 301 bytes [16:12:56]NVStorageSaveData done [16:12:56]OFDSenderStorePacket done [16:12:56]KKMCreateOFDPacket done [16:12:56]NVStorageSaveData kkm_last_timestamp [16:12:56]File name is /storage/kkm_last_timestamp [16:12:56]Write 4 bytes [16:12:56]NVStorageSaveData done [16:12:56]ExternCall_PrintAddStr [16:12:56]wPrintStart [16:12:56]Write to MH i2c: 01 00 00 E8 0F F7 [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 07 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 FF 0F 0C [16:12:56]RasterBufferAndPrint [16:12:56]line Счет N : (1)31606 [16:12:56]line ИНН: 02508201610067 [16:12:56]line Контрольно-Кассовый Чек [16:12:56]line ПРОДАЖА [16:12:56]line ТРК (МРК, ГНК) : 12 [16:12:56]line Товар: 2710124130 [16:12:56]line Аи-92-К-5 [16:12:56]line 7.480 * 66.90 [16:12:56]line = 500.41 [16:12:56]line НДС 12% НСП 1% [16:12:56]line > о реализуемом товаре [16:12:56]line ОКРУГЛЕНИЕ: -0.41 [16:12:56]line ИТОГО: 500.00 [16:12:56]line Внесено: 500.00 [16:12:56]line СДАЧА: 0.00 [16:12:56]line НСП 1% : 4.43 [16:12:56]line НДС 12% : 53.14 [16:12:56]line Наличными: 500.00 [16:12:56]line Безнал.: 0.00 [16:12:56]line Место: АЗС № 170 "Партнер Нефть" [16:12:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:12:56]line СНО: Общий режим [16:12:56]line Чек 324 27.10.2024 16:12 [16:12:56]line Смена: 542 ФФД: 1.0 [16:12:56]line ЗНМ: 0300000110 [16:12:56]line РНМ: 0000000000091776 [16:12:56]line Версия ККМ: 001 [16:12:56]line ФМ: 0000000000871754 [16:12:56]line ФД: 192292 [16:12:56]line ФПД: 177403211270049 [16:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161255&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192292&fm=177403211270049&tin=02508201610067®Number=0000000000091776&sum=50000 [16:12:56]written 0, free lines is 4095 [16:12:56]OFD Sender: Processing packet 192292 [packets to send 75, broken 74] [16:12:56]ProducePacketName [16:12:56]name=ofd_packets/00192292 [16:12:56]OFD Sender: To server: pG, [16:12:56]CommunicateWithHost lk.salyk.kg:30040 [16:12:56]ConnectInit lk.salyk.kg [16:12:56]Connected sock=10 [16:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D A5 07 01 49 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 87 66 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EF 02 00 35 04 06 00 A1 58 E7 63 C7 A1 A1 E0 17 05 0E 22 DF E4 [16:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B 81 47 00 B7 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 EF 02 00 F4 03 04 00 4E 0B 1E 67 B6 04 01 00 00 FD 49 50 66 FD 0B 35 3B [16:12:56]CommunicateWithHost err = 0 [16:12:56]CheckOFDResponse [16:12:56]1017 (14) - 77093643461234 [16:12:56]1041 (16) - 0000000000871754 [16:12:56]1040 (4) - 192292 [16:12:56]1012 (4) - 27.10.2024 09:43 [16:12:56]1206 (1) - 0 [16:12:56]OFD Sender: Remove packet 192292 [16:12:56]ProducePacketName [16:12:56]name=ofd_packets/00192292 [16:12:56]NVStorageDeleteData [16:12:56]Write to MH i2c: 01 00 00 13 10 23 [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 07 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 B7 0C ED [16:12:56]RasterBufferAndPrint [16:12:56]line [16:12:56]line [16:12:56]line [16:12:56]line [16:12:56]line [16:12:56]written 0, free lines is 3262 [16:12:56]MH_Cut [16:12:56]Write to MH i2c: D1 01 00 1A 10 01 FC [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: D1 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: D1 01 00 [16:12:56]MH_I2C_Read... [16:12:56]Read from MH i2c: D1 01 00 1A 10 00 FB [16:12:56]Write to MH i2c: 01 00 00 1B 10 2B [16:12:56]Write i2c OK [16:12:56]MH_I2C_Read... [16:12:57]OFD Sender: No OFD packet to send [16:12:57]*** Cut start [16:12:57]*** Partial cut [16:12:57]*** CUTSNS_PIN = 1 [16:12:57]*** CUTSNS_PIN = 0 [16:12:57]*** Brake cut motor [16:12:58]Read from MH i2c: 01 [16:12:58]MH_I2C_Read... [16:12:58]*** Stop cut motor [16:12:58]*** Cut end [16:12:58]Read from MH i2c: 01 07 00 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: 01 07 00 1B 10 00 00 00 00 00 FF 0F 40 [16:12:58]process_action close_receipt done [16:12:58]requested_data is exist [16:12:58]produce_requested_data [16:12:58]requested_item fm.sn is exist - process it [16:12:58]wFMCommunicate request_size=4 [16:12:58]MH_SAM_APDU [16:12:58]CAPDU: 80 11 00 00 [16:12:58]Write to MH i2c: E2 08 00 1C 10 80 11 00 00 00 00 00 00 A6 [16:12:58]Write i2c OK [16:12:58]MH_I2C_Read... [16:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:58]Read from MH i2c: E2 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 17 00 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 17 00 1C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [16:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:58]wFMCommunicate OK [16:12:58]requested_item fd.num is exist - process it [16:12:58]SAM_PROTO_GetFieldsCounters [16:12:58]wFMCommunicate request_size=4 [16:12:58]MH_SAM_APDU [16:12:58]CAPDU: 80 13 00 00 [16:12:58]Write to MH i2c: E2 08 00 1D 10 80 13 00 00 00 00 00 00 A9 [16:12:58]Write i2c OK [16:12:58]MH_I2C_Read... [16:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:58]Read from MH i2c: E2 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 62 00 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 62 00 1D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:58]wFMCommunicate OK [16:12:58]SAM_PROTO_GetFieldsCounters done [16:12:58]requested_item shift.num is exist - process it [16:12:58]requested_item shift.opened is exist - process it [16:12:58]req_shift_opened [16:12:58]FM_GetShiftState [16:12:58]SAM_PROTO_GetShiftState [16:12:58]wFMCommunicate request_size=4 [16:12:58]MH_SAM_APDU [16:12:58]CAPDU: 80 13 01 00 [16:12:58]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [16:12:58]Write i2c OK [16:12:58]MH_I2C_Read... [16:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:58]Read from MH i2c: E2 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 0E 00 [16:12:58]MH_I2C_Read... [16:12:58]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [16:12:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:12:58]wFMCommunicate OK [16:12:58]SAM_PROTO_GetShiftState done [16:12:58]FM_GetShiftState done [16:12:58]req_shift_opened done [16:12:58]requested_item shift.open_date is exist - process it [16:12:58]req_shift_open_date [16:12:58]req_shift_open_date done [16:12:58]produce_requested_data done [16:12:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192292,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:12:58]process_action_free close_receipt [16:12:58]json_value_free [16:12:58]json_value_free done [16:12:58]process_json_proto returns [16:12:58]Send response to host [16:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192292,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:12:58]free response buf [16:12:58]execute_script done [16:12:58]execute_script returns [16:12:58]free content buf [16:12:58]Sock 9.Close socket [16:12:58]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:45]ConnectInit Can't connect to host [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:18]accept exits with 7 [16:18:18]New connection [16:18:18]New thread 3066936676 created [16:18:18]Thread 3067080036 joined [16:18:18]Waiting for new connection... [16:18:18] Sock 7.Parse request [16:18:18]Sock 7.Check first char [16:18:18]Sock 7.First char is OK [16:18:18]request: POST /json_proto HTTP/1.0 [16:18:18]Method: POST [16:18:18]URL: /json_proto [16:18:18]Method is POST - this is cgi request [16:18:18]url: /json_proto [16:18:18]query_string will be loaded in cgi processing [16:18:18]execute_cgi json_proto POST (null) [16:18:18]execute_cgi path=json_proto method=POST [16:18:18]POST find Content-Length [16:18:18]Host: 172.17.63.131:8080 [16:18:18]Content-Length: 678 [16:18:18]Content-Type: application/json [16:18:18] [16:18:18]POST finish read [16:18:18]Found Content-Length = 678 [16:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31607", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:18]execute_script... [16:18: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)31607", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:18]POST & json_proto [16:18:18]process_json_proto [16:18:18]json parsed OK: [16:18:18]protocol is kg_v1.0 [16:18:18]action value=close_receipt [16:18:18]process_action close_receipt [16:18:18]cmd_close_receipt [16:18:18]MH_GetDate [16:18:18]Write to MH i2c: F0 00 00 1F 10 1E [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: F0 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: F0 09 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: F0 09 00 1F 10 00 CB 67 1E 67 22 05 6E 64 D7 [16:18:18]GetLastDocTimeStamp 1730045575 [16:18:18]current date 1730045899 [16:18:18]FM_GetShiftState [16:18:18]SAM_PROTO_GetShiftState [16:18:18]wFMCommunicate request_size=4 [16:18:18]MH_SAM_APDU [16:18:18]CAPDU: 80 13 01 00 [16:18:18]Write to MH i2c: E2 08 00 20 10 80 13 01 00 00 00 00 00 AD [16:18:18]Write i2c OK [16:18:18]MH_I2C_Read... [16:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:18]Read from MH i2c: E2 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 0E 00 [16:18:18]MH_I2C_Read... [16:18:18]Read from MH i2c: E2 0E 00 20 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EE [16:18:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:18:18]wFMCommunicate OK [16:18:18]SAM_PROTO_GetShiftState done [16:18:18]FM_GetShiftState done [16:18:18]opened in 1729989159 [16:18:18]opened+sec_in_day 1730075559 [16:18:18]quantity*price = 200025 [16:18:18]sum+1 = 200026 [16:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 325 27.10.2024 16:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192293 ФПД: 162394041328509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192293&fm=162394041328509&tin=02508201610067®Number=0000000000091776&sum=200000 [16:18:20]StoreToDocumentArchive [16:18:20]shift 542 fd 192293 [16:18:20]save to /storage/0542/doc_00192293 [16:18:20]save last doc name /storage/0542/doc_00192293 to /storage/kkm_last_doc_name [16:18:20]save OK [16:18:20]Clear old archive folders... [16:18:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:18:20]tlvbuf is 00322CF0 [16:18:20]SAM_PROTO_ClearQueue [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 09 00 00 [16:18:20]Write to MH i2c: E2 08 00 2D 10 80 09 00 00 00 00 00 00 AF [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [16:18:20]RAPDU: 90 00 [16:18:20]wFMCommunicate OK [16:18:20]SAM_PROTO_ClearQueue done [16:18:20]KKMCreateOFDPacket [16:18:20]OFDProtocolAddRootSTLVToBuf [16:18:20]FM_MakeSignedData [16:18:20]FM_MakeSignedData [16:18:20]SAM_PROTO_SignData [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 0D 01 02 [16:18:20]Write to MH i2c: E2 08 00 2E 10 80 0D 01 02 00 00 00 00 B7 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [16:18:20]RAPDU: 90 00 [16:18:20]wFMCommunicate OK [16:18:20]wFMCommunicate request_size=255 [16:18:20]MH_SAM_APDU [16:18: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CB 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EF 02 00 35 04 06 00 93 B2 4F 25 [16:18:20]Write to MH i2c: E2 02 01 2F 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CB 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EF 02 00 35 04 06 00 93 B2 4F 25 00 00 1B [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [16:18:20]RAPDU: 90 00 [16:18:20]wFMCommunicate OK [16:18:20]wFMCommunicate request_size=7 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 0D 02 02 02 A3 7D [16:18:20]Write to MH i2c: E2 0A 00 30 10 80 0D 02 02 02 00 A3 7D 00 00 DE [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [16:18:20]RAPDU: 90 00 [16:18:20]wFMCommunicate OK [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 0D 03 02 [16:18:20]Write to MH i2c: E2 08 00 31 10 80 0D 03 02 00 00 00 00 BC [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 0B 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 0B 00 31 10 00 66 E8 E5 F6 E8 38 C3 7A 90 00 43 [16:18:20]RAPDU: 66 E8 E5 F6 E8 38 C3 7A 90 00 [16:18:20]wFMCommunicate OK [16:18:20]SAM_PROTO_SignData done [16:18:20]FM_MakeSignedData done [16:18:20]CreateOFDProtocolMessage [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 11 00 00 [16:18:20]Write to MH i2c: E2 08 00 32 10 80 11 00 00 00 00 00 00 BC [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:20]Read from MH i2c: E2 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 17 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: E2 17 00 32 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [16:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:20]wFMCommunicate OK [16:18:20]CreateOFDProtocolMessage done [16:18:20]OFDSenderStorePacket 192293 [16:18:20]StoreOFDPacket docnum=192293 [16:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 20 04 01 81 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CB 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EF 02 00 35 04 06 00 93 B2 4F 25 A3 7D 66 E8 E5 F6 E8 38 C3 7A [16:18:20]CheckFolder [16:18:20]dirname=/storage/ofd_packets [16:18:20]CheckFolder done [16:18:20]ProducePacketName [16:18:20]name=ofd_packets/00192293 [16:18:20]NVStorageSaveData ofd_packets/00192293 [16:18:20]File name is /storage/ofd_packets/00192293 [16:18:20]Write 298 bytes [16:18:20]NVStorageSaveData done [16:18:20]OFDSenderStorePacket done [16:18:20]KKMCreateOFDPacket done [16:18:20]NVStorageSaveData kkm_last_timestamp [16:18:20]File name is /storage/kkm_last_timestamp [16:18:20]Write 4 bytes [16:18:20]NVStorageSaveData done [16:18:20]ExternCall_PrintAddStr [16:18:20]wPrintStart [16:18:20]Write to MH i2c: 01 00 00 33 10 43 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 FF 0F 58 [16:18:20]RasterBufferAndPrint [16:18:20]line Счет N : (1)31607 [16:18:20]line ИНН: 02508201610067 [16:18:20]line Контрольно-Кассовый Чек [16:18:20]line ПРОДАЖА [16:18:20]line ТРК (МРК, ГНК) : 11 [16:18:20]line Товар: 2710194210 [16:18:20]line ДТ-К-5 [16:18:20]line 26.250 * 76.20 [16:18:20]line = 2000.25 [16:18:20]line НДС 12% НСП 1% [16:18:20]line > о реализуемом товаре [16:18:20]line ОКРУГЛЕНИЕ: -0.25 [16:18:20]line ИТОГО: 2000.00 [16:18:20]line Внесено: 2000.00 [16:18:20]line СДАЧА: 0.00 [16:18:20]line НСП 1% : 17.70 [16:18:20]line НДС 12% : 212.42 [16:18:20]line Наличными: 2000.00 [16:18:20]line Безнал.: 0.00 [16:18:20]line Место: АЗС № 170 "Партнер Нефть" [16:18:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:18:20]line СНО: Общий режим [16:18:20]line Чек 325 27.10.2024 16:18 [16:18:20]line Смена: 542 ФФД: 1.0 [16:18:20]line ЗНМ: 0300000110 [16:18:20]line РНМ: 0000000000091776 [16:18:20]line Версия ККМ: 001 [16:18:20]line ФМ: 0000000000871754 [16:18:20]line ФД: 192293 [16:18:20]line ФПД: 162394041328509 [16:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192293&fm=162394041328509&tin=02508201610067®Number=0000000000091776&sum=200000 [16:18:20]OFD Sender: Processing packet 192293 [packets to send 75, broken 74] [16:18:20]ProducePacketName [16:18:20]name=ofd_packets/00192293 [16:18:20]OFD Sender: To server: pG, [16:18:20]CommunicateWithHost lk.salyk.kg:30040 [16:18:20]ConnectInit lk.salyk.kg [16:18:20]written 0, free lines is 4095 [16:18:20]Connected sock=10 [16:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 20 04 01 81 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CB 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EF 02 00 35 04 06 00 93 B2 4F 25 A3 7D 66 E8 E5 F6 E8 38 C3 7A [16:18:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A 9D 47 00 B5 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 EF 02 00 F4 03 04 00 92 0C 1E 67 B6 04 01 00 00 5A 97 2E 74 D1 57 81 87 [16:18:21]CommunicateWithHost err = 0 [16:18:21]CheckOFDResponse [16:18:21]1017 (14) - 77093643461234 [16:18:21]1041 (16) - 0000000000871754 [16:18:21]1040 (4) - 192293 [16:18:21]1012 (4) - 27.10.2024 09:49 [16:18:21]1206 (1) - 0 [16:18:21]OFD Sender: Remove packet 192293 [16:18:21]ProducePacketName [16:18:21]name=ofd_packets/00192293 [16:18:21]NVStorageDeleteData [16:18:21]Write to MH i2c: 01 00 00 5E 10 6E [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 5E 10 00 00 00 00 00 AF 0C 30 [16:18:21]RasterBufferAndPrint [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]written 0, free lines is 3253 [16:18:21]MH_Cut [16:18:21]Write to MH i2c: D1 01 00 65 10 01 47 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 01 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 01 00 65 10 00 46 [16:18:21]Write to MH i2c: 01 00 00 66 10 76 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]OFD Sender: No OFD packet to send [16:18:22]*** Cut start [16:18:22]*** Partial cut [16:18:22]*** CUTSNS_PIN = 1 [16:18:22]*** CUTSNS_PIN = 0 [16:18:22]*** Brake cut motor [16:18:22]Read from MH i2c: 01 [16:18:22]MH_I2C_Read... [16:18:22]*** Stop cut motor [16:18:22]*** Cut end [16:18:22]Read from MH i2c: 01 07 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 07 00 66 10 00 00 00 00 00 FF 0F 8B [16:18:22]process_action close_receipt done [16:18:22]requested_data is exist [16:18:22]produce_requested_data [16:18:22]requested_item fm.sn is exist - process it [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 11 00 00 [16:18:22]Write to MH i2c: E2 08 00 67 10 80 11 00 00 00 00 00 00 F1 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 67 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [16:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:22]wFMCommunicate OK [16:18:22]requested_item fd.num is exist - process it [16:18:22]SAM_PROTO_GetFieldsCounters [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 00 00 [16:18:22]Write to MH i2c: E2 08 00 68 10 80 13 00 00 00 00 00 00 F4 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 62 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 62 00 68 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [16:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_GetFieldsCounters done [16:18:23]requested_item shift.num is exist - process it [16:18:23]requested_item shift.opened is exist - process it [16:18:23]req_shift_opened [16:18:23]FM_GetShiftState [16:18:23]SAM_PROTO_GetShiftState [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 13 01 00 [16:18:23]Write to MH i2c: E2 08 00 69 10 80 13 01 00 00 00 00 00 F6 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0E 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0E 00 69 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 37 [16:18:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_GetShiftState done [16:18:23]FM_GetShiftState done [16:18:23]req_shift_opened done [16:18:23]requested_item shift.open_date is exist - process it [16:18:23]req_shift_open_date [16:18:23]req_shift_open_date done [16:18:23]produce_requested_data done [16:18:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192293,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:18:23]process_action_free close_receipt [16:18:23]json_value_free [16:18:23]json_value_free done [16:18:23]process_json_proto returns [16:18:23]Send response to host [16:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192293,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:18:23]free response buf [16:18:23]execute_script done [16:18:23]execute_script returns [16:18:23]free content buf [16:18:23]Sock 7.Close socket [16:18:23]Sock 7.Thread stoped [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:35]accept exits with 9 [16:18:35]New connection [16:18:35]New thread 3067080036 created [16:18:35]Thread 3066936676 joined [16:18:35]Waiting for new connection... [16:18:35] Sock 9.Parse request [16:18:35]Sock 9.Check first char [16:18:35]Sock 9.First char is OK [16:18:35]request: POST /json_proto HTTP/1.0 [16:18:35]Method: POST [16:18:35]URL: /json_proto [16:18:35]Method is POST - this is cgi request [16:18:35]url: /json_proto [16:18:35]query_string will be loaded in cgi processing [16:18:35]execute_cgi json_proto POST (null) [16:18:35]execute_cgi path=json_proto method=POST [16:18:35]POST find Content-Length [16:18:35]Host: 172.17.63.131:8080 [16:18:35]Content-Length: 676 [16:18:35]Content-Type: application/json [16:18:35] [16:18:35]POST finish read [16:18:35]Found Content-Length = 676 [16:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:35]execute_script... [16:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:35]POST & json_proto [16:18:35]process_json_proto [16:18:35]json parsed OK: [16:18:35]protocol is kg_v1.0 [16:18:35]action value=close_receipt [16:18:35]process_action close_receipt [16:18:35]cmd_close_receipt [16:18:35]MH_GetDate [16:18:35]Write to MH i2c: F0 00 00 6A 10 69 [16:18:35]Write i2c OK [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: F0 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: F0 09 00 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: F0 09 00 6A 10 00 DC 67 1E 67 22 05 6E 64 33 [16:18:35]GetLastDocTimeStamp 1730045899 [16:18:35]current date 1730045916 [16:18:35]FM_GetShiftState [16:18:35]SAM_PROTO_GetShiftState [16:18:35]wFMCommunicate request_size=4 [16:18:35]MH_SAM_APDU [16:18:35]CAPDU: 80 13 01 00 [16:18:35]Write to MH i2c: E2 08 00 6B 10 80 13 01 00 00 00 00 00 F8 [16:18:35]Write i2c OK [16:18:35]MH_I2C_Read... [16:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:35]Read from MH i2c: E2 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 0E 00 [16:18:35]MH_I2C_Read... [16:18:35]Read from MH i2c: E2 0E 00 6B 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [16:18:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:18:35]wFMCommunicate OK [16:18:35]SAM_PROTO_GetShiftState done [16:18:35]FM_GetShiftState done [16:18:35]opened in 1729989159 [16:18:35]opened+sec_in_day 1730075559 [16:18:35]quantity*price = 40006 [16:18:35]sum+1 = 40007 [16:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 326 27.10.2024 16:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192294 ФПД: 11802231401425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192294&fm=11802231401425&tin=02508201610067®Number=0000000000091776&sum=40000 [16:18:36]StoreToDocumentArchive [16:18:36]shift 542 fd 192294 [16:18:36]save to /storage/0542/doc_00192294 [16:18:36]save last doc name /storage/0542/doc_00192294 to /storage/kkm_last_doc_name [16:18:36]save OK [16:18:36]Clear old archive folders... [16:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:36]tlvbuf is 0035B5E0 [16:18:36]SAM_PROTO_ClearQueue [16:18:36]wFMCommunicate request_size=4 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 09 00 00 [16:18:36]Write to MH i2c: E2 08 00 78 10 80 09 00 00 00 00 00 00 FA [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [16:18:36]RAPDU: 90 00 [16:18:36]wFMCommunicate OK [16:18:36]SAM_PROTO_ClearQueue done [16:18:36]KKMCreateOFDPacket [16:18:36]OFDProtocolAddRootSTLVToBuf [16:18:36]FM_MakeSignedData [16:18:36]FM_MakeSignedData [16:18:36]SAM_PROTO_SignData [16:18:36]wFMCommunicate request_size=4 [16:18:36]MH_SAM_APDU [16:18:36]CAPDU: 80 0D 01 02 [16:18:36]Write to MH i2c: E2 08 00 79 10 80 0D 01 02 00 00 00 00 02 [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:36]Read from MH i2c: E2 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 [16:18:36]MH_I2C_Read... [16:18:36]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [16:18:36]RAPDU: 90 00 [16:18:36]wFMCommunicate OK [16:18:36]wFMCommunicate request_size=255 [16:18:36]MH_SAM_APDU [16:18: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 DC 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EF 02 00 35 04 06 00 0A [16:18:36]Write to MH i2c: E2 02 01 7A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 DC 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EF 02 00 35 04 06 00 0A 00 00 B5 [16:18:36]Write i2c OK [16:18:36]MH_I2C_Read... [16:18:36]OFD Sender: No OFD packet to send [16:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:36]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [16:18:37]RAPDU: 90 00 [16:18:37]wFMCommunicate OK [16:18:37]wFMCommunicate request_size=10 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 0D 02 02 05 BB EB CF 6B D1 [16:18:37]Write to MH i2c: E2 0D 00 7B 10 80 0D 02 02 05 00 BB EB CF 6B D1 00 00 C0 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [16:18:37]RAPDU: 90 00 [16:18:37]wFMCommunicate OK [16:18:37]wFMCommunicate request_size=4 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 0D 03 02 [16:18:37]Write to MH i2c: E2 08 00 7C 10 80 0D 03 02 00 00 00 00 07 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 0B 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 0B 00 7C 10 00 5A 28 3E A5 65 01 06 93 90 00 6C [16:18:37]RAPDU: 5A 28 3E A5 65 01 06 93 90 00 [16:18:37]wFMCommunicate OK [16:18:37]SAM_PROTO_SignData done [16:18:37]FM_MakeSignedData done [16:18:37]CreateOFDProtocolMessage [16:18:37]wFMCommunicate request_size=4 [16:18:37]MH_SAM_APDU [16:18:37]CAPDU: 80 11 00 00 [16:18:37]Write to MH i2c: E2 08 00 7D 10 80 11 00 00 00 00 00 00 07 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:37]Read from MH i2c: E2 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 17 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: E2 17 00 7D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [16:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:37]wFMCommunicate OK [16:18:37]CreateOFDProtocolMessage done [16:18:37]OFDSenderStorePacket 192294 [16:18:37]StoreOFDPacket docnum=192294 [16:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 1E 07 01 B5 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 DC 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EF 02 00 35 04 06 00 0A BB EB CF 6B D1 5A 28 3E A5 65 01 06 93 [16:18:37]CheckFolder [16:18:37]dirname=/storage/ofd_packets [16:18:37]CheckFolder done [16:18:37]ProducePacketName [16:18:37]name=ofd_packets/00192294 [16:18:37]NVStorageSaveData ofd_packets/00192294 [16:18:37]File name is /storage/ofd_packets/00192294 [16:18:37]Write 301 bytes [16:18:37]NVStorageSaveData done [16:18:37]OFDSenderStorePacket done [16:18:37]KKMCreateOFDPacket done [16:18:37]NVStorageSaveData kkm_last_timestamp [16:18:37]File name is /storage/kkm_last_timestamp [16:18:37]Write 4 bytes [16:18:37]NVStorageSaveData done [16:18:37]ExternCall_PrintAddStr [16:18:37]wPrintStart [16:18:37]Write to MH i2c: 01 00 00 7E 10 8E [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 7E 10 00 00 00 00 00 FF 0F A3 [16:18:37]RasterBufferAndPrint [16:18:37]line Счет N : (1)31608 [16:18:37]line ИНН: 02508201610067 [16:18:37]line Контрольно-Кассовый Чек [16:18:37]line ПРОДАЖА [16:18:37]line ТРК (МРК, ГНК) : 12 [16:18:37]line Товар: 2710124130 [16:18:37]line Аи-92-К-5 [16:18:37]line 5.980 * 66.90 [16:18:37]line = 400.06 [16:18:37]line НДС 12% НСП 1% [16:18:37]line > о реализуемом товаре [16:18:37]line ОКРУГЛЕНИЕ: -0.06 [16:18:37]line ИТОГО: 400.00 [16:18:37]line Внесено: 400.00 [16:18:37]line СДАЧА: 0.00 [16:18:37]line НСП 1% : 3.54 [16:18:37]line НДС 12% : 42.48 [16:18:37]line Наличными: 400.00 [16:18:37]line Безнал.: 0.00 [16:18:37]line Место: АЗС № 170 "Партнер Нефть" [16:18:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:18:37]line СНО: Общий режим [16:18:37]line Чек 326 27.10.2024 16:18 [16:18:37]line Смена: 542 ФФД: 1.0 [16:18:37]line ЗНМ: 0300000110 [16:18:37]line РНМ: 0000000000091776 [16:18:37]line Версия ККМ: 001 [16:18:37]line ФМ: 0000000000871754 [16:18:37]line ФД: 192294 [16:18:37]line ФПД: 11802231401425 [16:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192294&fm=11802231401425&tin=02508201610067®Number=0000000000091776&sum=40000 [16:18:37]OFD Sender: Processing packet 192294 [packets to send 75, broken 74] [16:18:37]ProducePacketName [16:18:37]name=ofd_packets/00192294 [16:18:37]OFD Sender: To server: pG, [16:18:37]CommunicateWithHost lk.salyk.kg:30040 [16:18:37]ConnectInit lk.salyk.kg [16:18:37]written 0, free lines is 4095 [16:18:37]Connected sock=10 [16:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 1E 07 01 B5 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 DC 67 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EF 02 00 35 04 06 00 0A BB EB CF 6B D1 5A 28 3E A5 65 01 06 93 [16:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 80 42 47 00 5B 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 EF 02 00 F4 03 04 00 A3 0C 1E 67 B6 04 01 00 00 E8 EA 5E 14 0C 1F 42 A8 [16:18:37]CommunicateWithHost err = 0 [16:18:37]CheckOFDResponse [16:18:37]1017 (14) - 77093643461234 [16:18:37]1041 (16) - 0000000000871754 [16:18:37]1040 (4) - 192294 [16:18:37]1012 (4) - 27.10.2024 09:49 [16:18:37]1206 (1) - 0 [16:18:37]OFD Sender: Remove packet 192294 [16:18:37]ProducePacketName [16:18:37]name=ofd_packets/00192294 [16:18:37]NVStorageDeleteData [16:18:37]Write to MH i2c: 01 00 00 A9 10 B9 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 B2 0C 7E [16:18:37]RasterBufferAndPrint [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]line [16:18:37]written 0, free lines is 3257 [16:18:37]MH_Cut [16:18:37]Write to MH i2c: D1 01 00 B0 10 01 92 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 01 00 [16:18:37]MH_I2C_Read... [16:18:37]Read from MH i2c: D1 01 00 B0 10 00 91 [16:18:37]Write to MH i2c: 01 00 00 B1 10 C1 [16:18:37]Write i2c OK [16:18:37]MH_I2C_Read... [16:18:38]OFD Sender: No OFD packet to send [16:18:38]*** Cut start [16:18:38]*** Partial cut [16:18:38]*** CUTSNS_PIN = 1 [16:18:38]*** CUTSNS_PIN = 0 [16:18:39]*** Brake cut motor [16:18:39]Read from MH i2c: 01 [16:18:39]MH_I2C_Read... [16:18:39]*** Stop cut motor [16:18:39]*** Cut end [16:18:39]Read from MH i2c: 01 07 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 FF 0F D6 [16:18:39]process_action close_receipt done [16:18:39]requested_data is exist [16:18:39]produce_requested_data [16:18:39]requested_item fm.sn is exist - process it [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 11 00 00 [16:18:39]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 17 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [16:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:39]wFMCommunicate OK [16:18:39]requested_item fd.num is exist - process it [16:18:39]SAM_PROTO_GetFieldsCounters [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 13 00 00 [16:18:39]Write to MH i2c: E2 08 00 B3 10 80 13 00 00 00 00 00 00 3F [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 62 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 62 00 B3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [16:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:39]wFMCommunicate OK [16:18:39]SAM_PROTO_GetFieldsCounters done [16:18:39]requested_item shift.num is exist - process it [16:18:39]requested_item shift.opened is exist - process it [16:18:39]req_shift_opened [16:18:39]FM_GetShiftState [16:18:39]SAM_PROTO_GetShiftState [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 13 01 00 [16:18:39]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 0E 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 82 [16:18:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:18:39]wFMCommunicate OK [16:18:39]SAM_PROTO_GetShiftState done [16:18:39]FM_GetShiftState done [16:18:39]req_shift_opened done [16:18:39]requested_item shift.open_date is exist - process it [16:18:39]req_shift_open_date [16:18:39]req_shift_open_date done [16:18:39]produce_requested_data done [16:18:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192294,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:18:39]process_action_free close_receipt [16:18:39]json_value_free [16:18:39]json_value_free done [16:18:39]process_json_proto returns [16:18:39]Send response to host [16:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192294,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:18:39]free response buf [16:18:39]execute_script done [16:18:39]execute_script returns [16:18:39]free content buf [16:18:39]Sock 9.Close socket [16:18:39]Sock 9.Thread stoped [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:31]accept exits with 7 [16:19:31]New connection [16:19:31]New thread 3066936676 created [16:19:31]Thread 3067080036 joined [16:19:31]Waiting for new connection... [16:19:31] Sock 7.Parse request [16:19:31]Sock 7.Check first char [16:19:31]Sock 7.First char is OK [16:19:31]request: POST /json_proto HTTP/1.0 [16:19:31]Method: POST [16:19:31]URL: /json_proto [16:19:31]Method is POST - this is cgi request [16:19:31]url: /json_proto [16:19:31]query_string will be loaded in cgi processing [16:19:31]execute_cgi json_proto POST (null) [16:19:31]execute_cgi path=json_proto method=POST [16:19:31]POST find Content-Length [16:19:31]Host: 172.17.63.131:8080 [16:19:31]Content-Length: 673 [16:19:31]Content-Type: application/json [16:19:31] [16:19:31]POST finish read [16:19:31]Found Content-Length = 673 [16:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31609", "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" ] } } [16:19:31]execute_script... [16:19: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)31609", "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" ] } } [16:19:31]POST & json_proto [16:19:31]process_json_proto [16:19:31]json parsed OK: [16:19:31]protocol is kg_v1.0 [16:19:31]action value=close_receipt [16:19:31]process_action close_receipt [16:19:31]cmd_close_receipt [16:19:31]MH_GetDate [16:19:31]Write to MH i2c: F0 00 00 B5 10 B4 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 B5 10 00 13 68 1E 67 22 05 6E 64 B6 [16:19:31]GetLastDocTimeStamp 1730045916 [16:19:31]current date 1730045971 [16:19:31]FM_GetShiftState [16:19:31]SAM_PROTO_GetShiftState [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 01 00 [16:19:31]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [16:19:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetShiftState done [16:19:31]FM_GetShiftState done [16:19:31]opened in 1729989159 [16:19:31]opened+sec_in_day 1730075559 [16:19:31]quantity*price = 50063 [16:19:31]sum+1 = 50064 [16:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 327 27.10.2024 16:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192295 ФПД: 274774025989247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161931&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192295&fm=274774025989247&tin=02508201610067®Number=0000000000091776&sum=50000 [16:19:32]StoreToDocumentArchive [16:19:32]shift 542 fd 192295 [16:19:32]save to /storage/0542/doc_00192295 [16:19:32]save last doc name /storage/0542/doc_00192295 to /storage/kkm_last_doc_name [16:19:32]save OK [16:19:32]Clear old archive folders... [16:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:19:32]tlvbuf is 0035C080 [16:19:32]SAM_PROTO_ClearQueue [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 09 00 00 [16:19:32]Write to MH i2c: E2 08 00 C3 10 80 09 00 00 00 00 00 00 45 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_ClearQueue done [16:19:32]KKMCreateOFDPacket [16:19:32]OFDProtocolAddRootSTLVToBuf [16:19:32]FM_MakeSignedData [16:19:32]FM_MakeSignedData [16:19:32]SAM_PROTO_SignData [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 01 02 [16:19:32]Write to MH i2c: E2 08 00 C4 10 80 0D 01 02 00 00 00 00 4D [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=255 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 47 01 00 00 F4 03 04 00 13 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EF 02 00 35 04 06 00 F9 E7 D0 36 [16:19:32]Write to MH i2c: E2 02 01 C5 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 47 01 00 00 F4 03 04 00 13 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EF 02 00 35 04 06 00 F9 E7 D0 36 00 00 C5 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=7 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 02 6C 7F [16:19:32]Write to MH i2c: E2 0A 00 C6 10 80 0D 02 02 02 00 6C 7F 00 00 3F [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 03 02 [16:19:32]Write to MH i2c: E2 08 00 C7 10 80 0D 03 02 00 00 00 00 52 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0B 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0B 00 C7 10 00 E4 DA 39 D9 F8 C0 0D 02 90 00 EA [16:19:32]RAPDU: E4 DA 39 D9 F8 C0 0D 02 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_SignData done [16:19:32]FM_MakeSignedData done [16:19:32]CreateOFDProtocolMessage [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 11 00 00 [16:19:32]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 17 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [16:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:19:32]wFMCommunicate OK [16:19:32]CreateOFDProtocolMessage done [16:19:32]OFDSenderStorePacket 192295 [16:19:32]StoreOFDPacket docnum=192295 [16:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8B B5 04 01 B1 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 47 01 00 00 F4 03 04 00 13 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EF 02 00 35 04 06 00 F9 E7 D0 36 6C 7F E4 DA 39 D9 F8 C0 0D 02 [16:19:32]CheckFolder [16:19:32]dirname=/storage/ofd_packets [16:19:32]CheckFolder done [16:19:32]ProducePacketName [16:19:32]name=ofd_packets/00192295 [16:19:32]NVStorageSaveData ofd_packets/00192295 [16:19:32]File name is /storage/ofd_packets/00192295 [16:19:32]Write 298 bytes [16:19:32]NVStorageSaveData done [16:19:32]OFDSenderStorePacket done [16:19:32]KKMCreateOFDPacket done [16:19:32]NVStorageSaveData kkm_last_timestamp [16:19:32]File name is /storage/kkm_last_timestamp [16:19:32]Write 4 bytes [16:19:32]NVStorageSaveData done [16:19:32]ExternCall_PrintAddStr [16:19:32]wPrintStart [16:19:32]Write to MH i2c: 01 00 00 C9 10 D9 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [16:19:32]RasterBufferAndPrint [16:19:32]line Счет N : (1)31609 [16:19:32]line ИНН: 02508201610067 [16:19:32]line Контрольно-Кассовый Чек [16:19:32]line ПРОДАЖА [16:19:32]line ТРК (МРК, ГНК) : 11 [16:19:32]line Товар: 2710194210 [16:19:32]line ДТ-К-5 [16:19:32]line 6.570 * 76.20 [16:19:32]line = 500.63 [16:19:32]line НДС 12% НСП 1% [16:19:32]line > о реализуемом товаре [16:19:32]line ОКРУГЛЕНИЕ: -0.63 [16:19:32]line ИТОГО: 500.00 [16:19:32]line Внесено: 500.00 [16:19:32]line СДАЧА: 0.00 [16:19:32]line НСП 1% : 4.43 [16:19:32]line НДС 12% : 53.16 [16:19:32]line Наличными: 500.00 [16:19:32]line Безнал.: 0.00 [16:19:32]line Место: АЗС № 170 "Партнер Нефть" [16:19:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:19:32]line СНО: Общий режим [16:19:32]line Чек 327 27.10.2024 16:19 [16:19:32]line Смена: 542 ФФД: 1.0 [16:19:32]line ЗНМ: 0300000110 [16:19:32]line РНМ: 0000000000091776 [16:19:32]line Версия ККМ: 001 [16:19:32]line ФМ: 0000000000871754 [16:19:32]line ФД: 192295 [16:19:32]line ФПД: 274774025989247 [16:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161931&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192295&fm=274774025989247&tin=02508201610067®Number=0000000000091776&sum=50000 [16:19:33]OFD Sender: Processing packet 192295 [packets to send 75, broken 74] [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00192295 [16:19:33]OFD Sender: To server: pG, [16:19:33]CommunicateWithHost lk.salyk.kg:30040 [16:19:33]ConnectInit lk.salyk.kg [16:19:33]written 0, free lines is 4095 [16:19:33]Connected sock=11 [16:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8B B5 04 01 B1 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 47 01 00 00 F4 03 04 00 13 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EF 02 00 35 04 06 00 F9 E7 D0 36 6C 7F E4 DA 39 D9 F8 C0 0D 02 [16:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 17 47 00 17 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 EF 02 00 F4 03 04 00 DB 0C 1E 67 B6 04 01 00 00 B6 CE 3A BD EA 16 7E 9A [16:19:33]CommunicateWithHost err = 0 [16:19:33]CheckOFDResponse [16:19:33]1017 (14) - 77093643461234 [16:19:33]1041 (16) - 0000000000871754 [16:19:33]1040 (4) - 192295 [16:19:33]1012 (4) - 27.10.2024 09:50 [16:19:33]1206 (1) - 0 [16:19:33]OFD Sender: Remove packet 192295 [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00192295 [16:19:33]NVStorageDeleteData [16:19:33]Write to MH i2c: 01 00 00 F4 10 04 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 C0 0C D7 [16:19:33]RasterBufferAndPrint [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]written 0, free lines is 3270 [16:19:33]MH_Cut [16:19:33]Write to MH i2c: D1 01 00 FB 10 01 DD [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 01 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: D1 01 00 FB 10 00 DC [16:19:33]Write to MH i2c: 01 00 00 FC 10 0C [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:34]OFD Sender: No OFD packet to send [16:19:34]*** Cut start [16:19:34]*** Partial cut [16:19:34]*** CUTSNS_PIN = 1 [16:19:34]*** CUTSNS_PIN = 0 [16:19:34]*** Brake cut motor [16:19:35]Read from MH i2c: 01 [16:19:35]MH_I2C_Read... [16:19:35]*** Stop cut motor [16:19:35]*** Cut end [16:19:35]Read from MH i2c: 01 07 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 FF 0F 21 [16:19:35]process_action close_receipt done [16:19:35]requested_data is exist [16:19:35]produce_requested_data [16:19:35]requested_item fm.sn is exist - process it [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 11 00 00 [16:19:35]Write to MH i2c: E2 08 00 FD 10 80 11 00 00 00 00 00 00 87 [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 17 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 17 00 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [16:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:19:35]wFMCommunicate OK [16:19:35]requested_item fd.num is exist - process it [16:19:35]SAM_PROTO_GetFieldsCounters [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 13 00 00 [16:19:35]Write to MH i2c: E2 08 00 FE 10 80 13 00 00 00 00 00 00 8A [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 62 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 62 00 FE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:35]wFMCommunicate OK [16:19:35]SAM_PROTO_GetFieldsCounters done [16:19:35]requested_item shift.num is exist - process it [16:19:35]requested_item shift.opened is exist - process it [16:19:35]req_shift_opened [16:19:35]FM_GetShiftState [16:19:35]SAM_PROTO_GetShiftState [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 13 01 00 [16:19:35]Write to MH i2c: E2 08 00 FF 10 80 13 01 00 00 00 00 00 8C [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 FF 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [16:19:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:19:35]wFMCommunicate OK [16:19:35]SAM_PROTO_GetShiftState done [16:19:35]FM_GetShiftState done [16:19:35]req_shift_opened done [16:19:35]requested_item shift.open_date is exist - process it [16:19:35]req_shift_open_date [16:19:35]req_shift_open_date done [16:19:35]produce_requested_data done [16:19:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192295,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:19:35]process_action_free close_receipt [16:19:35]json_value_free [16:19:35]json_value_free done [16:19:35]process_json_proto returns [16:19:35]Send response to host [16:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192295,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:19:35]free response buf [16:19:35]execute_script done [16:19:35]execute_script returns [16:19:35]free content buf [16:19:35]Sock 7.Close socket [16:19:35]Sock 7.Thread stoped [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:23]accept exits with 9 [16:20:23]New connection [16:20:23]New thread 3067080036 created [16:20:23]Thread 3066936676 joined [16:20:23]Waiting for new connection... [16:20:23] Sock 9.Parse request [16:20:23]Sock 9.Check first char [16:20:23]Sock 9.First char is OK [16:20:23]request: POST /json_proto HTTP/1.0 [16:20:23]Method: POST [16:20:23]URL: /json_proto [16:20:23]Method is POST - this is cgi request [16:20:23]url: /json_proto [16:20:23]query_string will be loaded in cgi processing [16:20:23]execute_cgi json_proto POST (null) [16:20:23]execute_cgi path=json_proto method=POST [16:20:23]POST find Content-Length [16:20:23]Host: 172.17.63.131:8080 [16:20:23]Content-Length: 676 [16:20:23]Content-Type: application/json [16:20:23] [16:20:23]POST finish read [16:20:23]Found Content-Length = 676 [16:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:23]execute_script... [16:20:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:23]POST & json_proto [16:20:23]process_json_proto [16:20:23]json parsed OK: [16:20:23]protocol is kg_v1.0 [16:20:23]action value=close_receipt [16:20:23]process_action close_receipt [16:20:23]cmd_close_receipt [16:20:23]MH_GetDate [16:20:23]Write to MH i2c: F0 00 00 00 11 00 [16:20:23]Write i2c OK [16:20:23]MH_I2C_Read... [16:20:23]Read from MH i2c: F0 [16:20:23]MH_I2C_Read... [16:20:23]Read from MH i2c: F0 09 00 [16:20:23]MH_I2C_Read... [16:20:23]Read from MH i2c: F0 09 00 00 11 00 47 68 1E 67 22 05 6E 64 36 [16:20:23]GetLastDocTimeStamp 1730045971 [16:20:23]current date 1730046023 [16:20:23]FM_GetShiftState [16:20:23]SAM_PROTO_GetShiftState [16:20:23]wFMCommunicate request_size=4 [16:20:23]MH_SAM_APDU [16:20:23]CAPDU: 80 13 01 00 [16:20:23]Write to MH i2c: E2 08 00 01 11 80 13 01 00 00 00 00 00 8F [16:20:23]Write i2c OK [16:20:23]MH_I2C_Read... [16:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:23]Read from MH i2c: E2 [16:20:23]MH_I2C_Read... [16:20:23]Read from MH i2c: E2 0E 00 [16:20:23]MH_I2C_Read... [16:20:23]Read from MH i2c: E2 0E 00 01 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D0 [16:20:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:20:23]wFMCommunicate OK [16:20:23]SAM_PROTO_GetShiftState done [16:20:23]FM_GetShiftState done [16:20:23]opened in 1729989159 [16:20:23]opened+sec_in_day 1730075559 [16:20:23]quantity*price = 50041 [16:20:23]sum+1 = 50042 [16:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 328 27.10.2024 16:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192296 ФПД: 223471087414954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192296&fm=223471087414954&tin=02508201610067®Number=0000000000091776&sum=50000 [16:20:24]StoreToDocumentArchive [16:20:24]shift 542 fd 192296 [16:20:24]save to /storage/0542/doc_00192296 [16:20:24]save last doc name /storage/0542/doc_00192296 to /storage/kkm_last_doc_name [16:20:24]save OK [16:20:24]Clear old archive folders... [16:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:24]tlvbuf is 002A1BD0 [16:20:24]SAM_PROTO_ClearQueue [16:20:24]wFMCommunicate request_size=4 [16:20:24]MH_SAM_APDU [16:20:24]CAPDU: 80 09 00 00 [16:20:24]Write to MH i2c: E2 08 00 0E 11 80 09 00 00 00 00 00 00 91 [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:24]Read from MH i2c: E2 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [16:20:24]RAPDU: 90 00 [16:20:24]wFMCommunicate OK [16:20:24]SAM_PROTO_ClearQueue done [16:20:24]KKMCreateOFDPacket [16:20:24]OFDProtocolAddRootSTLVToBuf [16:20:24]FM_MakeSignedData [16:20:24]FM_MakeSignedData [16:20:24]SAM_PROTO_SignData [16:20:24]wFMCommunicate request_size=4 [16:20:24]MH_SAM_APDU [16:20:24]CAPDU: 80 0D 01 02 [16:20:24]Write to MH i2c: E2 08 00 0F 11 80 0D 01 02 00 00 00 00 99 [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:24]Read from MH i2c: E2 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [16:20:24]RAPDU: 90 00 [16:20:24]wFMCommunicate OK [16:20:24]wFMCommunicate request_size=255 [16:20:24]MH_SAM_APDU [16:20:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 48 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EF 02 00 35 04 06 00 CB [16:20:24]Write to MH i2c: E2 02 01 10 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 48 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EF 02 00 35 04 06 00 CB 00 00 AF [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:24]Read from MH i2c: E2 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [16:20:24]RAPDU: 90 00 [16:20:24]wFMCommunicate OK [16:20:24]wFMCommunicate request_size=10 [16:20:24]MH_SAM_APDU [16:20:24]CAPDU: 80 0D 02 02 05 3E EA C8 6E AA [16:20:24]Write to MH i2c: E2 0D 00 11 11 80 0D 02 02 05 00 3E EA C8 6E AA 00 00 AE [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [16:20:25]RAPDU: 90 00 [16:20:25]wFMCommunicate OK [16:20:25]wFMCommunicate request_size=4 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 0D 03 02 [16:20:25]Write to MH i2c: E2 08 00 12 11 80 0D 03 02 00 00 00 00 9E [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 0B 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 0B 00 12 11 00 12 E3 D0 1E 08 2D 44 86 90 00 81 [16:20:25]RAPDU: 12 E3 D0 1E 08 2D 44 86 90 00 [16:20:25]wFMCommunicate OK [16:20:25]SAM_PROTO_SignData done [16:20:25]FM_MakeSignedData done [16:20:25]CreateOFDProtocolMessage [16:20:25]wFMCommunicate request_size=4 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 11 00 00 [16:20:25]Write to MH i2c: E2 08 00 13 11 80 11 00 00 00 00 00 00 9E [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 17 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 17 00 13 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [16:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:25]wFMCommunicate OK [16:20:25]CreateOFDProtocolMessage done [16:20:25]OFDSenderStorePacket 192296 [16:20:25]StoreOFDPacket docnum=192296 [16:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B A8 07 01 F9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 48 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EF 02 00 35 04 06 00 CB 3E EA C8 6E AA 12 E3 D0 1E 08 2D 44 86 [16:20:25]CheckFolder [16:20:25]dirname=/storage/ofd_packets [16:20:25]CheckFolder done [16:20:25]ProducePacketName [16:20:25]name=ofd_packets/00192296 [16:20:25]NVStorageSaveData ofd_packets/00192296 [16:20:25]File name is /storage/ofd_packets/00192296 [16:20:25]Write 301 bytes [16:20:25]NVStorageSaveData done [16:20:25]OFDSenderStorePacket done [16:20:25]KKMCreateOFDPacket done [16:20:25]NVStorageSaveData kkm_last_timestamp [16:20:25]File name is /storage/kkm_last_timestamp [16:20:25]Write 4 bytes [16:20:25]NVStorageSaveData done [16:20:25]ExternCall_PrintAddStr [16:20:25]wPrintStart [16:20:25]Write to MH i2c: 01 00 00 14 11 25 [16:20:25]OFD Sender: Processing packet 192296 [packets to send 75, broken 74] [16:20:25]ProducePacketName [16:20:25]name=ofd_packets/00192296 [16:20:25]OFD Sender: To server: pG, [16:20:25]CommunicateWithHost lk.salyk.kg:30040 [16:20:25]ConnectInit lk.salyk.kg [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 07 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 FF 0F 3A [16:20:25]RasterBufferAndPrint [16:20:25]line Счет N : (1)31610 [16:20:25]line ИНН: 02508201610067 [16:20:25]line Контрольно-Кассовый Чек [16:20:25]line ПРОДАЖА [16:20:25]line ТРК (МРК, ГНК) : 21 [16:20:25]line Товар: 2710124130 [16:20:25]line Аи-92-К-5 [16:20:25]line 7.480 * 66.90 [16:20:25]line = 500.41 [16:20:25]line НДС 12% НСП 1% [16:20:25]line > о реализуемом товаре [16:20:25]line ОКРУГЛЕНИЕ: -0.41 [16:20:25]line ИТОГО: 500.00 [16:20:25]line Внесено: 500.00 [16:20:25]line СДАЧА: 0.00 [16:20:25]line НСП 1% : 4.43 [16:20:25]line НДС 12% : 53.14 [16:20:25]line Наличными: 500.00 [16:20:25]line Безнал.: 0.00 [16:20:25]line Место: АЗС № 170 "Партнер Нефть" [16:20:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:20:25]line СНО: Общий режим [16:20:25]line Чек 328 27.10.2024 16:20 [16:20:25]line Смена: 542 ФФД: 1.0 [16:20:25]line ЗНМ: 0300000110 [16:20:25]line РНМ: 0000000000091776 [16:20:25]line Версия ККМ: 001 [16:20:25]line ФМ: 0000000000871754 [16:20:25]line ФД: 192296 [16:20:25]line ФПД: 223471087414954 [16:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162024&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192296&fm=223471087414954&tin=02508201610067®Number=0000000000091776&sum=50000 [16:20:25]Connected sock=10 [16:20:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B A8 07 01 F9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 48 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EF 02 00 35 04 06 00 CB 3E EA C8 6E AA 12 E3 D0 1E 08 2D 44 86 [16:20:25]written 0, free lines is 4095 [16:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 AC 47 00 35 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 EF 02 00 F4 03 04 00 0F 0D 1E 67 B6 04 01 00 00 FD 05 5D 40 B7 C1 BF 30 [16:20:25]CommunicateWithHost err = 0 [16:20:25]CheckOFDResponse [16:20:25]1017 (14) - 77093643461234 [16:20:25]1041 (16) - 0000000000871754 [16:20:25]1040 (4) - 192296 [16:20:25]1012 (4) - 27.10.2024 09:51 [16:20:25]1206 (1) - 0 [16:20:25]OFD Sender: Remove packet 192296 [16:20:25]ProducePacketName [16:20:25]name=ofd_packets/00192296 [16:20:25]NVStorageDeleteData [16:20:25]Write to MH i2c: 01 00 00 3F 11 50 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 07 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: 01 07 00 3F 11 00 00 00 00 00 B5 0C 18 [16:20:25]RasterBufferAndPrint [16:20:25]line [16:20:25]line [16:20:25]line [16:20:25]line [16:20:25]line [16:20:25]written 0, free lines is 3259 [16:20:25]MH_Cut [16:20:25]Write to MH i2c: D1 01 00 46 11 01 29 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: D1 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: D1 01 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: D1 01 00 46 11 00 28 [16:20:25]Write to MH i2c: 01 00 00 47 11 58 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:26]OFD Sender: No OFD packet to send [16:20:26]*** Cut start [16:20:26]*** Partial cut [16:20:26]*** CUTSNS_PIN = 1 [16:20:26]*** CUTSNS_PIN = 0 [16:20:27]*** Brake cut motor [16:20:27]Read from MH i2c: 01 [16:20:27]MH_I2C_Read... [16:20:27]*** Stop cut motor [16:20:27]*** Cut end [16:20:27]Read from MH i2c: 01 07 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 47 11 00 00 00 00 00 FF 0F 6D [16:20:27]process_action close_receipt done [16:20:27]requested_data is exist [16:20:27]produce_requested_data [16:20:27]requested_item fm.sn is exist - process it [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 11 00 00 [16:20:27]Write to MH i2c: E2 08 00 48 11 80 11 00 00 00 00 00 00 D3 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 48 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [16:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:27]wFMCommunicate OK [16:20:27]requested_item fd.num is exist - process it [16:20:27]SAM_PROTO_GetFieldsCounters [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 00 00 [16:20:27]Write to MH i2c: E2 08 00 49 11 80 13 00 00 00 00 00 00 D6 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 62 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 62 00 49 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_GetFieldsCounters done [16:20:27]requested_item shift.num is exist - process it [16:20:27]requested_item shift.opened is exist - process it [16:20:27]req_shift_opened [16:20:27]FM_GetShiftState [16:20:27]SAM_PROTO_GetShiftState [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 01 00 [16:20:27]Write to MH i2c: E2 08 00 4A 11 80 13 01 00 00 00 00 00 D8 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 4A 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [16:20:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_GetShiftState done [16:20:27]FM_GetShiftState done [16:20:27]req_shift_opened done [16:20:27]requested_item shift.open_date is exist - process it [16:20:27]req_shift_open_date [16:20:27]req_shift_open_date done [16:20:27]produce_requested_data done [16:20:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192296,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:20:27]process_action_free close_receipt [16:20:27]json_value_free [16:20:27]json_value_free done [16:20:27]process_json_proto returns [16:20:27]Send response to host [16:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192296,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:20:27]free response buf [16:20:27]execute_script done [16:20:27]execute_script returns [16:20:27]free content buf [16:20:27]Sock 9.Close socket [16:20:27]Sock 9.Thread stoped [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21: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:20]accept exits with 7 [16:21:20]New connection [16:21:20]New thread 3066936676 created [16:21:20]Thread 3067080036 joined [16:21:20]Waiting for new connection... [16:21:20] Sock 7.Parse request [16:21:20]Sock 7.Check first char [16:21:20]Sock 7.First char is OK [16:21:20]request: POST /json_proto HTTP/1.0 [16:21:20]Method: POST [16:21:20]URL: /json_proto [16:21:20]Method is POST - this is cgi request [16:21:20]url: /json_proto [16:21:20]query_string will be loaded in cgi processing [16:21:20]execute_cgi json_proto POST (null) [16:21:20]execute_cgi path=json_proto method=POST [16:21:20]POST find Content-Length [16:21:20]Host: 172.17.63.131:8080 [16:21:20]Content-Length: 676 [16:21:20]Content-Type: application/json [16:21:20] [16:21:20]POST finish read [16:21:20]Found Content-Length = 676 [16:21:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:20]execute_script... [16:21:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:20]POST & json_proto [16:21:20]process_json_proto [16:21:20]json parsed OK: [16:21:20]protocol is kg_v1.0 [16:21:20]action value=close_receipt [16:21:20]process_action close_receipt [16:21:20]cmd_close_receipt [16:21:20]MH_GetDate [16:21:20]Write to MH i2c: F0 00 00 4B 11 4B [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: F0 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: F0 09 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: F0 09 00 4B 11 00 81 68 1E 67 22 05 6E 64 BB [16:21:20]GetLastDocTimeStamp 1730046024 [16:21:20]current date 1730046081 [16:21:20]FM_GetShiftState [16:21:20]SAM_PROTO_GetShiftState [16:21:20]wFMCommunicate request_size=4 [16:21:20]MH_SAM_APDU [16:21:20]CAPDU: 80 13 01 00 [16:21:20]Write to MH i2c: E2 08 00 4C 11 80 13 01 00 00 00 00 00 DA [16:21:20]Write i2c OK [16:21:20]MH_I2C_Read... [16:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:20]Read from MH i2c: E2 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 0E 00 [16:21:20]MH_I2C_Read... [16:21:20]Read from MH i2c: E2 0E 00 4C 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [16:21:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:21:20]wFMCommunicate OK [16:21:20]SAM_PROTO_GetShiftState done [16:21:20]FM_GetShiftState done [16:21:20]opened in 1729989159 [16:21:20]opened+sec_in_day 1730075559 [16:21:20]quantity*price = 50041 [16:21:20]sum+1 = 50042 [16:21:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 329 27.10.2024 16:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192297 ФПД: 15583952663042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192297&fm=15583952663042&tin=02508201610067®Number=0000000000091776&sum=50000 [16:21:22]StoreToDocumentArchive [16:21:22]shift 542 fd 192297 [16:21:22]save to /storage/0542/doc_00192297 [16:21:22]save last doc name /storage/0542/doc_00192297 to /storage/kkm_last_doc_name [16:21:22]save OK [16:21:22]Clear old archive folders... [16:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:22]tlvbuf is 0030B420 [16:21:22]SAM_PROTO_ClearQueue [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 09 00 00 [16:21:22]Write to MH i2c: E2 08 00 59 11 80 09 00 00 00 00 00 00 DC [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [16:21:22]RAPDU: 90 00 [16:21:22]wFMCommunicate OK [16:21:22]SAM_PROTO_ClearQueue done [16:21:22]KKMCreateOFDPacket [16:21:22]OFDProtocolAddRootSTLVToBuf [16:21:22]FM_MakeSignedData [16:21:22]FM_MakeSignedData [16:21:22]SAM_PROTO_SignData [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 0D 01 02 [16:21:22]Write to MH i2c: E2 08 00 5A 11 80 0D 01 02 00 00 00 00 E4 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [16:21:22]RAPDU: 90 00 [16:21:22]wFMCommunicate OK [16:21:22]wFMCommunicate request_size=255 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 81 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EF 02 00 35 04 06 00 0E [16:21:22]Write to MH i2c: E2 02 01 5B 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 81 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EF 02 00 35 04 06 00 0E 00 00 78 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [16:21:22]RAPDU: 90 00 [16:21:22]wFMCommunicate OK [16:21:22]wFMCommunicate request_size=10 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 0D 02 02 05 2C 6B F6 72 02 [16:21:22]Write to MH i2c: E2 0D 00 5C 11 80 0D 02 02 05 00 2C 6B F6 72 02 00 00 F2 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [16:21:22]RAPDU: 90 00 [16:21:22]wFMCommunicate OK [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 0D 03 02 [16:21:22]Write to MH i2c: E2 08 00 5D 11 80 0D 03 02 00 00 00 00 E9 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 0B 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 0B 00 5D 11 00 0A 76 AC 36 90 E3 73 B1 90 00 E3 [16:21:22]RAPDU: 0A 76 AC 36 90 E3 73 B1 90 00 [16:21:22]wFMCommunicate OK [16:21:22]SAM_PROTO_SignData done [16:21:22]FM_MakeSignedData done [16:21:22]CreateOFDProtocolMessage [16:21:22]wFMCommunicate request_size=4 [16:21:22]MH_SAM_APDU [16:21:22]CAPDU: 80 11 00 00 [16:21:22]Write to MH i2c: E2 08 00 5E 11 80 11 00 00 00 00 00 00 E9 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:22]Read from MH i2c: E2 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 17 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: E2 17 00 5E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [16:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:22]wFMCommunicate OK [16:21:22]CreateOFDProtocolMessage done [16:21:22]OFDSenderStorePacket 192297 [16:21:22]StoreOFDPacket docnum=192297 [16:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 F9 07 01 97 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 81 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EF 02 00 35 04 06 00 0E 2C 6B F6 72 02 0A 76 AC 36 90 E3 73 B1 [16:21:22]CheckFolder [16:21:22]dirname=/storage/ofd_packets [16:21:22]CheckFolder done [16:21:22]ProducePacketName [16:21:22]name=ofd_packets/00192297 [16:21:22]NVStorageSaveData ofd_packets/00192297 [16:21:22]File name is /storage/ofd_packets/00192297 [16:21:22]Write 301 bytes [16:21:22]NVStorageSaveData done [16:21:22]OFDSenderStorePacket done [16:21:22]KKMCreateOFDPacket done [16:21:22]NVStorageSaveData kkm_last_timestamp [16:21:22]File name is /storage/kkm_last_timestamp [16:21:22]Write 4 bytes [16:21:22]NVStorageSaveData done [16:21:22]ExternCall_PrintAddStr [16:21:22]wPrintStart [16:21:22]Write to MH i2c: 01 00 00 5F 11 70 [16:21:22]Write i2c OK [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: 01 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: 01 07 00 [16:21:22]MH_I2C_Read... [16:21:22]Read from MH i2c: 01 07 00 5F 11 00 00 00 00 00 FF 0F 85 [16:21:22]RasterBufferAndPrint [16:21:22]line Счет N : (1)31611 [16:21:22]line ИНН: 02508201610067 [16:21:22]line Контрольно-Кассовый Чек [16:21:22]line ПРОДАЖА [16:21:22]line ТРК (МРК, ГНК) : 12 [16:21:22]line Товар: 2710124130 [16:21:22]line Аи-92-К-5 [16:21:22]line 7.480 * 66.90 [16:21:22]line = 500.41 [16:21:22]line НДС 12% НСП 1% [16:21:22]line > о реализуемом товаре [16:21:22]line ОКРУГЛЕНИЕ: -0.41 [16:21:22]line ИТОГО: 500.00 [16:21:22]line Внесено: 500.00 [16:21:22]line СДАЧА: 0.00 [16:21:22]line НСП 1% : 4.43 [16:21:22]line НДС 12% : 53.14 [16:21:22]line Наличными: 500.00 [16:21:22]line Безнал.: 0.00 [16:21:22]line Место: АЗС № 170 "Партнер Нефть" [16:21:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:21:22]line СНО: Общий режим [16:21:22]line Чек 329 27.10.2024 16:21 [16:21:22]line Смена: 542 ФФД: 1.0 [16:21:22]line ЗНМ: 0300000110 [16:21:22]line РНМ: 0000000000091776 [16:21:22]line Версия ККМ: 001 [16:21:22]line ФМ: 0000000000871754 [16:21:22]line ФД: 192297 [16:21:22]line ФПД: 15583952663042 [16:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162121&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192297&fm=15583952663042&tin=02508201610067®Number=0000000000091776&sum=50000 [16:21:22]OFD Sender: Processing packet 192297 [packets to send 75, broken 74] [16:21:22]ProducePacketName [16:21:22]name=ofd_packets/00192297 [16:21:22]OFD Sender: To server: pG, [16:21:22]CommunicateWithHost lk.salyk.kg:30040 [16:21:22]ConnectInit lk.salyk.kg [16:21:22]written 0, free lines is 4095 [16:21:23]Connected sock=10 [16:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 F9 07 01 97 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 81 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 EF 02 00 35 04 06 00 0E 2C 6B F6 72 02 0A 76 AC 36 90 E3 73 B1 [16:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 27 47 00 B2 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 37 35 34 10 04 04 00 29 EF 02 00 F4 03 04 00 48 0D 1E 67 B6 04 01 00 00 5B 51 F3 85 6A 56 27 DE [16:21:23]CommunicateWithHost err = 0 [16:21:23]CheckOFDResponse [16:21:23]1017 (14) - 77093643461234 [16:21:23]1041 (16) - 0000000000871754 [16:21:23]1040 (4) - 192297 [16:21:23]1012 (4) - 27.10.2024 09:52 [16:21:23]1206 (1) - 0 [16:21:23]OFD Sender: Remove packet 192297 [16:21:23]ProducePacketName [16:21:23]name=ofd_packets/00192297 [16:21:23]NVStorageDeleteData [16:21:23]Write to MH i2c: 01 00 00 8A 11 9B [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 07 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 B7 0C 65 [16:21:23]RasterBufferAndPrint [16:21:23]line [16:21:23]line [16:21:23]line [16:21:23]line [16:21:23]line [16:21:23]written 0, free lines is 3262 [16:21:23]MH_Cut [16:21:23]Write to MH i2c: D1 01 00 91 11 01 74 [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: D1 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: D1 01 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: D1 01 00 91 11 00 73 [16:21:23]Write to MH i2c: 01 00 00 92 11 A3 [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]OFD Sender: No OFD packet to send [16:21:24]*** Cut start [16:21:24]*** Partial cut [16:21:24]*** CUTSNS_PIN = 1 [16:21:24]*** CUTSNS_PIN = 0 [16:21:24]*** Brake cut motor [16:21:24]Read from MH i2c: 01 [16:21:24]MH_I2C_Read... [16:21:24]*** Stop cut motor [16:21:24]*** Cut end [16:21:24]Read from MH i2c: 01 07 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 FF 0F B8 [16:21:24]process_action close_receipt done [16:21:24]requested_data is exist [16:21:24]produce_requested_data [16:21:24]requested_item fm.sn is exist - process it [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 11 00 00 [16:21:24]Write to MH i2c: E2 08 00 93 11 80 11 00 00 00 00 00 00 1E [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:24]Read from MH i2c: E2 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: E2 17 00 93 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [16:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:24]wFMCommunicate OK [16:21:24]requested_item fd.num is exist - process it [16:21:24]SAM_PROTO_GetFieldsCounters [16:21:24]wFMCommunicate request_size=4 [16:21:24]MH_SAM_APDU [16:21:24]CAPDU: 80 13 00 00 [16:21:24]Write to MH i2c: E2 08 00 94 11 80 13 00 00 00 00 00 00 21 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 62 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 62 00 94 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [16:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_GetFieldsCounters done [16:21:25]requested_item shift.num is exist - process it [16:21:25]requested_item shift.opened is exist - process it [16:21:25]req_shift_opened [16:21:25]FM_GetShiftState [16:21:25]SAM_PROTO_GetShiftState [16:21:25]wFMCommunicate request_size=4 [16:21:25]MH_SAM_APDU [16:21:25]CAPDU: 80 13 01 00 [16:21:25]Write to MH i2c: E2 08 00 95 11 80 13 01 00 00 00 00 00 23 [16:21:25]Write i2c OK [16:21:25]MH_I2C_Read... [16:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:25]Read from MH i2c: E2 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 [16:21:25]MH_I2C_Read... [16:21:25]Read from MH i2c: E2 0E 00 95 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 64 [16:21:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:21:25]wFMCommunicate OK [16:21:25]SAM_PROTO_GetShiftState done [16:21:25]FM_GetShiftState done [16:21:25]req_shift_opened done [16:21:25]requested_item shift.open_date is exist - process it [16:21:25]req_shift_open_date [16:21:25]req_shift_open_date done [16:21:25]produce_requested_data done [16:21:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192297,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:21:25]process_action_free close_receipt [16:21:25]json_value_free [16:21:25]json_value_free done [16:21:25]process_json_proto returns [16:21:25]Send response to host [16:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192297,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:21:25]free response buf [16:21:25]execute_script done [16:21:25]execute_script returns [16:21:25]free content buf [16:21:25]Sock 7.Close socket [16:21:25]Sock 7.Thread stoped [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:34]accept exits with 9 [16:22:34]New connection [16:22:34]New thread 3067080036 created [16:22:34]Thread 3066936676 joined [16:22:34]Waiting for new connection... [16:22:34] Sock 9.Parse request [16:22:34]Sock 9.Check first char [16:22:34]Sock 9.First char is OK [16:22:34]request: POST /json_proto HTTP/1.0 [16:22:34]Method: POST [16:22:34]URL: /json_proto [16:22:34]Method is POST - this is cgi request [16:22:34]url: /json_proto [16:22:34]query_string will be loaded in cgi processing [16:22:34]execute_cgi json_proto POST (null) [16:22:34]execute_cgi path=json_proto method=POST [16:22:34]POST find Content-Length [16:22:34]Host: 172.17.63.131:8080 [16:22:34]Content-Length: 677 [16:22:34]Content-Type: application/json [16:22:34] [16:22:34]POST finish read [16:22:34]Found Content-Length = 677 [16:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:34]execute_script... [16:22: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)31612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:34]POST & json_proto [16:22:34]process_json_proto [16:22:34]json parsed OK: [16:22:34]protocol is kg_v1.0 [16:22:34]action value=close_receipt [16:22:34]process_action close_receipt [16:22:34]cmd_close_receipt [16:22:34]MH_GetDate [16:22:34]Write to MH i2c: F0 00 00 96 11 96 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 09 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: F0 09 00 96 11 00 CB 68 1E 67 22 05 6E 64 50 [16:22:34]GetLastDocTimeStamp 1730046081 [16:22:34]current date 1730046155 [16:22:34]FM_GetShiftState [16:22:34]SAM_PROTO_GetShiftState [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 01 00 [16:22:34]Write to MH i2c: E2 08 00 97 11 80 13 01 00 00 00 00 00 25 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 97 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [16:22:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_GetShiftState done [16:22:34]FM_GetShiftState done [16:22:34]opened in 1729989159 [16:22:34]opened+sec_in_day 1730075559 [16:22:34]quantity*price = 70044 [16:22:34]sum+1 = 70045 [16:22:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 330 27.10.2024 16:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192298 ФПД: 82733948594354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162235&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192298&fm=82733948594354&tin=02508201610067®Number=0000000000091776&sum=70000 [16:22:35]StoreToDocumentArchive [16:22:35]shift 542 fd 192298 [16:22:35]save to /storage/0542/doc_00192298 [16:22:35]save last doc name /storage/0542/doc_00192298 to /storage/kkm_last_doc_name [16:22:35]save OK [16:22:35]Clear old archive folders... [16:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:35]tlvbuf is 00322C00 [16:22:35]SAM_PROTO_ClearQueue [16:22:35]wFMCommunicate request_size=4 [16:22:35]MH_SAM_APDU [16:22:35]CAPDU: 80 09 00 00 [16:22:35]Write to MH i2c: E2 08 00 A4 11 80 09 00 00 00 00 00 00 27 [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:35]Read from MH i2c: E2 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 03 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [16:22:35]RAPDU: 90 00 [16:22:35]wFMCommunicate OK [16:22:35]SAM_PROTO_ClearQueue done [16:22:35]KKMCreateOFDPacket [16:22:35]OFDProtocolAddRootSTLVToBuf [16:22:35]FM_MakeSignedData [16:22:35]FM_MakeSignedData [16:22:35]SAM_PROTO_SignData [16:22:35]wFMCommunicate request_size=4 [16:22:35]MH_SAM_APDU [16:22:35]CAPDU: 80 0D 01 02 [16:22:35]Write to MH i2c: E2 08 00 A5 11 80 0D 01 02 00 00 00 00 2F [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:35]Read from MH i2c: E2 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 03 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [16:22:35]RAPDU: 90 00 [16:22:35]wFMCommunicate OK [16:22:35]wFMCommunicate request_size=255 [16:22:35]MH_SAM_APDU [16:22:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EF 02 00 35 04 06 00 4B [16:22:35]Write to MH i2c: E2 02 01 A6 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EF 02 00 35 04 06 00 4B 00 00 5C [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]wFMCommunicate request_size=10 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 02 02 05 3E FF 9D E8 B2 [16:22:36]Write to MH i2c: E2 0D 00 A7 11 80 0D 02 02 05 00 3E FF 9D E8 B2 00 00 B0 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [16:22:36]RAPDU: 90 00 [16:22:36]wFMCommunicate OK [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 0D 03 02 [16:22:36]Write to MH i2c: E2 08 00 A8 11 80 0D 03 02 00 00 00 00 34 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0B 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0B 00 A8 11 00 22 0A 36 F8 08 F9 F6 A1 90 00 27 [16:22:36]RAPDU: 22 0A 36 F8 08 F9 F6 A1 90 00 [16:22:36]wFMCommunicate OK [16:22:36]SAM_PROTO_SignData done [16:22:36]FM_MakeSignedData done [16:22:36]CreateOFDProtocolMessage [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 11 00 00 [16:22:36]Write to MH i2c: E2 08 00 A9 11 80 11 00 00 00 00 00 00 34 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 17 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 17 00 A9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [16:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:22:36]wFMCommunicate OK [16:22:36]CreateOFDProtocolMessage done [16:22:36]OFDSenderStorePacket 192298 [16:22:36]StoreOFDPacket docnum=192298 [16:22:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 05 07 01 DC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EF 02 00 35 04 06 00 4B 3E FF 9D E8 B2 22 0A 36 F8 08 F9 F6 A1 [16:22:36]CheckFolder [16:22:36]dirname=/storage/ofd_packets [16:22:36]CheckFolder done [16:22:36]ProducePacketName [16:22:36]name=ofd_packets/00192298 [16:22:36]NVStorageSaveData ofd_packets/00192298 [16:22:36]File name is /storage/ofd_packets/00192298 [16:22:36]Write 301 bytes [16:22:36]NVStorageSaveData done [16:22:36]OFDSenderStorePacket done [16:22:36]KKMCreateOFDPacket done [16:22:36]NVStorageSaveData kkm_last_timestamp [16:22:36]File name is /storage/kkm_last_timestamp [16:22:36]Write 4 bytes [16:22:36]NVStorageSaveData done [16:22:36]OFD Sender: Processing packet 192298 [packets to send 75, broken 74] [16:22:36]ProducePacketName [16:22:36]name=ofd_packets/00192298 [16:22:36]OFD Sender: To server: pG, [16:22:36]CommunicateWithHost lk.salyk.kg:30040 [16:22:36]ConnectInit lk.salyk.kg [16:22:36]ExternCall_PrintAddStr [16:22:36]wPrintStart [16:22:36]Write to MH i2c: 01 00 00 AA 11 BB [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: 01 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: 01 07 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [16:22:36]RasterBufferAndPrint [16:22:36]line Счет N : (1)31612 [16:22:36]line ИНН: 02508201610067 [16:22:36]line Контрольно-Кассовый Чек [16:22:36]line ПРОДАЖА [16:22:36]line ТРК (МРК, ГНК) : 12 [16:22:36]line Товар: 2710124130 [16:22:36]line Аи-92-К-5 [16:22:36]line 10.470 * 66.90 [16:22:36]line = 700.44 [16:22:36]line НДС 12% НСП 1% [16:22:36]line > о реализуемом товаре [16:22:36]line ОКРУГЛЕНИЕ: -0.44 [16:22:36]line ИТОГО: 700.00 [16:22:36]line Внесено: 700.00 [16:22:36]line СДАЧА: 0.00 [16:22:36]line НСП 1% : 6.20 [16:22:36]line НДС 12% : 74.38 [16:22:36]line Наличными: 700.00 [16:22:36]line Безнал.: 0.00 [16:22:36]line Место: АЗС № 170 "Партнер Нефть" [16:22:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:22:36]line СНО: Общий режим [16:22:36]line Чек 330 27.10.2024 16:22 [16:22:36]line Смена: 542 ФФД: 1.0 [16:22:36]line ЗНМ: 0300000110 [16:22:36]line РНМ: 0000000000091776 [16:22:36]line Версия ККМ: 001 [16:22:36]line ФМ: 0000000000871754 [16:22:36]line ФД: 192298 [16:22:36]line ФПД: 82733948594354 [16:22:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162235&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192298&fm=82733948594354&tin=02508201610067®Number=0000000000091776&sum=70000 [16:22:36]Connected sock=11 [16:22:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 05 07 01 DC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EF 02 00 35 04 06 00 4B 3E FF 9D E8 B2 22 0A 36 F8 08 F9 F6 A1 [16:22:36]written 0, free lines is 4095 [16:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 7F 47 00 53 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A EF 02 00 F4 03 04 00 92 0D 1E 67 B6 04 01 00 00 9A EC 5E 40 55 97 D9 01 [16:22:36]CommunicateWithHost err = 0 [16:22:36]CheckOFDResponse [16:22:36]1017 (14) - 77093643461234 [16:22:36]1041 (16) - 0000000000871754 [16:22:36]1040 (4) - 192298 [16:22:36]1012 (4) - 27.10.2024 09:53 [16:22:36]1206 (1) - 0 [16:22:36]OFD Sender: Remove packet 192298 [16:22:36]ProducePacketName [16:22:36]name=ofd_packets/00192298 [16:22:36]NVStorageDeleteData [16:22:37]Write to MH i2c: 01 00 00 D5 11 E6 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 B7 0C B0 [16:22:37]RasterBufferAndPrint [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]written 0, free lines is 3262 [16:22:37]MH_Cut [16:22:37]Write to MH i2c: D1 01 00 DC 11 01 BF [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 DC 11 00 BE [16:22:37]Write to MH i2c: 01 00 00 DD 11 EE [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]OFD Sender: No OFD packet to send [16:22:38]*** Cut start [16:22:38]*** Partial cut [16:22:38]*** CUTSNS_PIN = 1 [16:22:38]*** CUTSNS_PIN = 0 [16:22:38]*** Brake cut motor [16:22:38]Read from MH i2c: 01 [16:22:38]MH_I2C_Read... [16:22:38]*** Stop cut motor [16:22:38]*** Cut end [16:22:38]Read from MH i2c: 01 07 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: 01 07 00 DD 11 00 00 00 00 00 FF 0F 03 [16:22:38]process_action close_receipt done [16:22:38]requested_data is exist [16:22:38]produce_requested_data [16:22:38]requested_item fm.sn is exist - process it [16:22:38]wFMCommunicate request_size=4 [16:22:38]MH_SAM_APDU [16:22:38]CAPDU: 80 11 00 00 [16:22:38]Write to MH i2c: E2 08 00 DE 11 80 11 00 00 00 00 00 00 69 [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:38]Read from MH i2c: E2 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 17 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 17 00 DE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [16:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:22:38]wFMCommunicate OK [16:22:38]requested_item fd.num is exist - process it [16:22:38]SAM_PROTO_GetFieldsCounters [16:22:38]wFMCommunicate request_size=4 [16:22:38]MH_SAM_APDU [16:22:38]CAPDU: 80 13 00 00 [16:22:38]Write to MH i2c: E2 08 00 DF 11 80 13 00 00 00 00 00 00 6C [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:38]Read from MH i2c: E2 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 62 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 62 00 DF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:38]wFMCommunicate OK [16:22:38]SAM_PROTO_GetFieldsCounters done [16:22:38]requested_item shift.num is exist - process it [16:22:38]requested_item shift.opened is exist - process it [16:22:38]req_shift_opened [16:22:38]FM_GetShiftState [16:22:38]SAM_PROTO_GetShiftState [16:22:38]wFMCommunicate request_size=4 [16:22:38]MH_SAM_APDU [16:22:38]CAPDU: 80 13 01 00 [16:22:38]Write to MH i2c: E2 08 00 E0 11 80 13 01 00 00 00 00 00 6E [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:38]Read from MH i2c: E2 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 0E 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 0E 00 E0 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AF [16:22:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:22:38]wFMCommunicate OK [16:22:38]SAM_PROTO_GetShiftState done [16:22:38]FM_GetShiftState done [16:22:38]req_shift_opened done [16:22:38]requested_item shift.open_date is exist - process it [16:22:38]req_shift_open_date [16:22:38]req_shift_open_date done [16:22:38]produce_requested_data done [16:22:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192298,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:22:38]process_action_free close_receipt [16:22:38]json_value_free [16:22:38]json_value_free done [16:22:38]process_json_proto returns [16:22:38]Send response to host [16:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192298,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:22:38]free response buf [16:22:38]execute_script done [16:22:38]execute_script returns [16:22:38]free content buf [16:22:38]Sock 9.Close socket [16:22:38]Sock 9.Thread stoped [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]accept exits with 7 [16:23:12]New connection [16:23:12]New thread 3066936676 created [16:23:12]Thread 3067080036 joined [16:23:12]Waiting for new connection... [16:23:12] Sock 7.Parse request [16:23:12]Sock 7.Check first char [16:23:12]Sock 7.First char is OK [16:23:12]request: POST /json_proto HTTP/1.0 [16:23:12]Method: POST [16:23:12]URL: /json_proto [16:23:12]Method is POST - this is cgi request [16:23:12]url: /json_proto [16:23:12]query_string will be loaded in cgi processing [16:23:12]execute_cgi json_proto POST (null) [16:23:12]execute_cgi path=json_proto method=POST [16:23:12]POST find Content-Length [16:23:12]Host: 172.17.63.131:8080 [16:23:12]Content-Length: 677 [16:23:12]Content-Type: application/json [16:23:12] [16:23:12]POST finish read [16:23:12]Found Content-Length = 677 [16:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:12]execute_script... [16:23: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)31613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:12]POST & json_proto [16:23:12]process_json_proto [16:23:12]json parsed OK: [16:23:12]protocol is kg_v1.0 [16:23:12]action value=close_receipt [16:23:12]process_action close_receipt [16:23:12]cmd_close_receipt [16:23:12]MH_GetDate [16:23:12]Write to MH i2c: F0 00 00 E1 11 E1 [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: F0 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: F0 09 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: F0 09 00 E1 11 00 F0 68 1E 67 22 05 6E 64 C0 [16:23:12]GetLastDocTimeStamp 1730046155 [16:23:12]current date 1730046192 [16:23:12]FM_GetShiftState [16:23:12]SAM_PROTO_GetShiftState [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 13 01 00 [16:23:12]Write to MH i2c: E2 08 00 E2 11 80 13 01 00 00 00 00 00 70 [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 0E 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 0E 00 E2 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [16:23:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:23:12]wFMCommunicate OK [16:23:12]SAM_PROTO_GetShiftState done [16:23:12]FM_GetShiftState done [16:23:12]opened in 1729989159 [16:23:12]opened+sec_in_day 1730075559 [16:23:12]quantity*price = 70044 [16:23:12]sum+1 = 70045 [16:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 331 27.10.2024 16:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192299 ФПД: 62798274558294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192299&fm=62798274558294&tin=02508201610067®Number=0000000000091776&sum=70000 [16:23:13]StoreToDocumentArchive [16:23:13]shift 542 fd 192299 [16:23:13]save to /storage/0542/doc_00192299 [16:23:13]save last doc name /storage/0542/doc_00192299 to /storage/kkm_last_doc_name [16:23:13]save OK [16:23:13]Clear old archive folders... [16:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:13]tlvbuf is 00361EE0 [16:23:13]SAM_PROTO_ClearQueue [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 09 00 00 [16:23:13]Write to MH i2c: E2 08 00 EF 11 80 09 00 00 00 00 00 00 72 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]SAM_PROTO_ClearQueue done [16:23:13]KKMCreateOFDPacket [16:23:13]OFDProtocolAddRootSTLVToBuf [16:23:13]FM_MakeSignedData [16:23:13]FM_MakeSignedData [16:23:13]SAM_PROTO_SignData [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 01 02 [16:23:13]Write to MH i2c: E2 08 00 F0 11 80 0D 01 02 00 00 00 00 7A [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]wFMCommunicate request_size=255 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 F0 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EF 02 00 35 04 06 00 39 [16:23:13]Write to MH i2c: E2 02 01 F1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 F0 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EF 02 00 35 04 06 00 39 00 00 BC [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]wFMCommunicate request_size=10 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 02 02 05 1D 5C D8 F9 56 [16:23:13]Write to MH i2c: E2 0D 00 F2 11 80 0D 02 02 05 00 1D 5C D8 F9 56 00 00 27 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 03 02 [16:23:13]Write to MH i2c: E2 08 00 F3 11 80 0D 03 02 00 00 00 00 7F [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0B 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0B 00 F3 11 00 20 34 8F 07 4B E7 AC 22 90 00 6A [16:23:13]RAPDU: 20 34 8F 07 4B E7 AC 22 90 00 [16:23:13]wFMCommunicate OK [16:23:13]SAM_PROTO_SignData done [16:23:13]FM_MakeSignedData done [16:23:13]CreateOFDProtocolMessage [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 11 00 00 [16:23:13]Write to MH i2c: E2 08 00 F4 11 80 11 00 00 00 00 00 00 7F [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 F4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [16:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:13]wFMCommunicate OK [16:23:13]CreateOFDProtocolMessage done [16:23:13]OFDSenderStorePacket 192299 [16:23:13]StoreOFDPacket docnum=192299 [16:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9E FC 07 01 2C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 F0 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EF 02 00 35 04 06 00 39 1D 5C D8 F9 56 20 34 8F 07 4B E7 AC 22 [16:23:13]CheckFolder [16:23:13]dirname=/storage/ofd_packets [16:23:13]CheckFolder done [16:23:13]ProducePacketName [16:23:13]name=ofd_packets/00192299 [16:23:13]NVStorageSaveData ofd_packets/00192299 [16:23:13]File name is /storage/ofd_packets/00192299 [16:23:13]Write 301 bytes [16:23:13]NVStorageSaveData done [16:23:13]OFDSenderStorePacket done [16:23:13]KKMCreateOFDPacket done [16:23:13]NVStorageSaveData kkm_last_timestamp [16:23:13]File name is /storage/kkm_last_timestamp [16:23:13]Write 4 bytes [16:23:13]NVStorageSaveData done [16:23:13]ExternCall_PrintAddStr [16:23:13]wPrintStart [16:23:13]Write to MH i2c: 01 00 00 F5 11 06 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 F5 11 00 00 00 00 00 FF 0F 1B [16:23:13]RasterBufferAndPrint [16:23:13]line Счет N : (1)31613 [16:23:13]line ИНН: 02508201610067 [16:23:13]line Контрольно-Кассовый Чек [16:23:13]line ПРОДАЖА [16:23:13]line ТРК (МРК, ГНК) : 21 [16:23:13]line Товар: 2710124130 [16:23:13]line Аи-92-К-5 [16:23:13]line 10.470 * 66.90 [16:23:13]line = 700.44 [16:23:13]line НДС 12% НСП 1% [16:23:13]line > о реализуемом товаре [16:23:13]line ОКРУГЛЕНИЕ: -0.44 [16:23:13]line ИТОГО: 700.00 [16:23:13]line Внесено: 700.00 [16:23:13]line СДАЧА: 0.00 [16:23:13]line НСП 1% : 6.20 [16:23:13]line НДС 12% : 74.38 [16:23:13]line Наличными: 700.00 [16:23:13]line Безнал.: 0.00 [16:23:13]line Место: АЗС № 170 "Партнер Нефть" [16:23:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:23:13]line СНО: Общий режим [16:23:13]line Чек 331 27.10.2024 16:23 [16:23:13]line Смена: 542 ФФД: 1.0 [16:23:13]line ЗНМ: 0300000110 [16:23:13]line РНМ: 0000000000091776 [16:23:13]line Версия ККМ: 001 [16:23:13]line ФМ: 0000000000871754 [16:23:13]line ФД: 192299 [16:23:13]line ФПД: 62798274558294 [16:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192299&fm=62798274558294&tin=02508201610067®Number=0000000000091776&sum=70000 [16:23:14]OFD Sender: Processing packet 192299 [packets to send 75, broken 74] [16:23:14]ProducePacketName [16:23:14]name=ofd_packets/00192299 [16:23:14]OFD Sender: To server: pG, [16:23:14]CommunicateWithHost lk.salyk.kg:30040 [16:23:14]ConnectInit lk.salyk.kg [16:23:14]written 0, free lines is 4095 [16:23:14]Connected sock=10 [16:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9E FC 07 01 2C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 F0 68 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EF 02 00 35 04 06 00 39 1D 5C D8 F9 56 20 34 8F 07 4B E7 AC 22 [16:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4A B4 47 00 EE F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B EF 02 00 F4 03 04 00 B8 0D 1E 67 B6 04 01 00 00 56 31 A9 15 FD 23 10 EC [16:23:14]CommunicateWithHost err = 0 [16:23:14]CheckOFDResponse [16:23:14]1017 (14) - 77093643461234 [16:23:14]1041 (16) - 0000000000871754 [16:23:14]1040 (4) - 192299 [16:23:14]1012 (4) - 27.10.2024 09:54 [16:23:14]1206 (1) - 0 [16:23:14]OFD Sender: Remove packet 192299 [16:23:14]ProducePacketName [16:23:14]name=ofd_packets/00192299 [16:23:14]NVStorageDeleteData [16:23:14]Write to MH i2c: 01 00 00 20 12 32 [16:23:14]Write i2c OK [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: 01 [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: 01 07 00 [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: 01 07 00 20 12 00 00 00 00 00 C5 0C 0A [16:23:14]RasterBufferAndPrint [16:23:14]line [16:23:14]line [16:23:14]line [16:23:14]line [16:23:14]line [16:23:14]written 0, free lines is 3275 [16:23:14]MH_Cut [16:23:14]Write to MH i2c: D1 01 00 27 12 01 0B [16:23:14]Write i2c OK [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: D1 [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: D1 01 00 [16:23:14]MH_I2C_Read... [16:23:14]Read from MH i2c: D1 01 00 27 12 00 0A [16:23:14]Write to MH i2c: 01 00 00 28 12 3A [16:23:14]Write i2c OK [16:23:14]MH_I2C_Read... [16:23:15]OFD Sender: No OFD packet to send [16:23:15]*** Cut start [16:23:15]*** Partial cut [16:23:15]*** CUTSNS_PIN = 1 [16:23:15]*** CUTSNS_PIN = 0 [16:23:15]*** Brake cut motor [16:23:16]Read from MH i2c: 01 [16:23:16]MH_I2C_Read... [16:23:16]*** Stop cut motor [16:23:16]*** Cut end [16:23:16]Read from MH i2c: 01 07 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: 01 07 00 28 12 00 00 00 00 00 FF 0F 4F [16:23:16]process_action close_receipt done [16:23:16]requested_data is exist [16:23:16]produce_requested_data [16:23:16]requested_item fm.sn is exist - process it [16:23:16]wFMCommunicate request_size=4 [16:23:16]MH_SAM_APDU [16:23:16]CAPDU: 80 11 00 00 [16:23:16]Write to MH i2c: E2 08 00 29 12 80 11 00 00 00 00 00 00 B5 [16:23:16]Write i2c OK [16:23:16]MH_I2C_Read... [16:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:16]Read from MH i2c: E2 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 17 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 17 00 29 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [16:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:16]wFMCommunicate OK [16:23:16]requested_item fd.num is exist - process it [16:23:16]SAM_PROTO_GetFieldsCounters [16:23:16]wFMCommunicate request_size=4 [16:23:16]MH_SAM_APDU [16:23:16]CAPDU: 80 13 00 00 [16:23:16]Write to MH i2c: E2 08 00 2A 12 80 13 00 00 00 00 00 00 B8 [16:23:16]Write i2c OK [16:23:16]MH_I2C_Read... [16:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:16]Read from MH i2c: E2 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 62 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 62 00 2A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [16:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:16]wFMCommunicate OK [16:23:16]SAM_PROTO_GetFieldsCounters done [16:23:16]requested_item shift.num is exist - process it [16:23:16]requested_item shift.opened is exist - process it [16:23:16]req_shift_opened [16:23:16]FM_GetShiftState [16:23:16]SAM_PROTO_GetShiftState [16:23:16]wFMCommunicate request_size=4 [16:23:16]MH_SAM_APDU [16:23:16]CAPDU: 80 13 01 00 [16:23:16]Write to MH i2c: E2 08 00 2B 12 80 13 01 00 00 00 00 00 BA [16:23:16]Write i2c OK [16:23:16]MH_I2C_Read... [16:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:16]Read from MH i2c: E2 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 0E 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 0E 00 2B 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [16:23:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:23:16]wFMCommunicate OK [16:23:16]SAM_PROTO_GetShiftState done [16:23:16]FM_GetShiftState done [16:23:16]req_shift_opened done [16:23:16]requested_item shift.open_date is exist - process it [16:23:16]req_shift_open_date [16:23:16]req_shift_open_date done [16:23:16]produce_requested_data done [16:23:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192299,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:23:16]process_action_free close_receipt [16:23:16]json_value_free [16:23:16]json_value_free done [16:23:16]process_json_proto returns [16:23:16]Send response to host [16:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192299,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:23:16]free response buf [16:23:16]execute_script done [16:23:16]execute_script returns [16:23:16]free content buf [16:23:16]Sock 7.Close socket [16:23:16]Sock 7.Thread stoped [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:23:57]accept exits with 9 [16:23:57]New connection [16:23:57]New thread 3067080036 created [16:23:57]Thread 3066936676 joined [16:23:57]Waiting for new connection... [16:23:57] Sock 9.Parse request [16:23:57]Sock 9.Check first char [16:23:57]Sock 9.First char is OK [16:23:57]request: POST /json_proto HTTP/1.0 [16:23:57]Method: POST [16:23:57]URL: /json_proto [16:23:57]Method is POST - this is cgi request [16:23:57]url: /json_proto [16:23:57]query_string will be loaded in cgi processing [16:23:57]execute_cgi json_proto POST (null) [16:23:57]execute_cgi path=json_proto method=POST [16:23:57]POST find Content-Length [16:23:57]Host: 172.17.63.131:8080 [16:23:57]Content-Length: 676 [16:23:57]Content-Type: application/json [16:23:57] [16:23:57]POST finish read [16:23:57]Found Content-Length = 676 [16:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:57]execute_script... [16:23: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)31614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:57]POST & json_proto [16:23:57]process_json_proto [16:23:57]json parsed OK: [16:23:57]protocol is kg_v1.0 [16:23:57]action value=close_receipt [16:23:57]process_action close_receipt [16:23:57]cmd_close_receipt [16:23:57]MH_GetDate [16:23:57]Write to MH i2c: F0 00 00 2C 12 2D [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: F0 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: F0 09 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: F0 09 00 2C 12 00 1E 69 1E 67 22 05 6E 64 3B [16:23:57]GetLastDocTimeStamp 1730046192 [16:23:57]current date 1730046238 [16:23:57]FM_GetShiftState [16:23:57]SAM_PROTO_GetShiftState [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 13 01 00 [16:23:57]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:58]Read from MH i2c: E2 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: E2 0E 00 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [16:23:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:23:58]wFMCommunicate OK [16:23:58]SAM_PROTO_GetShiftState done [16:23:58]FM_GetShiftState done [16:23:58]opened in 1729989159 [16:23:58]opened+sec_in_day 1730075559 [16:23:58]quantity*price = 40006 [16:23:58]sum+1 = 40007 [16:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 332 27.10.2024 16:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192300 ФПД: 104476068288164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162358&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192300&fm=104476068288164&tin=02508201610067®Number=0000000000091776&sum=40000 [16:23:59]StoreToDocumentArchive [16:23:59]shift 542 fd 192300 [16:23:59]save to /storage/0542/doc_00192300 [16:23:59]save last doc name /storage/0542/doc_00192300 to /storage/kkm_last_doc_name [16:23:59]save OK [16:23:59]Clear old archive folders... [16:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:59]tlvbuf is 0033E0B0 [16:23:59]SAM_PROTO_ClearQueue [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 09 00 00 [16:23:59]Write to MH i2c: E2 08 00 3A 12 80 09 00 00 00 00 00 00 BE [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [16:23:59]RAPDU: 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_ClearQueue done [16:23:59]KKMCreateOFDPacket [16:23:59]OFDProtocolAddRootSTLVToBuf [16:23:59]FM_MakeSignedData [16:23:59]FM_MakeSignedData [16:23:59]SAM_PROTO_SignData [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 0D 01 02 [16:23:59]Write to MH i2c: E2 08 00 3B 12 80 0D 01 02 00 00 00 00 C6 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [16:23:59]RAPDU: 90 00 [16:23:59]wFMCommunicate OK [16:23:59]wFMCommunicate request_size=255 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 1E 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EF 02 00 35 04 06 00 5F [16:23:59]Write to MH i2c: E2 02 01 3C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 1E 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EF 02 00 35 04 06 00 5F 00 00 1E [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [16:23:59]RAPDU: 90 00 [16:23:59]wFMCommunicate OK [16:23:59]wFMCommunicate request_size=10 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 0D 02 02 05 05 3A F0 16 A4 [16:23:59]Write to MH i2c: E2 0D 00 3D 12 80 0D 02 02 05 00 05 3A F0 16 A4 00 00 BC [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [16:23:59]RAPDU: 90 00 [16:23:59]wFMCommunicate OK [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 0D 03 02 [16:23:59]Write to MH i2c: E2 08 00 3E 12 80 0D 03 02 00 00 00 00 CB [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0B 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0B 00 3E 12 00 8F BD 4E 74 33 B7 42 44 90 00 4A [16:23:59]RAPDU: 8F BD 4E 74 33 B7 42 44 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_SignData done [16:23:59]FM_MakeSignedData done [16:23:59]CreateOFDProtocolMessage [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 11 00 00 [16:23:59]Write to MH i2c: E2 08 00 3F 12 80 11 00 00 00 00 00 00 CB [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 3F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [16:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:59]wFMCommunicate OK [16:23:59]CreateOFDProtocolMessage done [16:23:59]OFDSenderStorePacket 192300 [16:23:59]StoreOFDPacket docnum=192300 [16:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 D3 07 01 E7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 1E 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EF 02 00 35 04 06 00 5F 05 3A F0 16 A4 8F BD 4E 74 33 B7 42 44 [16:23:59]CheckFolder [16:23:59]dirname=/storage/ofd_packets [16:23:59]CheckFolder done [16:23:59]ProducePacketName [16:23:59]name=ofd_packets/00192300 [16:23:59]NVStorageSaveData ofd_packets/00192300 [16:23:59]File name is /storage/ofd_packets/00192300 [16:23:59]Write 301 bytes [16:23:59]NVStorageSaveData done [16:23:59]OFDSenderStorePacket done [16:23:59]KKMCreateOFDPacket done [16:23:59]NVStorageSaveData kkm_last_timestamp [16:23:59]File name is /storage/kkm_last_timestamp [16:23:59]Write 4 bytes [16:23:59]NVStorageSaveData done [16:23:59]ExternCall_PrintAddStr [16:23:59]wPrintStart [16:23:59]Write to MH i2c: 01 00 00 40 12 52 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 40 12 00 00 00 00 00 FF 0F 67 [16:23:59]RasterBufferAndPrint [16:23:59]line Счет N : (1)31614 [16:23:59]line ИНН: 02508201610067 [16:23:59]line Контрольно-Кассовый Чек [16:23:59]line ПРОДАЖА [16:23:59]line ТРК (МРК, ГНК) : 21 [16:23:59]line Товар: 2710124130 [16:23:59]line Аи-92-К-5 [16:23:59]line 5.980 * 66.90 [16:23:59]line = 400.06 [16:23:59]line НДС 12% НСП 1% [16:23:59]line > о реализуемом товаре [16:23:59]line ОКРУГЛЕНИЕ: -0.06 [16:23:59]line ИТОГО: 400.00 [16:23:59]line Внесено: 400.00 [16:23:59]line СДАЧА: 0.00 [16:23:59]line НСП 1% : 3.54 [16:23:59]line НДС 12% : 42.48 [16:23:59]line Наличными: 400.00 [16:23:59]line Безнал.: 0.00 [16:23:59]line Место: АЗС № 170 "Партнер Нефть" [16:23:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:23:59]line СНО: Общий режим [16:23:59]line Чек 332 27.10.2024 16:23 [16:23:59]line Смена: 542 ФФД: 1.0 [16:23:59]line ЗНМ: 0300000110 [16:23:59]line РНМ: 0000000000091776 [16:23:59]line Версия ККМ: 001 [16:23:59]line ФМ: 0000000000871754 [16:23:59]line ФД: 192300 [16:23:59]line ФПД: 104476068288164 [16:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162358&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192300&fm=104476068288164&tin=02508201610067®Number=0000000000091776&sum=40000 [16:23:59]written 0, free lines is 4095 [16:23:59]OFD Sender: Processing packet 192300 [packets to send 75, broken 74] [16:23:59]ProducePacketName [16:23:59]name=ofd_packets/00192300 [16:23:59]OFD Sender: To server: pG, [16:23:59]CommunicateWithHost lk.salyk.kg:30040 [16:23:59]ConnectInit lk.salyk.kg [16:23:59]Connected sock=10 [16:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 D3 07 01 E7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 1E 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EF 02 00 35 04 06 00 5F 05 3A F0 16 A4 8F BD 4E 74 33 B7 42 44 [16:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 B9 47 00 BF C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C EF 02 00 F4 03 04 00 E5 0D 1E 67 B6 04 01 00 00 DC EC E4 77 D1 E9 70 D9 [16:24:00]CommunicateWithHost err = 0 [16:24:00]CheckOFDResponse [16:24:00]1017 (14) - 77093643461234 [16:24:00]1041 (16) - 0000000000871754 [16:24:00]1040 (4) - 192300 [16:24:00]1012 (4) - 27.10.2024 09:54 [16:24:00]1206 (1) - 0 [16:24:00]OFD Sender: Remove packet 192300 [16:24:00]ProducePacketName [16:24:00]name=ofd_packets/00192300 [16:24:00]NVStorageDeleteData [16:24:00]Write to MH i2c: 01 00 00 6B 12 7D [16:24:00]Write i2c OK [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: 01 [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: 01 07 00 [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 C5 0C 55 [16:24:00]RasterBufferAndPrint [16:24:00]line [16:24:00]line [16:24:00]line [16:24:00]line [16:24:00]line [16:24:00]written 0, free lines is 3275 [16:24:00]MH_Cut [16:24:00]Write to MH i2c: D1 01 00 72 12 01 56 [16:24:00]Write i2c OK [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: D1 [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: D1 01 00 [16:24:00]MH_I2C_Read... [16:24:00]Read from MH i2c: D1 01 00 72 12 00 55 [16:24:00]Write to MH i2c: 01 00 00 73 12 85 [16:24:00]Write i2c OK [16:24:00]MH_I2C_Read... [16:24:00]OFD Sender: No OFD packet to send [16:24:01]*** Cut start [16:24:01]*** Partial cut [16:24:01]*** CUTSNS_PIN = 1 [16:24:01]*** CUTSNS_PIN = 0 [16:24:01]*** Brake cut motor [16:24:01]Read from MH i2c: 01 [16:24:01]MH_I2C_Read... [16:24:01]*** Stop cut motor [16:24:01]*** Cut end [16:24:01]Read from MH i2c: 01 07 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 FF 0F 9A [16:24:01]process_action close_receipt done [16:24:01]requested_data is exist [16:24:01]produce_requested_data [16:24:01]requested_item fm.sn is exist - process it [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 11 00 00 [16:24:01]Write to MH i2c: E2 08 00 74 12 80 11 00 00 00 00 00 00 00 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 17 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 17 00 74 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:24:01]wFMCommunicate OK [16:24:01]requested_item fd.num is exist - process it [16:24:01]SAM_PROTO_GetFieldsCounters [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 13 00 00 [16:24:01]Write to MH i2c: E2 08 00 75 12 80 13 00 00 00 00 00 00 03 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 62 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 62 00 75 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:24:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_GetFieldsCounters done [16:24:01]requested_item shift.num is exist - process it [16:24:01]requested_item shift.opened is exist - process it [16:24:01]req_shift_opened [16:24:01]FM_GetShiftState [16:24:01]SAM_PROTO_GetShiftState [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 13 01 00 [16:24:01]Write to MH i2c: E2 08 00 76 12 80 13 01 00 00 00 00 00 05 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 76 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 46 [16:24:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_GetShiftState done [16:24:01]FM_GetShiftState done [16:24:01]req_shift_opened done [16:24:01]requested_item shift.open_date is exist - process it [16:24:01]req_shift_open_date [16:24:01]req_shift_open_date done [16:24:01]produce_requested_data done [16:24:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192300,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:24:01]process_action_free close_receipt [16:24:01]json_value_free [16:24:01]json_value_free done [16:24:01]process_json_proto returns [16:24:01]Send response to host [16:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192300,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:24:01]free response buf [16:24:01]execute_script done [16:24:01]execute_script returns [16:24:01]free content buf [16:24:01]Sock 9.Close socket [16:24:01]Sock 9.Thread stoped [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:44]accept exits with 7 [16:24:44]New connection [16:24:44]New thread 3066936676 created [16:24:44]Thread 3067080036 joined [16:24:44]Waiting for new connection... [16:24:44] Sock 7.Parse request [16:24:44]Sock 7.Check first char [16:24:44]Sock 7.First char is OK [16:24:44]request: POST /json_proto HTTP/1.0 [16:24:44]Method: POST [16:24:44]URL: /json_proto [16:24:44]Method is POST - this is cgi request [16:24:44]url: /json_proto [16:24:44]query_string will be loaded in cgi processing [16:24:44]execute_cgi json_proto POST (null) [16:24:44]execute_cgi path=json_proto method=POST [16:24:44]POST find Content-Length [16:24:44]Host: 172.17.63.131:8080 [16:24:44]Content-Length: 676 [16:24:44]Content-Type: application/json [16:24:44] [16:24:44]POST finish read [16:24:44]Found Content-Length = 676 [16:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:44]execute_script... [16:24:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:44]POST & json_proto [16:24:44]process_json_proto [16:24:44]json parsed OK: [16:24:44]protocol is kg_v1.0 [16:24:44]action value=close_receipt [16:24:44]process_action close_receipt [16:24:44]cmd_close_receipt [16:24:44]MH_GetDate [16:24:44]Write to MH i2c: F0 00 00 77 12 78 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: F0 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: F0 09 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: F0 09 00 77 12 00 4D 69 1E 67 22 05 6E 64 B5 [16:24:44]GetLastDocTimeStamp 1730046238 [16:24:44]current date 1730046285 [16:24:44]FM_GetShiftState [16:24:44]SAM_PROTO_GetShiftState [16:24:44]wFMCommunicate request_size=4 [16:24:44]MH_SAM_APDU [16:24:44]CAPDU: 80 13 01 00 [16:24:44]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:44]Read from MH i2c: E2 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 0E 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [16:24:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:24:44]wFMCommunicate OK [16:24:44]SAM_PROTO_GetShiftState done [16:24:44]FM_GetShiftState done [16:24:44]opened in 1729989159 [16:24:44]opened+sec_in_day 1730075559 [16:24:44]quantity*price = 20003 [16:24:44]sum+1 = 20004 [16:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 333 27.10.2024 16:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192301 ФПД: 138498320689959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162445&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192301&fm=138498320689959&tin=02508201610067®Number=0000000000091776&sum=20000 [16:24:45]StoreToDocumentArchive [16:24:45]shift 542 fd 192301 [16:24:45]save to /storage/0542/doc_00192301 [16:24:45]save last doc name /storage/0542/doc_00192301 to /storage/kkm_last_doc_name [16:24:45]save OK [16:24:45]Clear old archive folders... [16:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:45]tlvbuf is 00361C00 [16:24:45]SAM_PROTO_ClearQueue [16:24:45]wFMCommunicate request_size=4 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 09 00 00 [16:24:45]Write to MH i2c: E2 08 00 85 12 80 09 00 00 00 00 00 00 09 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [16:24:45]RAPDU: 90 00 [16:24:45]wFMCommunicate OK [16:24:45]SAM_PROTO_ClearQueue done [16:24:45]KKMCreateOFDPacket [16:24:45]OFDProtocolAddRootSTLVToBuf [16:24:45]FM_MakeSignedData [16:24:45]FM_MakeSignedData [16:24:45]SAM_PROTO_SignData [16:24:45]wFMCommunicate request_size=4 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 0D 01 02 [16:24:45]Write to MH i2c: E2 08 00 86 12 80 0D 01 02 00 00 00 00 11 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:45]OFD Sender: No OFD packet to send [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [16:24:45]RAPDU: 90 00 [16:24:45]wFMCommunicate OK [16:24:45]wFMCommunicate request_size=255 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EF 02 00 35 04 06 00 7D [16:24:45]Write to MH i2c: E2 02 01 87 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EF 02 00 35 04 06 00 7D 00 00 AB [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [16:24:45]RAPDU: 90 00 [16:24:45]wFMCommunicate OK [16:24:45]wFMCommunicate request_size=10 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 0D 02 02 05 F6 A7 34 EB 27 [16:24:45]Write to MH i2c: E2 0D 00 88 12 80 0D 02 02 05 00 F6 A7 34 EB 27 00 00 01 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 03 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [16:24:46]RAPDU: 90 00 [16:24:46]wFMCommunicate OK [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 0D 03 02 [16:24:46]Write to MH i2c: E2 08 00 89 12 80 0D 03 02 00 00 00 00 16 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0B 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0B 00 89 12 00 F2 63 E9 3E FB 74 79 CA 90 00 45 [16:24:46]RAPDU: F2 63 E9 3E FB 74 79 CA 90 00 [16:24:46]wFMCommunicate OK [16:24:46]SAM_PROTO_SignData done [16:24:46]FM_MakeSignedData done [16:24:46]CreateOFDProtocolMessage [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 11 00 00 [16:24:46]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 17 00 [16:24:46]MH_I2C_Read... [16:24:46]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 37 35 34 90 00 69 [16:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:24:46]wFMCommunicate OK [16:24:46]CreateOFDProtocolMessage done [16:24:46]OFDSenderStorePacket 192301 [16:24:46]StoreOFDPacket docnum=192301 [16:24:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 6B 07 01 40 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EF 02 00 35 04 06 00 7D F6 A7 34 EB 27 F2 63 E9 3E FB 74 79 CA [16:24:46]CheckFolder [16:24:46]dirname=/storage/ofd_packets [16:24:46]CheckFolder done [16:24:46]ProducePacketName [16:24:46]name=ofd_packets/00192301 [16:24:46]NVStorageSaveData ofd_packets/00192301 [16:24:46]File name is /storage/ofd_packets/00192301 [16:24:46]Write 301 bytes [16:24:46]NVStorageSaveData done [16:24:46]OFDSenderStorePacket done [16:24:46]KKMCreateOFDPacket done [16:24:46]NVStorageSaveData kkm_last_timestamp [16:24:46]File name is /storage/kkm_last_timestamp [16:24:46]Write 4 bytes [16:24:46]NVStorageSaveData done [16:24:46]ExternCall_PrintAddStr [16:24:46]wPrintStart [16:24:46]Write to MH i2c: 01 00 00 8B 12 9D [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 07 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [16:24:46]RasterBufferAndPrint [16:24:46]line Счет N : (1)31616 [16:24:46]line ИНН: 02508201610067 [16:24:46]line Контрольно-Кассовый Чек [16:24:46]line ПРОДАЖА [16:24:46]line ТРК (МРК, ГНК) : 12 [16:24:46]line Товар: 2710124130 [16:24:46]line Аи-92-К-5 [16:24:46]line 2.990 * 66.90 [16:24:46]line = 200.03 [16:24:46]line НДС 12% НСП 1% [16:24:46]line > о реализуемом товаре [16:24:46]line ОКРУГЛЕНИЕ: -0.03 [16:24:46]line ИТОГО: 200.00 [16:24:46]line Внесено: 200.00 [16:24:46]line СДАЧА: 0.00 [16:24:46]line НСП 1% : 1.77 [16:24:46]line НДС 12% : 21.24 [16:24:46]line Наличными: 200.00 [16:24:46]line Безнал.: 0.00 [16:24:46]line Место: АЗС № 170 "Партнер Нефть" [16:24:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:24:46]line СНО: Общий режим [16:24:46]line Чек 333 27.10.2024 16:24 [16:24:46]line Смена: 542 ФФД: 1.0 [16:24:46]line ЗНМ: 0300000110 [16:24:46]line РНМ: 0000000000091776 [16:24:46]line Версия ККМ: 001 [16:24:46]line ФМ: 0000000000871754 [16:24:46]line ФД: 192301 [16:24:46]line ФПД: 138498320689959 [16:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162445&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192301&fm=138498320689959&tin=02508201610067®Number=0000000000091776&sum=20000 [16:24:46]written 0, free lines is 4095 [16:24:46]OFD Sender: Processing packet 192301 [packets to send 75, broken 74] [16:24:46]ProducePacketName [16:24:46]name=ofd_packets/00192301 [16:24:46]OFD Sender: To server: pG, [16:24:46]CommunicateWithHost lk.salyk.kg:30040 [16:24:46]ConnectInit lk.salyk.kg [16:24:46]Connected sock=11 [16:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 6B 07 01 40 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 4D 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EF 02 00 35 04 06 00 7D F6 A7 34 EB 27 F2 63 E9 3E FB 74 79 CA [16:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 3C 47 00 DB 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D EF 02 00 F4 03 04 00 13 0E 1E 67 B6 04 01 00 00 5F 61 ED A6 02 C2 CE F9 [16:24:46]CommunicateWithHost err = 0 [16:24:46]CheckOFDResponse [16:24:46]1017 (14) - 77093643461234 [16:24:46]1041 (16) - 0000000000871754 [16:24:46]1040 (4) - 192301 [16:24:46]1012 (4) - 27.10.2024 09:55 [16:24:46]1206 (1) - 0 [16:24:46]OFD Sender: Remove packet 192301 [16:24:46]ProducePacketName [16:24:46]name=ofd_packets/00192301 [16:24:46]NVStorageDeleteData [16:24:46]Write to MH i2c: 01 00 00 B6 12 C8 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 07 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 BC 0C 97 [16:24:46]RasterBufferAndPrint [16:24:46]line [16:24:46]line [16:24:46]line [16:24:46]line [16:24:46]line [16:24:46]written 0, free lines is 3267 [16:24:46]MH_Cut [16:24:46]Write to MH i2c: D1 01 00 BD 12 01 A1 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: D1 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: D1 01 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: D1 01 00 BD 12 00 A0 [16:24:46]Write to MH i2c: 01 00 00 BE 12 D0 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:47]OFD Sender: No OFD packet to send [16:24:47]*** Cut start [16:24:47]*** Partial cut [16:24:47]*** CUTSNS_PIN = 1 [16:24:47]*** CUTSNS_PIN = 0 [16:24:47]*** Brake cut motor [16:24:48]Read from MH i2c: 01 [16:24:48]MH_I2C_Read... [16:24:48]*** Stop cut motor [16:24:48]*** Cut end [16:24:48]Read from MH i2c: 01 07 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 FF 0F E5 [16:24:48]process_action close_receipt done [16:24:48]requested_data is exist [16:24:48]produce_requested_data [16:24:48]requested_item fm.sn is exist - process it [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 11 00 00 [16:24:48]Write to MH i2c: E2 08 00 BF 12 80 11 00 00 00 00 00 00 4B [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 17 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 17 00 BF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:24:48]wFMCommunicate OK [16:24:48]requested_item fd.num is exist - process it [16:24:48]SAM_PROTO_GetFieldsCounters [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 13 00 00 [16:24:48]Write to MH i2c: E2 08 00 C0 12 80 13 00 00 00 00 00 00 4E [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 62 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 62 00 C0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [16:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_GetFieldsCounters done [16:24:48]requested_item shift.num is exist - process it [16:24:48]requested_item shift.opened is exist - process it [16:24:48]req_shift_opened [16:24:48]FM_GetShiftState [16:24:48]SAM_PROTO_GetShiftState [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 13 01 00 [16:24:48]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0E 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 91 [16:24:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_GetShiftState done [16:24:48]FM_GetShiftState done [16:24:48]req_shift_opened done [16:24:48]requested_item shift.open_date is exist - process it [16:24:48]req_shift_open_date [16:24:48]req_shift_open_date done [16:24:48]produce_requested_data done [16:24:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192301,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:24:48]process_action_free close_receipt [16:24:48]json_value_free [16:24:48]json_value_free done [16:24:48]process_json_proto returns [16:24:48]Send response to host [16:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192301,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:24:48]free response buf [16:24:48]execute_script done [16:24:48]execute_script returns [16:24:48]free content buf [16:24:48]Sock 7.Close socket [16:24:48]Sock 7.Thread stoped [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:39]accept exits with 9 [16:25:39]New connection [16:25:39]New thread 3067080036 created [16:25:39]Thread 3066936676 joined [16:25:39]Waiting for new connection... [16:25:39] Sock 9.Parse request [16:25:39]Sock 9.Check first char [16:25:39]Sock 9.First char is OK [16:25:39]request: POST /json_proto HTTP/1.0 [16:25:39]Method: POST [16:25:39]URL: /json_proto [16:25:39]Method is POST - this is cgi request [16:25:39]url: /json_proto [16:25:39]query_string will be loaded in cgi processing [16:25:39]execute_cgi json_proto POST (null) [16:25:39]execute_cgi path=json_proto method=POST [16:25:39]POST find Content-Length [16:25:39]Host: 172.17.63.131:8080 [16:25:39]Content-Length: 676 [16:25:39]Content-Type: application/json [16:25:39] [16:25:39]POST finish read [16:25:39]Found Content-Length = 676 [16:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]execute_script... [16:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]POST & json_proto [16:25:39]process_json_proto [16:25:39]json parsed OK: [16:25:39]protocol is kg_v1.0 [16:25:39]action value=close_receipt [16:25:39]process_action close_receipt [16:25:39]cmd_close_receipt [16:25:39]MH_GetDate [16:25:39]Write to MH i2c: F0 00 00 C2 12 C3 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 09 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 09 00 C2 12 00 83 69 1E 67 22 05 6E 64 36 [16:25:39]GetLastDocTimeStamp 1730046285 [16:25:39]current date 1730046339 [16:25:39]FM_GetShiftState [16:25:39]SAM_PROTO_GetShiftState [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 01 00 [16:25:39]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [16:25:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetShiftState done [16:25:39]FM_GetShiftState done [16:25:39]opened in 1729989159 [16:25:39]opened+sec_in_day 1730075559 [16:25:39]quantity*price = 60009 [16:25:39]sum+1 = 60010 [16:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 334 27.10.2024 16:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192302 ФПД: 242368744252085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162539&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192302&fm=242368744252085&tin=02508201610067®Number=0000000000091776&sum=60000 [16:25:40]StoreToDocumentArchive [16:25:40]shift 542 fd 192302 [16:25:40]save to /storage/0542/doc_00192302 [16:25:40]save last doc name /storage/0542/doc_00192302 to /storage/kkm_last_doc_name [16:25:40]save OK [16:25:40]Clear old archive folders... [16:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:40]tlvbuf is B6EC7090 [16:25:40]SAM_PROTO_ClearQueue [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 09 00 00 [16:25:40]Write to MH i2c: E2 08 00 D0 12 80 09 00 00 00 00 00 00 54 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]SAM_PROTO_ClearQueue done [16:25:40]KKMCreateOFDPacket [16:25:40]OFDProtocolAddRootSTLVToBuf [16:25:40]FM_MakeSignedData [16:25:40]FM_MakeSignedData [16:25:40]SAM_PROTO_SignData [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 01 02 [16:25:40]Write to MH i2c: E2 08 00 D1 12 80 0D 01 02 00 00 00 00 5C [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=255 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 83 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EF 02 00 35 04 06 00 DC [16:25:40]Write to MH i2c: E2 02 01 D2 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 83 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EF 02 00 35 04 06 00 DC 00 00 A8 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=10 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 02 02 05 6E DE E7 E2 B5 [16:25:40]Write to MH i2c: E2 0D 00 D3 12 80 0D 02 02 05 00 6E DE E7 E2 B5 00 00 33 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 03 02 [16:25:40]Write to MH i2c: E2 08 00 D4 12 80 0D 03 02 00 00 00 00 61 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 D4 12 00 11 43 C9 5F 4D 0B FC C4 90 00 F6 [16:25:40]RAPDU: 11 43 C9 5F 4D 0B FC C4 90 00 [16:25:40]wFMCommunicate OK [16:25:40]SAM_PROTO_SignData done [16:25:40]FM_MakeSignedData done [16:25:40]CreateOFDProtocolMessage [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 11 00 00 [16:25:40]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [16:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:25:40]wFMCommunicate OK [16:25:40]CreateOFDProtocolMessage done [16:25:40]OFDSenderStorePacket 192302 [16:25:40]StoreOFDPacket docnum=192302 [16:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 57 3F 07 01 2F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 83 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EF 02 00 35 04 06 00 DC 6E DE E7 E2 B5 11 43 C9 5F 4D 0B FC C4 [16:25:40]CheckFolder [16:25:40]dirname=/storage/ofd_packets [16:25:40]CheckFolder done [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00192302 [16:25:40]NVStorageSaveData ofd_packets/00192302 [16:25:40]File name is /storage/ofd_packets/00192302 [16:25:40]Write 301 bytes [16:25:40]NVStorageSaveData done [16:25:40]OFDSenderStorePacket done [16:25:40]KKMCreateOFDPacket done [16:25:40]NVStorageSaveData kkm_last_timestamp [16:25:40]File name is /storage/kkm_last_timestamp [16:25:40]Write 4 bytes [16:25:40]NVStorageSaveData done [16:25:40]ExternCall_PrintAddStr [16:25:40]wPrintStart [16:25:40]Write to MH i2c: 01 00 00 D6 12 E8 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [16:25:40]RasterBufferAndPrint [16:25:40]line Счет N : (1)31618 [16:25:40]line ИНН: 02508201610067 [16:25:40]line Контрольно-Кассовый Чек [16:25:40]line ПРОДАЖА [16:25:40]line ТРК (МРК, ГНК) : 21 [16:25:40]line Товар: 2710124130 [16:25:40]line Аи-92-К-5 [16:25:40]line 8.970 * 66.90 [16:25:40]line = 600.09 [16:25:40]line НДС 12% НСП 1% [16:25:40]line > о реализуемом товаре [16:25:40]line ОКРУГЛЕНИЕ: -0.09 [16:25:40]line ИТОГО: 600.00 [16:25:40]line Внесено: 600.00 [16:25:40]line СДАЧА: 0.00 [16:25:40]line НСП 1% : 5.31 [16:25:40]line НДС 12% : 63.73 [16:25:40]line Наличными: 600.00 [16:25:40]line Безнал.: 0.00 [16:25:40]line Место: АЗС № 170 "Партнер Нефть" [16:25:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:25:40]line СНО: Общий режим [16:25:40]line Чек 334 27.10.2024 16:25 [16:25:40]line Смена: 542 ФФД: 1.0 [16:25:40]line ЗНМ: 0300000110 [16:25:40]line РНМ: 0000000000091776 [16:25:40]line Версия ККМ: 001 [16:25:40]line ФМ: 0000000000871754 [16:25:40]line ФД: 192302 [16:25:40]line ФПД: 242368744252085 [16:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162539&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192302&fm=242368744252085&tin=02508201610067®Number=0000000000091776&sum=60000 [16:25:41]OFD Sender: Processing packet 192302 [packets to send 75, broken 74] [16:25:41]ProducePacketName [16:25:41]name=ofd_packets/00192302 [16:25:41]OFD Sender: To server: pG, [16:25:41]CommunicateWithHost lk.salyk.kg:30040 [16:25:41]ConnectInit lk.salyk.kg [16:25:41]written 0, free lines is 4095 [16:25:41]Connected sock=7 [16:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 57 3F 07 01 2F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 83 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EF 02 00 35 04 06 00 DC 6E DE E7 E2 B5 11 43 C9 5F 4D 0B FC C4 [16:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 C6 47 00 5F 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E EF 02 00 F4 03 04 00 4B 0E 1E 67 B6 04 01 00 00 EF 51 80 0E 4B 9E 8F 00 [16:25:41]CommunicateWithHost err = 0 [16:25:41]CheckOFDResponse [16:25:41]1017 (14) - 77093643461234 [16:25:41]1041 (16) - 0000000000871754 [16:25:41]1040 (4) - 192302 [16:25:41]1012 (4) - 27.10.2024 09:56 [16:25:41]1206 (1) - 0 [16:25:41]OFD Sender: Remove packet 192302 [16:25:41]ProducePacketName [16:25:41]name=ofd_packets/00192302 [16:25:41]NVStorageDeleteData [16:25:41]Write to MH i2c: 01 00 00 01 13 14 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 07 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 07 00 01 13 00 00 00 00 00 B9 0C E0 [16:25:41]RasterBufferAndPrint [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]written 0, free lines is 3264 [16:25:41]MH_Cut [16:25:41]Write to MH i2c: D1 01 00 08 13 01 ED [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 01 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 01 00 08 13 00 EC [16:25:41]Write to MH i2c: 01 00 00 09 13 1C [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:42]OFD Sender: No OFD packet to send [16:25:42]*** Cut start [16:25:42]*** Partial cut [16:25:42]*** CUTSNS_PIN = 1 [16:25:42]*** CUTSNS_PIN = 0 [16:25:42]*** Brake cut motor [16:25:43]Read from MH i2c: 01 [16:25:43]MH_I2C_Read... [16:25:43]*** Stop cut motor [16:25:43]*** Cut end [16:25:43]Read from MH i2c: 01 07 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 FF 0F 31 [16:25:43]process_action close_receipt done [16:25:43]requested_data is exist [16:25:43]produce_requested_data [16:25:43]requested_item fm.sn is exist - process it [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 11 00 00 [16:25:43]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [16:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:25:43]wFMCommunicate OK [16:25:43]requested_item fd.num is exist - process it [16:25:43]SAM_PROTO_GetFieldsCounters [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 00 00 [16:25:43]Write to MH i2c: E2 08 00 0B 13 80 13 00 00 00 00 00 00 9A [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 0B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetFieldsCounters done [16:25:43]requested_item shift.num is exist - process it [16:25:43]requested_item shift.opened is exist - process it [16:25:43]req_shift_opened [16:25:43]FM_GetShiftState [16:25:43]SAM_PROTO_GetShiftState [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 01 00 [16:25:43]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [16:25:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetShiftState done [16:25:43]FM_GetShiftState done [16:25:43]req_shift_opened done [16:25:43]requested_item shift.open_date is exist - process it [16:25:43]req_shift_open_date [16:25:43]req_shift_open_date done [16:25:43]produce_requested_data done [16:25:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192302,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:25:43]process_action_free close_receipt [16:25:43]json_value_free [16:25:43]json_value_free done [16:25:43]process_json_proto returns [16:25:43]Send response to host [16:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192302,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:25:43]free response buf [16:25:43]execute_script done [16:25:43]execute_script returns [16:25:43]free content buf [16:25:43]Sock 9.Close socket [16:25:43]Sock 9.Thread stoped [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:16]accept exits with 10 [16:26:16]New connection [16:26:16]New thread 3066936676 created [16:26:16]Thread 3067080036 joined [16:26:16]Waiting for new connection... [16:26:16] Sock 10.Parse request [16:26:16]Sock 10.Check first char [16:26:16]Sock 10.First char is OK [16:26:16]request: POST /json_proto HTTP/1.0 [16:26:16]Method: POST [16:26:16]URL: /json_proto [16:26:16]Method is POST - this is cgi request [16:26:16]url: /json_proto [16:26:16]query_string will be loaded in cgi processing [16:26:16]execute_cgi json_proto POST (null) [16:26:16]execute_cgi path=json_proto method=POST [16:26:16]POST find Content-Length [16:26:16]Host: 172.17.63.131:8080 [16:26:16]Content-Length: 678 [16:26:16]Content-Type: application/json [16:26:16] [16:26:16]POST finish read [16:26:16]Found Content-Length = 678 [16:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31617", "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" : 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" ] } } [16:26:16]execute_script... [16:26: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)31617", "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" : 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" ] } } [16:26:16]POST & json_proto [16:26:16]process_json_proto [16:26:16]json parsed OK: [16:26:16]protocol is kg_v1.0 [16:26:16]action value=close_receipt [16:26:16]process_action close_receipt [16:26:16]cmd_close_receipt [16:26:16]MH_GetDate [16:26:16]Write to MH i2c: F0 00 00 0D 13 0F [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 09 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: F0 09 00 0D 13 00 A9 69 1E 67 22 05 6E 64 A8 [16:26:16]GetLastDocTimeStamp 1730046339 [16:26:16]current date 1730046377 [16:26:16]FM_GetShiftState [16:26:16]SAM_PROTO_GetShiftState [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 13 01 00 [16:26:16]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DF [16:26:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:26:16]wFMCommunicate OK [16:26:16]SAM_PROTO_GetShiftState done [16:26:16]FM_GetShiftState done [16:26:16]opened in 1729989159 [16:26:16]opened+sec_in_day 1730075559 [16:26:16]quantity*price = 100050 [16:26:16]sum+1 = 100052 [16:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 335 27.10.2024 16:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192303 ФПД: 136486597091770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192303&fm=136486597091770&tin=02508201610067®Number=0000000000091776&sum=100000 [16:26:17]StoreToDocumentArchive [16:26:17]shift 542 fd 192303 [16:26:17]save to /storage/0542/doc_00192303 [16:26:17]save last doc name /storage/0542/doc_00192303 to /storage/kkm_last_doc_name [16:26:17]save OK [16:26:17]Clear old archive folders... [16:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:17]tlvbuf is 003625B0 [16:26:17]SAM_PROTO_ClearQueue [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 09 00 00 [16:26:17]Write to MH i2c: E2 08 00 1B 13 80 09 00 00 00 00 00 00 A0 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [16:26:18]RAPDU: 90 00 [16:26:18]wFMCommunicate OK [16:26:18]SAM_PROTO_ClearQueue done [16:26:18]KKMCreateOFDPacket [16:26:18]OFDProtocolAddRootSTLVToBuf [16:26:18]FM_MakeSignedData [16:26:18]FM_MakeSignedData [16:26:18]SAM_PROTO_SignData [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 0D 01 02 [16:26:18]Write to MH i2c: E2 08 00 1C 13 80 0D 01 02 00 00 00 00 A8 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [16:26:18]RAPDU: 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=255 [16:26:18]MH_SAM_APDU [16:26: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 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 4F 01 00 00 F4 03 04 00 A9 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EF 02 00 35 04 06 00 7C 22 43 22 [16:26:18]Write to MH i2c: E2 02 01 1D 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4F 01 00 00 F4 03 04 00 A9 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EF 02 00 35 04 06 00 7C 22 43 22 00 00 5C [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [16:26:18]RAPDU: 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=7 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 0D 02 02 02 E1 BA [16:26:18]Write to MH i2c: E2 0A 00 1E 13 80 0D 02 02 02 00 E1 BA 00 00 4A [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [16:26:18]RAPDU: 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 0D 03 02 [16:26:18]Write to MH i2c: E2 08 00 1F 13 80 0D 03 02 00 00 00 00 AD [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0B 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0B 00 1F 13 00 BD 0F 18 C8 E7 8F 61 07 90 00 38 [16:26:18]RAPDU: BD 0F 18 C8 E7 8F 61 07 90 00 [16:26:18]wFMCommunicate OK [16:26:18]SAM_PROTO_SignData done [16:26:18]FM_MakeSignedData done [16:26:18]CreateOFDProtocolMessage [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 11 00 00 [16:26:18]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:18]wFMCommunicate OK [16:26:18]CreateOFDProtocolMessage done [16:26:18]OFDSenderStorePacket 192303 [16:26:18]StoreOFDPacket docnum=192303 [16:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA C3 04 01 CC 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4F 01 00 00 F4 03 04 00 A9 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EF 02 00 35 04 06 00 7C 22 43 22 E1 BA BD 0F 18 C8 E7 8F 61 07 [16:26:18]CheckFolder [16:26:18]dirname=/storage/ofd_packets [16:26:18]CheckFolder done [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00192303 [16:26:18]NVStorageSaveData ofd_packets/00192303 [16:26:18]File name is /storage/ofd_packets/00192303 [16:26:18]Write 298 bytes [16:26:18]NVStorageSaveData done [16:26:18]OFDSenderStorePacket done [16:26:18]KKMCreateOFDPacket done [16:26:18]NVStorageSaveData kkm_last_timestamp [16:26:18]File name is /storage/kkm_last_timestamp [16:26:18]Write 4 bytes [16:26:18]NVStorageSaveData done [16:26:18]ExternCall_PrintAddStr [16:26:18]wPrintStart [16:26:18]Write to MH i2c: 01 00 00 21 13 34 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 21 13 00 00 00 00 00 FF 0F 49 [16:26:18]RasterBufferAndPrint [16:26:18]line Счет N : (1)31617 [16:26:18]line ИНН: 02508201610067 [16:26:18]line Контрольно-Кассовый Чек [16:26:18]line ПРОДАЖА [16:26:18]line ТРК (МРК, ГНК) : 11 [16:26:18]line Товар: 2710194210 [16:26:18]line ДТ-К-5 [16:26:18]line 13.130 * 76.20 [16:26:18]line = 1000.51 [16:26:18]line НДС 12% НСП 1% [16:26:18]line > о реализуемом товаре [16:26:18]line ОКРУГЛЕНИЕ: -0.51 [16:26:18]line ИТОГО: 1000.00 [16:26:18]line Внесено: 1000.00 [16:26:18]line СДАЧА: 0.00 [16:26:18]line НСП 1% : 8.85 [16:26:18]line НДС 12% : 106.25 [16:26:18]line Наличными: 1000.00 [16:26:18]line Безнал.: 0.00 [16:26:18]line Место: АЗС № 170 "Партнер Нефть" [16:26:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:26:18]line СНО: Общий режим [16:26:18]line Чек 335 27.10.2024 16:26 [16:26:18]line Смена: 542 ФФД: 1.0 [16:26:18]line ЗНМ: 0300000110 [16:26:18]line РНМ: 0000000000091776 [16:26:18]line Версия ККМ: 001 [16:26:18]line ФМ: 0000000000871754 [16:26:18]line ФД: 192303 [16:26:18]line ФПД: 136486597091770 [16:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192303&fm=136486597091770&tin=02508201610067®Number=0000000000091776&sum=100000 [16:26:18]OFD Sender: Processing packet 192303 [packets to send 75, broken 74] [16:26:18]ProducePacketName [16:26:18]name=ofd_packets/00192303 [16:26:18]OFD Sender: To server: pG, [16:26:18]CommunicateWithHost lk.salyk.kg:30040 [16:26:18]ConnectInit lk.salyk.kg [16:26:18]written 0, free lines is 4095 [16:26:18]Connected sock=9 [16:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA C3 04 01 CC 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4F 01 00 00 F4 03 04 00 A9 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EF 02 00 35 04 06 00 7C 22 43 22 E1 BA BD 0F 18 C8 E7 8F 61 07 [16:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 B9 47 00 04 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F EF 02 00 F4 03 04 00 70 0E 1E 67 B6 04 01 00 00 78 11 4F AB 33 72 5D B3 [16:26:19]CommunicateWithHost err = 0 [16:26:19]CheckOFDResponse [16:26:19]1017 (14) - 77093643461234 [16:26:19]1041 (16) - 0000000000871754 [16:26:19]1040 (4) - 192303 [16:26:19]1012 (4) - 27.10.2024 09:57 [16:26:19]1206 (1) - 0 [16:26:19]OFD Sender: Remove packet 192303 [16:26:19]ProducePacketName [16:26:19]name=ofd_packets/00192303 [16:26:19]NVStorageDeleteData [16:26:19]Write to MH i2c: 01 00 00 4C 13 5F [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: 01 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: 01 07 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: 01 07 00 4C 13 00 00 00 00 00 AF 0C 21 [16:26:19]RasterBufferAndPrint [16:26:19]line [16:26:19]line [16:26:19]line [16:26:19]line [16:26:19]line [16:26:19]written 0, free lines is 3254 [16:26:19]MH_Cut [16:26:19]Write to MH i2c: D1 01 00 53 13 01 38 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: D1 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: D1 01 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: D1 01 00 53 13 00 37 [16:26:19]Write to MH i2c: 01 00 00 54 13 67 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]OFD Sender: No OFD packet to send [16:26:20]*** Cut start [16:26:20]*** Partial cut [16:26:20]*** CUTSNS_PIN = 1 [16:26:20]*** CUTSNS_PIN = 0 [16:26:20]*** Brake cut motor [16:26:20]Read from MH i2c: 01 [16:26:20]MH_I2C_Read... [16:26:20]*** Stop cut motor [16:26:20]*** Cut end [16:26:20]Read from MH i2c: 01 07 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FF 0F 7C [16:26:20]process_action close_receipt done [16:26:20]requested_data is exist [16:26:20]produce_requested_data [16:26:20]requested_item fm.sn is exist - process it [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 11 00 00 [16:26:20]Write to MH i2c: E2 08 00 55 13 80 11 00 00 00 00 00 00 E2 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 17 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 17 00 55 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [16:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:20]wFMCommunicate OK [16:26:20]requested_item fd.num is exist - process it [16:26:20]SAM_PROTO_GetFieldsCounters [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 13 00 00 [16:26:20]Write to MH i2c: E2 08 00 56 13 80 13 00 00 00 00 00 00 E5 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 62 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 62 00 56 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:20]wFMCommunicate OK [16:26:20]SAM_PROTO_GetFieldsCounters done [16:26:20]requested_item shift.num is exist - process it [16:26:20]requested_item shift.opened is exist - process it [16:26:20]req_shift_opened [16:26:20]FM_GetShiftState [16:26:20]SAM_PROTO_GetShiftState [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 13 01 00 [16:26:20]Write to MH i2c: E2 08 00 57 13 80 13 01 00 00 00 00 00 E7 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:21]Read from MH i2c: E2 [16:26:21]MH_I2C_Read... [16:26:21]Read from MH i2c: E2 0E 00 [16:26:21]MH_I2C_Read... [16:26:21]Read from MH i2c: E2 0E 00 57 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 28 [16:26:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:26:21]wFMCommunicate OK [16:26:21]SAM_PROTO_GetShiftState done [16:26:21]FM_GetShiftState done [16:26:21]req_shift_opened done [16:26:21]requested_item shift.open_date is exist - process it [16:26:21]req_shift_open_date [16:26:21]req_shift_open_date done [16:26:21]produce_requested_data done [16:26:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192303,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:26:21]process_action_free close_receipt [16:26:21]json_value_free [16:26:21]json_value_free done [16:26:21]process_json_proto returns [16:26:21]Send response to host [16:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192303,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:26:21]free response buf [16:26:21]execute_script done [16:26:21]execute_script returns [16:26:21]free content buf [16:26:21]Sock 10.Close socket [16:26:21]Sock 10.Thread stoped [16:26:24]accept exits with 7 [16:26:24]New connection [16:26:24]New thread 3067080036 created [16:26:24]Thread 3066936676 joined [16:26:24]Waiting for new connection... [16:26:24] Sock 7.Parse request [16:26:24]Sock 7.Check first char [16:26:24]Sock 7.First char is OK [16:26:24]request: POST /json_proto HTTP/1.0 [16:26:24]Method: POST [16:26:24]URL: /json_proto [16:26:24]Method is POST - this is cgi request [16:26:24]url: /json_proto [16:26:24]query_string will be loaded in cgi processing [16:26:24]execute_cgi json_proto POST (null) [16:26:24]execute_cgi path=json_proto method=POST [16:26:24]POST find Content-Length [16:26:24]Host: 172.17.63.131:8080 [16:26:24]Content-Length: 681 [16:26:24]Content-Type: application/json [16:26:24] [16:26:24]POST finish read [16:26:24]Found Content-Length = 681 [16:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:24]execute_script... [16:26: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)31619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:24]POST & json_proto [16:26:24]process_json_proto [16:26:24]json parsed OK: [16:26:24]protocol is kg_v1.0 [16:26:24]action value=close_receipt [16:26:24]process_action close_receipt [16:26:24]cmd_close_receipt [16:26:24]MH_GetDate [16:26:24]Write to MH i2c: F0 00 00 58 13 5A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 58 13 00 B1 69 1E 67 22 05 6E 64 FB [16:26:24]GetLastDocTimeStamp 1730046377 [16:26:24]current date 1730046385 [16:26:24]FM_GetShiftState [16:26:24]SAM_PROTO_GetShiftState [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 13 01 00 [16:26:24]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:24]Read from MH i2c: E2 0E 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [16:26:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_GetShiftState done [16:26:24]FM_GetShiftState done [16:26:24]opened in 1729989159 [16:26:24]opened+sec_in_day 1730075559 [16:26:24]quantity*price = 100015 [16:26:24]sum+1 = 100017 [16:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 336 27.10.2024 16:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192304 ФПД: 39917161501588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162625&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192304&fm=39917161501588&tin=02508201610067®Number=0000000000091776&sum=100000 [16:26:25]StoreToDocumentArchive [16:26:25]shift 542 fd 192304 [16:26:25]save to /storage/0542/doc_00192304 [16:26:25]save last doc name /storage/0542/doc_00192304 to /storage/kkm_last_doc_name [16:26:25]save OK [16:26:25]Clear old archive folders... [16:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:25]tlvbuf is 002E76D0 [16:26:25]SAM_PROTO_ClearQueue [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 09 00 00 [16:26:25]Write to MH i2c: E2 08 00 66 13 80 09 00 00 00 00 00 00 EB [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]SAM_PROTO_ClearQueue done [16:26:25]KKMCreateOFDPacket [16:26:25]OFDProtocolAddRootSTLVToBuf [16:26:25]FM_MakeSignedData [16:26:25]FM_MakeSignedData [16:26:25]SAM_PROTO_SignData [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 01 02 [16:26:25]Write to MH i2c: E2 08 00 67 13 80 0D 01 02 00 00 00 00 F3 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]wFMCommunicate request_size=255 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 B1 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EF 02 00 35 04 06 00 24 [16:26:25]Write to MH i2c: E2 02 01 68 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 B1 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EF 02 00 35 04 06 00 24 00 00 D6 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]wFMCommunicate request_size=10 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 02 02 05 4D F0 3B 53 94 [16:26:26]Write to MH i2c: E2 0D 00 69 13 80 0D 02 02 05 00 4D F0 3B 53 94 00 00 5F [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 03 02 [16:26:26]Write to MH i2c: E2 08 00 6A 13 80 0D 03 02 00 00 00 00 F8 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0B 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0B 00 6A 13 00 61 A3 FF AD 70 80 8B B0 90 00 D4 [16:26:26]RAPDU: 61 A3 FF AD 70 80 8B B0 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_SignData done [16:26:26]FM_MakeSignedData done [16:26:26]CreateOFDProtocolMessage [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [16:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:26]wFMCommunicate OK [16:26:26]CreateOFDProtocolMessage done [16:26:26]OFDSenderStorePacket 192304 [16:26:26]StoreOFDPacket docnum=192304 [16:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 81 32 07 01 E4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 B1 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EF 02 00 35 04 06 00 24 4D F0 3B 53 94 61 A3 FF AD 70 80 8B B0 [16:26:26]CheckFolder [16:26:26]dirname=/storage/ofd_packets [16:26:26]CheckFolder done [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00192304 [16:26:26]NVStorageSaveData ofd_packets/00192304 [16:26:26]File name is /storage/ofd_packets/00192304 [16:26:26]Write 301 bytes [16:26:26]NVStorageSaveData done [16:26:26]OFDSenderStorePacket done [16:26:26]KKMCreateOFDPacket done [16:26:26]NVStorageSaveData kkm_last_timestamp [16:26:26]File name is /storage/kkm_last_timestamp [16:26:26]Write 4 bytes [16:26:26]NVStorageSaveData done [16:26:26]ExternCall_PrintAddStr [16:26:26]wPrintStart [16:26:26]Write to MH i2c: 01 00 00 6C 13 7F [16:26:26]OFD Sender: Processing packet 192304 [packets to send 75, broken 74] [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00192304 [16:26:26]OFD Sender: To server: pG, [16:26:26]CommunicateWithHost lk.salyk.kg:30040 [16:26:26]ConnectInit lk.salyk.kg [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [16:26:26]RasterBufferAndPrint [16:26:26]line Счет N : (1)31619 [16:26:26]line ИНН: 02508201610067 [16:26:26]line Контрольно-Кассовый Чек [16:26:26]line ПРОДАЖА [16:26:26]line ТРК (МРК, ГНК) : 12 [16:26:26]line Товар: 2710124130 [16:26:26]line Аи-92-К-5 [16:26:26]line 14.950 * 66.90 [16:26:26]line = 1000.16 [16:26:26]line НДС 12% НСП 1% [16:26:26]line > о реализуемом товаре [16:26:26]line ОКРУГЛЕНИЕ: -0.16 [16:26:26]line ИТОГО: 1000.00 [16:26:26]line Внесено: 1000.00 [16:26:26]line СДАЧА: 0.00 [16:26:26]line НСП 1% : 8.85 [16:26:26]line НДС 12% : 106.21 [16:26:26]line Наличными: 1000.00 [16:26:26]line Безнал.: 0.00 [16:26:26]line Место: АЗС № 170 "Партнер Нефть" [16:26:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:26:26]line СНО: Общий режим [16:26:26]line Чек 336 27.10.2024 16:26 [16:26:26]line Смена: 542 ФФД: 1.0 [16:26:26]line ЗНМ: 0300000110 [16:26:26]line РНМ: 0000000000091776 [16:26:26]line Версия ККМ: 001 [16:26:26]line ФМ: 0000000000871754 [16:26:26]line ФД: 192304 [16:26:26]line ФПД: 39917161501588 [16:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162625&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192304&fm=39917161501588&tin=02508201610067®Number=0000000000091776&sum=100000 [16:26:26]written 0, free lines is 4095 [16:26:26]Connected sock=10 [16:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 81 32 07 01 E4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 B1 69 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EF 02 00 35 04 06 00 24 4D F0 3B 53 94 61 A3 FF AD 70 80 8B B0 [16:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 57 47 00 40 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 EF 02 00 F4 03 04 00 78 0E 1E 67 B6 04 01 00 00 1A AA 64 D2 6A 98 26 49 [16:26:26]CommunicateWithHost err = 0 [16:26:26]CheckOFDResponse [16:26:26]1017 (14) - 77093643461234 [16:26:26]1041 (16) - 0000000000871754 [16:26:26]1040 (4) - 192304 [16:26:26]1012 (4) - 27.10.2024 09:57 [16:26:26]1206 (1) - 0 [16:26:26]OFD Sender: Remove packet 192304 [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00192304 [16:26:26]NVStorageDeleteData [16:26:26]Write to MH i2c: 01 00 00 97 13 AA [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 B7 0C 74 [16:26:26]RasterBufferAndPrint [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]written 0, free lines is 3264 [16:26:26]MH_Cut [16:26:26]Write to MH i2c: D1 01 00 9E 13 01 83 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 01 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 01 00 9E 13 00 82 [16:26:26]Write to MH i2c: 01 00 00 9F 13 B2 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:27]OFD Sender: No OFD packet to send [16:26:27]*** Cut start [16:26:27]*** Partial cut [16:26:27]*** CUTSNS_PIN = 1 [16:26:27]*** CUTSNS_PIN = 0 [16:26:28]*** Brake cut motor [16:26:28]Read from MH i2c: 01 [16:26:28]MH_I2C_Read... [16:26:28]*** Stop cut motor [16:26:28]*** Cut end [16:26:28]Read from MH i2c: 01 07 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [16:26:28]process_action close_receipt done [16:26:28]requested_data is exist [16:26:28]produce_requested_data [16:26:28]requested_item fm.sn is exist - process it [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 11 00 00 [16:26:28]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [16:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:28]wFMCommunicate OK [16:26:28]requested_item fd.num is exist - process it [16:26:28]SAM_PROTO_GetFieldsCounters [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 00 00 [16:26:28]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 A1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetFieldsCounters done [16:26:28]requested_item shift.num is exist - process it [16:26:28]requested_item shift.opened is exist - process it [16:26:28]req_shift_opened [16:26:28]FM_GetShiftState [16:26:28]SAM_PROTO_GetShiftState [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 01 00 [16:26:28]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 73 [16:26:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetShiftState done [16:26:28]FM_GetShiftState done [16:26:28]req_shift_opened done [16:26:28]requested_item shift.open_date is exist - process it [16:26:28]req_shift_open_date [16:26:28]req_shift_open_date done [16:26:28]produce_requested_data done [16:26:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192304,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:26:28]process_action_free close_receipt [16:26:28]json_value_free [16:26:28]json_value_free done [16:26:28]process_json_proto returns [16:26:28]Send response to host [16:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192304,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:26:28]free response buf [16:26:28]execute_script done [16:26:28]execute_script returns [16:26:28]free content buf [16:26:28]Sock 7.Close socket [16:26:28]Sock 7.Thread stoped [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:13]accept exits with 9 [16:28:13]New connection [16:28:13]New thread 3066936676 created [16:28:13]Thread 3067080036 joined [16:28:13]Waiting for new connection... [16:28:13] Sock 9.Parse request [16:28:13]Sock 9.Check first char [16:28:13]Sock 9.First char is OK [16:28:13]request: POST /json_proto HTTP/1.0 [16:28:13]Method: POST [16:28:13]URL: /json_proto [16:28:13]Method is POST - this is cgi request [16:28:13]url: /json_proto [16:28:13]query_string will be loaded in cgi processing [16:28:13]execute_cgi json_proto POST (null) [16:28:13]execute_cgi path=json_proto method=POST [16:28:13]POST find Content-Length [16:28:13]Host: 172.17.63.131:8080 [16:28:13]Content-Length: 676 [16:28:13]Content-Type: application/json [16:28:13] [16:28:13]POST finish read [16:28:13]Found Content-Length = 676 [16:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:13]execute_script... [16:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:13]POST & json_proto [16:28:13]process_json_proto [16:28:13]json parsed OK: [16:28:13]protocol is kg_v1.0 [16:28:13]action value=close_receipt [16:28:13]process_action close_receipt [16:28:13]cmd_close_receipt [16:28:13]MH_GetDate [16:28:13]Write to MH i2c: F0 00 00 A3 13 A5 [16:28:13]Write i2c OK [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 09 00 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: F0 09 00 A3 13 00 1D 6A 1E 67 22 05 6E 64 B3 [16:28:13]GetLastDocTimeStamp 1730046385 [16:28:13]current date 1730046493 [16:28:13]FM_GetShiftState [16:28:13]SAM_PROTO_GetShiftState [16:28:13]wFMCommunicate request_size=4 [16:28:13]MH_SAM_APDU [16:28:13]CAPDU: 80 13 01 00 [16:28:13]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [16:28:13]Write i2c OK [16:28:13]MH_I2C_Read... [16:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:13]Read from MH i2c: E2 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: E2 0E 00 [16:28:13]MH_I2C_Read... [16:28:13]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [16:28:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:28:13]wFMCommunicate OK [16:28:13]SAM_PROTO_GetShiftState done [16:28:13]FM_GetShiftState done [16:28:13]opened in 1729989159 [16:28:13]opened+sec_in_day 1730075559 [16:28:13]quantity*price = 50041 [16:28:13]sum+1 = 50042 [16:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 337 27.10.2024 16:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192305 ФПД: 17707875279042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162813&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192305&fm=17707875279042&tin=02508201610067®Number=0000000000091776&sum=50000 [16:28:14]StoreToDocumentArchive [16:28:14]shift 542 fd 192305 [16:28:14]save to /storage/0542/doc_00192305 [16:28:14]save last doc name /storage/0542/doc_00192305 to /storage/kkm_last_doc_name [16:28:14]save OK [16:28:14]Clear old archive folders... [16:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:14]tlvbuf is 00322700 [16:28:14]SAM_PROTO_ClearQueue [16:28:14]wFMCommunicate request_size=4 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 09 00 00 [16:28:14]Write to MH i2c: E2 08 00 B1 13 80 09 00 00 00 00 00 00 36 [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [16:28:14]RAPDU: 90 00 [16:28:14]wFMCommunicate OK [16:28:14]SAM_PROTO_ClearQueue done [16:28:14]KKMCreateOFDPacket [16:28:14]OFDProtocolAddRootSTLVToBuf [16:28:14]FM_MakeSignedData [16:28:14]FM_MakeSignedData [16:28:14]SAM_PROTO_SignData [16:28:14]wFMCommunicate request_size=4 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 0D 01 02 [16:28:14]Write to MH i2c: E2 08 00 B2 13 80 0D 01 02 00 00 00 00 3E [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [16:28:14]RAPDU: 90 00 [16:28:14]wFMCommunicate OK [16:28:14]wFMCommunicate request_size=255 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 1D 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EF 02 00 35 04 06 00 10 [16:28:14]Write to MH i2c: E2 02 01 B3 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 1D 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EF 02 00 35 04 06 00 10 00 00 82 [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [16:28:14]RAPDU: 90 00 [16:28:14]wFMCommunicate OK [16:28:14]wFMCommunicate request_size=10 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 0D 02 02 05 1A EF 9D A0 C2 [16:28:14]Write to MH i2c: E2 0D 00 B4 13 80 0D 02 02 05 00 1A EF 9D A0 C2 00 00 53 [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [16:28:14]RAPDU: 90 00 [16:28:14]wFMCommunicate OK [16:28:14]wFMCommunicate request_size=4 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 0D 03 02 [16:28:14]Write to MH i2c: E2 08 00 B5 13 80 0D 03 02 00 00 00 00 43 [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 0B 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 0B 00 B5 13 00 3E 3E 51 83 99 2C 71 A5 90 00 6F [16:28:14]RAPDU: 3E 3E 51 83 99 2C 71 A5 90 00 [16:28:14]wFMCommunicate OK [16:28:14]SAM_PROTO_SignData done [16:28:14]FM_MakeSignedData done [16:28:14]CreateOFDProtocolMessage [16:28:14]wFMCommunicate request_size=4 [16:28:14]MH_SAM_APDU [16:28:14]CAPDU: 80 11 00 00 [16:28:14]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:14]Read from MH i2c: E2 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 17 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [16:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:14]wFMCommunicate OK [16:28:14]CreateOFDProtocolMessage done [16:28:14]OFDSenderStorePacket 192305 [16:28:14]StoreOFDPacket docnum=192305 [16:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9A 13 07 01 C6 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 1D 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EF 02 00 35 04 06 00 10 1A EF 9D A0 C2 3E 3E 51 83 99 2C 71 A5 [16:28:14]CheckFolder [16:28:14]dirname=/storage/ofd_packets [16:28:14]CheckFolder done [16:28:14]ProducePacketName [16:28:14]name=ofd_packets/00192305 [16:28:14]NVStorageSaveData ofd_packets/00192305 [16:28:14]File name is /storage/ofd_packets/00192305 [16:28:14]Write 301 bytes [16:28:14]NVStorageSaveData done [16:28:14]OFDSenderStorePacket done [16:28:14]KKMCreateOFDPacket done [16:28:14]NVStorageSaveData kkm_last_timestamp [16:28:14]File name is /storage/kkm_last_timestamp [16:28:14]Write 4 bytes [16:28:14]NVStorageSaveData done [16:28:14]ExternCall_PrintAddStr [16:28:14]wPrintStart [16:28:14]Write to MH i2c: 01 00 00 B7 13 CA [16:28:14]Write i2c OK [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: 01 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: 01 07 00 [16:28:14]MH_I2C_Read... [16:28:14]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [16:28:14]RasterBufferAndPrint [16:28:14]line Счет N : (1)31620 [16:28:14]line ИНН: 02508201610067 [16:28:14]line Контрольно-Кассовый Чек [16:28:14]line ПРОДАЖА [16:28:14]line ТРК (МРК, ГНК) : 12 [16:28:14]line Товар: 2710124130 [16:28:14]line Аи-92-К-5 [16:28:14]line 7.480 * 66.90 [16:28:14]line = 500.41 [16:28:14]line НДС 12% НСП 1% [16:28:14]line > о реализуемом товаре [16:28:14]line ОКРУГЛЕНИЕ: -0.41 [16:28:14]line ИТОГО: 500.00 [16:28:14]line Внесено: 500.00 [16:28:14]line СДАЧА: 0.00 [16:28:14]line НСП 1% : 4.43 [16:28:14]line НДС 12% : 53.14 [16:28:14]line Наличными: 500.00 [16:28:14]line Безнал.: 0.00 [16:28:14]line Место: АЗС № 170 "Партнер Нефть" [16:28:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:28:14]line СНО: Общий режим [16:28:14]line Чек 337 27.10.2024 16:28 [16:28:14]line Смена: 542 ФФД: 1.0 [16:28:14]line ЗНМ: 0300000110 [16:28:14]line РНМ: 0000000000091776 [16:28:14]line Версия ККМ: 001 [16:28:14]line ФМ: 0000000000871754 [16:28:14]line ФД: 192305 [16:28:14]line ФПД: 17707875279042 [16:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162813&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192305&fm=17707875279042&tin=02508201610067®Number=0000000000091776&sum=50000 [16:28:15]OFD Sender: Processing packet 192305 [packets to send 75, broken 74] [16:28:15]ProducePacketName [16:28:15]name=ofd_packets/00192305 [16:28:15]OFD Sender: To server: pG, [16:28:15]CommunicateWithHost lk.salyk.kg:30040 [16:28:15]ConnectInit lk.salyk.kg [16:28:15]written 0, free lines is 4095 [16:28:15]Connected sock=7 [16: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 37 35 34 0F 01 00 00 9A 13 07 01 C6 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 1D 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EF 02 00 35 04 06 00 10 1A EF 9D A0 C2 3E 3E 51 83 99 2C 71 A5 [16: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 37 35 34 4F 00 00 00 47 6D 47 00 EA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 EF 02 00 F4 03 04 00 E4 0E 1E 67 B6 04 01 00 00 C7 A5 3C E2 2A 06 DA 7D [16:28:15]CommunicateWithHost err = 0 [16:28:15]CheckOFDResponse [16:28:15]1017 (14) - 77093643461234 [16:28:15]1041 (16) - 0000000000871754 [16:28:15]1040 (4) - 192305 [16:28:15]1012 (4) - 27.10.2024 09:59 [16:28:15]1206 (1) - 0 [16:28:15]OFD Sender: Remove packet 192305 [16:28:15]ProducePacketName [16:28:15]name=ofd_packets/00192305 [16:28:15]NVStorageDeleteData [16:28:15]Write to MH i2c: 01 00 00 E2 13 F5 [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 07 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 BA 0C C2 [16:28:15]RasterBufferAndPrint [16:28:15]line [16:28:15]line [16:28:15]line [16:28:15]line [16:28:15]line [16:28:15]written 0, free lines is 3265 [16:28:15]MH_Cut [16:28:15]Write to MH i2c: D1 01 00 E9 13 01 CE [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: D1 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: D1 01 00 [16:28:15]MH_I2C_Read... [16:28:15]Read from MH i2c: D1 01 00 E9 13 00 CD [16:28:15]Write to MH i2c: 01 00 00 EA 13 FD [16:28:15]Write i2c OK [16:28:15]MH_I2C_Read... [16:28:16]OFD Sender: No OFD packet to send [16:28:16]*** Cut start [16:28:16]*** Partial cut [16:28:16]*** CUTSNS_PIN = 1 [16:28:16]*** CUTSNS_PIN = 0 [16:28:16]*** Brake cut motor [16:28:17]Read from MH i2c: 01 [16:28:17]MH_I2C_Read... [16:28:17]*** Stop cut motor [16:28:17]*** Cut end [16:28:17]Read from MH i2c: 01 07 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [16:28:17]process_action close_receipt done [16:28:17]requested_data is exist [16:28:17]produce_requested_data [16:28:17]requested_item fm.sn is exist - process it [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 11 00 00 [16:28:17]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 17 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [16:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:17]wFMCommunicate OK [16:28:17]requested_item fd.num is exist - process it [16:28:17]SAM_PROTO_GetFieldsCounters [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 13 00 00 [16:28:17]Write to MH i2c: E2 08 00 EC 13 80 13 00 00 00 00 00 00 7B [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 62 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 62 00 EC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:17]wFMCommunicate OK [16:28:17]SAM_PROTO_GetFieldsCounters done [16:28:17]requested_item shift.num is exist - process it [16:28:17]requested_item shift.opened is exist - process it [16:28:17]req_shift_opened [16:28:17]FM_GetShiftState [16:28:17]SAM_PROTO_GetShiftState [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 13 01 00 [16:28:17]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 0E 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BE [16:28:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:28:17]wFMCommunicate OK [16:28:17]SAM_PROTO_GetShiftState done [16:28:17]FM_GetShiftState done [16:28:17]req_shift_opened done [16:28:17]requested_item shift.open_date is exist - process it [16:28:17]req_shift_open_date [16:28:17]req_shift_open_date done [16:28:17]produce_requested_data done [16:28:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192305,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:28:17]process_action_free close_receipt [16:28:17]json_value_free [16:28:17]json_value_free done [16:28:17]process_json_proto returns [16:28:17]Send response to host [16:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192305,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:28:17]free response buf [16:28:17]execute_script done [16:28:17]execute_script returns [16:28:17]free content buf [16:28:17]Sock 9.Close socket [16:28:17]Sock 9.Thread stoped [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:55]accept exits with 10 [16:28:55]New connection [16:28:55]New thread 3067080036 created [16:28:55]Thread 3066936676 joined [16:28:55]Waiting for new connection... [16:28:55] Sock 10.Parse request [16:28:55]Sock 10.Check first char [16:28:55]Sock 10.First char is OK [16:28:55]request: POST /json_proto HTTP/1.0 [16:28:55]Method: POST [16:28:55]URL: /json_proto [16:28:55]Method is POST - this is cgi request [16:28:55]url: /json_proto [16:28:55]query_string will be loaded in cgi processing [16:28:55]execute_cgi json_proto POST (null) [16:28:55]execute_cgi path=json_proto method=POST [16:28:55]POST find Content-Length [16:28:55]Host: 172.17.63.131:8080 [16:28:55]Content-Length: 678 [16:28:55]Content-Type: application/json [16:28:55] [16:28:55]POST finish read [16:28:55]Found Content-Length = 678 [16:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31621", "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" : 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" ] } } [16:28:55]execute_script... [16: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)31621", "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" : 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" ] } } [16:28:55]POST & json_proto [16:28:55]process_json_proto [16:28:55]json parsed OK: [16:28:55]protocol is kg_v1.0 [16:28:55]action value=close_receipt [16:28:55]process_action close_receipt [16:28:55]cmd_close_receipt [16:28:55]MH_GetDate [16:28:55]Write to MH i2c: F0 00 00 EE 13 F0 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: F0 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: F0 09 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: F0 09 00 EE 13 00 47 6A 1E 67 22 05 6E 64 28 [16:28:55]GetLastDocTimeStamp 1730046493 [16:28:55]current date 1730046535 [16:28:55]FM_GetShiftState [16:28:55]SAM_PROTO_GetShiftState [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 13 01 00 [16:28:55]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0E 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [16:28:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:28:55]wFMCommunicate OK [16:28:55]SAM_PROTO_GetShiftState done [16:28:55]FM_GetShiftState done [16:28:55]opened in 1729989159 [16:28:55]opened+sec_in_day 1730075559 [16:28:55]quantity*price = 100050 [16:28:55]sum+1 = 100052 [16:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 338 27.10.2024 16:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192306 ФПД: 201640566575765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192306&fm=201640566575765&tin=02508201610067®Number=0000000000091776&sum=100000 [16:28:56]StoreToDocumentArchive [16:28:56]shift 542 fd 192306 [16:28:56]save to /storage/0542/doc_00192306 [16:28:56]save last doc name /storage/0542/doc_00192306 to /storage/kkm_last_doc_name [16:28:56]save OK [16:28:56]Clear old archive folders... [16:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:28:56]tlvbuf is 003376A0 [16:28:56]SAM_PROTO_ClearQueue [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 09 00 00 [16:28:56]Write to MH i2c: E2 08 00 FC 13 80 09 00 00 00 00 00 00 81 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]SAM_PROTO_ClearQueue done [16:28:56]KKMCreateOFDPacket [16:28:56]OFDProtocolAddRootSTLVToBuf [16:28:56]FM_MakeSignedData [16:28:56]FM_MakeSignedData [16:28:56]SAM_PROTO_SignData [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 01 02 [16:28:56]Write to MH i2c: E2 08 00 FD 13 80 0D 01 02 00 00 00 00 89 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=255 [16:28:56]MH_SAM_APDU [16:28: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 52 01 00 00 F4 03 04 00 48 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EF 02 00 35 04 06 00 B7 64 1A 57 [16:28:56]Write to MH i2c: E2 02 01 FE 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 52 01 00 00 F4 03 04 00 48 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EF 02 00 35 04 06 00 B7 64 1A 57 00 00 6C [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=7 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 02 02 02 D2 95 [16:28:56]Write to MH i2c: E2 0A 00 FF 13 80 0D 02 02 02 00 D2 95 00 00 F7 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [16:28:56]RAPDU: 90 00 [16:28:56]wFMCommunicate OK [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 0D 03 02 [16:28:56]Write to MH i2c: E2 08 00 00 14 80 0D 03 02 00 00 00 00 8F [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 0B 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 0B 00 00 14 00 C9 2B FC A9 AE 96 7A 5F 90 00 46 [16:28:56]RAPDU: C9 2B FC A9 AE 96 7A 5F 90 00 [16:28:56]wFMCommunicate OK [16:28:56]SAM_PROTO_SignData done [16:28:56]FM_MakeSignedData done [16:28:56]CreateOFDProtocolMessage [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 11 00 00 [16:28:56]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [16:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:57]wFMCommunicate OK [16:28:57]CreateOFDProtocolMessage done [16:28:57]OFDSenderStorePacket 192306 [16:28:57]StoreOFDPacket docnum=192306 [16:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE 5E 04 01 D0 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 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 52 01 00 00 F4 03 04 00 48 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EF 02 00 35 04 06 00 B7 64 1A 57 D2 95 C9 2B FC A9 AE 96 7A 5F [16:28:57]CheckFolder [16:28:57]dirname=/storage/ofd_packets [16:28:57]CheckFolder done [16:28:57]ProducePacketName [16:28:57]name=ofd_packets/00192306 [16:28:57]NVStorageSaveData ofd_packets/00192306 [16:28:57]File name is /storage/ofd_packets/00192306 [16:28:57]Write 298 bytes [16:28:57]NVStorageSaveData done [16:28:57]OFDSenderStorePacket done [16:28:57]KKMCreateOFDPacket done [16:28:57]NVStorageSaveData kkm_last_timestamp [16:28:57]File name is /storage/kkm_last_timestamp [16:28:57]Write 4 bytes [16:28:57]NVStorageSaveData done [16:28:57]ExternCall_PrintAddStr [16:28:57]wPrintStart [16:28:57]Write to MH i2c: 01 00 00 02 14 16 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [16:28:57]RasterBufferAndPrint [16:28:57]line Счет N : (1)31621 [16:28:57]line ИНН: 02508201610067 [16:28:57]line Контрольно-Кассовый Чек [16:28:57]line ПРОДАЖА [16:28:57]line ТРК (МРК, ГНК) : 11 [16:28:57]line Товар: 2710194210 [16:28:57]line ДТ-К-5 [16:28:57]line 13.130 * 76.20 [16:28:57]line = 1000.51 [16:28:57]line НДС 12% НСП 1% [16:28:57]line > о реализуемом товаре [16:28:57]line ОКРУГЛЕНИЕ: -0.51 [16:28:57]line ИТОГО: 1000.00 [16:28:57]line Внесено: 1000.00 [16:28:57]line СДАЧА: 0.00 [16:28:57]line НСП 1% : 8.85 [16:28:57]line НДС 12% : 106.25 [16:28:57]line Наличными: 1000.00 [16:28:57]line Безнал.: 0.00 [16:28:57]line Место: АЗС № 170 "Партнер Нефть" [16:28:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:28:57]line СНО: Общий режим [16:28:57]line Чек 338 27.10.2024 16:28 [16:28:57]line Смена: 542 ФФД: 1.0 [16:28:57]line ЗНМ: 0300000110 [16:28:57]line РНМ: 0000000000091776 [16:28:57]line Версия ККМ: 001 [16:28:57]line ФМ: 0000000000871754 [16:28:57]line ФД: 192306 [16:28:57]line ФПД: 201640566575765 [16:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192306&fm=201640566575765&tin=02508201610067®Number=0000000000091776&sum=100000 [16:28:57]OFD Sender: Processing packet 192306 [packets to send 75, broken 74] [16:28:57]ProducePacketName [16:28:57]name=ofd_packets/00192306 [16:28:57]OFD Sender: To server: pG, [16:28:57]CommunicateWithHost lk.salyk.kg:30040 [16:28:57]ConnectInit lk.salyk.kg [16:28:57]written 0, free lines is 4095 [16:28:57]Connected sock=7 [16: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 37 35 34 0C 01 00 00 BE 5E 04 01 D0 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 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 52 01 00 00 F4 03 04 00 48 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EF 02 00 35 04 06 00 B7 64 1A 57 D2 95 C9 2B FC A9 AE 96 7A 5F [16:28:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 95 47 00 34 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 EF 02 00 F4 03 04 00 0F 0F 1E 67 B6 04 01 00 00 1D 5A 79 4F 9E C3 C4 91 [16:28:57]CommunicateWithHost err = 0 [16:28:57]CheckOFDResponse [16:28:57]1017 (14) - 77093643461234 [16:28:57]1041 (16) - 0000000000871754 [16:28:57]1040 (4) - 192306 [16:28:57]1012 (4) - 27.10.2024 09:59 [16:28:57]1206 (1) - 0 [16:28:57]OFD Sender: Remove packet 192306 [16:28:57]ProducePacketName [16:28:57]name=ofd_packets/00192306 [16:28:57]NVStorageDeleteData [16:28:57]Write to MH i2c: 01 00 00 2D 14 41 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 BC 0C 10 [16:28:57]RasterBufferAndPrint [16:28:57]line [16:28:57]line [16:28:57]line [16:28:57]line [16:28:57]line [16:28:57]written 0, free lines is 3267 [16:28:57]MH_Cut [16:28:57]Write to MH i2c: D1 01 00 34 14 01 1A [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: D1 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: D1 01 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: D1 01 00 34 14 00 19 [16:28:57]Write to MH i2c: 01 00 00 35 14 49 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:58]OFD Sender: No OFD packet to send [16:28:58]*** Cut start [16:28:58]*** Partial cut [16:28:58]*** CUTSNS_PIN = 1 [16:28:58]*** CUTSNS_PIN = 0 [16:28:58]*** Brake cut motor [16:28:59]Read from MH i2c: 01 [16:28:59]MH_I2C_Read... [16:28:59]*** Stop cut motor [16:28:59]Read from MH i2c: 01 07 00 [16:28:59]MH_I2C_Read... [16:28:59]*** Cut end [16:28:59]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 FF 0F 5E [16:28:59]process_action close_receipt done [16:28:59]requested_data is exist [16:28:59]produce_requested_data [16:28:59]requested_item fm.sn is exist - process it [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 11 00 00 [16:28:59]Write to MH i2c: E2 08 00 36 14 80 11 00 00 00 00 00 00 C4 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 17 00 36 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [16:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:59]wFMCommunicate OK [16:28:59]requested_item fd.num is exist - process it [16:28:59]SAM_PROTO_GetFieldsCounters [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 13 00 00 [16:28:59]Write to MH i2c: E2 08 00 37 14 80 13 00 00 00 00 00 00 C7 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 62 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 62 00 37 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:28:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:59]wFMCommunicate OK [16:28:59]SAM_PROTO_GetFieldsCounters done [16:28:59]requested_item shift.num is exist - process it [16:28:59]requested_item shift.opened is exist - process it [16:28:59]req_shift_opened [16:28:59]FM_GetShiftState [16:28:59]SAM_PROTO_GetShiftState [16:28:59]wFMCommunicate request_size=4 [16:28:59]MH_SAM_APDU [16:28:59]CAPDU: 80 13 01 00 [16:28:59]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:59]Read from MH i2c: E2 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 0E 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [16:28:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:28:59]wFMCommunicate OK [16:28:59]SAM_PROTO_GetShiftState done [16:28:59]FM_GetShiftState done [16:28:59]req_shift_opened done [16:28:59]requested_item shift.open_date is exist - process it [16:28:59]req_shift_open_date [16:28:59]req_shift_open_date done [16:28:59]produce_requested_data done [16:28:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192306,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:28:59]process_action_free close_receipt [16:28:59]json_value_free [16:28:59]json_value_free done [16:28:59]process_json_proto returns [16:28:59]Send response to host [16:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192306,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:28:59]free response buf [16:28:59]execute_script done [16:28:59]execute_script returns [16:28:59]free content buf [16:28:59]Sock 10.Close socket [16:28:59]Sock 10.Thread stoped [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:45]accept exits with 9 [16:30:45]New connection [16:30:45]New thread 3066936676 created [16:30:45]Thread 3067080036 joined [16:30:45]Waiting for new connection... [16:30:45] Sock 9.Parse request [16:30:45]Sock 9.Check first char [16:30:45]Sock 9.First char is OK [16:30:45]request: POST /json_proto HTTP/1.0 [16:30:45]Method: POST [16:30:45]URL: /json_proto [16:30:45]Method is POST - this is cgi request [16:30:45]url: /json_proto [16:30:45]query_string will be loaded in cgi processing [16:30:45]execute_cgi json_proto POST (null) [16:30:45]execute_cgi path=json_proto method=POST [16:30:45]POST find Content-Length [16:30:45]Host: 172.17.63.131:8080 [16:30:45]Content-Length: 677 [16:30:45]Content-Type: application/json [16:30:45] [16:30:45]POST finish read [16:30:45]Found Content-Length = 677 [16:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:45]execute_script... [16:30: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)31623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:45]POST & json_proto [16:30:45]process_json_proto [16:30:45]json parsed OK: [16:30:45]protocol is kg_v1.0 [16:30:45]action value=close_receipt [16:30:45]process_action close_receipt [16:30:45]cmd_close_receipt [16:30:45]MH_GetDate [16:30:45]Write to MH i2c: F0 00 00 39 14 3C [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: F0 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: F0 09 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: F0 09 00 39 14 00 B6 6A 1E 67 22 05 6E 64 E3 [16:30:45]GetLastDocTimeStamp 1730046536 [16:30:45]current date 1730046646 [16:30:45]FM_GetShiftState [16:30:45]SAM_PROTO_GetShiftState [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 13 01 00 [16:30:45]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:46]Read from MH i2c: E2 [16:30:46]MH_I2C_Read... [16:30:46]Read from MH i2c: E2 0E 00 [16:30:46]MH_I2C_Read... [16:30:46]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [16:30:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:30:46]wFMCommunicate OK [16:30:46]SAM_PROTO_GetShiftState done [16:30:46]FM_GetShiftState done [16:30:46]opened in 1729989159 [16:30:46]opened+sec_in_day 1730075559 [16:30:46]quantity*price = 70044 [16:30:46]sum+1 = 70045 [16:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 339 27.10.2024 16:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192307 ФПД: 113784189514293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192307&fm=113784189514293&tin=02508201610067®Number=0000000000091776&sum=70000 [16:30:47]StoreToDocumentArchive [16:30:47]shift 542 fd 192307 [16:30:47]save to /storage/0542/doc_00192307 [16:30:47]save last doc name /storage/0542/doc_00192307 to /storage/kkm_last_doc_name [16:30:47]save OK [16:30:47]Clear old archive folders... [16:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:47]tlvbuf is 0034FFF0 [16:30:47]SAM_PROTO_ClearQueue [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 09 00 00 [16:30:47]Write to MH i2c: E2 08 00 47 14 80 09 00 00 00 00 00 00 CD [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [16:30:47]RAPDU: 90 00 [16:30:47]wFMCommunicate OK [16:30:47]SAM_PROTO_ClearQueue done [16:30:47]KKMCreateOFDPacket [16:30:47]OFDProtocolAddRootSTLVToBuf [16:30:47]FM_MakeSignedData [16:30:47]FM_MakeSignedData [16:30:47]SAM_PROTO_SignData [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 0D 01 02 [16:30:47]Write to MH i2c: E2 08 00 48 14 80 0D 01 02 00 00 00 00 D5 [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [16:30:47]RAPDU: 90 00 [16:30:47]wFMCommunicate OK [16:30:47]wFMCommunicate request_size=255 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 B6 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EF 02 00 35 04 06 00 67 [16:30:47]Write to MH i2c: E2 02 01 49 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 B6 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EF 02 00 35 04 06 00 67 00 00 1D [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [16:30:47]RAPDU: 90 00 [16:30:47]wFMCommunicate OK [16:30:47]wFMCommunicate request_size=10 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 0D 02 02 05 7C 72 32 72 35 [16:30:47]Write to MH i2c: E2 0D 00 4A 14 80 0D 02 02 05 00 7C 72 32 72 35 00 00 A9 [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [16:30:47]RAPDU: 90 00 [16:30:47]wFMCommunicate OK [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 0D 03 02 [16:30:47]Write to MH i2c: E2 08 00 4B 14 80 0D 03 02 00 00 00 00 DA [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 0B 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 0B 00 4B 14 00 02 9F 46 4D 4D E3 73 1C 90 00 CE [16:30:47]RAPDU: 02 9F 46 4D 4D E3 73 1C 90 00 [16:30:47]wFMCommunicate OK [16:30:47]SAM_PROTO_SignData done [16:30:47]FM_MakeSignedData done [16:30:47]CreateOFDProtocolMessage [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 11 00 00 [16:30:47]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 17 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [16:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:30:47]wFMCommunicate OK [16:30:47]CreateOFDProtocolMessage done [16:30:47]OFDSenderStorePacket 192307 [16:30:47]StoreOFDPacket docnum=192307 [16:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F 18 07 01 E3 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 B6 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EF 02 00 35 04 06 00 67 7C 72 32 72 35 02 9F 46 4D 4D E3 73 1C [16:30:47]CheckFolder [16:30:47]dirname=/storage/ofd_packets [16:30:47]CheckFolder done [16:30:47]ProducePacketName [16:30:47]name=ofd_packets/00192307 [16:30:47]NVStorageSaveData ofd_packets/00192307 [16:30:47]File name is /storage/ofd_packets/00192307 [16:30:47]Write 301 bytes [16:30:47]NVStorageSaveData done [16:30:47]OFDSenderStorePacket done [16:30:47]KKMCreateOFDPacket done [16:30:47]NVStorageSaveData kkm_last_timestamp [16:30:47]File name is /storage/kkm_last_timestamp [16:30:47]Write 4 bytes [16:30:47]NVStorageSaveData done [16:30:47]ExternCall_PrintAddStr [16:30:47]wPrintStart [16:30:47]Write to MH i2c: 01 00 00 4D 14 61 [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: 01 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: 01 07 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: 01 07 00 4D 14 00 00 00 00 00 FF 0F 76 [16:30:47]RasterBufferAndPrint [16:30:47]line Счет N : (1)31623 [16:30:47]line ИНН: 02508201610067 [16:30:47]line Контрольно-Кассовый Чек [16:30:47]line ПРОДАЖА [16:30:47]line ТРК (МРК, ГНК) : 12 [16:30:47]line Товар: 2710124130 [16:30:47]line Аи-92-К-5 [16:30:47]line 10.470 * 66.90 [16:30:47]line = 700.44 [16:30:47]line НДС 12% НСП 1% [16:30:47]line > о реализуемом товаре [16:30:47]line ОКРУГЛЕНИЕ: -0.44 [16:30:47]line ИТОГО: 700.00 [16:30:47]line Внесено: 700.00 [16:30:47]line СДАЧА: 0.00 [16:30:47]line НСП 1% : 6.20 [16:30:47]line НДС 12% : 74.38 [16:30:47]line Наличными: 700.00 [16:30:47]line Безнал.: 0.00 [16:30:47]line Место: АЗС № 170 "Партнер Нефть" [16:30:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:30:47]line СНО: Общий режим [16:30:47]line Чек 339 27.10.2024 16:30 [16:30:47]line Смена: 542 ФФД: 1.0 [16:30:47]line ЗНМ: 0300000110 [16:30:47]line РНМ: 0000000000091776 [16:30:47]line Версия ККМ: 001 [16:30:47]line ФМ: 0000000000871754 [16:30:47]line ФД: 192307 [16:30:47]line ФПД: 113784189514293 [16:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192307&fm=113784189514293&tin=02508201610067®Number=0000000000091776&sum=70000 [16:30:48]OFD Sender: Processing packet 192307 [packets to send 75, broken 74] [16:30:48]ProducePacketName [16:30:48]name=ofd_packets/00192307 [16:30:48]OFD Sender: To server: pG, [16:30:48]CommunicateWithHost lk.salyk.kg:30040 [16:30:48]ConnectInit lk.salyk.kg [16:30:48]written 0, free lines is 4095 [16:30:48]Connected sock=10 [16:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F 18 07 01 E3 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 B6 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EF 02 00 35 04 06 00 67 7C 72 32 72 35 02 9F 46 4D 4D E3 73 1C [16:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 4C 47 00 CB D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 EF 02 00 F4 03 04 00 7D 0F 1E 67 B6 04 01 00 00 8A F2 A2 B8 34 6C E1 6E [16:30:48]CommunicateWithHost err = 0 [16:30:48]CheckOFDResponse [16:30:48]1017 (14) - 77093643461234 [16:30:48]1041 (16) - 0000000000871754 [16:30:48]1040 (4) - 192307 [16:30:48]1012 (4) - 27.10.2024 10:01 [16:30:48]1206 (1) - 0 [16:30:48]OFD Sender: Remove packet 192307 [16:30:48]ProducePacketName [16:30:48]name=ofd_packets/00192307 [16:30:48]NVStorageDeleteData [16:30:48]Write to MH i2c: 01 00 00 78 14 8C [16:30:48]Write i2c OK [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: 01 [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: 01 07 00 [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 AA 0C 49 [16:30:48]RasterBufferAndPrint [16:30:48]line [16:30:48]line [16:30:48]line [16:30:48]line [16:30:48]line [16:30:48]written 0, free lines is 3248 [16:30:48]MH_Cut [16:30:48]Write to MH i2c: D1 01 00 7F 14 01 65 [16:30:48]Write i2c OK [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: D1 [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: D1 01 00 [16:30:48]MH_I2C_Read... [16:30:48]Read from MH i2c: D1 01 00 7F 14 00 64 [16:30:48]Write to MH i2c: 01 00 00 80 14 94 [16:30:48]Write i2c OK [16:30:48]MH_I2C_Read... [16:30:48]OFD Sender: No OFD packet to send [16:30:49]*** Cut start [16:30:49]*** Partial cut [16:30:49]*** CUTSNS_PIN = 1 [16:30:49]*** CUTSNS_PIN = 0 [16:30:49]*** Brake cut motor [16:30:49]Read from MH i2c: 01 [16:30:49]MH_I2C_Read... [16:30:49]*** Stop cut motor [16:30:49]*** Cut end [16:30:49]Read from MH i2c: 01 07 00 [16:30:49]MH_I2C_Read... [16:30:49]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [16:30:49]process_action close_receipt done [16:30:49]requested_data is exist [16:30:49]produce_requested_data [16:30:49]requested_item fm.sn is exist - process it [16:30:49]wFMCommunicate request_size=4 [16:30:49]MH_SAM_APDU [16:30:49]CAPDU: 80 11 00 00 [16:30:49]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [16:30:49]Write i2c OK [16:30:49]MH_I2C_Read... [16:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:50]Read from MH i2c: E2 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 17 00 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [16:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:30:50]wFMCommunicate OK [16:30:50]requested_item fd.num is exist - process it [16:30:50]SAM_PROTO_GetFieldsCounters [16:30:50]wFMCommunicate request_size=4 [16:30:50]MH_SAM_APDU [16:30:50]CAPDU: 80 13 00 00 [16:30:50]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [16:30:50]Write i2c OK [16:30:50]MH_I2C_Read... [16:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:50]Read from MH i2c: E2 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 62 00 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 62 00 82 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [16:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:50]wFMCommunicate OK [16:30:50]SAM_PROTO_GetFieldsCounters done [16:30:50]requested_item shift.num is exist - process it [16:30:50]requested_item shift.opened is exist - process it [16:30:50]req_shift_opened [16:30:50]FM_GetShiftState [16:30:50]SAM_PROTO_GetShiftState [16:30:50]wFMCommunicate request_size=4 [16:30:50]MH_SAM_APDU [16:30:50]CAPDU: 80 13 01 00 [16:30:50]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [16:30:50]Write i2c OK [16:30:50]MH_I2C_Read... [16:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:50]Read from MH i2c: E2 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 0E 00 [16:30:50]MH_I2C_Read... [16:30:50]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [16:30:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:30:50]wFMCommunicate OK [16:30:50]SAM_PROTO_GetShiftState done [16:30:50]FM_GetShiftState done [16:30:50]req_shift_opened done [16:30:50]requested_item shift.open_date is exist - process it [16:30:50]req_shift_open_date [16:30:50]req_shift_open_date done [16:30:50]produce_requested_data done [16:30:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192307,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:30:50]process_action_free close_receipt [16:30:50]json_value_free [16:30:50]json_value_free done [16:30:50]process_json_proto returns [16:30:50]Send response to host [16:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192307,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:30:50]free response buf [16:30:50]execute_script done [16:30:50]execute_script returns [16:30:50]free content buf [16:30:50]Sock 9.Close socket [16:30:50]Sock 9.Thread stoped [16:30:53]OFD Sender: No OFD packet to send [16:30:56]accept exits with 7 [16:30:56]New connection [16:30:56]New thread 3067080036 created [16:30:56]Thread 3066936676 joined [16:30:56]Waiting for new connection... [16:30:56] Sock 7.Parse request [16:30:56]Sock 7.Check first char [16:30:56]Sock 7.First char is OK [16:30:56]request: POST /json_proto HTTP/1.0 [16:30:56]Method: POST [16:30:56]URL: /json_proto [16:30:56]Method is POST - this is cgi request [16:30:56]url: /json_proto [16:30:56]query_string will be loaded in cgi processing [16:30:56]execute_cgi json_proto POST (null) [16:30:56]execute_cgi path=json_proto method=POST [16:30:56]POST find Content-Length [16:30:56]Host: 172.17.63.131:8080 [16:30:56]Content-Length: 678 [16:30:56]Content-Type: application/json [16:30:56] [16:30:56]POST finish read [16:30:56]Found Content-Length = 678 [16:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31622", "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" : 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" ] } } [16:30:56]execute_script... [16:30:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31622", "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" : 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" ] } } [16:30:56]POST & json_proto [16:30:56]process_json_proto [16:30:56]json parsed OK: [16:30:56]protocol is kg_v1.0 [16:30:56]action value=close_receipt [16:30:56]process_action close_receipt [16:30:56]cmd_close_receipt [16:30:56]MH_GetDate [16:30:56]Write to MH i2c: F0 00 00 84 14 87 [16:30:56]Write i2c OK [16:30:56]MH_I2C_Read... [16:30:56]Read from MH i2c: F0 [16:30:56]MH_I2C_Read... [16:30:56]Read from MH i2c: F0 09 00 [16:30:56]MH_I2C_Read... [16:30:56]Read from MH i2c: F0 09 00 84 14 00 C1 6A 1E 67 22 05 6E 64 39 [16:30:56]GetLastDocTimeStamp 1730046646 [16:30:56]current date 1730046657 [16:30:56]FM_GetShiftState [16:30:56]SAM_PROTO_GetShiftState [16:30:56]wFMCommunicate request_size=4 [16:30:56]MH_SAM_APDU [16:30:56]CAPDU: 80 13 01 00 [16:30:56]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [16:30:56]Write i2c OK [16:30:56]MH_I2C_Read... [16:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:56]Read from MH i2c: E2 [16:30:56]MH_I2C_Read... [16:30:56]Read from MH i2c: E2 0E 00 [16:30:56]MH_I2C_Read... [16:30:56]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [16:30:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:30:56]wFMCommunicate OK [16:30:56]SAM_PROTO_GetShiftState done [16:30:56]FM_GetShiftState done [16:30:56]opened in 1729989159 [16:30:56]opened+sec_in_day 1730075559 [16:30:56]quantity*price = 100050 [16:30:56]sum+1 = 100052 [16:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 340 27.10.2024 16:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192308 ФПД: 184420864674646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192308&fm=184420864674646&tin=02508201610067®Number=0000000000091776&sum=100000 [16:30:58]StoreToDocumentArchive [16:30:58]shift 542 fd 192308 [16:30:58]save to /storage/0542/doc_00192308 [16:30:58]save last doc name /storage/0542/doc_00192308 to /storage/kkm_last_doc_name [16:30:58]save OK [16:30:58]Clear old archive folders... [16:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:30:58]tlvbuf is B6EC7380 [16:30:58]SAM_PROTO_ClearQueue [16:30:58]wFMCommunicate request_size=4 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 09 00 00 [16:30:58]Write to MH i2c: E2 08 00 92 14 80 09 00 00 00 00 00 00 18 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [16:30:58]RAPDU: 90 00 [16:30:58]wFMCommunicate OK [16:30:58]SAM_PROTO_ClearQueue done [16:30:58]KKMCreateOFDPacket [16:30:58]OFDProtocolAddRootSTLVToBuf [16:30:58]FM_MakeSignedData [16:30:58]FM_MakeSignedData [16:30:58]SAM_PROTO_SignData [16:30:58]wFMCommunicate request_size=4 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 0D 01 02 [16:30:58]Write to MH i2c: E2 08 00 93 14 80 0D 01 02 00 00 00 00 20 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [16:30:58]RAPDU: 90 00 [16:30:58]wFMCommunicate OK [16:30:58]wFMCommunicate request_size=255 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 C1 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EF 02 00 35 04 06 00 A7 BA D4 20 [16:30:58]Write to MH i2c: E2 02 01 94 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 C1 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EF 02 00 35 04 06 00 A7 BA D4 20 00 00 49 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [16:30:58]RAPDU: 90 00 [16:30:58]wFMCommunicate OK [16:30:58]wFMCommunicate request_size=7 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 0D 02 02 02 CB 56 [16:30:58]Write to MH i2c: E2 0A 00 95 14 80 0D 02 02 02 00 CB 56 00 00 48 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [16:30:58]RAPDU: 90 00 [16:30:58]wFMCommunicate OK [16:30:58]wFMCommunicate request_size=4 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 0D 03 02 [16:30:58]Write to MH i2c: E2 08 00 96 14 80 0D 03 02 00 00 00 00 25 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 0B 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 0B 00 96 14 00 1E A2 BA 14 4B 1F AF B8 90 00 85 [16:30:58]RAPDU: 1E A2 BA 14 4B 1F AF B8 90 00 [16:30:58]wFMCommunicate OK [16:30:58]SAM_PROTO_SignData done [16:30:58]FM_MakeSignedData done [16:30:58]CreateOFDProtocolMessage [16:30:58]wFMCommunicate request_size=4 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 11 00 00 [16:30:58]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 17 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [16:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:30:58]wFMCommunicate OK [16:30:58]CreateOFDProtocolMessage done [16:30:58]OFDSenderStorePacket 192308 [16:30:58]StoreOFDPacket docnum=192308 [16:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 29 F5 04 01 50 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 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 54 01 00 00 F4 03 04 00 C1 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EF 02 00 35 04 06 00 A7 BA D4 20 CB 56 1E A2 BA 14 4B 1F AF B8 [16:30:58]CheckFolder [16:30:58]dirname=/storage/ofd_packets [16:30:58]CheckFolder done [16:30:58]ProducePacketName [16:30:58]name=ofd_packets/00192308 [16:30:58]NVStorageSaveData ofd_packets/00192308 [16:30:58]File name is /storage/ofd_packets/00192308 [16:30:58]Write 298 bytes [16:30:58]NVStorageSaveData done [16:30:58]OFDSenderStorePacket done [16:30:58]KKMCreateOFDPacket done [16:30:58]NVStorageSaveData kkm_last_timestamp [16:30:58]File name is /storage/kkm_last_timestamp [16:30:58]Write 4 bytes [16:30:58]NVStorageSaveData done [16:30:58]ExternCall_PrintAddStr [16:30:58]wPrintStart [16:30:58]Write to MH i2c: 01 00 00 98 14 AC [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: 01 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: 01 07 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [16:30:58]RasterBufferAndPrint [16:30:58]line Счет N : (1)31622 [16:30:58]line ИНН: 02508201610067 [16:30:58]line Контрольно-Кассовый Чек [16:30:58]line ПРОДАЖА [16:30:58]line ТРК (МРК, ГНК) : 11 [16:30:58]line Товар: 2710194210 [16:30:58]line ДТ-К-5 [16:30:58]line 13.130 * 76.20 [16:30:58]line = 1000.51 [16:30:58]line НДС 12% НСП 1% [16:30:58]line > о реализуемом товаре [16:30:58]line ОКРУГЛЕНИЕ: -0.51 [16:30:58]line ИТОГО: 1000.00 [16:30:58]line Внесено: 1000.00 [16:30:58]line СДАЧА: 0.00 [16:30:58]line НСП 1% : 8.85 [16:30:58]line НДС 12% : 106.25 [16:30:58]line Наличными: 1000.00 [16:30:58]line Безнал.: 0.00 [16:30:58]line Место: АЗС № 170 "Партнер Нефть" [16:30:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:30:58]line СНО: Общий режим [16:30:58]line Чек 340 27.10.2024 16:30 [16:30:58]line Смена: 542 ФФД: 1.0 [16:30:58]line ЗНМ: 0300000110 [16:30:58]line РНМ: 0000000000091776 [16:30:58]line Версия ККМ: 001 [16:30:58]line ФМ: 0000000000871754 [16:30:58]line ФД: 192308 [16:30:58]line ФПД: 184420864674646 [16:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192308&fm=184420864674646&tin=02508201610067®Number=0000000000091776&sum=100000 [16:30:58]OFD Sender: Processing packet 192308 [packets to send 75, broken 74] [16:30:58]ProducePacketName [16:30:58]name=ofd_packets/00192308 [16:30:58]OFD Sender: To server: pG, [16:30:58]CommunicateWithHost lk.salyk.kg:30040 [16:30:58]ConnectInit lk.salyk.kg [16:30:58]written 0, free lines is 4095 [16:30:59]Connected sock=10 [16:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 29 F5 04 01 50 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 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 54 01 00 00 F4 03 04 00 C1 6A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EF 02 00 35 04 06 00 A7 BA D4 20 CB 56 1E A2 BA 14 4B 1F AF B8 [16:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DB 5B 47 00 67 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 EF 02 00 F4 03 04 00 88 0F 1E 67 B6 04 01 00 00 CC 0D FB 9D 0B F1 31 5E [16:30:59]CommunicateWithHost err = 0 [16:30:59]CheckOFDResponse [16:30:59]1017 (14) - 77093643461234 [16:30:59]1041 (16) - 0000000000871754 [16:30:59]1040 (4) - 192308 [16:30:59]1012 (4) - 27.10.2024 10:01 [16:30:59]1206 (1) - 0 [16:30:59]OFD Sender: Remove packet 192308 [16:30:59]ProducePacketName [16:30:59]name=ofd_packets/00192308 [16:30:59]NVStorageDeleteData [16:30:59]Write to MH i2c: 01 00 00 C3 14 D7 [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: 01 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: 01 07 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: 01 07 00 C3 14 00 00 00 00 00 B9 0C A3 [16:30:59]RasterBufferAndPrint [16:30:59]line [16:30:59]line [16:30:59]line [16:30:59]line [16:30:59]line [16:30:59]written 0, free lines is 3265 [16:30:59]MH_Cut [16:30:59]Write to MH i2c: D1 01 00 CA 14 01 B0 [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: D1 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: D1 01 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: D1 01 00 CA 14 00 AF [16:30:59]Write to MH i2c: 01 00 00 CB 14 DF [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]OFD Sender: No OFD packet to send [16:31:00]*** Cut start [16:31:00]*** Partial cut [16:31:00]*** CUTSNS_PIN = 1 [16:31:00]*** CUTSNS_PIN = 0 [16:31:00]*** Brake cut motor [16:31:00]Read from MH i2c: 01 [16:31:00]MH_I2C_Read... [16:31:00]*** Stop cut motor [16:31:00]*** Cut end [16:31:00]Read from MH i2c: 01 07 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 07 00 CB 14 00 00 00 00 00 FF 0F F4 [16:31:00]process_action close_receipt done [16:31:00]requested_data is exist [16:31:00]produce_requested_data [16:31:00]requested_item fm.sn is exist - process it [16:31:00]wFMCommunicate request_size=4 [16:31:00]MH_SAM_APDU [16:31:00]CAPDU: 80 11 00 00 [16:31:00]Write to MH i2c: E2 08 00 CC 14 80 11 00 00 00 00 00 00 5A [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:00]Read from MH i2c: E2 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 17 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 17 00 CC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [16:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:31:00]wFMCommunicate OK [16:31:00]requested_item fd.num is exist - process it [16:31:00]SAM_PROTO_GetFieldsCounters [16:31:00]wFMCommunicate request_size=4 [16:31:00]MH_SAM_APDU [16:31:00]CAPDU: 80 13 00 00 [16:31:00]Write to MH i2c: E2 08 00 CD 14 80 13 00 00 00 00 00 00 5D [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 62 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 62 00 CD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [16:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:01]wFMCommunicate OK [16:31:01]SAM_PROTO_GetFieldsCounters done [16:31:01]requested_item shift.num is exist - process it [16:31:01]requested_item shift.opened is exist - process it [16:31:01]req_shift_opened [16:31:01]FM_GetShiftState [16:31:01]SAM_PROTO_GetShiftState [16:31:01]wFMCommunicate request_size=4 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 13 01 00 [16:31:01]Write to MH i2c: E2 08 00 CE 14 80 13 01 00 00 00 00 00 5F [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 0E 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 0E 00 CE 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A0 [16:31:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:31:01]wFMCommunicate OK [16:31:01]SAM_PROTO_GetShiftState done [16:31:01]FM_GetShiftState done [16:31:01]req_shift_opened done [16:31:01]requested_item shift.open_date is exist - process it [16:31:01]req_shift_open_date [16:31:01]req_shift_open_date done [16:31:01]produce_requested_data done [16:31:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192308,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:31:01]process_action_free close_receipt [16:31:01]json_value_free [16:31:01]json_value_free done [16:31:01]process_json_proto returns [16:31:01]Send response to host [16:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192308,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:31:01]free response buf [16:31:01]execute_script done [16:31:01]execute_script returns [16:31:01]free content buf [16:31:01]Sock 7.Close socket [16:31:01]Sock 7.Thread stoped [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31: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]accept exits with 9 [16:34:19]New connection [16:34:19]New thread 3066936676 created [16:34:19]Thread 3067080036 joined [16:34:19]Waiting for new connection... [16:34:19] Sock 9.Parse request [16:34:19]Sock 9.Check first char [16:34:19]Sock 9.First char is OK [16:34:19]request: POST /json_proto HTTP/1.0 [16:34:19]Method: POST [16:34:19]URL: /json_proto [16:34:19]Method is POST - this is cgi request [16:34:19]url: /json_proto [16:34:19]query_string will be loaded in cgi processing [16:34:19]execute_cgi json_proto POST (null) [16:34:19]execute_cgi path=json_proto method=POST [16:34:19]POST find Content-Length [16:34:19]Host: 172.17.63.131:8080 [16:34:19]Content-Length: 678 [16:34:19]Content-Type: application/json [16:34:19] [16:34:19]POST finish read [16:34:19]Found Content-Length = 678 [16:34:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31624", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:19]execute_script... [16:34: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)31624", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:19]POST & json_proto [16:34:19]process_json_proto [16:34:19]json parsed OK: [16:34:19]protocol is kg_v1.0 [16:34:19]action value=close_receipt [16:34:19]process_action close_receipt [16:34:19]cmd_close_receipt [16:34:19]MH_GetDate [16:34:19]Write to MH i2c: F0 00 00 CF 14 D2 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: F0 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: F0 09 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: F0 09 00 CF 14 00 8B 6B 1E 67 22 05 6E 64 4F [16:34:19]GetLastDocTimeStamp 1730046657 [16:34:19]current date 1730046859 [16:34:19]FM_GetShiftState [16:34:19]SAM_PROTO_GetShiftState [16:34:19]wFMCommunicate request_size=4 [16:34:19]MH_SAM_APDU [16:34:19]CAPDU: 80 13 01 00 [16:34:19]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:19]Read from MH i2c: E2 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 0E 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [16:34:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:34:19]wFMCommunicate OK [16:34:19]SAM_PROTO_GetShiftState done [16:34:19]FM_GetShiftState done [16:34:19]opened in 1729989159 [16:34:19]opened+sec_in_day 1730075559 [16:34:19]quantity*price = 200025 [16:34:19]sum+1 = 200026 [16:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 341 27.10.2024 16:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192309 ФПД: 255359532705006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192309&fm=255359532705006&tin=02508201610067®Number=0000000000091776&sum=200000 [16:34:20]StoreToDocumentArchive [16:34:20]shift 542 fd 192309 [16:34:20]save to /storage/0542/doc_00192309 [16:34:20]save last doc name /storage/0542/doc_00192309 to /storage/kkm_last_doc_name [16:34:20]save OK [16:34:20]Clear old archive folders... [16:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:34:20]tlvbuf is 003231A0 [16:34:20]SAM_PROTO_ClearQueue [16:34:20]wFMCommunicate request_size=4 [16:34:20]MH_SAM_APDU [16:34:20]CAPDU: 80 09 00 00 [16:34:20]Write to MH i2c: E2 08 00 DD 14 80 09 00 00 00 00 00 00 63 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [16:34:20]RAPDU: 90 00 [16:34:20]wFMCommunicate OK [16:34:20]SAM_PROTO_ClearQueue done [16:34:20]KKMCreateOFDPacket [16:34:20]OFDProtocolAddRootSTLVToBuf [16:34:20]FM_MakeSignedData [16:34:20]FM_MakeSignedData [16:34:20]SAM_PROTO_SignData [16:34:20]wFMCommunicate request_size=4 [16:34:20]MH_SAM_APDU [16:34:20]CAPDU: 80 0D 01 02 [16:34:20]Write to MH i2c: E2 08 00 DE 14 80 0D 01 02 00 00 00 00 6B [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [16:34:20]RAPDU: 90 00 [16:34:20]wFMCommunicate OK [16:34:20]wFMCommunicate request_size=255 [16:34:20]MH_SAM_APDU [16:34: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8B 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EF 02 00 35 04 06 00 E8 3F 86 3C [16:34:20]Write to MH i2c: E2 02 01 DF 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8B 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EF 02 00 35 04 06 00 E8 3F 86 3C 00 00 E3 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [16:34:20]RAPDU: 90 00 [16:34:20]wFMCommunicate OK [16:34:20]wFMCommunicate request_size=7 [16:34:20]MH_SAM_APDU [16:34:20]CAPDU: 80 0D 02 02 02 A4 EE [16:34:20]Write to MH i2c: E2 0A 00 E0 14 80 0D 02 02 02 00 A4 EE 00 00 04 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [16:34:20]RAPDU: 90 00 [16:34:20]wFMCommunicate OK [16:34:20]wFMCommunicate request_size=4 [16:34:20]MH_SAM_APDU [16:34:20]CAPDU: 80 0D 03 02 [16:34:20]Write to MH i2c: E2 08 00 E1 14 80 0D 03 02 00 00 00 00 70 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 0B 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 0B 00 E1 14 00 C2 DC B6 4C 4D 60 0E 8C 90 00 58 [16:34:20]RAPDU: C2 DC B6 4C 4D 60 0E 8C 90 00 [16:34:20]wFMCommunicate OK [16:34:20]SAM_PROTO_SignData done [16:34:20]FM_MakeSignedData done [16:34:20]CreateOFDProtocolMessage [16:34:20]wFMCommunicate request_size=4 [16:34:20]MH_SAM_APDU [16:34:20]CAPDU: 80 11 00 00 [16:34:20]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:20]Read from MH i2c: E2 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 17 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [16:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:34:20]wFMCommunicate OK [16:34:20]CreateOFDProtocolMessage done [16:34:20]OFDSenderStorePacket 192309 [16:34:20]StoreOFDPacket docnum=192309 [16:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C3 02 04 01 AB 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8B 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EF 02 00 35 04 06 00 E8 3F 86 3C A4 EE C2 DC B6 4C 4D 60 0E 8C [16:34:20]CheckFolder [16:34:20]dirname=/storage/ofd_packets [16:34:20]CheckFolder done [16:34:20]ProducePacketName [16:34:20]name=ofd_packets/00192309 [16:34:20]NVStorageSaveData ofd_packets/00192309 [16:34:20]File name is /storage/ofd_packets/00192309 [16:34:20]Write 298 bytes [16:34:20]NVStorageSaveData done [16:34:20]OFDSenderStorePacket done [16:34:20]KKMCreateOFDPacket done [16:34:20]NVStorageSaveData kkm_last_timestamp [16:34:20]File name is /storage/kkm_last_timestamp [16:34:20]Write 4 bytes [16:34:20]NVStorageSaveData done [16:34:20]ExternCall_PrintAddStr [16:34:20]wPrintStart [16:34:20]Write to MH i2c: 01 00 00 E3 14 F7 [16:34:20]Write i2c OK [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 07 00 [16:34:20]MH_I2C_Read... [16:34:20]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 FF 0F 0C [16:34:20]RasterBufferAndPrint [16:34:20]line Счет N : (1)31624 [16:34:20]line ИНН: 02508201610067 [16:34:20]line Контрольно-Кассовый Чек [16:34:20]line ПРОДАЖА [16:34:20]line ТРК (МРК, ГНК) : 11 [16:34:20]line Товар: 2710194210 [16:34:20]line ДТ-К-5 [16:34:20]line 26.250 * 76.20 [16:34:20]line = 2000.25 [16:34:20]line НДС 12% НСП 1% [16:34:20]line > о реализуемом товаре [16:34:20]line ОКРУГЛЕНИЕ: -0.25 [16:34:20]line ИТОГО: 2000.00 [16:34:20]line Внесено: 2000.00 [16:34:20]line СДАЧА: 0.00 [16:34:20]line НСП 1% : 17.70 [16:34:20]line НДС 12% : 212.42 [16:34:20]line Наличными: 2000.00 [16:34:20]line Безнал.: 0.00 [16:34:20]line Место: АЗС № 170 "Партнер Нефть" [16:34:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:34:20]line СНО: Общий режим [16:34:20]line Чек 341 27.10.2024 16:34 [16:34:20]line Смена: 542 ФФД: 1.0 [16:34:20]line ЗНМ: 0300000110 [16:34:20]line РНМ: 0000000000091776 [16:34:20]line Версия ККМ: 001 [16:34:20]line ФМ: 0000000000871754 [16:34:20]line ФД: 192309 [16:34:20]line ФПД: 255359532705006 [16:34:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192309&fm=255359532705006&tin=02508201610067®Number=0000000000091776&sum=200000 [16:34:21]OFD Sender: Processing packet 192309 [packets to send 75, broken 74] [16:34:21]ProducePacketName [16:34:21]name=ofd_packets/00192309 [16:34:21]OFD Sender: To server: pG, [16:34:21]CommunicateWithHost lk.salyk.kg:30040 [16:34:21]ConnectInit lk.salyk.kg [16:34:21]written 0, free lines is 4095 [16:34:21]Connected sock=7 [16:34:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C3 02 04 01 AB 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 8B 6B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EF 02 00 35 04 06 00 E8 3F 86 3C A4 EE C2 DC B6 4C 4D 60 0E 8C [16:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 42 47 00 28 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 EF 02 00 F4 03 04 00 52 10 1E 67 B6 04 01 00 00 9F FF 5A 8B 7E CE B3 28 [16:34:21]CommunicateWithHost err = 0 [16:34:21]CheckOFDResponse [16:34:21]1017 (14) - 77093643461234 [16:34:21]1041 (16) - 0000000000871754 [16:34:21]1040 (4) - 192309 [16:34:21]1012 (4) - 27.10.2024 10:05 [16:34:21]1206 (1) - 0 [16:34:21]OFD Sender: Remove packet 192309 [16:34:21]ProducePacketName [16:34:21]name=ofd_packets/00192309 [16:34:21]NVStorageDeleteData [16:34:21]Write to MH i2c: 01 00 00 0E 15 23 [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: 01 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: 01 07 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: 01 07 00 0E 15 00 00 00 00 00 B9 0C EF [16:34:21]RasterBufferAndPrint [16:34:21]line [16:34:21]line [16:34:21]line [16:34:21]line [16:34:21]line [16:34:21]written 0, free lines is 3265 [16:34:21]MH_Cut [16:34:21]Write to MH i2c: D1 01 00 15 15 01 FC [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: D1 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: D1 01 00 [16:34:21]MH_I2C_Read... [16:34:21]Read from MH i2c: D1 01 00 15 15 00 FB [16:34:21]Write to MH i2c: 01 00 00 16 15 2B [16:34:21]Write i2c OK [16:34:21]MH_I2C_Read... [16:34:22]OFD Sender: No OFD packet to send [16:34:22]*** Cut start [16:34:22]*** Partial cut [16:34:22]*** CUTSNS_PIN = 1 [16:34:22]*** CUTSNS_PIN = 0 [16:34:22]*** Brake cut motor [16:34:23]Read from MH i2c: 01 [16:34:23]MH_I2C_Read... [16:34:23]*** Stop cut motor [16:34:23]*** Cut end [16:34:23]Read from MH i2c: 01 07 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: 01 07 00 16 15 00 00 00 00 00 FF 0F 40 [16:34:23]process_action close_receipt done [16:34:23]requested_data is exist [16:34:23]produce_requested_data [16:34:23]requested_item fm.sn is exist - process it [16:34:23]wFMCommunicate request_size=4 [16:34:23]MH_SAM_APDU [16:34:23]CAPDU: 80 11 00 00 [16:34:23]Write to MH i2c: E2 08 00 17 15 80 11 00 00 00 00 00 00 A6 [16:34:23]Write i2c OK [16:34:23]MH_I2C_Read... [16:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:23]Read from MH i2c: E2 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 17 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 17 00 17 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [16:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:34:23]wFMCommunicate OK [16:34:23]requested_item fd.num is exist - process it [16:34:23]SAM_PROTO_GetFieldsCounters [16:34:23]wFMCommunicate request_size=4 [16:34:23]MH_SAM_APDU [16:34:23]CAPDU: 80 13 00 00 [16:34:23]Write to MH i2c: E2 08 00 18 15 80 13 00 00 00 00 00 00 A9 [16:34:23]Write i2c OK [16:34:23]MH_I2C_Read... [16:34:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:23]Read from MH i2c: E2 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 62 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 62 00 18 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [16:34:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:23]wFMCommunicate OK [16:34:23]SAM_PROTO_GetFieldsCounters done [16:34:23]requested_item shift.num is exist - process it [16:34:23]requested_item shift.opened is exist - process it [16:34:23]req_shift_opened [16:34:23]FM_GetShiftState [16:34:23]SAM_PROTO_GetShiftState [16:34:23]wFMCommunicate request_size=4 [16:34:23]MH_SAM_APDU [16:34:23]CAPDU: 80 13 01 00 [16:34:23]Write to MH i2c: E2 08 00 19 15 80 13 01 00 00 00 00 00 AB [16:34:23]Write i2c OK [16:34:23]MH_I2C_Read... [16:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:23]Read from MH i2c: E2 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 0E 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 0E 00 19 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [16:34:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:34:23]wFMCommunicate OK [16:34:23]SAM_PROTO_GetShiftState done [16:34:23]FM_GetShiftState done [16:34:23]req_shift_opened done [16:34:23]requested_item shift.open_date is exist - process it [16:34:23]req_shift_open_date [16:34:23]req_shift_open_date done [16:34:23]produce_requested_data done [16:34:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192309,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:34:23]process_action_free close_receipt [16:34:23]json_value_free [16:34:23]json_value_free done [16:34:23]process_json_proto returns [16:34:23]Send response to host [16:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192309,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:34:23]free response buf [16:34:23]execute_script done [16:34:23]execute_script returns [16:34:23]free content buf [16:34:23]Sock 9.Close socket [16:34:23]Sock 9.Thread stoped [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:45]accept exits with 10 [16:36:45]New connection [16:36:45]New thread 3067080036 created [16:36:45]Thread 3066936676 joined [16:36:45]Waiting for new connection... [16:36:45] Sock 10.Parse request [16:36:45]Sock 10.Check first char [16:36:45]Sock 10.First char is OK [16:36:45]request: POST /json_proto HTTP/1.0 [16:36:45]Method: POST [16:36:45]URL: /json_proto [16:36:45]Method is POST - this is cgi request [16:36:45]url: /json_proto [16:36:45]query_string will be loaded in cgi processing [16:36:45]execute_cgi json_proto POST (null) [16:36:45]execute_cgi path=json_proto method=POST [16:36:45]POST find Content-Length [16:36:45]Host: 172.17.63.131:8080 [16:36:45]Content-Length: 681 [16:36:45]Content-Type: application/json [16:36:45] [16:36:45]POST finish read [16:36:45]Found Content-Length = 681 [16:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.160, "sum" : 1750.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:45]execute_script... [16: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)31625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.160, "sum" : 1750.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:45]POST & json_proto [16:36:45]process_json_proto [16:36:45]json parsed OK: [16:36:45]protocol is kg_v1.0 [16:36:45]action value=close_receipt [16:36:45]process_action close_receipt [16:36:45]cmd_close_receipt [16:36:45]MH_GetDate [16:36:45]Write to MH i2c: F0 00 00 1A 15 1E [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: F0 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: F0 09 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: F0 09 00 1A 15 00 1D 6C 1E 67 22 05 6E 64 2E [16:36:45]GetLastDocTimeStamp 1730046859 [16:36:45]current date 1730047005 [16:36:45]FM_GetShiftState [16:36:45]SAM_PROTO_GetShiftState [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 13 01 00 [16:36:45]Write to MH i2c: E2 08 00 1B 15 80 13 01 00 00 00 00 00 AD [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0E 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0E 00 1B 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EE [16:36:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_GetShiftState done [16:36:45]FM_GetShiftState done [16:36:45]opened in 1729989159 [16:36:45]opened+sec_in_day 1730075559 [16:36:45]quantity*price = 175010 [16:36:45]sum+1 = 175011 [16:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1750.00 Внесено: 2000.00 СДАЧА: 250.00 НСП 1% : 15.49 НДС 12% : 185.85 Наличными: 1750.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 342 27.10.2024 16:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192310 ФПД: 66302248894093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163645&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192310&fm=66302248894093&tin=02508201610067®Number=0000000000091776&sum=175000 [16:36:46]StoreToDocumentArchive [16:36:46]shift 542 fd 192310 [16:36:46]save to /storage/0542/doc_00192310 [16:36:46]save last doc name /storage/0542/doc_00192310 to /storage/kkm_last_doc_name [16:36:46]save OK [16:36:46]Clear old archive folders... [16:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:46]tlvbuf is B6EC72C0 [16:36:46]SAM_PROTO_ClearQueue [16:36:46]wFMCommunicate request_size=4 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 09 00 00 [16:36:46]Write to MH i2c: E2 08 00 28 15 80 09 00 00 00 00 00 00 AF [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [16:36:46]RAPDU: 90 00 [16:36:46]wFMCommunicate OK [16:36:46]SAM_PROTO_ClearQueue done [16:36:46]KKMCreateOFDPacket [16:36:46]OFDProtocolAddRootSTLVToBuf [16:36:46]FM_MakeSignedData [16:36:46]FM_MakeSignedData [16:36:46]SAM_PROTO_SignData [16:36:46]wFMCommunicate request_size=4 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 0D 01 02 [16:36:46]Write to MH i2c: E2 08 00 29 15 80 0D 01 02 00 00 00 00 B7 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [16:36:46]RAPDU: 90 00 [16:36:46]wFMCommunicate OK [16:36:46]wFMCommunicate request_size=255 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1D 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EF 02 00 35 04 06 00 3C [16:36:46]Write to MH i2c: E2 02 01 2A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1D 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EF 02 00 35 04 06 00 3C 00 00 4D [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [16:36:46]RAPDU: 90 00 [16:36:46]wFMCommunicate OK [16:36:46]wFMCommunicate request_size=10 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 0D 02 02 05 4D 31 FE 3E 8D [16:36:46]Write to MH i2c: E2 0D 00 2B 15 80 0D 02 02 05 00 4D 31 FE 3E 8D 00 00 0B [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 03 00 2B 15 00 90 00 B4 [16:36:46]RAPDU: 90 00 [16:36:46]wFMCommunicate OK [16:36:46]wFMCommunicate request_size=4 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 0D 03 02 [16:36:46]Write to MH i2c: E2 08 00 2C 15 80 0D 03 02 00 00 00 00 BC [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 0B 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 0B 00 2C 15 00 3F 8A C9 DA 32 67 08 2A 90 00 F4 [16:36:46]RAPDU: 3F 8A C9 DA 32 67 08 2A 90 00 [16:36:46]wFMCommunicate OK [16:36:46]SAM_PROTO_SignData done [16:36:46]FM_MakeSignedData done [16:36:46]CreateOFDProtocolMessage [16:36:46]wFMCommunicate request_size=4 [16:36:46]MH_SAM_APDU [16:36:46]CAPDU: 80 11 00 00 [16:36:46]Write to MH i2c: E2 08 00 2D 15 80 11 00 00 00 00 00 00 BC [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 17 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 17 00 2D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [16:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:46]wFMCommunicate OK [16:36:46]CreateOFDProtocolMessage done [16:36:46]OFDSenderStorePacket 192310 [16:36:46]StoreOFDPacket docnum=192310 [16:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 1F 07 01 06 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1D 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EF 02 00 35 04 06 00 3C 4D 31 FE 3E 8D 3F 8A C9 DA 32 67 08 2A [16:36:46]CheckFolder [16:36:46]dirname=/storage/ofd_packets [16:36:46]CheckFolder done [16:36:46]ProducePacketName [16:36:46]name=ofd_packets/00192310 [16:36:46]NVStorageSaveData ofd_packets/00192310 [16:36:46]File name is /storage/ofd_packets/00192310 [16:36:46]Write 301 bytes [16:36:46]NVStorageSaveData done [16:36:46]OFDSenderStorePacket done [16:36:46]KKMCreateOFDPacket done [16:36:46]NVStorageSaveData kkm_last_timestamp [16:36:46]File name is /storage/kkm_last_timestamp [16:36:46]Write 4 bytes [16:36:46]NVStorageSaveData done [16:36:46]ExternCall_PrintAddStr [16:36:46]wPrintStart [16:36:46]Write to MH i2c: 01 00 00 2E 15 43 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 2E 15 00 00 00 00 00 FF 0F 58 [16:36:46]RasterBufferAndPrint [16:36:46]line Счет N : (1)31625 [16:36:46]line ИНН: 02508201610067 [16:36:46]line Контрольно-Кассовый Чек [16:36:46]line ПРОДАЖА [16:36:46]line ТРК (МРК, ГНК) : 12 [16:36:46]line Товар: 2710124130 [16:36:46]line Аи-92-К-5 [16:36:46]line 26.160 * 66.90 [16:36:46]line = 1750.10 [16:36:46]line НДС 12% НСП 1% [16:36:46]line > о реализуемом товаре [16:36:46]line ОКРУГЛЕНИЕ: -0.10 [16:36:46]line ИТОГО: 1750.00 [16:36:46]line Внесено: 2000.00 [16:36:46]line СДАЧА: 250.00 [16:36:46]line НСП 1% : 15.49 [16:36:46]line НДС 12% : 185.85 [16:36:46]line Наличными: 1750.00 [16:36:46]line Безнал.: 0.00 [16:36:46]line Место: АЗС № 170 "Партнер Нефть" [16:36:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:36:46]line СНО: Общий режим [16:36:46]line Чек 342 27.10.2024 16:36 [16:36:46]line Смена: 542 ФФД: 1.0 [16:36:46]line ЗНМ: 0300000110 [16:36:46]line РНМ: 0000000000091776 [16:36:46]line Версия ККМ: 001 [16:36:46]line ФМ: 0000000000871754 [16:36:46]line ФД: 192310 [16:36:46]line ФПД: 66302248894093 [16:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163645&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192310&fm=66302248894093&tin=02508201610067®Number=0000000000091776&sum=175000 [16:36:47]OFD Sender: Processing packet 192310 [packets to send 75, broken 74] [16:36:47]ProducePacketName [16:36:47]name=ofd_packets/00192310 [16:36:47]OFD Sender: To server: pG, [16:36:47]CommunicateWithHost lk.salyk.kg:30040 [16:36:47]ConnectInit lk.salyk.kg [16:36:47]written 0, free lines is 4095 [16:36:47]Connected sock=9 [16:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 1F 07 01 06 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1D 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EF 02 00 35 04 06 00 3C 4D 31 FE 3E 8D 3F 8A C9 DA 32 67 08 2A [16:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 50 3B 47 00 49 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 EF 02 00 F4 03 04 00 E4 10 1E 67 B6 04 01 00 00 72 DE C7 52 3A 5B 07 86 [16:36:47]CommunicateWithHost err = 0 [16:36:47]CheckOFDResponse [16:36:47]1017 (14) - 77093643461234 [16:36:47]1041 (16) - 0000000000871754 [16:36:47]1040 (4) - 192310 [16:36:47]1012 (4) - 27.10.2024 10:07 [16:36:47]1206 (1) - 0 [16:36:47]OFD Sender: Remove packet 192310 [16:36:47]ProducePacketName [16:36:47]name=ofd_packets/00192310 [16:36:47]NVStorageDeleteData [16:36:47]Write to MH i2c: 01 00 00 59 15 6E [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: 01 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: 01 07 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: 01 07 00 59 15 00 00 00 00 00 BE 0C 3F [16:36:47]RasterBufferAndPrint [16:36:47]line [16:36:47]line [16:36:47]line [16:36:47]line [16:36:47]line [16:36:47]written 0, free lines is 3267 [16:36:47]MH_Cut [16:36:47]Write to MH i2c: D1 01 00 60 15 01 47 [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: D1 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: D1 01 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: D1 01 00 60 15 00 46 [16:36:47]Write to MH i2c: 01 00 00 61 15 76 [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]OFD Sender: No OFD packet to send [16:36:48]*** Cut start [16:36:48]*** Partial cut [16:36:48]*** CUTSNS_PIN = 1 [16:36:48]*** CUTSNS_PIN = 0 [16:36:48]*** Brake cut motor [16:36:49]Read from MH i2c: 01 [16:36:49]MH_I2C_Read... [16:36:49]*** Stop cut motor [16:36:49]*** Cut end [16:36:49]Read from MH i2c: 01 07 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: 01 07 00 61 15 00 00 00 00 00 FF 0F 8B [16:36:49]process_action close_receipt done [16:36:49]requested_data is exist [16:36:49]produce_requested_data [16:36:49]requested_item fm.sn is exist - process it [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 11 00 00 [16:36:49]Write to MH i2c: E2 08 00 62 15 80 11 00 00 00 00 00 00 F1 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 17 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 17 00 62 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [16:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:49]wFMCommunicate OK [16:36:49]requested_item fd.num is exist - process it [16:36:49]SAM_PROTO_GetFieldsCounters [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 13 00 00 [16:36:49]Write to MH i2c: E2 08 00 63 15 80 13 00 00 00 00 00 00 F4 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 62 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 62 00 63 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [16: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:49]wFMCommunicate OK [16:36:49]SAM_PROTO_GetFieldsCounters done [16:36:49]requested_item shift.num is exist - process it [16:36:49]requested_item shift.opened is exist - process it [16:36:49]req_shift_opened [16:36:49]FM_GetShiftState [16:36:49]SAM_PROTO_GetShiftState [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 13 01 00 [16:36:49]Write to MH i2c: E2 08 00 64 15 80 13 01 00 00 00 00 00 F6 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0E 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0E 00 64 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 37 [16:36:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:36:49]wFMCommunicate OK [16:36:49]SAM_PROTO_GetShiftState done [16:36:49]FM_GetShiftState done [16:36:49]req_shift_opened done [16:36:49]requested_item shift.open_date is exist - process it [16:36:49]req_shift_open_date [16:36:49]req_shift_open_date done [16:36:49]produce_requested_data done [16:36:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192310,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:36:49]process_action_free close_receipt [16:36:49]json_value_free [16:36:49]json_value_free done [16:36:49]process_json_proto returns [16:36:49]Send response to host [16:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192310,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:36:49]free response buf [16:36:49]execute_script done [16:36:49]execute_script returns [16:36:49]free content buf [16:36:49]Sock 10.Close socket [16:36:49]Sock 10.Thread stoped [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:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:32]accept exits with 7 [16:38:32]New connection [16:38:32]New thread 3066936676 created [16:38:32]Thread 3067080036 joined [16:38:32]Waiting for new connection... [16:38:32] Sock 7.Parse request [16:38:32]Sock 7.Check first char [16:38:32]Sock 7.First char is OK [16:38:32]request: POST /json_proto HTTP/1.0 [16:38:32]Method: POST [16:38:32]URL: /json_proto [16:38:32]Method is POST - this is cgi request [16:38:32]url: /json_proto [16:38:32]query_string will be loaded in cgi processing [16:38:32]execute_cgi json_proto POST (null) [16:38:32]execute_cgi path=json_proto method=POST [16:38:32]POST find Content-Length [16:38:32]Host: 172.17.63.131:8080 [16:38:32]Content-Length: 676 [16:38:32]Content-Type: application/json [16:38:32] [16:38:32]POST finish read [16:38:32]Found Content-Length = 676 [16:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:32]execute_script... [16:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:32]POST & json_proto [16:38:32]process_json_proto [16:38:32]json parsed OK: [16:38:32]protocol is kg_v1.0 [16:38:32]action value=close_receipt [16:38:32]process_action close_receipt [16:38:32]cmd_close_receipt [16:38:32]MH_GetDate [16:38:32]Write to MH i2c: F0 00 00 65 15 69 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 09 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 09 00 65 15 00 88 6C 1E 67 22 05 6E 64 E4 [16:38:32]GetLastDocTimeStamp 1730047005 [16:38:32]current date 1730047112 [16:38:32]FM_GetShiftState [16:38:32]SAM_PROTO_GetShiftState [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 13 01 00 [16:38:32]Write to MH i2c: E2 08 00 66 15 80 13 01 00 00 00 00 00 F8 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 66 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [16:38:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_GetShiftState done [16:38:32]FM_GetShiftState done [16:38:32]opened in 1729989159 [16:38:32]opened+sec_in_day 1730075559 [16:38:32]quantity*price = 50041 [16:38:32]sum+1 = 50042 [16:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 343 27.10.2024 16:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192311 ФПД: 50117563410652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192311&fm=50117563410652&tin=02508201610067®Number=0000000000091776&sum=50000 [16:38:33]StoreToDocumentArchive [16:38:33]shift 542 fd 192311 [16:38:33]save to /storage/0542/doc_00192311 [16:38:33]save last doc name /storage/0542/doc_00192311 to /storage/kkm_last_doc_name [16:38:33]save OK [16:38:33]Clear old archive folders... [16:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:33]tlvbuf is B6EC7D60 [16:38:33]SAM_PROTO_ClearQueue [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 09 00 00 [16:38:33]Write to MH i2c: E2 08 00 73 15 80 09 00 00 00 00 00 00 FA [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_ClearQueue done [16:38:33]KKMCreateOFDPacket [16:38:33]OFDProtocolAddRootSTLVToBuf [16:38:33]FM_MakeSignedData [16:38:33]FM_MakeSignedData [16:38:33]SAM_PROTO_SignData [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 01 02 [16:38:33]Write to MH i2c: E2 08 00 74 15 80 0D 01 02 00 00 00 00 02 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]wFMCommunicate request_size=255 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 88 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EF 02 00 35 04 06 00 2D [16:38:33]Write to MH i2c: E2 02 01 75 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 88 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EF 02 00 35 04 06 00 2D 00 00 DC [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]wFMCommunicate request_size=10 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 02 02 05 94 E7 90 68 DC [16:38:33]Write to MH i2c: E2 0D 00 76 15 80 0D 02 02 05 00 94 E7 90 68 DC 00 00 5E [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 76 15 00 90 00 FF [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 03 02 [16:38:33]Write to MH i2c: E2 08 00 77 15 80 0D 03 02 00 00 00 00 07 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0B 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0B 00 77 15 00 C4 1A 5E 8A F6 6D 7F 2B 90 00 DB [16:38:33]RAPDU: C4 1A 5E 8A F6 6D 7F 2B 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_SignData done [16:38:33]FM_MakeSignedData done [16:38:33]CreateOFDProtocolMessage [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 11 00 00 [16:38:33]Write to MH i2c: E2 08 00 78 15 80 11 00 00 00 00 00 00 07 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 78 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [16:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:33]wFMCommunicate OK [16:38:33]CreateOFDProtocolMessage done [16:38:33]OFDSenderStorePacket 192311 [16:38:33]StoreOFDPacket docnum=192311 [16:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 3E 07 01 24 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 88 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EF 02 00 35 04 06 00 2D 94 E7 90 68 DC C4 1A 5E 8A F6 6D 7F 2B [16:38:33]CheckFolder [16:38:33]dirname=/storage/ofd_packets [16:38:33]CheckFolder done [16:38:33]ProducePacketName [16:38:33]name=ofd_packets/00192311 [16:38:33]NVStorageSaveData ofd_packets/00192311 [16:38:33]File name is /storage/ofd_packets/00192311 [16:38:33]Write 301 bytes [16:38:33]NVStorageSaveData done [16:38:33]OFDSenderStorePacket done [16:38:33]KKMCreateOFDPacket done [16:38:33]NVStorageSaveData kkm_last_timestamp [16:38:33]File name is /storage/kkm_last_timestamp [16:38:33]Write 4 bytes [16:38:33]NVStorageSaveData done [16:38:33]ExternCall_PrintAddStr [16:38:33]wPrintStart [16:38:33]Write to MH i2c: 01 00 00 79 15 8E [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 07 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 07 00 79 15 00 00 00 00 00 FF 0F A3 [16:38:33]RasterBufferAndPrint [16:38:33]line Счет N : (1)31626 [16:38:33]line ИНН: 02508201610067 [16:38:33]line Контрольно-Кассовый Чек [16:38:33]line ПРОДАЖА [16:38:33]line ТРК (МРК, ГНК) : 12 [16:38:33]line Товар: 2710124130 [16:38:33]line Аи-92-К-5 [16:38:33]line 7.480 * 66.90 [16:38:33]line = 500.41 [16:38:33]line НДС 12% НСП 1% [16:38:33]line > о реализуемом товаре [16:38:33]line ОКРУГЛЕНИЕ: -0.41 [16:38:33]line ИТОГО: 500.00 [16:38:33]line Внесено: 500.00 [16:38:33]line СДАЧА: 0.00 [16:38:33]line НСП 1% : 4.43 [16:38:33]line НДС 12% : 53.14 [16:38:33]line Наличными: 500.00 [16:38:33]line Безнал.: 0.00 [16:38:33]line Место: АЗС № 170 "Партнер Нефть" [16:38:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:38:33]line СНО: Общий режим [16:38:33]line Чек 343 27.10.2024 16:38 [16:38:33]line Смена: 542 ФФД: 1.0 [16:38:33]line ЗНМ: 0300000110 [16:38:33]line РНМ: 0000000000091776 [16:38:33]line Версия ККМ: 001 [16:38:33]line ФМ: 0000000000871754 [16:38:33]line ФД: 192311 [16:38:33]line ФПД: 50117563410652 [16:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192311&fm=50117563410652&tin=02508201610067®Number=0000000000091776&sum=50000 [16:38:34]OFD Sender: Processing packet 192311 [packets to send 75, broken 74] [16:38:34]ProducePacketName [16:38:34]name=ofd_packets/00192311 [16:38:34]OFD Sender: To server: pG, [16:38:34]CommunicateWithHost lk.salyk.kg:30040 [16:38:34]ConnectInit lk.salyk.kg [16:38:34]written 0, free lines is 4095 [16:38:34]Connected sock=10 [16:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 71 3E 07 01 24 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 88 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EF 02 00 35 04 06 00 2D 94 E7 90 68 DC C4 1A 5E 8A F6 6D 7F 2B [16:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 17 47 00 9F E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 EF 02 00 F4 03 04 00 4F 11 1E 67 B6 04 01 00 00 0C 6B 2F 77 CE AA C7 C5 [16:38:34]CommunicateWithHost err = 0 [16:38:34]CheckOFDResponse [16:38:34]1017 (14) - 77093643461234 [16:38:34]1041 (16) - 0000000000871754 [16:38:34]1040 (4) - 192311 [16:38:34]1012 (4) - 27.10.2024 10:09 [16:38:34]1206 (1) - 0 [16:38:34]OFD Sender: Remove packet 192311 [16:38:34]ProducePacketName [16:38:34]name=ofd_packets/00192311 [16:38:34]NVStorageDeleteData [16:38:34]Write to MH i2c: 01 00 00 A4 15 B9 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 07 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 07 00 A4 15 00 00 00 00 00 A7 0C 73 [16:38:34]RasterBufferAndPrint [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]written 0, free lines is 3245 [16:38:34]MH_Cut [16:38:34]Write to MH i2c: D1 01 00 AB 15 01 92 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 01 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 01 00 AB 15 00 91 [16:38:34]Write to MH i2c: 01 00 00 AC 15 C1 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:35]OFD Sender: No OFD packet to send [16:38:35]*** Cut start [16:38:35]*** Partial cut [16:38:35]*** CUTSNS_PIN = 1 [16:38:35]*** CUTSNS_PIN = 0 [16:38:35]*** Brake cut motor [16:38:36]Read from MH i2c: 01 [16:38:36]MH_I2C_Read... [16:38:36]*** Stop cut motor [16:38:36]*** Cut end [16:38:36]Read from MH i2c: 01 07 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 AC 15 00 00 00 00 00 FF 0F D6 [16:38:36]process_action close_receipt done [16:38:36]requested_data is exist [16:38:36]produce_requested_data [16:38:36]requested_item fm.sn is exist - process it [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 11 00 00 [16:38:36]Write to MH i2c: E2 08 00 AD 15 80 11 00 00 00 00 00 00 3C [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 AD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [16:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:36]wFMCommunicate OK [16:38:36]requested_item fd.num is exist - process it [16:38:36]SAM_PROTO_GetFieldsCounters [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 13 00 00 [16:38:36]Write to MH i2c: E2 08 00 AE 15 80 13 00 00 00 00 00 00 3F [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 62 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 62 00 AE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:36]wFMCommunicate OK [16:38:36]SAM_PROTO_GetFieldsCounters done [16:38:36]requested_item shift.num is exist - process it [16:38:36]requested_item shift.opened is exist - process it [16:38:36]req_shift_opened [16:38:36]FM_GetShiftState [16:38:36]SAM_PROTO_GetShiftState [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 13 01 00 [16:38:36]Write to MH i2c: E2 08 00 AF 15 80 13 01 00 00 00 00 00 41 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 AF 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 82 [16:38:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:38:36]wFMCommunicate OK [16:38:36]SAM_PROTO_GetShiftState done [16:38:36]FM_GetShiftState done [16:38:36]req_shift_opened done [16:38:36]requested_item shift.open_date is exist - process it [16:38:36]req_shift_open_date [16:38:36]req_shift_open_date done [16:38:36]produce_requested_data done [16:38:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192311,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:38:36]process_action_free close_receipt [16:38:36]json_value_free [16:38:36]json_value_free done [16:38:36]process_json_proto returns [16:38:36]Send response to host [16:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192311,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:38:36]free response buf [16:38:36]execute_script done [16:38:36]execute_script returns [16:38:36]free content buf [16:38:36]Sock 7.Close socket [16:38:36]Sock 7.Thread stoped [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:22]accept exits with 9 [16:40:22]New connection [16:40:22]New thread 3067080036 created [16:40:22]Thread 3066936676 joined [16:40:22]Waiting for new connection... [16:40:22] Sock 9.Parse request [16:40:22]Sock 9.Check first char [16:40:22]Sock 9.First char is OK [16:40:22]request: POST /json_proto HTTP/1.0 [16:40:22]Method: POST [16:40:22]URL: /json_proto [16:40:22]Method is POST - this is cgi request [16:40:22]url: /json_proto [16:40:22]query_string will be loaded in cgi processing [16:40:22]execute_cgi json_proto POST (null) [16:40:22]execute_cgi path=json_proto method=POST [16:40:22]POST find Content-Length [16:40:22]Host: 172.17.63.131:8080 [16:40:22]Content-Length: 673 [16:40:22]Content-Type: application/json [16:40:22] [16:40:22]POST finish read [16:40:22]Found Content-Length = 673 [16:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31627", "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" : 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" ] } } [16:40:22]execute_script... [16:40: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)31627", "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" : 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" ] } } [16:40:22]POST & json_proto [16:40:22]process_json_proto [16:40:22]json parsed OK: [16:40:22]protocol is kg_v1.0 [16:40:22]action value=close_receipt [16:40:22]process_action close_receipt [16:40:22]cmd_close_receipt [16:40:22]MH_GetDate [16:40:22]Write to MH i2c: F0 00 00 B0 15 B4 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: F0 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: F0 09 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: F0 09 00 B0 15 00 F6 6C 1E 67 22 05 6E 64 9D [16:40:22]GetLastDocTimeStamp 1730047112 [16:40:22]current date 1730047222 [16:40:22]FM_GetShiftState [16:40:22]SAM_PROTO_GetShiftState [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 13 01 00 [16:40:22]Write to MH i2c: E2 08 00 B1 15 80 13 01 00 00 00 00 00 43 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 B1 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [16:40:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_GetShiftState done [16:40:22]FM_GetShiftState done [16:40:22]opened in 1729989159 [16:40:22]opened+sec_in_day 1730075559 [16:40:22]quantity*price = 60045 [16:40:22]sum+1 = 60047 [16:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 344 27.10.2024 16:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192312 ФПД: 229724949079942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164022&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192312&fm=229724949079942&tin=02508201610067®Number=0000000000091776&sum=60000 [16:40:23]StoreToDocumentArchive [16:40:23]shift 542 fd 192312 [16:40:23]save to /storage/0542/doc_00192312 [16:40:23]save last doc name /storage/0542/doc_00192312 to /storage/kkm_last_doc_name [16:40:23]save OK [16:40:23]Clear old archive folders... [16:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:40:23]tlvbuf is 002D1570 [16:40:23]SAM_PROTO_ClearQueue [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 09 00 00 [16:40:23]Write to MH i2c: E2 08 00 BE 15 80 09 00 00 00 00 00 00 45 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]SAM_PROTO_ClearQueue done [16:40:23]KKMCreateOFDPacket [16:40:23]OFDProtocolAddRootSTLVToBuf [16:40:23]FM_MakeSignedData [16:40:23]FM_MakeSignedData [16:40:23]SAM_PROTO_SignData [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 01 02 [16:40:23]Write to MH i2c: E2 08 00 BF 15 80 0D 01 02 00 00 00 00 4D [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=255 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 F6 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EF 02 00 35 04 06 00 D0 EF 01 FC [16:40:23]Write to MH i2c: E2 02 01 C0 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 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 58 01 00 00 F4 03 04 00 F6 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EF 02 00 35 04 06 00 D0 EF 01 FC 00 00 DD [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=7 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 02 02 02 67 86 [16:40:23]Write to MH i2c: E2 0A 00 C1 15 80 0D 02 02 02 00 67 86 00 00 41 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 C1 15 00 90 00 4A [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 03 02 [16:40:23]Write to MH i2c: E2 08 00 C2 15 80 0D 03 02 00 00 00 00 52 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0B 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0B 00 C2 15 00 70 E7 20 79 24 E5 C5 B7 90 00 C8 [16:40:23]RAPDU: 70 E7 20 79 24 E5 C5 B7 90 00 [16:40:23]wFMCommunicate OK [16:40:23]SAM_PROTO_SignData done [16:40:23]FM_MakeSignedData done [16:40:23]CreateOFDProtocolMessage [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 11 00 00 [16:40:23]Write to MH i2c: E2 08 00 C3 15 80 11 00 00 00 00 00 00 52 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 17 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 17 00 C3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [16:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:23]wFMCommunicate OK [16:40:23]CreateOFDProtocolMessage done [16:40:23]OFDSenderStorePacket 192312 [16:40:23]StoreOFDPacket docnum=192312 [16:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 89 55 04 01 5D 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 01 00 00 F4 03 04 00 F6 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EF 02 00 35 04 06 00 D0 EF 01 FC 67 86 70 E7 20 79 24 E5 C5 B7 [16:40:23]CheckFolder [16:40:23]dirname=/storage/ofd_packets [16:40:23]CheckFolder done [16:40:23]ProducePacketName [16:40:23]name=ofd_packets/00192312 [16:40:23]NVStorageSaveData ofd_packets/00192312 [16:40:23]File name is /storage/ofd_packets/00192312 [16:40:23]Write 298 bytes [16:40:23]NVStorageSaveData done [16:40:23]OFDSenderStorePacket done [16:40:23]KKMCreateOFDPacket done [16:40:23]NVStorageSaveData kkm_last_timestamp [16:40:23]File name is /storage/kkm_last_timestamp [16:40:23]Write 4 bytes [16:40:23]NVStorageSaveData done [16:40:23]ExternCall_PrintAddStr [16:40:23]wPrintStart [16:40:23]Write to MH i2c: 01 00 00 C4 15 D9 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 C4 15 00 00 00 00 00 FF 0F EE [16:40:23]RasterBufferAndPrint [16:40:23]line Счет N : (1)31627 [16:40:23]line ИНН: 02508201610067 [16:40:23]line Контрольно-Кассовый Чек [16:40:23]line ПРОДАЖА [16:40:23]line ТРК (МРК, ГНК) : 11 [16:40:23]line Товар: 2710194210 [16:40:23]line ДТ-К-5 [16:40:23]line 7.880 * 76.20 [16:40:23]line = 600.46 [16:40:23]line НДС 12% НСП 1% [16:40:23]line > о реализуемом товаре [16:40:23]line ОКРУГЛЕНИЕ: -0.46 [16:40:23]line ИТОГО: 600.00 [16:40:23]line Внесено: 600.00 [16:40:23]line СДАЧА: 0.00 [16:40:23]line НСП 1% : 5.31 [16:40:23]line НДС 12% : 63.77 [16:40:23]line Наличными: 600.00 [16:40:23]line Безнал.: 0.00 [16:40:23]line Место: АЗС № 170 "Партнер Нефть" [16:40:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:40:23]line СНО: Общий режим [16:40:23]line Чек 344 27.10.2024 16:40 [16:40:23]line Смена: 542 ФФД: 1.0 [16:40:23]line ЗНМ: 0300000110 [16:40:23]line РНМ: 0000000000091776 [16:40:23]line Версия ККМ: 001 [16:40:23]line ФМ: 0000000000871754 [16:40:23]line ФД: 192312 [16:40:23]line ФПД: 229724949079942 [16:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164022&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192312&fm=229724949079942&tin=02508201610067®Number=0000000000091776&sum=60000 [16:40:24]OFD Sender: Processing packet 192312 [packets to send 75, broken 74] [16:40:24]ProducePacketName [16:40:24]name=ofd_packets/00192312 [16:40:24]OFD Sender: To server: pG, [16:40:24]CommunicateWithHost lk.salyk.kg:30040 [16:40:24]ConnectInit lk.salyk.kg [16:40:24]written 0, free lines is 4095 [16:40:24]Connected sock=10 [16:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 89 55 04 01 5D 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 58 01 00 00 F4 03 04 00 F6 6C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EF 02 00 35 04 06 00 D0 EF 01 FC 67 86 70 E7 20 79 24 E5 C5 B7 [16:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 89 47 00 9F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 EF 02 00 F4 03 04 00 BE 11 1E 67 B6 04 01 00 00 1D 06 07 08 86 97 A6 18 [16:40:24]CommunicateWithHost err = 0 [16:40:24]CheckOFDResponse [16:40:24]1017 (14) - 77093643461234 [16:40:24]1041 (16) - 0000000000871754 [16:40:24]1040 (4) - 192312 [16:40:24]1012 (4) - 27.10.2024 10:11 [16:40:24]1206 (1) - 0 [16:40:24]OFD Sender: Remove packet 192312 [16:40:24]ProducePacketName [16:40:24]name=ofd_packets/00192312 [16:40:24]NVStorageDeleteData [16:40:24]Write to MH i2c: 01 00 00 EF 15 04 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 07 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 B0 0C C7 [16:40:24]RasterBufferAndPrint [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]written 0, free lines is 3255 [16:40:24]MH_Cut [16:40:24]Write to MH i2c: D1 01 00 F6 15 01 DD [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 01 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 01 00 F6 15 00 DC [16:40:24]Write to MH i2c: 01 00 00 F7 15 0C [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:25]OFD Sender: No OFD packet to send [16:40:25]*** Cut start [16:40:25]*** Partial cut [16:40:25]*** CUTSNS_PIN = 1 [16:40:25]*** CUTSNS_PIN = 0 [16:40:25]*** Brake cut motor [16:40:26]Read from MH i2c: 01 [16:40:26]MH_I2C_Read... [16:40:26]*** Stop cut motor [16:40:26]*** Cut end [16:40:26]Read from MH i2c: 01 07 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 F7 15 00 00 00 00 00 FF 0F 21 [16:40:26]process_action close_receipt done [16:40:26]requested_data is exist [16:40:26]produce_requested_data [16:40:26]requested_item fm.sn is exist - process it [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 11 00 00 [16:40:26]Write to MH i2c: E2 08 00 F8 15 80 11 00 00 00 00 00 00 87 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 17 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 17 00 F8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [16:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:26]wFMCommunicate OK [16:40:26]requested_item fd.num is exist - process it [16:40:26]SAM_PROTO_GetFieldsCounters [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 13 00 00 [16:40:26]Write to MH i2c: E2 08 00 F9 15 80 13 00 00 00 00 00 00 8A [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 62 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 62 00 F9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:26]wFMCommunicate OK [16:40:26]SAM_PROTO_GetFieldsCounters done [16:40:26]requested_item shift.num is exist - process it [16:40:26]requested_item shift.opened is exist - process it [16:40:26]req_shift_opened [16:40:26]FM_GetShiftState [16:40:26]SAM_PROTO_GetShiftState [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 13 01 00 [16:40:26]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 0E 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [16:40:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:40:26]wFMCommunicate OK [16:40:26]SAM_PROTO_GetShiftState done [16:40:26]FM_GetShiftState done [16:40:26]req_shift_opened done [16:40:26]requested_item shift.open_date is exist - process it [16:40:26]req_shift_open_date [16:40:26]req_shift_open_date done [16:40:26]produce_requested_data done [16:40:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192312,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:40:26]process_action_free close_receipt [16:40:26]json_value_free [16:40:26]json_value_free done [16:40:26]process_json_proto returns [16:40:26]Send response to host [16:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192312,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:40:26]free response buf [16:40:26]execute_script done [16:40:26]execute_script returns [16:40:26]free content buf [16:40:26]Sock 9.Close socket [16:40:26]Sock 9.Thread stoped [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:41]accept exits with 7 [16:41:41]New connection [16:41:41]New thread 3066936676 created [16:41:41]Thread 3067080036 joined [16:41:41]Waiting for new connection... [16:41:41] Sock 7.Parse request [16:41:41]Sock 7.Check first char [16:41:41]Sock 7.First char is OK [16:41:41]request: POST /json_proto HTTP/1.0 [16:41:41]Method: POST [16:41:41]URL: /json_proto [16:41:41]Method is POST - this is cgi request [16:41:41]url: /json_proto [16:41:41]query_string will be loaded in cgi processing [16:41:41]execute_cgi json_proto POST (null) [16:41:41]execute_cgi path=json_proto method=POST [16:41:41]POST find Content-Length [16:41:41]Host: 172.17.63.131:8080 [16:41:41]Content-Length: 676 [16:41:41]Content-Type: application/json [16:41:41] [16:41:41]POST finish read [16:41:41]Found Content-Length = 676 [16:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:41]execute_script... [16:41: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)31629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:41]POST & json_proto [16:41:41]process_json_proto [16:41:41]json parsed OK: [16:41:41]protocol is kg_v1.0 [16:41:41]action value=close_receipt [16:41:41]process_action close_receipt [16:41:41]cmd_close_receipt [16:41:41]MH_GetDate [16:41:41]Write to MH i2c: F0 00 00 FB 15 FF [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: F0 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: F0 09 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: F0 09 00 FB 15 00 45 6D 1E 67 22 05 6E 64 38 [16:41:41]GetLastDocTimeStamp 1730047222 [16:41:41]current date 1730047301 [16:41:41]FM_GetShiftState [16:41:41]SAM_PROTO_GetShiftState [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 13 01 00 [16:41:41]Write to MH i2c: E2 08 00 FC 15 80 13 01 00 00 00 00 00 8E [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0E 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0E 00 FC 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [16:41:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_GetShiftState done [16:41:41]FM_GetShiftState done [16:41:41]opened in 1729989159 [16:41:41]opened+sec_in_day 1730075559 [16:41:41]quantity*price = 20003 [16:41:41]sum+1 = 20004 [16:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 345 27.10.2024 16:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192313 ФПД: 227901902751146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192313&fm=227901902751146&tin=02508201610067®Number=0000000000091776&sum=20000 [16:41:42]StoreToDocumentArchive [16:41:42]shift 542 fd 192313 [16:41:42]save to /storage/0542/doc_00192313 [16:41:42]save last doc name /storage/0542/doc_00192313 to /storage/kkm_last_doc_name [16:41:42]save OK [16:41:42]Clear old archive folders... [16:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:42]tlvbuf is 00311990 [16:41:42]SAM_PROTO_ClearQueue [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 09 00 00 [16:41:42]Write to MH i2c: E2 08 00 09 16 80 09 00 00 00 00 00 00 91 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [16:41:42]RAPDU: 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_ClearQueue done [16:41:42]KKMCreateOFDPacket [16:41:42]OFDProtocolAddRootSTLVToBuf [16:41:42]FM_MakeSignedData [16:41:42]FM_MakeSignedData [16:41:42]SAM_PROTO_SignData [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 0D 01 02 [16:41:42]Write to MH i2c: E2 08 00 0A 16 80 0D 01 02 00 00 00 00 99 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [16:41:42]RAPDU: 90 00 [16:41:42]wFMCommunicate OK [16:41:42]wFMCommunicate request_size=255 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EF 02 00 35 04 06 00 CF [16:41:42]Write to MH i2c: E2 02 01 0B 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EF 02 00 35 04 06 00 CF 00 00 99 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [16:41:42]RAPDU: 90 00 [16:41:42]wFMCommunicate OK [16:41:42]wFMCommunicate request_size=10 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 0D 02 02 05 46 8B F5 05 AA [16:41:42]Write to MH i2c: E2 0D 00 0C 16 80 0D 02 02 05 00 46 8B F5 05 AA 00 00 1B [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 0C 16 00 90 00 96 [16:41:42]RAPDU: 90 00 [16:41:42]wFMCommunicate OK [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 0D 03 02 [16:41:42]Write to MH i2c: E2 08 00 0D 16 80 0D 03 02 00 00 00 00 9E [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0B 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0B 00 0D 16 00 66 6B 18 0C 1D 83 22 36 90 00 8C [16:41:42]RAPDU: 66 6B 18 0C 1D 83 22 36 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_SignData done [16:41:42]FM_MakeSignedData done [16:41:42]CreateOFDProtocolMessage [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 11 00 00 [16:41:42]Write to MH i2c: E2 08 00 0E 16 80 11 00 00 00 00 00 00 9E [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 0E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [16:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:42]wFMCommunicate OK [16:41:42]CreateOFDProtocolMessage done [16:41:42]OFDSenderStorePacket 192313 [16:41:42]StoreOFDPacket docnum=192313 [16:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 13 07 01 10 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EF 02 00 35 04 06 00 CF 46 8B F5 05 AA 66 6B 18 0C 1D 83 22 36 [16:41:42]CheckFolder [16:41:42]dirname=/storage/ofd_packets [16:41:42]CheckFolder done [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00192313 [16:41:42]NVStorageSaveData ofd_packets/00192313 [16:41:42]File name is /storage/ofd_packets/00192313 [16:41:42]Write 301 bytes [16:41:42]NVStorageSaveData done [16:41:42]OFDSenderStorePacket done [16:41:42]KKMCreateOFDPacket done [16:41:42]NVStorageSaveData kkm_last_timestamp [16:41:42]File name is /storage/kkm_last_timestamp [16:41:42]Write 4 bytes [16:41:42]NVStorageSaveData done [16:41:42]ExternCall_PrintAddStr [16:41:42]wPrintStart [16:41:42]Write to MH i2c: 01 00 00 0F 16 25 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 FF 0F 3A [16:41:42]RasterBufferAndPrint [16:41:42]line Счет N : (1)31629 [16:41:42]line ИНН: 02508201610067 [16:41:42]line Контрольно-Кассовый Чек [16:41:42]line ПРОДАЖА [16:41:42]line ТРК (МРК, ГНК) : 12 [16:41:42]line Товар: 2710124130 [16:41:42]line Аи-92-К-5 [16:41:42]line 2.990 * 66.90 [16:41:42]line = 200.03 [16:41:42]line НДС 12% НСП 1% [16:41:42]line > о реализуемом товаре [16:41:42]line ОКРУГЛЕНИЕ: -0.03 [16:41:42]line ИТОГО: 200.00 [16:41:42]line Внесено: 200.00 [16:41:42]line СДАЧА: 0.00 [16:41:42]line НСП 1% : 1.77 [16:41:42]line НДС 12% : 21.24 [16:41:42]line Наличными: 200.00 [16:41:42]line Безнал.: 0.00 [16:41:42]line Место: АЗС № 170 "Партнер Нефть" [16:41:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:41:42]line СНО: Общий режим [16:41:42]line Чек 345 27.10.2024 16:41 [16:41:42]line Смена: 542 ФФД: 1.0 [16:41:42]line ЗНМ: 0300000110 [16:41:42]line РНМ: 0000000000091776 [16:41:42]line Версия ККМ: 001 [16:41:42]line ФМ: 0000000000871754 [16:41:42]line ФД: 192313 [16:41:42]line ФПД: 227901902751146 [16:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192313&fm=227901902751146&tin=02508201610067®Number=0000000000091776&sum=20000 [16:41:43]OFD Sender: Processing packet 192313 [packets to send 75, broken 74] [16:41:43]ProducePacketName [16:41:43]name=ofd_packets/00192313 [16:41:43]OFD Sender: To server: pG, [16:41:43]CommunicateWithHost lk.salyk.kg:30040 [16:41:43]ConnectInit lk.salyk.kg [16:41:43]written 0, free lines is 4095 [16:41:43]Connected sock=10 [16:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 13 07 01 10 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 45 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EF 02 00 35 04 06 00 CF 46 8B F5 05 AA 66 6B 18 0C 1D 83 22 36 [16:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 E7 47 00 4E 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 EF 02 00 F4 03 04 00 0C 12 1E 67 B6 04 01 00 00 1B B4 0B 4C 04 94 77 3A [16:41:43]CommunicateWithHost err = 0 [16:41:43]CheckOFDResponse [16:41:43]1017 (14) - 77093643461234 [16:41:43]1041 (16) - 0000000000871754 [16:41:43]1040 (4) - 192313 [16:41:43]1012 (4) - 27.10.2024 10:12 [16:41:43]1206 (1) - 0 [16:41:43]OFD Sender: Remove packet 192313 [16:41:43]ProducePacketName [16:41:43]name=ofd_packets/00192313 [16:41:43]NVStorageDeleteData [16:41:43]Write to MH i2c: 01 00 00 3A 16 50 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: 01 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: 01 07 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: 01 07 00 3A 16 00 00 00 00 00 B8 0C 1B [16:41:43]RasterBufferAndPrint [16:41:43]line [16:41:43]line [16:41:43]line [16:41:43]line [16:41:43]line [16:41:43]written 0, free lines is 3263 [16:41:43]MH_Cut [16:41:43]Write to MH i2c: D1 01 00 41 16 01 29 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: D1 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: D1 01 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: D1 01 00 41 16 00 28 [16:41:43]Write to MH i2c: 01 00 00 42 16 58 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:44]OFD Sender: No OFD packet to send [16:41:44]*** Cut start [16:41:44]*** Partial cut [16:41:44]*** CUTSNS_PIN = 1 [16:41:44]*** CUTSNS_PIN = 0 [16:41:44]*** Brake cut motor [16:41:45]Read from MH i2c: 01 [16:41:45]MH_I2C_Read... [16:41:45]*** Stop cut motor [16:41:45]*** Cut end [16:41:45]Read from MH i2c: 01 07 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FF 0F 6D [16:41:45]process_action close_receipt done [16:41:45]requested_data is exist [16:41:45]produce_requested_data [16:41:45]requested_item fm.sn is exist - process it [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 11 00 00 [16:41:45]Write to MH i2c: E2 08 00 43 16 80 11 00 00 00 00 00 00 D3 [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:45]Read from MH i2c: E2 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 17 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 17 00 43 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [16:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:45]wFMCommunicate OK [16:41:45]requested_item fd.num is exist - process it [16:41:45]SAM_PROTO_GetFieldsCounters [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 13 00 00 [16:41:45]Write to MH i2c: E2 08 00 44 16 80 13 00 00 00 00 00 00 D6 [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:45]Read from MH i2c: E2 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 62 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 62 00 44 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:45]wFMCommunicate OK [16:41:45]SAM_PROTO_GetFieldsCounters done [16:41:45]requested_item shift.num is exist - process it [16:41:45]requested_item shift.opened is exist - process it [16:41:45]req_shift_opened [16:41:45]FM_GetShiftState [16:41:45]SAM_PROTO_GetShiftState [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 13 01 00 [16:41:45]Write to MH i2c: E2 08 00 45 16 80 13 01 00 00 00 00 00 D8 [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:45]Read from MH i2c: E2 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 0E 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 0E 00 45 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [16:41:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:41:45]wFMCommunicate OK [16:41:45]SAM_PROTO_GetShiftState done [16:41:45]FM_GetShiftState done [16:41:45]req_shift_opened done [16:41:45]requested_item shift.open_date is exist - process it [16:41:45]req_shift_open_date [16:41:45]req_shift_open_date done [16:41:45]produce_requested_data done [16:41:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192313,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:41:45]process_action_free close_receipt [16:41:45]json_value_free [16:41:45]json_value_free done [16:41:45]process_json_proto returns [16:41:45]Send response to host [16:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192313,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:41:45]free response buf [16:41:45]execute_script done [16:41:45]execute_script returns [16:41:45]free content buf [16:41:45]Sock 7.Close socket [16:41:45]Sock 7.Thread stoped [16:41:45]accept exits with 9 [16:41:45]New connection [16:41:45]New thread 3067080036 created [16:41:45]Thread 3066936676 joined [16:41:45]Waiting for new connection... [16:41:45] Sock 9.Parse request [16:41:45]Sock 9.Check first char [16:41:45]Sock 9.First char is OK [16:41:45]request: POST /json_proto HTTP/1.0 [16:41:45]Method: POST [16:41:45]URL: /json_proto [16:41:45]Method is POST - this is cgi request [16:41:45]url: /json_proto [16:41:45]query_string will be loaded in cgi processing [16:41:45]execute_cgi json_proto POST (null) [16:41:45]execute_cgi path=json_proto method=POST [16:41:45]POST find Content-Length [16:41:45]Host: 172.17.63.131:8080 [16:41:45]Content-Length: 676 [16:41:45]Content-Type: application/json [16:41:45] [16:41:45]POST finish read [16:41:45]Found Content-Length = 676 [16:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:45]execute_script... [16:41: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)31630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:45]POST & json_proto [16:41:45]process_json_proto [16:41:45]json parsed OK: [16:41:45]protocol is kg_v1.0 [16:41:45]action value=close_receipt [16:41:45]process_action close_receipt [16:41:45]cmd_close_receipt [16:41:45]MH_GetDate [16:41:45]Write to MH i2c: F0 00 00 46 16 4B [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: F0 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: F0 09 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: F0 09 00 46 16 00 4A 6D 1E 67 22 05 6E 64 89 [16:41:45]GetLastDocTimeStamp 1730047301 [16:41:45]current date 1730047306 [16:41:45]FM_GetShiftState [16:41:45]SAM_PROTO_GetShiftState [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 13 01 00 [16:41:45]Write to MH i2c: E2 08 00 47 16 80 13 01 00 00 00 00 00 DA [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 [16:41:45]MH_I2C_Read... [16:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:45]Read from MH i2c: E2 0E 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 0E 00 47 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [16:41:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:41:45]wFMCommunicate OK [16:41:45]SAM_PROTO_GetShiftState done [16:41:45]FM_GetShiftState done [16:41:45]opened in 1729989159 [16:41:45]opened+sec_in_day 1730075559 [16:41:45]quantity*price = 30038 [16:41:45]sum+1 = 30039 [16:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 346 27.10.2024 16:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192314 ФПД: 234073574631120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192314&fm=234073574631120&tin=02508201610067®Number=0000000000091776&sum=30000 [16:41:47]StoreToDocumentArchive [16:41:47]shift 542 fd 192314 [16:41:47]save to /storage/0542/doc_00192314 [16:41:47]save last doc name /storage/0542/doc_00192314 to /storage/kkm_last_doc_name [16:41:47]save OK [16:41:47]Clear old archive folders... [16:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:47]tlvbuf is 00389E10 [16:41:47]SAM_PROTO_ClearQueue [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 09 00 00 [16:41:47]Write to MH i2c: E2 08 00 54 16 80 09 00 00 00 00 00 00 DC [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 54 16 00 90 00 DE [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]SAM_PROTO_ClearQueue done [16:41:47]KKMCreateOFDPacket [16:41:47]OFDProtocolAddRootSTLVToBuf [16:41:47]FM_MakeSignedData [16:41:47]FM_MakeSignedData [16:41:47]SAM_PROTO_SignData [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 01 02 [16:41:47]Write to MH i2c: E2 08 00 55 16 80 0D 01 02 00 00 00 00 E4 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]wFMCommunicate request_size=255 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 4A 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EF 02 00 35 04 06 00 D4 [16:41:47]Write to MH i2c: E2 02 01 56 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 4A 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EF 02 00 35 04 06 00 D4 00 00 22 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 56 16 00 90 00 E0 [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]wFMCommunicate request_size=10 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 02 02 05 E3 80 44 66 D0 [16:41:47]Write to MH i2c: E2 0D 00 57 16 80 0D 02 02 05 00 E3 80 44 66 D0 00 00 CE [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 57 16 00 90 00 E1 [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 03 02 [16:41:47]Write to MH i2c: E2 08 00 58 16 80 0D 03 02 00 00 00 00 E9 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 0B 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 0B 00 58 16 00 EB 0E 5B 67 AD AA E5 7D 90 00 5E [16:41:47]RAPDU: EB 0E 5B 67 AD AA E5 7D 90 00 [16:41:47]wFMCommunicate OK [16:41:47]SAM_PROTO_SignData done [16:41:47]FM_MakeSignedData done [16:41:47]CreateOFDProtocolMessage [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 11 00 00 [16:41:47]Write to MH i2c: E2 08 00 59 16 80 11 00 00 00 00 00 00 E9 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 17 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 17 00 59 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [16:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:47]wFMCommunicate OK [16:41:47]CreateOFDProtocolMessage done [16:41:47]OFDSenderStorePacket 192314 [16:41:47]StoreOFDPacket docnum=192314 [16:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 A7 07 01 C9 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 4A 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EF 02 00 35 04 06 00 D4 E3 80 44 66 D0 EB 0E 5B 67 AD AA E5 7D [16:41:47]CheckFolder [16:41:47]dirname=/storage/ofd_packets [16:41:47]CheckFolder done [16:41:47]ProducePacketName [16:41:47]name=ofd_packets/00192314 [16:41:48]NVStorageSaveData ofd_packets/00192314 [16:41:48]File name is /storage/ofd_packets/00192314 [16:41:48]Write 301 bytes [16:41:48]NVStorageSaveData done [16:41:48]OFDSenderStorePacket done [16:41:48]KKMCreateOFDPacket done [16:41:48]NVStorageSaveData kkm_last_timestamp [16:41:48]File name is /storage/kkm_last_timestamp [16:41:48]Write 4 bytes [16:41:48]NVStorageSaveData done [16:41:48]ExternCall_PrintAddStr [16:41:48]wPrintStart [16:41:48]Write to MH i2c: 01 00 00 5A 16 70 [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 07 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 07 00 5A 16 00 00 00 00 00 FF 0F 85 [16:41:48]RasterBufferAndPrint [16:41:48]line Счет N : (1)31630 [16:41:48]line ИНН: 02508201610067 [16:41:48]line Контрольно-Кассовый Чек [16:41:48]line ПРОДАЖА [16:41:48]line ТРК (МРК, ГНК) : 21 [16:41:48]line Товар: 2710124130 [16:41:48]line Аи-92-К-5 [16:41:48]line 4.490 * 66.90 [16:41:48]line = 300.38 [16:41:48]line НДС 12% НСП 1% [16:41:48]line > о реализуемом товаре [16:41:48]line ОКРУГЛЕНИЕ: -0.38 [16:41:48]line ИТОГО: 300.00 [16:41:48]line Внесено: 300.00 [16:41:48]line СДАЧА: 0.00 [16:41:48]line НСП 1% : 2.66 [16:41:48]line НДС 12% : 31.90 [16:41:48]line Наличными: 300.00 [16:41:48]line Безнал.: 0.00 [16:41:48]line Место: АЗС № 170 "Партнер Нефть" [16:41:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:41:48]line СНО: Общий режим [16:41:48]line Чек 346 27.10.2024 16:41 [16:41:48]line Смена: 542 ФФД: 1.0 [16:41:48]line ЗНМ: 0300000110 [16:41:48]line РНМ: 0000000000091776 [16:41:48]line Версия ККМ: 001 [16:41:48]line ФМ: 0000000000871754 [16:41:48]line ФД: 192314 [16:41:48]line ФПД: 234073574631120 [16:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192314&fm=234073574631120&tin=02508201610067®Number=0000000000091776&sum=30000 [16:41:48]written 0, free lines is 4095 [16:41:48]OFD Sender: Processing packet 192314 [packets to send 75, broken 74] [16:41:48]ProducePacketName [16:41:48]name=ofd_packets/00192314 [16:41:48]OFD Sender: To server: pG, [16:41:48]CommunicateWithHost lk.salyk.kg:30040 [16:41:48]ConnectInit lk.salyk.kg [16:41:48]Connected sock=10 [16:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 A7 07 01 C9 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 4A 6D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EF 02 00 35 04 06 00 D4 E3 80 44 66 D0 EB 0E 5B 67 AD AA E5 7D [16:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 BB 47 00 F6 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A EF 02 00 F4 03 04 00 11 12 1E 67 B6 04 01 00 00 F9 68 9E 67 4B 3F 3A 58 [16:41:48]CommunicateWithHost err = 0 [16:41:48]CheckOFDResponse [16:41:48]1017 (14) - 77093643461234 [16:41:48]1041 (16) - 0000000000871754 [16:41:48]1040 (4) - 192314 [16:41:48]1012 (4) - 27.10.2024 10:12 [16:41:48]1206 (1) - 0 [16:41:48]OFD Sender: Remove packet 192314 [16:41:48]ProducePacketName [16:41:48]name=ofd_packets/00192314 [16:41:48]NVStorageDeleteData [16:41:48]Write to MH i2c: 01 00 00 85 16 9B [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 07 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 BA 0C 68 [16:41:48]RasterBufferAndPrint [16:41:48]line [16:41:48]line [16:41:48]line [16:41:48]line [16:41:48]line [16:41:48]written 0, free lines is 3271 [16:41:48]MH_Cut [16:41:48]Write to MH i2c: D1 01 00 8C 16 01 74 [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: D1 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: D1 01 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: D1 01 00 8C 16 00 73 [16:41:48]Write to MH i2c: 01 00 00 8D 16 A3 [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:49]OFD Sender: No OFD packet to send [16:41:49]*** Cut start [16:41:49]*** Partial cut [16:41:49]*** CUTSNS_PIN = 1 [16:41:49]*** CUTSNS_PIN = 0 [16:41:49]*** Brake cut motor [16:41:50]Read from MH i2c: 01 [16:41:50]MH_I2C_Read... [16:41:50]*** Stop cut motor [16:41:50]*** Cut end [16:41:50]Read from MH i2c: 01 07 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: 01 07 00 8D 16 00 00 00 00 00 FF 0F B8 [16:41:50]process_action close_receipt done [16:41:50]requested_data is exist [16:41:50]produce_requested_data [16:41:50]requested_item fm.sn is exist - process it [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 11 00 00 [16:41:50]Write to MH i2c: E2 08 00 8E 16 80 11 00 00 00 00 00 00 1E [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 17 00 [16:41:50]MH_I2C_Read... [16:41: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 37 35 34 90 00 71 [16:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:50]wFMCommunicate OK [16:41:50]requested_item fd.num is exist - process it [16:41:50]SAM_PROTO_GetFieldsCounters [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 13 00 00 [16:41:50]Write to MH i2c: E2 08 00 8F 16 80 13 00 00 00 00 00 00 21 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 62 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 62 00 8F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_GetFieldsCounters done [16:41:50]requested_item shift.num is exist - process it [16:41:50]requested_item shift.opened is exist - process it [16:41:50]req_shift_opened [16:41:50]FM_GetShiftState [16:41:50]SAM_PROTO_GetShiftState [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 13 01 00 [16:41:50]Write to MH i2c: E2 08 00 90 16 80 13 01 00 00 00 00 00 23 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 90 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 64 [16:41:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_GetShiftState done [16:41:50]FM_GetShiftState done [16:41:50]req_shift_opened done [16:41:50]requested_item shift.open_date is exist - process it [16:41:50]req_shift_open_date [16:41:50]req_shift_open_date done [16:41:50]produce_requested_data done [16:41:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192314,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:41:50]process_action_free close_receipt [16:41:50]json_value_free [16:41:50]json_value_free done [16:41:50]process_json_proto returns [16:41:50]Send response to host [16:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192314,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:41:50]free response buf [16:41:50]execute_script done [16:41:50]execute_script returns [16:41:50]free content buf [16:41:50]Sock 9.Close socket [16:41:50]Sock 9.Thread stoped [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:10]accept exits with 7 [16:45:10]New connection [16:45:10]New thread 3066936676 created [16:45:10]Thread 3067080036 joined [16:45:10]Waiting for new connection... [16:45:10] Sock 7.Parse request [16:45:10]Sock 7.Check first char [16:45:10]Sock 7.First char is OK [16:45:10]request: POST /json_proto HTTP/1.0 [16:45:10]Method: POST [16:45:10]URL: /json_proto [16:45:10]Method is POST - this is cgi request [16:45:10]url: /json_proto [16:45:10]query_string will be loaded in cgi processing [16:45:10]execute_cgi json_proto POST (null) [16:45:10]execute_cgi path=json_proto method=POST [16:45:10]POST find Content-Length [16:45:10]Host: 172.17.63.131:8080 [16:45:10]Content-Length: 681 [16:45:10]Content-Type: application/json [16:45:10] [16:45:10]POST finish read [16:45:10]Found Content-Length = 681 [16:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:10]execute_script... [16:45:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:10]POST & json_proto [16:45:10]process_json_proto [16:45:10]json parsed OK: [16:45:10]protocol is kg_v1.0 [16:45:10]action value=close_receipt [16:45:10]process_action close_receipt [16:45:10]cmd_close_receipt [16:45:10]MH_GetDate [16:45:10]Write to MH i2c: F0 00 00 91 16 96 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: F0 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: F0 09 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: F0 09 00 91 16 00 17 6E 1E 67 22 05 6E 64 A2 [16:45:10]GetLastDocTimeStamp 1730047306 [16:45:10]current date 1730047511 [16:45:10]FM_GetShiftState [16:45:10]SAM_PROTO_GetShiftState [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 13 01 00 [16:45:10]Write to MH i2c: E2 08 00 92 16 80 13 01 00 00 00 00 00 25 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0E 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0E 00 92 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [16:45:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:45:10]wFMCommunicate OK [16:45:10]SAM_PROTO_GetShiftState done [16:45:10]FM_GetShiftState done [16:45:10]opened in 1729989159 [16:45:10]opened+sec_in_day 1730075559 [16:45:10]quantity*price = 140021 [16:45:10]sum+1 = 140023 [16:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 347 27.10.2024 16:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192315 ФПД: 1792433809030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164511&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192315&fm=1792433809030&tin=02508201610067®Number=0000000000091776&sum=140000 [16:45:11]StoreToDocumentArchive [16:45:11]shift 542 fd 192315 [16:45:11]save to /storage/0542/doc_00192315 [16:45:11]save last doc name /storage/0542/doc_00192315 to /storage/kkm_last_doc_name [16:45:11]save OK [16:45:11]Clear old archive folders... [16:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:11]tlvbuf is 002CCAE0 [16:45:11]SAM_PROTO_ClearQueue [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 09 00 00 [16:45:11]Write to MH i2c: E2 08 00 9F 16 80 09 00 00 00 00 00 00 27 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 9F 16 00 90 00 29 [16:45:11]RAPDU: 90 00 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_ClearQueue done [16:45:11]KKMCreateOFDPacket [16:45:11]OFDProtocolAddRootSTLVToBuf [16:45:11]FM_MakeSignedData [16:45:11]FM_MakeSignedData [16:45:11]SAM_PROTO_SignData [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 0D 01 02 [16:45:11]Write to MH i2c: E2 08 00 A0 16 80 0D 01 02 00 00 00 00 2F [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [16:45:11]RAPDU: 90 00 [16:45:11]wFMCommunicate OK [16:45:11]wFMCommunicate request_size=255 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 17 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EF 02 00 35 04 06 00 01 [16:45:11]Write to MH i2c: E2 02 01 A1 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 17 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EF 02 00 35 04 06 00 01 00 00 8D [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 A1 16 00 90 00 2B [16:45:11]RAPDU: 90 00 [16:45:11]wFMCommunicate OK [16:45:11]wFMCommunicate request_size=10 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 0D 02 02 05 A1 55 61 66 86 [16:45:11]Write to MH i2c: E2 0D 00 A2 16 80 0D 02 02 05 00 A1 55 61 66 86 00 00 7F [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [16:45:11]RAPDU: 90 00 [16:45:11]wFMCommunicate OK [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 0D 03 02 [16:45:11]Write to MH i2c: E2 08 00 A3 16 80 0D 03 02 00 00 00 00 34 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0B 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0B 00 A3 16 00 97 50 54 15 4A 2E 2A 84 90 00 AB [16:45:11]RAPDU: 97 50 54 15 4A 2E 2A 84 90 00 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_SignData done [16:45:11]FM_MakeSignedData done [16:45:11]CreateOFDProtocolMessage [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 11 00 00 [16:45:11]Write to MH i2c: E2 08 00 A4 16 80 11 00 00 00 00 00 00 34 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 A4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [16:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:11]wFMCommunicate OK [16:45:11]CreateOFDProtocolMessage done [16:45:11]OFDSenderStorePacket 192315 [16:45:11]StoreOFDPacket docnum=192315 [16:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 88 07 01 ED 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 17 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EF 02 00 35 04 06 00 01 A1 55 61 66 86 97 50 54 15 4A 2E 2A 84 [16:45:11]CheckFolder [16:45:11]dirname=/storage/ofd_packets [16:45:11]CheckFolder done [16:45:11]ProducePacketName [16:45:11]name=ofd_packets/00192315 [16:45:11]NVStorageSaveData ofd_packets/00192315 [16:45:11]File name is /storage/ofd_packets/00192315 [16:45:11]Write 301 bytes [16:45:11]NVStorageSaveData done [16:45:11]OFDSenderStorePacket done [16:45:11]KKMCreateOFDPacket done [16:45:11]NVStorageSaveData kkm_last_timestamp [16:45:11]File name is /storage/kkm_last_timestamp [16:45:11]Write 4 bytes [16:45:11]NVStorageSaveData done [16:45:11]ExternCall_PrintAddStr [16:45:11]wPrintStart [16:45:11]Write to MH i2c: 01 00 00 A5 16 BB [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 07 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 07 00 A5 16 00 00 00 00 00 FF 0F D0 [16:45:11]RasterBufferAndPrint [16:45:11]line Счет N : (1)31631 [16:45:11]line ИНН: 02508201610067 [16:45:11]line Контрольно-Кассовый Чек [16:45:11]line ПРОДАЖА [16:45:11]line ТРК (МРК, ГНК) : 12 [16:45:11]line Товар: 2710124130 [16:45:11]line Аи-92-К-5 [16:45:11]line 20.930 * 66.90 [16:45:11]line = 1400.22 [16:45:11]line НДС 12% НСП 1% [16:45:11]line > о реализуемом товаре [16:45:11]line ОКРУГЛЕНИЕ: -0.22 [16:45:11]line ИТОГО: 1400.00 [16:45:11]line Внесено: 1400.00 [16:45:11]line СДАЧА: 0.00 [16:45:11]line НСП 1% : 12.39 [16:45:11]line НДС 12% : 148.70 [16:45:11]line Наличными: 1400.00 [16:45:11]line Безнал.: 0.00 [16:45:11]line Место: АЗС № 170 "Партнер Нефть" [16:45:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:45:11]line СНО: Общий режим [16:45:11]line Чек 347 27.10.2024 16:45 [16:45:11]line Смена: 542 ФФД: 1.0 [16:45:11]line ЗНМ: 0300000110 [16:45:11]line РНМ: 0000000000091776 [16:45:11]line Версия ККМ: 001 [16:45:11]line ФМ: 0000000000871754 [16:45:11]line ФД: 192315 [16:45:11]line ФПД: 1792433809030 [16:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164511&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192315&fm=1792433809030&tin=02508201610067®Number=0000000000091776&sum=140000 [16:45:12]OFD Sender: Processing packet 192315 [packets to send 75, broken 74] [16:45:12]ProducePacketName [16:45:12]name=ofd_packets/00192315 [16:45:12]OFD Sender: To server: pG, [16:45:12]CommunicateWithHost lk.salyk.kg:30040 [16:45:12]ConnectInit lk.salyk.kg [16:45:12]written 0, free lines is 4095 [16:45:12]Connected sock=10 [16:45:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 88 07 01 ED 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 17 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EF 02 00 35 04 06 00 01 A1 55 61 66 86 97 50 54 15 4A 2E 2A 84 [16:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A3 97 47 00 FD 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B EF 02 00 F4 03 04 00 DE 12 1E 67 B6 04 01 00 00 8C 84 9A 0D 6C F1 03 AB [16:45:12]CommunicateWithHost err = 0 [16:45:12]CheckOFDResponse [16:45:12]1017 (14) - 77093643461234 [16:45:12]1041 (16) - 0000000000871754 [16:45:12]1040 (4) - 192315 [16:45:12]1012 (4) - 27.10.2024 10:15 [16:45:12]1206 (1) - 0 [16:45:12]OFD Sender: Remove packet 192315 [16:45:12]ProducePacketName [16:45:12]name=ofd_packets/00192315 [16:45:12]NVStorageDeleteData [16:45:12]Write to MH i2c: 01 00 00 D0 16 E6 [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: 01 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: 01 07 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 AF 0C A8 [16:45:12]RasterBufferAndPrint [16:45:12]line [16:45:12]line [16:45:12]line [16:45:12]line [16:45:12]line [16:45:12]written 0, free lines is 3251 [16:45:12]MH_Cut [16:45:12]Write to MH i2c: D1 01 00 D7 16 01 BF [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: D1 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: D1 01 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: D1 01 00 D7 16 00 BE [16:45:12]Write to MH i2c: 01 00 00 D8 16 EE [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:13]OFD Sender: No OFD packet to send [16:45:13]*** Cut start [16:45:13]*** Partial cut [16:45:13]*** CUTSNS_PIN = 1 [16:45:13]*** CUTSNS_PIN = 0 [16:45:13]*** Brake cut motor [16:45:14]Read from MH i2c: 01 [16:45:14]MH_I2C_Read... [16:45:14]*** Stop cut motor [16:45:14]*** Cut end [16:45:14]Read from MH i2c: 01 07 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 FF 0F 03 [16:45:14]process_action close_receipt done [16:45:14]requested_data is exist [16:45:14]produce_requested_data [16:45:14]requested_item fm.sn is exist - process it [16:45:14]wFMCommunicate request_size=4 [16:45:14]MH_SAM_APDU [16:45:14]CAPDU: 80 11 00 00 [16:45:14]Write to MH i2c: E2 08 00 D9 16 80 11 00 00 00 00 00 00 69 [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:14]Read from MH i2c: E2 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 17 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 17 00 D9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [16:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:14]wFMCommunicate OK [16:45:14]requested_item fd.num is exist - process it [16:45:14]SAM_PROTO_GetFieldsCounters [16:45:14]wFMCommunicate request_size=4 [16:45:14]MH_SAM_APDU [16:45:14]CAPDU: 80 13 00 00 [16:45:14]Write to MH i2c: E2 08 00 DA 16 80 13 00 00 00 00 00 00 6C [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:14]Read from MH i2c: E2 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 62 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 62 00 DA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:45:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:14]wFMCommunicate OK [16:45:14]SAM_PROTO_GetFieldsCounters done [16:45:14]requested_item shift.num is exist - process it [16:45:14]requested_item shift.opened is exist - process it [16:45:14]req_shift_opened [16:45:14]FM_GetShiftState [16:45:14]SAM_PROTO_GetShiftState [16:45:14]wFMCommunicate request_size=4 [16:45:14]MH_SAM_APDU [16:45:14]CAPDU: 80 13 01 00 [16:45:14]Write to MH i2c: E2 08 00 DB 16 80 13 01 00 00 00 00 00 6E [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:14]Read from MH i2c: E2 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 0E 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: E2 0E 00 DB 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AF [16:45:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:45:14]wFMCommunicate OK [16:45:14]SAM_PROTO_GetShiftState done [16:45:14]FM_GetShiftState done [16:45:14]req_shift_opened done [16:45:14]requested_item shift.open_date is exist - process it [16:45:14]req_shift_open_date [16:45:14]req_shift_open_date done [16:45:14]produce_requested_data done [16:45:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192315,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:45:14]process_action_free close_receipt [16:45:14]json_value_free [16:45:14]json_value_free done [16:45:14]process_json_proto returns [16:45:14]Send response to host [16:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192315,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:45:14]free response buf [16:45:14]execute_script done [16:45:14]execute_script returns [16:45:14]free content buf [16:45:14]Sock 7.Close socket [16:45:14]Sock 7.Thread stoped [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:40]accept exits with 9 [16:45:40]New connection [16:45:40]New thread 3067080036 created [16:45:40]Thread 3066936676 joined [16:45:40]Waiting for new connection... [16:45:40] Sock 9.Parse request [16:45:40]Sock 9.Check first char [16:45:40]Sock 9.First char is OK [16:45:40]request: POST /json_proto HTTP/1.0 [16:45:40]Method: POST [16:45:40]URL: /json_proto [16:45:40]Method is POST - this is cgi request [16:45:40]url: /json_proto [16:45:40]query_string will be loaded in cgi processing [16:45:40]execute_cgi json_proto POST (null) [16:45:40]execute_cgi path=json_proto method=POST [16:45:40]POST find Content-Length [16:45:40]Host: 172.17.63.131:8080 [16:45:40]Content-Length: 676 [16:45:40]Content-Type: application/json [16:45:40] [16:45:40]POST finish read [16:45:40]Found Content-Length = 676 [16:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:40]execute_script... [16:45: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)31633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:40]POST & json_proto [16:45:40]process_json_proto [16:45:40]json parsed OK: [16:45:40]protocol is kg_v1.0 [16:45:40]action value=close_receipt [16:45:40]process_action close_receipt [16:45:40]cmd_close_receipt [16:45:40]MH_GetDate [16:45:40]Write to MH i2c: F0 00 00 DC 16 E1 [16:45:40]Write i2c OK [16:45:40]MH_I2C_Read... [16:45:40]Read from MH i2c: F0 [16:45:40]MH_I2C_Read... [16:45:40]Read from MH i2c: F0 09 00 [16:45:40]MH_I2C_Read... [16:45:40]Read from MH i2c: F0 09 00 DC 16 00 35 6E 1E 67 22 05 6E 64 0B [16:45:40]GetLastDocTimeStamp 1730047511 [16:45:40]current date 1730047541 [16:45:40]FM_GetShiftState [16:45:40]SAM_PROTO_GetShiftState [16:45:40]wFMCommunicate request_size=4 [16:45:40]MH_SAM_APDU [16:45:40]CAPDU: 80 13 01 00 [16:45:40]Write to MH i2c: E2 08 00 DD 16 80 13 01 00 00 00 00 00 70 [16:45:40]Write i2c OK [16:45:40]MH_I2C_Read... [16:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:40]Read from MH i2c: E2 [16:45:40]MH_I2C_Read... [16:45:40]Read from MH i2c: E2 0E 00 [16:45:40]MH_I2C_Read... [16:45:40]Read from MH i2c: E2 0E 00 DD 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B1 [16:45:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:45:40]wFMCommunicate OK [16:45:40]SAM_PROTO_GetShiftState done [16:45:40]FM_GetShiftState done [16:45:40]opened in 1729989159 [16:45:40]opened+sec_in_day 1730075559 [16:45:40]quantity*price = 45023 [16:45:40]sum+1 = 45025 [16:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 348 27.10.2024 16:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192316 ФПД: 212052079688272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164541&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192316&fm=212052079688272&tin=02508201610067®Number=0000000000091776&sum=45000 [16:45:41]StoreToDocumentArchive [16:45:41]shift 542 fd 192316 [16:45:41]save to /storage/0542/doc_00192316 [16:45:41]save last doc name /storage/0542/doc_00192316 to /storage/kkm_last_doc_name [16:45:41]save OK [16:45:41]Clear old archive folders... [16:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:41]tlvbuf is B6EE00E0 [16:45:41]SAM_PROTO_ClearQueue [16:45:41]wFMCommunicate request_size=4 [16:45:41]MH_SAM_APDU [16:45:41]CAPDU: 80 09 00 00 [16:45:41]Write to MH i2c: E2 08 00 EA 16 80 09 00 00 00 00 00 00 72 [16:45:41]Write i2c OK [16:45:41]MH_I2C_Read... [16:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:41]Read from MH i2c: E2 [16:45:41]MH_I2C_Read... [16:45:41]Read from MH i2c: E2 03 00 [16:45:41]MH_I2C_Read... [16:45:41]Read from MH i2c: E2 03 00 EA 16 00 90 00 74 [16:45:41]RAPDU: 90 00 [16:45:41]wFMCommunicate OK [16:45:41]SAM_PROTO_ClearQueue done [16:45:41]KKMCreateOFDPacket [16:45:41]OFDProtocolAddRootSTLVToBuf [16:45:41]FM_MakeSignedData [16:45:41]FM_MakeSignedData [16:45:41]SAM_PROTO_SignData [16:45:41]wFMCommunicate request_size=4 [16:45:41]MH_SAM_APDU [16:45:41]CAPDU: 80 0D 01 02 [16:45:41]Write to MH i2c: E2 08 00 EB 16 80 0D 01 02 00 00 00 00 7A [16:45:41]Write i2c OK [16:45:41]MH_I2C_Read... [16:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:41]Read from MH i2c: E2 [16:45:41]MH_I2C_Read... [16:45:41]Read from MH i2c: E2 03 00 [16:45:41]MH_I2C_Read... [16:45:41]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [16:45:41]RAPDU: 90 00 [16:45:41]wFMCommunicate OK [16:45:41]wFMCommunicate request_size=255 [16:45:41]MH_SAM_APDU [16:45: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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 35 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EF 02 00 35 04 06 00 C0 [16:45:41]Write to MH i2c: E2 02 01 EC 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 35 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EF 02 00 35 04 06 00 C0 00 00 86 [16:45:41]Write i2c OK [16:45:41]MH_I2C_Read... [16:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:42]Read from MH i2c: E2 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 03 00 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 03 00 EC 16 00 90 00 76 [16:45:42]RAPDU: 90 00 [16:45:42]wFMCommunicate OK [16:45:42]wFMCommunicate request_size=10 [16:45:42]MH_SAM_APDU [16:45:42]CAPDU: 80 0D 02 02 05 DC 38 E2 3A 50 [16:45:42]Write to MH i2c: E2 0D 00 ED 16 80 0D 02 02 05 00 DC 38 E2 3A 50 00 00 07 [16:45:42]Write i2c OK [16:45:42]MH_I2C_Read... [16:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:42]Read from MH i2c: E2 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 03 00 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [16:45:42]RAPDU: 90 00 [16:45:42]wFMCommunicate OK [16:45:42]wFMCommunicate request_size=4 [16:45:42]MH_SAM_APDU [16:45:42]CAPDU: 80 0D 03 02 [16:45:42]Write to MH i2c: E2 08 00 EE 16 80 0D 03 02 00 00 00 00 7F [16:45:42]Write i2c OK [16:45:42]MH_I2C_Read... [16:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:42]Read from MH i2c: E2 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 0B 00 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 0B 00 EE 16 00 63 10 C8 D6 2E D8 D6 B3 90 00 20 [16:45:42]RAPDU: 63 10 C8 D6 2E D8 D6 B3 90 00 [16:45:42]wFMCommunicate OK [16:45:42]SAM_PROTO_SignData done [16:45:42]FM_MakeSignedData done [16:45:42]CreateOFDProtocolMessage [16:45:42]wFMCommunicate request_size=4 [16:45:42]MH_SAM_APDU [16:45:42]CAPDU: 80 11 00 00 [16:45:42]Write to MH i2c: E2 08 00 EF 16 80 11 00 00 00 00 00 00 7F [16:45:42]Write i2c OK [16:45:42]MH_I2C_Read... [16:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:42]Read from MH i2c: E2 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 17 00 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: E2 17 00 EF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [16:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:42]wFMCommunicate OK [16:45:42]CreateOFDProtocolMessage done [16:45:42]OFDSenderStorePacket 192316 [16:45:42]StoreOFDPacket docnum=192316 [16:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 AE 07 01 34 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 35 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EF 02 00 35 04 06 00 C0 DC 38 E2 3A 50 63 10 C8 D6 2E D8 D6 B3 [16:45:42]CheckFolder [16:45:42]dirname=/storage/ofd_packets [16:45:42]CheckFolder done [16:45:42]ProducePacketName [16:45:42]name=ofd_packets/00192316 [16:45:42]NVStorageSaveData ofd_packets/00192316 [16:45:42]File name is /storage/ofd_packets/00192316 [16:45:42]Write 301 bytes [16:45:42]NVStorageSaveData done [16:45:42]OFDSenderStorePacket done [16:45:42]KKMCreateOFDPacket done [16:45:42]NVStorageSaveData kkm_last_timestamp [16:45:42]File name is /storage/kkm_last_timestamp [16:45:42]Write 4 bytes [16:45:42]NVStorageSaveData done [16:45:42]ExternCall_PrintAddStr [16:45:42]wPrintStart [16:45:42]Write to MH i2c: 01 00 00 F0 16 06 [16:45:42]Write i2c OK [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: 01 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: 01 07 00 [16:45:42]MH_I2C_Read... [16:45:42]Read from MH i2c: 01 07 00 F0 16 00 00 00 00 00 FF 0F 1B [16:45:42]RasterBufferAndPrint [16:45:42]line Счет N : (1)31633 [16:45:42]line ИНН: 02508201610067 [16:45:42]line Контрольно-Кассовый Чек [16:45:42]line ПРОДАЖА [16:45:42]line ТРК (МРК, ГНК) : 21 [16:45:42]line Товар: 2710124130 [16:45:42]line Аи-92-К-5 [16:45:42]line 6.730 * 66.90 [16:45:42]line = 450.24 [16:45:42]line НДС 12% НСП 1% [16:45:42]line > о реализуемом товаре [16:45:42]line ОКРУГЛЕНИЕ: -0.24 [16:45:42]line ИТОГО: 450.00 [16:45:42]line Внесено: 450.00 [16:45:42]line СДАЧА: 0.00 [16:45:42]line НСП 1% : 3.98 [16:45:42]line НДС 12% : 47.81 [16:45:42]line Наличными: 450.00 [16:45:42]line Безнал.: 0.00 [16:45:42]line Место: АЗС № 170 "Партнер Нефть" [16:45:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:45:42]line СНО: Общий режим [16:45:42]line Чек 348 27.10.2024 16:45 [16:45:42]line Смена: 542 ФФД: 1.0 [16:45:42]line ЗНМ: 0300000110 [16:45:42]line РНМ: 0000000000091776 [16:45:42]line Версия ККМ: 001 [16:45:42]line ФМ: 0000000000871754 [16:45:42]line ФД: 192316 [16:45:42]line ФПД: 212052079688272 [16:45:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164541&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192316&fm=212052079688272&tin=02508201610067®Number=0000000000091776&sum=45000 [16:45:42]OFD Sender: Processing packet 192316 [packets to send 75, broken 74] [16:45:42]ProducePacketName [16:45:42]name=ofd_packets/00192316 [16:45:42]OFD Sender: To server: pG, [16:45:42]CommunicateWithHost lk.salyk.kg:30040 [16:45:42]ConnectInit lk.salyk.kg [16:45:42]written 0, free lines is 4095 [16:45:42]Connected sock=10 [16:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 AE 07 01 34 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 35 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EF 02 00 35 04 06 00 C0 DC 38 E2 3A 50 63 10 C8 D6 2E D8 D6 B3 [16:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 2E 47 00 B1 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C EF 02 00 F4 03 04 00 FC 12 1E 67 B6 04 01 00 00 3E 10 C1 CA 3A E5 33 BC [16:45:42]CommunicateWithHost err = 0 [16:45:42]CheckOFDResponse [16:45:42]1017 (14) - 77093643461234 [16:45:42]1041 (16) - 0000000000871754 [16:45:42]1040 (4) - 192316 [16:45:42]1012 (4) - 27.10.2024 10:16 [16:45:42]1206 (1) - 0 [16:45:42]OFD Sender: Remove packet 192316 [16:45:42]ProducePacketName [16:45:42]name=ofd_packets/00192316 [16:45:42]NVStorageDeleteData [16:45:43]Write to MH i2c: 01 00 00 1B 17 32 [16:45:43]Write i2c OK [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: 01 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: 01 07 00 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: 01 07 00 1B 17 00 00 00 00 00 A7 0C EC [16:45:43]RasterBufferAndPrint [16:45:43]line [16:45:43]line [16:45:43]line [16:45:43]line [16:45:43]line [16:45:43]written 0, free lines is 3245 [16:45:43]MH_Cut [16:45:43]Write to MH i2c: D1 01 00 22 17 01 0B [16:45:43]Write i2c OK [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: D1 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: D1 01 00 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: D1 01 00 22 17 00 0A [16:45:43]Write to MH i2c: 01 00 00 23 17 3A [16:45:43]Write i2c OK [16:45:43]MH_I2C_Read... [16:45:43]OFD Sender: No OFD packet to send [16:45:43]*** Cut start [16:45:43]*** Partial cut [16:45:43]*** CUTSNS_PIN = 1 [16:45:43]*** CUTSNS_PIN = 0 [16:45:44]*** Brake cut motor [16:45:44]Read from MH i2c: 01 [16:45:44]MH_I2C_Read... [16:45:44]*** Stop cut motor [16:45:44]*** Cut end [16:45:44]Read from MH i2c: 01 07 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: 01 07 00 23 17 00 00 00 00 00 FF 0F 4F [16:45:44]process_action close_receipt done [16:45:44]requested_data is exist [16:45:44]produce_requested_data [16:45:44]requested_item fm.sn is exist - process it [16:45:44]wFMCommunicate request_size=4 [16:45:44]MH_SAM_APDU [16:45:44]CAPDU: 80 11 00 00 [16:45:44]Write to MH i2c: E2 08 00 24 17 80 11 00 00 00 00 00 00 B5 [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:44]Read from MH i2c: E2 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 17 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 17 00 24 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [16:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:44]wFMCommunicate OK [16:45:44]requested_item fd.num is exist - process it [16:45:44]SAM_PROTO_GetFieldsCounters [16:45:44]wFMCommunicate request_size=4 [16:45:44]MH_SAM_APDU [16:45:44]CAPDU: 80 13 00 00 [16:45:44]Write to MH i2c: E2 08 00 25 17 80 13 00 00 00 00 00 00 B8 [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:44]Read from MH i2c: E2 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 62 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 62 00 25 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:45:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:44]wFMCommunicate OK [16:45:44]SAM_PROTO_GetFieldsCounters done [16:45:44]requested_item shift.num is exist - process it [16:45:44]requested_item shift.opened is exist - process it [16:45:44]req_shift_opened [16:45:44]FM_GetShiftState [16:45:44]SAM_PROTO_GetShiftState [16:45:44]wFMCommunicate request_size=4 [16:45:44]MH_SAM_APDU [16:45:44]CAPDU: 80 13 01 00 [16:45:44]Write to MH i2c: E2 08 00 26 17 80 13 01 00 00 00 00 00 BA [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:44]Read from MH i2c: E2 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 0E 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 0E 00 26 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [16:45:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:45:44]wFMCommunicate OK [16:45:44]SAM_PROTO_GetShiftState done [16:45:44]FM_GetShiftState done [16:45:44]req_shift_opened done [16:45:44]requested_item shift.open_date is exist - process it [16:45:44]req_shift_open_date [16:45:44]req_shift_open_date done [16:45:44]produce_requested_data done [16:45:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192316,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:45:44]process_action_free close_receipt [16:45:44]json_value_free [16:45:44]json_value_free done [16:45:44]process_json_proto returns [16:45:44]Send response to host [16:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192316,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:45:44]free response buf [16:45:44]execute_script done [16:45:44]execute_script returns [16:45:44]free content buf [16:45:44]Sock 9.Close socket [16:45:44]Sock 9.Thread stoped [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:57]accept exits with 7 [16:45:57]New connection [16:45:57]New thread 3066936676 created [16:45:57]Thread 3067080036 joined [16:45:57]Waiting for new connection... [16:45:57] Sock 7.Parse request [16:45:57]Sock 7.Check first char [16:45:57]Sock 7.First char is OK [16:45:57]request: POST /json_proto HTTP/1.0 [16:45:57]Method: POST [16:45:57]URL: /json_proto [16:45:57]Method is POST - this is cgi request [16:45:57]url: /json_proto [16:45:57]query_string will be loaded in cgi processing [16:45:57]execute_cgi json_proto POST (null) [16:45:57]execute_cgi path=json_proto method=POST [16:45:57]POST find Content-Length [16:45:57]Host: 172.17.63.131:8080 [16:45:57]Content-Length: 678 [16:45:57]Content-Type: application/json [16:45:57] [16:45:57]POST finish read [16:45:57]Found Content-Length = 678 [16:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31632", "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" : 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" ] } } [16:45:57]execute_script... [16:45: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)31632", "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" : 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" ] } } [16:45:57]POST & json_proto [16:45:57]process_json_proto [16:45:57]json parsed OK: [16:45:57]protocol is kg_v1.0 [16:45:57]action value=close_receipt [16:45:57]process_action close_receipt [16:45:57]cmd_close_receipt [16:45:57]MH_GetDate [16:45:57]Write to MH i2c: F0 00 00 27 17 2D [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: F0 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: F0 09 00 [16:45:57]MH_I2C_Read... [16:45:57]Read from MH i2c: F0 09 00 27 17 00 46 6E 1E 67 22 05 6E 64 68 [16:45:57]GetLastDocTimeStamp 1730047541 [16:45:57]current date 1730047558 [16:45:57]FM_GetShiftState [16:45:57]SAM_PROTO_GetShiftState [16:45:57]wFMCommunicate request_size=4 [16:45:57]MH_SAM_APDU [16:45:57]CAPDU: 80 13 01 00 [16:45:57]Write to MH i2c: E2 08 00 28 17 80 13 01 00 00 00 00 00 BC [16:45:57]Write i2c OK [16:45:57]MH_I2C_Read... [16:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:58]Read from MH i2c: E2 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: E2 0E 00 [16:45:58]MH_I2C_Read... [16:45:58]Read from MH i2c: E2 0E 00 28 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [16:45:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:45:58]wFMCommunicate OK [16:45:58]SAM_PROTO_GetShiftState done [16:45:58]FM_GetShiftState done [16:45:58]opened in 1729989159 [16:45:58]opened+sec_in_day 1730075559 [16:45:58]quantity*price = 100050 [16:45:58]sum+1 = 100052 [16:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 349 27.10.2024 16:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192317 ФПД: 149446740367850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192317&fm=149446740367850&tin=02508201610067®Number=0000000000091776&sum=100000 [16:45:59]StoreToDocumentArchive [16:45:59]shift 542 fd 192317 [16:45:59]save to /storage/0542/doc_00192317 [16:45:59]save last doc name /storage/0542/doc_00192317 to /storage/kkm_last_doc_name [16:45:59]save OK [16:45:59]Clear old archive folders... [16:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:59]tlvbuf is 003005D0 [16:45:59]SAM_PROTO_ClearQueue [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 09 00 00 [16:45:59]Write to MH i2c: E2 08 00 35 17 80 09 00 00 00 00 00 00 BE [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 35 17 00 90 00 C0 [16:45:59]RAPDU: 90 00 [16:45:59]wFMCommunicate OK [16:45:59]SAM_PROTO_ClearQueue done [16:45:59]KKMCreateOFDPacket [16:45:59]OFDProtocolAddRootSTLVToBuf [16:45:59]FM_MakeSignedData [16:45:59]FM_MakeSignedData [16:45:59]SAM_PROTO_SignData [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 0D 01 02 [16:45:59]Write to MH i2c: E2 08 00 36 17 80 0D 01 02 00 00 00 00 C6 [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 36 17 00 90 00 C1 [16:45:59]RAPDU: 90 00 [16:45:59]wFMCommunicate OK [16:45:59]wFMCommunicate request_size=255 [16:45:59]MH_SAM_APDU [16:45: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 5D 01 00 00 F4 03 04 00 46 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EF 02 00 35 04 06 00 87 EB C7 DF [16:45:59]Write to MH i2c: E2 02 01 37 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 5D 01 00 00 F4 03 04 00 46 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EF 02 00 35 04 06 00 87 EB C7 DF 00 00 4D [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:59]Read from MH i2c: E2 03 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 37 17 00 90 00 C2 [16:45:59]RAPDU: 90 00 [16:45:59]wFMCommunicate OK [16:45:59]wFMCommunicate request_size=7 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 0D 02 02 02 59 EA [16:45:59]Write to MH i2c: E2 0A 00 38 17 80 0D 02 02 02 00 59 EA 00 00 10 [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [16:45:59]RAPDU: 90 00 [16:45:59]wFMCommunicate OK [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 0D 03 02 [16:45:59]Write to MH i2c: E2 08 00 39 17 80 0D 03 02 00 00 00 00 CB [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 0B 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 0B 00 39 17 00 DD BB 41 4E EA 9E 0B 61 90 00 E7 [16:45:59]RAPDU: DD BB 41 4E EA 9E 0B 61 90 00 [16:45:59]wFMCommunicate OK [16:45:59]SAM_PROTO_SignData done [16:45:59]FM_MakeSignedData done [16:45:59]CreateOFDProtocolMessage [16:45:59]wFMCommunicate request_size=4 [16:45:59]MH_SAM_APDU [16:45:59]CAPDU: 80 11 00 00 [16:45:59]Write to MH i2c: E2 08 00 3A 17 80 11 00 00 00 00 00 00 CB [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:59]Read from MH i2c: E2 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 17 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: E2 17 00 3A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [16:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:59]wFMCommunicate OK [16:45:59]CreateOFDProtocolMessage done [16:45:59]OFDSenderStorePacket 192317 [16:45:59]StoreOFDPacket docnum=192317 [16:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5F BA 04 01 07 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5D 01 00 00 F4 03 04 00 46 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EF 02 00 35 04 06 00 87 EB C7 DF 59 EA DD BB 41 4E EA 9E 0B 61 [16:45:59]CheckFolder [16:45:59]dirname=/storage/ofd_packets [16:45:59]CheckFolder done [16:45:59]ProducePacketName [16:45:59]name=ofd_packets/00192317 [16:45:59]NVStorageSaveData ofd_packets/00192317 [16:45:59]File name is /storage/ofd_packets/00192317 [16:45:59]Write 298 bytes [16:45:59]NVStorageSaveData done [16:45:59]OFDSenderStorePacket done [16:45:59]KKMCreateOFDPacket done [16:45:59]NVStorageSaveData kkm_last_timestamp [16:45:59]File name is /storage/kkm_last_timestamp [16:45:59]Write 4 bytes [16:45:59]NVStorageSaveData done [16:45:59]ExternCall_PrintAddStr [16:45:59]wPrintStart [16:45:59]Write to MH i2c: 01 00 00 3B 17 52 [16:45:59]Write i2c OK [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: 01 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: 01 07 00 [16:45:59]MH_I2C_Read... [16:45:59]Read from MH i2c: 01 07 00 3B 17 00 00 00 00 00 FF 0F 67 [16:45:59]RasterBufferAndPrint [16:45:59]line Счет N : (1)31632 [16:45:59]line ИНН: 02508201610067 [16:45:59]line Контрольно-Кассовый Чек [16:45:59]line ПРОДАЖА [16:45:59]line ТРК (МРК, ГНК) : 11 [16:45:59]line Товар: 2710194210 [16:45:59]line ДТ-К-5 [16:45:59]line 13.130 * 76.20 [16:45:59]line = 1000.51 [16:45:59]line НДС 12% НСП 1% [16:45:59]line > о реализуемом товаре [16:45:59]line ОКРУГЛЕНИЕ: -0.51 [16:45:59]line ИТОГО: 1000.00 [16:45:59]line Внесено: 1000.00 [16:45:59]line СДАЧА: 0.00 [16:45:59]line НСП 1% : 8.85 [16:45:59]line НДС 12% : 106.25 [16:45:59]line Наличными: 1000.00 [16:45:59]line Безнал.: 0.00 [16:45:59]line Место: АЗС № 170 "Партнер Нефть" [16:45:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:45:59]line СНО: Общий режим [16:45:59]line Чек 349 27.10.2024 16:45 [16:45:59]line Смена: 542 ФФД: 1.0 [16:45:59]line ЗНМ: 0300000110 [16:45:59]line РНМ: 0000000000091776 [16:45:59]line Версия ККМ: 001 [16:45:59]line ФМ: 0000000000871754 [16:45:59]line ФД: 192317 [16:45:59]line ФПД: 149446740367850 [16:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164558&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192317&fm=149446740367850&tin=02508201610067®Number=0000000000091776&sum=100000 [16:46:00]OFD Sender: Processing packet 192317 [packets to send 75, broken 74] [16:46:00]ProducePacketName [16:46:00]name=ofd_packets/00192317 [16:46:00]OFD Sender: To server: pG, [16:46:00]CommunicateWithHost lk.salyk.kg:30040 [16:46:00]ConnectInit lk.salyk.kg [16:46:00]written 0, free lines is 4095 [16:46:00]Connected sock=10 [16:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5F BA 04 01 07 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5D 01 00 00 F4 03 04 00 46 6E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EF 02 00 35 04 06 00 87 EB C7 DF 59 EA DD BB 41 4E EA 9E 0B 61 [16:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 32 47 00 18 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D EF 02 00 F4 03 04 00 0D 13 1E 67 B6 04 01 00 00 AB 3F 53 7A C0 51 3F 5C [16:46:00]CommunicateWithHost err = 0 [16:46:00]CheckOFDResponse [16:46:00]1017 (14) - 77093643461234 [16:46:00]1041 (16) - 0000000000871754 [16:46:00]1040 (4) - 192317 [16:46:00]1012 (4) - 27.10.2024 10:16 [16:46:00]1206 (1) - 0 [16:46:00]OFD Sender: Remove packet 192317 [16:46:00]ProducePacketName [16:46:00]name=ofd_packets/00192317 [16:46:00]NVStorageDeleteData [16:46:00]Write to MH i2c: 01 00 00 66 17 7D [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: 01 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: 01 07 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 AB 0C 3B [16:46:00]RasterBufferAndPrint [16:46:00]line [16:46:00]line [16:46:00]line [16:46:00]line [16:46:00]line [16:46:00]written 0, free lines is 3250 [16:46:00]MH_Cut [16:46:00]Write to MH i2c: D1 01 00 6D 17 01 56 [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: D1 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: D1 01 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: D1 01 00 6D 17 00 55 [16:46:00]Write to MH i2c: 01 00 00 6E 17 85 [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]OFD Sender: No OFD packet to send [16:46:01]*** Cut start [16:46:01]*** Partial cut [16:46:01]*** CUTSNS_PIN = 1 [16:46:01]*** CUTSNS_PIN = 0 [16:46:01]*** Brake cut motor [16:46:01]Read from MH i2c: 01 [16:46:01]MH_I2C_Read... [16:46:01]*** Stop cut motor [16:46:01]*** Cut end [16:46:01]Read from MH i2c: 01 07 00 [16:46:01]MH_I2C_Read... [16:46:01]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [16:46:01]process_action close_receipt done [16:46:01]requested_data is exist [16:46:01]produce_requested_data [16:46:01]requested_item fm.sn is exist - process it [16:46:01]wFMCommunicate request_size=4 [16:46:01]MH_SAM_APDU [16:46:01]CAPDU: 80 11 00 00 [16:46:01]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [16:46:01]Write i2c OK [16:46:01]MH_I2C_Read... [16:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 17 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 17 00 6F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:46:02]wFMCommunicate OK [16:46:02]requested_item fd.num is exist - process it [16:46:02]SAM_PROTO_GetFieldsCounters [16:46:02]wFMCommunicate request_size=4 [16:46:02]MH_SAM_APDU [16:46:02]CAPDU: 80 13 00 00 [16:46:02]Write to MH i2c: E2 08 00 70 17 80 13 00 00 00 00 00 00 03 [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 62 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 62 00 70 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:02]wFMCommunicate OK [16:46:02]SAM_PROTO_GetFieldsCounters done [16:46:02]requested_item shift.num is exist - process it [16:46:02]requested_item shift.opened is exist - process it [16:46:02]req_shift_opened [16:46:02]FM_GetShiftState [16:46:02]SAM_PROTO_GetShiftState [16:46:02]wFMCommunicate request_size=4 [16:46:02]MH_SAM_APDU [16:46:02]CAPDU: 80 13 01 00 [16:46:02]Write to MH i2c: E2 08 00 71 17 80 13 01 00 00 00 00 00 05 [16:46:02]Write i2c OK [16:46:02]MH_I2C_Read... [16:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:02]Read from MH i2c: E2 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 0E 00 [16:46:02]MH_I2C_Read... [16:46:02]Read from MH i2c: E2 0E 00 71 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 46 [16:46:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:46:02]wFMCommunicate OK [16:46:02]SAM_PROTO_GetShiftState done [16:46:02]FM_GetShiftState done [16:46:02]req_shift_opened done [16:46:02]requested_item shift.open_date is exist - process it [16:46:02]req_shift_open_date [16:46:02]req_shift_open_date done [16:46:02]produce_requested_data done [16:46:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192317,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:46:02]process_action_free close_receipt [16:46:02]json_value_free [16:46:02]json_value_free done [16:46:02]process_json_proto returns [16:46:02]Send response to host [16:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192317,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:46:02]free response buf [16:46:02]execute_script done [16:46:02]execute_script returns [16:46:02]free content buf [16:46:02]Sock 7.Close socket [16:46:02]Sock 7.Thread stoped [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:04]accept exits with 9 [16:49:04]New connection [16:49:04]New thread 3067080036 created [16:49:04]Thread 3066936676 joined [16:49:04]Waiting for new connection... [16:49:04] Sock 9.Parse request [16:49:04]Sock 9.Check first char [16:49:04]Sock 9.First char is OK [16:49:04]request: POST /json_proto HTTP/1.0 [16:49:04]Method: POST [16:49:04]URL: /json_proto [16:49:04]Method is POST - this is cgi request [16:49:04]url: /json_proto [16:49:04]query_string will be loaded in cgi processing [16:49:04]execute_cgi json_proto POST (null) [16:49:04]execute_cgi path=json_proto method=POST [16:49:04]POST find Content-Length [16:49:04]Host: 172.17.63.131:8080 [16:49:04]Content-Length: 676 [16:49:04]Content-Type: application/json [16:49:04] [16:49:04]POST finish read [16:49:04]Found Content-Length = 676 [16:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:04]execute_script... [16:49: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)31635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:04]POST & json_proto [16:49:04]process_json_proto [16:49:04]json parsed OK: [16:49:04]protocol is kg_v1.0 [16:49:04]action value=close_receipt [16:49:04]process_action close_receipt [16:49:04]cmd_close_receipt [16:49:04]MH_GetDate [16:49:04]Write to MH i2c: F0 00 00 72 17 78 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: F0 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: F0 09 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: F0 09 00 72 17 00 00 6F 1E 67 22 05 6E 64 6E [16:49:04]GetLastDocTimeStamp 1730047558 [16:49:04]current date 1730047744 [16:49:04]FM_GetShiftState [16:49:04]SAM_PROTO_GetShiftState [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 13 01 00 [16:49:04]Write to MH i2c: E2 08 00 73 17 80 13 01 00 00 00 00 00 07 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 73 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [16:49:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_GetShiftState done [16:49:04]FM_GetShiftState done [16:49:04]opened in 1729989159 [16:49:04]opened+sec_in_day 1730075559 [16:49:04]quantity*price = 50041 [16:49:04]sum+1 = 50042 [16:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 350 27.10.2024 16:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192318 ФПД: 54152698039451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192318&fm=54152698039451&tin=02508201610067®Number=0000000000091776&sum=50000 [16:49:05]StoreToDocumentArchive [16:49:05]shift 542 fd 192318 [16:49:05]save to /storage/0542/doc_00192318 [16:49:05]save last doc name /storage/0542/doc_00192318 to /storage/kkm_last_doc_name [16:49:05]save OK [16:49:05]Clear old archive folders... [16:49:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:05]tlvbuf is 0031D260 [16:49:05]SAM_PROTO_ClearQueue [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 09 00 00 [16:49:05]Write to MH i2c: E2 08 00 80 17 80 09 00 00 00 00 00 00 09 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 80 17 00 90 00 0B [16:49:05]RAPDU: 90 00 [16:49:05]wFMCommunicate OK [16:49:05]SAM_PROTO_ClearQueue done [16:49:05]KKMCreateOFDPacket [16:49:05]OFDProtocolAddRootSTLVToBuf [16:49:05]FM_MakeSignedData [16:49:05]FM_MakeSignedData [16:49:05]SAM_PROTO_SignData [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 0D 01 02 [16:49:05]Write to MH i2c: E2 08 00 81 17 80 0D 01 02 00 00 00 00 11 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [16:49:05]RAPDU: 90 00 [16:49:05]wFMCommunicate OK [16:49:05]wFMCommunicate request_size=255 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 00 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EF 02 00 35 04 06 00 31 [16:49:05]Write to MH i2c: E2 02 01 82 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 00 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EF 02 00 35 04 06 00 31 00 00 78 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [16:49:05]RAPDU: 90 00 [16:49:05]wFMCommunicate OK [16:49:05]wFMCommunicate request_size=10 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 0D 02 02 05 40 68 54 8C 9B [16:49:05]Write to MH i2c: E2 0D 00 83 17 80 0D 02 02 05 00 40 68 54 8C 9B 00 00 41 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [16:49:05]RAPDU: 90 00 [16:49:05]wFMCommunicate OK [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 0D 03 02 [16:49:05]Write to MH i2c: E2 08 00 84 17 80 0D 03 02 00 00 00 00 16 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 0B 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 0B 00 84 17 00 98 1A C6 C7 E1 B3 14 B3 90 00 B1 [16:49:05]RAPDU: 98 1A C6 C7 E1 B3 14 B3 90 00 [16:49:05]wFMCommunicate OK [16:49:05]SAM_PROTO_SignData done [16:49:05]FM_MakeSignedData done [16:49:05]CreateOFDProtocolMessage [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 11 00 00 [16:49:05]Write to MH i2c: E2 08 00 85 17 80 11 00 00 00 00 00 00 16 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 17 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 17 00 85 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [16:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:05]wFMCommunicate OK [16:49:05]CreateOFDProtocolMessage done [16:49:05]OFDSenderStorePacket 192318 [16:49:05]StoreOFDPacket docnum=192318 [16:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 77 07 01 A3 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 00 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EF 02 00 35 04 06 00 31 40 68 54 8C 9B 98 1A C6 C7 E1 B3 14 B3 [16:49:05]CheckFolder [16:49:05]dirname=/storage/ofd_packets [16:49:05]CheckFolder done [16:49:05]ProducePacketName [16:49:05]name=ofd_packets/00192318 [16:49:05]NVStorageSaveData ofd_packets/00192318 [16:49:05]File name is /storage/ofd_packets/00192318 [16:49:05]Write 301 bytes [16:49:05]NVStorageSaveData done [16:49:05]OFDSenderStorePacket done [16:49:05]KKMCreateOFDPacket done [16:49:05]NVStorageSaveData kkm_last_timestamp [16:49:05]File name is /storage/kkm_last_timestamp [16:49:05]Write 4 bytes [16:49:05]NVStorageSaveData done [16:49:05]ExternCall_PrintAddStr [16:49:05]wPrintStart [16:49:05]Write to MH i2c: 01 00 00 86 17 9D [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 07 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [16:49:05]RasterBufferAndPrint [16:49:05]line Счет N : (1)31635 [16:49:05]line ИНН: 02508201610067 [16:49:05]line Контрольно-Кассовый Чек [16:49:05]line ПРОДАЖА [16:49:05]line ТРК (МРК, ГНК) : 21 [16:49:05]line Товар: 2710124130 [16:49:05]line Аи-92-К-5 [16:49:05]line 7.480 * 66.90 [16:49:05]line = 500.41 [16:49:05]line НДС 12% НСП 1% [16:49:05]line > о реализуемом товаре [16:49:05]line ОКРУГЛЕНИЕ: -0.41 [16:49:05]line ИТОГО: 500.00 [16:49:05]line Внесено: 500.00 [16:49:05]line СДАЧА: 0.00 [16:49:05]line НСП 1% : 4.43 [16:49:05]line НДС 12% : 53.14 [16:49:05]line Наличными: 500.00 [16:49:05]line Безнал.: 0.00 [16:49:05]line Место: АЗС № 170 "Партнер Нефть" [16:49:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:49:05]line СНО: Общий режим [16:49:05]line Чек 350 27.10.2024 16:49 [16:49:05]line Смена: 542 ФФД: 1.0 [16:49:05]line ЗНМ: 0300000110 [16:49:05]line РНМ: 0000000000091776 [16:49:05]line Версия ККМ: 001 [16:49:05]line ФМ: 0000000000871754 [16:49:05]line ФД: 192318 [16:49:05]line ФПД: 54152698039451 [16:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192318&fm=54152698039451&tin=02508201610067®Number=0000000000091776&sum=50000 [16:49:06]OFD Sender: Processing packet 192318 [packets to send 75, broken 74] [16:49:06]ProducePacketName [16:49:06]name=ofd_packets/00192318 [16:49:06]OFD Sender: To server: pG, [16:49:06]CommunicateWithHost lk.salyk.kg:30040 [16:49:06]ConnectInit lk.salyk.kg [16:49:06]written 0, free lines is 4095 [16:49:06]Connected sock=10 [16:49:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 77 07 01 A3 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 00 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EF 02 00 35 04 06 00 31 40 68 54 8C 9B 98 1A C6 C7 E1 B3 14 B3 [16:49:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F 87 47 00 82 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E EF 02 00 F4 03 04 00 C7 13 1E 67 B6 04 01 00 00 65 57 36 A5 65 A8 F2 A0 [16:49:06]CommunicateWithHost err = 0 [16:49:06]CheckOFDResponse [16:49:06]1017 (14) - 77093643461234 [16:49:06]1041 (16) - 0000000000871754 [16:49:06]1040 (4) - 192318 [16:49:06]1012 (4) - 27.10.2024 10:19 [16:49:06]1206 (1) - 0 [16:49:06]OFD Sender: Remove packet 192318 [16:49:06]ProducePacketName [16:49:06]name=ofd_packets/00192318 [16:49:06]NVStorageDeleteData [16:49:06]Write to MH i2c: 01 00 00 B1 17 C8 [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: 01 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: 01 07 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 AD 0C 88 [16:49:06]RasterBufferAndPrint [16:49:06]line [16:49:06]line [16:49:06]line [16:49:06]line [16:49:06]line [16:49:06]written 0, free lines is 3252 [16:49:06]MH_Cut [16:49:06]Write to MH i2c: D1 01 00 B8 17 01 A1 [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: D1 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: D1 01 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: D1 01 00 B8 17 00 A0 [16:49:06]Write to MH i2c: 01 00 00 B9 17 D0 [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]OFD Sender: No OFD packet to send [16:49:07]*** Cut start [16:49:07]*** Partial cut [16:49:07]*** CUTSNS_PIN = 1 [16:49:07]*** CUTSNS_PIN = 0 [16:49:07]*** Brake cut motor [16:49:07]Read from MH i2c: 01 [16:49:07]MH_I2C_Read... [16:49:07]*** Stop cut motor [16:49:07]*** Cut end [16:49:07]Read from MH i2c: 01 07 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: 01 07 00 B9 17 00 00 00 00 00 FF 0F E5 [16:49:07]process_action close_receipt done [16:49:07]requested_data is exist [16:49:07]produce_requested_data [16:49:07]requested_item fm.sn is exist - process it [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 11 00 00 [16:49:07]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 17 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:08]wFMCommunicate OK [16:49:08]requested_item fd.num is exist - process it [16:49:08]SAM_PROTO_GetFieldsCounters [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 00 00 [16:49:08]Write to MH i2c: E2 08 00 BB 17 80 13 00 00 00 00 00 00 4E [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 62 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 62 00 BB 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [16:49:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetFieldsCounters done [16:49:08]requested_item shift.num is exist - process it [16:49:08]requested_item shift.opened is exist - process it [16:49:08]req_shift_opened [16:49:08]FM_GetShiftState [16:49:08]SAM_PROTO_GetShiftState [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 01 00 [16:49:08]Write to MH i2c: E2 08 00 BC 17 80 13 01 00 00 00 00 00 50 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 BC 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 91 [16:49:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetShiftState done [16:49:08]FM_GetShiftState done [16:49:08]req_shift_opened done [16:49:08]requested_item shift.open_date is exist - process it [16:49:08]req_shift_open_date [16:49:08]req_shift_open_date done [16:49:08]produce_requested_data done [16:49:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192318,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:49:08]process_action_free close_receipt [16:49:08]json_value_free [16:49:08]json_value_free done [16:49:08]process_json_proto returns [16:49:08]Send response to host [16:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192318,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:49:08]free response buf [16:49:08]execute_script done [16:49:08]execute_script returns [16:49:08]free content buf [16:49:08]Sock 9.Close socket [16:49:08]Sock 9.Thread stoped [16:49:08]accept exits with 7 [16:49:08]New connection [16:49:08]New thread 3066936676 created [16:49:08]Thread 3067080036 joined [16:49:08]Waiting for new connection... [16:49:08] Sock 7.Parse request [16:49:08]Sock 7.Check first char [16:49:08]Sock 7.First char is OK [16:49:08]request: POST /json_proto HTTP/1.0 [16:49:08]Method: POST [16:49:08]URL: /json_proto [16:49:08]Method is POST - this is cgi request [16:49:08]url: /json_proto [16:49:08]query_string will be loaded in cgi processing [16:49:08]execute_cgi json_proto POST (null) [16:49:08]execute_cgi path=json_proto method=POST [16:49:08]POST find Content-Length [16:49:08]Host: 172.17.63.131:8080 [16:49:08]Content-Length: 678 [16:49:08]Content-Type: application/json [16:49:08] [16:49:08]POST finish read [16:49:08]Found Content-Length = 678 [16:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31634", "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" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:08]execute_script... [16:49: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)31634", "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" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:08]POST & json_proto [16:49:08]process_json_proto [16:49:08]json parsed OK: [16:49:08]protocol is kg_v1.0 [16:49:08]action value=close_receipt [16:49:08]process_action close_receipt [16:49:08]cmd_close_receipt [16:49:08]MH_GetDate [16:49:08]Write to MH i2c: F0 00 00 BD 17 C3 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 09 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 09 00 BD 17 00 05 6F 1E 67 22 05 6E 64 BE [16:49:08]GetLastDocTimeStamp 1730047744 [16:49:08]current date 1730047749 [16:49:08]FM_GetShiftState [16:49:08]SAM_PROTO_GetShiftState [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 01 00 [16:49:08]Write to MH i2c: E2 08 00 BE 17 80 13 01 00 00 00 00 00 52 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 BE 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [16:49:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetShiftState done [16:49:08]FM_GetShiftState done [16:49:08]opened in 1729989159 [16:49:08]opened+sec_in_day 1730075559 [16:49:08]quantity*price = 280035 [16:49:08]sum+1 = 280036 [16:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.38 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 351 27.10.2024 16:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192319 ФПД: 196789777516559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192319&fm=196789777516559&tin=02508201610067®Number=0000000000091776&sum=280000 [16:49:10]StoreToDocumentArchive [16:49:10]shift 542 fd 192319 [16:49:10]save to /storage/0542/doc_00192319 [16:49:10]save last doc name /storage/0542/doc_00192319 to /storage/kkm_last_doc_name [16:49:10]save OK [16:49:10]Clear old archive folders... [16:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:49:10]tlvbuf is 0037A160 [16:49:10]SAM_PROTO_ClearQueue [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 09 00 00 [16:49:10]Write to MH i2c: E2 08 00 CB 17 80 09 00 00 00 00 00 00 54 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 CB 17 00 90 00 56 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]SAM_PROTO_ClearQueue done [16:49:10]KKMCreateOFDPacket [16:49:10]OFDProtocolAddRootSTLVToBuf [16:49:10]FM_MakeSignedData [16:49:10]FM_MakeSignedData [16:49:10]SAM_PROTO_SignData [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 01 02 [16:49:10]Write to MH i2c: E2 08 00 CC 17 80 0D 01 02 00 00 00 00 5C [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=255 [16:49:10]MH_SAM_APDU [16:49: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 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 05 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EF 02 00 35 04 06 00 B2 FA B0 C8 [16:49:10]Write to MH i2c: E2 02 01 CD 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 05 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EF 02 00 35 04 06 00 B2 FA B0 C8 00 00 1C [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=7 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 02 02 02 C8 0F [16:49:10]Write to MH i2c: E2 0A 00 CE 17 80 0D 02 02 02 00 C8 0F 00 00 3A [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 03 02 [16:49:10]Write to MH i2c: E2 08 00 CF 17 80 0D 03 02 00 00 00 00 61 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 0B 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 0B 00 CF 17 00 5B B2 29 28 0C 3E DD 56 90 00 3D [16:49:10]RAPDU: 5B B2 29 28 0C 3E DD 56 90 00 [16:49:10]wFMCommunicate OK [16:49:10]SAM_PROTO_SignData done [16:49:10]FM_MakeSignedData done [16:49:10]CreateOFDProtocolMessage [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 11 00 00 [16:49:10]Write to MH i2c: E2 08 00 D0 17 80 11 00 00 00 00 00 00 61 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 17 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 17 00 D0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [16:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:10]wFMCommunicate OK [16:49:10]CreateOFDProtocolMessage done [16:49:10]OFDSenderStorePacket 192319 [16:49:10]StoreOFDPacket docnum=192319 [16:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6F A1 04 01 A4 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 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 05 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EF 02 00 35 04 06 00 B2 FA B0 C8 C8 0F 5B B2 29 28 0C 3E DD 56 [16:49:10]CheckFolder [16:49:10]dirname=/storage/ofd_packets [16:49:10]CheckFolder done [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00192319 [16:49:10]NVStorageSaveData ofd_packets/00192319 [16:49:10]File name is /storage/ofd_packets/00192319 [16:49:10]Write 298 bytes [16:49:10]NVStorageSaveData done [16:49:10]OFDSenderStorePacket done [16:49:10]KKMCreateOFDPacket done [16:49:10]NVStorageSaveData kkm_last_timestamp [16:49:10]File name is /storage/kkm_last_timestamp [16:49:10]Write 4 bytes [16:49:10]NVStorageSaveData done [16:49:10]ExternCall_PrintAddStr [16:49:10]wPrintStart [16:49:10]Write to MH i2c: 01 00 00 D1 17 E8 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 D1 17 00 00 00 00 00 FF 0F FD [16:49:10]RasterBufferAndPrint [16:49:10]line Счет N : (1)31634 [16:49:10]line ИНН: 02508201610067 [16:49:10]line Контрольно-Кассовый Чек [16:49:10]line ПРОДАЖА [16:49:10]line ТРК (МРК, ГНК) : 11 [16:49:10]line Товар: 2710194210 [16:49:10]line ДТ-К-5 [16:49:11]line 36.750 * 76.20 [16:49:11]line = 2800.35 [16:49:11]line НДС 12% НСП 1% [16:49:11]line > о реализуемом товаре [16:49:11]line ОКРУГЛЕНИЕ: -0.35 [16:49:11]line ИТОГО: 2800.00 [16:49:11]line Внесено: 2800.00 [16:49:11]line СДАЧА: 0.00 [16:49:11]line НСП 1% : 24.78 [16:49:11]line НДС 12% : 297.38 [16:49:11]line Наличными: 2800.00 [16:49:11]line Безнал.: 0.00 [16:49:11]line Место: АЗС № 170 "Партнер Нефть" [16:49:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:49:11]line СНО: Общий режим [16:49:11]line Чек 351 27.10.2024 16:49 [16:49:11]line Смена: 542 ФФД: 1.0 [16:49:11]line ЗНМ: 0300000110 [16:49:11]line РНМ: 0000000000091776 [16:49:11]line Версия ККМ: 001 [16:49:11]line ФМ: 0000000000871754 [16:49:11]line ФД: 192319 [16:49:11]line ФПД: 196789777516559 [16:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192319&fm=196789777516559&tin=02508201610067®Number=0000000000091776&sum=280000 [16:49:11]OFD Sender: Processing packet 192319 [packets to send 75, broken 74] [16:49:11]ProducePacketName [16:49:11]name=ofd_packets/00192319 [16:49:11]OFD Sender: To server: pG, [16:49:11]CommunicateWithHost lk.salyk.kg:30040 [16:49:11]ConnectInit lk.salyk.kg [16:49:11]written 0, free lines is 4095 [16:49:11]Connected sock=10 [16:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6F A1 04 01 A4 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 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 05 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EF 02 00 35 04 06 00 B2 FA B0 C8 C8 0F 5B B2 29 28 0C 3E DD 56 [16:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 84 26 47 00 26 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F EF 02 00 F4 03 04 00 CC 13 1E 67 B6 04 01 00 00 F4 F5 AF 30 19 A8 B4 77 [16:49:11]CommunicateWithHost err = 0 [16:49:11]CheckOFDResponse [16:49:11]1017 (14) - 77093643461234 [16:49:11]1041 (16) - 0000000000871754 [16:49:11]1040 (4) - 192319 [16:49:11]1012 (4) - 27.10.2024 10:19 [16:49:11]1206 (1) - 0 [16:49:11]OFD Sender: Remove packet 192319 [16:49:11]ProducePacketName [16:49:11]name=ofd_packets/00192319 [16:49:11]NVStorageDeleteData [16:49:11]Write to MH i2c: 01 00 00 FC 17 13 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 BB 0C E1 [16:49:11]RasterBufferAndPrint [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]written 0, free lines is 3270 [16:49:11]MH_Cut [16:49:11]Write to MH i2c: D1 01 00 03 18 01 ED [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 01 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 01 00 03 18 00 EC [16:49:11]Write to MH i2c: 01 00 00 04 18 1C [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]OFD Sender: No OFD packet to send [16:49:12]*** Cut start [16:49:12]*** Partial cut [16:49:12]*** CUTSNS_PIN = 1 [16:49:12]*** CUTSNS_PIN = 0 [16:49:12]*** Brake cut motor [16:49:12]Read from MH i2c: 01 [16:49:12]MH_I2C_Read... [16:49:12]*** Stop cut motor [16:49:12]*** Cut end [16:49:12]Read from MH i2c: 01 07 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: 01 07 00 04 18 00 00 00 00 00 FF 0F 31 [16:49:12]process_action close_receipt done [16:49:12]requested_data is exist [16:49:12]produce_requested_data [16:49:12]requested_item fm.sn is exist - process it [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 11 00 00 [16:49:12]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 17 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 17 00 05 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [16:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:13]wFMCommunicate OK [16:49:13]requested_item fd.num is exist - process it [16:49:13]SAM_PROTO_GetFieldsCounters [16:49:13]wFMCommunicate request_size=4 [16:49:13]MH_SAM_APDU [16:49:13]CAPDU: 80 13 00 00 [16:49:13]Write to MH i2c: E2 08 00 06 18 80 13 00 00 00 00 00 00 9A [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 62 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 62 00 06 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [16:49:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:13]wFMCommunicate OK [16:49:13]SAM_PROTO_GetFieldsCounters done [16:49:13]requested_item shift.num is exist - process it [16:49:13]requested_item shift.opened is exist - process it [16:49:13]req_shift_opened [16:49:13]FM_GetShiftState [16:49:13]SAM_PROTO_GetShiftState [16:49:13]wFMCommunicate request_size=4 [16:49:13]MH_SAM_APDU [16:49:13]CAPDU: 80 13 01 00 [16:49:13]Write to MH i2c: E2 08 00 07 18 80 13 01 00 00 00 00 00 9C [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:13]Read from MH i2c: E2 0E 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 0E 00 07 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [16:49:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:49:13]wFMCommunicate OK [16:49:13]SAM_PROTO_GetShiftState done [16:49:13]FM_GetShiftState done [16:49:13]req_shift_opened done [16:49:13]requested_item shift.open_date is exist - process it [16:49:13]req_shift_open_date [16:49:13]req_shift_open_date done [16:49:13]produce_requested_data done [16:49:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192319,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:49:13]process_action_free close_receipt [16:49:13]json_value_free [16:49:13]json_value_free done [16:49:13]process_json_proto returns [16:49:13]Send response to host [16:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192319,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:49:13]free response buf [16:49:13]execute_script done [16:49:13]execute_script returns [16:49:13]free content buf [16:49:13]Sock 7.Close socket [16:49:13]Sock 7.Thread stoped [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:25]accept exits with 9 [16:50:25]New connection [16:50:25]New thread 3067080036 created [16:50:25]Thread 3066936676 joined [16:50:25]Waiting for new connection... [16:50:25] Sock 9.Parse request [16:50:25]Sock 9.Check first char [16:50:25]Sock 9.First char is OK [16:50:25]request: POST /json_proto HTTP/1.0 [16:50:25]Method: POST [16:50:25]URL: /json_proto [16:50:25]Method is POST - this is cgi request [16:50:25]url: /json_proto [16:50:25]query_string will be loaded in cgi processing [16:50:25]execute_cgi json_proto POST (null) [16:50:25]execute_cgi path=json_proto method=POST [16:50:25]POST find Content-Length [16:50:25]Host: 172.17.63.131:8080 [16:50:25]Content-Length: 673 [16:50:25]Content-Type: application/json [16:50:25] [16:50:25]POST finish read [16:50:25]Found Content-Length = 673 [16:50:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31636", "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" ] } } [16:50:25]execute_script... [16:50: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)31636", "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" ] } } [16:50:25]POST & json_proto [16:50:25]process_json_proto [16:50:25]json parsed OK: [16:50:25]protocol is kg_v1.0 [16:50:25]action value=close_receipt [16:50:25]process_action close_receipt [16:50:25]cmd_close_receipt [16:50:25]MH_GetDate [16:50:25]Write to MH i2c: F0 00 00 08 18 0F [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 09 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: F0 09 00 08 18 00 52 6F 1E 67 22 05 6E 64 57 [16:50:25]GetLastDocTimeStamp 1730047749 [16:50:25]current date 1730047826 [16:50:25]FM_GetShiftState [16:50:25]SAM_PROTO_GetShiftState [16:50:25]wFMCommunicate request_size=4 [16:50:25]MH_SAM_APDU [16:50:25]CAPDU: 80 13 01 00 [16:50:25]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [16:50:25]Write i2c OK [16:50:25]MH_I2C_Read... [16:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:25]Read from MH i2c: E2 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0E 00 [16:50:25]MH_I2C_Read... [16:50:25]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DF [16:50:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:50:25]wFMCommunicate OK [16:50:25]SAM_PROTO_GetShiftState done [16:50:25]FM_GetShiftState done [16:50:25]opened in 1729989159 [16:50:25]opened+sec_in_day 1730075559 [16:50:25]quantity*price = 50063 [16:50:25]sum+1 = 50064 [16:50:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 352 27.10.2024 16:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192320 ФПД: 114292120807240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165026&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192320&fm=114292120807240&tin=02508201610067®Number=0000000000091776&sum=50000 [16:50:27]StoreToDocumentArchive [16:50:27]shift 542 fd 192320 [16:50:27]save to /storage/0542/doc_00192320 [16:50:27]save last doc name /storage/0542/doc_00192320 to /storage/kkm_last_doc_name [16:50:27]save OK [16:50:27]Clear old archive folders... [16:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:50:27]tlvbuf is 00311580 [16:50:27]SAM_PROTO_ClearQueue [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 09 00 00 [16:50:27]Write to MH i2c: E2 08 00 16 18 80 09 00 00 00 00 00 00 A0 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]SAM_PROTO_ClearQueue done [16:50:27]KKMCreateOFDPacket [16:50:27]OFDProtocolAddRootSTLVToBuf [16:50:27]FM_MakeSignedData [16:50:27]FM_MakeSignedData [16:50:27]SAM_PROTO_SignData [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 01 02 [16:50:27]Write to MH i2c: E2 08 00 17 18 80 0D 01 02 00 00 00 00 A8 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=255 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 60 01 00 00 F4 03 04 00 52 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EF 02 00 35 04 06 00 67 F2 B5 42 [16:50:27]Write to MH i2c: E2 02 01 18 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 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 60 01 00 00 F4 03 04 00 52 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EF 02 00 35 04 06 00 67 F2 B5 42 00 00 02 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=7 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 02 02 02 E7 48 [16:50:27]Write to MH i2c: E2 0A 00 19 18 80 0D 02 02 02 00 E7 48 00 00 DE [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 03 02 [16:50:27]Write to MH i2c: E2 08 00 1A 18 80 0D 03 02 00 00 00 00 AD [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 0B 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 0B 00 1A 18 00 84 38 85 C8 49 0E 28 15 90 00 4B [16:50:27]RAPDU: 84 38 85 C8 49 0E 28 15 90 00 [16:50:27]wFMCommunicate OK [16:50:27]SAM_PROTO_SignData done [16:50:27]FM_MakeSignedData done [16:50:27]CreateOFDProtocolMessage [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 11 00 00 [16:50:27]Write to MH i2c: E2 08 00 1B 18 80 11 00 00 00 00 00 00 AD [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 17 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 17 00 1B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:27]wFMCommunicate OK [16:50:27]CreateOFDProtocolMessage done [16:50:27]OFDSenderStorePacket 192320 [16:50:27]StoreOFDPacket docnum=192320 [16:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2D BF 04 01 5B 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 60 01 00 00 F4 03 04 00 52 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EF 02 00 35 04 06 00 67 F2 B5 42 E7 48 84 38 85 C8 49 0E 28 15 [16:50:27]CheckFolder [16:50:27]dirname=/storage/ofd_packets [16:50:27]CheckFolder done [16:50:27]ProducePacketName [16:50:27]name=ofd_packets/00192320 [16:50:27]NVStorageSaveData ofd_packets/00192320 [16:50:27]File name is /storage/ofd_packets/00192320 [16:50:27]Write 298 bytes [16:50:27]NVStorageSaveData done [16:50:27]OFDSenderStorePacket done [16:50:27]KKMCreateOFDPacket done [16:50:27]NVStorageSaveData kkm_last_timestamp [16:50:27]File name is /storage/kkm_last_timestamp [16:50:27]Write 4 bytes [16:50:27]NVStorageSaveData done [16:50:27]ExternCall_PrintAddStr [16:50:27]wPrintStart [16:50:27]Write to MH i2c: 01 00 00 1C 18 34 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 07 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 FF 0F 49 [16:50:27]RasterBufferAndPrint [16:50:27]line Счет N : (1)31636 [16:50:27]line ИНН: 02508201610067 [16:50:27]line Контрольно-Кассовый Чек [16:50:27]line ПРОДАЖА [16:50:27]line ТРК (МРК, ГНК) : 11 [16:50:27]line Товар: 2710194210 [16:50:27]line ДТ-К-5 [16:50:27]line 6.570 * 76.20 [16:50:27]line = 500.63 [16:50:27]line НДС 12% НСП 1% [16:50:27]line > о реализуемом товаре [16:50:27]line ОКРУГЛЕНИЕ: -0.63 [16:50:27]line ИТОГО: 500.00 [16:50:27]line Внесено: 500.00 [16:50:27]line СДАЧА: 0.00 [16:50:27]line НСП 1% : 4.43 [16:50:27]line НДС 12% : 53.16 [16:50:27]line Наличными: 500.00 [16:50:27]line Безнал.: 0.00 [16:50:27]line Место: АЗС № 170 "Партнер Нефть" [16:50:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:50:27]line СНО: Общий режим [16:50:27]line Чек 352 27.10.2024 16:50 [16:50:27]line Смена: 542 ФФД: 1.0 [16:50:27]line ЗНМ: 0300000110 [16:50:27]line РНМ: 0000000000091776 [16:50:27]line Версия ККМ: 001 [16:50:27]line ФМ: 0000000000871754 [16:50:27]line ФД: 192320 [16:50:27]line ФПД: 114292120807240 [16:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165026&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192320&fm=114292120807240&tin=02508201610067®Number=0000000000091776&sum=50000 [16:50:27]OFD Sender: Processing packet 192320 [packets to send 75, broken 74] [16:50:27]ProducePacketName [16:50:27]name=ofd_packets/00192320 [16:50:27]OFD Sender: To server: pG, [16:50:27]CommunicateWithHost lk.salyk.kg:30040 [16:50:27]ConnectInit lk.salyk.kg [16:50:27]written 0, free lines is 4095 [16:50:28]Connected sock=10 [16:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2D BF 04 01 5B 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 60 01 00 00 F4 03 04 00 52 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EF 02 00 35 04 06 00 67 F2 B5 42 E7 48 84 38 85 C8 49 0E 28 15 [16:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B1 DF 47 00 2A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 EF 02 00 F4 03 04 00 19 14 1E 67 B6 04 01 00 00 5C 57 2E 02 20 C4 29 CA [16:50:28]CommunicateWithHost err = 0 [16:50:28]CheckOFDResponse [16:50:28]1017 (14) - 77093643461234 [16:50:28]1041 (16) - 0000000000871754 [16:50:28]1040 (4) - 192320 [16:50:28]1012 (4) - 27.10.2024 10:21 [16:50:28]1206 (1) - 0 [16:50:28]OFD Sender: Remove packet 192320 [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00192320 [16:50:28]NVStorageDeleteData [16:50:28]Write to MH i2c: 01 00 00 47 18 5F [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 A9 0C 1B [16:50:28]RasterBufferAndPrint [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]line [16:50:28]written 0, free lines is 3248 [16:50:28]MH_Cut [16:50:28]Write to MH i2c: D1 01 00 4E 18 01 38 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: D1 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: D1 01 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: D1 01 00 4E 18 00 37 [16:50:28]Write to MH i2c: 01 00 00 4F 18 67 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]OFD Sender: No OFD packet to send [16:50:29]*** Cut start [16:50:29]*** Partial cut [16:50:29]*** CUTSNS_PIN = 1 [16:50:29]*** CUTSNS_PIN = 0 [16:50:29]*** Brake cut motor [16:50:29]Read from MH i2c: 01 [16:50:29]MH_I2C_Read... [16:50:29]*** Stop cut motor [16:50:29]*** Cut end [16:50:29]Read from MH i2c: 01 07 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FF 0F 7C [16:50:29]process_action close_receipt done [16:50:29]requested_data is exist [16:50:29]produce_requested_data [16:50:29]requested_item fm.sn is exist - process it [16:50:29]wFMCommunicate request_size=4 [16:50:29]MH_SAM_APDU [16:50:29]CAPDU: 80 11 00 00 [16:50:29]Write to MH i2c: E2 08 00 50 18 80 11 00 00 00 00 00 00 E2 [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:29]Read from MH i2c: E2 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: E2 17 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: E2 17 00 50 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [16:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:29]wFMCommunicate OK [16:50:29]requested_item fd.num is exist - process it [16:50:29]SAM_PROTO_GetFieldsCounters [16:50:29]wFMCommunicate request_size=4 [16:50:29]MH_SAM_APDU [16:50:29]CAPDU: 80 13 00 00 [16:50:29]Write to MH i2c: E2 08 00 51 18 80 13 00 00 00 00 00 00 E5 [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 51 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetFieldsCounters done [16:50:30]requested_item shift.num is exist - process it [16:50:30]requested_item shift.opened is exist - process it [16:50:30]req_shift_opened [16:50:30]FM_GetShiftState [16:50:30]SAM_PROTO_GetShiftState [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 13 01 00 [16:50:30]Write to MH i2c: E2 08 00 52 18 80 13 01 00 00 00 00 00 E7 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 52 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 28 [16:50:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetShiftState done [16:50:30]FM_GetShiftState done [16:50:30]req_shift_opened done [16:50:30]requested_item shift.open_date is exist - process it [16:50:30]req_shift_open_date [16:50:30]req_shift_open_date done [16:50:30]produce_requested_data done [16:50:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192320,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:50:30]process_action_free close_receipt [16:50:30]json_value_free [16:50:30]json_value_free done [16:50:30]process_json_proto returns [16:50:30]Send response to host [16:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192320,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:50:30]free response buf [16:50:30]execute_script done [16:50:30]execute_script returns [16:50:30]free content buf [16:50:30]Sock 9.Close socket [16:50:30]Sock 9.Thread stoped [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:45]accept exits with 7 [16:50:45]New connection [16:50:45]New thread 3066936676 created [16:50:45]Thread 3067080036 joined [16:50:45]Waiting for new connection... [16:50:45] Sock 7.Parse request [16:50:45]Sock 7.Check first char [16:50:45]Sock 7.First char is OK [16:50:45]request: POST /json_proto HTTP/1.0 [16:50:45]Method: POST [16:50:45]URL: /json_proto [16:50:45]Method is POST - this is cgi request [16:50:45]url: /json_proto [16:50:45]query_string will be loaded in cgi processing [16:50:45]execute_cgi json_proto POST (null) [16:50:45]execute_cgi path=json_proto method=POST [16:50:45]POST find Content-Length [16:50:45]Host: 172.17.63.131:8080 [16:50:45]Content-Length: 676 [16:50:45]Content-Type: application/json [16:50:45] [16:50:45]POST finish read [16:50:45]Found Content-Length = 676 [16:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:45]execute_script... [16:50: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)31637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:45]POST & json_proto [16:50:45]process_json_proto [16:50:45]json parsed OK: [16:50:45]protocol is kg_v1.0 [16:50:45]action value=close_receipt [16:50:45]process_action close_receipt [16:50:45]cmd_close_receipt [16:50:45]MH_GetDate [16:50:45]Write to MH i2c: F0 00 00 53 18 5A [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 09 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: F0 09 00 53 18 00 65 6F 1E 67 22 05 6E 64 B5 [16:50:45]GetLastDocTimeStamp 1730047826 [16:50:45]current date 1730047845 [16:50:45]FM_GetShiftState [16:50:45]SAM_PROTO_GetShiftState [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 13 01 00 [16:50:45]Write to MH i2c: E2 08 00 54 18 80 13 01 00 00 00 00 00 E9 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 54 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [16:50:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:50:45]wFMCommunicate OK [16:50:45]SAM_PROTO_GetShiftState done [16:50:45]FM_GetShiftState done [16:50:45]opened in 1729989159 [16:50:45]opened+sec_in_day 1730075559 [16:50:45]quantity*price = 22010 [16:50:45]sum+1 = 22011 [16:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 353 27.10.2024 16:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192321 ФПД: 99821701020688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192321&fm=99821701020688&tin=02508201610067®Number=0000000000091776&sum=22000 [16:50:46]StoreToDocumentArchive [16:50:46]shift 542 fd 192321 [16:50:46]save to /storage/0542/doc_00192321 [16:50:46]save last doc name /storage/0542/doc_00192321 to /storage/kkm_last_doc_name [16:50:46]save OK [16:50:46]Clear old archive folders... [16:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:46]tlvbuf is 0031F2B0 [16:50:46]SAM_PROTO_ClearQueue [16:50:46]wFMCommunicate request_size=4 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 09 00 00 [16:50:46]Write to MH i2c: E2 08 00 61 18 80 09 00 00 00 00 00 00 EB [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [16:50:46]RAPDU: 90 00 [16:50:46]wFMCommunicate OK [16:50:46]SAM_PROTO_ClearQueue done [16:50:46]KKMCreateOFDPacket [16:50:46]OFDProtocolAddRootSTLVToBuf [16:50:46]FM_MakeSignedData [16:50:46]FM_MakeSignedData [16:50:46]SAM_PROTO_SignData [16:50:46]wFMCommunicate request_size=4 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 0D 01 02 [16:50:46]Write to MH i2c: E2 08 00 62 18 80 0D 01 02 00 00 00 00 F3 [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [16:50:46]RAPDU: 90 00 [16:50:46]wFMCommunicate OK [16:50:46]wFMCommunicate request_size=255 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 65 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EF 02 00 35 04 06 00 5A [16:50:46]Write to MH i2c: E2 02 01 63 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 65 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EF 02 00 35 04 06 00 5A 00 00 51 [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [16:50:46]RAPDU: 90 00 [16:50:46]wFMCommunicate OK [16:50:46]wFMCommunicate request_size=10 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 0D 02 02 05 C9 8D 07 BC 10 [16:50:46]Write to MH i2c: E2 0D 00 64 18 80 0D 02 02 05 00 C9 8D 07 BC 10 00 00 29 [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [16:50:46]RAPDU: 90 00 [16:50:46]wFMCommunicate OK [16:50:46]wFMCommunicate request_size=4 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 0D 03 02 [16:50:46]Write to MH i2c: E2 08 00 65 18 80 0D 03 02 00 00 00 00 F8 [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 0B 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 0B 00 65 18 00 BD 04 C2 60 C4 14 63 D6 90 00 ED [16:50:46]RAPDU: BD 04 C2 60 C4 14 63 D6 90 00 [16:50:46]wFMCommunicate OK [16:50:46]SAM_PROTO_SignData done [16:50:46]FM_MakeSignedData done [16:50:46]CreateOFDProtocolMessage [16:50:46]wFMCommunicate request_size=4 [16:50:46]MH_SAM_APDU [16:50:46]CAPDU: 80 11 00 00 [16:50:46]Write to MH i2c: E2 08 00 66 18 80 11 00 00 00 00 00 00 F8 [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:46]Read from MH i2c: E2 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 17 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: E2 17 00 66 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [16:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:46]wFMCommunicate OK [16:50:46]CreateOFDProtocolMessage done [16:50:46]OFDSenderStorePacket 192321 [16:50:46]StoreOFDPacket docnum=192321 [16:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 94 07 01 CA DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 65 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EF 02 00 35 04 06 00 5A C9 8D 07 BC 10 BD 04 C2 60 C4 14 63 D6 [16:50:46]CheckFolder [16:50:46]dirname=/storage/ofd_packets [16:50:46]CheckFolder done [16:50:46]ProducePacketName [16:50:46]name=ofd_packets/00192321 [16:50:46]NVStorageSaveData ofd_packets/00192321 [16:50:46]File name is /storage/ofd_packets/00192321 [16:50:46]Write 301 bytes [16:50:46]NVStorageSaveData done [16:50:46]OFDSenderStorePacket done [16:50:46]KKMCreateOFDPacket done [16:50:46]NVStorageSaveData kkm_last_timestamp [16:50:46]File name is /storage/kkm_last_timestamp [16:50:46]Write 4 bytes [16:50:46]NVStorageSaveData done [16:50:46]ExternCall_PrintAddStr [16:50:46]wPrintStart [16:50:46]Write to MH i2c: 01 00 00 67 18 7F [16:50:46]Write i2c OK [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 07 00 [16:50:46]MH_I2C_Read... [16:50:46]Read from MH i2c: 01 07 00 67 18 00 00 00 00 00 FF 0F 94 [16:50:46]RasterBufferAndPrint [16:50:46]line Счет N : (1)31637 [16:50:46]line ИНН: 02508201610067 [16:50:46]line Контрольно-Кассовый Чек [16:50:46]line ПРОДАЖА [16:50:46]line ТРК (МРК, ГНК) : 21 [16:50:46]line Товар: 2710124130 [16:50:46]line Аи-92-К-5 [16:50:46]line 3.290 * 66.90 [16:50:46]line = 220.10 [16:50:46]line НДС 12% НСП 1% [16:50:46]line > о реализуемом товаре [16:50:46]line ОКРУГЛЕНИЕ: -0.10 [16:50:46]line ИТОГО: 220.00 [16:50:46]line Внесено: 220.00 [16:50:46]line СДАЧА: 0.00 [16:50:46]line НСП 1% : 1.95 [16:50:46]line НДС 12% : 23.37 [16:50:46]line Наличными: 220.00 [16:50:46]line Безнал.: 0.00 [16:50:46]line Место: АЗС № 170 "Партнер Нефть" [16:50:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:50:46]line СНО: Общий режим [16:50:46]line Чек 353 27.10.2024 16:50 [16:50:46]line Смена: 542 ФФД: 1.0 [16:50:46]line ЗНМ: 0300000110 [16:50:46]line РНМ: 0000000000091776 [16:50:46]line Версия ККМ: 001 [16:50:46]line ФМ: 0000000000871754 [16:50:46]line ФД: 192321 [16:50:46]line ФПД: 99821701020688 [16:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192321&fm=99821701020688&tin=02508201610067®Number=0000000000091776&sum=22000 [16:50:47]OFD Sender: Processing packet 192321 [packets to send 75, broken 74] [16:50:47]ProducePacketName [16:50:47]name=ofd_packets/00192321 [16:50:47]OFD Sender: To server: pG, [16:50:47]CommunicateWithHost lk.salyk.kg:30040 [16:50:47]ConnectInit lk.salyk.kg [16:50:47]written 0, free lines is 4095 [16:50:47]Connected sock=10 [16:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 94 07 01 CA DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 65 6F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EF 02 00 35 04 06 00 5A C9 8D 07 BC 10 BD 04 C2 60 C4 14 63 D6 [16:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 70 47 00 F9 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 EF 02 00 F4 03 04 00 2C 14 1E 67 B6 04 01 00 00 88 CE 57 BE 9D 61 71 80 [16:50:47]CommunicateWithHost err = 0 [16:50:47]CheckOFDResponse [16:50:47]1017 (14) - 77093643461234 [16:50:47]1041 (16) - 0000000000871754 [16:50:47]1040 (4) - 192321 [16:50:47]1012 (4) - 27.10.2024 10:21 [16:50:47]1206 (1) - 0 [16:50:47]OFD Sender: Remove packet 192321 [16:50:47]ProducePacketName [16:50:47]name=ofd_packets/00192321 [16:50:47]NVStorageDeleteData [16:50:47]Write to MH i2c: 01 00 00 92 18 AA [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: 01 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: 01 07 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: 01 07 00 92 18 00 00 00 00 00 A5 0C 62 [16:50:47]RasterBufferAndPrint [16:50:47]line [16:50:47]line [16:50:47]line [16:50:47]line [16:50:47]line [16:50:47]written 0, free lines is 3242 [16:50:47]MH_Cut [16:50:47]Write to MH i2c: D1 01 00 99 18 01 83 [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: D1 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: D1 01 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: D1 01 00 99 18 00 82 [16:50:47]Write to MH i2c: 01 00 00 9A 18 B2 [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]OFD Sender: No OFD packet to send [16:50:48]*** Cut start [16:50:48]*** Partial cut [16:50:48]*** CUTSNS_PIN = 1 [16:50:48]*** CUTSNS_PIN = 0 [16:50:48]*** Brake cut motor [16:50:48]Read from MH i2c: 01 [16:50:48]MH_I2C_Read... [16:50:48]*** Stop cut motor [16:50:48]*** Cut end [16:50:48]Read from MH i2c: 01 07 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 FF 0F C7 [16:50:48]process_action close_receipt done [16:50:48]requested_data is exist [16:50:48]produce_requested_data [16:50:48]requested_item fm.sn is exist - process it [16:50:48]wFMCommunicate request_size=4 [16:50:48]MH_SAM_APDU [16:50:48]CAPDU: 80 11 00 00 [16:50:48]Write to MH i2c: E2 08 00 9B 18 80 11 00 00 00 00 00 00 2D [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 [16:50:49]MH_I2C_Read... [16:50:49]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 37 35 34 90 00 80 [16:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:49]wFMCommunicate OK [16:50:49]requested_item fd.num is exist - process it [16:50:49]SAM_PROTO_GetFieldsCounters [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 00 00 [16:50:49]Write to MH i2c: E2 08 00 9C 18 80 13 00 00 00 00 00 00 30 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 9C 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_GetFieldsCounters done [16:50:49]requested_item shift.num is exist - process it [16:50:49]requested_item shift.opened is exist - process it [16:50:49]req_shift_opened [16:50:49]FM_GetShiftState [16:50:49]SAM_PROTO_GetShiftState [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 01 00 [16:50:49]Write to MH i2c: E2 08 00 9D 18 80 13 01 00 00 00 00 00 32 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 9D 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 73 [16:50:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_GetShiftState done [16:50:49]FM_GetShiftState done [16:50:49]req_shift_opened done [16:50:49]requested_item shift.open_date is exist - process it [16:50:49]req_shift_open_date [16:50:49]req_shift_open_date done [16:50:49]produce_requested_data done [16:50:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192321,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:50:49]process_action_free close_receipt [16:50:49]json_value_free [16:50:49]json_value_free done [16:50:49]process_json_proto returns [16:50:49]Send response to host [16:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192321,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:50:49]free response buf [16:50:49]execute_script done [16:50:49]execute_script returns [16:50:49]free content buf [16:50:49]Sock 7.Close socket [16:50:49]Sock 7.Thread stoped [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:35]accept exits with 9 [16:53:35]New connection [16:53:35]New thread 3067080036 created [16:53:35]Thread 3066936676 joined [16:53:35]Waiting for new connection... [16:53:35] Sock 9.Parse request [16:53:35]Sock 9.Check first char [16:53:35]Sock 9.First char is OK [16:53:35]request: POST /json_proto HTTP/1.0 [16:53:35]Method: POST [16:53:35]URL: /json_proto [16:53:35]Method is POST - this is cgi request [16:53:35]url: /json_proto [16:53:35]query_string will be loaded in cgi processing [16:53:35]execute_cgi json_proto POST (null) [16:53:35]execute_cgi path=json_proto method=POST [16:53:35]POST find Content-Length [16:53:35]Host: 172.17.63.131:8080 [16:53:35]Content-Length: 862 [16:53:35]Content-Type: application/json [16:53:35] [16:53:35]POST finish read [16:53:35]Found Content-Length = 862 [16:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:35]execute_script... [16:53: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)31639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:35]POST & json_proto [16:53:35]process_json_proto [16:53:35]json parsed OK: [16:53:35]protocol is kg_v1.0 [16:53:35]action value=close_receipt [16:53:35]process_action close_receipt [16:53:35]cmd_close_receipt [16:53:35]MH_GetDate [16:53:35]Write to MH i2c: F0 00 00 9E 18 A5 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 09 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 09 00 9E 18 00 0F 70 1E 67 22 05 6E 64 AB [16:53:35]GetLastDocTimeStamp 1730047845 [16:53:35]current date 1730048015 [16:53:35]FM_GetShiftState [16:53:35]SAM_PROTO_GetShiftState [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 01 00 [16:53:35]Write to MH i2c: E2 08 00 9F 18 80 13 01 00 00 00 00 00 34 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 9F 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [16:53:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetShiftState done [16:53:35]FM_GetShiftState done [16:53:35]opened in 1729989159 [16:53:35]opened+sec_in_day 1730075559 [16:53:35]quantity*price = 50041 [16:53:35]sum+1 = 50042 [16:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 354 27.10.2024 16:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192322 ФПД: 173643325861781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165335&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192322&fm=173643325861781&tin=02508201610067®Number=0000000000091776&sum=50041 [16:53:36]StoreToDocumentArchive [16:53:36]shift 542 fd 192322 [16:53:36]save to /storage/0542/doc_00192322 [16:53:36]save last doc name /storage/0542/doc_00192322 to /storage/kkm_last_doc_name [16:53:36]save OK [16:53:36]Clear old archive folders... [16:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:36]tlvbuf is 003041B0 [16:53:36]SAM_PROTO_ClearQueue [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 09 00 00 [16:53:36]Write to MH i2c: E2 08 00 AC 18 80 09 00 00 00 00 00 00 36 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [16:53:36]RAPDU: 90 00 [16:53:36]wFMCommunicate OK [16:53:36]SAM_PROTO_ClearQueue done [16:53:36]KKMCreateOFDPacket [16:53:36]OFDProtocolAddRootSTLVToBuf [16:53:36]FM_MakeSignedData [16:53:36]FM_MakeSignedData [16:53:36]SAM_PROTO_SignData [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 0D 01 02 [16:53:36]Write to MH i2c: E2 08 00 AD 18 80 0D 01 02 00 00 00 00 3E [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [16:53:36]RAPDU: 90 00 [16:53:36]wFMCommunicate OK [16:53:36]wFMCommunicate request_size=255 [16:53:36]MH_SAM_APDU [16:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0F 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EF 02 00 35 04 06 00 9D [16:53:36]Write to MH i2c: E2 02 01 AE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0F 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EF 02 00 35 04 06 00 9D 00 00 7B [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [16:53:36]RAPDU: 90 00 [16:53:36]wFMCommunicate OK [16:53:36]wFMCommunicate request_size=10 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 0D 02 02 05 ED 7C C1 6F 95 [16:53:36]Write to MH i2c: E2 0D 00 AF 18 80 0D 02 02 05 00 ED 7C C1 6F 95 00 00 79 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [16:53:36]RAPDU: 90 00 [16:53:36]wFMCommunicate OK [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 0D 03 02 [16:53:36]Write to MH i2c: E2 08 00 B0 18 80 0D 03 02 00 00 00 00 43 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0B 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0B 00 B0 18 00 06 A0 41 DF B8 C5 55 22 90 00 FE [16:53:36]RAPDU: 06 A0 41 DF B8 C5 55 22 90 00 [16:53:36]wFMCommunicate OK [16:53:36]SAM_PROTO_SignData done [16:53:36]FM_MakeSignedData done [16:53:36]CreateOFDProtocolMessage [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 11 00 00 [16:53:36]Write to MH i2c: E2 08 00 B1 18 80 11 00 00 00 00 00 00 43 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 17 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 17 00 B1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [16:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:36]wFMCommunicate OK [16:53:36]CreateOFDProtocolMessage done [16:53:36]OFDSenderStorePacket 192322 [16:53:36]StoreOFDPacket docnum=192322 [16:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 E3 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0F 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EF 02 00 35 04 06 00 9D ED 7C C1 6F 95 06 A0 41 DF B8 C5 55 22 [16:53:36]CheckFolder [16:53:36]dirname=/storage/ofd_packets [16:53:36]CheckFolder done [16:53:36]ProducePacketName [16:53:36]name=ofd_packets/00192322 [16:53:36]NVStorageSaveData ofd_packets/00192322 [16:53:36]File name is /storage/ofd_packets/00192322 [16:53:36]Write 301 bytes [16:53:36]NVStorageSaveData done [16:53:36]OFDSenderStorePacket done [16:53:36]KKMCreateOFDPacket done [16:53:36]NVStorageSaveData kkm_last_timestamp [16:53:36]File name is /storage/kkm_last_timestamp [16:53:36]Write 4 bytes [16:53:36]NVStorageSaveData done [16:53:36]ExternCall_PrintAddStr [16:53:36]wPrintStart [16:53:36]Write to MH i2c: 01 00 00 B2 18 CA [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: 01 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: 01 07 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 FF 0F DF [16:53:36]RasterBufferAndPrint [16:53:36]line Счет N : (1)31639 [16:53:36]line ИНН: 02508201610067 [16:53:36]line Контрольно-Кассовый Чек [16:53:36]line ПРОДАЖА [16:53:36]line ТРК (МРК, ГНК) : 12 [16:53:36]line Товар: 2710124130 [16:53:36]line Аи-92-К-5 [16:53:36]line 7.480 * 66.90 [16:53:36]line = 500.41 [16:53:36]line НДС 12% НСП 1% [16:53:36]line > о реализуемом товаре [16:53:36]line ИТОГО: 500.41 [16:53:36]line НСП 1% : 4.43 [16:53:36]line НДС 12% : 53.14 [16:53:36]line Наличными: 0.00 [16:53:36]line Безнал.: 500.41 [16:53:36]line Место: АЗС № 170 "Партнер Нефть" [16:53:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:53:36]line СНО: Общий режим [16:53:36]line Чек 354 27.10.2024 16:53 [16:53:36]line Смена: 542 ФФД: 1.0 [16:53:36]line ЗНМ: 0300000110 [16:53:36]line РНМ: 0000000000091776 [16:53:36]line Версия ККМ: 001 [16:53:36]line Платежная система: Кыргызкоммерцбанк [16:53:36]line ФМ: 0000000000871754 [16:53:36]line ФД: 192322 [16:53:36]line ФПД: 173643325861781 [16:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165335&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192322&fm=173643325861781&tin=02508201610067®Number=0000000000091776&sum=50041 [16:53:37]OFD Sender: Processing packet 192322 [packets to send 75, broken 74] [16:53:37]ProducePacketName [16:53:37]name=ofd_packets/00192322 [16:53:37]OFD Sender: To server: pG, [16:53:37]CommunicateWithHost lk.salyk.kg:30040 [16:53:37]ConnectInit lk.salyk.kg [16:53:37]written 0, free lines is 4095 [16:53:37]Connected sock=10 [16:53:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 E3 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0F 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EF 02 00 35 04 06 00 9D ED 7C C1 6F 95 06 A0 41 DF B8 C5 55 22 [16:53:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 3C 47 00 72 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 EF 02 00 F4 03 04 00 D6 14 1E 67 B6 04 01 00 00 7B 92 97 B3 C8 EF 80 78 [16:53:37]CommunicateWithHost err = 0 [16:53:37]CheckOFDResponse [16:53:37]1017 (14) - 77093643461234 [16:53:37]1041 (16) - 0000000000871754 [16:53:37]1040 (4) - 192322 [16:53:37]1012 (4) - 27.10.2024 10:24 [16:53:37]1206 (1) - 0 [16:53:37]OFD Sender: Remove packet 192322 [16:53:37]ProducePacketName [16:53:37]name=ofd_packets/00192322 [16:53:37]NVStorageDeleteData [16:53:37]Write to MH i2c: 01 00 00 DC 18 F4 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 07 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 07 00 DC 18 00 00 00 00 00 BB 0C C2 [16:53:37]RasterBufferAndPrint [16:53:37]line [16:53:37]line [16:53:37]line [16:53:37]line [16:53:37]line [16:53:37]written 0, free lines is 3268 [16:53:37]MH_Cut [16:53:37]Write to MH i2c: D1 01 00 E3 18 01 CD [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: D1 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: D1 01 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: D1 01 00 E3 18 00 CC [16:53:37]Write to MH i2c: 01 00 00 E4 18 FC [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:38]OFD Sender: No OFD packet to send [16:53:38]*** Cut start [16:53:38]*** Partial cut [16:53:38]*** CUTSNS_PIN = 1 [16:53:38]*** CUTSNS_PIN = 0 [16:53:38]*** Brake cut motor [16:53:39]Read from MH i2c: 01 [16:53:39]MH_I2C_Read... [16:53:39]*** Stop cut motor [16:53:39]*** Cut end [16:53:39]Read from MH i2c: 01 07 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 07 00 E4 18 00 00 00 00 00 FF 0F 11 [16:53:39]process_action close_receipt done [16:53:39]requested_data is exist [16:53:39]produce_requested_data [16:53:39]requested_item fm.sn is exist - process it [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 11 00 00 [16:53:39]Write to MH i2c: E2 08 00 E5 18 80 11 00 00 00 00 00 00 77 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:39]Read from MH i2c: E2 17 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 17 00 E5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [16:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:39]wFMCommunicate OK [16:53:39]requested_item fd.num is exist - process it [16:53:39]SAM_PROTO_GetFieldsCounters [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 13 00 00 [16:53:39]Write to MH i2c: E2 08 00 E6 18 80 13 00 00 00 00 00 00 7A [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 62 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 62 00 E6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:53:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:39]wFMCommunicate OK [16:53:39]SAM_PROTO_GetFieldsCounters done [16:53:39]requested_item shift.num is exist - process it [16:53:39]requested_item shift.opened is exist - process it [16:53:39]req_shift_opened [16:53:39]FM_GetShiftState [16:53:39]SAM_PROTO_GetShiftState [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 13 01 00 [16:53:39]Write to MH i2c: E2 08 00 E7 18 80 13 01 00 00 00 00 00 7C [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 0E 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 0E 00 E7 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [16:53:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:53:39]wFMCommunicate OK [16:53:39]SAM_PROTO_GetShiftState done [16:53:39]FM_GetShiftState done [16:53:39]req_shift_opened done [16:53:39]requested_item shift.open_date is exist - process it [16:53:39]req_shift_open_date [16:53:39]req_shift_open_date done [16:53:39]produce_requested_data done [16:53:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192322,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:53:39]process_action_free close_receipt [16:53:39]json_value_free [16:53:39]json_value_free done [16:53:39]process_json_proto returns [16:53:39]Send response to host [16:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192322,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:53:39]free response buf [16:53:39]execute_script done [16:53:39]execute_script returns [16:53:39]free content buf [16:53:39]Sock 9.Close socket [16:53:39]Sock 9.Thread stoped [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:04]accept exits with 7 [16:55:04]New connection [16:55:04]New thread 3066936676 created [16:55:04]Thread 3067080036 joined [16:55:04]Waiting for new connection... [16:55:04] Sock 7.Parse request [16:55:04]Sock 7.Check first char [16:55:04]Sock 7.First char is OK [16:55:04]request: POST /json_proto HTTP/1.0 [16:55:04]Method: POST [16:55:04]URL: /json_proto [16:55:04]Method is POST - this is cgi request [16:55:04]url: /json_proto [16:55:04]query_string will be loaded in cgi processing [16:55:04]execute_cgi json_proto POST (null) [16:55:04]execute_cgi path=json_proto method=POST [16:55:04]POST find Content-Length [16:55:04]Host: 172.17.63.131:8080 [16:55:04]Content-Length: 678 [16:55:04]Content-Type: application/json [16:55:04] [16:55:04]POST finish read [16:55:04]Found Content-Length = 678 [16:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31638", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:04]execute_script... [16:55: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)31638", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:04]POST & json_proto [16:55:04]process_json_proto [16:55:04]json parsed OK: [16:55:04]protocol is kg_v1.0 [16:55:04]action value=close_receipt [16:55:04]process_action close_receipt [16:55:04]cmd_close_receipt [16:55:04]MH_GetDate [16:55:04]Write to MH i2c: F0 00 00 E8 18 EF [16:55:04]Write i2c OK [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 09 00 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 09 00 E8 18 00 69 70 1E 67 22 05 6E 64 4F [16:55:04]GetLastDocTimeStamp 1730048015 [16:55:04]current date 1730048105 [16:55:04]FM_GetShiftState [16:55:04]SAM_PROTO_GetShiftState [16:55:04]wFMCommunicate request_size=4 [16:55:04]MH_SAM_APDU [16:55:04]CAPDU: 80 13 01 00 [16:55:04]Write to MH i2c: E2 08 00 E9 18 80 13 01 00 00 00 00 00 7E [16:55:04]Write i2c OK [16:55:04]MH_I2C_Read... [16:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:04]Read from MH i2c: E2 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: E2 0E 00 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: E2 0E 00 E9 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [16:55:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:55:04]wFMCommunicate OK [16:55:04]SAM_PROTO_GetShiftState done [16:55:04]FM_GetShiftState done [16:55:04]opened in 1729989159 [16:55:04]opened+sec_in_day 1730075559 [16:55:04]quantity*price = 300075 [16:55:04]sum+1 = 300077 [16:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 355 27.10.2024 16:55 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192323 ФПД: 56444380054878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192323&fm=56444380054878&tin=02508201610067®Number=0000000000091776&sum=300000 [16:55:05]StoreToDocumentArchive [16:55:05]shift 542 fd 192323 [16:55:05]save to /storage/0542/doc_00192323 [16:55:05]save last doc name /storage/0542/doc_00192323 to /storage/kkm_last_doc_name [16:55:05]save OK [16:55:05]Clear old archive folders... [16:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:55:05]tlvbuf is 00343BA0 [16:55:05]SAM_PROTO_ClearQueue [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 09 00 00 [16:55:05]Write to MH i2c: E2 08 00 F6 18 80 09 00 00 00 00 00 00 80 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]SAM_PROTO_ClearQueue done [16:55:05]KKMCreateOFDPacket [16:55:05]OFDProtocolAddRootSTLVToBuf [16:55:05]FM_MakeSignedData [16:55:05]FM_MakeSignedData [16:55:05]SAM_PROTO_SignData [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 01 02 [16:55:05]Write to MH i2c: E2 08 00 F7 18 80 0D 01 02 00 00 00 00 88 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]wFMCommunicate request_size=255 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 69 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EF 02 00 35 04 06 00 33 55 FB 39 [16:55:05]Write to MH i2c: E2 02 01 F8 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 69 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EF 02 00 35 04 06 00 33 55 FB 39 00 00 1B [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [16:55:06]RAPDU: 90 00 [16:55:06]wFMCommunicate OK [16:55:06]wFMCommunicate request_size=7 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 0D 02 02 02 05 5E [16:55:06]Write to MH i2c: E2 0A 00 F9 18 80 0D 02 02 02 00 05 5E 00 00 F2 [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [16:55:06]RAPDU: 90 00 [16:55:06]wFMCommunicate OK [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 0D 03 02 [16:55:06]Write to MH i2c: E2 08 00 FA 18 80 0D 03 02 00 00 00 00 8D [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0B 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0B 00 FA 18 00 C1 2D 4B 42 86 0E 50 3C 90 00 29 [16:55:06]RAPDU: C1 2D 4B 42 86 0E 50 3C 90 00 [16:55:06]wFMCommunicate OK [16:55:06]SAM_PROTO_SignData done [16:55:06]FM_MakeSignedData done [16:55:06]CreateOFDProtocolMessage [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 11 00 00 [16:55:06]Write to MH i2c: E2 08 00 FB 18 80 11 00 00 00 00 00 00 8D [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 17 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 17 00 FB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [16:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:06]wFMCommunicate OK [16:55:06]CreateOFDProtocolMessage done [16:55:06]OFDSenderStorePacket 192323 [16:55:06]StoreOFDPacket docnum=192323 [16:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AB 03 04 01 1B B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 69 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EF 02 00 35 04 06 00 33 55 FB 39 05 5E C1 2D 4B 42 86 0E 50 3C [16:55:06]CheckFolder [16:55:06]dirname=/storage/ofd_packets [16:55:06]CheckFolder done [16:55:06]ProducePacketName [16:55:06]name=ofd_packets/00192323 [16:55:06]NVStorageSaveData ofd_packets/00192323 [16:55:06]File name is /storage/ofd_packets/00192323 [16:55:06]Write 298 bytes [16:55:06]NVStorageSaveData done [16:55:06]OFDSenderStorePacket done [16:55:06]KKMCreateOFDPacket done [16:55:06]NVStorageSaveData kkm_last_timestamp [16:55:06]File name is /storage/kkm_last_timestamp [16:55:06]Write 4 bytes [16:55:06]NVStorageSaveData done [16:55:06]ExternCall_PrintAddStr [16:55:06]wPrintStart [16:55:06]Write to MH i2c: 01 00 00 FC 18 14 [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 07 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 07 00 FC 18 00 00 00 00 00 FF 0F 29 [16:55:06]RasterBufferAndPrint [16:55:06]line Счет N : (1)31638 [16:55:06]line ИНН: 02508201610067 [16:55:06]line Контрольно-Кассовый Чек [16:55:06]line ПРОДАЖА [16:55:06]line ТРК (МРК, ГНК) : 11 [16:55:06]line Товар: 2710194210 [16:55:06]line ДТ-К-5 [16:55:06]line 39.380 * 76.20 [16:55:06]line = 3000.76 [16:55:06]line НДС 12% НСП 1% [16:55:06]line > о реализуемом товаре [16:55:06]line ОКРУГЛЕНИЕ: -0.76 [16:55:06]line ИТОГО: 3000.00 [16:55:06]line Внесено: 3000.00 [16:55:06]line СДАЧА: 0.00 [16:55:06]line НСП 1% : 26.55 [16:55:06]line НДС 12% : 318.66 [16:55:06]line Наличными: 3000.00 [16:55:06]line Безнал.: 0.00 [16:55:06]line Место: АЗС № 170 "Партнер Нефть" [16:55:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:55:06]line СНО: Общий режим [16:55:06]line Чек 355 27.10.2024 16:55 [16:55:06]line Смена: 542 ФФД: 1.0 [16:55:06]line ЗНМ: 0300000110 [16:55:06]line РНМ: 0000000000091776 [16:55:06]line Версия ККМ: 001 [16:55:06]line ФМ: 0000000000871754 [16:55:06]line ФД: 192323 [16:55:06]line ФПД: 56444380054878 [16:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192323&fm=56444380054878&tin=02508201610067®Number=0000000000091776&sum=300000 [16:55:06]OFD Sender: Processing packet 192323 [packets to send 75, broken 74] [16:55:06]ProducePacketName [16:55:06]name=ofd_packets/00192323 [16:55:06]OFD Sender: To server: pG, [16:55:06]CommunicateWithHost lk.salyk.kg:30040 [16:55:06]ConnectInit lk.salyk.kg [16:55:06]written 0, free lines is 4095 [16:55:06]Connected sock=10 [16:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AB 03 04 01 1B B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 69 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EF 02 00 35 04 06 00 33 55 FB 39 05 5E C1 2D 4B 42 86 0E 50 3C [16:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D4 9B 47 00 E2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 EF 02 00 F4 03 04 00 30 15 1E 67 B6 04 01 00 00 66 67 37 7D 3A 32 75 1F [16:55:06]CommunicateWithHost err = 0 [16:55:06]CheckOFDResponse [16:55:06]1017 (14) - 77093643461234 [16:55:06]1041 (16) - 0000000000871754 [16:55:06]1040 (4) - 192323 [16:55:06]1012 (4) - 27.10.2024 10:25 [16:55:06]1206 (1) - 0 [16:55:06]OFD Sender: Remove packet 192323 [16:55:06]ProducePacketName [16:55:06]name=ofd_packets/00192323 [16:55:06]NVStorageDeleteData [16:55:07]Write to MH i2c: 01 00 00 27 19 40 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 27 19 00 00 00 00 00 B6 0C 09 [16:55:07]RasterBufferAndPrint [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]written 0, free lines is 3259 [16:55:07]MH_Cut [16:55:07]Write to MH i2c: D1 01 00 2E 19 01 19 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 01 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 01 00 2E 19 00 18 [16:55:07]Write to MH i2c: 01 00 00 2F 19 48 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]OFD Sender: No OFD packet to send [16:55:07]*** Cut start [16:55:07]*** Partial cut [16:55:07]*** CUTSNS_PIN = 1 [16:55:07]*** CUTSNS_PIN = 0 [16:55:08]*** Brake cut motor [16:55:08]Read from MH i2c: 01 [16:55:08]MH_I2C_Read... [16:55:08]*** Stop cut motor [16:55:08]*** Cut end [16:55:08]Read from MH i2c: 01 07 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 FF 0F 5D [16:55:08]process_action close_receipt done [16:55:08]requested_data is exist [16:55:08]produce_requested_data [16:55:08]requested_item fm.sn is exist - process it [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 11 00 00 [16:55:08]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:08]Read from MH i2c: E2 17 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 17 00 30 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [16:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:08]wFMCommunicate OK [16:55:08]requested_item fd.num is exist - process it [16:55:08]SAM_PROTO_GetFieldsCounters [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 13 00 00 [16:55:08]Write to MH i2c: E2 08 00 31 19 80 13 00 00 00 00 00 00 C6 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 62 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 62 00 31 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [16:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:08]wFMCommunicate OK [16:55:08]SAM_PROTO_GetFieldsCounters done [16:55:08]requested_item shift.num is exist - process it [16:55:08]requested_item shift.opened is exist - process it [16:55:08]req_shift_opened [16:55:08]FM_GetShiftState [16:55:08]SAM_PROTO_GetShiftState [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 13 01 00 [16:55:08]Write to MH i2c: E2 08 00 32 19 80 13 01 00 00 00 00 00 C8 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 0E 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 0E 00 32 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 09 [16:55:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:55:08]wFMCommunicate OK [16:55:08]SAM_PROTO_GetShiftState done [16:55:08]FM_GetShiftState done [16:55:08]req_shift_opened done [16:55:08]requested_item shift.open_date is exist - process it [16:55:08]req_shift_open_date [16:55:08]req_shift_open_date done [16:55:08]produce_requested_data done [16:55:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192323,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:55:08]process_action_free close_receipt [16:55:08]json_value_free [16:55:08]json_value_free done [16:55:08]process_json_proto returns [16:55:08]Send response to host [16:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192323,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:55:08]free response buf [16:55:08]execute_script done [16:55:08]execute_script returns [16:55:08]free content buf [16:55:08]Sock 7.Close socket [16:55:08]Sock 7.Thread stoped [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:48]accept exits with 9 [16:56:48]New connection [16:56:48]New thread 3067080036 created [16:56:48]Thread 3066936676 joined [16:56:48]Waiting for new connection... [16:56:48] Sock 9.Parse request [16:56:48]Sock 9.Check first char [16:56:48]Sock 9.First char is OK [16:56:48]request: POST /json_proto HTTP/1.0 [16:56:48]Method: POST [16:56:48]URL: /json_proto [16:56:48]Method is POST - this is cgi request [16:56:48]url: /json_proto [16:56:48]query_string will be loaded in cgi processing [16:56:48]execute_cgi json_proto POST (null) [16:56:48]execute_cgi path=json_proto method=POST [16:56:48]POST find Content-Length [16:56:48]Host: 172.17.63.131:8080 [16:56:48]Content-Length: 681 [16:56:48]Content-Type: application/json [16:56:48] [16:56:48]POST finish read [16:56:48]Found Content-Length = 681 [16:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:48]execute_script... [16:56: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)31641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:48]POST & json_proto [16:56:48]process_json_proto [16:56:48]json parsed OK: [16:56:48]protocol is kg_v1.0 [16:56:48]action value=close_receipt [16:56:48]process_action close_receipt [16:56:48]cmd_close_receipt [16:56:48]MH_GetDate [16:56:48]Write to MH i2c: F0 00 00 33 19 3B [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: F0 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: F0 09 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: F0 09 00 33 19 00 D1 70 1E 67 22 05 6E 64 03 [16:56:48]GetLastDocTimeStamp 1730048105 [16:56:48]current date 1730048209 [16:56:48]FM_GetShiftState [16:56:48]SAM_PROTO_GetShiftState [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 13 01 00 [16:56:48]Write to MH i2c: E2 08 00 34 19 80 13 01 00 00 00 00 00 CA [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 0E 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 0E 00 34 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [16:56:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:56:48]wFMCommunicate OK [16:56:48]SAM_PROTO_GetShiftState done [16:56:48]FM_GetShiftState done [16:56:48]opened in 1729989159 [16:56:48]opened+sec_in_day 1730075559 [16:56:48]quantity*price = 150056 [16:56:48]sum+1 = 150058 [16:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 356 27.10.2024 16:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192324 ФПД: 196869602122236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192324&fm=196869602122236&tin=02508201610067®Number=0000000000091776&sum=150000 [16:56:49]StoreToDocumentArchive [16:56:49]shift 542 fd 192324 [16:56:49]save to /storage/0542/doc_00192324 [16:56:49]save last doc name /storage/0542/doc_00192324 to /storage/kkm_last_doc_name [16:56:49]save OK [16:56:49]Clear old archive folders... [16:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:49]tlvbuf is 0031F380 [16:56:49]SAM_PROTO_ClearQueue [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 09 00 00 [16:56:49]Write to MH i2c: E2 08 00 41 19 80 09 00 00 00 00 00 00 CC [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 03 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [16:56:49]RAPDU: 90 00 [16:56:49]wFMCommunicate OK [16:56:49]SAM_PROTO_ClearQueue done [16:56:49]KKMCreateOFDPacket [16:56:49]OFDProtocolAddRootSTLVToBuf [16:56:49]FM_MakeSignedData [16:56:49]FM_MakeSignedData [16:56:49]SAM_PROTO_SignData [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 0D 01 02 [16:56:49]Write to MH i2c: E2 08 00 42 19 80 0D 01 02 00 00 00 00 D4 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 03 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [16:56:49]RAPDU: 90 00 [16:56:49]wFMCommunicate OK [16:56:49]wFMCommunicate request_size=255 [16:56:49]MH_SAM_APDU [16:56: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D1 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EF 02 00 35 04 06 00 B3 [16:56:49]Write to MH i2c: E2 02 01 43 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D1 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EF 02 00 35 04 06 00 B3 00 00 E4 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 03 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [16:56:50]RAPDU: 90 00 [16:56:50]wFMCommunicate OK [16:56:50]wFMCommunicate request_size=10 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 0D 02 02 05 0D 46 B3 99 FC [16:56:50]Write to MH i2c: E2 0D 00 44 19 80 0D 02 02 05 00 0D 46 B3 99 FC 00 00 7C [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 03 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [16:56:50]RAPDU: 90 00 [16:56:50]wFMCommunicate OK [16:56:50]wFMCommunicate request_size=4 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 0D 03 02 [16:56:50]Write to MH i2c: E2 08 00 45 19 80 0D 03 02 00 00 00 00 D9 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 0B 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 0B 00 45 19 00 F6 77 EB FD 9B C3 8B B3 90 00 CB [16:56:50]RAPDU: F6 77 EB FD 9B C3 8B B3 90 00 [16:56:50]wFMCommunicate OK [16:56:50]SAM_PROTO_SignData done [16:56:50]FM_MakeSignedData done [16:56:50]CreateOFDProtocolMessage [16:56:50]wFMCommunicate request_size=4 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 11 00 00 [16:56:50]Write to MH i2c: E2 08 00 46 19 80 11 00 00 00 00 00 00 D9 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 17 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 17 00 46 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [16:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:50]wFMCommunicate OK [16:56:50]CreateOFDProtocolMessage done [16:56:50]OFDSenderStorePacket 192324 [16:56:50]StoreOFDPacket docnum=192324 [16:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F A5 07 01 13 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D1 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EF 02 00 35 04 06 00 B3 0D 46 B3 99 FC F6 77 EB FD 9B C3 8B B3 [16:56:50]CheckFolder [16:56:50]dirname=/storage/ofd_packets [16:56:50]CheckFolder done [16:56:50]ProducePacketName [16:56:50]name=ofd_packets/00192324 [16:56:50]NVStorageSaveData ofd_packets/00192324 [16:56:50]File name is /storage/ofd_packets/00192324 [16:56:50]Write 301 bytes [16:56:50]NVStorageSaveData done [16:56:50]OFDSenderStorePacket done [16:56:50]KKMCreateOFDPacket done [16:56:50]NVStorageSaveData kkm_last_timestamp [16:56:50]File name is /storage/kkm_last_timestamp [16:56:50]Write 4 bytes [16:56:50]NVStorageSaveData done [16:56:50]ExternCall_PrintAddStr [16:56:50]wPrintStart [16:56:50]Write to MH i2c: 01 00 00 47 19 60 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 07 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 07 00 47 19 00 00 00 00 00 FF 0F 75 [16:56:50]RasterBufferAndPrint [16:56:50]line Счет N : (1)31641 [16:56:50]line ИНН: 02508201610067 [16:56:50]line Контрольно-Кассовый Чек [16:56:50]line ПРОДАЖА [16:56:50]line ТРК (МРК, ГНК) : 12 [16:56:50]line Товар: 2710124130 [16:56:50]line Аи-92-К-5 [16:56:50]line 22.430 * 66.90 [16:56:50]line = 1500.57 [16:56:50]line НДС 12% НСП 1% [16:56:50]line > о реализуемом товаре [16:56:50]line ОКРУГЛЕНИЕ: -0.57 [16:56:50]line ИТОГО: 1500.00 [16:56:50]line Внесено: 1500.00 [16:56:50]line СДАЧА: 0.00 [16:56:50]line НСП 1% : 13.28 [16:56:50]line НДС 12% : 159.35 [16:56:50]line Наличными: 1500.00 [16:56:50]line Безнал.: 0.00 [16:56:50]line Место: АЗС № 170 "Партнер Нефть" [16:56:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:56:50]line СНО: Общий режим [16:56:50]line Чек 356 27.10.2024 16:56 [16:56:50]line Смена: 542 ФФД: 1.0 [16:56:50]line ЗНМ: 0300000110 [16:56:50]line РНМ: 0000000000091776 [16:56:50]line Версия ККМ: 001 [16:56:50]line ФМ: 0000000000871754 [16:56:50]line ФД: 192324 [16:56:50]line ФПД: 196869602122236 [16:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192324&fm=196869602122236&tin=02508201610067®Number=0000000000091776&sum=150000 [16:56:50]OFD Sender: Processing packet 192324 [packets to send 75, broken 74] [16:56:50]ProducePacketName [16:56:50]name=ofd_packets/00192324 [16:56:50]OFD Sender: To server: pG, [16:56:50]CommunicateWithHost lk.salyk.kg:30040 [16:56:50]ConnectInit lk.salyk.kg [16:56:50]written 0, free lines is 4095 [16:56:50]Connected sock=10 [16:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F A5 07 01 13 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D1 70 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EF 02 00 35 04 06 00 B3 0D 46 B3 99 FC F6 77 EB FD 9B C3 8B B3 [16:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA 9A 47 00 5A 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 EF 02 00 F4 03 04 00 98 15 1E 67 B6 04 01 00 00 F8 F5 10 0D 3F 8B 37 97 [16:56:50]CommunicateWithHost err = 0 [16:56:50]CheckOFDResponse [16:56:50]1017 (14) - 77093643461234 [16:56:50]1041 (16) - 0000000000871754 [16:56:50]1040 (4) - 192324 [16:56:50]1012 (4) - 27.10.2024 10:27 [16:56:50]1206 (1) - 0 [16:56:50]OFD Sender: Remove packet 192324 [16:56:50]ProducePacketName [16:56:50]name=ofd_packets/00192324 [16:56:50]NVStorageDeleteData [16:56:50]Write to MH i2c: 01 00 00 72 19 8B [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 07 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: 01 07 00 72 19 00 00 00 00 00 AE 0C 4C [16:56:50]RasterBufferAndPrint [16:56:50]line [16:56:50]line [16:56:50]line [16:56:50]line [16:56:50]line [16:56:51]written 0, free lines is 3253 [16:56:51]MH_Cut [16:56:51]Write to MH i2c: D1 01 00 79 19 01 64 [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: D1 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: D1 01 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: D1 01 00 79 19 00 63 [16:56:51]Write to MH i2c: 01 00 00 7A 19 93 [16:56:51]Write i2c OK [16:56:51]MH_I2C_Read... [16:56:51]OFD Sender: No OFD packet to send [16:56:51]*** Cut start [16:56:51]*** Partial cut [16:56:51]*** CUTSNS_PIN = 1 [16:56:51]*** CUTSNS_PIN = 0 [16:56:52]*** Brake cut motor [16:56:52]Read from MH i2c: 01 [16:56:52]MH_I2C_Read... [16:56:52]*** Stop cut motor [16:56:52]*** Cut end [16:56:52]Read from MH i2c: 01 07 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 7A 19 00 00 00 00 00 FF 0F A8 [16:56:52]process_action close_receipt done [16:56:52]requested_data is exist [16:56:52]produce_requested_data [16:56:52]requested_item fm.sn is exist - process it [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 11 00 00 [16:56:52]Write to MH i2c: E2 08 00 7B 19 80 11 00 00 00 00 00 00 0E [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 17 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 17 00 7B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [16:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:52]wFMCommunicate OK [16:56:52]requested_item fd.num is exist - process it [16:56:52]SAM_PROTO_GetFieldsCounters [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 13 00 00 [16:56:52]Write to MH i2c: E2 08 00 7C 19 80 13 00 00 00 00 00 00 11 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 62 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 62 00 7C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:52]wFMCommunicate OK [16:56:52]SAM_PROTO_GetFieldsCounters done [16:56:52]requested_item shift.num is exist - process it [16:56:52]requested_item shift.opened is exist - process it [16:56:52]req_shift_opened [16:56:52]FM_GetShiftState [16:56:52]SAM_PROTO_GetShiftState [16:56:52]wFMCommunicate request_size=4 [16:56:52]MH_SAM_APDU [16:56:52]CAPDU: 80 13 01 00 [16:56:52]Write to MH i2c: E2 08 00 7D 19 80 13 01 00 00 00 00 00 13 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:52]Read from MH i2c: E2 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 0E 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: E2 0E 00 7D 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 54 [16:56:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:56:52]wFMCommunicate OK [16:56:52]SAM_PROTO_GetShiftState done [16:56:52]FM_GetShiftState done [16:56:52]req_shift_opened done [16:56:52]requested_item shift.open_date is exist - process it [16:56:52]req_shift_open_date [16:56:52]req_shift_open_date done [16:56:52]produce_requested_data done [16:56:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192324,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:56:52]process_action_free close_receipt [16:56:52]json_value_free [16:56:52]json_value_free done [16:56:52]process_json_proto returns [16:56:52]Send response to host [16:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192324,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:56:52]free response buf [16:56:52]execute_script done [16:56:52]execute_script returns [16:56:52]free content buf [16:56:52]Sock 9.Close socket [16:56:52]Sock 9.Thread stoped [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:15]accept exits with 7 [16:59:15]New connection [16:59:15]New thread 3066936676 created [16:59:15]Thread 3067080036 joined [16:59:15]Waiting for new connection... [16:59:15] Sock 7.Parse request [16:59:15]Sock 7.Check first char [16:59:15]Sock 7.First char is OK [16:59:15]request: POST /json_proto HTTP/1.0 [16:59:15]Method: POST [16:59:15]URL: /json_proto [16:59:15]Method is POST - this is cgi request [16:59:15]url: /json_proto [16:59:15]query_string will be loaded in cgi processing [16:59:15]execute_cgi json_proto POST (null) [16:59:15]execute_cgi path=json_proto method=POST [16:59:15]POST find Content-Length [16:59:15]Host: 172.17.63.131:8080 [16:59:15]Content-Length: 678 [16:59:15]Content-Type: application/json [16:59:15] [16:59:15]POST finish read [16:59:15]Found Content-Length = 678 [16:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31642", "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" : 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" ] } } [16:59:15]execute_script... [16:59:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31642", "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" : 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" ] } } [16:59:15]POST & json_proto [16:59:15]process_json_proto [16:59:15]json parsed OK: [16:59:15]protocol is kg_v1.0 [16:59:15]action value=close_receipt [16:59:15]process_action close_receipt [16:59:15]cmd_close_receipt [16:59:15]MH_GetDate [16:59:15]Write to MH i2c: F0 00 00 7E 19 86 [16:59:15]Write i2c OK [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 09 00 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 09 00 7E 19 00 64 71 1E 67 22 05 6E 64 E2 [16:59:15]GetLastDocTimeStamp 1730048209 [16:59:15]current date 1730048356 [16:59:15]FM_GetShiftState [16:59:15]SAM_PROTO_GetShiftState [16:59:15]wFMCommunicate request_size=4 [16:59:15]MH_SAM_APDU [16:59:15]CAPDU: 80 13 01 00 [16:59:15]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [16:59:15]Write i2c OK [16:59:15]MH_I2C_Read... [16:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:15]Read from MH i2c: E2 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: E2 0E 00 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [16:59:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:59:15]wFMCommunicate OK [16:59:15]SAM_PROTO_GetShiftState done [16:59:15]FM_GetShiftState done [16:59:15]opened in 1729989159 [16:59:15]opened+sec_in_day 1730075559 [16:59:15]quantity*price = 100050 [16:59:15]sum+1 = 100052 [16:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 357 27.10.2024 16:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192325 ФПД: 4806844957591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165916&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192325&fm=4806844957591&tin=02508201610067®Number=0000000000091776&sum=100000 [16:59:16]StoreToDocumentArchive [16:59:16]shift 542 fd 192325 [16:59:16]save to /storage/0542/doc_00192325 [16:59:16]save last doc name /storage/0542/doc_00192325 to /storage/kkm_last_doc_name [16:59:16]save OK [16:59:16]Clear old archive folders... [16:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:16]tlvbuf is B6EC7130 [16:59:16]SAM_PROTO_ClearQueue [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 09 00 00 [16:59:16]Write to MH i2c: E2 08 00 8C 19 80 09 00 00 00 00 00 00 17 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 8C 19 00 90 00 19 [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]SAM_PROTO_ClearQueue done [16:59:16]KKMCreateOFDPacket [16:59:16]OFDProtocolAddRootSTLVToBuf [16:59:16]FM_MakeSignedData [16:59:16]FM_MakeSignedData [16:59:16]SAM_PROTO_SignData [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 01 02 [16:59:16]Write to MH i2c: E2 08 00 8D 19 80 0D 01 02 00 00 00 00 1F [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 8D 19 00 90 00 1A [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]wFMCommunicate request_size=255 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 64 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EF 02 00 35 04 06 00 04 5F 2E 49 [16:59:16]Write to MH i2c: E2 02 01 8E 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 01 00 00 F4 03 04 00 64 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EF 02 00 35 04 06 00 04 5F 2E 49 00 00 99 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [16:59:17]RAPDU: 90 00 [16:59:17]wFMCommunicate OK [16:59:17]wFMCommunicate request_size=7 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 0D 02 02 02 43 97 [16:59:17]Write to MH i2c: E2 0A 00 8F 19 80 0D 02 02 02 00 43 97 00 00 00 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [16:59:17]RAPDU: 90 00 [16:59:17]wFMCommunicate OK [16:59:17]wFMCommunicate request_size=4 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 0D 03 02 [16:59:17]Write to MH i2c: E2 08 00 90 19 80 0D 03 02 00 00 00 00 24 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 0B 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 0B 00 90 19 00 B2 C7 14 53 01 54 00 FC 90 00 56 [16:59:17]RAPDU: B2 C7 14 53 01 54 00 FC 90 00 [16:59:17]wFMCommunicate OK [16:59:17]SAM_PROTO_SignData done [16:59:17]FM_MakeSignedData done [16:59:17]CreateOFDProtocolMessage [16:59:17]wFMCommunicate request_size=4 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 11 00 00 [16:59:17]Write to MH i2c: E2 08 00 91 19 80 11 00 00 00 00 00 00 24 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 17 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 17 00 91 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [16:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:59:17]wFMCommunicate OK [16:59:17]CreateOFDProtocolMessage done [16:59:17]OFDSenderStorePacket 192325 [16:59:17]StoreOFDPacket docnum=192325 [16:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 16 04 01 15 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 65 01 00 00 F4 03 04 00 64 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EF 02 00 35 04 06 00 04 5F 2E 49 43 97 B2 C7 14 53 01 54 00 FC [16:59:17]CheckFolder [16:59:17]dirname=/storage/ofd_packets [16:59:17]CheckFolder done [16:59:17]ProducePacketName [16:59:17]name=ofd_packets/00192325 [16:59:17]NVStorageSaveData ofd_packets/00192325 [16:59:17]File name is /storage/ofd_packets/00192325 [16:59:17]Write 298 bytes [16:59:17]NVStorageSaveData done [16:59:17]OFDSenderStorePacket done [16:59:17]KKMCreateOFDPacket done [16:59:17]NVStorageSaveData kkm_last_timestamp [16:59:17]File name is /storage/kkm_last_timestamp [16:59:17]Write 4 bytes [16:59:17]NVStorageSaveData done [16:59:17]ExternCall_PrintAddStr [16:59:17]wPrintStart [16:59:17]Write to MH i2c: 01 00 00 92 19 AB [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 92 19 00 00 00 00 00 FF 0F C0 [16:59:17]RasterBufferAndPrint [16:59:17]line Счет N : (1)31642 [16:59:17]line ИНН: 02508201610067 [16:59:17]line Контрольно-Кассовый Чек [16:59:17]line ПРОДАЖА [16:59:17]line ТРК (МРК, ГНК) : 11 [16:59:17]line Товар: 2710194210 [16:59:17]line ДТ-К-5 [16:59:17]line 13.130 * 76.20 [16:59:17]line = 1000.51 [16:59:17]line НДС 12% НСП 1% [16:59:17]line > о реализуемом товаре [16:59:17]line ОКРУГЛЕНИЕ: -0.51 [16:59:17]line ИТОГО: 1000.00 [16:59:17]line Внесено: 1000.00 [16:59:17]line СДАЧА: 0.00 [16:59:17]line НСП 1% : 8.85 [16:59:17]line НДС 12% : 106.25 [16:59:17]line Наличными: 1000.00 [16:59:17]line Безнал.: 0.00 [16:59:17]line Место: АЗС № 170 "Партнер Нефть" [16:59:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:59:17]line СНО: Общий режим [16:59:17]line Чек 357 27.10.2024 16:59 [16:59:17]line Смена: 542 ФФД: 1.0 [16:59:17]line ЗНМ: 0300000110 [16:59:17]line РНМ: 0000000000091776 [16:59:17]line Версия ККМ: 001 [16:59:17]line ФМ: 0000000000871754 [16:59:17]line ФД: 192325 [16:59:17]line ФПД: 4806844957591 [16:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165916&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192325&fm=4806844957591&tin=02508201610067®Number=0000000000091776&sum=100000 [16:59:17]OFD Sender: Processing packet 192325 [packets to send 75, broken 74] [16:59:17]ProducePacketName [16:59:17]name=ofd_packets/00192325 [16:59:17]OFD Sender: To server: pG, [16:59:17]CommunicateWithHost lk.salyk.kg:30040 [16:59:17]ConnectInit lk.salyk.kg [16:59:17]written 0, free lines is 4095 [16:59:17]Connected sock=10 [16:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 16 04 01 15 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 65 01 00 00 F4 03 04 00 64 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EF 02 00 35 04 06 00 04 5F 2E 49 43 97 B2 C7 14 53 01 54 00 FC [16:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA DD 47 00 14 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 EF 02 00 F4 03 04 00 2B 16 1E 67 B6 04 01 00 00 DA 66 2C 72 A7 8E C2 CE [16:59:17]CommunicateWithHost err = 0 [16:59:17]CheckOFDResponse [16:59:17]1017 (14) - 77093643461234 [16:59:17]1041 (16) - 0000000000871754 [16:59:17]1040 (4) - 192325 [16:59:17]1012 (4) - 27.10.2024 10:30 [16:59:17]1206 (1) - 0 [16:59:17]OFD Sender: Remove packet 192325 [16:59:17]ProducePacketName [16:59:17]name=ofd_packets/00192325 [16:59:17]NVStorageDeleteData [16:59:17]Write to MH i2c: 01 00 00 BD 19 D6 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 9E 0C 87 [16:59:17]RasterBufferAndPrint [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]written 0, free lines is 3238 [16:59:17]MH_Cut [16:59:17]Write to MH i2c: D1 01 00 C4 19 01 AF [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 01 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 01 00 C4 19 00 AE [16:59:17]Write to MH i2c: 01 00 00 C5 19 DE [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:18]OFD Sender: No OFD packet to send [16:59:18]*** Cut start [16:59:18]*** Partial cut [16:59:18]*** CUTSNS_PIN = 1 [16:59:18]*** CUTSNS_PIN = 0 [16:59:19]*** Brake cut motor [16:59:19]Read from MH i2c: 01 [16:59:19]MH_I2C_Read... [16:59:19]*** Stop cut motor [16:59:19]*** Cut end [16:59:19]Read from MH i2c: 01 07 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 FF 0F F3 [16:59:19]process_action close_receipt done [16:59:19]requested_data is exist [16:59:19]produce_requested_data [16:59:19]requested_item fm.sn is exist - process it [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 11 00 00 [16:59:19]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [16:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:59:19]wFMCommunicate OK [16:59:19]requested_item fd.num is exist - process it [16:59:19]SAM_PROTO_GetFieldsCounters [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 13 00 00 [16:59:19]Write to MH i2c: E2 08 00 C7 19 80 13 00 00 00 00 00 00 5C [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 62 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 62 00 C7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [16:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_GetFieldsCounters done [16:59:19]requested_item shift.num is exist - process it [16:59:19]requested_item shift.opened is exist - process it [16:59:19]req_shift_opened [16:59:19]FM_GetShiftState [16:59:19]SAM_PROTO_GetShiftState [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 13 01 00 [16:59:19]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9F [16:59:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_GetShiftState done [16:59:19]FM_GetShiftState done [16:59:19]req_shift_opened done [16:59:19]requested_item shift.open_date is exist - process it [16:59:19]req_shift_open_date [16:59:19]req_shift_open_date done [16:59:19]produce_requested_data done [16:59:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192325,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [16:59:19]process_action_free close_receipt [16:59:19]json_value_free [16:59:19]json_value_free done [16:59:19]process_json_proto returns [16:59:19]Send response to host [16:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192325,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [16:59:19]free response buf [16:59:19]execute_script done [16:59:19]execute_script returns [16:59:19]free content buf [16:59:19]Sock 7.Close socket [16:59:19]Sock 7.Thread stoped [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:56]accept exits with 9 [17:00:56]New connection [17:00:56]New thread 3067080036 created [17:00:56]Thread 3066936676 joined [17:00:56]Waiting for new connection... [17:00:56] Sock 9.Parse request [17:00:56]Sock 9.Check first char [17:00:56]Sock 9.First char is OK [17:00:56]request: POST /json_proto HTTP/1.0 [17:00:56]Method: POST [17:00:56]URL: /json_proto [17:00:56]Method is POST - this is cgi request [17:00:56]url: /json_proto [17:00:56]query_string will be loaded in cgi processing [17:00:56]execute_cgi json_proto POST (null) [17:00:56]execute_cgi path=json_proto method=POST [17:00:56]POST find Content-Length [17:00:56]Host: 172.17.63.131:8080 [17:00:56]Content-Length: 677 [17:00:56]Content-Type: application/json [17:00:56] [17:00:56]POST finish read [17:00:56]Found Content-Length = 677 [17:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:56]execute_script... [17:00:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:56]POST & json_proto [17:00:56]process_json_proto [17:00:56]json parsed OK: [17:00:56]protocol is kg_v1.0 [17:00:56]action value=close_receipt [17:00:56]process_action close_receipt [17:00:56]cmd_close_receipt [17:00:56]MH_GetDate [17:00:56]Write to MH i2c: F0 00 00 C9 19 D1 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 09 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: F0 09 00 C9 19 00 C9 71 1E 67 22 05 6E 64 92 [17:00:56]GetLastDocTimeStamp 1730048356 [17:00:56]current date 1730048457 [17:00:56]FM_GetShiftState [17:00:56]SAM_PROTO_GetShiftState [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 13 01 00 [17:00:56]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0E 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [17:00:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:00:56]wFMCommunicate OK [17:00:56]SAM_PROTO_GetShiftState done [17:00:56]FM_GetShiftState done [17:00:56]opened in 1729989159 [17:00:56]opened+sec_in_day 1730075559 [17:00:56]quantity*price = 70044 [17:00:56]sum+1 = 70045 [17:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 358 27.10.2024 17:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192326 ФПД: 147711420110125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192326&fm=147711420110125&tin=02508201610067®Number=0000000000091776&sum=70000 [17:00:57]StoreToDocumentArchive [17:00:57]shift 542 fd 192326 [17:00:57]save to /storage/0542/doc_00192326 [17:00:57]save last doc name /storage/0542/doc_00192326 to /storage/kkm_last_doc_name [17:00:57]save OK [17:00:57]Clear old archive folders... [17:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:57]tlvbuf is 002D0D10 [17:00:57]SAM_PROTO_ClearQueue [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 09 00 00 [17:00:57]Write to MH i2c: E2 08 00 D7 19 80 09 00 00 00 00 00 00 62 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [17:00:57]RAPDU: 90 00 [17:00:57]wFMCommunicate OK [17:00:57]SAM_PROTO_ClearQueue done [17:00:57]KKMCreateOFDPacket [17:00:57]OFDProtocolAddRootSTLVToBuf [17:00:57]FM_MakeSignedData [17:00:57]FM_MakeSignedData [17:00:57]SAM_PROTO_SignData [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 0D 01 02 [17:00:57]Write to MH i2c: E2 08 00 D8 19 80 0D 01 02 00 00 00 00 6A [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [17:00:57]RAPDU: 90 00 [17:00:57]wFMCommunicate OK [17:00:57]wFMCommunicate request_size=255 [17:00:57]MH_SAM_APDU [17:00: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C9 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EF 02 00 35 04 06 00 86 [17:00:57]Write to MH i2c: E2 02 01 D9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C9 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EF 02 00 35 04 06 00 86 00 00 11 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [17:00:57]RAPDU: 90 00 [17:00:57]wFMCommunicate OK [17:00:57]wFMCommunicate request_size=10 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 0D 02 02 05 57 BE B9 95 2D [17:00:57]Write to MH i2c: E2 0D 00 DA 19 80 0D 02 02 05 00 57 BE B9 95 2D 00 00 07 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [17:00:57]RAPDU: 90 00 [17:00:57]wFMCommunicate OK [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 0D 03 02 [17:00:57]Write to MH i2c: E2 08 00 DB 19 80 0D 03 02 00 00 00 00 6F [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0B 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0B 00 DB 19 00 1F 97 DB 3C BF 4D 3E 53 90 00 DA [17:00:57]RAPDU: 1F 97 DB 3C BF 4D 3E 53 90 00 [17:00:57]wFMCommunicate OK [17:00:57]SAM_PROTO_SignData done [17:00:57]FM_MakeSignedData done [17:00:57]CreateOFDProtocolMessage [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 11 00 00 [17:00:57]Write to MH i2c: E2 08 00 DC 19 80 11 00 00 00 00 00 00 6F [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 17 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 17 00 DC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [17:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:00:57]wFMCommunicate OK [17:00:57]CreateOFDProtocolMessage done [17:00:57]OFDSenderStorePacket 192326 [17:00:57]StoreOFDPacket docnum=192326 [17:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 C1 07 01 17 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C9 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EF 02 00 35 04 06 00 86 57 BE B9 95 2D 1F 97 DB 3C BF 4D 3E 53 [17:00:57]CheckFolder [17:00:57]dirname=/storage/ofd_packets [17:00:57]CheckFolder done [17:00:57]ProducePacketName [17:00:57]name=ofd_packets/00192326 [17:00:57]NVStorageSaveData ofd_packets/00192326 [17:00:57]File name is /storage/ofd_packets/00192326 [17:00:57]Write 301 bytes [17:00:57]NVStorageSaveData done [17:00:57]OFDSenderStorePacket done [17:00:57]KKMCreateOFDPacket done [17:00:57]NVStorageSaveData kkm_last_timestamp [17:00:57]File name is /storage/kkm_last_timestamp [17:00:57]Write 4 bytes [17:00:57]OFD Sender: Processing packet 192326 [packets to send 75, broken 74] [17:00:57]ProducePacketName [17:00:57]name=ofd_packets/00192326 [17:00:57]OFD Sender: To server: pG, [17:00:57]CommunicateWithHost lk.salyk.kg:30040 [17:00:57]ConnectInit lk.salyk.kg [17:00:57]NVStorageSaveData done [17:00:57]ExternCall_PrintAddStr [17:00:57]wPrintStart [17:00:57]Write to MH i2c: 01 00 00 DD 19 F6 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 07 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [17:00:57]RasterBufferAndPrint [17:00:57]line Счет N : (1)31644 [17:00:57]line ИНН: 02508201610067 [17:00:57]line Контрольно-Кассовый Чек [17:00:57]line ПРОДАЖА [17:00:57]line ТРК (МРК, ГНК) : 21 [17:00:57]line Товар: 2710124130 [17:00:57]line Аи-92-К-5 [17:00:57]line 10.470 * 66.90 [17:00:57]line = 700.44 [17:00:57]line НДС 12% НСП 1% [17:00:57]line > о реализуемом товаре [17:00:57]line ОКРУГЛЕНИЕ: -0.44 [17:00:57]line ИТОГО: 700.00 [17:00:57]line Внесено: 700.00 [17:00:57]line СДАЧА: 0.00 [17:00:57]line НСП 1% : 6.20 [17:00:57]line НДС 12% : 74.38 [17:00:57]line Наличными: 700.00 [17:00:57]line Безнал.: 0.00 [17:00:57]line Место: АЗС № 170 "Партнер Нефть" [17:00:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:00:57]line СНО: Общий режим [17:00:57]line Чек 358 27.10.2024 17:00 [17:00:57]line Смена: 542 ФФД: 1.0 [17:00:57]line ЗНМ: 0300000110 [17:00:57]line РНМ: 0000000000091776 [17:00:57]line Версия ККМ: 001 [17:00:57]line ФМ: 0000000000871754 [17:00:57]line ФД: 192326 [17:00:57]line ФПД: 147711420110125 [17:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192326&fm=147711420110125&tin=02508201610067®Number=0000000000091776&sum=70000 [17:00:58]Connected sock=11 [17:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 C1 07 01 17 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C9 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 EF 02 00 35 04 06 00 86 57 BE B9 95 2D 1F 97 DB 3C BF 4D 3E 53 [17:00:58]written 0, free lines is 4095 [17:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 6F 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 37 35 34 10 04 04 00 46 EF 02 00 F4 03 04 00 90 16 1E 67 B6 04 01 00 00 6C 07 F2 CF F4 6A F1 01 [17:00:58]CommunicateWithHost err = 0 [17:00:58]CheckOFDResponse [17:00:58]1017 (14) - 77093643461234 [17:00:58]1041 (16) - 0000000000871754 [17:00:58]1040 (4) - 192326 [17:00:58]1012 (4) - 27.10.2024 10:31 [17:00:58]1206 (1) - 0 [17:00:58]OFD Sender: Remove packet 192326 [17:00:58]ProducePacketName [17:00:58]name=ofd_packets/00192326 [17:00:58]NVStorageDeleteData [17:00:58]Write to MH i2c: 01 00 00 08 1A 22 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: 01 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: 01 07 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: 01 07 00 08 1A 00 00 00 00 00 9D 0C D2 [17:00:58]RasterBufferAndPrint [17:00:58]line [17:00:58]line [17:00:58]line [17:00:58]line [17:00:58]line [17:00:58]written 0, free lines is 3237 [17:00:58]MH_Cut [17:00:58]Write to MH i2c: D1 01 00 0F 1A 01 FB [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: D1 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: D1 01 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: D1 01 00 0F 1A 00 FA [17:00:58]Write to MH i2c: 01 00 00 10 1A 2A [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:59]OFD Sender: No OFD packet to send [17:00:59]*** Cut start [17:00:59]*** Partial cut [17:00:59]*** CUTSNS_PIN = 1 [17:00:59]*** CUTSNS_PIN = 0 [17:00:59]*** Brake cut motor [17:01:00]Read from MH i2c: 01 [17:01:00]MH_I2C_Read... [17:01:00]*** Stop cut motor [17:01:00]*** Cut end [17:01:00]Read from MH i2c: 01 07 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: 01 07 00 10 1A 00 00 00 00 00 FF 0F 3F [17:01:00]process_action close_receipt done [17:01:00]requested_data is exist [17:01:00]produce_requested_data [17:01:00]requested_item fm.sn is exist - process it [17:01:00]wFMCommunicate request_size=4 [17:01:00]MH_SAM_APDU [17:01:00]CAPDU: 80 11 00 00 [17:01:00]Write to MH i2c: E2 08 00 11 1A 80 11 00 00 00 00 00 00 A5 [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:00]Read from MH i2c: E2 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 17 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 17 00 11 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [17:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:00]wFMCommunicate OK [17:01:00]requested_item fd.num is exist - process it [17:01:00]SAM_PROTO_GetFieldsCounters [17:01:00]wFMCommunicate request_size=4 [17:01:00]MH_SAM_APDU [17:01:00]CAPDU: 80 13 00 00 [17:01:00]Write to MH i2c: E2 08 00 12 1A 80 13 00 00 00 00 00 00 A8 [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:00]Read from MH i2c: E2 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 62 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 62 00 12 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [17:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:00]wFMCommunicate OK [17:01:00]SAM_PROTO_GetFieldsCounters done [17:01:00]requested_item shift.num is exist - process it [17:01:00]requested_item shift.opened is exist - process it [17:01:00]req_shift_opened [17:01:00]FM_GetShiftState [17:01:00]SAM_PROTO_GetShiftState [17:01:00]wFMCommunicate request_size=4 [17:01:00]MH_SAM_APDU [17:01:00]CAPDU: 80 13 01 00 [17:01:00]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:00]Read from MH i2c: E2 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EB [17:01:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:00]wFMCommunicate OK [17:01:00]SAM_PROTO_GetShiftState done [17:01:00]FM_GetShiftState done [17:01:00]req_shift_opened done [17:01:00]requested_item shift.open_date is exist - process it [17:01:00]req_shift_open_date [17:01:00]req_shift_open_date done [17:01:00]produce_requested_data done [17:01:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192326,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:01:00]process_action_free close_receipt [17:01:00]json_value_free [17:01:00]json_value_free done [17:01:00]process_json_proto returns [17:01:00]Send response to host [17:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192326,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:01:00]free response buf [17:01:00]execute_script done [17:01:00]execute_script returns [17:01:00]free content buf [17:01:00]Sock 9.Close socket [17:01:00]Sock 9.Thread stoped [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:21]accept exits with 7 [17:01:21]New connection [17:01:21]New thread 3066936676 created [17:01:21]Thread 3067080036 joined [17:01:21]Waiting for new connection... [17:01:21] Sock 7.Parse request [17:01:21]Sock 7.Check first char [17:01:21]Sock 7.First char is OK [17:01:21]request: POST /json_proto HTTP/1.0 [17:01:21]Method: POST [17:01:21]URL: /json_proto [17:01:21]Method is POST - this is cgi request [17:01:21]url: /json_proto [17:01:21]query_string will be loaded in cgi processing [17:01:21]execute_cgi json_proto POST (null) [17:01:21]execute_cgi path=json_proto method=POST [17:01:21]POST find Content-Length [17:01:21]Host: 172.17.63.131:8080 [17:01:21]Content-Length: 676 [17:01:21]Content-Type: application/json [17:01:21] [17:01:21]POST finish read [17:01:21]Found Content-Length = 676 [17:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]execute_script... [17:01: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)31645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]POST & json_proto [17:01:21]process_json_proto [17:01:21]json parsed OK: [17:01:21]protocol is kg_v1.0 [17:01:21]action value=close_receipt [17:01:21]process_action close_receipt [17:01:21]cmd_close_receipt [17:01:21]MH_GetDate [17:01:21]Write to MH i2c: F0 00 00 14 1A 1D [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 14 1A 00 E2 71 1E 67 22 05 6E 64 F7 [17:01:21]GetLastDocTimeStamp 1730048457 [17:01:21]current date 1730048482 [17:01:21]FM_GetShiftState [17:01:21]SAM_PROTO_GetShiftState [17:01:21]wFMCommunicate request_size=4 [17:01:21]MH_SAM_APDU [17:01:21]CAPDU: 80 13 01 00 [17:01:21]Write to MH i2c: E2 08 00 15 1A 80 13 01 00 00 00 00 00 AC [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:21]Read from MH i2c: E2 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 15 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [17:01:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:21]wFMCommunicate OK [17:01:21]SAM_PROTO_GetShiftState done [17:01:21]FM_GetShiftState done [17:01:21]opened in 1729989159 [17:01:21]opened+sec_in_day 1730075559 [17:01:21]quantity*price = 40006 [17:01:21]sum+1 = 40007 [17:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 359 27.10.2024 17:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192327 ФПД: 246985364846166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170122&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192327&fm=246985364846166&tin=02508201610067®Number=0000000000091776&sum=40000 [17:01:22]StoreToDocumentArchive [17:01:22]shift 542 fd 192327 [17:01:22]save to /storage/0542/doc_00192327 [17:01:22]save last doc name /storage/0542/doc_00192327 to /storage/kkm_last_doc_name [17:01:22]save OK [17:01:22]Clear old archive folders... [17:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:22]tlvbuf is 00347F20 [17:01:22]SAM_PROTO_ClearQueue [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 09 00 00 [17:01:22]Write to MH i2c: E2 08 00 22 1A 80 09 00 00 00 00 00 00 AE [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_ClearQueue done [17:01:22]KKMCreateOFDPacket [17:01:22]OFDProtocolAddRootSTLVToBuf [17:01:22]FM_MakeSignedData [17:01:22]FM_MakeSignedData [17:01:22]SAM_PROTO_SignData [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 01 02 [17:01:22]Write to MH i2c: E2 08 00 23 1A 80 0D 01 02 00 00 00 00 B6 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=255 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 E2 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EF 02 00 35 04 06 00 E0 [17:01:22]Write to MH i2c: E2 02 01 24 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 E2 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EF 02 00 35 04 06 00 E0 00 00 91 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=10 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 05 A1 C2 EF B6 56 [17:01:22]Write to MH i2c: E2 0D 00 25 1A 80 0D 02 02 05 00 A1 C2 EF B6 56 00 00 21 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 25 1A 00 90 00 B3 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 03 02 [17:01:22]Write to MH i2c: E2 08 00 26 1A 80 0D 03 02 00 00 00 00 BB [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 0B 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 0B 00 26 1A 00 99 15 AE A4 BD A6 28 8B 90 00 D2 [17:01:22]RAPDU: 99 15 AE A4 BD A6 28 8B 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_SignData done [17:01:22]FM_MakeSignedData done [17:01:22]CreateOFDProtocolMessage [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 11 00 00 [17:01:22]Write to MH i2c: E2 08 00 27 1A 80 11 00 00 00 00 00 00 BB [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 17 00 [17:01:22]MH_I2C_Read... [17:01:22]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 37 35 34 90 00 0E [17:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:22]wFMCommunicate OK [17:01:22]CreateOFDProtocolMessage done [17:01:22]OFDSenderStorePacket 192327 [17:01:22]StoreOFDPacket docnum=192327 [17:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 99 07 01 96 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 E2 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EF 02 00 35 04 06 00 E0 A1 C2 EF B6 56 99 15 AE A4 BD A6 28 8B [17:01:22]CheckFolder [17:01:22]dirname=/storage/ofd_packets [17:01:22]CheckFolder done [17:01:22]ProducePacketName [17:01:22]name=ofd_packets/00192327 [17:01:22]NVStorageSaveData ofd_packets/00192327 [17:01:22]File name is /storage/ofd_packets/00192327 [17:01:22]Write 301 bytes [17:01:22]NVStorageSaveData done [17:01:22]OFDSenderStorePacket done [17:01:22]KKMCreateOFDPacket done [17:01:22]NVStorageSaveData kkm_last_timestamp [17:01:22]File name is /storage/kkm_last_timestamp [17:01:22]Write 4 bytes [17:01:22]NVStorageSaveData done [17:01:22]ExternCall_PrintAddStr [17:01:22]wPrintStart [17:01:22]Write to MH i2c: 01 00 00 28 1A 42 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 07 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 FF 0F 57 [17:01:22]RasterBufferAndPrint [17:01:22]line Счет N : (1)31645 [17:01:22]line ИНН: 02508201610067 [17:01:22]line Контрольно-Кассовый Чек [17:01:22]line ПРОДАЖА [17:01:22]line ТРК (МРК, ГНК) : 12 [17:01:22]line Товар: 2710124130 [17:01:22]line Аи-92-К-5 [17:01:22]line 5.980 * 66.90 [17:01:22]line = 400.06 [17:01:22]line НДС 12% НСП 1% [17:01:22]line > о реализуемом товаре [17:01:22]line ОКРУГЛЕНИЕ: -0.06 [17:01:22]line ИТОГО: 400.00 [17:01:22]line Внесено: 400.00 [17:01:22]line СДАЧА: 0.00 [17:01:22]line НСП 1% : 3.54 [17:01:22]line НДС 12% : 42.48 [17:01:22]line Наличными: 400.00 [17:01:22]line Безнал.: 0.00 [17:01:22]line Место: АЗС № 170 "Партнер Нефть" [17:01:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:01:22]line СНО: Общий режим [17:01:22]line Чек 359 27.10.2024 17:01 [17:01:22]line Смена: 542 ФФД: 1.0 [17:01:22]line ЗНМ: 0300000110 [17:01:22]line РНМ: 0000000000091776 [17:01:22]line Версия ККМ: 001 [17:01:22]line ФМ: 0000000000871754 [17:01:22]line ФД: 192327 [17:01:22]line ФПД: 246985364846166 [17:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170122&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192327&fm=246985364846166&tin=02508201610067®Number=0000000000091776&sum=40000 [17:01:23]OFD Sender: Processing packet 192327 [packets to send 75, broken 74] [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00192327 [17:01:23]OFD Sender: To server: pG, [17:01:23]CommunicateWithHost lk.salyk.kg:30040 [17:01:23]ConnectInit lk.salyk.kg [17:01:23]written 0, free lines is 4095 [17:01:23]Connected sock=10 [17:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 99 07 01 96 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 E2 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EF 02 00 35 04 06 00 E0 A1 C2 EF B6 56 99 15 AE A4 BD A6 28 8B [17:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 76 B8 47 00 3A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 EF 02 00 F4 03 04 00 A9 16 1E 67 B6 04 01 00 00 1B D0 32 46 A4 1F FB 48 [17:01:23]CommunicateWithHost err = 0 [17:01:23]CheckOFDResponse [17:01:23]1017 (14) - 77093643461234 [17:01:23]1041 (16) - 0000000000871754 [17:01:23]1040 (4) - 192327 [17:01:23]1012 (4) - 27.10.2024 10:32 [17:01:23]1206 (1) - 0 [17:01:23]OFD Sender: Remove packet 192327 [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00192327 [17:01:23]NVStorageDeleteData [17:01:23]Write to MH i2c: 01 00 00 53 1A 6D [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 A7 0C 27 [17:01:23]RasterBufferAndPrint [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]written 0, free lines is 3245 [17:01:23]MH_Cut [17:01:23]Write to MH i2c: D1 01 00 5A 1A 01 46 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 01 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: D1 01 00 5A 1A 00 45 [17:01:23]Write to MH i2c: 01 00 00 5B 1A 75 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:24]OFD Sender: No OFD packet to send [17:01:24]*** Cut start [17:01:24]*** Partial cut [17:01:24]*** CUTSNS_PIN = 1 [17:01:24]*** CUTSNS_PIN = 0 [17:01:24]*** Brake cut motor [17:01:25]Read from MH i2c: 01 [17:01:25]MH_I2C_Read... [17:01:25]*** Stop cut motor [17:01:25]*** Cut end [17:01:25]Read from MH i2c: 01 07 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 FF 0F 8A [17:01:25]process_action close_receipt done [17:01:25]requested_data is exist [17:01:25]produce_requested_data [17:01:25]requested_item fm.sn is exist - process it [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 11 00 00 [17:01:25]Write to MH i2c: E2 08 00 5C 1A 80 11 00 00 00 00 00 00 F0 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 5C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [17:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:25]wFMCommunicate OK [17:01:25]requested_item fd.num is exist - process it [17:01:25]SAM_PROTO_GetFieldsCounters [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 00 00 [17:01:25]Write to MH i2c: E2 08 00 5D 1A 80 13 00 00 00 00 00 00 F3 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 5D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetFieldsCounters done [17:01:25]requested_item shift.num is exist - process it [17:01:25]requested_item shift.opened is exist - process it [17:01:25]req_shift_opened [17:01:25]FM_GetShiftState [17:01:25]SAM_PROTO_GetShiftState [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 01 00 [17:01:25]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 36 [17:01:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetShiftState done [17:01:25]FM_GetShiftState done [17:01:25]req_shift_opened done [17:01:25]requested_item shift.open_date is exist - process it [17:01:25]req_shift_open_date [17:01:25]req_shift_open_date done [17:01:25]produce_requested_data done [17:01:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192327,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:01:25]process_action_free close_receipt [17:01:25]json_value_free [17:01:25]json_value_free done [17:01:25]process_json_proto returns [17:01:25]Send response to host [17:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192327,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:01:25]free response buf [17:01:25]execute_script done [17:01:25]execute_script returns [17:01:25]free content buf [17:01:25]Sock 7.Close socket [17:01:25]Sock 7.Thread stoped [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:43]accept exits with 9 [17:01:43]New connection [17:01:43]New thread 3067080036 created [17:01:43]Thread 3066936676 joined [17:01:43]Waiting for new connection... [17:01:43] Sock 9.Parse request [17:01:43]Sock 9.Check first char [17:01:43]Sock 9.First char is OK [17:01:43]request: POST /json_proto HTTP/1.0 [17:01:43]Method: POST [17:01:43]URL: /json_proto [17:01:43]Method is POST - this is cgi request [17:01:43]url: /json_proto [17:01:43]query_string will be loaded in cgi processing [17:01:43]execute_cgi json_proto POST (null) [17:01:43]execute_cgi path=json_proto method=POST [17:01:43]POST find Content-Length [17:01:43]Host: 172.17.63.131:8080 [17:01:43]Content-Length: 676 [17:01:43]Content-Type: application/json [17:01:43] [17:01:43]POST finish read [17:01:43]Found Content-Length = 676 [17:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:43]execute_script... [17:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:43]POST & json_proto [17:01:43]process_json_proto [17:01:43]json parsed OK: [17:01:43]protocol is kg_v1.0 [17:01:43]action value=close_receipt [17:01:43]process_action close_receipt [17:01:43]cmd_close_receipt [17:01:43]MH_GetDate [17:01:43]Write to MH i2c: F0 00 00 5F 1A 68 [17:01:43]Write i2c OK [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: F0 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: F0 09 00 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: F0 09 00 5F 1A 00 F8 71 1E 67 22 05 6E 64 58 [17:01:43]GetLastDocTimeStamp 1730048482 [17:01:43]current date 1730048504 [17:01:43]FM_GetShiftState [17:01:43]SAM_PROTO_GetShiftState [17:01:43]wFMCommunicate request_size=4 [17:01:43]MH_SAM_APDU [17:01:43]CAPDU: 80 13 01 00 [17:01:43]Write to MH i2c: E2 08 00 60 1A 80 13 01 00 00 00 00 00 F7 [17:01:43]Write i2c OK [17:01:43]MH_I2C_Read... [17:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:43]Read from MH i2c: E2 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: E2 0E 00 [17:01:43]MH_I2C_Read... [17:01:43]Read from MH i2c: E2 0E 00 60 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [17:01:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:43]wFMCommunicate OK [17:01:43]SAM_PROTO_GetShiftState done [17:01:43]FM_GetShiftState done [17:01:43]opened in 1729989159 [17:01:43]opened+sec_in_day 1730075559 [17:01:43]quantity*price = 50041 [17:01:43]sum+1 = 50042 [17:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 360 27.10.2024 17:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192328 ФПД: 50738449085387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192328&fm=50738449085387&tin=02508201610067®Number=0000000000091776&sum=50000 [17:01:45]StoreToDocumentArchive [17:01:45]shift 542 fd 192328 [17:01:45]save to /storage/0542/doc_00192328 [17:01:45]save last doc name /storage/0542/doc_00192328 to /storage/kkm_last_doc_name [17:01:45]save OK [17:01:45]Clear old archive folders... [17:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:45]tlvbuf is 002D0DA0 [17:01:45]SAM_PROTO_ClearQueue [17:01:45]wFMCommunicate request_size=4 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 09 00 00 [17:01:45]Write to MH i2c: E2 08 00 6D 1A 80 09 00 00 00 00 00 00 F9 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [17:01:45]RAPDU: 90 00 [17:01:45]wFMCommunicate OK [17:01:45]SAM_PROTO_ClearQueue done [17:01:45]KKMCreateOFDPacket [17:01:45]OFDProtocolAddRootSTLVToBuf [17:01:45]FM_MakeSignedData [17:01:45]FM_MakeSignedData [17:01:45]SAM_PROTO_SignData [17:01:45]wFMCommunicate request_size=4 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 0D 01 02 [17:01:45]Write to MH i2c: E2 08 00 6E 1A 80 0D 01 02 00 00 00 00 01 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [17:01:45]RAPDU: 90 00 [17:01:45]wFMCommunicate OK [17:01:45]wFMCommunicate request_size=255 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EF 02 00 35 04 06 00 2E [17:01:45]Write to MH i2c: E2 02 01 6F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EF 02 00 35 04 06 00 2E 00 00 73 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [17:01:45]RAPDU: 90 00 [17:01:45]wFMCommunicate OK [17:01:45]wFMCommunicate request_size=10 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 0D 02 02 05 25 77 3B F3 CB [17:01:45]Write to MH i2c: E2 0D 00 70 1A 80 0D 02 02 05 00 25 77 3B F3 CB 00 00 A3 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [17:01:45]RAPDU: 90 00 [17:01:45]wFMCommunicate OK [17:01:45]wFMCommunicate request_size=4 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 0D 03 02 [17:01:45]Write to MH i2c: E2 08 00 71 1A 80 0D 03 02 00 00 00 00 06 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 0B 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 0B 00 71 1A 00 5F 1B 2C C5 13 A1 39 7D 90 00 DC [17:01:45]RAPDU: 5F 1B 2C C5 13 A1 39 7D 90 00 [17:01:45]wFMCommunicate OK [17:01:45]SAM_PROTO_SignData done [17:01:45]FM_MakeSignedData done [17:01:45]CreateOFDProtocolMessage [17:01:45]wFMCommunicate request_size=4 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 11 00 00 [17:01:45]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 17 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [17:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:45]wFMCommunicate OK [17:01:45]CreateOFDProtocolMessage done [17:01:45]OFDSenderStorePacket 192328 [17:01:45]StoreOFDPacket docnum=192328 [17:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 B4 07 01 06 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EF 02 00 35 04 06 00 2E 25 77 3B F3 CB 5F 1B 2C C5 13 A1 39 7D [17:01:45]CheckFolder [17:01:45]dirname=/storage/ofd_packets [17:01:45]CheckFolder done [17:01:45]ProducePacketName [17:01:45]name=ofd_packets/00192328 [17:01:45]NVStorageSaveData ofd_packets/00192328 [17:01:45]File name is /storage/ofd_packets/00192328 [17:01:45]Write 301 bytes [17:01:45]NVStorageSaveData done [17:01:45]OFDSenderStorePacket done [17:01:45]KKMCreateOFDPacket done [17:01:45]NVStorageSaveData kkm_last_timestamp [17:01:45]File name is /storage/kkm_last_timestamp [17:01:45]Write 4 bytes [17:01:45]NVStorageSaveData done [17:01:45]ExternCall_PrintAddStr [17:01:45]wPrintStart [17:01:45]Write to MH i2c: 01 00 00 73 1A 8D [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 07 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 07 00 73 1A 00 00 00 00 00 FF 0F A2 [17:01:45]RasterBufferAndPrint [17:01:45]line Счет N : (1)31646 [17:01:45]line ИНН: 02508201610067 [17:01:45]line Контрольно-Кассовый Чек [17:01:45]line ПРОДАЖА [17:01:45]line ТРК (МРК, ГНК) : 21 [17:01:45]line Товар: 2710124130 [17:01:45]line Аи-92-К-5 [17:01:45]line 7.480 * 66.90 [17:01:45]line = 500.41 [17:01:45]line НДС 12% НСП 1% [17:01:45]line > о реализуемом товаре [17:01:45]line ОКРУГЛЕНИЕ: -0.41 [17:01:45]line ИТОГО: 500.00 [17:01:45]line Внесено: 500.00 [17:01:45]line СДАЧА: 0.00 [17:01:45]line НСП 1% : 4.43 [17:01:45]line НДС 12% : 53.14 [17:01:45]line Наличными: 500.00 [17:01:45]line Безнал.: 0.00 [17:01:45]line Место: АЗС № 170 "Партнер Нефть" [17:01:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:01:45]line СНО: Общий режим [17:01:45]line Чек 360 27.10.2024 17:01 [17:01:45]line Смена: 542 ФФД: 1.0 [17:01:45]line ЗНМ: 0300000110 [17:01:45]line РНМ: 0000000000091776 [17:01:45]line Версия ККМ: 001 [17:01:45]line ФМ: 0000000000871754 [17:01:45]line ФД: 192328 [17:01:45]line ФПД: 50738449085387 [17:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192328&fm=50738449085387&tin=02508201610067®Number=0000000000091776&sum=50000 [17:01:45]OFD Sender: Processing packet 192328 [packets to send 75, broken 74] [17:01:45]ProducePacketName [17:01:45]name=ofd_packets/00192328 [17:01:45]OFD Sender: To server: pG, [17:01:45]CommunicateWithHost lk.salyk.kg:30040 [17:01:45]ConnectInit lk.salyk.kg [17:01:45]written 0, free lines is 4095 [17:01:46]Connected sock=10 [17:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 B4 07 01 06 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F8 71 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EF 02 00 35 04 06 00 2E 25 77 3B F3 CB 5F 1B 2C C5 13 A1 39 7D [17:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 83 47 00 56 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 EF 02 00 F4 03 04 00 BF 16 1E 67 B6 04 01 00 00 39 D2 13 AF 51 44 E6 2D [17:01:46]CommunicateWithHost err = 0 [17:01:46]CheckOFDResponse [17:01:46]1017 (14) - 77093643461234 [17:01:46]1041 (16) - 0000000000871754 [17:01:46]1040 (4) - 192328 [17:01:46]1012 (4) - 27.10.2024 10:32 [17:01:46]1206 (1) - 0 [17:01:46]OFD Sender: Remove packet 192328 [17:01:46]ProducePacketName [17:01:46]name=ofd_packets/00192328 [17:01:46]NVStorageDeleteData [17:01:46]Write to MH i2c: 01 00 00 9E 1A B8 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: 01 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: 01 07 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 A9 0C 74 [17:01:46]RasterBufferAndPrint [17:01:46]line [17:01:46]line [17:01:46]line [17:01:46]line [17:01:46]line [17:01:46]written 0, free lines is 3249 [17:01:46]MH_Cut [17:01:46]Write to MH i2c: D1 01 00 A5 1A 01 91 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: D1 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: D1 01 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: D1 01 00 A5 1A 00 90 [17:01:46]Write to MH i2c: 01 00 00 A6 1A C0 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]OFD Sender: No OFD packet to send [17:01:47]*** Cut start [17:01:47]*** Partial cut [17:01:47]*** CUTSNS_PIN = 1 [17:01:47]*** CUTSNS_PIN = 0 [17:01:47]*** Brake cut motor [17:01:47]Read from MH i2c: 01 [17:01:47]MH_I2C_Read... [17:01:47]*** Stop cut motor [17:01:47]*** Cut end [17:01:47]Read from MH i2c: 01 07 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: 01 07 00 A6 1A 00 00 00 00 00 FF 0F D5 [17:01:47]process_action close_receipt done [17:01:47]requested_data is exist [17:01:47]produce_requested_data [17:01:47]requested_item fm.sn is exist - process it [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 11 00 00 [17:01:47]Write to MH i2c: E2 08 00 A7 1A 80 11 00 00 00 00 00 00 3B [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:47]Read from MH i2c: E2 17 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 17 00 A7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [17:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:47]wFMCommunicate OK [17:01:47]requested_item fd.num is exist - process it [17:01:47]SAM_PROTO_GetFieldsCounters [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 13 00 00 [17:01:47]Write to MH i2c: E2 08 00 A8 1A 80 13 00 00 00 00 00 00 3E [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 62 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 62 00 A8 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:48]wFMCommunicate OK [17:01:48]SAM_PROTO_GetFieldsCounters done [17:01:48]requested_item shift.num is exist - process it [17:01:48]requested_item shift.opened is exist - process it [17:01:48]req_shift_opened [17:01:48]FM_GetShiftState [17:01:48]SAM_PROTO_GetShiftState [17:01:48]wFMCommunicate request_size=4 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 13 01 00 [17:01:48]Write to MH i2c: E2 08 00 A9 1A 80 13 01 00 00 00 00 00 40 [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 0E 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 0E 00 A9 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 81 [17:01:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:48]wFMCommunicate OK [17:01:48]SAM_PROTO_GetShiftState done [17:01:48]FM_GetShiftState done [17:01:48]req_shift_opened done [17:01:48]requested_item shift.open_date is exist - process it [17:01:48]req_shift_open_date [17:01:48]req_shift_open_date done [17:01:48]produce_requested_data done [17:01:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192328,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:01:48]process_action_free close_receipt [17:01:48]json_value_free [17:01:48]json_value_free done [17:01:48]process_json_proto returns [17:01:48]Send response to host [17:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192328,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:01:48]free response buf [17:01:48]execute_script done [17:01:48]execute_script returns [17:01:48]free content buf [17:01:48]Sock 9.Close socket [17:01:48]Sock 9.Thread stoped [17:01:51]OFD Sender: No OFD packet to send [17:01:53]accept exits with 7 [17:01:53]New connection [17:01:53]New thread 3066936676 created [17:01:53]Thread 3067080036 joined [17:01:53]Waiting for new connection... [17:01:53] Sock 7.Parse request [17:01:53]Sock 7.Check first char [17:01:53]Sock 7.First char is OK [17:01:53]request: POST /json_proto HTTP/1.0 [17:01:53]Method: POST [17:01:53]URL: /json_proto [17:01:53]Method is POST - this is cgi request [17:01:53]url: /json_proto [17:01:53]query_string will be loaded in cgi processing [17:01:53]execute_cgi json_proto POST (null) [17:01:53]execute_cgi path=json_proto method=POST [17:01:53]POST find Content-Length [17:01:53]Host: 172.17.63.131:8080 [17:01:53]Content-Length: 678 [17:01:53]Content-Type: application/json [17:01:53] [17:01:53]POST finish read [17:01:53]Found Content-Length = 678 [17:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31643", "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" : 26.000, "sum" : 1981.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1981.00, "payments": [ { "type": 0, "sum" : 1981.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:53]execute_script... [17:01: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)31643", "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" : 26.000, "sum" : 1981.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1981.00, "payments": [ { "type": 0, "sum" : 1981.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:53]POST & json_proto [17:01:53]process_json_proto [17:01:53]json parsed OK: [17:01:53]protocol is kg_v1.0 [17:01:53]action value=close_receipt [17:01:53]process_action close_receipt [17:01:53]cmd_close_receipt [17:01:53]MH_GetDate [17:01:53]Write to MH i2c: F0 00 00 AA 1A B3 [17:01:53]Write i2c OK [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: F0 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: F0 09 00 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: F0 09 00 AA 1A 00 02 72 1E 67 22 05 6E 64 AE [17:01:53]GetLastDocTimeStamp 1730048504 [17:01:53]current date 1730048514 [17:01:53]FM_GetShiftState [17:01:53]SAM_PROTO_GetShiftState [17:01:53]wFMCommunicate request_size=4 [17:01:53]MH_SAM_APDU [17:01:53]CAPDU: 80 13 01 00 [17:01:53]Write to MH i2c: E2 08 00 AB 1A 80 13 01 00 00 00 00 00 42 [17:01:53]Write i2c OK [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: E2 [17:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: E2 0E 00 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: E2 0E 00 AB 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [17:01:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:53]wFMCommunicate OK [17:01:53]SAM_PROTO_GetShiftState done [17:01:53]FM_GetShiftState done [17:01:53]opened in 1729989159 [17:01:53]opened+sec_in_day 1730075559 [17:01:53]quantity*price = 198120 [17:01:53]sum+1 = 198121 [17:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1981.00 Внесено: 2000.00 СДАЧА: 19.00 НСП 1% : 17.53 НДС 12% : 210.39 Наличными: 1981.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 361 27.10.2024 17:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192329 ФПД: 244740834584986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170154&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192329&fm=244740834584986&tin=02508201610067®Number=0000000000091776&sum=198100 [17:01:54]StoreToDocumentArchive [17:01:54]shift 542 fd 192329 [17:01:54]save to /storage/0542/doc_00192329 [17:01:54]save last doc name /storage/0542/doc_00192329 to /storage/kkm_last_doc_name [17:01:54]save OK [17:01:54]Clear old archive folders... [17:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:54]tlvbuf is 002D1410 [17:01:54]SAM_PROTO_ClearQueue [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 09 00 00 [17:01:54]Write to MH i2c: E2 08 00 B8 1A 80 09 00 00 00 00 00 00 44 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [17:01:54]RAPDU: 90 00 [17:01:54]wFMCommunicate OK [17:01:54]SAM_PROTO_ClearQueue done [17:01:54]KKMCreateOFDPacket [17:01:54]OFDProtocolAddRootSTLVToBuf [17:01:54]FM_MakeSignedData [17:01:54]FM_MakeSignedData [17:01:54]SAM_PROTO_SignData [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 0D 01 02 [17:01:54]Write to MH i2c: E2 08 00 B9 1A 80 0D 01 02 00 00 00 00 4C [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [17:01:54]RAPDU: 90 00 [17:01:54]wFMCommunicate OK [17:01:54]wFMCommunicate request_size=255 [17:01:54]MH_SAM_APDU [17:01: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 90 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 05 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 05 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 52 00 00 00 00 07 04 06 00 D4 05 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 02 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EF 02 00 35 04 06 00 DE 97 2A 81 [17:01:54]Write to MH i2c: E2 02 01 BA 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 90 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 05 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 05 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 52 00 00 00 00 07 04 06 00 D4 05 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 02 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EF 02 00 35 04 06 00 DE 97 2A 81 00 00 69 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:55]Read from MH i2c: E2 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [17:01:55]RAPDU: 90 00 [17:01:55]wFMCommunicate OK [17:01:55]wFMCommunicate request_size=7 [17:01:55]MH_SAM_APDU [17:01:55]CAPDU: 80 0D 02 02 02 E9 9A [17:01:55]Write to MH i2c: E2 0A 00 BB 1A 80 0D 02 02 02 00 E9 9A 00 00 D6 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:55]Read from MH i2c: E2 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [17:01:55]RAPDU: 90 00 [17:01:55]wFMCommunicate OK [17:01:55]wFMCommunicate request_size=4 [17:01:55]MH_SAM_APDU [17:01:55]CAPDU: 80 0D 03 02 [17:01:55]Write to MH i2c: E2 08 00 BC 1A 80 0D 03 02 00 00 00 00 51 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:55]Read from MH i2c: E2 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 0B 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 0B 00 BC 1A 00 5D 57 E8 CC E6 4E 05 00 90 00 F3 [17:01:55]RAPDU: 5D 57 E8 CC E6 4E 05 00 90 00 [17:01:55]wFMCommunicate OK [17:01:55]SAM_PROTO_SignData done [17:01:55]FM_MakeSignedData done [17:01:55]CreateOFDProtocolMessage [17:01:55]wFMCommunicate request_size=4 [17:01:55]MH_SAM_APDU [17:01:55]CAPDU: 80 11 00 00 [17:01:55]Write to MH i2c: E2 08 00 BD 1A 80 11 00 00 00 00 00 00 51 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:55]Read from MH i2c: E2 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 17 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: E2 17 00 BD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [17:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:55]wFMCommunicate OK [17:01:55]CreateOFDProtocolMessage done [17:01:55]OFDSenderStorePacket 192329 [17:01:55]StoreOFDPacket docnum=192329 [17:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7B FE 04 01 26 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 05 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 05 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 52 00 00 00 00 07 04 06 00 D4 05 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 02 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EF 02 00 35 04 06 00 DE 97 2A 81 E9 9A 5D 57 E8 CC E6 4E 05 00 [17:01:55]CheckFolder [17:01:55]dirname=/storage/ofd_packets [17:01:55]CheckFolder done [17:01:55]ProducePacketName [17:01:55]name=ofd_packets/00192329 [17:01:55]NVStorageSaveData ofd_packets/00192329 [17:01:55]File name is /storage/ofd_packets/00192329 [17:01:55]Write 298 bytes [17:01:55]NVStorageSaveData done [17:01:55]OFDSenderStorePacket done [17:01:55]KKMCreateOFDPacket done [17:01:55]NVStorageSaveData kkm_last_timestamp [17:01:55]File name is /storage/kkm_last_timestamp [17:01:55]Write 4 bytes [17:01:55]NVStorageSaveData done [17:01:55]ExternCall_PrintAddStr [17:01:55]wPrintStart [17:01:55]Write to MH i2c: 01 00 00 BE 1A D8 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 07 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 07 00 BE 1A 00 00 00 00 00 FF 0F ED [17:01:55]RasterBufferAndPrint [17:01:55]line Счет N : (1)31643 [17:01:55]line ИНН: 02508201610067 [17:01:55]line Контрольно-Кассовый Чек [17:01:55]line ПРОДАЖА [17:01:55]line ТРК (МРК, ГНК) : 11 [17:01:55]line Товар: 2710194210 [17:01:55]line ДТ-К-5 [17:01:55]line 26.000 * 76.20 [17:01:55]line = 1981.20 [17:01:55]line НДС 12% НСП 1% [17:01:55]line > о реализуемом товаре [17:01:55]line ОКРУГЛЕНИЕ: -0.20 [17:01:55]line ИТОГО: 1981.00 [17:01:55]line Внесено: 2000.00 [17:01:55]line СДАЧА: 19.00 [17:01:55]line НСП 1% : 17.53 [17:01:55]line НДС 12% : 210.39 [17:01:55]line Наличными: 1981.00 [17:01:55]line Безнал.: 0.00 [17:01:55]line Место: АЗС № 170 "Партнер Нефть" [17:01:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:01:55]line СНО: Общий режим [17:01:55]line Чек 361 27.10.2024 17:01 [17:01:55]line Смена: 542 ФФД: 1.0 [17:01:55]line ЗНМ: 0300000110 [17:01:55]line РНМ: 0000000000091776 [17:01:55]line Версия ККМ: 001 [17:01:55]line ФМ: 0000000000871754 [17:01:55]line ФД: 192329 [17:01:55]line ФПД: 244740834584986 [17:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170154&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192329&fm=244740834584986&tin=02508201610067®Number=0000000000091776&sum=198100 [17:01:55]written 0, free lines is 4095 [17:01:55]OFD Sender: Processing packet 192329 [packets to send 75, broken 74] [17:01:55]ProducePacketName [17:01:55]name=ofd_packets/00192329 [17:01:55]OFD Sender: To server: pG, [17:01:55]CommunicateWithHost lk.salyk.kg:30040 [17:01:55]ConnectInit lk.salyk.kg [17:01:55]Connected sock=10 [17:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7B FE 04 01 26 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 05 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 05 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 52 00 00 00 00 07 04 06 00 D4 05 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 02 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EF 02 00 35 04 06 00 DE 97 2A 81 E9 9A 5D 57 E8 CC E6 4E 05 00 [17:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF 5A 47 00 06 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 EF 02 00 F4 03 04 00 C9 16 1E 67 B6 04 01 00 00 51 09 0E 36 FC B3 37 9F [17:01:55]CommunicateWithHost err = 0 [17:01:55]CheckOFDResponse [17:01:55]1017 (14) - 77093643461234 [17:01:55]1041 (16) - 0000000000871754 [17:01:55]1040 (4) - 192329 [17:01:55]1012 (4) - 27.10.2024 10:32 [17:01:55]1206 (1) - 0 [17:01:55]OFD Sender: Remove packet 192329 [17:01:55]ProducePacketName [17:01:55]name=ofd_packets/00192329 [17:01:55]NVStorageDeleteData [17:01:55]Write to MH i2c: 01 00 00 E9 1A 03 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 07 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: 01 07 00 E9 1A 00 00 00 00 00 C5 0C DB [17:01:55]RasterBufferAndPrint [17:01:55]line [17:01:55]line [17:01:55]line [17:01:55]line [17:01:55]line [17:01:55]written 0, free lines is 3278 [17:01:55]MH_Cut [17:01:55]Write to MH i2c: D1 01 00 F0 1A 01 DC [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D1 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D1 01 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D1 01 00 F0 1A 00 DB [17:01:55]Write to MH i2c: 01 00 00 F1 1A 0B [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:56]OFD Sender: No OFD packet to send [17:01:56]*** Cut start [17:01:56]*** Partial cut [17:01:56]*** CUTSNS_PIN = 1 [17:01:56]*** CUTSNS_PIN = 0 [17:01:56]*** Brake cut motor [17:01:57]Read from MH i2c: 01 [17:01:57]MH_I2C_Read... [17:01:57]*** Stop cut motor [17:01:57]*** Cut end [17:01:57]Read from MH i2c: 01 07 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: 01 07 00 F1 1A 00 00 00 00 00 FF 0F 20 [17:01:57]process_action close_receipt done [17:01:57]requested_data is exist [17:01:57]produce_requested_data [17:01:57]requested_item fm.sn is exist - process it [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 11 00 00 [17:01:57]Write to MH i2c: E2 08 00 F2 1A 80 11 00 00 00 00 00 00 86 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 17 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 17 00 F2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [17:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:57]wFMCommunicate OK [17:01:57]requested_item fd.num is exist - process it [17:01:57]SAM_PROTO_GetFieldsCounters [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 13 00 00 [17:01:57]Write to MH i2c: E2 08 00 F3 1A 80 13 00 00 00 00 00 00 89 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 62 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 62 00 F3 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:57]wFMCommunicate OK [17:01:57]SAM_PROTO_GetFieldsCounters done [17:01:57]requested_item shift.num is exist - process it [17:01:57]requested_item shift.opened is exist - process it [17:01:57]req_shift_opened [17:01:57]FM_GetShiftState [17:01:57]SAM_PROTO_GetShiftState [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 13 01 00 [17:01:57]Write to MH i2c: E2 08 00 F4 1A 80 13 01 00 00 00 00 00 8B [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 F4 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CC [17:01:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:01:57]wFMCommunicate OK [17:01:57]SAM_PROTO_GetShiftState done [17:01:57]FM_GetShiftState done [17:01:57]req_shift_opened done [17:01:57]requested_item shift.open_date is exist - process it [17:01:57]req_shift_open_date [17:01:57]req_shift_open_date done [17:01:57]produce_requested_data done [17:01:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192329,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:01:57]process_action_free close_receipt [17:01:57]json_value_free [17:01:57]json_value_free done [17:01:57]process_json_proto returns [17:01:57]Send response to host [17:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192329,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:01:57]free response buf [17:01:57]execute_script done [17:01:57]execute_script returns [17:01:57]free content buf [17:01:57]Sock 7.Close socket [17:01:57]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:30]accept exits with 9 [17:04:30]New connection [17:04:30]New thread 3067080036 created [17:04:30]Thread 3066936676 joined [17:04:30]Waiting for new connection... [17:04:30] Sock 9.Parse request [17:04:30]Sock 9.Check first char [17:04:30]Sock 9.First char is OK [17:04:30]request: POST /json_proto HTTP/1.0 [17:04:30]Method: POST [17:04:30]URL: /json_proto [17:04:30]Method is POST - this is cgi request [17:04:30]url: /json_proto [17:04:30]query_string will be loaded in cgi processing [17:04:30]execute_cgi json_proto POST (null) [17:04:30]execute_cgi path=json_proto method=POST [17:04:30]POST find Content-Length [17:04:30]Host: 172.17.63.131:8080 [17:04:30]Content-Length: 676 [17:04:30]Content-Type: application/json [17:04:30] [17:04:30]POST finish read [17:04:30]Found Content-Length = 676 [17:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:30]execute_script... [17:04: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)31648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:30]POST & json_proto [17:04:30]process_json_proto [17:04:30]json parsed OK: [17:04:30]protocol is kg_v1.0 [17:04:30]action value=close_receipt [17:04:30]process_action close_receipt [17:04:30]cmd_close_receipt [17:04:30]MH_GetDate [17:04:30]Write to MH i2c: F0 00 00 F5 1A FE [17:04:30]Write i2c OK [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: F0 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: F0 09 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: F0 09 00 F5 1A 00 9E 72 1E 67 22 05 6E 64 95 [17:04:30]GetLastDocTimeStamp 1730048514 [17:04:30]current date 1730048670 [17:04:30]FM_GetShiftState [17:04:30]SAM_PROTO_GetShiftState [17:04:30]wFMCommunicate request_size=4 [17:04:30]MH_SAM_APDU [17:04:30]CAPDU: 80 13 01 00 [17:04:30]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [17:04:30]Write i2c OK [17:04:30]MH_I2C_Read... [17:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:30]Read from MH i2c: E2 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 0E 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CE [17:04:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:04:30]wFMCommunicate OK [17:04:30]SAM_PROTO_GetShiftState done [17:04:30]FM_GetShiftState done [17:04:30]opened in 1729989159 [17:04:30]opened+sec_in_day 1730075559 [17:04:30]quantity*price = 50041 [17:04:30]sum+1 = 50042 [17:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 362 27.10.2024 17:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192330 ФПД: 205550419767483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192330&fm=205550419767483&tin=02508201610067®Number=0000000000091776&sum=50000 [17:04:31]StoreToDocumentArchive [17:04:31]shift 542 fd 192330 [17:04:31]save to /storage/0542/doc_00192330 [17:04:31]save last doc name /storage/0542/doc_00192330 to /storage/kkm_last_doc_name [17:04:31]save OK [17:04:31]Clear old archive folders... [17:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:31]tlvbuf is B6EE0B70 [17:04:31]SAM_PROTO_ClearQueue [17:04:31]wFMCommunicate request_size=4 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 09 00 00 [17:04:31]Write to MH i2c: E2 08 00 03 1B 80 09 00 00 00 00 00 00 90 [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [17:04:31]RAPDU: 90 00 [17:04:31]wFMCommunicate OK [17:04:31]SAM_PROTO_ClearQueue done [17:04:31]KKMCreateOFDPacket [17:04:31]OFDProtocolAddRootSTLVToBuf [17:04:31]FM_MakeSignedData [17:04:31]FM_MakeSignedData [17:04:31]SAM_PROTO_SignData [17:04:31]wFMCommunicate request_size=4 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 0D 01 02 [17:04:31]Write to MH i2c: E2 08 00 04 1B 80 0D 01 02 00 00 00 00 98 [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 04 1B 00 90 00 93 [17:04:31]RAPDU: 90 00 [17:04:31]wFMCommunicate OK [17:04:31]wFMCommunicate request_size=255 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9E 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EF 02 00 35 04 06 00 BA [17:04:31]Write to MH i2c: E2 02 01 05 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 9E 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EF 02 00 35 04 06 00 BA 00 00 41 [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]OFD Sender: No OFD packet to send [17:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [17:04:31]RAPDU: 90 00 [17:04:31]wFMCommunicate OK [17:04:31]wFMCommunicate request_size=10 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 0D 02 02 05 F2 6F C0 F0 BB [17:04:31]Write to MH i2c: E2 0D 00 06 1B 80 0D 02 02 05 00 F2 6F C0 F0 BB 00 00 71 [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [17:04:31]RAPDU: 90 00 [17:04:31]wFMCommunicate OK [17:04:31]wFMCommunicate request_size=4 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 0D 03 02 [17:04:31]Write to MH i2c: E2 08 00 07 1B 80 0D 03 02 00 00 00 00 9D [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 0B 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 0B 00 07 1B 00 E7 6E 20 D5 60 A2 2C 9B 90 00 B1 [17:04:31]RAPDU: E7 6E 20 D5 60 A2 2C 9B 90 00 [17:04:31]wFMCommunicate OK [17:04:31]SAM_PROTO_SignData done [17:04:31]FM_MakeSignedData done [17:04:31]CreateOFDProtocolMessage [17:04:31]wFMCommunicate request_size=4 [17:04:31]MH_SAM_APDU [17:04:31]CAPDU: 80 11 00 00 [17:04:31]Write to MH i2c: E2 08 00 08 1B 80 11 00 00 00 00 00 00 9D [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:31]Read from MH i2c: E2 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 17 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: E2 17 00 08 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [17:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:04:31]wFMCommunicate OK [17:04:31]CreateOFDProtocolMessage done [17:04:31]OFDSenderStorePacket 192330 [17:04:31]StoreOFDPacket docnum=192330 [17:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 33 07 01 BA 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 9E 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EF 02 00 35 04 06 00 BA F2 6F C0 F0 BB E7 6E 20 D5 60 A2 2C 9B [17:04:31]CheckFolder [17:04:31]dirname=/storage/ofd_packets [17:04:31]CheckFolder done [17:04:31]ProducePacketName [17:04:31]name=ofd_packets/00192330 [17:04:31]NVStorageSaveData ofd_packets/00192330 [17:04:31]File name is /storage/ofd_packets/00192330 [17:04:31]Write 301 bytes [17:04:31]NVStorageSaveData done [17:04:31]OFDSenderStorePacket done [17:04:31]KKMCreateOFDPacket done [17:04:31]NVStorageSaveData kkm_last_timestamp [17:04:31]File name is /storage/kkm_last_timestamp [17:04:31]Write 4 bytes [17:04:31]NVStorageSaveData done [17:04:31]ExternCall_PrintAddStr [17:04:31]wPrintStart [17:04:31]Write to MH i2c: 01 00 00 09 1B 24 [17:04:31]Write i2c OK [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: 01 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: 01 07 00 [17:04:31]MH_I2C_Read... [17:04:31]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 FF 0F 39 [17:04:31]RasterBufferAndPrint [17:04:31]line Счет N : (1)31648 [17:04:31]line ИНН: 02508201610067 [17:04:31]line Контрольно-Кассовый Чек [17:04:31]line ПРОДАЖА [17:04:31]line ТРК (МРК, ГНК) : 21 [17:04:31]line Товар: 2710124130 [17:04:31]line Аи-92-К-5 [17:04:31]line 7.480 * 66.90 [17:04:31]line = 500.41 [17:04:31]line НДС 12% НСП 1% [17:04:31]line > о реализуемом товаре [17:04:31]line ОКРУГЛЕНИЕ: -0.41 [17:04:31]line ИТОГО: 500.00 [17:04:31]line Внесено: 500.00 [17:04:31]line СДАЧА: 0.00 [17:04:31]line НСП 1% : 4.43 [17:04:31]line НДС 12% : 53.14 [17:04:31]line Наличными: 500.00 [17:04:31]line Безнал.: 0.00 [17:04:31]line Место: АЗС № 170 "Партнер Нефть" [17:04:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:04:31]line СНО: Общий режим [17:04:31]line Чек 362 27.10.2024 17:04 [17:04:31]line Смена: 542 ФФД: 1.0 [17:04:31]line ЗНМ: 0300000110 [17:04:31]line РНМ: 0000000000091776 [17:04:31]line Версия ККМ: 001 [17:04:31]line ФМ: 0000000000871754 [17:04:31]line ФД: 192330 [17:04:31]line ФПД: 205550419767483 [17:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192330&fm=205550419767483&tin=02508201610067®Number=0000000000091776&sum=50000 [17:04:32]OFD Sender: Processing packet 192330 [packets to send 75, broken 74] [17:04:32]ProducePacketName [17:04:32]name=ofd_packets/00192330 [17:04:32]OFD Sender: To server: pG, [17:04:32]CommunicateWithHost lk.salyk.kg:30040 [17:04:32]ConnectInit lk.salyk.kg [17:04:32]written 0, free lines is 4095 [17:04:32]Connected sock=10 [17:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 33 07 01 BA 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 9E 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EF 02 00 35 04 06 00 BA F2 6F C0 F0 BB E7 6E 20 D5 60 A2 2C 9B [17:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2B DF 47 00 2D 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A EF 02 00 F4 03 04 00 65 17 1E 67 B6 04 01 00 00 A9 70 95 DA F9 AA 3E 8B [17:04:32]CommunicateWithHost err = 0 [17:04:32]CheckOFDResponse [17:04:32]1017 (14) - 77093643461234 [17:04:32]1041 (16) - 0000000000871754 [17:04:32]1040 (4) - 192330 [17:04:32]1012 (4) - 27.10.2024 10:35 [17:04:32]1206 (1) - 0 [17:04:32]OFD Sender: Remove packet 192330 [17:04:32]ProducePacketName [17:04:32]name=ofd_packets/00192330 [17:04:32]NVStorageDeleteData [17:04:32]Write to MH i2c: 01 00 00 34 1B 4F [17:04:32]Write i2c OK [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: 01 [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: 01 07 00 [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: 01 07 00 34 1B 00 00 00 00 00 A7 0C 09 [17:04:32]RasterBufferAndPrint [17:04:32]line [17:04:32]line [17:04:32]line [17:04:32]line [17:04:32]line [17:04:32]written 0, free lines is 3245 [17:04:32]MH_Cut [17:04:32]Write to MH i2c: D1 01 00 3B 1B 01 28 [17:04:32]Write i2c OK [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: D1 [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: D1 01 00 [17:04:32]MH_I2C_Read... [17:04:32]Read from MH i2c: D1 01 00 3B 1B 00 27 [17:04:32]Write to MH i2c: 01 00 00 3C 1B 57 [17:04:32]Write i2c OK [17:04:32]MH_I2C_Read... [17:04:32]OFD Sender: No OFD packet to send [17:04:33]*** Cut start [17:04:33]*** Partial cut [17:04:33]*** CUTSNS_PIN = 1 [17:04:33]*** CUTSNS_PIN = 0 [17:04:33]*** Brake cut motor [17:04:34]Read from MH i2c: 01 [17:04:34]MH_I2C_Read... [17:04:34]*** Stop cut motor [17:04:34]*** Cut end [17:04:34]Read from MH i2c: 01 07 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: 01 07 00 3C 1B 00 00 00 00 00 FF 0F 6C [17:04:34]process_action close_receipt done [17:04:34]requested_data is exist [17:04:34]produce_requested_data [17:04:34]requested_item fm.sn is exist - process it [17:04:34]wFMCommunicate request_size=4 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 80 11 00 00 [17:04:34]Write to MH i2c: E2 08 00 3D 1B 80 11 00 00 00 00 00 00 D2 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:34]Read from MH i2c: E2 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 17 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 17 00 3D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [17:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:04:34]wFMCommunicate OK [17:04:34]requested_item fd.num is exist - process it [17:04:34]SAM_PROTO_GetFieldsCounters [17:04:34]wFMCommunicate request_size=4 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 80 13 00 00 [17:04:34]Write to MH i2c: E2 08 00 3E 1B 80 13 00 00 00 00 00 00 D5 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:34]Read from MH i2c: E2 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 62 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 62 00 3E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:34]wFMCommunicate OK [17:04:34]SAM_PROTO_GetFieldsCounters done [17:04:34]requested_item shift.num is exist - process it [17:04:34]requested_item shift.opened is exist - process it [17:04:34]req_shift_opened [17:04:34]FM_GetShiftState [17:04:34]SAM_PROTO_GetShiftState [17:04:34]wFMCommunicate request_size=4 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 80 13 01 00 [17:04:34]Write to MH i2c: E2 08 00 3F 1B 80 13 01 00 00 00 00 00 D7 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:34]Read from MH i2c: E2 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 0E 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 0E 00 3F 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 18 [17:04:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:04:34]wFMCommunicate OK [17:04:34]SAM_PROTO_GetShiftState done [17:04:34]FM_GetShiftState done [17:04:34]req_shift_opened done [17:04:34]requested_item shift.open_date is exist - process it [17:04:34]req_shift_open_date [17:04:34]req_shift_open_date done [17:04:34]produce_requested_data done [17:04:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192330,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:04:34]process_action_free close_receipt [17:04:34]json_value_free [17:04:34]json_value_free done [17:04:34]process_json_proto returns [17:04:34]Send response to host [17:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192330,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:04:34]free response buf [17:04:34]execute_script done [17:04:34]execute_script returns [17:04:34]free content buf [17:04:34]Sock 9.Close socket [17:04:34]Sock 9.Thread stoped [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:06]accept exits with 7 [17:05:06]New connection [17:05:06]New thread 3066936676 created [17:05:06]Thread 3067080036 joined [17:05:06]Waiting for new connection... [17:05:06] Sock 7.Parse request [17:05:06]Sock 7.Check first char [17:05:06]Sock 7.First char is OK [17:05:06]request: POST /json_proto HTTP/1.0 [17:05:06]Method: POST [17:05:06]URL: /json_proto [17:05:06]Method is POST - this is cgi request [17:05:06]url: /json_proto [17:05:06]query_string will be loaded in cgi processing [17:05:06]execute_cgi json_proto POST (null) [17:05:06]execute_cgi path=json_proto method=POST [17:05:06]POST find Content-Length [17:05:06]Host: 172.17.63.131:8080 [17:05:06]Content-Length: 678 [17:05:06]Content-Type: application/json [17:05:06] [17:05:06]POST finish read [17:05:06]Found Content-Length = 678 [17:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31647", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:06]execute_script... [17:05: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)31647", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:06]POST & json_proto [17:05:06]process_json_proto [17:05:06]json parsed OK: [17:05:06]protocol is kg_v1.0 [17:05:06]action value=close_receipt [17:05:06]process_action close_receipt [17:05:06]cmd_close_receipt [17:05:06]MH_GetDate [17:05:06]Write to MH i2c: F0 00 00 40 1B 4A [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: F0 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: F0 09 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: F0 09 00 40 1B 00 C2 72 1E 67 22 05 6E 64 05 [17:05:06]GetLastDocTimeStamp 1730048670 [17:05:06]current date 1730048706 [17:05:06]FM_GetShiftState [17:05:06]SAM_PROTO_GetShiftState [17:05:06]wFMCommunicate request_size=4 [17:05:06]MH_SAM_APDU [17:05:06]CAPDU: 80 13 01 00 [17:05:06]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:06]Read from MH i2c: E2 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: E2 0E 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1A [17:05:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:05:06]wFMCommunicate OK [17:05:06]SAM_PROTO_GetShiftState done [17:05:06]FM_GetShiftState done [17:05:06]opened in 1729989159 [17:05:06]opened+sec_in_day 1730075559 [17:05:06]quantity*price = 150037 [17:05:06]sum+1 = 150039 [17:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 363 27.10.2024 17:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192331 ФПД: 234487944268434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170507&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192331&fm=234487944268434&tin=02508201610067®Number=0000000000091776&sum=150000 [17:05:07]StoreToDocumentArchive [17:05:07]shift 542 fd 192331 [17:05:07]save to /storage/0542/doc_00192331 [17:05:07]save last doc name /storage/0542/doc_00192331 to /storage/kkm_last_doc_name [17:05:07]save OK [17:05:07]Clear old archive folders... [17:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:05:07]tlvbuf is 00311630 [17:05:07]SAM_PROTO_ClearQueue [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 09 00 00 [17:05:07]Write to MH i2c: E2 08 00 4E 1B 80 09 00 00 00 00 00 00 DB [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 4E 1B 00 90 00 DD [17:05:07]RAPDU: 90 00 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_ClearQueue done [17:05:07]KKMCreateOFDPacket [17:05:07]OFDProtocolAddRootSTLVToBuf [17:05:07]FM_MakeSignedData [17:05:07]FM_MakeSignedData [17:05:07]SAM_PROTO_SignData [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 0D 01 02 [17:05:07]Write to MH i2c: E2 08 00 4F 1B 80 0D 01 02 00 00 00 00 E3 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [17:05:07]RAPDU: 90 00 [17:05:07]wFMCommunicate OK [17:05:07]wFMCommunicate request_size=255 [17:05:07]MH_SAM_APDU [17:05: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 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 6B 01 00 00 F4 03 04 00 C3 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EF 02 00 35 04 06 00 D5 43 FA 9F [17:05:07]Write to MH i2c: E2 02 01 50 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 C3 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EF 02 00 35 04 06 00 D5 43 FA 9F 00 00 17 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [17:05:07]RAPDU: 90 00 [17:05:07]wFMCommunicate OK [17:05:07]wFMCommunicate request_size=7 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 0D 02 02 02 4A 92 [17:05:07]Write to MH i2c: E2 0A 00 51 1B 80 0D 02 02 02 00 4A 92 00 00 C6 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [17:05:07]RAPDU: 90 00 [17:05:07]wFMCommunicate OK [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 0D 03 02 [17:05:07]Write to MH i2c: E2 08 00 52 1B 80 0D 03 02 00 00 00 00 E8 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0B 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0B 00 52 1B 00 02 0A F5 D2 B8 5A 70 2E 90 00 6C [17:05:07]RAPDU: 02 0A F5 D2 B8 5A 70 2E 90 00 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_SignData done [17:05:07]FM_MakeSignedData done [17:05:07]CreateOFDProtocolMessage [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 11 00 00 [17:05:07]Write to MH i2c: E2 08 00 53 1B 80 11 00 00 00 00 00 00 E8 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 53 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [17:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:05:07]wFMCommunicate OK [17:05:07]CreateOFDProtocolMessage done [17:05:07]OFDSenderStorePacket 192331 [17:05:07]StoreOFDPacket docnum=192331 [17:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 73 21 04 01 93 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 01 00 00 F4 03 04 00 C3 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EF 02 00 35 04 06 00 D5 43 FA 9F 4A 92 02 0A F5 D2 B8 5A 70 2E [17:05:07]CheckFolder [17:05:07]dirname=/storage/ofd_packets [17:05:07]CheckFolder done [17:05:07]ProducePacketName [17:05:07]name=ofd_packets/00192331 [17:05:07]NVStorageSaveData ofd_packets/00192331 [17:05:07]File name is /storage/ofd_packets/00192331 [17:05:07]Write 298 bytes [17:05:07]NVStorageSaveData done [17:05:07]OFDSenderStorePacket done [17:05:07]KKMCreateOFDPacket done [17:05:07]NVStorageSaveData kkm_last_timestamp [17:05:07]File name is /storage/kkm_last_timestamp [17:05:07]Write 4 bytes [17:05:07]NVStorageSaveData done [17:05:07]ExternCall_PrintAddStr [17:05:07]wPrintStart [17:05:07]Write to MH i2c: 01 00 00 54 1B 6F [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: 01 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: 01 07 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 FF 0F 84 [17:05:07]RasterBufferAndPrint [17:05:07]line Счет N : (1)31647 [17:05:07]line ИНН: 02508201610067 [17:05:07]line Контрольно-Кассовый Чек [17:05:07]line ПРОДАЖА [17:05:07]line ТРК (МРК, ГНК) : 11 [17:05:07]line Товар: 2710194210 [17:05:07]line ДТ-К-5 [17:05:07]line 19.690 * 76.20 [17:05:07]line = 1500.38 [17:05:07]line НДС 12% НСП 1% [17:05:07]line > о реализуемом товаре [17:05:07]line ОКРУГЛЕНИЕ: -0.38 [17:05:07]line ИТОГО: 1500.00 [17:05:07]line Внесено: 1500.00 [17:05:07]line СДАЧА: 0.00 [17:05:07]line НСП 1% : 13.28 [17:05:07]line НДС 12% : 159.33 [17:05:07]line Наличными: 1500.00 [17:05:07]line Безнал.: 0.00 [17:05:07]line Место: АЗС № 170 "Партнер Нефть" [17:05:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:05:07]line СНО: Общий режим [17:05:07]line Чек 363 27.10.2024 17:05 [17:05:07]line Смена: 542 ФФД: 1.0 [17:05:07]line ЗНМ: 0300000110 [17:05:07]line РНМ: 0000000000091776 [17:05:07]line Версия ККМ: 001 [17:05:07]line ФМ: 0000000000871754 [17:05:07]line ФД: 192331 [17:05:07]line ФПД: 234487944268434 [17:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170507&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192331&fm=234487944268434&tin=02508201610067®Number=0000000000091776&sum=150000 [17:05:08]OFD Sender: Processing packet 192331 [packets to send 75, broken 74] [17:05:08]ProducePacketName [17:05:08]name=ofd_packets/00192331 [17:05:08]OFD Sender: To server: pG, [17:05:08]CommunicateWithHost lk.salyk.kg:30040 [17:05:08]ConnectInit lk.salyk.kg [17:05:08]written 0, free lines is 4095 [17:05:08]Connected sock=10 [17:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 73 21 04 01 93 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 01 00 00 F4 03 04 00 C3 72 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EF 02 00 35 04 06 00 D5 43 FA 9F 4A 92 02 0A F5 D2 B8 5A 70 2E [17:05:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4A 4D 47 00 50 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B EF 02 00 F4 03 04 00 8A 17 1E 67 B6 04 01 00 00 64 D1 55 EA 06 8B 5A 26 [17:05:08]CommunicateWithHost err = 0 [17:05:08]CheckOFDResponse [17:05:08]1017 (14) - 77093643461234 [17:05:08]1041 (16) - 0000000000871754 [17:05:08]1040 (4) - 192331 [17:05:08]1012 (4) - 27.10.2024 10:35 [17:05:08]1206 (1) - 0 [17:05:08]OFD Sender: Remove packet 192331 [17:05:08]ProducePacketName [17:05:08]name=ofd_packets/00192331 [17:05:08]NVStorageDeleteData [17:05:08]Write to MH i2c: 01 00 00 7F 1B 9A [17:05:08]Write i2c OK [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: 01 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: 01 07 00 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 A4 0C 51 [17:05:08]RasterBufferAndPrint [17:05:08]line [17:05:08]line [17:05:08]line [17:05:08]line [17:05:08]line [17:05:08]written 0, free lines is 3242 [17:05:08]MH_Cut [17:05:08]Write to MH i2c: D1 01 00 86 1B 01 73 [17:05:08]Write i2c OK [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: D1 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: D1 01 00 [17:05:08]MH_I2C_Read... [17:05:08]Read from MH i2c: D1 01 00 86 1B 00 72 [17:05:08]Write to MH i2c: 01 00 00 87 1B A2 [17:05:08]Write i2c OK [17:05:08]MH_I2C_Read... [17:05:09]OFD Sender: No OFD packet to send [17:05:09]*** Cut start [17:05:09]*** Partial cut [17:05:09]*** CUTSNS_PIN = 1 [17:05:09]*** CUTSNS_PIN = 0 [17:05:09]*** Brake cut motor [17:05:10]Read from MH i2c: 01 [17:05:10]MH_I2C_Read... [17:05:10]*** Stop cut motor [17:05:10]*** Cut end [17:05:10]Read from MH i2c: 01 07 00 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 FF 0F B7 [17:05:10]process_action close_receipt done [17:05:10]requested_data is exist [17:05:10]produce_requested_data [17:05:10]requested_item fm.sn is exist - process it [17:05:10]wFMCommunicate request_size=4 [17:05:10]MH_SAM_APDU [17:05:10]CAPDU: 80 11 00 00 [17:05:10]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [17:05:10]Write i2c OK [17:05:10]MH_I2C_Read... [17:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:10]Read from MH i2c: E2 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 17 00 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [17:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:05:10]wFMCommunicate OK [17:05:10]requested_item fd.num is exist - process it [17:05:10]SAM_PROTO_GetFieldsCounters [17:05:10]wFMCommunicate request_size=4 [17:05:10]MH_SAM_APDU [17:05:10]CAPDU: 80 13 00 00 [17:05:10]Write to MH i2c: E2 08 00 89 1B 80 13 00 00 00 00 00 00 20 [17:05:10]Write i2c OK [17:05:10]MH_I2C_Read... [17:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:10]Read from MH i2c: E2 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 62 00 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 62 00 89 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:10]wFMCommunicate OK [17:05:10]SAM_PROTO_GetFieldsCounters done [17:05:10]requested_item shift.num is exist - process it [17:05:10]requested_item shift.opened is exist - process it [17:05:10]req_shift_opened [17:05:10]FM_GetShiftState [17:05:10]SAM_PROTO_GetShiftState [17:05:10]wFMCommunicate request_size=4 [17:05:10]MH_SAM_APDU [17:05:10]CAPDU: 80 13 01 00 [17:05:10]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [17:05:10]Write i2c OK [17:05:10]MH_I2C_Read... [17:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:10]Read from MH i2c: E2 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 0E 00 [17:05:10]MH_I2C_Read... [17:05:10]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 63 [17:05:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:05:10]wFMCommunicate OK [17:05:10]SAM_PROTO_GetShiftState done [17:05:10]FM_GetShiftState done [17:05:10]req_shift_opened done [17:05:10]requested_item shift.open_date is exist - process it [17:05:10]req_shift_open_date [17:05:10]req_shift_open_date done [17:05:10]produce_requested_data done [17:05:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192331,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:05:10]process_action_free close_receipt [17:05:10]json_value_free [17:05:10]json_value_free done [17:05:10]process_json_proto returns [17:05:10]Send response to host [17:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192331,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:05:10]free response buf [17:05:10]execute_script done [17:05:10]execute_script returns [17:05:10]free content buf [17:05:10]Sock 7.Close socket [17:05:10]Sock 7.Thread stoped [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:40]accept exits with 9 [17:06:40]New connection [17:06:40]New thread 3067080036 created [17:06:40]Thread 3066936676 joined [17:06:40]Waiting for new connection... [17:06:40] Sock 9.Parse request [17:06:40]Sock 9.Check first char [17:06:40]Sock 9.First char is OK [17:06:40]request: POST /json_proto HTTP/1.0 [17:06:40]Method: POST [17:06:40]URL: /json_proto [17:06:40]Method is POST - this is cgi request [17:06:40]url: /json_proto [17:06:40]query_string will be loaded in cgi processing [17:06:40]execute_cgi json_proto POST (null) [17:06:40]execute_cgi path=json_proto method=POST [17:06:40]POST find Content-Length [17:06:40]Host: 172.17.63.131:8080 [17:06:40]Content-Length: 676 [17:06:40]Content-Type: application/json [17:06:40] [17:06:40]POST finish read [17:06:40]Found Content-Length = 676 [17:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:40]execute_script... [17:06: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)31649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:40]POST & json_proto [17:06:40]process_json_proto [17:06:40]json parsed OK: [17:06:40]protocol is kg_v1.0 [17:06:40]action value=close_receipt [17:06:40]process_action close_receipt [17:06:40]cmd_close_receipt [17:06:40]MH_GetDate [17:06:40]Write to MH i2c: F0 00 00 8B 1B 95 [17:06:40]Write i2c OK [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: F0 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: F0 09 00 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: F0 09 00 8B 1B 00 21 73 1E 67 22 05 6E 64 B0 [17:06:40]GetLastDocTimeStamp 1730048707 [17:06:40]current date 1730048801 [17:06:40]FM_GetShiftState [17:06:40]SAM_PROTO_GetShiftState [17:06:40]wFMCommunicate request_size=4 [17:06:40]MH_SAM_APDU [17:06:40]CAPDU: 80 13 01 00 [17:06:40]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [17:06:40]Write i2c OK [17:06:40]MH_I2C_Read... [17:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:40]Read from MH i2c: E2 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: E2 0E 00 [17:06:40]MH_I2C_Read... [17:06:40]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 65 [17:06:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:06:40]wFMCommunicate OK [17:06:40]SAM_PROTO_GetShiftState done [17:06:40]FM_GetShiftState done [17:06:40]opened in 1729989159 [17:06:40]opened+sec_in_day 1730075559 [17:06:40]quantity*price = 40006 [17:06:40]sum+1 = 40007 [17:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 364 27.10.2024 17:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192332 ФПД: 122827156555199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192332&fm=122827156555199&tin=02508201610067®Number=0000000000091776&sum=40000 [17:06:41]StoreToDocumentArchive [17:06:41]shift 542 fd 192332 [17:06:41]save to /storage/0542/doc_00192332 [17:06:41]save last doc name /storage/0542/doc_00192332 to /storage/kkm_last_doc_name [17:06:41]save OK [17:06:41]Clear old archive folders... [17:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:41]tlvbuf is 003478F0 [17:06:41]SAM_PROTO_ClearQueue [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 09 00 00 [17:06:41]Write to MH i2c: E2 08 00 99 1B 80 09 00 00 00 00 00 00 26 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]SAM_PROTO_ClearQueue done [17:06:41]KKMCreateOFDPacket [17:06:41]OFDProtocolAddRootSTLVToBuf [17:06:41]FM_MakeSignedData [17:06:41]FM_MakeSignedData [17:06:41]SAM_PROTO_SignData [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 01 02 [17:06:41]Write to MH i2c: E2 08 00 9A 1B 80 0D 01 02 00 00 00 00 2E [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=255 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 21 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EF 02 00 35 04 06 00 6F [17:06:41]Write to MH i2c: E2 02 01 9B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 21 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EF 02 00 35 04 06 00 6F 00 00 E3 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=10 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 02 02 05 B5 ED 09 05 BF [17:06:41]Write to MH i2c: E2 0D 00 9C 1B 80 0D 02 02 05 00 B5 ED 09 05 BF 00 00 AA [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [17:06:41]RAPDU: 90 00 [17:06:41]wFMCommunicate OK [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 0D 03 02 [17:06:41]Write to MH i2c: E2 08 00 9D 1B 80 0D 03 02 00 00 00 00 33 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0B 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0B 00 9D 1B 00 2F EA B3 61 1F 12 A3 FF 90 00 34 [17:06:41]RAPDU: 2F EA B3 61 1F 12 A3 FF 90 00 [17:06:41]wFMCommunicate OK [17:06:41]SAM_PROTO_SignData done [17:06:41]FM_MakeSignedData done [17:06:41]CreateOFDProtocolMessage [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 11 00 00 [17:06:41]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 17 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [17:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:06:41]wFMCommunicate OK [17:06:41]CreateOFDProtocolMessage done [17:06:41]OFDSenderStorePacket 192332 [17:06:41]StoreOFDPacket docnum=192332 [17:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 F9 07 01 AA 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 21 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EF 02 00 35 04 06 00 6F B5 ED 09 05 BF 2F EA B3 61 1F 12 A3 FF [17:06:41]CheckFolder [17:06:41]dirname=/storage/ofd_packets [17:06:41]CheckFolder done [17:06:41]ProducePacketName [17:06:41]name=ofd_packets/00192332 [17:06:41]NVStorageSaveData ofd_packets/00192332 [17:06:41]File name is /storage/ofd_packets/00192332 [17:06:41]Write 301 bytes [17:06:41]NVStorageSaveData done [17:06:41]OFDSenderStorePacket done [17:06:41]KKMCreateOFDPacket done [17:06:41]NVStorageSaveData kkm_last_timestamp [17:06:41]File name is /storage/kkm_last_timestamp [17:06:41]Write 4 bytes [17:06:41]NVStorageSaveData done [17:06:41]OFD Sender: Processing packet 192332 [packets to send 75, broken 74] [17:06:41]ProducePacketName [17:06:41]name=ofd_packets/00192332 [17:06:41]OFD Sender: To server: pG, [17:06:41]CommunicateWithHost lk.salyk.kg:30040 [17:06:41]ConnectInit lk.salyk.kg [17:06:41]ExternCall_PrintAddStr [17:06:41]wPrintStart [17:06:41]Write to MH i2c: 01 00 00 9F 1B BA [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 07 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [17:06:41]RasterBufferAndPrint [17:06:41]line Счет N : (1)31649 [17:06:41]line ИНН: 02508201610067 [17:06:41]line Контрольно-Кассовый Чек [17:06:41]line ПРОДАЖА [17:06:41]line ТРК (МРК, ГНК) : 12 [17:06:41]line Товар: 2710124130 [17:06:41]line Аи-92-К-5 [17:06:41]line 5.980 * 66.90 [17:06:41]line = 400.06 [17:06:41]line НДС 12% НСП 1% [17:06:41]line > о реализуемом товаре [17:06:41]line ОКРУГЛЕНИЕ: -0.06 [17:06:41]line ИТОГО: 400.00 [17:06:41]line Внесено: 400.00 [17:06:41]line СДАЧА: 0.00 [17:06:41]line НСП 1% : 3.54 [17:06:41]line НДС 12% : 42.48 [17:06:41]line Наличными: 400.00 [17:06:41]line Безнал.: 0.00 [17:06:41]line Место: АЗС № 170 "Партнер Нефть" [17:06:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:06:41]line СНО: Общий режим [17:06:41]line Чек 364 27.10.2024 17:06 [17:06:41]line Смена: 542 ФФД: 1.0 [17:06:41]line ЗНМ: 0300000110 [17:06:41]line РНМ: 0000000000091776 [17:06:41]line Версия ККМ: 001 [17:06:41]line ФМ: 0000000000871754 [17:06:41]line ФД: 192332 [17:06:41]line ФПД: 122827156555199 [17:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192332&fm=122827156555199&tin=02508201610067®Number=0000000000091776&sum=40000 [17:06:42]Connected sock=11 [17:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 F9 07 01 AA 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 21 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EF 02 00 35 04 06 00 6F B5 ED 09 05 BF 2F EA B3 61 1F 12 A3 FF [17:06:42]written 0, free lines is 4095 [17:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F4 84 47 00 A3 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C EF 02 00 F4 03 04 00 E8 17 1E 67 B6 04 01 00 00 82 9A FD A1 E8 E7 9A D7 [17:06:42]CommunicateWithHost err = 0 [17:06:42]CheckOFDResponse [17:06:42]1017 (14) - 77093643461234 [17:06:42]1041 (16) - 0000000000871754 [17:06:42]1040 (4) - 192332 [17:06:42]1012 (4) - 27.10.2024 10:37 [17:06:42]1206 (1) - 0 [17:06:42]OFD Sender: Remove packet 192332 [17:06:42]ProducePacketName [17:06:42]name=ofd_packets/00192332 [17:06:42]NVStorageDeleteData [17:06:42]Write to MH i2c: 01 00 00 CA 1B E5 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 A9 0C A1 [17:06:42]RasterBufferAndPrint [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]line [17:06:42]written 0, free lines is 3248 [17:06:42]MH_Cut [17:06:42]Write to MH i2c: D1 01 00 D1 1B 01 BE [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 01 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: D1 01 00 D1 1B 00 BD [17:06:42]Write to MH i2c: 01 00 00 D2 1B ED [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:43]OFD Sender: No OFD packet to send [17:06:43]*** Cut start [17:06:43]*** Partial cut [17:06:43]*** CUTSNS_PIN = 1 [17:06:43]*** CUTSNS_PIN = 0 [17:06:43]*** Brake cut motor [17:06:44]Read from MH i2c: 01 [17:06:44]MH_I2C_Read... [17:06:44]*** Stop cut motor [17:06:44]*** Cut end [17:06:44]Read from MH i2c: 01 07 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 FF 0F 02 [17:06:44]process_action close_receipt done [17:06:44]requested_data is exist [17:06:44]produce_requested_data [17:06:44]requested_item fm.sn is exist - process it [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 11 00 00 [17:06:44]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 17 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [17:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:06:44]wFMCommunicate OK [17:06:44]requested_item fd.num is exist - process it [17:06:44]SAM_PROTO_GetFieldsCounters [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 13 00 00 [17:06:44]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 62 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 62 00 D4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_GetFieldsCounters done [17:06:44]requested_item shift.num is exist - process it [17:06:44]requested_item shift.opened is exist - process it [17:06:44]req_shift_opened [17:06:44]FM_GetShiftState [17:06:44]SAM_PROTO_GetShiftState [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 13 01 00 [17:06:44]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0E 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AE [17:06:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_GetShiftState done [17:06:44]FM_GetShiftState done [17:06:44]req_shift_opened done [17:06:44]requested_item shift.open_date is exist - process it [17:06:44]req_shift_open_date [17:06:44]req_shift_open_date done [17:06:44]produce_requested_data done [17:06:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192332,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:06:44]process_action_free close_receipt [17:06:44]json_value_free [17:06:44]json_value_free done [17:06:44]process_json_proto returns [17:06:44]Send response to host [17:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192332,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:06:44]free response buf [17:06:44]execute_script done [17:06:44]execute_script returns [17:06:44]free content buf [17:06:44]Sock 9.Close socket [17:06:44]Sock 9.Thread stoped [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:46]accept exits with 10 [17:08:46]New connection [17:08:46]New thread 3066936676 created [17:08:46]Thread 3067080036 joined [17:08:46]Waiting for new connection... [17:08:46] Sock 10.Parse request [17:08:46]Sock 10.Check first char [17:08:46]Sock 10.First char is OK [17:08:46]request: POST /json_proto HTTP/1.0 [17:08:46]Method: POST [17:08:46]URL: /json_proto [17:08:46]Method is POST - this is cgi request [17:08:46]url: /json_proto [17:08:46]query_string will be loaded in cgi processing [17:08:46]execute_cgi json_proto POST (null) [17:08:46]execute_cgi path=json_proto method=POST [17:08:46]POST find Content-Length [17:08:46]Host: 172.17.63.131:8080 [17:08:46]Content-Length: 676 [17:08:46]Content-Type: application/json [17:08:46] [17:08:46]POST finish read [17:08:46]Found Content-Length = 676 [17:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:46]execute_script... [17:08: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)31650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:46]POST & json_proto [17:08:46]process_json_proto [17:08:46]json parsed OK: [17:08:46]protocol is kg_v1.0 [17:08:46]action value=close_receipt [17:08:46]process_action close_receipt [17:08:46]cmd_close_receipt [17:08:46]MH_GetDate [17:08:46]Write to MH i2c: F0 00 00 D6 1B E0 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 09 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 09 00 D6 1B 00 9F 73 1E 67 22 05 6E 64 79 [17:08:46]GetLastDocTimeStamp 1730048801 [17:08:46]current date 1730048927 [17:08:46]FM_GetShiftState [17:08:46]SAM_PROTO_GetShiftState [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 13 01 00 [17:08:46]Write to MH i2c: E2 08 00 D7 1B 80 13 01 00 00 00 00 00 6F [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 D7 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [17:08:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:08:46]wFMCommunicate OK [17:08:46]SAM_PROTO_GetShiftState done [17:08:46]FM_GetShiftState done [17:08:46]opened in 1729989159 [17:08:46]opened+sec_in_day 1730075559 [17:08:46]quantity*price = 40006 [17:08:46]sum+1 = 40007 [17:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 365 27.10.2024 17:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192333 ФПД: 2560053445098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192333&fm=2560053445098&tin=02508201610067®Number=0000000000091776&sum=40000 [17:08:47]StoreToDocumentArchive [17:08:47]shift 542 fd 192333 [17:08:47]save to /storage/0542/doc_00192333 [17:08:47]save last doc name /storage/0542/doc_00192333 to /storage/kkm_last_doc_name [17:08:47]save OK [17:08:47]Clear old archive folders... [17:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:47]tlvbuf is 00306560 [17:08:47]SAM_PROTO_ClearQueue [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 09 00 00 [17:08:47]Write to MH i2c: E2 08 00 E4 1B 80 09 00 00 00 00 00 00 71 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [17:08:47]RAPDU: 90 00 [17:08:47]wFMCommunicate OK [17:08:47]SAM_PROTO_ClearQueue done [17:08:47]KKMCreateOFDPacket [17:08:47]OFDProtocolAddRootSTLVToBuf [17:08:47]FM_MakeSignedData [17:08:47]FM_MakeSignedData [17:08:47]SAM_PROTO_SignData [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 0D 01 02 [17:08:47]Write to MH i2c: E2 08 00 E5 1B 80 0D 01 02 00 00 00 00 79 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [17:08:47]RAPDU: 90 00 [17:08:47]wFMCommunicate OK [17:08:47]wFMCommunicate request_size=255 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 9F 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EF 02 00 35 04 06 00 02 [17:08:47]Write to MH i2c: E2 02 01 E6 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 9F 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EF 02 00 35 04 06 00 02 00 00 41 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:48]OFD Sender: No OFD packet to send [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=10 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 02 02 05 54 0F 13 81 EA [17:08:48]Write to MH i2c: E2 0D 00 E7 1B 80 0D 02 02 05 00 54 0F 13 81 EA 00 00 67 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 03 02 [17:08:48]Write to MH i2c: E2 08 00 E8 1B 80 0D 03 02 00 00 00 00 7E [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0B 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0B 00 E8 1B 00 FC F0 C5 A3 3F 78 76 8E 90 00 8E [17:08:48]RAPDU: FC F0 C5 A3 3F 78 76 8E 90 00 [17:08:48]wFMCommunicate OK [17:08:48]SAM_PROTO_SignData done [17:08:48]FM_MakeSignedData done [17:08:48]CreateOFDProtocolMessage [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 11 00 00 [17:08:48]Write to MH i2c: E2 08 00 E9 1B 80 11 00 00 00 00 00 00 7E [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 17 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 17 00 E9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D1 [17:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:08:48]wFMCommunicate OK [17:08:48]CreateOFDProtocolMessage done [17:08:48]OFDSenderStorePacket 192333 [17:08:48]StoreOFDPacket docnum=192333 [17:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 5F 07 01 DF 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 9F 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EF 02 00 35 04 06 00 02 54 0F 13 81 EA FC F0 C5 A3 3F 78 76 8E [17:08:48]CheckFolder [17:08:48]dirname=/storage/ofd_packets [17:08:48]CheckFolder done [17:08:48]ProducePacketName [17:08:48]name=ofd_packets/00192333 [17:08:48]NVStorageSaveData ofd_packets/00192333 [17:08:48]File name is /storage/ofd_packets/00192333 [17:08:48]Write 301 bytes [17:08:48]NVStorageSaveData done [17:08:48]OFDSenderStorePacket done [17:08:48]KKMCreateOFDPacket done [17:08:48]NVStorageSaveData kkm_last_timestamp [17:08:48]File name is /storage/kkm_last_timestamp [17:08:48]Write 4 bytes [17:08:48]NVStorageSaveData done [17:08:48]ExternCall_PrintAddStr [17:08:48]wPrintStart [17:08:48]Write to MH i2c: 01 00 00 EA 1B 05 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: 01 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: 01 07 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [17:08:48]RasterBufferAndPrint [17:08:48]line Счет N : (1)31650 [17:08:48]line ИНН: 02508201610067 [17:08:48]line Контрольно-Кассовый Чек [17:08:48]line ПРОДАЖА [17:08:48]line ТРК (МРК, ГНК) : 12 [17:08:48]line Товар: 2710124130 [17:08:48]line Аи-92-К-5 [17:08:48]line 5.980 * 66.90 [17:08:48]line = 400.06 [17:08:48]line НДС 12% НСП 1% [17:08:48]line > о реализуемом товаре [17:08:48]line ОКРУГЛЕНИЕ: -0.06 [17:08:48]line ИТОГО: 400.00 [17:08:48]line Внесено: 400.00 [17:08:48]line СДАЧА: 0.00 [17:08:48]line НСП 1% : 3.54 [17:08:48]line НДС 12% : 42.48 [17:08:48]line Наличными: 400.00 [17:08:48]line Безнал.: 0.00 [17:08:48]line Место: АЗС № 170 "Партнер Нефть" [17:08:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:08:48]line СНО: Общий режим [17:08:48]line Чек 365 27.10.2024 17:08 [17:08:48]line Смена: 542 ФФД: 1.0 [17:08:48]line ЗНМ: 0300000110 [17:08:48]line РНМ: 0000000000091776 [17:08:48]line Версия ККМ: 001 [17:08:48]line ФМ: 0000000000871754 [17:08:48]line ФД: 192333 [17:08:48]line ФПД: 2560053445098 [17:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192333&fm=2560053445098&tin=02508201610067®Number=0000000000091776&sum=40000 [17:08:48]OFD Sender: Processing packet 192333 [packets to send 75, broken 74] [17:08:48]ProducePacketName [17:08:48]name=ofd_packets/00192333 [17:08:48]OFD Sender: To server: pG, [17:08:48]CommunicateWithHost lk.salyk.kg:30040 [17:08:48]ConnectInit lk.salyk.kg [17:08:48]written 0, free lines is 4095 [17:08:48]Connected sock=9 [17:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 5F 07 01 DF 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 9F 73 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EF 02 00 35 04 06 00 02 54 0F 13 81 EA FC F0 C5 A3 3F 78 76 8E [17:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 5C 47 00 34 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D EF 02 00 F4 03 04 00 66 18 1E 67 B6 04 01 00 00 1E EC 7E 7C 37 F9 B0 A1 [17:08:49]CommunicateWithHost err = 0 [17:08:49]CheckOFDResponse [17:08:49]1017 (14) - 77093643461234 [17:08:49]1041 (16) - 0000000000871754 [17:08:49]1040 (4) - 192333 [17:08:49]1012 (4) - 27.10.2024 10:39 [17:08:49]1206 (1) - 0 [17:08:49]OFD Sender: Remove packet 192333 [17:08:49]ProducePacketName [17:08:49]name=ofd_packets/00192333 [17:08:49]NVStorageDeleteData [17:08:49]Write to MH i2c: 01 00 00 15 1C 31 [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 AA 0C EE [17:08:49]RasterBufferAndPrint [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]written 0, free lines is 3248 [17:08:49]MH_Cut [17:08:49]Write to MH i2c: D1 01 00 1C 1C 01 0A [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 01 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 01 00 1C 1C 00 09 [17:08:49]Write to MH i2c: 01 00 00 1D 1C 39 [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]OFD Sender: No OFD packet to send [17:08:49]*** Cut start [17:08:49]*** Partial cut [17:08:49]*** CUTSNS_PIN = 1 [17:08:50]*** CUTSNS_PIN = 0 [17:08:50]*** Brake cut motor [17:08:50]Read from MH i2c: 01 [17:08:50]MH_I2C_Read... [17:08:50]*** Stop cut motor [17:08:50]*** Cut end [17:08:50]Read from MH i2c: 01 07 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 FF 0F 4E [17:08:50]process_action close_receipt done [17:08:50]requested_data is exist [17:08:50]produce_requested_data [17:08:50]requested_item fm.sn is exist - process it [17:08:50]wFMCommunicate request_size=4 [17:08:50]MH_SAM_APDU [17:08:50]CAPDU: 80 11 00 00 [17:08:50]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [17:08:50]Write i2c OK [17:08:50]MH_I2C_Read... [17:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:50]Read from MH i2c: E2 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 17 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [17:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:08:50]wFMCommunicate OK [17:08:50]requested_item fd.num is exist - process it [17:08:50]SAM_PROTO_GetFieldsCounters [17:08:50]wFMCommunicate request_size=4 [17:08:50]MH_SAM_APDU [17:08:50]CAPDU: 80 13 00 00 [17:08:50]Write to MH i2c: E2 08 00 1F 1C 80 13 00 00 00 00 00 00 B7 [17:08:50]Write i2c OK [17:08:50]MH_I2C_Read... [17:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:50]Read from MH i2c: E2 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 62 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 62 00 1F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:50]wFMCommunicate OK [17:08:50]SAM_PROTO_GetFieldsCounters done [17:08:50]requested_item shift.num is exist - process it [17:08:50]requested_item shift.opened is exist - process it [17:08:50]req_shift_opened [17:08:50]FM_GetShiftState [17:08:50]SAM_PROTO_GetShiftState [17:08:50]wFMCommunicate request_size=4 [17:08:50]MH_SAM_APDU [17:08:50]CAPDU: 80 13 01 00 [17:08:50]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [17:08:50]Write i2c OK [17:08:50]MH_I2C_Read... [17:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:50]Read from MH i2c: E2 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 0E 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FA [17:08:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:08:50]wFMCommunicate OK [17:08:50]SAM_PROTO_GetShiftState done [17:08:50]FM_GetShiftState done [17:08:50]req_shift_opened done [17:08:50]requested_item shift.open_date is exist - process it [17:08:50]req_shift_open_date [17:08:50]req_shift_open_date done [17:08:50]produce_requested_data done [17:08:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192333,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:08:50]process_action_free close_receipt [17:08:50]json_value_free [17:08:50]json_value_free done [17:08:50]process_json_proto returns [17:08:50]Send response to host [17:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192333,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:08:50]free response buf [17:08:50]execute_script done [17:08:50]execute_script returns [17:08:50]free content buf [17:08:50]Sock 10.Close socket [17:08:50]Sock 10.Thread stoped [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:27]accept exits with 7 [17:12:27]New connection [17:12:27]New thread 3067080036 created [17:12:27]Thread 3066936676 joined [17:12:27]Waiting for new connection... [17:12:27] Sock 7.Parse request [17:12:27]Sock 7.Check first char [17:12:27]Sock 7.First char is OK [17:12:27]request: POST /json_proto HTTP/1.0 [17:12:27]Method: POST [17:12:27]URL: /json_proto [17:12:27]Method is POST - this is cgi request [17:12:27]url: /json_proto [17:12:27]query_string will be loaded in cgi processing [17:12:27]execute_cgi json_proto POST (null) [17:12:27]execute_cgi path=json_proto method=POST [17:12:27]POST find Content-Length [17:12:27]Host: 172.17.63.131:8080 [17:12:27]Content-Length: 676 [17:12:27]Content-Type: application/json [17:12:27] [17:12:27]POST finish read [17:12:27]Found Content-Length = 676 [17:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:27]execute_script... [17:12:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:27]POST & json_proto [17:12:27]process_json_proto [17:12:27]json parsed OK: [17:12:27]protocol is kg_v1.0 [17:12:27]action value=close_receipt [17:12:27]process_action close_receipt [17:12:27]cmd_close_receipt [17:12:27]MH_GetDate [17:12:27]Write to MH i2c: F0 00 00 21 1C 2C [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: F0 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: F0 09 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: F0 09 00 21 1C 00 7C 74 1E 67 22 05 6E 64 A3 [17:12:27]GetLastDocTimeStamp 1730048927 [17:12:27]current date 1730049148 [17:12:27]FM_GetShiftState [17:12:27]SAM_PROTO_GetShiftState [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 13 01 00 [17:12:27]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0E 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [17:12:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_GetShiftState done [17:12:27]FM_GetShiftState done [17:12:27]opened in 1729989159 [17:12:27]opened+sec_in_day 1730075559 [17:12:27]quantity*price = 60009 [17:12:27]sum+1 = 60010 [17:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 366 27.10.2024 17:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192334 ФПД: 99115161944310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192334&fm=99115161944310&tin=02508201610067®Number=0000000000091776&sum=60000 [17:12:28]StoreToDocumentArchive [17:12:28]shift 542 fd 192334 [17:12:28]save to /storage/0542/doc_00192334 [17:12:28]save last doc name /storage/0542/doc_00192334 to /storage/kkm_last_doc_name [17:12:28]save OK [17:12:28]Clear old archive folders... [17:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:28]tlvbuf is 002E17A0 [17:12:28]SAM_PROTO_ClearQueue [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 09 00 00 [17:12:28]Write to MH i2c: E2 08 00 2F 1C 80 09 00 00 00 00 00 00 BD [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [17:12:28]RAPDU: 90 00 [17:12:28]wFMCommunicate OK [17:12:28]SAM_PROTO_ClearQueue done [17:12:28]KKMCreateOFDPacket [17:12:28]OFDProtocolAddRootSTLVToBuf [17:12:28]FM_MakeSignedData [17:12:28]FM_MakeSignedData [17:12:28]SAM_PROTO_SignData [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 0D 01 02 [17:12:28]Write to MH i2c: E2 08 00 30 1C 80 0D 01 02 00 00 00 00 C5 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [17:12:28]RAPDU: 90 00 [17:12:28]wFMCommunicate OK [17:12:28]wFMCommunicate request_size=255 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 7C 74 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EF 02 00 35 04 06 00 5A [17:12:28]Write to MH i2c: E2 02 01 31 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 7C 74 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EF 02 00 35 04 06 00 5A 00 00 D3 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [17:12:28]RAPDU: 90 00 [17:12:28]wFMCommunicate OK [17:12:28]wFMCommunicate request_size=10 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 0D 02 02 05 25 0C 05 00 F6 [17:12:28]Write to MH i2c: E2 0D 00 32 1C 80 0D 02 02 05 00 25 0C 05 00 F6 00 00 FE [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [17:12:28]RAPDU: 90 00 [17:12:28]wFMCommunicate OK [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 0D 03 02 [17:12:28]Write to MH i2c: E2 08 00 33 1C 80 0D 03 02 00 00 00 00 CA [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 0B 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: E2 0B 00 33 1C 00 44 A4 D1 97 1D 59 E2 90 90 00 03 [17:12:29]RAPDU: 44 A4 D1 97 1D 59 E2 90 90 00 [17:12:29]wFMCommunicate OK [17:12:29]SAM_PROTO_SignData done [17:12:29]FM_MakeSignedData done [17:12:29]CreateOFDProtocolMessage [17:12:29]wFMCommunicate request_size=4 [17:12:29]MH_SAM_APDU [17:12:29]CAPDU: 80 11 00 00 [17:12:29]Write to MH i2c: E2 08 00 34 1C 80 11 00 00 00 00 00 00 CA [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:29]Read from MH i2c: E2 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: E2 17 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: E2 17 00 34 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [17:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:12:29]wFMCommunicate OK [17:12:29]CreateOFDProtocolMessage done [17:12:29]OFDSenderStorePacket 192334 [17:12:29]StoreOFDPacket docnum=192334 [17:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D 69 07 01 AF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 7C 74 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EF 02 00 35 04 06 00 5A 25 0C 05 00 F6 44 A4 D1 97 1D 59 E2 90 [17:12:29]CheckFolder [17:12:29]dirname=/storage/ofd_packets [17:12:29]CheckFolder done [17:12:29]ProducePacketName [17:12:29]name=ofd_packets/00192334 [17:12:29]NVStorageSaveData ofd_packets/00192334 [17:12:29]File name is /storage/ofd_packets/00192334 [17:12:29]Write 301 bytes [17:12:29]NVStorageSaveData done [17:12:29]OFDSenderStorePacket done [17:12:29]KKMCreateOFDPacket done [17:12:29]NVStorageSaveData kkm_last_timestamp [17:12:29]File name is /storage/kkm_last_timestamp [17:12:29]Write 4 bytes [17:12:29]NVStorageSaveData done [17:12:29]ExternCall_PrintAddStr [17:12:29]wPrintStart [17:12:29]Write to MH i2c: 01 00 00 35 1C 51 [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 FF 0F 66 [17:12:29]RasterBufferAndPrint [17:12:29]line Счет N : (1)31651 [17:12:29]line ИНН: 02508201610067 [17:12:29]line Контрольно-Кассовый Чек [17:12:29]line ПРОДАЖА [17:12:29]line ТРК (МРК, ГНК) : 12 [17:12:29]line Товар: 2710124130 [17:12:29]line Аи-92-К-5 [17:12:29]line 8.970 * 66.90 [17:12:29]line = 600.09 [17:12:29]line НДС 12% НСП 1% [17:12:29]line > о реализуемом товаре [17:12:29]line ОКРУГЛЕНИЕ: -0.09 [17:12:29]line ИТОГО: 600.00 [17:12:29]line Внесено: 600.00 [17:12:29]line СДАЧА: 0.00 [17:12:29]line НСП 1% : 5.31 [17:12:29]line НДС 12% : 63.73 [17:12:29]line Наличными: 600.00 [17:12:29]line Безнал.: 0.00 [17:12:29]line Место: АЗС № 170 "Партнер Нефть" [17:12:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:12:29]line СНО: Общий режим [17:12:29]line Чек 366 27.10.2024 17:12 [17:12:29]line Смена: 542 ФФД: 1.0 [17:12:29]line ЗНМ: 0300000110 [17:12:29]line РНМ: 0000000000091776 [17:12:29]line Версия ККМ: 001 [17:12:29]line ФМ: 0000000000871754 [17:12:29]line ФД: 192334 [17:12:29]line ФПД: 99115161944310 [17:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192334&fm=99115161944310&tin=02508201610067®Number=0000000000091776&sum=60000 [17:12:29]OFD Sender: Processing packet 192334 [packets to send 75, broken 74] [17:12:29]ProducePacketName [17:12:29]name=ofd_packets/00192334 [17:12:29]OFD Sender: To server: pG, [17:12:29]CommunicateWithHost lk.salyk.kg:30040 [17:12:29]ConnectInit lk.salyk.kg [17:12:29]written 0, free lines is 4095 [17:12:29]Connected sock=10 [17:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D 69 07 01 AF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 7C 74 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EF 02 00 35 04 06 00 5A 25 0C 05 00 F6 44 A4 D1 97 1D 59 E2 90 [17:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 6A 47 00 C3 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E EF 02 00 F4 03 04 00 43 19 1E 67 B6 04 01 00 00 5C 36 DC D7 EC 8E B6 4F [17:12:29]CommunicateWithHost err = 0 [17:12:29]CheckOFDResponse [17:12:29]1017 (14) - 77093643461234 [17:12:29]1041 (16) - 0000000000871754 [17:12:29]1040 (4) - 192334 [17:12:29]1012 (4) - 27.10.2024 10:43 [17:12:29]1206 (1) - 0 [17:12:29]OFD Sender: Remove packet 192334 [17:12:29]ProducePacketName [17:12:29]name=ofd_packets/00192334 [17:12:29]NVStorageDeleteData [17:12:29]Write to MH i2c: 01 00 00 60 1C 7C [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 A5 0C 34 [17:12:29]RasterBufferAndPrint [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]written 0, free lines is 3242 [17:12:29]MH_Cut [17:12:29]Write to MH i2c: D1 01 00 67 1C 01 55 [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 01 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 01 00 67 1C 00 54 [17:12:29]Write to MH i2c: 01 00 00 68 1C 84 [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:30]OFD Sender: No OFD packet to send [17:12:30]*** Cut start [17:12:30]*** Partial cut [17:12:30]*** CUTSNS_PIN = 1 [17:12:30]*** CUTSNS_PIN = 0 [17:12:30]*** Brake cut motor [17:12:31]Read from MH i2c: 01 [17:12:31]MH_I2C_Read... [17:12:31]*** Stop cut motor [17:12:31]*** Cut end [17:12:31]Read from MH i2c: 01 07 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [17:12:31]process_action close_receipt done [17:12:31]requested_data is exist [17:12:31]produce_requested_data [17:12:31]requested_item fm.sn is exist - process it [17:12:31]wFMCommunicate request_size=4 [17:12:31]MH_SAM_APDU [17:12:31]CAPDU: 80 11 00 00 [17:12:31]Write to MH i2c: E2 08 00 69 1C 80 11 00 00 00 00 00 00 FF [17:12:31]Write i2c OK [17:12:31]MH_I2C_Read... [17:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:31]Read from MH i2c: E2 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 17 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 17 00 69 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [17:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:12:31]wFMCommunicate OK [17:12:31]requested_item fd.num is exist - process it [17:12:31]SAM_PROTO_GetFieldsCounters [17:12:31]wFMCommunicate request_size=4 [17:12:31]MH_SAM_APDU [17:12:31]CAPDU: 80 13 00 00 [17:12:31]Write to MH i2c: E2 08 00 6A 1C 80 13 00 00 00 00 00 00 02 [17:12:31]Write i2c OK [17:12:31]MH_I2C_Read... [17:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:31]Read from MH i2c: E2 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 62 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 62 00 6A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [17:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:31]wFMCommunicate OK [17:12:31]SAM_PROTO_GetFieldsCounters done [17:12:31]requested_item shift.num is exist - process it [17:12:31]requested_item shift.opened is exist - process it [17:12:31]req_shift_opened [17:12:31]FM_GetShiftState [17:12:31]SAM_PROTO_GetShiftState [17:12:31]wFMCommunicate request_size=4 [17:12:31]MH_SAM_APDU [17:12:31]CAPDU: 80 13 01 00 [17:12:31]Write to MH i2c: E2 08 00 6B 1C 80 13 01 00 00 00 00 00 04 [17:12:31]Write i2c OK [17:12:31]MH_I2C_Read... [17:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:31]Read from MH i2c: E2 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 0E 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 0E 00 6B 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 45 [17:12:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:12:31]wFMCommunicate OK [17:12:31]SAM_PROTO_GetShiftState done [17:12:31]FM_GetShiftState done [17:12:31]req_shift_opened done [17:12:31]requested_item shift.open_date is exist - process it [17:12:31]req_shift_open_date [17:12:31]req_shift_open_date done [17:12:31]produce_requested_data done [17:12:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192334,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:12:31]process_action_free close_receipt [17:12:31]json_value_free [17:12:31]json_value_free done [17:12:31]process_json_proto returns [17:12:31]Send response to host [17:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192334,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:12:31]free response buf [17:12:31]execute_script done [17:12:31]execute_script returns [17:12:31]free content buf [17:12:31]Sock 7.Close socket [17:12:31]Sock 7.Thread stoped [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:47]accept exits with 9 [17:15:47]New connection [17:15:47]New thread 3066936676 created [17:15:47]Thread 3067080036 joined [17:15:47]Waiting for new connection... [17:15:47] Sock 9.Parse request [17:15:47]Sock 9.Check first char [17:15:47]Sock 9.First char is OK [17:15:47]request: POST /json_proto HTTP/1.0 [17:15:47]Method: POST [17:15:47]URL: /json_proto [17:15:47]Method is POST - this is cgi request [17:15:47]url: /json_proto [17:15:47]query_string will be loaded in cgi processing [17:15:47]execute_cgi json_proto POST (null) [17:15:47]execute_cgi path=json_proto method=POST [17:15:47]POST find Content-Length [17:15:47]Host: 172.17.63.131:8080 [17:15:47]Content-Length: 681 [17:15:47]Content-Type: application/json [17:15:47] [17:15:47]POST finish read [17:15:47]Found Content-Length = 681 [17:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.230, "sum" : 1487.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1487.00, "payments": [ { "type": 0, "sum" : 1487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:47]execute_script... [17:15: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)31653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.230, "sum" : 1487.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1487.00, "payments": [ { "type": 0, "sum" : 1487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:47]POST & json_proto [17:15:47]process_json_proto [17:15:47]json parsed OK: [17:15:47]protocol is kg_v1.0 [17:15:47]action value=close_receipt [17:15:47]process_action close_receipt [17:15:47]cmd_close_receipt [17:15:47]MH_GetDate [17:15:47]Write to MH i2c: F0 00 00 6C 1C 77 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 09 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 09 00 6C 1C 00 44 75 1E 67 22 05 6E 64 B7 [17:15:47]GetLastDocTimeStamp 1730049148 [17:15:47]current date 1730049348 [17:15:47]FM_GetShiftState [17:15:47]SAM_PROTO_GetShiftState [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 13 01 00 [17:15:47]Write to MH i2c: E2 08 00 6D 1C 80 13 01 00 00 00 00 00 06 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 6D 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [17:15:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_GetShiftState done [17:15:47]FM_GetShiftState done [17:15:47]opened in 1729989159 [17:15:47]opened+sec_in_day 1730075559 [17:15:47]quantity*price = 148718 [17:15:47]sum+1 = 148720 [17:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1487.00 Внесено: 1500.00 СДАЧА: 13.00 НСП 1% : 13.16 НДС 12% : 157.93 Наличными: 1487.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 367 27.10.2024 17:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192335 ФПД: 49841434770498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192335&fm=49841434770498&tin=02508201610067®Number=0000000000091776&sum=148700 [17:15:48]StoreToDocumentArchive [17:15:48]shift 542 fd 192335 [17:15:48]save to /storage/0542/doc_00192335 [17:15:48]save last doc name /storage/0542/doc_00192335 to /storage/kkm_last_doc_name [17:15:48]save OK [17:15:48]Clear old archive folders... [17:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:48]tlvbuf is 002E1850 [17:15:48]SAM_PROTO_ClearQueue [17:15:48]wFMCommunicate request_size=4 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 09 00 00 [17:15:48]Write to MH i2c: E2 08 00 7A 1C 80 09 00 00 00 00 00 00 08 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [17:15:48]RAPDU: 90 00 [17:15:48]wFMCommunicate OK [17:15:48]SAM_PROTO_ClearQueue done [17:15:48]KKMCreateOFDPacket [17:15:48]OFDProtocolAddRootSTLVToBuf [17:15:48]FM_MakeSignedData [17:15:48]FM_MakeSignedData [17:15:48]SAM_PROTO_SignData [17:15:48]wFMCommunicate request_size=4 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 0D 01 02 [17:15:48]Write to MH i2c: E2 08 00 7B 1C 80 0D 01 02 00 00 00 00 10 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 7B 1C 00 90 00 0B [17:15:48]RAPDU: 90 00 [17:15:48]wFMCommunicate OK [17:15:48]wFMCommunicate request_size=255 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3D 00 00 00 00 07 04 06 00 DC 44 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 44 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EF 02 00 35 04 06 00 2D [17:15:48]Write to MH i2c: E2 02 01 7C 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 D6 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3D 00 00 00 00 07 04 06 00 DC 44 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 44 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EF 02 00 35 04 06 00 2D 00 00 52 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 [17:15:48]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=10 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 02 02 05 54 9D 03 BC 42 [17:15:49]Write to MH i2c: E2 0D 00 7D 1C 80 0D 02 02 05 00 54 9D 03 BC 42 00 00 0F [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 03 02 [17:15:49]Write to MH i2c: E2 08 00 7E 1C 80 0D 03 02 00 00 00 00 15 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 7E 1C 00 47 A9 D4 9E 22 F0 F9 F5 90 00 78 [17:15:49]RAPDU: 47 A9 D4 9E 22 F0 F9 F5 90 00 [17:15:49]wFMCommunicate OK [17:15:49]SAM_PROTO_SignData done [17:15:49]FM_MakeSignedData done [17:15:49]CreateOFDProtocolMessage [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 11 00 00 [17:15:49]Write to MH i2c: E2 08 00 7F 1C 80 11 00 00 00 00 00 00 15 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 7F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [17:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:15:49]wFMCommunicate OK [17:15:49]CreateOFDProtocolMessage done [17:15:49]OFDSenderStorePacket 192335 [17:15:49]StoreOFDPacket docnum=192335 [17:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 F0 07 01 21 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3D 00 00 00 00 07 04 06 00 DC 44 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 44 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EF 02 00 35 04 06 00 2D 54 9D 03 BC 42 47 A9 D4 9E 22 F0 F9 F5 [17:15:49]CheckFolder [17:15:49]dirname=/storage/ofd_packets [17:15:49]CheckFolder done [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00192335 [17:15:49]NVStorageSaveData ofd_packets/00192335 [17:15:49]File name is /storage/ofd_packets/00192335 [17:15:49]Write 301 bytes [17:15:49]NVStorageSaveData done [17:15:49]OFDSenderStorePacket done [17:15:49]KKMCreateOFDPacket done [17:15:49]NVStorageSaveData kkm_last_timestamp [17:15:49]File name is /storage/kkm_last_timestamp [17:15:49]Write 4 bytes [17:15:49]NVStorageSaveData done [17:15:49]ExternCall_PrintAddStr [17:15:49]wPrintStart [17:15:49]Write to MH i2c: 01 00 00 80 1C 9C [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 FF 0F B1 [17:15:49]RasterBufferAndPrint [17:15:49]line Счет N : (1)31653 [17:15:49]line ИНН: 02508201610067 [17:15:49]line Контрольно-Кассовый Чек [17:15:49]line ПРОДАЖА [17:15:49]line ТРК (МРК, ГНК) : 12 [17:15:49]line Товар: 2710124130 [17:15:49]line Аи-92-К-5 [17:15:49]line 22.230 * 66.90 [17:15:49]line = 1487.19 [17:15:49]line НДС 12% НСП 1% [17:15:49]line > о реализуемом товаре [17:15:49]line ОКРУГЛЕНИЕ: -0.19 [17:15:49]line ИТОГО: 1487.00 [17:15:49]line Внесено: 1500.00 [17:15:49]line СДАЧА: 13.00 [17:15:49]line НСП 1% : 13.16 [17:15:49]line НДС 12% : 157.93 [17:15:49]line Наличными: 1487.00 [17:15:49]line Безнал.: 0.00 [17:15:49]line Место: АЗС № 170 "Партнер Нефть" [17:15:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:15:49]line СНО: Общий режим [17:15:49]line Чек 367 27.10.2024 17:15 [17:15:49]line Смена: 542 ФФД: 1.0 [17:15:49]line ЗНМ: 0300000110 [17:15:49]line РНМ: 0000000000091776 [17:15:49]line Версия ККМ: 001 [17:15:49]line ФМ: 0000000000871754 [17:15:49]line ФД: 192335 [17:15:49]line ФПД: 49841434770498 [17:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192335&fm=49841434770498&tin=02508201610067®Number=0000000000091776&sum=148700 [17:15:49]OFD Sender: Processing packet 192335 [packets to send 75, broken 74] [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00192335 [17:15:49]OFD Sender: To server: pG, [17:15:49]CommunicateWithHost lk.salyk.kg:30040 [17:15:49]ConnectInit lk.salyk.kg [17:15:49]written 0, free lines is 4095 [17:15:49]Connected sock=10 [17:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 F0 07 01 21 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 56 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3D 00 00 00 00 07 04 06 00 DC 44 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 44 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EF 02 00 35 04 06 00 2D 54 9D 03 BC 42 47 A9 D4 9E 22 F0 F9 F5 [17:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 F8 47 00 FF AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F EF 02 00 F4 03 04 00 0B 1A 1E 67 B6 04 01 00 00 D5 44 2E 71 54 74 C9 6D [17:15:49]CommunicateWithHost err = 0 [17:15:49]CheckOFDResponse [17:15:49]1017 (14) - 77093643461234 [17:15:49]1041 (16) - 0000000000871754 [17:15:49]1040 (4) - 192335 [17:15:49]1012 (4) - 27.10.2024 10:46 [17:15:49]1206 (1) - 0 [17:15:49]OFD Sender: Remove packet 192335 [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00192335 [17:15:49]NVStorageDeleteData [17:15:49]Write to MH i2c: 01 00 00 AB 1C C7 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 B0 0C 8A [17:15:49]RasterBufferAndPrint [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]written 0, free lines is 3255 [17:15:49]MH_Cut [17:15:49]Write to MH i2c: D1 01 00 B2 1C 01 A0 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 01 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 01 00 B2 1C 00 9F [17:15:49]Write to MH i2c: 01 00 00 B3 1C CF [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:50]OFD Sender: No OFD packet to send [17:15:50]*** Cut start [17:15:50]*** Partial cut [17:15:50]*** CUTSNS_PIN = 1 [17:15:50]*** CUTSNS_PIN = 0 [17:15:51]*** Brake cut motor [17:15:51]Read from MH i2c: 01 [17:15:51]MH_I2C_Read... [17:15:51]*** Stop cut motor [17:15:51]*** Cut end [17:15:51]Read from MH i2c: 01 07 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: 01 07 00 B3 1C 00 00 00 00 00 FF 0F E4 [17:15:51]process_action close_receipt done [17:15:51]requested_data is exist [17:15:51]produce_requested_data [17:15:51]requested_item fm.sn is exist - process it [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 11 00 00 [17:15:51]Write to MH i2c: E2 08 00 B4 1C 80 11 00 00 00 00 00 00 4A [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 17 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 17 00 B4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [17:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:15:51]wFMCommunicate OK [17:15:51]requested_item fd.num is exist - process it [17:15:51]SAM_PROTO_GetFieldsCounters [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 13 00 00 [17:15:51]Write to MH i2c: E2 08 00 B5 1C 80 13 00 00 00 00 00 00 4D [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 62 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 62 00 B5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:51]wFMCommunicate OK [17:15:51]SAM_PROTO_GetFieldsCounters done [17:15:51]requested_item shift.num is exist - process it [17:15:51]requested_item shift.opened is exist - process it [17:15:51]req_shift_opened [17:15:51]FM_GetShiftState [17:15:51]SAM_PROTO_GetShiftState [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 13 01 00 [17:15:51]Write to MH i2c: E2 08 00 B6 1C 80 13 01 00 00 00 00 00 4F [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 0E 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 0E 00 B6 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 90 [17:15:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:15:51]wFMCommunicate OK [17:15:51]SAM_PROTO_GetShiftState done [17:15:51]FM_GetShiftState done [17:15:51]req_shift_opened done [17:15:51]requested_item shift.open_date is exist - process it [17:15:51]req_shift_open_date [17:15:51]req_shift_open_date done [17:15:51]produce_requested_data done [17:15:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192335,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:15:51]process_action_free close_receipt [17:15:51]json_value_free [17:15:51]json_value_free done [17:15:51]process_json_proto returns [17:15:51]Send response to host [17:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192335,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:15:51]free response buf [17:15:51]execute_script done [17:15:51]execute_script returns [17:15:51]free content buf [17:15:51]Sock 9.Close socket [17:15:51]Sock 9.Thread stoped [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:17]accept exits with 7 [17:18:17]New connection [17:18:17]New thread 3067080036 created [17:18:17]Thread 3066936676 joined [17:18:17]Waiting for new connection... [17:18:17] Sock 7.Parse request [17:18:17]Sock 7.Check first char [17:18:17]Sock 7.First char is OK [17:18:17]request: POST /json_proto HTTP/1.0 [17:18:17]Method: POST [17:18:17]URL: /json_proto [17:18:17]Method is POST - this is cgi request [17:18:17]url: /json_proto [17:18:17]query_string will be loaded in cgi processing [17:18:17]execute_cgi json_proto POST (null) [17:18:17]execute_cgi path=json_proto method=POST [17:18:17]POST find Content-Length [17:18:17]Host: 172.17.63.131:8080 [17:18:17]Content-Length: 678 [17:18:17]Content-Type: application/json [17:18:17] [17:18:17]POST finish read [17:18:17]Found Content-Length = 678 [17:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31652", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:17]execute_script... [17:18:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31652", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:17]POST & json_proto [17:18:17]process_json_proto [17:18:17]json parsed OK: [17:18:17]protocol is kg_v1.0 [17:18:17]action value=close_receipt [17:18:17]process_action close_receipt [17:18:17]cmd_close_receipt [17:18:17]MH_GetDate [17:18:17]Write to MH i2c: F0 00 00 B7 1C C2 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: F0 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: F0 09 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: F0 09 00 B7 1C 00 DA 75 1E 67 22 05 6E 64 98 [17:18:17]GetLastDocTimeStamp 1730049348 [17:18:17]current date 1730049498 [17:18:17]FM_GetShiftState [17:18:17]SAM_PROTO_GetShiftState [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 13 01 00 [17:18:17]Write to MH i2c: E2 08 00 B8 1C 80 13 01 00 00 00 00 00 51 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 0E 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 0E 00 B8 1C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [17:18:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:18:17]wFMCommunicate OK [17:18:17]SAM_PROTO_GetShiftState done [17:18:17]FM_GetShiftState done [17:18:17]opened in 1729989159 [17:18:17]opened+sec_in_day 1730075559 [17:18:17]quantity*price = 200025 [17:18:17]sum+1 = 200026 [17:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 368 27.10.2024 17:18 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192336 ФПД: 63702524431891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192336&fm=63702524431891&tin=02508201610067®Number=0000000000091776&sum=200000 [17:18:18]StoreToDocumentArchive [17:18:18]shift 542 fd 192336 [17:18:18]save to /storage/0542/doc_00192336 [17:18:18]save last doc name /storage/0542/doc_00192336 to /storage/kkm_last_doc_name [17:18:18]save OK [17:18:18]Clear old archive folders... [17:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:18:18]tlvbuf is 00347B10 [17:18:18]SAM_PROTO_ClearQueue [17:18:18]wFMCommunicate request_size=4 [17:18:18]MH_SAM_APDU [17:18:18]CAPDU: 80 09 00 00 [17:18:18]Write to MH i2c: E2 08 00 C5 1C 80 09 00 00 00 00 00 00 53 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 03 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [17:18:18]RAPDU: 90 00 [17:18:18]wFMCommunicate OK [17:18:18]SAM_PROTO_ClearQueue done [17:18:18]KKMCreateOFDPacket [17:18:18]OFDProtocolAddRootSTLVToBuf [17:18:18]FM_MakeSignedData [17:18:18]FM_MakeSignedData [17:18:18]SAM_PROTO_SignData [17:18:18]wFMCommunicate request_size=4 [17:18:18]MH_SAM_APDU [17:18:18]CAPDU: 80 0D 01 02 [17:18:18]Write to MH i2c: E2 08 00 C6 1C 80 0D 01 02 00 00 00 00 5B [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 03 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 03 00 C6 1C 00 90 00 56 [17:18:18]RAPDU: 90 00 [17:18:18]wFMCommunicate OK [17:18:18]wFMCommunicate request_size=255 [17:18:18]MH_SAM_APDU [17:18: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 DA 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EF 02 00 35 04 06 00 39 EF E6 57 [17:18:18]Write to MH i2c: E2 02 01 C7 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 DA 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EF 02 00 35 04 06 00 39 EF E6 57 00 00 DE [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:19]Read from MH i2c: E2 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 03 00 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [17:18:19]RAPDU: 90 00 [17:18:19]wFMCommunicate OK [17:18:19]wFMCommunicate request_size=7 [17:18:19]MH_SAM_APDU [17:18:19]CAPDU: 80 0D 02 02 02 0E 13 [17:18:19]Write to MH i2c: E2 0A 00 C8 1C 80 0D 02 02 02 00 0E 13 00 00 83 [17:18:19]Write i2c OK [17:18:19]MH_I2C_Read... [17:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:19]Read from MH i2c: E2 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 03 00 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [17:18:19]RAPDU: 90 00 [17:18:19]wFMCommunicate OK [17:18:19]wFMCommunicate request_size=4 [17:18:19]MH_SAM_APDU [17:18:19]CAPDU: 80 0D 03 02 [17:18:19]Write to MH i2c: E2 08 00 C9 1C 80 0D 03 02 00 00 00 00 60 [17:18:19]Write i2c OK [17:18:19]MH_I2C_Read... [17:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:19]Read from MH i2c: E2 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 0B 00 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 0B 00 C9 1C 00 B1 03 8B 49 D3 66 36 E5 90 00 3D [17:18:19]RAPDU: B1 03 8B 49 D3 66 36 E5 90 00 [17:18:19]wFMCommunicate OK [17:18:19]SAM_PROTO_SignData done [17:18:19]FM_MakeSignedData done [17:18:19]CreateOFDProtocolMessage [17:18:19]wFMCommunicate request_size=4 [17:18:19]MH_SAM_APDU [17:18:19]CAPDU: 80 11 00 00 [17:18:19]Write to MH i2c: E2 08 00 CA 1C 80 11 00 00 00 00 00 00 60 [17:18:19]Write i2c OK [17:18:19]MH_I2C_Read... [17:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:19]Read from MH i2c: E2 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 17 00 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: E2 17 00 CA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [17:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:18:19]wFMCommunicate OK [17:18:19]CreateOFDProtocolMessage done [17:18:19]OFDSenderStorePacket 192336 [17:18:19]StoreOFDPacket docnum=192336 [17:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 76 D4 04 01 D3 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 DA 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EF 02 00 35 04 06 00 39 EF E6 57 0E 13 B1 03 8B 49 D3 66 36 E5 [17:18:19]CheckFolder [17:18:19]dirname=/storage/ofd_packets [17:18:19]CheckFolder done [17:18:19]ProducePacketName [17:18:19]name=ofd_packets/00192336 [17:18:19]NVStorageSaveData ofd_packets/00192336 [17:18:19]File name is /storage/ofd_packets/00192336 [17:18:19]Write 298 bytes [17:18:19]NVStorageSaveData done [17:18:19]OFDSenderStorePacket done [17:18:19]KKMCreateOFDPacket done [17:18:19]NVStorageSaveData kkm_last_timestamp [17:18:19]File name is /storage/kkm_last_timestamp [17:18:19]Write 4 bytes [17:18:19]NVStorageSaveData done [17:18:19]ExternCall_PrintAddStr [17:18:19]wPrintStart [17:18:19]Write to MH i2c: 01 00 00 CB 1C E7 [17:18:19]Write i2c OK [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: 01 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: 01 07 00 [17:18:19]MH_I2C_Read... [17:18:19]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 FF 0F FC [17:18:19]RasterBufferAndPrint [17:18:19]line Счет N : (1)31652 [17:18:19]line ИНН: 02508201610067 [17:18:19]line Контрольно-Кассовый Чек [17:18:19]line ПРОДАЖА [17:18:19]line ТРК (МРК, ГНК) : 11 [17:18:19]line Товар: 2710194210 [17:18:19]line ДТ-К-5 [17:18:19]line 26.250 * 76.20 [17:18:19]line = 2000.25 [17:18:19]line НДС 12% НСП 1% [17:18:19]line > о реализуемом товаре [17:18:19]line ОКРУГЛЕНИЕ: -0.25 [17:18:19]line ИТОГО: 2000.00 [17:18:19]line Внесено: 2000.00 [17:18:19]line СДАЧА: 0.00 [17:18:19]line НСП 1% : 17.70 [17:18:19]line НДС 12% : 212.42 [17:18:19]line Наличными: 2000.00 [17:18:19]line Безнал.: 0.00 [17:18:19]line Место: АЗС № 170 "Партнер Нефть" [17:18:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:18:19]line СНО: Общий режим [17:18:19]line Чек 368 27.10.2024 17:18 [17:18:19]line Смена: 542 ФФД: 1.0 [17:18:19]line ЗНМ: 0300000110 [17:18:19]line РНМ: 0000000000091776 [17:18:19]line Версия ККМ: 001 [17:18:19]line ФМ: 0000000000871754 [17:18:19]line ФД: 192336 [17:18:19]line ФПД: 63702524431891 [17:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192336&fm=63702524431891&tin=02508201610067®Number=0000000000091776&sum=200000 [17:18:19]OFD Sender: Processing packet 192336 [packets to send 75, broken 74] [17:18:19]ProducePacketName [17:18:19]name=ofd_packets/00192336 [17:18:19]OFD Sender: To server: pG, [17:18:19]CommunicateWithHost lk.salyk.kg:30040 [17:18:19]ConnectInit lk.salyk.kg [17:18:19]written 0, free lines is 4095 [17:18:19]Connected sock=10 [17:18:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 76 D4 04 01 D3 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 DA 75 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EF 02 00 35 04 06 00 39 EF E6 57 0E 13 B1 03 8B 49 D3 66 36 E5 [17:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E7 73 47 00 97 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 EF 02 00 F4 03 04 00 A1 1A 1E 67 B6 04 01 00 00 89 51 39 23 8A 1C 38 68 [17:18:19]CommunicateWithHost err = 0 [17:18:19]CheckOFDResponse [17:18:19]1017 (14) - 77093643461234 [17:18:19]1041 (16) - 0000000000871754 [17:18:19]1040 (4) - 192336 [17:18:19]1012 (4) - 27.10.2024 10:49 [17:18:19]1206 (1) - 0 [17:18:19]OFD Sender: Remove packet 192336 [17:18:19]ProducePacketName [17:18:19]name=ofd_packets/00192336 [17:18:19]NVStorageDeleteData [17:18:20]Write to MH i2c: 01 00 00 F6 1C 12 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: 01 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: 01 07 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 A7 0C CC [17:18:20]RasterBufferAndPrint [17:18:20]line [17:18:20]line [17:18:20]line [17:18:20]line [17:18:20]line [17:18:20]written 0, free lines is 3245 [17:18:20]MH_Cut [17:18:20]Write to MH i2c: D1 01 00 FD 1C 01 EB [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: D1 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: D1 01 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: D1 01 00 FD 1C 00 EA [17:18:20]Write to MH i2c: 01 00 00 FE 1C 1A [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]OFD Sender: No OFD packet to send [17:18:20]*** Cut start [17:18:20]*** Partial cut [17:18:20]*** CUTSNS_PIN = 1 [17:18:20]*** CUTSNS_PIN = 0 [17:18:21]*** Brake cut motor [17:18:21]Read from MH i2c: 01 [17:18:21]MH_I2C_Read... [17:18:21]*** Stop cut motor [17:18:21]*** Cut end [17:18:21]Read from MH i2c: 01 07 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: 01 07 00 FE 1C 00 00 00 00 00 FF 0F 2F [17:18:21]process_action close_receipt done [17:18:21]requested_data is exist [17:18:21]produce_requested_data [17:18:21]requested_item fm.sn is exist - process it [17:18:21]wFMCommunicate request_size=4 [17:18:21]MH_SAM_APDU [17:18:21]CAPDU: 80 11 00 00 [17:18:21]Write to MH i2c: E2 08 00 FF 1C 80 11 00 00 00 00 00 00 95 [17:18:21]Write i2c OK [17:18:21]MH_I2C_Read... [17:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:21]Read from MH i2c: E2 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 17 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 17 00 FF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [17:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:18:21]wFMCommunicate OK [17:18:21]requested_item fd.num is exist - process it [17:18:21]SAM_PROTO_GetFieldsCounters [17:18:21]wFMCommunicate request_size=4 [17:18:21]MH_SAM_APDU [17:18:21]CAPDU: 80 13 00 00 [17:18:21]Write to MH i2c: E2 08 00 00 1D 80 13 00 00 00 00 00 00 99 [17:18:21]Write i2c OK [17:18:21]MH_I2C_Read... [17:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:21]Read from MH i2c: E2 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 62 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 62 00 00 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:21]wFMCommunicate OK [17:18:21]SAM_PROTO_GetFieldsCounters done [17:18:21]requested_item shift.num is exist - process it [17:18:21]requested_item shift.opened is exist - process it [17:18:21]req_shift_opened [17:18:21]FM_GetShiftState [17:18:21]SAM_PROTO_GetShiftState [17:18:21]wFMCommunicate request_size=4 [17:18:21]MH_SAM_APDU [17:18:21]CAPDU: 80 13 01 00 [17:18:21]Write to MH i2c: E2 08 00 01 1D 80 13 01 00 00 00 00 00 9B [17:18:21]Write i2c OK [17:18:21]MH_I2C_Read... [17:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:21]Read from MH i2c: E2 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 0E 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 0E 00 01 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DC [17:18:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:18:21]wFMCommunicate OK [17:18:21]SAM_PROTO_GetShiftState done [17:18:21]FM_GetShiftState done [17:18:21]req_shift_opened done [17:18:21]requested_item shift.open_date is exist - process it [17:18:21]req_shift_open_date [17:18:21]req_shift_open_date done [17:18:21]produce_requested_data done [17:18:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192336,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:18:21]process_action_free close_receipt [17:18:21]json_value_free [17:18:21]json_value_free done [17:18:21]process_json_proto returns [17:18:21]Send response to host [17:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192336,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:18:21]free response buf [17:18:21]execute_script done [17:18:21]execute_script returns [17:18:21]free content buf [17:18:21]Sock 7.Close socket [17:18:21]Sock 7.Thread stoped [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:43]accept exits with 9 [17:19:43]New connection [17:19:43]New thread 3066936676 created [17:19:43]Thread 3067080036 joined [17:19:43]Waiting for new connection... [17:19:43] Sock 9.Parse request [17:19:43]Sock 9.Check first char [17:19:43]Sock 9.First char is OK [17:19:43]request: POST /json_proto HTTP/1.0 [17:19:43]Method: POST [17:19:43]URL: /json_proto [17:19:43]Method is POST - this is cgi request [17:19:43]url: /json_proto [17:19:43]query_string will be loaded in cgi processing [17:19:43]execute_cgi json_proto POST (null) [17:19:43]execute_cgi path=json_proto method=POST [17:19:43]POST find Content-Length [17:19:43]Host: 172.17.63.131:8080 [17:19:43]Content-Length: 676 [17:19:43]Content-Type: application/json [17:19:43] [17:19:43]POST finish read [17:19:43]Found Content-Length = 676 [17:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:43]execute_script... [17:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:43]POST & json_proto [17:19:43]process_json_proto [17:19:43]json parsed OK: [17:19:43]protocol is kg_v1.0 [17:19:43]action value=close_receipt [17:19:43]process_action close_receipt [17:19:43]cmd_close_receipt [17:19:43]MH_GetDate [17:19:43]Write to MH i2c: F0 00 00 02 1D 0E [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: F0 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: F0 09 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: F0 09 00 02 1D 00 2F 76 1E 67 22 05 6E 64 3A [17:19:43]GetLastDocTimeStamp 1730049498 [17:19:43]current date 1730049583 [17:19:43]FM_GetShiftState [17:19:43]SAM_PROTO_GetShiftState [17:19:43]wFMCommunicate request_size=4 [17:19:43]MH_SAM_APDU [17:19:43]CAPDU: 80 13 01 00 [17:19:43]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [17:19:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:19:43]wFMCommunicate OK [17:19:43]SAM_PROTO_GetShiftState done [17:19:43]FM_GetShiftState done [17:19:43]opened in 1729989159 [17:19:43]opened+sec_in_day 1730075559 [17:19:43]quantity*price = 20003 [17:19:43]sum+1 = 20004 [17:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 369 27.10.2024 17:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192337 ФПД: 81713186331947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192337&fm=81713186331947&tin=02508201610067®Number=0000000000091776&sum=20000 [17:19:44]StoreToDocumentArchive [17:19:44]shift 542 fd 192337 [17:19:44]save to /storage/0542/doc_00192337 [17:19:44]save last doc name /storage/0542/doc_00192337 to /storage/kkm_last_doc_name [17:19:44]save OK [17:19:44]Clear old archive folders... [17:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:44]tlvbuf is 002E1DE0 [17:19:44]SAM_PROTO_ClearQueue [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 09 00 00 [17:19:44]Write to MH i2c: E2 08 00 10 1D 80 09 00 00 00 00 00 00 9F [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 10 1D 00 90 00 A1 [17:19:44]RAPDU: 90 00 [17:19:44]wFMCommunicate OK [17:19:44]SAM_PROTO_ClearQueue done [17:19:44]KKMCreateOFDPacket [17:19:44]OFDProtocolAddRootSTLVToBuf [17:19:44]FM_MakeSignedData [17:19:44]FM_MakeSignedData [17:19:44]SAM_PROTO_SignData [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 0D 01 02 [17:19:44]Write to MH i2c: E2 08 00 11 1D 80 0D 01 02 00 00 00 00 A7 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 11 1D 00 90 00 A2 [17:19:44]RAPDU: 90 00 [17:19:44]wFMCommunicate OK [17:19:44]wFMCommunicate request_size=255 [17:19:44]MH_SAM_APDU [17:19: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 2F 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EF 02 00 35 04 06 00 4A [17:19:44]Write to MH i2c: E2 02 01 12 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 2F 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EF 02 00 35 04 06 00 4A 00 00 45 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [17:19:44]RAPDU: 90 00 [17:19:44]wFMCommunicate OK [17:19:44]wFMCommunicate request_size=10 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 0D 02 02 05 51 55 71 DD 2B [17:19:44]Write to MH i2c: E2 0D 00 13 1D 80 0D 02 02 05 00 51 55 71 DD 2B 00 00 D3 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [17:19:44]RAPDU: 90 00 [17:19:44]wFMCommunicate OK [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 0D 03 02 [17:19:44]Write to MH i2c: E2 08 00 14 1D 80 0D 03 02 00 00 00 00 AC [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0B 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0B 00 14 1D 00 76 A7 09 AD 16 9E 10 64 90 00 A8 [17:19:44]RAPDU: 76 A7 09 AD 16 9E 10 64 90 00 [17:19:44]wFMCommunicate OK [17:19:44]SAM_PROTO_SignData done [17:19:44]FM_MakeSignedData done [17:19:44]CreateOFDProtocolMessage [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 11 00 00 [17:19:44]Write to MH i2c: E2 08 00 15 1D 80 11 00 00 00 00 00 00 AC [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 17 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 17 00 15 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [17:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:19:44]wFMCommunicate OK [17:19:44]CreateOFDProtocolMessage done [17:19:44]OFDSenderStorePacket 192337 [17:19:44]StoreOFDPacket docnum=192337 [17:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 0D 07 01 98 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 2F 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EF 02 00 35 04 06 00 4A 51 55 71 DD 2B 76 A7 09 AD 16 9E 10 64 [17:19:44]CheckFolder [17:19:44]dirname=/storage/ofd_packets [17:19:44]CheckFolder done [17:19:44]ProducePacketName [17:19:44]name=ofd_packets/00192337 [17:19:44]NVStorageSaveData ofd_packets/00192337 [17:19:44]File name is /storage/ofd_packets/00192337 [17:19:44]Write 301 bytes [17:19:44]NVStorageSaveData done [17:19:44]OFDSenderStorePacket done [17:19:44]KKMCreateOFDPacket done [17:19:44]NVStorageSaveData kkm_last_timestamp [17:19:44]File name is /storage/kkm_last_timestamp [17:19:44]Write 4 bytes [17:19:44]NVStorageSaveData done [17:19:44]ExternCall_PrintAddStr [17:19:44]wPrintStart [17:19:44]Write to MH i2c: 01 00 00 16 1D 33 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: 01 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: 01 07 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 FF 0F 48 [17:19:44]RasterBufferAndPrint [17:19:44]line Счет N : (1)31654 [17:19:44]line ИНН: 02508201610067 [17:19:44]line Контрольно-Кассовый Чек [17:19:44]line ПРОДАЖА [17:19:44]line ТРК (МРК, ГНК) : 21 [17:19:44]line Товар: 2710124130 [17:19:44]line Аи-92-К-5 [17:19:44]line 2.990 * 66.90 [17:19:44]line = 200.03 [17:19:44]line НДС 12% НСП 1% [17:19:44]line > о реализуемом товаре [17:19:44]line ОКРУГЛЕНИЕ: -0.03 [17:19:44]line ИТОГО: 200.00 [17:19:44]line Внесено: 200.00 [17:19:44]line СДАЧА: 0.00 [17:19:44]line НСП 1% : 1.77 [17:19:44]line НДС 12% : 21.24 [17:19:44]line Наличными: 200.00 [17:19:44]line Безнал.: 0.00 [17:19:44]line Место: АЗС № 170 "Партнер Нефть" [17:19:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:19:44]line СНО: Общий режим [17:19:44]line Чек 369 27.10.2024 17:19 [17:19:44]line Смена: 542 ФФД: 1.0 [17:19:44]line ЗНМ: 0300000110 [17:19:44]line РНМ: 0000000000091776 [17:19:44]line Версия ККМ: 001 [17:19:44]line ФМ: 0000000000871754 [17:19:44]line ФД: 192337 [17:19:44]line ФПД: 81713186331947 [17:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192337&fm=81713186331947&tin=02508201610067®Number=0000000000091776&sum=20000 [17:19:45]OFD Sender: Processing packet 192337 [packets to send 75, broken 74] [17:19:45]ProducePacketName [17:19:45]name=ofd_packets/00192337 [17:19:45]OFD Sender: To server: pG, [17:19:45]CommunicateWithHost lk.salyk.kg:30040 [17:19:45]ConnectInit lk.salyk.kg [17:19:45]written 0, free lines is 4095 [17:19:45]Connected sock=10 [17:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE 0D 07 01 98 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 2F 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EF 02 00 35 04 06 00 4A 51 55 71 DD 2B 76 A7 09 AD 16 9E 10 64 [17:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 08 47 00 05 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 EF 02 00 F4 03 04 00 F6 1A 1E 67 B6 04 01 00 00 3A B7 7C CD D5 89 DC 57 [17:19:45]CommunicateWithHost err = 0 [17:19:45]CheckOFDResponse [17:19:45]1017 (14) - 77093643461234 [17:19:45]1041 (16) - 0000000000871754 [17:19:45]1040 (4) - 192337 [17:19:45]1012 (4) - 27.10.2024 10:50 [17:19:45]1206 (1) - 0 [17:19:45]OFD Sender: Remove packet 192337 [17:19:45]ProducePacketName [17:19:45]name=ofd_packets/00192337 [17:19:45]NVStorageDeleteData [17:19:45]Write to MH i2c: 01 00 00 41 1D 5E [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: 01 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: 01 07 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 9E 0C 0F [17:19:45]RasterBufferAndPrint [17:19:45]line [17:19:45]line [17:19:45]line [17:19:45]line [17:19:45]line [17:19:45]written 0, free lines is 3235 [17:19:45]MH_Cut [17:19:45]Write to MH i2c: D1 01 00 48 1D 01 37 [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: D1 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: D1 01 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: D1 01 00 48 1D 00 36 [17:19:45]Write to MH i2c: 01 00 00 49 1D 66 [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]OFD Sender: No OFD packet to send [17:19:46]*** Cut start [17:19:46]*** Partial cut [17:19:46]*** CUTSNS_PIN = 1 [17:19:46]*** CUTSNS_PIN = 0 [17:19:46]*** Brake cut motor [17:19:47]Read from MH i2c: 01 [17:19:47]MH_I2C_Read... [17:19:47]*** Stop cut motor [17:19:47]*** Cut end [17:19:47]Read from MH i2c: 01 07 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 FF 0F 7B [17:19:47]process_action close_receipt done [17:19:47]requested_data is exist [17:19:47]produce_requested_data [17:19:47]requested_item fm.sn is exist - process it [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 11 00 00 [17:19:47]Write to MH i2c: E2 08 00 4A 1D 80 11 00 00 00 00 00 00 E1 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 17 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 17 00 4A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [17:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:19:47]wFMCommunicate OK [17:19:47]requested_item fd.num is exist - process it [17:19:47]SAM_PROTO_GetFieldsCounters [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 13 00 00 [17:19:47]Write to MH i2c: E2 08 00 4B 1D 80 13 00 00 00 00 00 00 E4 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 62 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 62 00 4B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:47]wFMCommunicate OK [17:19:47]SAM_PROTO_GetFieldsCounters done [17:19:47]requested_item shift.num is exist - process it [17:19:47]requested_item shift.opened is exist - process it [17:19:47]req_shift_opened [17:19:47]FM_GetShiftState [17:19:47]SAM_PROTO_GetShiftState [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 13 01 00 [17:19:47]Write to MH i2c: E2 08 00 4C 1D 80 13 01 00 00 00 00 00 E6 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 0E 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 0E 00 4C 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 27 [17:19:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:19:47]wFMCommunicate OK [17:19:47]SAM_PROTO_GetShiftState done [17:19:47]FM_GetShiftState done [17:19:47]req_shift_opened done [17:19:47]requested_item shift.open_date is exist - process it [17:19:47]req_shift_open_date [17:19:47]req_shift_open_date done [17:19:47]produce_requested_data done [17:19:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192337,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:19:47]process_action_free close_receipt [17:19:47]json_value_free [17:19:47]json_value_free done [17:19:47]process_json_proto returns [17:19:47]Send response to host [17:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192337,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:19:47]free response buf [17:19:47]execute_script done [17:19:47]execute_script returns [17:19:47]free content buf [17:19:47]Sock 9.Close socket [17:19:47]Sock 9.Thread stoped [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:20:56]accept exits with 7 [17:20:56]New connection [17:20:56]New thread 3067080036 created [17:20:56]Thread 3066936676 joined [17:20:56]Waiting for new connection... [17:20:56] Sock 7.Parse request [17:20:56]Sock 7.Check first char [17:20:56]Sock 7.First char is OK [17:20:56]request: POST /json_proto HTTP/1.0 [17:20:56]Method: POST [17:20:56]URL: /json_proto [17:20:56]Method is POST - this is cgi request [17:20:56]url: /json_proto [17:20:56]query_string will be loaded in cgi processing [17:20:56]execute_cgi json_proto POST (null) [17:20:56]execute_cgi path=json_proto method=POST [17:20:56]POST find Content-Length [17:20:56]Host: 172.17.63.131:8080 [17:20:56]Content-Length: 676 [17:20:56]Content-Type: application/json [17:20:56] [17:20:56]POST finish read [17:20:56]Found Content-Length = 676 [17:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:56]execute_script... [17:20: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)31656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:56]POST & json_proto [17:20:56]process_json_proto [17:20:56]json parsed OK: [17:20:56]protocol is kg_v1.0 [17:20:56]action value=close_receipt [17:20:56]process_action close_receipt [17:20:56]cmd_close_receipt [17:20:56]MH_GetDate [17:20:56]Write to MH i2c: F0 00 00 4D 1D 59 [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: F0 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: F0 09 00 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: F0 09 00 4D 1D 00 79 76 1E 67 22 05 6E 64 CF [17:20:56]GetLastDocTimeStamp 1730049583 [17:20:56]current date 1730049657 [17:20:56]FM_GetShiftState [17:20:56]SAM_PROTO_GetShiftState [17:20:56]wFMCommunicate request_size=4 [17:20:56]MH_SAM_APDU [17:20:56]CAPDU: 80 13 01 00 [17:20:56]Write to MH i2c: E2 08 00 4E 1D 80 13 01 00 00 00 00 00 E8 [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:56]Read from MH i2c: E2 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 0E 00 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 0E 00 4E 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [17:20:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:20:56]wFMCommunicate OK [17:20:56]SAM_PROTO_GetShiftState done [17:20:56]FM_GetShiftState done [17:20:56]opened in 1729989159 [17:20:56]opened+sec_in_day 1730075559 [17:20:56]quantity*price = 50041 [17:20:56]sum+1 = 50042 [17:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 370 27.10.2024 17:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192338 ФПД: 70017447525262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192338&fm=70017447525262&tin=02508201610067®Number=0000000000091776&sum=50000 [17:20:57]StoreToDocumentArchive [17:20:57]shift 542 fd 192338 [17:20:57]save to /storage/0542/doc_00192338 [17:20:57]save last doc name /storage/0542/doc_00192338 to /storage/kkm_last_doc_name [17:20:57]save OK [17:20:57]Clear old archive folders... [17:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:57]tlvbuf is 0033E150 [17:20:57]SAM_PROTO_ClearQueue [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 09 00 00 [17:20:57]Write to MH i2c: E2 08 00 5B 1D 80 09 00 00 00 00 00 00 EA [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]SAM_PROTO_ClearQueue done [17:20:57]KKMCreateOFDPacket [17:20:57]OFDProtocolAddRootSTLVToBuf [17:20:57]FM_MakeSignedData [17:20:57]FM_MakeSignedData [17:20:57]SAM_PROTO_SignData [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 01 02 [17:20:57]Write to MH i2c: E2 08 00 5C 1D 80 0D 01 02 00 00 00 00 F2 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]wFMCommunicate request_size=255 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 79 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EF 02 00 35 04 06 00 3F [17:20:57]Write to MH i2c: E2 02 01 5D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 79 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EF 02 00 35 04 06 00 3F 00 00 0F [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]wFMCommunicate request_size=10 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 02 02 05 AE 35 16 7B 8E [17:20:57]Write to MH i2c: E2 0D 00 5E 1D 80 0D 02 02 05 00 AE 35 16 7B 8E 00 00 01 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 03 02 [17:20:57]Write to MH i2c: E2 08 00 5F 1D 80 0D 03 02 00 00 00 00 F7 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0B 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0B 00 5F 1D 00 C1 2E 12 DD 6F 73 F7 0F 90 00 BE [17:20:57]RAPDU: C1 2E 12 DD 6F 73 F7 0F 90 00 [17:20:57]wFMCommunicate OK [17:20:57]SAM_PROTO_SignData done [17:20:57]FM_MakeSignedData done [17:20:57]CreateOFDProtocolMessage [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 11 00 00 [17:20:57]Write to MH i2c: E2 08 00 60 1D 80 11 00 00 00 00 00 00 F7 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 17 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 17 00 60 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [17:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:20:58]wFMCommunicate OK [17:20:58]CreateOFDProtocolMessage done [17:20:58]OFDSenderStorePacket 192338 [17:20:58]StoreOFDPacket docnum=192338 [17:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 1D 07 01 0B 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 79 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EF 02 00 35 04 06 00 3F AE 35 16 7B 8E C1 2E 12 DD 6F 73 F7 0F [17:20:58]CheckFolder [17:20:58]dirname=/storage/ofd_packets [17:20:58]CheckFolder done [17:20:58]ProducePacketName [17:20:58]name=ofd_packets/00192338 [17:20:58]NVStorageSaveData ofd_packets/00192338 [17:20:58]File name is /storage/ofd_packets/00192338 [17:20:58]Write 301 bytes [17:20:58]NVStorageSaveData done [17:20:58]OFDSenderStorePacket done [17:20:58]KKMCreateOFDPacket done [17:20:58]NVStorageSaveData kkm_last_timestamp [17:20:58]File name is /storage/kkm_last_timestamp [17:20:58]Write 4 bytes [17:20:58]NVStorageSaveData done [17:20:58]ExternCall_PrintAddStr [17:20:58]wPrintStart [17:20:58]Write to MH i2c: 01 00 00 61 1D 7E [17:20:58]OFD Sender: Processing packet 192338 [packets to send 75, broken 74] [17:20:58]ProducePacketName [17:20:58]name=ofd_packets/00192338 [17:20:58]OFD Sender: To server: pG, [17:20:58]CommunicateWithHost lk.salyk.kg:30040 [17:20:58]ConnectInit lk.salyk.kg [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [17:20:58]RasterBufferAndPrint [17:20:58]line Счет N : (1)31656 [17:20:58]line ИНН: 02508201610067 [17:20:58]line Контрольно-Кассовый Чек [17:20:58]line ПРОДАЖА [17:20:58]line ТРК (МРК, ГНК) : 12 [17:20:58]line Товар: 2710124130 [17:20:58]line Аи-92-К-5 [17:20:58]line 7.480 * 66.90 [17:20:58]line = 500.41 [17:20:58]line НДС 12% НСП 1% [17:20:58]line > о реализуемом товаре [17:20:58]line ОКРУГЛЕНИЕ: -0.41 [17:20:58]line ИТОГО: 500.00 [17:20:58]line Внесено: 500.00 [17:20:58]line СДАЧА: 0.00 [17:20:58]line НСП 1% : 4.43 [17:20:58]line НДС 12% : 53.14 [17:20:58]line Наличными: 500.00 [17:20:58]line Безнал.: 0.00 [17:20:58]line Место: АЗС № 170 "Партнер Нефть" [17:20:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:20:58]line СНО: Общий режим [17:20:58]line Чек 370 27.10.2024 17:20 [17:20:58]line Смена: 542 ФФД: 1.0 [17:20:58]line ЗНМ: 0300000110 [17:20:58]line РНМ: 0000000000091776 [17:20:58]line Версия ККМ: 001 [17:20:58]line ФМ: 0000000000871754 [17:20:58]line ФД: 192338 [17:20:58]line ФПД: 70017447525262 [17:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192338&fm=70017447525262&tin=02508201610067®Number=0000000000091776&sum=50000 [17:20:58]Connected sock=10 [17:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 1D 07 01 0B 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 79 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EF 02 00 35 04 06 00 3F AE 35 16 7B 8E C1 2E 12 DD 6F 73 F7 0F [17:20:58]written 0, free lines is 4095 [17:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 1D 47 00 6E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 EF 02 00 F4 03 04 00 40 1B 1E 67 B6 04 01 00 00 BD 50 E0 3E 8C 79 37 C1 [17:20:58]CommunicateWithHost err = 0 [17:20:58]CheckOFDResponse [17:20:58]1017 (14) - 77093643461234 [17:20:58]1041 (16) - 0000000000871754 [17:20:58]1040 (4) - 192338 [17:20:58]1012 (4) - 27.10.2024 10:51 [17:20:58]1206 (1) - 0 [17:20:58]OFD Sender: Remove packet 192338 [17:20:58]ProducePacketName [17:20:58]name=ofd_packets/00192338 [17:20:58]NVStorageDeleteData [17:20:58]Write to MH i2c: 01 00 00 8C 1D A9 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 A7 0C 63 [17:20:58]RasterBufferAndPrint [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]written 0, free lines is 3245 [17:20:58]MH_Cut [17:20:58]Write to MH i2c: D1 01 00 93 1D 01 82 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 01 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 01 00 93 1D 00 81 [17:20:58]Write to MH i2c: 01 00 00 94 1D B1 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:59]OFD Sender: No OFD packet to send [17:20:59]*** Cut start [17:20:59]*** Partial cut [17:20:59]*** CUTSNS_PIN = 1 [17:20:59]*** CUTSNS_PIN = 0 [17:21:00]*** Brake cut motor [17:21:00]Read from MH i2c: 01 [17:21:00]MH_I2C_Read... [17:21:00]*** Stop cut motor [17:21:00]*** Cut end [17:21:00]Read from MH i2c: 01 07 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: 01 07 00 94 1D 00 00 00 00 00 FF 0F C6 [17:21:00]process_action close_receipt done [17:21:00]requested_data is exist [17:21:00]produce_requested_data [17:21:00]requested_item fm.sn is exist - process it [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 11 00 00 [17:21:00]Write to MH i2c: E2 08 00 95 1D 80 11 00 00 00 00 00 00 2C [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:00]Read from MH i2c: E2 17 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 17 00 95 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [17:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:21:00]wFMCommunicate OK [17:21:00]requested_item fd.num is exist - process it [17:21:00]SAM_PROTO_GetFieldsCounters [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 13 00 00 [17:21:00]Write to MH i2c: E2 08 00 96 1D 80 13 00 00 00 00 00 00 2F [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 62 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 62 00 96 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:00]wFMCommunicate OK [17:21:00]SAM_PROTO_GetFieldsCounters done [17:21:00]requested_item shift.num is exist - process it [17:21:00]requested_item shift.opened is exist - process it [17:21:00]req_shift_opened [17:21:00]FM_GetShiftState [17:21:00]SAM_PROTO_GetShiftState [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 13 01 00 [17:21:00]Write to MH i2c: E2 08 00 97 1D 80 13 01 00 00 00 00 00 31 [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 0E 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 0E 00 97 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 72 [17:21:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:21:00]wFMCommunicate OK [17:21:00]SAM_PROTO_GetShiftState done [17:21:00]FM_GetShiftState done [17:21:00]req_shift_opened done [17:21:00]requested_item shift.open_date is exist - process it [17:21:00]req_shift_open_date [17:21:00]req_shift_open_date done [17:21:00]produce_requested_data done [17:21:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192338,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:21:00]process_action_free close_receipt [17:21:00]json_value_free [17:21:00]json_value_free done [17:21:00]process_json_proto returns [17:21:00]Send response to host [17:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192338,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:21:00]free response buf [17:21:00]execute_script done [17:21:00]execute_script returns [17:21:00]free content buf [17:21:00]Sock 7.Close socket [17:21:00]Sock 7.Thread stoped [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:38]accept exits with 9 [17:22:38]New connection [17:22:38]New thread 3066936676 created [17:22:38]Thread 3067080036 joined [17:22:38]Waiting for new connection... [17:22:38] Sock 9.Parse request [17:22:38]Sock 9.Check first char [17:22:38]Sock 9.First char is OK [17:22:38]request: POST /json_proto HTTP/1.0 [17:22:38]Method: POST [17:22:38]URL: /json_proto [17:22:38]Method is POST - this is cgi request [17:22:38]url: /json_proto [17:22:38]query_string will be loaded in cgi processing [17:22:38]execute_cgi json_proto POST (null) [17:22:38]execute_cgi path=json_proto method=POST [17:22:38]POST find Content-Length [17:22:38]Host: 172.17.63.131:8080 [17:22:38]Content-Length: 678 [17:22:38]Content-Type: application/json [17:22:38] [17:22:38]POST finish read [17:22:38]Found Content-Length = 678 [17:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31655", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:38]execute_script... [17:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31655", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:38]POST & json_proto [17:22:38]process_json_proto [17:22:38]json parsed OK: [17:22:38]protocol is kg_v1.0 [17:22:38]action value=close_receipt [17:22:38]process_action close_receipt [17:22:38]cmd_close_receipt [17:22:38]MH_GetDate [17:22:38]Write to MH i2c: F0 00 00 98 1D A4 [17:22:38]Write i2c OK [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: F0 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: F0 09 00 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: F0 09 00 98 1D 00 DF 76 1E 67 22 05 6E 64 80 [17:22:38]GetLastDocTimeStamp 1730049657 [17:22:38]current date 1730049759 [17:22:38]FM_GetShiftState [17:22:38]SAM_PROTO_GetShiftState [17:22:38]wFMCommunicate request_size=4 [17:22:38]MH_SAM_APDU [17:22:38]CAPDU: 80 13 01 00 [17:22:38]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [17:22:38]Write i2c OK [17:22:38]MH_I2C_Read... [17:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:38]Read from MH i2c: E2 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 0E 00 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [17:22:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:22:38]wFMCommunicate OK [17:22:38]SAM_PROTO_GetShiftState done [17:22:38]FM_GetShiftState done [17:22:38]opened in 1729989159 [17:22:38]opened+sec_in_day 1730075559 [17:22:38]quantity*price = 300075 [17:22:38]sum+1 = 300077 [17:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 371 27.10.2024 17:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192339 ФПД: 179310526833246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192339&fm=179310526833246&tin=02508201610067®Number=0000000000091776&sum=300000 [17:22:39]StoreToDocumentArchive [17:22:39]shift 542 fd 192339 [17:22:39]save to /storage/0542/doc_00192339 [17:22:39]save last doc name /storage/0542/doc_00192339 to /storage/kkm_last_doc_name [17:22:39]save OK [17:22:39]Clear old archive folders... [17:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:39]tlvbuf is 002D0D50 [17:22:39]SAM_PROTO_ClearQueue [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 09 00 00 [17:22:39]Write to MH i2c: E2 08 00 A6 1D 80 09 00 00 00 00 00 00 35 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 A6 1D 00 90 00 37 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]SAM_PROTO_ClearQueue done [17:22:39]KKMCreateOFDPacket [17:22:39]OFDProtocolAddRootSTLVToBuf [17:22:39]FM_MakeSignedData [17:22:39]FM_MakeSignedData [17:22:39]SAM_PROTO_SignData [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 01 02 [17:22:39]Write to MH i2c: E2 08 00 A7 1D 80 0D 01 02 00 00 00 00 3D [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=255 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 DF 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EF 02 00 35 04 06 00 A3 14 FC 41 [17:22:39]Write to MH i2c: E2 02 01 A8 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 DF 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EF 02 00 35 04 06 00 A3 14 FC 41 00 00 A4 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=7 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 02 02 02 A2 5E [17:22:39]Write to MH i2c: E2 0A 00 A9 1D 80 0D 02 02 02 00 A2 5E 00 00 44 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [17:22:39]RAPDU: 90 00 [17:22:40]wFMCommunicate OK [17:22:40]wFMCommunicate request_size=4 [17:22:40]MH_SAM_APDU [17:22:40]CAPDU: 80 0D 03 02 [17:22:40]Write to MH i2c: E2 08 00 AA 1D 80 0D 03 02 00 00 00 00 42 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:40]Read from MH i2c: E2 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: E2 0B 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: E2 0B 00 AA 1D 00 B7 67 90 A2 91 A6 76 E7 90 00 27 [17:22:40]RAPDU: B7 67 90 A2 91 A6 76 E7 90 00 [17:22:40]wFMCommunicate OK [17:22:40]SAM_PROTO_SignData done [17:22:40]FM_MakeSignedData done [17:22:40]CreateOFDProtocolMessage [17:22:40]wFMCommunicate request_size=4 [17:22:40]MH_SAM_APDU [17:22:40]CAPDU: 80 11 00 00 [17:22:40]Write to MH i2c: E2 08 00 AB 1D 80 11 00 00 00 00 00 00 42 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:40]Read from MH i2c: E2 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: E2 17 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: E2 17 00 AB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [17:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:40]wFMCommunicate OK [17:22:40]CreateOFDProtocolMessage done [17:22:40]OFDSenderStorePacket 192339 [17:22:40]StoreOFDPacket docnum=192339 [17:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CD B4 04 01 8E EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 DF 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EF 02 00 35 04 06 00 A3 14 FC 41 A2 5E B7 67 90 A2 91 A6 76 E7 [17:22:40]CheckFolder [17:22:40]dirname=/storage/ofd_packets [17:22:40]CheckFolder done [17:22:40]ProducePacketName [17:22:40]name=ofd_packets/00192339 [17:22:40]NVStorageSaveData ofd_packets/00192339 [17:22:40]File name is /storage/ofd_packets/00192339 [17:22:40]Write 298 bytes [17:22:40]NVStorageSaveData done [17:22:40]OFDSenderStorePacket done [17:22:40]KKMCreateOFDPacket done [17:22:40]NVStorageSaveData kkm_last_timestamp [17:22:40]File name is /storage/kkm_last_timestamp [17:22:40]Write 4 bytes [17:22:40]NVStorageSaveData done [17:22:40]ExternCall_PrintAddStr [17:22:40]wPrintStart [17:22:40]Write to MH i2c: 01 00 00 AC 1D C9 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 FF 0F DE [17:22:40]RasterBufferAndPrint [17:22:40]line Счет N : (1)31655 [17:22:40]line ИНН: 02508201610067 [17:22:40]line Контрольно-Кассовый Чек [17:22:40]line ПРОДАЖА [17:22:40]line ТРК (МРК, ГНК) : 11 [17:22:40]line Товар: 2710194210 [17:22:40]line ДТ-К-5 [17:22:40]line 39.380 * 76.20 [17:22:40]line = 3000.76 [17:22:40]line НДС 12% НСП 1% [17:22:40]line > о реализуемом товаре [17:22:40]line ОКРУГЛЕНИЕ: -0.76 [17:22:40]line ИТОГО: 3000.00 [17:22:40]line Внесено: 3000.00 [17:22:40]line СДАЧА: 0.00 [17:22:40]line НСП 1% : 26.55 [17:22:40]line НДС 12% : 318.66 [17:22:40]line Наличными: 3000.00 [17:22:40]line Безнал.: 0.00 [17:22:40]line Место: АЗС № 170 "Партнер Нефть" [17:22:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:22:40]line СНО: Общий режим [17:22:40]line Чек 371 27.10.2024 17:22 [17:22:40]line Смена: 542 ФФД: 1.0 [17:22:40]line ЗНМ: 0300000110 [17:22:40]line РНМ: 0000000000091776 [17:22:40]line Версия ККМ: 001 [17:22:40]line ФМ: 0000000000871754 [17:22:40]line ФД: 192339 [17:22:40]line ФПД: 179310526833246 [17:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192339&fm=179310526833246&tin=02508201610067®Number=0000000000091776&sum=300000 [17:22:40]OFD Sender: Processing packet 192339 [packets to send 75, broken 74] [17:22:40]ProducePacketName [17:22:40]name=ofd_packets/00192339 [17:22:40]OFD Sender: To server: pG, [17:22:40]CommunicateWithHost lk.salyk.kg:30040 [17:22:40]ConnectInit lk.salyk.kg [17:22:40]written 0, free lines is 4095 [17:22:40]Write to MH i2c: 01 00 00 D7 1D F4 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 A7 0C AE [17:22:40]RasterBufferAndPrint [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]written 0, free lines is 3242 [17:22:40]MH_Cut [17:22:40]Write to MH i2c: D1 01 00 DE 1D 01 CD [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 DE 1D 00 CC [17:22:40]Write to MH i2c: 01 00 00 DF 1D FC [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:41]*** Cut start [17:22:41]*** Partial cut [17:22:41]*** CUTSNS_PIN = 1 [17:22:41]*** CUTSNS_PIN = 0 [17:22:42]*** Brake cut motor [17:22:42]Read from MH i2c: 01 [17:22:42]MH_I2C_Read... [17:22:42]*** Stop cut motor [17:22:42]*** Cut end [17:22:42]Read from MH i2c: 01 07 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 FF 0F 11 [17:22:42]process_action close_receipt done [17:22:42]requested_data is exist [17:22:42]produce_requested_data [17:22:42]requested_item fm.sn is exist - process it [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 11 00 00 [17:22:42]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 17 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [17:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:42]wFMCommunicate OK [17:22:42]requested_item fd.num is exist - process it [17:22:42]SAM_PROTO_GetFieldsCounters [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 13 00 00 [17:22:42]Write to MH i2c: E2 08 00 E1 1D 80 13 00 00 00 00 00 00 7A [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 62 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 62 00 E1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:22:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:42]wFMCommunicate OK [17:22:42]SAM_PROTO_GetFieldsCounters done [17:22:42]requested_item shift.num is exist - process it [17:22:42]requested_item shift.opened is exist - process it [17:22:42]req_shift_opened [17:22:42]FM_GetShiftState [17:22:42]SAM_PROTO_GetShiftState [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 13 01 00 [17:22:42]Write to MH i2c: E2 08 00 E2 1D 80 13 01 00 00 00 00 00 7C [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 E2 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [17:22:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:22:42]wFMCommunicate OK [17:22:42]SAM_PROTO_GetShiftState done [17:22:42]FM_GetShiftState done [17:22:42]req_shift_opened done [17:22:42]requested_item shift.open_date is exist - process it [17:22:42]req_shift_open_date [17:22:42]req_shift_open_date done [17:22:42]produce_requested_data done [17:22:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192339,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:22:42]process_action_free close_receipt [17:22:42]json_value_free [17:22:42]json_value_free done [17:22:42]process_json_proto returns [17:22:42]Send response to host [17:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192339,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:22:42]free response buf [17:22:42]execute_script done [17:22:42]execute_script returns [17:22:42]free content buf [17:22:42]Sock 9.Close socket [17:22:42]Sock 9.Thread stoped [17:22:46]accept exits with 7 [17:22:46]New connection [17:22:46]New thread 3067080036 created [17:22:46]Thread 3066936676 joined [17:22:46]Waiting for new connection... [17:22:46] Sock 7.Parse request [17:22:46]Sock 7.Check first char [17:22:46]Sock 7.First char is OK [17:22:46]request: POST /json_proto HTTP/1.0 [17:22:46]Method: POST [17:22:46]URL: /json_proto [17:22:46]Method is POST - this is cgi request [17:22:46]url: /json_proto [17:22:46]query_string will be loaded in cgi processing [17:22:46]execute_cgi json_proto POST (null) [17:22:46]execute_cgi path=json_proto method=POST [17:22:46]POST find Content-Length [17:22:46]Host: 172.17.63.131:8080 [17:22:46]Content-Length: 677 [17:22:46]Content-Type: application/json [17:22:46] [17:22:46]POST finish read [17:22:46]Found Content-Length = 677 [17:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:46]execute_script... [17:22: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)31657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:46]POST & json_proto [17:22:46]process_json_proto [17:22:46]json parsed OK: [17:22:46]protocol is kg_v1.0 [17:22:46]action value=close_receipt [17:22:46]process_action close_receipt [17:22:46]cmd_close_receipt [17:22:46]MH_GetDate [17:22:46]Write to MH i2c: F0 00 00 E3 1D EF [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: F0 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: F0 09 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: F0 09 00 E3 1D 00 E7 76 1E 67 22 05 6E 64 D3 [17:22:46]GetLastDocTimeStamp 1730049759 [17:22:46]current date 1730049767 [17:22:46]FM_GetShiftState [17:22:46]SAM_PROTO_GetShiftState [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 13 01 00 [17:22:46]Write to MH i2c: E2 08 00 E4 1D 80 13 01 00 00 00 00 00 7E [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0E 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0E 00 E4 1D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [17:22:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:22:46]wFMCommunicate OK [17:22:46]SAM_PROTO_GetShiftState done [17:22:46]FM_GetShiftState done [17:22:46]opened in 1729989159 [17:22:46]opened+sec_in_day 1730075559 [17:22:46]quantity*price = 70044 [17:22:46]sum+1 = 70045 [17:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 372 27.10.2024 17:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192340 ФПД: 125410234388705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192340&fm=125410234388705&tin=02508201610067®Number=0000000000091776&sum=70000 [17:22:47]StoreToDocumentArchive [17:22:47]shift 542 fd 192340 [17:22:47]save to /storage/0542/doc_00192340 [17:22:47]save last doc name /storage/0542/doc_00192340 to /storage/kkm_last_doc_name [17:22:47]save OK [17:22:47]Clear old archive folders... [17:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:47]tlvbuf is 00321B90 [17:22:47]SAM_PROTO_ClearQueue [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 09 00 00 [17:22:47]Write to MH i2c: E2 08 00 F1 1D 80 09 00 00 00 00 00 00 80 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]SAM_PROTO_ClearQueue done [17:22:47]KKMCreateOFDPacket [17:22:47]OFDProtocolAddRootSTLVToBuf [17:22:47]FM_MakeSignedData [17:22:47]FM_MakeSignedData [17:22:47]SAM_PROTO_SignData [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 01 02 [17:22:47]Write to MH i2c: E2 08 00 F2 1D 80 0D 01 02 00 00 00 00 88 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [17:22:47]RAPDU: 90 00 [17:22:47]wFMCommunicate OK [17:22:47]wFMCommunicate request_size=255 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 E7 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EF 02 00 35 04 06 00 72 [17:22:47]Write to MH i2c: E2 02 01 F3 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 E7 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EF 02 00 35 04 06 00 72 00 00 5A [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:48]Read from MH i2c: E2 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 03 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [17:22:48]RAPDU: 90 00 [17:22:48]wFMCommunicate OK [17:22:48]wFMCommunicate request_size=10 [17:22:48]MH_SAM_APDU [17:22:48]CAPDU: 80 0D 02 02 05 0F 58 78 D0 E1 [17:22:48]Write to MH i2c: E2 0D 00 F4 1D 80 0D 02 02 05 00 0F 58 78 D0 E1 00 00 25 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:48]Read from MH i2c: E2 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 03 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [17:22:48]RAPDU: 90 00 [17:22:48]wFMCommunicate OK [17:22:48]wFMCommunicate request_size=4 [17:22:48]MH_SAM_APDU [17:22:48]CAPDU: 80 0D 03 02 [17:22:48]Write to MH i2c: E2 08 00 F5 1D 80 0D 03 02 00 00 00 00 8D [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:48]Read from MH i2c: E2 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 0B 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 0B 00 F5 1D 00 DA D9 9D FC E6 37 66 D5 90 00 32 [17:22:48]RAPDU: DA D9 9D FC E6 37 66 D5 90 00 [17:22:48]wFMCommunicate OK [17:22:48]SAM_PROTO_SignData done [17:22:48]FM_MakeSignedData done [17:22:48]CreateOFDProtocolMessage [17:22:48]wFMCommunicate request_size=4 [17:22:48]MH_SAM_APDU [17:22:48]CAPDU: 80 11 00 00 [17:22:48]Write to MH i2c: E2 08 00 F6 1D 80 11 00 00 00 00 00 00 8D [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:48]Read from MH i2c: E2 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 17 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 17 00 F6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [17:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:48]wFMCommunicate OK [17:22:48]CreateOFDProtocolMessage done [17:22:48]OFDSenderStorePacket 192340 [17:22:48]StoreOFDPacket docnum=192340 [17:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 54 07 01 87 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 E7 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EF 02 00 35 04 06 00 72 0F 58 78 D0 E1 DA D9 9D FC E6 37 66 D5 [17:22:48]CheckFolder [17:22:48]dirname=/storage/ofd_packets [17:22:48]CheckFolder done [17:22:48]ProducePacketName [17:22:48]name=ofd_packets/00192340 [17:22:48]NVStorageSaveData ofd_packets/00192340 [17:22:48]File name is /storage/ofd_packets/00192340 [17:22:48]Write 301 bytes [17:22:48]NVStorageSaveData done [17:22:48]OFDSenderStorePacket done [17:22:48]KKMCreateOFDPacket done [17:22:48]NVStorageSaveData kkm_last_timestamp [17:22:48]File name is /storage/kkm_last_timestamp [17:22:48]Write 4 bytes [17:22:48]NVStorageSaveData done [17:22:48]ExternCall_PrintAddStr [17:22:48]wPrintStart [17:22:48]Write to MH i2c: 01 00 00 F7 1D 14 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 FF 0F 29 [17:22:48]RasterBufferAndPrint [17:22:48]line Счет N : (1)31657 [17:22:48]line ИНН: 02508201610067 [17:22:48]line Контрольно-Кассовый Чек [17:22:48]line ПРОДАЖА [17:22:48]line ТРК (МРК, ГНК) : 21 [17:22:48]line Товар: 2710124130 [17:22:48]line Аи-92-К-5 [17:22:48]line 10.470 * 66.90 [17:22:48]line = 700.44 [17:22:48]line НДС 12% НСП 1% [17:22:48]line > о реализуемом товаре [17:22:48]line ОКРУГЛЕНИЕ: -0.44 [17:22:48]line ИТОГО: 700.00 [17:22:48]line Внесено: 700.00 [17:22:48]line СДАЧА: 0.00 [17:22:48]line НСП 1% : 6.20 [17:22:48]line НДС 12% : 74.38 [17:22:48]line Наличными: 700.00 [17:22:48]line Безнал.: 0.00 [17:22:48]line Место: АЗС № 170 "Партнер Нефть" [17:22:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:22:48]line СНО: Общий режим [17:22:48]line Чек 372 27.10.2024 17:22 [17:22:48]line Смена: 542 ФФД: 1.0 [17:22:48]line ЗНМ: 0300000110 [17:22:48]line РНМ: 0000000000091776 [17:22:48]line Версия ККМ: 001 [17:22:48]line ФМ: 0000000000871754 [17:22:48]line ФД: 192340 [17:22:48]line ФПД: 125410234388705 [17:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192340&fm=125410234388705&tin=02508201610067®Number=0000000000091776&sum=70000 [17:22:48]written 0, free lines is 4095 [17:22:48]Write to MH i2c: 01 00 00 22 1E 40 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 A5 0C F8 [17:22:48]RasterBufferAndPrint [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]line [17:22:48]written 0, free lines is 3242 [17:22:48]MH_Cut [17:22:48]Write to MH i2c: D1 01 00 29 1E 01 19 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 01 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: D1 01 00 29 1E 00 18 [17:22:48]Write to MH i2c: 01 00 00 2A 1E 48 [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:49]*** Cut start [17:22:49]*** Partial cut [17:22:49]*** CUTSNS_PIN = 1 [17:22:49]*** CUTSNS_PIN = 0 [17:22:49]*** Brake cut motor [17:22:50]Read from MH i2c: 01 [17:22:50]MH_I2C_Read... [17:22:50]*** Stop cut motor [17:22:50]*** Cut end [17:22:50]Read from MH i2c: 01 07 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 FF 0F 5D [17:22:50]process_action close_receipt done [17:22:50]requested_data is exist [17:22:50]produce_requested_data [17:22:50]requested_item fm.sn is exist - process it [17:22:50]wFMCommunicate request_size=4 [17:22:50]MH_SAM_APDU [17:22:50]CAPDU: 80 11 00 00 [17:22:50]Write to MH i2c: E2 08 00 2B 1E 80 11 00 00 00 00 00 00 C3 [17:22:50]Write i2c OK [17:22:50]MH_I2C_Read... [17:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:50]Read from MH i2c: E2 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 17 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 17 00 2B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [17:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:50]wFMCommunicate OK [17:22:50]requested_item fd.num is exist - process it [17:22:50]SAM_PROTO_GetFieldsCounters [17:22:50]wFMCommunicate request_size=4 [17:22:50]MH_SAM_APDU [17:22:50]CAPDU: 80 13 00 00 [17:22:50]Write to MH i2c: E2 08 00 2C 1E 80 13 00 00 00 00 00 00 C6 [17:22:50]Write i2c OK [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 [17:22:50]MH_I2C_Read... [17:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:50]Read from MH i2c: E2 62 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 62 00 2C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [17:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:50]wFMCommunicate OK [17:22:50]SAM_PROTO_GetFieldsCounters done [17:22:50]requested_item shift.num is exist - process it [17:22:50]requested_item shift.opened is exist - process it [17:22:50]req_shift_opened [17:22:50]FM_GetShiftState [17:22:50]SAM_PROTO_GetShiftState [17:22:50]wFMCommunicate request_size=4 [17:22:50]MH_SAM_APDU [17:22:50]CAPDU: 80 13 01 00 [17:22:50]Write to MH i2c: E2 08 00 2D 1E 80 13 01 00 00 00 00 00 C8 [17:22:50]Write i2c OK [17:22:50]MH_I2C_Read... [17:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:50]Read from MH i2c: E2 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 0E 00 [17:22:50]MH_I2C_Read... [17:22:50]Read from MH i2c: E2 0E 00 2D 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 09 [17:22:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:22:50]wFMCommunicate OK [17:22:50]SAM_PROTO_GetShiftState done [17:22:50]FM_GetShiftState done [17:22:50]req_shift_opened done [17:22:50]requested_item shift.open_date is exist - process it [17:22:50]req_shift_open_date [17:22:50]req_shift_open_date done [17:22:50]produce_requested_data done [17:22:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192340,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:22:50]process_action_free close_receipt [17:22:50]json_value_free [17:22:50]json_value_free done [17:22:50]process_json_proto returns [17:22:50]Send response to host [17:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192340,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:22:50]free response buf [17:22:50]execute_script done [17:22:50]execute_script returns [17:22:50]free content buf [17:22:50]Sock 7.Close socket [17:22:50]Sock 7.Thread stoped [17:23:15]accept exits with 9 [17:23:15]New connection [17:23:15]New thread 3066936676 created [17:23:15]Thread 3067080036 joined [17:23:15]Waiting for new connection... [17:23:15] Sock 9.Parse request [17:23:15]Sock 9.Check first char [17:23:15]Sock 9.First char is OK [17:23:15]request: POST /json_proto HTTP/1.0 [17:23:15]Method: POST [17:23:15]URL: /json_proto [17:23:15]Method is POST - this is cgi request [17:23:15]url: /json_proto [17:23:15]query_string will be loaded in cgi processing [17:23:15]execute_cgi json_proto POST (null) [17:23:15]execute_cgi path=json_proto method=POST [17:23:15]POST find Content-Length [17:23:15]Host: 172.17.63.131:8080 [17:23:15]Content-Length: 676 [17:23:15]Content-Type: application/json [17:23:15] [17:23:15]POST finish read [17:23:15]Found Content-Length = 676 [17:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:15]execute_script... [17:23: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)31658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:15]POST & json_proto [17:23:15]process_json_proto [17:23:15]json parsed OK: [17:23:15]protocol is kg_v1.0 [17:23:15]action value=close_receipt [17:23:15]process_action close_receipt [17:23:15]cmd_close_receipt [17:23:15]MH_GetDate [17:23:15]Write to MH i2c: F0 00 00 2E 1E 3B [17:23:15]Write i2c OK [17:23:15]MH_I2C_Read... [17:23:15]Read from MH i2c: F0 [17:23:15]MH_I2C_Read... [17:23:15]Read from MH i2c: F0 09 00 [17:23:15]MH_I2C_Read... [17:23:15]Read from MH i2c: F0 09 00 2E 1E 00 04 77 1E 67 22 05 6E 64 3D [17:23:15]GetLastDocTimeStamp 1730049767 [17:23:15]current date 1730049796 [17:23:15]FM_GetShiftState [17:23:15]SAM_PROTO_GetShiftState [17:23:15]wFMCommunicate request_size=4 [17:23:15]MH_SAM_APDU [17:23:15]CAPDU: 80 13 01 00 [17:23:15]Write to MH i2c: E2 08 00 2F 1E 80 13 01 00 00 00 00 00 CA [17:23:15]Write i2c OK [17:23:15]MH_I2C_Read... [17:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:15]Read from MH i2c: E2 [17:23:15]MH_I2C_Read... [17:23:15]Read from MH i2c: E2 0E 00 [17:23:15]MH_I2C_Read... [17:23:15]Read from MH i2c: E2 0E 00 2F 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [17:23:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:23:15]wFMCommunicate OK [17:23:15]SAM_PROTO_GetShiftState done [17:23:15]FM_GetShiftState done [17:23:15]opened in 1729989159 [17:23:15]opened+sec_in_day 1730075559 [17:23:15]quantity*price = 30038 [17:23:15]sum+1 = 30039 [17:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 373 27.10.2024 17:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192341 ФПД: 166282965065530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172316&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192341&fm=166282965065530&tin=02508201610067®Number=0000000000091776&sum=30000 [17:23:16]StoreToDocumentArchive [17:23:16]shift 542 fd 192341 [17:23:16]save to /storage/0542/doc_00192341 [17:23:16]save last doc name /storage/0542/doc_00192341 to /storage/kkm_last_doc_name [17:23:16]save OK [17:23:16]Clear old archive folders... [17:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:16]tlvbuf is 0037AB20 [17:23:16]SAM_PROTO_ClearQueue [17:23:16]wFMCommunicate request_size=4 [17:23:16]MH_SAM_APDU [17:23:16]CAPDU: 80 09 00 00 [17:23:16]Write to MH i2c: E2 08 00 3C 1E 80 09 00 00 00 00 00 00 CC [17:23:16]Write i2c OK [17:23:16]MH_I2C_Read... [17:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:16]Read from MH i2c: E2 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [17:23:16]RAPDU: 90 00 [17:23:16]wFMCommunicate OK [17:23:16]SAM_PROTO_ClearQueue done [17:23:16]KKMCreateOFDPacket [17:23:16]OFDProtocolAddRootSTLVToBuf [17:23:16]FM_MakeSignedData [17:23:16]FM_MakeSignedData [17:23:16]SAM_PROTO_SignData [17:23:16]wFMCommunicate request_size=4 [17:23:16]MH_SAM_APDU [17:23:16]CAPDU: 80 0D 01 02 [17:23:16]Write to MH i2c: E2 08 00 3D 1E 80 0D 01 02 00 00 00 00 D4 [17:23:16]Write i2c OK [17:23:16]MH_I2C_Read... [17:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:16]Read from MH i2c: E2 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [17:23:16]RAPDU: 90 00 [17:23:16]wFMCommunicate OK [17:23:16]wFMCommunicate request_size=255 [17:23:16]MH_SAM_APDU [17:23:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 04 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EF 02 00 35 04 06 00 97 [17:23:16]Write to MH i2c: E2 02 01 3E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 04 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EF 02 00 35 04 06 00 97 00 00 CF [17:23:16]Write i2c OK [17:23:16]MH_I2C_Read... [17:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:16]Read from MH i2c: E2 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [17:23:16]RAPDU: 90 00 [17:23:16]wFMCommunicate OK [17:23:16]wFMCommunicate request_size=10 [17:23:16]MH_SAM_APDU [17:23:16]CAPDU: 80 0D 02 02 05 3B C5 10 9F 3A [17:23:16]Write to MH i2c: E2 0D 00 3F 1E 80 0D 02 02 05 00 3B C5 10 9F 3A 00 00 CA [17:23:16]Write i2c OK [17:23:16]MH_I2C_Read... [17:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:16]Read from MH i2c: E2 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 [17:23:16]MH_I2C_Read... [17:23:16]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [17:23:16]RAPDU: 90 00 [17:23:16]wFMCommunicate OK [17:23:16]wFMCommunicate request_size=4 [17:23:16]MH_SAM_APDU [17:23:16]CAPDU: 80 0D 03 02 [17:23:16]Write to MH i2c: E2 08 00 40 1E 80 0D 03 02 00 00 00 00 D9 [17:23:16]Write i2c OK [17:23:16]MH_I2C_Read... [17:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:17]Read from MH i2c: E2 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: E2 0B 00 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: E2 0B 00 40 1E 00 08 7C 6E EB E3 9D 20 A4 90 00 FB [17:23:17]RAPDU: 08 7C 6E EB E3 9D 20 A4 90 00 [17:23:17]wFMCommunicate OK [17:23:17]SAM_PROTO_SignData done [17:23:17]FM_MakeSignedData done [17:23:17]CreateOFDProtocolMessage [17:23:17]wFMCommunicate request_size=4 [17:23:17]MH_SAM_APDU [17:23:17]CAPDU: 80 11 00 00 [17:23:17]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [17:23:17]Write i2c OK [17:23:17]MH_I2C_Read... [17:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:17]Read from MH i2c: E2 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: E2 17 00 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [17:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:23:17]wFMCommunicate OK [17:23:17]CreateOFDProtocolMessage done [17:23:17]OFDSenderStorePacket 192341 [17:23:17]StoreOFDPacket docnum=192341 [17:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 6D 07 01 0E 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 04 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EF 02 00 35 04 06 00 97 3B C5 10 9F 3A 08 7C 6E EB E3 9D 20 A4 [17:23:17]CheckFolder [17:23:17]dirname=/storage/ofd_packets [17:23:17]CheckFolder done [17:23:17]ProducePacketName [17:23:17]name=ofd_packets/00192341 [17:23:17]NVStorageSaveData ofd_packets/00192341 [17:23:17]File name is /storage/ofd_packets/00192341 [17:23:17]Write 301 bytes [17:23:17]NVStorageSaveData done [17:23:17]OFDSenderStorePacket done [17:23:17]KKMCreateOFDPacket done [17:23:17]NVStorageSaveData kkm_last_timestamp [17:23:17]File name is /storage/kkm_last_timestamp [17:23:17]Write 4 bytes [17:23:17]NVStorageSaveData done [17:23:17]ExternCall_PrintAddStr [17:23:17]wPrintStart [17:23:17]Write to MH i2c: 01 00 00 42 1E 60 [17:23:17]Write i2c OK [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 07 00 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [17:23:17]RasterBufferAndPrint [17:23:17]line Счет N : (1)31658 [17:23:17]line ИНН: 02508201610067 [17:23:17]line Контрольно-Кассовый Чек [17:23:17]line ПРОДАЖА [17:23:17]line ТРК (МРК, ГНК) : 21 [17:23:17]line Товар: 2710124130 [17:23:17]line Аи-92-К-5 [17:23:17]line 4.490 * 66.90 [17:23:17]line = 300.38 [17:23:17]line НДС 12% НСП 1% [17:23:17]line > о реализуемом товаре [17:23:17]line ОКРУГЛЕНИЕ: -0.38 [17:23:17]line ИТОГО: 300.00 [17:23:17]line Внесено: 300.00 [17:23:17]line СДАЧА: 0.00 [17:23:17]line НСП 1% : 2.66 [17:23:17]line НДС 12% : 31.90 [17:23:17]line Наличными: 300.00 [17:23:17]line Безнал.: 0.00 [17:23:17]line Место: АЗС № 170 "Партнер Нефть" [17:23:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:23:17]line СНО: Общий режим [17:23:17]line Чек 373 27.10.2024 17:23 [17:23:17]line Смена: 542 ФФД: 1.0 [17:23:17]line ЗНМ: 0300000110 [17:23:17]line РНМ: 0000000000091776 [17:23:17]line Версия ККМ: 001 [17:23:17]line ФМ: 0000000000871754 [17:23:17]line ФД: 192341 [17:23:17]line ФПД: 166282965065530 [17:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172316&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192341&fm=166282965065530&tin=02508201610067®Number=0000000000091776&sum=30000 [17:23:17]written 0, free lines is 4095 [17:23:17]Write to MH i2c: 01 00 00 6D 1E 8B [17:23:17]Write i2c OK [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 07 00 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 A7 0C 45 [17:23:17]RasterBufferAndPrint [17:23:17]line [17:23:17]line [17:23:17]line [17:23:17]line [17:23:17]line [17:23:17]written 0, free lines is 3242 [17:23:17]MH_Cut [17:23:17]Write to MH i2c: D1 01 00 74 1E 01 64 [17:23:17]Write i2c OK [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: D1 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: D1 01 00 [17:23:17]MH_I2C_Read... [17:23:17]Read from MH i2c: D1 01 00 74 1E 00 63 [17:23:17]Write to MH i2c: 01 00 00 75 1E 93 [17:23:17]Write i2c OK [17:23:17]MH_I2C_Read... [17:23:18]int [17:23:18]*** FLAG_PRN_PAP2 set [17:23:18]*** Cut start [17:23:18]*** Partial cut [17:23:18]*** CUTSNS_PIN = 1 [17:23:18]*** CUTSNS_PIN = 0 [17:23:18]*** Brake cut motor [17:23:18]Read from MH i2c: 01 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: 01 *** Stop cut motor [17:23:18]07 00 [17:23:18]*** Cut end [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: 01 07 00 75 1E 00 02 00 00 00 FF 0F AA [17:23:18]process_action close_receipt done [17:23:18]requested_data is exist [17:23:18]produce_requested_data [17:23:18]requested_item fm.sn is exist - process it [17:23:18]wFMCommunicate request_size=4 [17:23:18]MH_SAM_APDU [17:23:18]CAPDU: 80 11 00 00 [17:23:18]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [17:23:18]Write i2c OK [17:23:18]MH_I2C_Read... [17:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:18]Read from MH i2c: E2 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 17 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 17 00 76 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [17:23:18]Write to MH i2c: RAPDU: 01 11 00 04 10 00 00 77 30 1E 30 95 30 [17:23:18]30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:23:18]wFMCommunicate OK [17:23:18]requested_item fd.num is exist - process it [17:23:18]SAM_PROTO_GetFieldsCounters [17:23:18]wFMCommunicate request_size=4 [17:23:18]Write i2c OK [17:23:18]MH_SAM_APDU [17:23:18]MH_I2C_Read... [17:23:18]CAPDU: 80 Read from MH i2c: 13 01 00 [17:23:18]00 MH_I2C_Read... [17:23:18] [17:23:18]Read from MH i2c: 01 07 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: 01 07 00 77 1E 00 02 00 00 00 FF 0F AC [17:23:18]Write to MH i2c: state=0 [17:23:18]E2 Cover opened [17:23:18]08 00 78 1E 80 13 00 00 00 00 00 00 12 [17:23:18]Write i2c OK [17:23:18]MH_I2C_Read... [17:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:18]Read from MH i2c: E2 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 62 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 62 00 78 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:18]wFMCommunicate OK [17:23:18]SAM_PROTO_GetFieldsCounters done [17:23:18]requested_item shift.num is exist - process it [17:23:18]requested_item shift.opened is exist - process it [17:23:18]req_shift_opened [17:23:18]FM_GetShiftState [17:23:18]SAM_PROTO_GetShiftState [17:23:18]wFMCommunicate request_size=4 [17:23:18]MH_SAM_APDU [17:23:18]CAPDU: 80 13 01 00 [17:23:18]Write to MH i2c: E2 08 00 79 1E 80 13 01 00 00 00 00 00 14 [17:23:18]Write i2c OK [17:23:18]MH_I2C_Read... [17:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:18]Read from MH i2c: E2 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 0E 00 [17:23:18]MH_I2C_Read... [17:23:18]Read from MH i2c: E2 0E 00 79 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [17:23:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:23:18]wFMCommunicate OK [17:23:18]SAM_PROTO_GetShiftState done [17:23:18]FM_GetShiftState done [17:23:18]req_shift_opened done [17:23:18]requested_item shift.open_date is exist - process it [17:23:18]req_shift_open_date [17:23:18]req_shift_open_date done [17:23:18]produce_requested_data done [17:23:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192341,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:23:18]process_action_free close_receipt [17:23:18]json_value_free [17:23:18]json_value_free done [17:23:18]process_json_proto returns [17:23:18]Send response to host [17:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192341,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:23:18]free response buf [17:23:18]execute_script done [17:23:18]execute_script returns [17:23:18]free content buf [17:23:18]Sock 9.Close socket [17:23:18]Sock 9.Thread stoped [17:23:23]Write to MH i2c: 01 00 00 7A 1E 98 [17:23:23]Write i2c OK [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 [17:23:23]MH_I2C_Read... [17:23:23]Read from MH i2c: 01 07 00 7A 1E 00 02 00 00 00 FF 0F AF [17:23:23]state=3 [17:23:23]Cover opened [17:23:28]Write to MH i2c: 01 00 00 7B 1E 99 [17:23:28]Write i2c OK [17:23:28]MH_I2C_Read... [17:23:28]Read from MH i2c: 01 [17:23:28]MH_I2C_Read... [17:23:28]Read from MH i2c: 01 07 00 [17:23:28]MH_I2C_Read... [17:23:28]Read from MH i2c: 01 07 00 7B 1E 00 02 00 00 00 FF 0F B0 [17:23:28]state=3 [17:23:28]Cover opened [17:23:33]Write to MH i2c: 01 00 00 7C 1E 9A [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 07 00 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: 01 07 00 7C 1E 00 02 00 00 00 FF 0F B1 [17:23:33]state=3 [17:23:33]Cover opened [17:23:38]Write to MH i2c: 01 00 00 7D 1E 9B [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 07 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 07 00 7D 1E 00 02 00 00 00 FF 0F B2 [17:23:38]state=3 [17:23:38]Cover opened [17:23:43]Write to MH i2c: 01 00 00 7E 1E 9C [17:23:43]Write i2c OK [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 07 00 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 07 00 7E 1E 00 02 00 00 00 FF 0F B3 [17:23:43]state=3 [17:23:43]Cover opened [17:23:48]Write to MH i2c: 01 00 00 7F 1E 9D [17:23:48]Write i2c OK [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: 01 [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: 01 07 00 [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: 01 07 00 7F 1E 00 02 00 00 00 FF 0F B4 [17:23:48]state=3 [17:23:48]Cover opened [17:23:53]Write to MH i2c: 01 00 00 80 1E 9E [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 80 1E 00 02 00 00 00 FF 0F B5 [17:23:53]state=3 [17:23:53]Cover opened [17:23:58]Write to MH i2c: 01 00 00 81 1E 9F [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 81 1E 00 02 00 00 00 FF 0F B6 [17:23:58]state=3 [17:23:58]Cover opened [17:24:03]Write to MH i2c: 01 00 00 82 1E A0 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 82 1E 00 02 00 00 00 FF 0F B7 [17:24:03]state=3 [17:24:03]Cover opened [17:24:08]Write to MH i2c: 01 00 00 83 1E A1 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 07 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 07 00 83 1E 00 02 00 00 00 FF 0F B8 [17:24:08]state=3 [17:24:08]Cover opened [17:24:13]Write to MH i2c: 01 00 00 84 1E A2 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 84 1E 00 02 00 00 00 FF 0F B9 [17:24:13]state=3 [17:24:13]Cover opened [17:24:18]Write to MH i2c: 01 00 00 85 1E A3 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 07 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 07 00 85 1E 00 02 00 00 00 FF 0F BA [17:24:18]state=3 [17:24:18]Cover opened [17:24:23]Write to MH i2c: 01 00 00 86 1E A4 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 86 1E 00 02 00 00 00 FF 0F BB [17:24:23]state=3 [17:24:23]Cover opened [17:24:28]Write to MH i2c: 01 00 00 87 1E A5 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 87 1E 00 02 00 00 00 FF 0F BC [17:24:28]state=3 [17:24:28]Cover opened [17:24:33]Write to MH i2c: 01 00 00 88 1E A6 [17:24:33]Write i2c OK [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: 01 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: 01 07 00 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: 01 07 00 88 1E 00 02 00 00 00 FF 0F BD [17:24:33]state=3 [17:24:33]Cover opened [17:24:38]Write to MH i2c: 01 00 00 89 1E A7 [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: 01 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: 01 07 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: 01 07 00 89 1E 00 02 00 00 00 FF 0F BE [17:24:38]state=3 [17:24:38]Cover opened [17:24:43]Write to MH i2c: 01 00 00 8A 1E A8 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [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 8A 1E 00 02 00 00 00 FF 0F BF [17:24:43]state=3 [17:24:43]Cover opened [17:24:48]Write to MH i2c: 01 00 00 8B 1E A9 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: 01 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: 01 07 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: 01 07 00 8B 1E 00 02 00 00 00 FF 0F C0 [17:24:48]state=3 [17:24:48]Cover opened [17:24:52]ConnectInit Can't connect to host [17:24:52]CommunicateWithHost connect error [17:24:52]CommunicateWithHost err = -1 [17:24:52]OFD Sender: Server communicate error [17:24:52]OFD Sender: Processing packet 192339 [packets to send 77, broken 74] [17:24:52]ProducePacketName [17:24:52]name=ofd_packets/00192339 [17:24:52]OFD Sender: To server: pG, [17:24:52]CommunicateWithHost lk.salyk.kg:30040 [17:24:52]ConnectInit lk.salyk.kg [17:24:52]Connected sock=9 [17:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CD B4 04 01 8E EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 DF 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EF 02 00 35 04 06 00 A3 14 FC 41 A2 5E B7 67 90 A2 91 A6 76 E7 [17:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 C4 47 00 E1 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 EF 02 00 F4 03 04 00 2A 1C 1E 67 B6 04 01 00 00 32 33 2D 79 05 52 46 F0 [17:24:52]CommunicateWithHost err = 0 [17:24:52]CheckOFDResponse [17:24:52]1017 (14) - 77093643461234 [17:24:52]1041 (16) - 0000000000871754 [17:24:52]1040 (4) - 192339 [17:24:52]1012 (4) - 27.10.2024 10:55 [17:24:52]1206 (1) - 0 [17:24:52]OFD Sender: Remove packet 192339 [17:24:52]ProducePacketName [17:24:52]name=ofd_packets/00192339 [17:24:52]NVStorageDeleteData [17:24:53]OFD Sender: Processing packet 192340 [packets to send 76, broken 74] [17:24:53]ProducePacketName [17:24:53]name=ofd_packets/00192340 [17:24:53]OFD Sender: To server: pG, [17:24:53]CommunicateWithHost lk.salyk.kg:30040 [17:24:53]ConnectInit lk.salyk.kg [17:24:53]Connected sock=9 [17:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 74 54 07 01 87 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 E7 76 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EF 02 00 35 04 06 00 72 0F 58 78 D0 E1 DA D9 9D FC E6 37 66 D5 [17:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 B9 47 00 E0 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 EF 02 00 F4 03 04 00 2B 1C 1E 67 B6 04 01 00 00 39 F9 11 76 A2 84 CF 59 [17:24:53]CommunicateWithHost err = 0 [17:24:53]CheckOFDResponse [17:24:53]1017 (14) - 77093643461234 [17:24:53]1041 (16) - 0000000000871754 [17:24:53]1040 (4) - 192340 [17:24:53]1012 (4) - 27.10.2024 10:55 [17:24:53]1206 (1) - 0 [17:24:53]OFD Sender: Remove packet 192340 [17:24:53]ProducePacketName [17:24:53]name=ofd_packets/00192340 [17:24:53]NVStorageDeleteData [17:24:53]Write to MH i2c: 01 00 00 8C 1E AA [17:24:53]Write i2c OK [17:24:53]MH_I2C_Read... [17:24:53]Read from MH i2c: 01 [17:24:53]MH_I2C_Read... [17:24:53]Read from MH i2c: 01 07 00 [17:24:53]MH_I2C_Read... [17:24:53]Read from MH i2c: 01 07 00 8C 1E 00 02 00 00 00 FF 0F C1 [17:24:53]state=3 [17:24:53]Cover opened [17:24:54]OFD Sender: Processing packet 192341 [packets to send 75, broken 74] [17:24:54]ProducePacketName [17:24:54]name=ofd_packets/00192341 [17:24:54]OFD Sender: To server: pG, [17:24:54]CommunicateWithHost lk.salyk.kg:30040 [17:24:54]ConnectInit lk.salyk.kg [17:24:54]Connected sock=9 [17: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 37 35 34 0F 01 00 00 6A 6D 07 01 0E 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 04 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EF 02 00 35 04 06 00 97 3B C5 10 9F 3A 08 7C 6E EB E3 9D 20 A4 [17: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 37 35 34 4F 00 00 00 F0 94 47 00 2B AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 EF 02 00 F4 03 04 00 2B 1C 1E 67 B6 04 01 00 00 10 E0 AF 22 82 28 42 18 [17:24:54]CommunicateWithHost err = 0 [17:24:54]CheckOFDResponse [17:24:54]1017 (14) - 77093643461234 [17:24:54]1041 (16) - 0000000000871754 [17:24:54]1040 (4) - 192341 [17:24:54]1012 (4) - 27.10.2024 10:55 [17:24:54]1206 (1) - 0 [17:24:54]OFD Sender: Remove packet 192341 [17:24:54]ProducePacketName [17:24:54]name=ofd_packets/00192341 [17:24:54]NVStorageDeleteData [17:24:54]OFD Sender: No OFD packet to send [17:24:58]accept exits with 7 [17:24:58]New connection [17:24:58]New thread 3067080036 created [17:24:58]Thread 3066936676 joined [17:24:58]Waiting for new connection... [17:24:58] Sock 7.Parse request [17:24:58]Sock 7.Check first char [17:24:58]Sock 7.First char is OK [17:24:58]request: POST /json_proto HTTP/1.0 [17:24:58]Method: POST [17:24:58]URL: /json_proto [17:24:58]Method is POST - this is cgi request [17:24:58]url: /json_proto [17:24:58]query_string will be loaded in cgi processing [17:24:58]execute_cgi json_proto POST (null) [17:24:58]execute_cgi path=json_proto method=POST [17:24:58]POST find Content-Length [17:24:58]Host: 172.17.63.131:8080 [17:24:58]Content-Length: 681 [17:24:58]Content-Type: application/json [17:24:58] [17:24:58]POST finish read [17:24:58]Found Content-Length = 681 [17:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:58]execute_script... [17:24:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:58]POST & json_proto [17:24:58]process_json_proto [17:24:58]json parsed OK: [17:24:58]protocol is kg_v1.0 [17:24:58]action value=close_receipt [17:24:58]process_action close_receipt [17:24:58]cmd_close_receipt [17:24:58]MH_GetDate [17:24:58]Write to MH i2c: F0 00 00 8D 1E 9A [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 8D 1E 00 6B 77 1E 67 22 05 6E 64 03 [17:24:58]GetLastDocTimeStamp 1730049796 [17:24:58]current date 1730049899 [17:24:58]FM_GetShiftState [17:24:58]SAM_PROTO_GetShiftState [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 13 01 00 [17:24:58]Write to MH i2c: E2 08 00 8E 1E 80 13 01 00 00 00 00 00 29 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 8E 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6A [17:24:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_GetShiftState done [17:24:58]FM_GetShiftState done [17:24:58]opened in 1729989159 [17:24:58]opened+sec_in_day 1730075559 [17:24:58]quantity*price = 100015 [17:24:58]sum+1 = 100017 [17:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 374 27.10.2024 17:24 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192342 ФПД: 178856195585059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192342&fm=178856195585059&tin=02508201610067®Number=0000000000091776&sum=100000 [17:24:59]StoreToDocumentArchive [17:24:59]shift 542 fd 192342 [17:24:59]save to /storage/0542/doc_00192342 [17:24:59]save last doc name /storage/0542/doc_00192342 to /storage/kkm_last_doc_name [17:24:59]save OK [17:24:59]Clear old archive folders... [17:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:59]tlvbuf is 00311580 [17:24:59]SAM_PROTO_ClearQueue [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 09 00 00 [17:24:59]Write to MH i2c: E2 08 00 9C 1E 80 09 00 00 00 00 00 00 2C [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]SAM_PROTO_ClearQueue done [17:24:59]KKMCreateOFDPacket [17:24:59]OFDProtocolAddRootSTLVToBuf [17:24:59]FM_MakeSignedData [17:24:59]FM_MakeSignedData [17:24:59]SAM_PROTO_SignData [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 01 02 [17:24:59]Write to MH i2c: E2 08 00 9D 1E 80 0D 01 02 00 00 00 00 34 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=255 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 6B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EF 02 00 35 04 06 00 A2 [17:24:59]Write to MH i2c: E2 02 01 9E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 6B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EF 02 00 35 04 06 00 A2 00 00 A9 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=10 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 02 02 05 AB 34 00 F4 23 [17:24:59]Write to MH i2c: E2 0D 00 9F 1E 80 0D 02 02 05 00 AB 34 00 F4 23 00 00 37 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 03 02 [17:24:59]Write to MH i2c: E2 08 00 A0 1E 80 0D 03 02 00 00 00 00 39 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:59]OFD Sender: No OFD packet to send [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 0B 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 0B 00 A0 1E 00 96 15 89 FA 99 26 3D 79 90 00 DD [17:24:59]RAPDU: 96 15 89 FA 99 26 3D 79 90 00 [17:24:59]wFMCommunicate OK [17:24:59]SAM_PROTO_SignData done [17:24:59]FM_MakeSignedData done [17:24:59]CreateOFDProtocolMessage [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 11 00 00 [17:24:59]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 17 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [17:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:24:59]wFMCommunicate OK [17:24:59]CreateOFDProtocolMessage done [17:24:59]OFDSenderStorePacket 192342 [17:24:59]StoreOFDPacket docnum=192342 [17:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E C8 07 01 DD 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 6B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EF 02 00 35 04 06 00 A2 AB 34 00 F4 23 96 15 89 FA 99 26 3D 79 [17:24:59]CheckFolder [17:24:59]dirname=/storage/ofd_packets [17:24:59]CheckFolder done [17:24:59]ProducePacketName [17:24:59]name=ofd_packets/00192342 [17:24:59]NVStorageSaveData ofd_packets/00192342 [17:24:59]File name is /storage/ofd_packets/00192342 [17:24:59]Write 301 bytes [17:24:59]NVStorageSaveData done [17:24:59]OFDSenderStorePacket done [17:24:59]KKMCreateOFDPacket done [17:24:59]NVStorageSaveData kkm_last_timestamp [17:24:59]File name is /storage/kkm_last_timestamp [17:24:59]Write 4 bytes [17:24:59]NVStorageSaveData done [17:24:59]ExternCall_PrintAddStr [17:24:59]wPrintStart [17:24:59]Write to MH i2c: 01 00 00 A2 1E C0 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: 01 07 00 A2 1E 00 02 00 00 00 FF 0F D7 [17:24:59]RasterBufferAndPrint [17:24:59]line Счет N : (1)31659 [17:24:59]line ИНН: 02508201610067 [17:24:59]line Контрольно-Кассовый Чек [17:24:59]line ПРОДАЖА [17:24:59]line ТРК (МРК, ГНК) : 21 [17:24:59]line Товар: 2710124130 [17:24:59]line Аи-92-К-5 [17:24:59]line 14.950 * 66.90 [17:24:59]line = 1000.16 [17:24:59]line НДС 12% НСП 1% [17:24:59]line > о реализуемом товаре [17:24:59]line ОКРУГЛЕНИЕ: -0.16 [17:24:59]line ИТОГО: 1000.00 [17:24:59]line Внесено: 1000.00 [17:24:59]line СДАЧА: 0.00 [17:24:59]line НСП 1% : 8.85 [17:24:59]line НДС 12% : 106.21 [17:24:59]line Наличными: 1000.00 [17:24:59]line Безнал.: 0.00 [17:24:59]line Место: АЗС № 170 "Партнер Нефть" [17:24:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:24:59]line СНО: Общий режим [17:24:59]line Чек 374 27.10.2024 17:24 [17:24:59]line Смена: 542 ФФД: 1.0 [17:24:59]line ЗНМ: 0300000110 [17:24:59]line РНМ: 0000000000091776 [17:24:59]line Версия ККМ: 001 [17:24:59]line ФМ: 0000000000871754 [17:24:59]line ФД: 192342 [17:24:59]line ФПД: 178856195585059 [17:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192342&fm=178856195585059&tin=02508201610067®Number=0000000000091776&sum=100000 [17:25:00]OFD Sender: Processing packet 192342 [packets to send 75, broken 74] [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00192342 [17:25:00]OFD Sender: To server: pG, [17:25:00]CommunicateWithHost lk.salyk.kg:30040 [17:25:00]ConnectInit lk.salyk.kg [17:25:00]written 0, free lines is 4095 [17:25:00]Error from MH - 05 [17:25:00]process_action_free close_receipt [17:25:00]json_value_free [17:25:00]json_value_free done [17:25:00]process_json_proto returns [17:25:00]Send response to host [17:25:00]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [17:25:00]free response buf [17:25:00]execute_script done [17:25:00]execute_script returns [17:25:00]free content buf [17:25:00]Sock 7.Close socket [17:25:00]Sock 7.Thread stoped [17:25:00]Connected sock=9 [17:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E C8 07 01 DD 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 6B 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EF 02 00 35 04 06 00 A2 AB 34 00 F4 23 96 15 89 FA 99 26 3D 79 [17:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 C8 47 00 9F 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 EF 02 00 F4 03 04 00 32 1C 1E 67 B6 04 01 00 00 78 8B 53 F8 1D AF 30 AC [17:25:00]CommunicateWithHost err = 0 [17:25:00]CheckOFDResponse [17:25:00]1017 (14) - 77093643461234 [17:25:00]1041 (16) - 0000000000871754 [17:25:00]1040 (4) - 192342 [17:25:00]1012 (4) - 27.10.2024 10:55 [17:25:00]1206 (1) - 0 [17:25:00]OFD Sender: Remove packet 192342 [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00192342 [17:25:00]NVStorageDeleteData [17:25:01]OFD Sender: No OFD packet to send [17:25:04]Write to MH i2c: 01 00 00 A5 1E C3 [17:25:04]Write i2c OK [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: 01 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: 01 07 00 [17:25:04]MH_I2C_Read... [17:25:04]Read from MH i2c: 01 07 00 A5 1E 00 02 00 00 00 FF 0F DA [17:25:04]state=3 [17:25:04]Cover opened [17:25:06]OFD Sender: No OFD packet to send [17:25:09]Write to MH i2c: 01 00 00 A6 1E C4 [17:25:09]Write i2c OK [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: 01 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: 01 07 00 [17:25:09]MH_I2C_Read... [17:25:09]Read from MH i2c: 01 07 00 A6 1E 00 02 00 00 00 FF 0F DB [17:25:09]state=3 [17:25:09]Cover opened [17:25:11]OFD Sender: No OFD packet to send [17:25:14]Write to MH i2c: 01 00 00 A7 1E C5 [17:25:14]Write i2c OK [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: 01 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: 01 07 00 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: 01 07 00 A7 1E 00 02 00 00 00 FF 0F DC [17:25:14]state=3 [17:25:14]Cover opened [17:25:16]OFD Sender: No OFD packet to send [17:25:19]Write to MH i2c: 01 00 00 A8 1E C6 [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 07 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 07 00 A8 1E 00 02 00 00 00 FF 0F DD [17:25:19]state=3 [17:25:19]Cover opened [17:25:21]OFD Sender: No OFD packet to send [17:25:24]Write to MH i2c: 01 00 00 A9 1E C7 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 A9 1E 00 02 00 00 00 FF 0F DE [17:25:24]state=3 [17:25:24]Cover opened [17:25:24]int [17:25:24]Write to MH i2c: 01 00 00 AA 1E C8 [17:25:24]*** FLAG_PRN_PAP1 set [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 AA 1E 00 03 00 00 00 FF 0F E0 [17:25:24]state=3 [17:25:24]No paper [17:25:24]Cover opened [17:25:26]OFD Sender: No OFD packet to send [17:25:29]Write to MH i2c: 01 00 00 AB 1E C9 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 AB 1E 00 03 00 00 00 FF 0F E1 [17:25:29]state=3 [17:25:29]No paper [17:25:29]Cover opened [17:25:31]OFD Sender: No OFD packet to send [17:25:34]Write to MH i2c: 01 00 00 AC 1E CA [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 07 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 07 00 AC 1E 00 03 00 00 00 FF 0F E2 [17:25:34]state=3 [17:25:34]No paper [17:25:34]Cover opened [17:25:36]OFD Sender: No OFD packet to send [17:25:37]int [17:25:37]Write to MH i2c: 01 00 00 AD 1E CB [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: 01 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: 01 07 00 [17:25:37]MH_I2C_Read... [17:25:37]*** FLAG_PRN_PAP2 reset [17:25:37]*** FLAG_PRN_PAP1 reset [17:25:37]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 FF 0F E0 [17:25:37]state=3 [17:25:37]Cover closed [17:25:41]OFD Sender: No OFD packet to send [17:25:41]accept exits with 10 [17:25:41]New connection [17:25:41]New thread 3066936676 created [17:25:41]Thread 3067080036 joined [17:25:41]Waiting for new connection... [17:25:41] Sock 10.Parse request [17:25:41]Sock 10.Check first char [17:25:41]Sock 10.First char is OK [17:25:41]request: POST /json_proto HTTP/1.0 [17:25:41]Method: POST [17:25:41]URL: /json_proto [17:25:41]Method is POST - this is cgi request [17:25:41]url: /json_proto [17:25:41]query_string will be loaded in cgi processing [17:25:41]execute_cgi json_proto POST (null) [17:25:41]execute_cgi path=json_proto method=POST [17:25:41]POST find Content-Length [17:25:41]Host: 172.17.63.131:8080 [17:25:41]Content-Length: 215 [17:25:41]Content-Type: application/json [17:25:41] [17:25:41]POST finish read [17:25:41]Found Content-Length = 215 [17:25:41]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:25:41]execute_script... [17:25:41]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:25:41]POST & json_proto [17:25:41]process_json_proto [17:25:41]json parsed OK: [17:25:41]protocol is kg_v1.0 [17:25:41]action value=get_value [17:25:41]process_action get_value [17:25:41]cmd_get_value [17:25:41]process_action get_value done [17:25:41]requested_data is exist [17:25:41]produce_requested_data [17:25:41]requested_item kkm.sn is exist - process it [17:25:41]requested_item kkm.ver is exist - process it [17:25:41]requested_item fm.sn is exist - process it [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 11 00 00 [17:25:41]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [17:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:41]wFMCommunicate OK [17:25:41]requested_item fd.num is exist - process it [17:25:41]SAM_PROTO_GetFieldsCounters [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 13 00 00 [17:25:41]Write to MH i2c: E2 08 00 AF 1E 80 13 00 00 00 00 00 00 49 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 62 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 62 00 AF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_GetFieldsCounters done [17:25:41]requested_item shift.num is exist - process it [17:25:41]requested_item shift.opened is exist - process it [17:25:41]req_shift_opened [17:25:41]FM_GetShiftState [17:25:41]SAM_PROTO_GetShiftState [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 13 01 00 [17:25:41]Write to MH i2c: E2 08 00 B0 1E 80 13 01 00 00 00 00 00 4B [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0E 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0E 00 B0 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8C [17:25:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:25:42]wFMCommunicate OK [17:25:42]SAM_PROTO_GetShiftState done [17:25:42]FM_GetShiftState done [17:25:42]req_shift_opened done [17:25:42]requested_item shift.open_date is exist - process it [17:25:42]req_shift_open_date [17:25:42]req_shift_open_date done [17:25:42]produce_requested_data done [17:25:42]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192342,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:25:42]process_action_free get_value [17:25:42]json_value_free [17:25:42]json_value_free done [17:25:42]process_json_proto returns [17:25:42]Send response to host [17:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192342,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:25:42]free response buf [17:25:42]execute_script done [17:25:42]execute_script returns [17:25:42]free content buf [17:25:42]Sock 10.Close socket [17:25:42]Sock 10.Thread stoped [17:25:42]accept exits with 7 [17:25:42]New connection [17:25:42]New thread 3067080036 created [17:25:42]Thread 3066936676 joined [17:25:42]Waiting for new connection... [17:25:42] Sock 7.Parse request [17:25:42]Sock 7.Check first char [17:25:42]Sock 7.First char is OK [17:25:42]request: POST /json_proto HTTP/1.0 [17:25:42]Method: POST [17:25:42]URL: /json_proto [17:25:42]Method is POST - this is cgi request [17:25:42]url: /json_proto [17:25:42]query_string will be loaded in cgi processing [17:25:42]execute_cgi json_proto POST (null) [17:25:42]execute_cgi path=json_proto method=POST [17:25:42]POST find Content-Length [17:25:42]Host: 172.17.63.131:8080 [17:25:42]Content-Length: 331 [17:25:42]Content-Type: application/json [17:25:42] [17:25:42]POST finish read [17:25:42]Found Content-Length = 331 [17:25:42]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:25:42]execute_script... [17:25:42]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:25:42]POST & json_proto [17:25:42]process_json_proto [17:25:42]json parsed OK: [17:25:42]protocol is kg_v1.0 [17:25:42]action value=get_value [17:25:42]process_action get_value [17:25:42]cmd_get_value [17:25:42]process_action get_value done [17:25:42]requested_data is exist [17:25:42]produce_requested_data [17:25:42]requested_item fm.sale.total is exist - process it [17:25:42]SAM_PROTO_GetFMData [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 13 03 00 [17:25:42]Write to MH i2c: E2 08 00 B1 1E 80 13 03 00 00 00 00 00 4E [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 FD 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 FD 00 B1 1E 00 C1 04 85 04 BD 04 6E 04 04 00 1A EB 02 00 69 04 A3 00 6F 04 04 00 10 EB 02 00 B1 04 05 00 04 CF 95 B6 03 70 04 05 00 E4 67 54 89 03 72 04 04 00 20 67 41 2D 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 48 FC 64 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 DD 2E 6A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 41 [17:25:42]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 1A EB 02 00 69 04 A3 00 6F 04 04 00 10 EB 02 00 B1 04 05 00 04 CF 95 B6 03 70 04 05 00 E4 67 54 89 03 72 04 04 00 20 67 41 2D 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 48 FC 64 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 DD 2E 6A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [17:25:42]wFMCommunicate OK [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 17 00 00 [17:25:42]Write to MH i2c: E2 08 00 B2 1E 80 17 00 00 00 00 00 00 50 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 B2 1E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 61 [17:25:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 17 00 00 [17:25:43]Write to MH i2c: E2 08 00 B3 1E 80 17 00 00 00 00 00 00 51 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 B3 1E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 F1 [17:25:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 17 00 00 [17:25:43]Write to MH i2c: E2 08 00 B4 1E 80 17 00 00 00 00 00 00 52 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 FD 00 B4 1E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 D7 [17:25:43]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 17 00 00 [17:25:43]Write to MH i2c: E2 08 00 B5 1E 80 17 00 00 00 00 00 00 53 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 DE 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 DE 00 B5 1E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 32 [17:25:43]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_GetFMData done [17:25:43]requested_item fm.sale_refund.total is exist - process it [17:25:43]requested_item fm.buy.total is exist - process it [17:25:43]requested_item shift.sale.total is exist - process it [17:25:43]SAM_PROTO_GetShiftData [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 13 02 00 [17:25:43]Write to MH i2c: E2 08 00 B6 1E 80 13 02 00 00 00 00 00 52 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:25:44]Read from MH i2c: E2 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 B6 1E 00 B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 FD E6 CA 01 70 04 04 00 B4 14 A9 01 72 04 03 00 49 D2 21 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 12 C0 30 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 FB 0F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 83 [17:25:44]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 76 01 00 00 69 04 9E 00 6F 04 04 00 76 01 00 00 B1 04 04 00 FD E6 CA 01 70 04 04 00 B4 14 A9 01 72 04 03 00 49 D2 21 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 12 C0 30 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 FB 0F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [17:25:44]wFMCommunicate OK [17:25:44]wFMCommunicate request_size=4 [17:25:44]MH_SAM_APDU [17:25:44]CAPDU: 80 17 00 00 [17:25:44]Write to MH i2c: E2 08 00 B7 1E 80 17 00 00 00 00 00 00 55 [17:25:44]Write i2c OK [17:25:44]MH_I2C_Read... [17:25:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:44]Read from MH i2c: E2 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 B7 1E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 6E [17:25:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [17:25:44]wFMCommunicate OK [17:25:44]wFMCommunicate request_size=4 [17:25:44]MH_SAM_APDU [17:25:44]CAPDU: 80 17 00 00 [17:25:44]Write to MH i2c: E2 08 00 B8 1E 80 17 00 00 00 00 00 00 56 [17:25:44]Write i2c OK [17:25:44]MH_I2C_Read... [17:25:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:44]Read from MH i2c: E2 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: E2 FD 00 B8 1E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0F [17:25:44]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [17:25:45]wFMCommunicate OK [17:25:45]wFMCommunicate request_size=4 [17:25:45]MH_SAM_APDU [17:25:45]CAPDU: 80 17 00 00 [17:25:45]Write to MH i2c: E2 08 00 B9 1E 80 17 00 00 00 00 00 00 57 [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:25:45]Read from MH i2c: E2 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 FD 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 FD 00 B9 1E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CF [17:25:45]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [17:25:45]wFMCommunicate OK [17:25:45]wFMCommunicate request_size=4 [17:25:45]MH_SAM_APDU [17:25:45]CAPDU: 80 17 00 00 [17:25:45]Write to MH i2c: E2 08 00 BA 1E 80 17 00 00 00 00 00 00 58 [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [17:25:45]Read from MH i2c: E2 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 CE 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 CE 00 BA 1E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3D [17:25:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:25:45]wFMCommunicate OK [17:25:45]SAM_PROTO_GetShiftData done [17:25:45]requested_item shift.sale.total_cash is exist - process it [17:25:45]requested_item shift.sale_refund.total is exist - process it [17:25:45]requested_item shift.sale_refund.total_cash is exist - process it [17:25:45]requested_item shift.buy.total is exist - process it [17:25:45]requested_item shift.buy.total_cash is exist - process it [17:25:45]produce_requested_data done [17:25:45]produce_requested_data return {"fm.sale.total":159481730.60,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":300746.21,"shift.sale.total_cash":278581.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} [17:25:45]process_action_free get_value [17:25:45]json_value_free [17:25:45]json_value_free done [17:25:45]process_json_proto returns [17:25:45]Send response to host [17:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159481730.60,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":300746.21,"shift.sale.total_cash":278581.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}}} [17:25:45]free response buf [17:25:45]execute_script done [17:25:45]execute_script returns [17:25:45]free content buf [17:25:45]Sock 7.Close socket [17:25:45]Sock 7.Thread stoped [17:25:45]accept exits with 9 [17:25:45]New connection [17:25:45]New thread 3066936676 created [17:25:45]Thread 3067080036 joined [17:25:45]Waiting for new connection... [17:25:45] Sock 9.Parse request [17:25:45]Sock 9.Check first char [17:25:45]Sock 9.First char is OK [17:25:45]request: POST /json_proto HTTP/1.0 [17:25:45]Method: POST [17:25:45]URL: /json_proto [17:25:45]Method is POST - this is cgi request [17:25:45]url: /json_proto [17:25:45]query_string will be loaded in cgi processing [17:25:45]execute_cgi json_proto POST (null) [17:25:45]execute_cgi path=json_proto method=POST [17:25:45]POST find Content-Length [17:25:45]Host: 172.17.63.131:8080 [17:25:45]Content-Length: 144 [17:25:45]Content-Type: application/json [17:25:45] [17:25:45]POST finish read [17:25:45]Found Content-Length = 144 [17:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:25:45]execute_script... [17:25:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:25:45]POST & json_proto [17:25:45]process_json_proto [17:25:45]json parsed OK: [17:25:45]protocol is kg_v1.0 [17:25:45]action value=print_doc [17:25:45]process_action print_doc [17:25:45]ExternCall_PrintAddStr [17:25:45]wPrintStart [17:25:45]Write to MH i2c: 01 00 00 BB 1E D9 [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: 01 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: 01 07 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 FF 0F EE [17:25:45]RasterBufferAndPrint [17:25:45]line Счет N : (1)31659 [17:25:45]line ИНН: 02508201610067 [17:25:45]line Контрольно-Кассовый Чек [17:25:45]line ПРОДАЖА [17:25:45]line ТРК (МРК, ГНК) : 21 [17:25:45]line Товар: 2710124130 [17:25:45]line Аи-92-К-5 [17:25:45]line 14.950 * 66.90 [17:25:45]line = 1000.16 [17:25:45]line НДС 12% НСП 1% [17:25:45]line > о реализуемом товаре [17:25:45]line ОКРУГЛЕНИЕ: -0.16 [17:25:45]line ИТОГО: 1000.00 [17:25:45]line Внесено: 1000.00 [17:25:45]line СДАЧА: 0.00 [17:25:45]line НСП 1% : 8.85 [17:25:45]line НДС 12% : 106.21 [17:25:45]line Наличными: 1000.00 [17:25:45]line Безнал.: 0.00 [17:25:45]line Место: АЗС № 170 "Партнер Нефть" [17:25:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:25:45]line СНО: Общий режим [17:25:45]line Чек 374 27.10.2024 17:24 [17:25:45]line Смена: 542 ФФД: 1.0 [17:25:45]line ЗНМ: 0300000110 [17:25:45]line РНМ: 0000000000091776 [17:25:45]line Версия ККМ: 001 [17:25:45]line ФМ: 0000000000871754 [17:25:45]line ФД: 192342 [17:25:45]line ФПД: 178856195585059 [17:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172459&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192342&fm=178856195585059&tin=02508201610067®Number=0000000000091776&sum=100000 [17:25:45]written 0, free lines is 4095 [17:25:46]Write to MH i2c: 01 00 00 E6 1E 04 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 07 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 07 00 E6 1E 00 00 00 00 00 B5 0C CC [17:25:46]RasterBufferAndPrint [17:25:46]line [17:25:46]line [17:25:46]line [17:25:46]line [17:25:46]line [17:25:46]written 0, free lines is 3269 [17:25:46]MH_Cut [17:25:46]Write to MH i2c: D1 01 00 ED 1E 01 DD [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: D1 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: D1 01 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: D1 01 00 ED 1E 00 DC [17:25:46]Write to MH i2c: 01 00 00 EE 1E 0C [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]OFD Sender: No OFD packet to send [17:25:47]*** Cut start [17:25:47]*** Partial cut [17:25:47]*** CUTSNS_PIN = 1 [17:25:47]*** CUTSNS_PIN = 0 [17:25:47]*** Brake cut motor [17:25:47]Read from MH i2c: 01 [17:25:47]MH_I2C_Read... [17:25:47]*** Stop cut motor [17:25:47]*** Cut end [17:25:47]Read from MH i2c: 01 07 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 07 00 EE 1E 00 00 00 00 00 FF 0F 21 [17:25:47]process_action print_doc done [17:25:47]requested_data is exist [17:25:47]produce_requested_data [17:25:47]produce_requested_data return (null) [17:25:47]process_action_free print_doc [17:25:47]json_value_free [17:25:47]json_value_free done [17:25:47]process_json_proto returns [17:25:47]Send response to host [17:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:25:47]free response buf [17:25:47]execute_script done [17:25:47]execute_script returns [17:25:47]free content buf [17:25:47]Sock 9.Close socket [17:25:47]Sock 9.Thread stoped [17:25:47]accept exits with 7 [17:25:47]New connection [17:25:47]New thread 3067080036 created [17:25:47]Thread 3066936676 joined [17:25:47]Waiting for new connection... [17:25:47] Sock 7.Parse request [17:25:47]Sock 7.Check first char [17:25:47]Sock 7.First char is OK [17:25:47]request: POST /json_proto HTTP/1.0 [17:25:47]Method: POST [17:25:47]URL: /json_proto [17:25:47]Method is POST - this is cgi request [17:25:47]url: /json_proto [17:25:47]query_string will be loaded in cgi processing [17:25:47]execute_cgi json_proto POST (null) [17:25:47]execute_cgi path=json_proto method=POST [17:25:47]POST find Content-Length [17:25:47]Host: 172.17.63.131:8080 [17:25:47]Content-Length: 677 [17:25:47]Content-Type: application/json [17:25:47] [17:25:47]POST finish read [17:25:47]Found Content-Length = 677 [17:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:47]execute_script... [17:25: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)31661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:47]POST & json_proto [17:25:47]process_json_proto [17:25:47]json parsed OK: [17:25:47]protocol is kg_v1.0 [17:25:47]action value=close_receipt [17:25:47]process_action close_receipt [17:25:47]cmd_close_receipt [17:25:47]MH_GetDate [17:25:47]Write to MH i2c: F0 00 00 EF 1E FC [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: F0 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: F0 09 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: F0 09 00 EF 1E 00 9C 77 1E 67 22 05 6E 64 96 [17:25:47]GetLastDocTimeStamp 1730049899 [17:25:47]current date 1730049948 [17:25:47]FM_GetShiftState [17:25:47]SAM_PROTO_GetShiftState [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 13 01 00 [17:25:47]Write to MH i2c: E2 08 00 F0 1E 80 13 01 00 00 00 00 00 8B [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0E 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0E 00 F0 1E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CC [17:25:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:25:47]wFMCommunicate OK [17:25:47]SAM_PROTO_GetShiftState done [17:25:47]FM_GetShiftState done [17:25:47]opened in 1729989159 [17:25:47]opened+sec_in_day 1730075559 [17:25:47]quantity*price = 80012 [17:25:47]sum+1 = 80013 [17:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 375 27.10.2024 17:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192343 ФПД: 118908115528549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192343&fm=118908115528549&tin=02508201610067®Number=0000000000091776&sum=80000 [17:25:48]StoreToDocumentArchive [17:25:48]shift 542 fd 192343 [17:25:48]save to /storage/0542/doc_00192343 [17:25:48]save last doc name /storage/0542/doc_00192343 to /storage/kkm_last_doc_name [17:25:48]save OK [17:25:48]Clear old archive folders... [17:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:48]tlvbuf is 003AFB00 [17:25:48]SAM_PROTO_ClearQueue [17:25:48]wFMCommunicate request_size=4 [17:25:48]MH_SAM_APDU [17:25:48]CAPDU: 80 09 00 00 [17:25:48]Write to MH i2c: E2 08 00 FD 1E 80 09 00 00 00 00 00 00 8D [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]SAM_PROTO_ClearQueue done [17:25:49]KKMCreateOFDPacket [17:25:49]OFDProtocolAddRootSTLVToBuf [17:25:49]FM_MakeSignedData [17:25:49]FM_MakeSignedData [17:25:49]SAM_PROTO_SignData [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 01 02 [17:25:49]Write to MH i2c: E2 08 00 FE 1E 80 0D 01 02 00 00 00 00 95 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]wFMCommunicate request_size=255 [17:25:49]MH_SAM_APDU [17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9C 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EF 02 00 35 04 06 00 6C [17:25:49]Write to MH i2c: E2 02 01 FF 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9C 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EF 02 00 35 04 06 00 6C 00 00 F9 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]wFMCommunicate request_size=10 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 02 02 05 25 73 FC AB 65 [17:25:49]Write to MH i2c: E2 0D 00 00 1F 80 0D 02 02 05 00 25 73 FC AB 65 00 00 47 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 03 02 [17:25:49]Write to MH i2c: E2 08 00 01 1F 80 0D 03 02 00 00 00 00 9B [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 0B 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 0B 00 01 1F 00 F1 7B A6 B6 EF B2 55 97 90 00 F1 [17:25:49]RAPDU: F1 7B A6 B6 EF B2 55 97 90 00 [17:25:49]wFMCommunicate OK [17:25:49]SAM_PROTO_SignData done [17:25:49]FM_MakeSignedData done [17:25:49]CreateOFDProtocolMessage [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 11 00 00 [17:25:49]Write to MH i2c: E2 08 00 02 1F 80 11 00 00 00 00 00 00 9B [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 17 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 17 00 02 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [17:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:49]wFMCommunicate OK [17:25:49]CreateOFDProtocolMessage done [17:25:49]OFDSenderStorePacket 192343 [17:25:49]StoreOFDPacket docnum=192343 [17:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F 8C 07 01 87 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9C 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EF 02 00 35 04 06 00 6C 25 73 FC AB 65 F1 7B A6 B6 EF B2 55 97 [17:25:49]CheckFolder [17:25:49]dirname=/storage/ofd_packets [17:25:49]CheckFolder done [17:25:49]ProducePacketName [17:25:49]name=ofd_packets/00192343 [17:25:49]NVStorageSaveData ofd_packets/00192343 [17:25:49]File name is /storage/ofd_packets/00192343 [17:25:49]Write 301 bytes [17:25:49]NVStorageSaveData done [17:25:49]OFDSenderStorePacket done [17:25:49]KKMCreateOFDPacket done [17:25:49]NVStorageSaveData kkm_last_timestamp [17:25:49]File name is /storage/kkm_last_timestamp [17:25:49]Write 4 bytes [17:25:49]NVStorageSaveData done [17:25:49]ExternCall_PrintAddStr [17:25:49]wPrintStart [17:25:49]Write to MH i2c: 01 00 00 03 1F 22 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: 01 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: 01 07 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 FF 0F 37 [17:25:49]RasterBufferAndPrint [17:25:49]line Счет N : (1)31661 [17:25:49]line ИНН: 02508201610067 [17:25:49]line Контрольно-Кассовый Чек [17:25:49]line ПРОДАЖА [17:25:49]line ТРК (МРК, ГНК) : 12 [17:25:49]line Товар: 2710124130 [17:25:49]line Аи-92-К-5 [17:25:49]line 11.960 * 66.90 [17:25:49]line = 800.12 [17:25:49]line НДС 12% НСП 1% [17:25:49]line > о реализуемом товаре [17:25:49]line ОКРУГЛЕНИЕ: -0.12 [17:25:49]line ИТОГО: 800.00 [17:25:49]line Внесено: 800.00 [17:25:49]line СДАЧА: 0.00 [17:25:49]line НСП 1% : 7.08 [17:25:49]line НДС 12% : 84.97 [17:25:49]line Наличными: 800.00 [17:25:49]line Безнал.: 0.00 [17:25:49]line Место: АЗС № 170 "Партнер Нефть" [17:25:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:25:49]line СНО: Общий режим [17:25:49]line Чек 375 27.10.2024 17:25 [17:25:49]line Смена: 542 ФФД: 1.0 [17:25:49]line ЗНМ: 0300000110 [17:25:49]line РНМ: 0000000000091776 [17:25:49]line Версия ККМ: 001 [17:25:49]line ФМ: 0000000000871754 [17:25:49]line ФД: 192343 [17:25:49]line ФПД: 118908115528549 [17:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192343&fm=118908115528549&tin=02508201610067®Number=0000000000091776&sum=80000 [17:25:50]OFD Sender: Processing packet 192343 [packets to send 75, broken 74] [17:25:50]ProducePacketName [17:25:50]name=ofd_packets/00192343 [17:25:50]OFD Sender: To server: pG, [17:25:50]CommunicateWithHost lk.salyk.kg:30040 [17:25:50]ConnectInit lk.salyk.kg [17:25:50]written 0, free lines is 4095 [17:25:50]Connected sock=10 [17: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 37 35 34 0F 01 00 00 9F 8C 07 01 87 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9C 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EF 02 00 35 04 06 00 6C 25 73 FC AB 65 F1 7B A6 B6 EF B2 55 97 [17: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 37 35 34 4F 00 00 00 A0 52 47 00 B3 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 EF 02 00 F4 03 04 00 64 1C 1E 67 B6 04 01 00 00 27 3A 35 5C 2C 83 A1 5A [17:25:50]CommunicateWithHost err = 0 [17:25:50]CheckOFDResponse [17:25:50]1017 (14) - 77093643461234 [17:25:50]1041 (16) - 0000000000871754 [17:25:50]1040 (4) - 192343 [17:25:50]1012 (4) - 27.10.2024 10:56 [17:25:50]1206 (1) - 0 [17:25:50]OFD Sender: Remove packet 192343 [17:25:50]ProducePacketName [17:25:50]name=ofd_packets/00192343 [17:25:50]NVStorageDeleteData [17:25:50]Write to MH i2c: 01 00 00 2E 1F 4D [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 07 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 C6 0C 26 [17:25:50]RasterBufferAndPrint [17:25:50]line [17:25:50]line [17:25:50]line [17:25:50]line [17:25:50]line [17:25:50]written 0, free lines is 3292 [17:25:50]MH_Cut [17:25:50]Write to MH i2c: D1 01 00 35 1F 01 26 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: D1 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: D1 01 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: D1 01 00 35 1F 00 25 [17:25:50]Write to MH i2c: 01 00 00 36 1F 55 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:51]OFD Sender: No OFD packet to send [17:25:51]*** Cut start [17:25:51]*** Partial cut [17:25:51]*** CUTSNS_PIN = 1 [17:25:51]*** CUTSNS_PIN = 0 [17:25:51]*** Brake cut motor [17:25:52]Read from MH i2c: 01 [17:25:52]MH_I2C_Read... [17:25:52]*** Stop cut motor [17:25:52]*** Cut end [17:25:52]Read from MH i2c: 01 07 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [17:25:52]process_action close_receipt done [17:25:52]requested_data is exist [17:25:52]produce_requested_data [17:25:52]requested_item fm.sn is exist - process it [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 11 00 00 [17:25:52]Write to MH i2c: E2 08 00 37 1F 80 11 00 00 00 00 00 00 D0 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 37 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [17:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:52]wFMCommunicate OK [17:25:52]requested_item fd.num is exist - process it [17:25:52]SAM_PROTO_GetFieldsCounters [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 13 00 00 [17:25:52]Write to MH i2c: E2 08 00 38 1F 80 13 00 00 00 00 00 00 D3 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 62 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 62 00 38 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetFieldsCounters done [17:25:52]requested_item shift.num is exist - process it [17:25:52]requested_item shift.opened is exist - process it [17:25:52]req_shift_opened [17:25:52]FM_GetShiftState [17:25:52]SAM_PROTO_GetShiftState [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 13 01 00 [17:25:52]Write to MH i2c: E2 08 00 39 1F 80 13 01 00 00 00 00 00 D5 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 39 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 16 [17:25:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetShiftState done [17:25:52]FM_GetShiftState done [17:25:52]req_shift_opened done [17:25:52]requested_item shift.open_date is exist - process it [17:25:52]req_shift_open_date [17:25:52]req_shift_open_date done [17:25:52]produce_requested_data done [17:25:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192343,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:25:52]process_action_free close_receipt [17:25:52]json_value_free [17:25:52]json_value_free done [17:25:52]process_json_proto returns [17:25:52]Send response to host [17:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192343,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:25:52]free response buf [17:25:52]execute_script done [17:25:52]execute_script returns [17:25:52]free content buf [17:25:52]Sock 7.Close socket [17:25:52]Sock 7.Thread stoped [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:26:59]accept exits with 9 [17:26:59]New connection [17:26:59]New thread 3066936676 created [17:26:59]Thread 3067080036 joined [17:26:59]Waiting for new connection... [17:26:59] Sock 9.Parse request [17:26:59]Sock 9.Check first char [17:26:59]Sock 9.First char is OK [17:26:59]request: POST /json_proto HTTP/1.0 [17:26:59]Method: POST [17:26:59]URL: /json_proto [17:26:59]Method is POST - this is cgi request [17:26:59]url: /json_proto [17:26:59]query_string will be loaded in cgi processing [17:26:59]execute_cgi json_proto POST (null) [17:26:59]execute_cgi path=json_proto method=POST [17:26:59]POST find Content-Length [17:26:59]Host: 172.17.63.131:8080 [17:26:59]Content-Length: 678 [17:26:59]Content-Type: application/json [17:26:59] [17:26:59]POST finish read [17:26:59]Found Content-Length = 678 [17:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31660", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:59]execute_script... [17:26: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)31660", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:59]POST & json_proto [17:26:59]process_json_proto [17:26:59]json parsed OK: [17:26:59]protocol is kg_v1.0 [17:26:59]action value=close_receipt [17:26:59]process_action close_receipt [17:26:59]cmd_close_receipt [17:26:59]MH_GetDate [17:26:59]Write to MH i2c: F0 00 00 3A 1F 48 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 09 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 09 00 3A 1F 00 E3 77 1E 67 22 05 6E 64 29 [17:26:59]GetLastDocTimeStamp 1730049948 [17:26:59]current date 1730050019 [17:26:59]FM_GetShiftState [17:26:59]SAM_PROTO_GetShiftState [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 13 01 00 [17:26:59]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 0E 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 18 [17:26:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:26:59]wFMCommunicate OK [17:26:59]SAM_PROTO_GetShiftState done [17:26:59]FM_GetShiftState done [17:26:59]opened in 1729989159 [17:26:59]opened+sec_in_day 1730075559 [17:26:59]quantity*price = 300075 [17:26:59]sum+1 = 300077 [17:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 376 27.10.2024 17:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192344 ФПД: 213602464777358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192344&fm=213602464777358&tin=02508201610067®Number=0000000000091776&sum=300000 [17:27:00]StoreToDocumentArchive [17:27:00]shift 542 fd 192344 [17:27:00]save to /storage/0542/doc_00192344 [17:27:00]save last doc name /storage/0542/doc_00192344 to /storage/kkm_last_doc_name [17:27:00]save OK [17:27:00]Clear old archive folders... [17:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:00]tlvbuf is 00304040 [17:27:00]SAM_PROTO_ClearQueue [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 09 00 00 [17:27:00]Write to MH i2c: E2 08 00 48 1F 80 09 00 00 00 00 00 00 D9 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_ClearQueue done [17:27:00]KKMCreateOFDPacket [17:27:00]OFDProtocolAddRootSTLVToBuf [17:27:00]FM_MakeSignedData [17:27:00]FM_MakeSignedData [17:27:00]SAM_PROTO_SignData [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 01 02 [17:27:00]Write to MH i2c: E2 08 00 49 1F 80 0D 01 02 00 00 00 00 E1 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=255 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 E4 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EF 02 00 35 04 06 00 C2 45 33 09 [17:27:00]Write to MH i2c: E2 02 01 4A 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 E4 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EF 02 00 35 04 06 00 C2 45 33 09 00 00 A7 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=7 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 02 02 02 44 8E [17:27:00]Write to MH i2c: E2 0A 00 4B 1F 80 0D 02 02 02 00 44 8E 00 00 BA [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 03 02 [17:27:00]Write to MH i2c: E2 08 00 4C 1F 80 0D 03 02 00 00 00 00 E6 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 4C 1F 00 5B E7 F3 BE 52 60 44 04 90 00 D4 [17:27:00]RAPDU: 5B E7 F3 BE 52 60 44 04 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_SignData done [17:27:00]FM_MakeSignedData done [17:27:00]CreateOFDProtocolMessage [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 11 00 00 [17:27:00]Write to MH i2c: E2 08 00 4D 1F 80 11 00 00 00 00 00 00 E6 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 4D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [17:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:00]wFMCommunicate OK [17:27:00]CreateOFDProtocolMessage done [17:27:00]OFDSenderStorePacket 192344 [17:27:00]StoreOFDPacket docnum=192344 [17:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A5 F2 04 01 69 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 E4 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EF 02 00 35 04 06 00 C2 45 33 09 44 8E 5B E7 F3 BE 52 60 44 04 [17:27:00]CheckFolder [17:27:00]dirname=/storage/ofd_packets [17:27:00]CheckFolder done [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00192344 [17:27:00]NVStorageSaveData ofd_packets/00192344 [17:27:00]File name is /storage/ofd_packets/00192344 [17:27:00]Write 298 bytes [17:27:00]NVStorageSaveData done [17:27:00]OFDSenderStorePacket done [17:27:00]KKMCreateOFDPacket done [17:27:00]NVStorageSaveData kkm_last_timestamp [17:27:00]File name is /storage/kkm_last_timestamp [17:27:00]Write 4 bytes [17:27:00]NVStorageSaveData done [17:27:00]ExternCall_PrintAddStr [17:27:00]wPrintStart [17:27:00]Write to MH i2c: 01 00 00 4E 1F 6D [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 4E 1F 00 00 00 00 00 FF 0F 82 [17:27:00]RasterBufferAndPrint [17:27:00]line Счет N : (1)31660 [17:27:00]line ИНН: 02508201610067 [17:27:00]line Контрольно-Кассовый Чек [17:27:00]line ПРОДАЖА [17:27:00]line ТРК (МРК, ГНК) : 11 [17:27:00]line Товар: 2710194210 [17:27:00]line ДТ-К-5 [17:27:00]line 39.380 * 76.20 [17:27:00]line = 3000.76 [17:27:00]line НДС 12% НСП 1% [17:27:00]line > о реализуемом товаре [17:27:00]line ОКРУГЛЕНИЕ: -0.76 [17:27:00]line ИТОГО: 3000.00 [17:27:00]line Внесено: 3000.00 [17:27:00]line СДАЧА: 0.00 [17:27:00]line НСП 1% : 26.55 [17:27:00]line НДС 12% : 318.66 [17:27:00]line Наличными: 3000.00 [17:27:00]line Безнал.: 0.00 [17:27:00]line Место: АЗС № 170 "Партнер Нефть" [17:27:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:27:00]line СНО: Общий режим [17:27:00]line Чек 376 27.10.2024 17:27 [17:27:00]line Смена: 542 ФФД: 1.0 [17:27:00]line ЗНМ: 0300000110 [17:27:00]line РНМ: 0000000000091776 [17:27:00]line Версия ККМ: 001 [17:27:00]line ФМ: 0000000000871754 [17:27:00]line ФД: 192344 [17:27:00]line ФПД: 213602464777358 [17:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172700&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192344&fm=213602464777358&tin=02508201610067®Number=0000000000091776&sum=300000 [17:27:01]OFD Sender: Processing packet 192344 [packets to send 75, broken 74] [17:27:01]ProducePacketName [17:27:01]name=ofd_packets/00192344 [17:27:01]OFD Sender: To server: pG, [17:27:01]CommunicateWithHost lk.salyk.kg:30040 [17:27:01]ConnectInit lk.salyk.kg [17:27:01]written 0, free lines is 4095 [17:27:01]Connected sock=10 [17:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A5 F2 04 01 69 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 E4 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EF 02 00 35 04 06 00 C2 45 33 09 44 8E 5B E7 F3 BE 52 60 44 04 [17:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B5 B8 47 00 C6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 EF 02 00 F4 03 04 00 AA 1C 1E 67 B6 04 01 00 00 74 2C CE 5A EF FB 12 C2 [17:27:01]CommunicateWithHost err = 0 [17:27:01]CheckOFDResponse [17:27:01]1017 (14) - 77093643461234 [17:27:01]1041 (16) - 0000000000871754 [17:27:01]1040 (4) - 192344 [17:27:01]1012 (4) - 27.10.2024 10:57 [17:27:01]1206 (1) - 0 [17:27:01]OFD Sender: Remove packet 192344 [17:27:01]ProducePacketName [17:27:01]name=ofd_packets/00192344 [17:27:01]NVStorageDeleteData [17:27:01]Write to MH i2c: 01 00 00 79 1F 98 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 79 1F 00 00 00 00 00 AF 0C 5A [17:27:01]RasterBufferAndPrint [17:27:01]line [17:27:01]line [17:27:01]line [17:27:01]line [17:27:01]line [17:27:01]written 0, free lines is 3253 [17:27:01]MH_Cut [17:27:01]Write to MH i2c: D1 01 00 80 1F 01 71 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: D1 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: D1 01 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: D1 01 00 80 1F 00 70 [17:27:01]Write to MH i2c: 01 00 00 81 1F A0 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]OFD Sender: No OFD packet to send [17:27:02]*** Cut start [17:27:02]*** Partial cut [17:27:02]*** CUTSNS_PIN = 1 [17:27:02]*** CUTSNS_PIN = 0 [17:27:02]*** Brake cut motor [17:27:03]Read from MH i2c: 01 [17:27:03]MH_I2C_Read... [17:27:03]*** Stop cut motor [17:27:03]*** Cut end [17:27:03]Read from MH i2c: 01 07 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: 01 07 00 81 1F 00 00 00 00 00 FF 0F B5 [17:27:03]process_action close_receipt done [17:27:03]requested_data is exist [17:27:03]produce_requested_data [17:27:03]requested_item fm.sn is exist - process it [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 11 00 00 [17:27:03]Write to MH i2c: E2 08 00 82 1F 80 11 00 00 00 00 00 00 1B [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:03]Read from MH i2c: E2 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 17 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 17 00 82 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [17:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:03]wFMCommunicate OK [17:27:03]requested_item fd.num is exist - process it [17:27:03]SAM_PROTO_GetFieldsCounters [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 13 00 00 [17:27:03]Write to MH i2c: E2 08 00 83 1F 80 13 00 00 00 00 00 00 1E [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:03]Read from MH i2c: E2 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 62 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 62 00 83 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:03]wFMCommunicate OK [17:27:03]SAM_PROTO_GetFieldsCounters done [17:27:03]requested_item shift.num is exist - process it [17:27:03]requested_item shift.opened is exist - process it [17:27:03]req_shift_opened [17:27:03]FM_GetShiftState [17:27:03]SAM_PROTO_GetShiftState [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 13 01 00 [17:27:03]Write to MH i2c: E2 08 00 84 1F 80 13 01 00 00 00 00 00 20 [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:03]Read from MH i2c: E2 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 0E 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 0E 00 84 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 61 [17:27:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:27:03]wFMCommunicate OK [17:27:03]SAM_PROTO_GetShiftState done [17:27:03]FM_GetShiftState done [17:27:03]req_shift_opened done [17:27:03]requested_item shift.open_date is exist - process it [17:27:03]req_shift_open_date [17:27:03]req_shift_open_date done [17:27:03]produce_requested_data done [17:27:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192344,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:27:03]process_action_free close_receipt [17:27:03]json_value_free [17:27:03]json_value_free done [17:27:03]process_json_proto returns [17:27:03]Send response to host [17:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192344,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:27:03]free response buf [17:27:03]execute_script done [17:27:03]execute_script returns [17:27:03]free content buf [17:27:03]Sock 9.Close socket [17:27:03]Sock 9.Thread stoped [17:27:06]OFD Sender: No OFD packet to send [17:27:11]accept exits with 7 [17:27:11]New connection [17:27:11]New thread 3067080036 created [17:27:11]Thread 3066936676 joined [17:27:11]Waiting for new connection... [17:27:11] Sock 7.Parse request [17:27:11]Sock 7.Check first char [17:27:11]Sock 7.First char is OK [17:27:11]request: POST /json_proto HTTP/1.0 [17:27:11]Method: POST [17:27:11]URL: /json_proto [17:27:11]Method is POST - this is cgi request [17:27:11]url: /json_proto [17:27:11]query_string will be loaded in cgi processing [17:27:11]execute_cgi json_proto POST (null) [17:27:11]execute_cgi path=json_proto method=POST [17:27:11]POST find Content-Length [17:27:11]Host: 172.17.63.131:8080 [17:27:11]Content-Length: 676 [17:27:11]Content-Type: application/json [17:27:11] [17:27:11]POST finish read [17:27:11]Found Content-Length = 676 [17:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:11]execute_script... [17:27: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)31662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:11]POST & json_proto [17:27:11]process_json_proto [17:27:11]json parsed OK: [17:27:11]protocol is kg_v1.0 [17:27:11]action value=close_receipt [17:27:11]process_action close_receipt [17:27:11]cmd_close_receipt [17:27:11]MH_GetDate [17:27:11]Write to MH i2c: F0 00 00 85 1F 93 [17:27:11]Write i2c OK [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 09 00 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 09 00 85 1F 00 F0 77 1E 67 22 05 6E 64 81 [17:27:11]GetLastDocTimeStamp 1730050020 [17:27:11]current date 1730050032 [17:27:11]FM_GetShiftState [17:27:11]SAM_PROTO_GetShiftState [17:27:11]wFMCommunicate request_size=4 [17:27:11]MH_SAM_APDU [17:27:11]CAPDU: 80 13 01 00 [17:27:11]Write to MH i2c: E2 08 00 86 1F 80 13 01 00 00 00 00 00 22 [17:27:11]Write i2c OK [17:27:11]MH_I2C_Read... [17:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:11]Read from MH i2c: E2 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: E2 0E 00 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: E2 0E 00 86 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 63 [17:27:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:27:11]wFMCommunicate OK [17:27:11]SAM_PROTO_GetShiftState done [17:27:11]FM_GetShiftState done [17:27:11]opened in 1729989159 [17:27:11]opened+sec_in_day 1730075559 [17:27:11]quantity*price = 50041 [17:27:11]sum+1 = 50042 [17:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 377 27.10.2024 17:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192345 ФПД: 278460117127946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192345&fm=278460117127946&tin=02508201610067®Number=0000000000091776&sum=50000 [17:27:12]StoreToDocumentArchive [17:27:12]shift 542 fd 192345 [17:27:12]save to /storage/0542/doc_00192345 [17:27:12]save last doc name /storage/0542/doc_00192345 to /storage/kkm_last_doc_name [17:27:12]save OK [17:27:12]Clear old archive folders... [17:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:12]tlvbuf is 00348280 [17:27:12]SAM_PROTO_ClearQueue [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 09 00 00 [17:27:12]Write to MH i2c: E2 08 00 93 1F 80 09 00 00 00 00 00 00 24 [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]SAM_PROTO_ClearQueue done [17:27:12]KKMCreateOFDPacket [17:27:12]OFDProtocolAddRootSTLVToBuf [17:27:12]FM_MakeSignedData [17:27:12]FM_MakeSignedData [17:27:12]SAM_PROTO_SignData [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 01 02 [17:27:12]Write to MH i2c: E2 08 00 94 1F 80 0D 01 02 00 00 00 00 2C [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]wFMCommunicate request_size=255 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 F0 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EF 02 00 35 04 06 00 FD [17:27:12]Write to MH i2c: E2 02 01 95 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 F0 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EF 02 00 35 04 06 00 FD 00 00 8D [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]wFMCommunicate request_size=10 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 02 02 05 42 0C 5D 93 0A [17:27:13]Write to MH i2c: E2 0D 00 96 1F 80 0D 02 02 05 00 42 0C 5D 93 0A 00 00 81 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 03 02 [17:27:13]Write to MH i2c: E2 08 00 97 1F 80 0D 03 02 00 00 00 00 31 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0B 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0B 00 97 1F 00 39 E8 35 0F 12 71 AD 71 90 00 38 [17:27:13]RAPDU: 39 E8 35 0F 12 71 AD 71 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_SignData done [17:27:13]FM_MakeSignedData done [17:27:13]CreateOFDProtocolMessage [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 11 00 00 [17:27:13]Write to MH i2c: E2 08 00 98 1F 80 11 00 00 00 00 00 00 31 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 98 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [17:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:13]wFMCommunicate OK [17:27:13]CreateOFDProtocolMessage done [17:27:13]OFDSenderStorePacket 192345 [17:27:13]StoreOFDPacket docnum=192345 [17:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 19 07 01 6C 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 F0 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EF 02 00 35 04 06 00 FD 42 0C 5D 93 0A 39 E8 35 0F 12 71 AD 71 [17:27:13]CheckFolder [17:27:13]dirname=/storage/ofd_packets [17:27:13]CheckFolder done [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00192345 [17:27:13]NVStorageSaveData ofd_packets/00192345 [17:27:13]File name is /storage/ofd_packets/00192345 [17:27:13]Write 301 bytes [17:27:13]NVStorageSaveData done [17:27:13]OFDSenderStorePacket done [17:27:13]KKMCreateOFDPacket done [17:27:13]NVStorageSaveData kkm_last_timestamp [17:27:13]File name is /storage/kkm_last_timestamp [17:27:13]Write 4 bytes [17:27:13]NVStorageSaveData done [17:27:13]ExternCall_PrintAddStr [17:27:13]wPrintStart [17:27:13]Write to MH i2c: 01 00 00 99 1F B8 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 99 1F 00 00 00 00 00 FF 0F CD [17:27:13]RasterBufferAndPrint [17:27:13]line Счет N : (1)31662 [17:27:13]line ИНН: 02508201610067 [17:27:13]line Контрольно-Кассовый Чек [17:27:13]line ПРОДАЖА [17:27:13]line ТРК (МРК, ГНК) : 21 [17:27:13]line Товар: 2710124130 [17:27:13]line Аи-92-К-5 [17:27:13]line 7.480 * 66.90 [17:27:13]line = 500.41 [17:27:13]line НДС 12% НСП 1% [17:27:13]line > о реализуемом товаре [17:27:13]line ОКРУГЛЕНИЕ: -0.41 [17:27:13]line ИТОГО: 500.00 [17:27:13]line Внесено: 500.00 [17:27:13]line СДАЧА: 0.00 [17:27:13]line НСП 1% : 4.43 [17:27:13]line НДС 12% : 53.14 [17:27:13]line Наличными: 500.00 [17:27:13]line Безнал.: 0.00 [17:27:13]line Место: АЗС № 170 "Партнер Нефть" [17:27:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:27:13]line СНО: Общий режим [17:27:13]line Чек 377 27.10.2024 17:27 [17:27:13]line Смена: 542 ФФД: 1.0 [17:27:13]line ЗНМ: 0300000110 [17:27:13]line РНМ: 0000000000091776 [17:27:13]line Версия ККМ: 001 [17:27:13]line ФМ: 0000000000871754 [17:27:13]line ФД: 192345 [17:27:13]line ФПД: 278460117127946 [17:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192345&fm=278460117127946&tin=02508201610067®Number=0000000000091776&sum=50000 [17:27:13]OFD Sender: Processing packet 192345 [packets to send 75, broken 74] [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00192345 [17:27:13]OFD Sender: To server: pG, [17:27:13]CommunicateWithHost lk.salyk.kg:30040 [17:27:13]ConnectInit lk.salyk.kg [17:27:13]written 0, free lines is 4095 [17:27:13]Connected sock=10 [17:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 19 07 01 6C 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 F0 77 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EF 02 00 35 04 06 00 FD 42 0C 5D 93 0A 39 E8 35 0F 12 71 AD 71 [17:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 15 47 00 25 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 EF 02 00 F4 03 04 00 B7 1C 1E 67 B6 04 01 00 00 08 7E 05 43 47 3E 1D 72 [17:27:13]CommunicateWithHost err = 0 [17:27:13]CheckOFDResponse [17:27:13]1017 (14) - 77093643461234 [17:27:13]1041 (16) - 0000000000871754 [17:27:13]1040 (4) - 192345 [17:27:13]1012 (4) - 27.10.2024 10:57 [17:27:13]1206 (1) - 0 [17:27:13]OFD Sender: Remove packet 192345 [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00192345 [17:27:13]NVStorageDeleteData [17:27:13]Write to MH i2c: 01 00 00 C4 1F E3 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 C4 1F 00 00 00 00 00 B0 0C A6 [17:27:13]RasterBufferAndPrint [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]written 0, free lines is 3256 [17:27:14]MH_Cut [17:27:14]Write to MH i2c: D1 01 00 CB 1F 01 BC [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 01 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 01 00 CB 1F 00 BB [17:27:14]Write to MH i2c: 01 00 00 CC 1F EB [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]OFD Sender: No OFD packet to send [17:27:14]*** Cut start [17:27:14]*** Partial cut [17:27:14]*** CUTSNS_PIN = 1 [17:27:14]*** CUTSNS_PIN = 0 [17:27:15]*** Brake cut motor [17:27:15]Read from MH i2c: 01 [17:27:15]MH_I2C_Read... [17:27:15]*** Stop cut motor [17:27:15]*** Cut end [17:27:15]Read from MH i2c: 01 07 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 CC 1F 00 00 00 00 00 FF 0F 00 [17:27:15]process_action close_receipt done [17:27:15]requested_data is exist [17:27:15]produce_requested_data [17:27:15]requested_item fm.sn is exist - process it [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 11 00 00 [17:27:15]Write to MH i2c: E2 08 00 CD 1F 80 11 00 00 00 00 00 00 66 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 CD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [17:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:27:15]wFMCommunicate OK [17:27:15]requested_item fd.num is exist - process it [17:27:15]SAM_PROTO_GetFieldsCounters [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 13 00 00 [17:27:15]Write to MH i2c: E2 08 00 CE 1F 80 13 00 00 00 00 00 00 69 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 62 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 62 00 CE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [17:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_GetFieldsCounters done [17:27:15]requested_item shift.num is exist - process it [17:27:15]requested_item shift.opened is exist - process it [17:27:15]req_shift_opened [17:27:15]FM_GetShiftState [17:27:15]SAM_PROTO_GetShiftState [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 13 01 00 [17:27:15]Write to MH i2c: E2 08 00 CF 1F 80 13 01 00 00 00 00 00 6B [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 CF 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AC [17:27:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_GetShiftState done [17:27:15]FM_GetShiftState done [17:27:15]req_shift_opened done [17:27:15]requested_item shift.open_date is exist - process it [17:27:15]req_shift_open_date [17:27:15]req_shift_open_date done [17:27:15]produce_requested_data done [17:27:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192345,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:27:15]process_action_free close_receipt [17:27:15]json_value_free [17:27:15]json_value_free done [17:27:15]process_json_proto returns [17:27:15]Send response to host [17:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192345,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:27:15]free response buf [17:27:15]execute_script done [17:27:15]execute_script returns [17:27:15]free content buf [17:27:15]Sock 7.Close socket [17:27:15]Sock 7.Thread stoped [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:56]accept exits with 9 [17:28:56]New connection [17:28:56]New thread 3066936676 created [17:28:56]Thread 3067080036 joined [17:28:56]Waiting for new connection... [17:28:56] Sock 9.Parse request [17:28:56]Sock 9.Check first char [17:28:56]Sock 9.First char is OK [17:28:56]request: POST /json_proto HTTP/1.0 [17:28:56]Method: POST [17:28:56]URL: /json_proto [17:28:56]Method is POST - this is cgi request [17:28:56]url: /json_proto [17:28:56]query_string will be loaded in cgi processing [17:28:56]execute_cgi json_proto POST (null) [17:28:56]execute_cgi path=json_proto method=POST [17:28:56]POST find Content-Length [17:28:56]Host: 172.17.63.131:8080 [17:28:56]Content-Length: 677 [17:28:56]Content-Type: application/json [17:28:56] [17:28:56]POST finish read [17:28:56]Found Content-Length = 677 [17:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:56]execute_script... [17:28: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)31664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:56]POST & json_proto [17:28:56]process_json_proto [17:28:56]json parsed OK: [17:28:56]protocol is kg_v1.0 [17:28:56]action value=close_receipt [17:28:56]process_action close_receipt [17:28:56]cmd_close_receipt [17:28:56]MH_GetDate [17:28:56]Write to MH i2c: F0 00 00 D0 1F DE [17:28:56]Write i2c OK [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: F0 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: F0 09 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: F0 09 00 D0 1F 00 58 78 1E 67 22 05 6E 64 35 [17:28:56]GetLastDocTimeStamp 1730050032 [17:28:56]current date 1730050136 [17:28:56]FM_GetShiftState [17:28:56]SAM_PROTO_GetShiftState [17:28:56]wFMCommunicate request_size=4 [17:28:56]MH_SAM_APDU [17:28:56]CAPDU: 80 13 01 00 [17:28:56]Write to MH i2c: E2 08 00 D1 1F 80 13 01 00 00 00 00 00 6D [17:28:56]Write i2c OK [17:28:56]MH_I2C_Read... [17:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:56]Read from MH i2c: E2 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 0E 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 0E 00 D1 1F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AE [17:28:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:28:56]wFMCommunicate OK [17:28:56]SAM_PROTO_GetShiftState done [17:28:56]FM_GetShiftState done [17:28:56]opened in 1729989159 [17:28:56]opened+sec_in_day 1730075559 [17:28:56]quantity*price = 70044 [17:28:56]sum+1 = 70045 [17:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 378 27.10.2024 17:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192346 ФПД: 220428930607421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192346&fm=220428930607421&tin=02508201610067®Number=0000000000091776&sum=70000 [17:28:57]StoreToDocumentArchive [17:28:57]shift 542 fd 192346 [17:28:57]save to /storage/0542/doc_00192346 [17:28:57]save last doc name /storage/0542/doc_00192346 to /storage/kkm_last_doc_name [17:28:57]save OK [17:28:57]Clear old archive folders... [17:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:57]tlvbuf is 00300810 [17:28:57]SAM_PROTO_ClearQueue [17:28:57]wFMCommunicate request_size=4 [17:28:57]MH_SAM_APDU [17:28:57]CAPDU: 80 09 00 00 [17:28:57]Write to MH i2c: E2 08 00 DE 1F 80 09 00 00 00 00 00 00 6F [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [17:28:57]RAPDU: 90 00 [17:28:57]wFMCommunicate OK [17:28:57]SAM_PROTO_ClearQueue done [17:28:57]KKMCreateOFDPacket [17:28:57]OFDProtocolAddRootSTLVToBuf [17:28:57]FM_MakeSignedData [17:28:57]FM_MakeSignedData [17:28:57]SAM_PROTO_SignData [17:28:57]wFMCommunicate request_size=4 [17:28:57]MH_SAM_APDU [17:28:57]CAPDU: 80 0D 01 02 [17:28:57]Write to MH i2c: E2 08 00 DF 1F 80 0D 01 02 00 00 00 00 77 [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [17:28:57]RAPDU: 90 00 [17:28:57]wFMCommunicate OK [17:28:57]wFMCommunicate request_size=255 [17:28:57]MH_SAM_APDU [17: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 58 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EF 02 00 35 04 06 00 C8 [17:28:57]Write to MH i2c: E2 02 01 E0 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 58 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EF 02 00 35 04 06 00 C8 00 00 1E [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [17:28:57]RAPDU: 90 00 [17:28:57]wFMCommunicate OK [17:28:57]wFMCommunicate request_size=10 [17:28:57]MH_SAM_APDU [17:28:57]CAPDU: 80 0D 02 02 05 7A 9C 1B 69 3D [17:28:57]Write to MH i2c: E2 0D 00 E1 1F 80 0D 02 02 05 00 7A 9C 1B 69 3D 00 00 5B [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [17:28:57]RAPDU: 90 00 [17:28:57]wFMCommunicate OK [17:28:57]wFMCommunicate request_size=4 [17:28:57]MH_SAM_APDU [17:28:57]CAPDU: 80 0D 03 02 [17:28:57]Write to MH i2c: E2 08 00 E2 1F 80 0D 03 02 00 00 00 00 7C [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 0B 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 0B 00 E2 1F 00 C9 8B 0E B1 CC 74 F0 E1 90 00 A1 [17:28:57]RAPDU: C9 8B 0E B1 CC 74 F0 E1 90 00 [17:28:57]wFMCommunicate OK [17:28:57]SAM_PROTO_SignData done [17:28:57]FM_MakeSignedData done [17:28:57]CreateOFDProtocolMessage [17:28:57]wFMCommunicate request_size=4 [17:28:57]MH_SAM_APDU [17:28:57]CAPDU: 80 11 00 00 [17:28:57]Write to MH i2c: E2 08 00 E3 1F 80 11 00 00 00 00 00 00 7C [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:57]Read from MH i2c: E2 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 17 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: E2 17 00 E3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [17:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:28:57]wFMCommunicate OK [17:28:57]CreateOFDProtocolMessage done [17:28:57]OFDSenderStorePacket 192346 [17:28:57]StoreOFDPacket docnum=192346 [17:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F 1D 07 01 A9 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 58 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EF 02 00 35 04 06 00 C8 7A 9C 1B 69 3D C9 8B 0E B1 CC 74 F0 E1 [17:28:57]CheckFolder [17:28:57]dirname=/storage/ofd_packets [17:28:57]CheckFolder done [17:28:57]ProducePacketName [17:28:57]name=ofd_packets/00192346 [17:28:57]NVStorageSaveData ofd_packets/00192346 [17:28:57]File name is /storage/ofd_packets/00192346 [17:28:57]Write 301 bytes [17:28:57]NVStorageSaveData done [17:28:57]OFDSenderStorePacket done [17:28:57]KKMCreateOFDPacket done [17:28:57]NVStorageSaveData kkm_last_timestamp [17:28:57]File name is /storage/kkm_last_timestamp [17:28:57]Write 4 bytes [17:28:57]NVStorageSaveData done [17:28:57]ExternCall_PrintAddStr [17:28:57]wPrintStart [17:28:57]Write to MH i2c: 01 00 00 E4 1F 03 [17:28:57]Write i2c OK [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: 01 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: 01 07 00 [17:28:57]MH_I2C_Read... [17:28:57]Read from MH i2c: 01 07 00 E4 1F 00 00 00 00 00 FF 0F 18 [17:28:57]RasterBufferAndPrint [17:28:57]line Счет N : (1)31664 [17:28:57]line ИНН: 02508201610067 [17:28:57]line Контрольно-Кассовый Чек [17:28:57]line ПРОДАЖА [17:28:57]line ТРК (МРК, ГНК) : 21 [17:28:57]line Товар: 2710124130 [17:28:57]line Аи-92-К-5 [17:28:57]line 10.470 * 66.90 [17:28:57]line = 700.44 [17:28:57]line НДС 12% НСП 1% [17:28:57]line > о реализуемом товаре [17:28:57]line ОКРУГЛЕНИЕ: -0.44 [17:28:57]line ИТОГО: 700.00 [17:28:57]line Внесено: 700.00 [17:28:57]line СДАЧА: 0.00 [17:28:57]line НСП 1% : 6.20 [17:28:57]line НДС 12% : 74.38 [17:28:57]line Наличными: 700.00 [17:28:57]line Безнал.: 0.00 [17:28:57]line Место: АЗС № 170 "Партнер Нефть" [17:28:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:28:57]line СНО: Общий режим [17:28:57]line Чек 378 27.10.2024 17:28 [17:28:57]line Смена: 542 ФФД: 1.0 [17:28:57]line ЗНМ: 0300000110 [17:28:57]line РНМ: 0000000000091776 [17:28:57]line Версия ККМ: 001 [17:28:57]line ФМ: 0000000000871754 [17:28:57]line ФД: 192346 [17:28:57]line ФПД: 220428930607421 [17:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172856&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192346&fm=220428930607421&tin=02508201610067®Number=0000000000091776&sum=70000 [17:28:58]OFD Sender: Processing packet 192346 [packets to send 75, broken 74] [17:28:58]ProducePacketName [17:28:58]name=ofd_packets/00192346 [17:28:58]OFD Sender: To server: pG, [17:28:58]CommunicateWithHost lk.salyk.kg:30040 [17:28:58]ConnectInit lk.salyk.kg [17:28:58]written 0, free lines is 4095 [17:28:58]Connected sock=10 [17:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F 1D 07 01 A9 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 58 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EF 02 00 35 04 06 00 C8 7A 9C 1B 69 3D C9 8B 0E B1 CC 74 F0 E1 [17: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 37 35 34 4F 00 00 00 76 84 47 00 0B 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A EF 02 00 F4 03 04 00 1F 1D 1E 67 B6 04 01 00 00 AE 2E 62 76 6A C3 71 CC [17:28:58]CommunicateWithHost err = 0 [17:28:58]CheckOFDResponse [17:28:58]1017 (14) - 77093643461234 [17:28:58]1041 (16) - 0000000000871754 [17:28:58]1040 (4) - 192346 [17:28:58]1012 (4) - 27.10.2024 10:59 [17:28:58]1206 (1) - 0 [17:28:58]OFD Sender: Remove packet 192346 [17:28:58]ProducePacketName [17:28:58]name=ofd_packets/00192346 [17:28:58]NVStorageDeleteData [17:28:58]Write to MH i2c: 01 00 00 0F 20 2F [17:28:58]Write i2c OK [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: 01 [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: 01 07 00 [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 BE 0C 00 [17:28:58]RasterBufferAndPrint [17:28:58]line [17:28:58]line [17:28:58]line [17:28:58]line [17:28:58]line [17:28:58]written 0, free lines is 3268 [17:28:58]MH_Cut [17:28:58]Write to MH i2c: D1 01 00 16 20 01 08 [17:28:58]Write i2c OK [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: D1 [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: D1 01 00 [17:28:58]MH_I2C_Read... [17:28:58]Read from MH i2c: D1 01 00 16 20 00 07 [17:28:58]Write to MH i2c: 01 00 00 17 20 37 [17:28:58]Write i2c OK [17:28:58]MH_I2C_Read... [17:28:58]OFD Sender: No OFD packet to send [17:28:59]*** Cut start [17:28:59]*** Partial cut [17:28:59]*** CUTSNS_PIN = 1 [17:28:59]*** CUTSNS_PIN = 0 [17:28:59]*** Brake cut motor [17:28:59]Read from MH i2c: 01 [17:29:00]MH_I2C_Read... [17:29:00]*** Stop cut motor [17:29:00]*** Cut end [17:29:00]Read from MH i2c: 01 07 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [17:29:00]process_action close_receipt done [17:29:00]requested_data is exist [17:29:00]produce_requested_data [17:29:00]requested_item fm.sn is exist - process it [17:29:00]wFMCommunicate request_size=4 [17:29:00]MH_SAM_APDU [17:29:00]CAPDU: 80 11 00 00 [17:29:00]Write to MH i2c: E2 08 00 18 20 80 11 00 00 00 00 00 00 B2 [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:00]Read from MH i2c: E2 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 17 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 17 00 18 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [17:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:00]wFMCommunicate OK [17:29:00]requested_item fd.num is exist - process it [17:29:00]SAM_PROTO_GetFieldsCounters [17:29:00]wFMCommunicate request_size=4 [17:29:00]MH_SAM_APDU [17:29:00]CAPDU: 80 13 00 00 [17:29:00]Write to MH i2c: E2 08 00 19 20 80 13 00 00 00 00 00 00 B5 [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:00]Read from MH i2c: E2 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 62 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 62 00 19 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:29:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:00]wFMCommunicate OK [17:29:00]SAM_PROTO_GetFieldsCounters done [17:29:00]requested_item shift.num is exist - process it [17:29:00]requested_item shift.opened is exist - process it [17:29:00]req_shift_opened [17:29:00]FM_GetShiftState [17:29:00]SAM_PROTO_GetShiftState [17:29:00]wFMCommunicate request_size=4 [17:29:00]MH_SAM_APDU [17:29:00]CAPDU: 80 13 01 00 [17:29:00]Write to MH i2c: E2 08 00 1A 20 80 13 01 00 00 00 00 00 B7 [17:29:00]Write i2c OK [17:29:00]MH_I2C_Read... [17:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:00]Read from MH i2c: E2 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 0E 00 [17:29:00]MH_I2C_Read... [17:29:00]Read from MH i2c: E2 0E 00 1A 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F8 [17:29:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:29:00]wFMCommunicate OK [17:29:00]SAM_PROTO_GetShiftState done [17:29:00]FM_GetShiftState done [17:29:00]req_shift_opened done [17:29:00]requested_item shift.open_date is exist - process it [17:29:00]req_shift_open_date [17:29:00]req_shift_open_date done [17:29:00]produce_requested_data done [17:29:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192346,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:29:00]process_action_free close_receipt [17:29:00]json_value_free [17:29:00]json_value_free done [17:29:00]process_json_proto returns [17:29:00]Send response to host [17:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192346,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:29:00]free response buf [17:29:00]execute_script done [17:29:00]execute_script returns [17:29:00]free content buf [17:29:00]Sock 9.Close socket [17:29:00]Sock 9.Thread stoped [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:14]accept exits with 7 [17:29:14]New connection [17:29:14]New thread 3067080036 created [17:29:14]Thread 3066936676 joined [17:29:14]Waiting for new connection... [17:29:14] Sock 7.Parse request [17:29:14]Sock 7.Check first char [17:29:14]Sock 7.First char is OK [17:29:14]request: POST /json_proto HTTP/1.0 [17:29:14]Method: POST [17:29:14]URL: /json_proto [17:29:14]Method is POST - this is cgi request [17:29:14]url: /json_proto [17:29:14]query_string will be loaded in cgi processing [17:29:14]execute_cgi json_proto POST (null) [17:29:14]execute_cgi path=json_proto method=POST [17:29:14]POST find Content-Length [17:29:14]Host: 172.17.63.131:8080 [17:29:14]Content-Length: 676 [17:29:14]Content-Type: application/json [17:29:14] [17:29:14]POST finish read [17:29:14]Found Content-Length = 676 [17:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:14]execute_script... [17: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)31665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:14]POST & json_proto [17:29:14]process_json_proto [17:29:14]json parsed OK: [17:29:14]protocol is kg_v1.0 [17:29:14]action value=close_receipt [17:29:14]process_action close_receipt [17:29:14]cmd_close_receipt [17:29:14]MH_GetDate [17:29:14]Write to MH i2c: F0 00 00 1B 20 2A [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: F0 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: F0 09 00 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: F0 09 00 1B 20 00 6B 78 1E 67 22 05 6E 64 94 [17:29:14]GetLastDocTimeStamp 1730050136 [17:29:14]current date 1730050155 [17:29:14]FM_GetShiftState [17:29:14]SAM_PROTO_GetShiftState [17:29:14]wFMCommunicate request_size=4 [17:29:14]MH_SAM_APDU [17:29:14]CAPDU: 80 13 01 00 [17:29:14]Write to MH i2c: E2 08 00 1C 20 80 13 01 00 00 00 00 00 B9 [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0E 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0E 00 1C 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FA [17:29:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:29:15]wFMCommunicate OK [17:29:15]SAM_PROTO_GetShiftState done [17:29:15]FM_GetShiftState done [17:29:15]opened in 1729989159 [17:29:15]opened+sec_in_day 1730075559 [17:29:15]quantity*price = 20003 [17:29:15]sum+1 = 20004 [17:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 379 27.10.2024 17:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192347 ФПД: 41139651586882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192347&fm=41139651586882&tin=02508201610067®Number=0000000000091776&sum=20000 [17:29:16]StoreToDocumentArchive [17:29:16]shift 542 fd 192347 [17:29:16]save to /storage/0542/doc_00192347 [17:29:16]save last doc name /storage/0542/doc_00192347 to /storage/kkm_last_doc_name [17:29:16]save OK [17:29:16]Clear old archive folders... [17:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:16]tlvbuf is 00348000 [17:29:16]SAM_PROTO_ClearQueue [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 09 00 00 [17:29:16]Write to MH i2c: E2 08 00 29 20 80 09 00 00 00 00 00 00 BB [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_ClearQueue done [17:29:16]KKMCreateOFDPacket [17:29:16]OFDProtocolAddRootSTLVToBuf [17:29:16]FM_MakeSignedData [17:29:16]FM_MakeSignedData [17:29:16]SAM_PROTO_SignData [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 01 02 [17:29:16]Write to MH i2c: E2 08 00 2A 20 80 0D 01 02 00 00 00 00 C3 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=255 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 6B 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EF 02 00 35 04 06 00 25 [17:29:16]Write to MH i2c: E2 02 01 2B 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 6B 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EF 02 00 35 04 06 00 25 00 00 8E [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=10 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 02 02 05 6A 92 51 AB 42 [17:29:16]Write to MH i2c: E2 0D 00 2C 20 80 0D 02 02 05 00 6A 92 51 AB 42 00 00 0A [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 03 02 [17:29:16]Write to MH i2c: E2 08 00 2D 20 80 0D 03 02 00 00 00 00 C8 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0B 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0B 00 2D 20 00 87 AD EC 58 AF 40 FA BE 90 00 E8 [17:29:16]RAPDU: 87 AD EC 58 AF 40 FA BE 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_SignData done [17:29:16]FM_MakeSignedData done [17:29:16]CreateOFDProtocolMessage [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 11 00 00 [17:29:16]Write to MH i2c: E2 08 00 2E 20 80 11 00 00 00 00 00 00 C8 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 2E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [17:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:16]wFMCommunicate OK [17:29:16]CreateOFDProtocolMessage done [17:29:16]OFDSenderStorePacket 192347 [17:29:16]StoreOFDPacket docnum=192347 [17:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 5E 07 01 E8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 6B 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EF 02 00 35 04 06 00 25 6A 92 51 AB 42 87 AD EC 58 AF 40 FA BE [17:29:16]CheckFolder [17:29:16]dirname=/storage/ofd_packets [17:29:16]CheckFolder done [17:29:16]ProducePacketName [17:29:16]name=ofd_packets/00192347 [17:29:16]NVStorageSaveData ofd_packets/00192347 [17:29:16]File name is /storage/ofd_packets/00192347 [17:29:16]Write 301 bytes [17:29:16]NVStorageSaveData done [17:29:16]OFDSenderStorePacket done [17:29:16]KKMCreateOFDPacket done [17:29:16]NVStorageSaveData kkm_last_timestamp [17:29:16]File name is /storage/kkm_last_timestamp [17:29:16]Write 4 bytes [17:29:16]NVStorageSaveData done [17:29:16]ExternCall_PrintAddStr [17:29:16]wPrintStart [17:29:16]Write to MH i2c: 01 00 00 2F 20 4F [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 2F 20 00 00 00 00 00 FF 0F 64 [17:29:16]RasterBufferAndPrint [17:29:16]line Счет N : (1)31665 [17:29:16]line ИНН: 02508201610067 [17:29:16]line Контрольно-Кассовый Чек [17:29:16]line ПРОДАЖА [17:29:16]line ТРК (МРК, ГНК) : 12 [17:29:16]line Товар: 2710124130 [17:29:16]line Аи-92-К-5 [17:29:16]line 2.990 * 66.90 [17:29:16]line = 200.03 [17:29:16]line НДС 12% НСП 1% [17:29:16]line > о реализуемом товаре [17:29:16]line ОКРУГЛЕНИЕ: -0.03 [17:29:16]line ИТОГО: 200.00 [17:29:16]line Внесено: 200.00 [17:29:16]line СДАЧА: 0.00 [17:29:16]line НСП 1% : 1.77 [17:29:16]line НДС 12% : 21.24 [17:29:16]line Наличными: 200.00 [17:29:16]line Безнал.: 0.00 [17:29:16]line Место: АЗС № 170 "Партнер Нефть" [17:29:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:29:16]line СНО: Общий режим [17:29:16]line Чек 379 27.10.2024 17:29 [17:29:16]line Смена: 542 ФФД: 1.0 [17:29:16]line ЗНМ: 0300000110 [17:29:16]line РНМ: 0000000000091776 [17:29:16]line Версия ККМ: 001 [17:29:16]line ФМ: 0000000000871754 [17:29:16]line ФД: 192347 [17:29:16]line ФПД: 41139651586882 [17:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192347&fm=41139651586882&tin=02508201610067®Number=0000000000091776&sum=20000 [17:29:17]OFD Sender: Processing packet 192347 [packets to send 75, broken 74] [17:29:17]ProducePacketName [17:29:17]name=ofd_packets/00192347 [17:29:17]OFD Sender: To server: pG, [17:29:17]CommunicateWithHost lk.salyk.kg:30040 [17:29:17]ConnectInit lk.salyk.kg [17:29:17]written 0, free lines is 4095 [17:29:17]Connected sock=10 [17:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 5E 07 01 E8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 6B 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B EF 02 00 35 04 06 00 25 6A 92 51 AB 42 87 AD EC 58 AF 40 FA BE [17:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 7C 47 00 EE 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 37 35 34 10 04 04 00 5B EF 02 00 F4 03 04 00 32 1D 1E 67 B6 04 01 00 00 64 87 85 DA 95 11 0A 63 [17:29:17]CommunicateWithHost err = 0 [17:29:17]CheckOFDResponse [17:29:17]1017 (14) - 77093643461234 [17:29:17]1041 (16) - 0000000000871754 [17:29:17]1040 (4) - 192347 [17:29:17]1012 (4) - 27.10.2024 11:00 [17:29:17]1206 (1) - 0 [17:29:17]OFD Sender: Remove packet 192347 [17:29:17]ProducePacketName [17:29:17]name=ofd_packets/00192347 [17:29:17]NVStorageDeleteData [17:29:17]Write to MH i2c: 01 00 00 5A 20 7A [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 07 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 C3 0C 50 [17:29:17]RasterBufferAndPrint [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]written 0, free lines is 3276 [17:29:17]MH_Cut [17:29:17]Write to MH i2c: D1 01 00 61 20 01 53 [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 01 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 01 00 61 20 00 52 [17:29:17]Write to MH i2c: 01 00 00 62 20 82 [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]OFD Sender: No OFD packet to send [17:29:18]*** Cut start [17:29:18]*** Partial cut [17:29:18]*** CUTSNS_PIN = 1 [17:29:18]*** CUTSNS_PIN = 0 [17:29:18]*** Brake cut motor [17:29:18]Read from MH i2c: 01 [17:29:18]MH_I2C_Read... [17:29:18]*** Stop cut motor [17:29:18]*** Cut end [17:29:18]Read from MH i2c: 01 07 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 FF 0F 97 [17:29:18]process_action close_receipt done [17:29:18]requested_data is exist [17:29:18]produce_requested_data [17:29:18]requested_item fm.sn is exist - process it [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 11 00 00 [17:29:18]Write to MH i2c: E2 08 00 63 20 80 11 00 00 00 00 00 00 FD [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 17 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 17 00 63 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [17:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:19]wFMCommunicate OK [17:29:19]requested_item fd.num is exist - process it [17:29:19]SAM_PROTO_GetFieldsCounters [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 13 00 00 [17:29:19]Write to MH i2c: E2 08 00 64 20 80 13 00 00 00 00 00 00 00 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 62 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 62 00 64 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:19]wFMCommunicate OK [17:29:19]SAM_PROTO_GetFieldsCounters done [17:29:19]requested_item shift.num is exist - process it [17:29:19]requested_item shift.opened is exist - process it [17:29:19]req_shift_opened [17:29:19]FM_GetShiftState [17:29:19]SAM_PROTO_GetShiftState [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 13 01 00 [17:29:19]Write to MH i2c: E2 08 00 65 20 80 13 01 00 00 00 00 00 02 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 0E 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 0E 00 65 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 43 [17:29:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:29:19]wFMCommunicate OK [17:29:19]SAM_PROTO_GetShiftState done [17:29:19]FM_GetShiftState done [17:29:19]req_shift_opened done [17:29:19]requested_item shift.open_date is exist - process it [17:29:19]req_shift_open_date [17:29:19]req_shift_open_date done [17:29:19]produce_requested_data done [17:29:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192347,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:29:19]process_action_free close_receipt [17:29:19]json_value_free [17:29:19]json_value_free done [17:29:19]process_json_proto returns [17:29:19]Send response to host [17:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192347,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:29:19]free response buf [17:29:19]execute_script done [17:29:19]execute_script returns [17:29:19]free content buf [17:29:19]Sock 7.Close socket [17:29:19]Sock 7.Thread stoped [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:29:58]accept exits with 9 [17:29:58]New connection [17:29:58]New thread 3066936676 created [17:29:58]Thread 3067080036 joined [17:29:58]Waiting for new connection... [17:29:58] Sock 9.Parse request [17:29:58]Sock 9.Check first char [17:29:58]Sock 9.First char is OK [17:29:58]request: POST /json_proto HTTP/1.0 [17:29:58]Method: POST [17:29:58]URL: /json_proto [17:29:58]Method is POST - this is cgi request [17:29:58]url: /json_proto [17:29:58]query_string will be loaded in cgi processing [17:29:58]execute_cgi json_proto POST (null) [17:29:58]execute_cgi path=json_proto method=POST [17:29:58]POST find Content-Length [17:29:58]Host: 172.17.63.131:8080 [17:29:58]Content-Length: 678 [17:29:58]Content-Type: application/json [17:29:58] [17:29:58]POST finish read [17:29:58]Found Content-Length = 678 [17:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31663", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:58]execute_script... [17:29:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31663", "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" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:58]POST & json_proto [17:29:58]process_json_proto [17:29:58]json parsed OK: [17:29:58]protocol is kg_v1.0 [17:29:58]action value=close_receipt [17:29:58]process_action close_receipt [17:29:58]cmd_close_receipt [17:29:58]MH_GetDate [17:29:58]Write to MH i2c: F0 00 00 66 20 75 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: F0 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: F0 09 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: F0 09 00 66 20 00 96 78 1E 67 22 05 6E 64 0A [17:29:58]GetLastDocTimeStamp 1730050155 [17:29:58]current date 1730050198 [17:29:58]FM_GetShiftState [17:29:58]SAM_PROTO_GetShiftState [17:29:58]wFMCommunicate request_size=4 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 13 01 00 [17:29:58]Write to MH i2c: E2 08 00 67 20 80 13 01 00 00 00 00 00 04 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 0E 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 0E 00 67 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 45 [17:29:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:29:58]wFMCommunicate OK [17:29:58]SAM_PROTO_GetShiftState done [17:29:58]FM_GetShiftState done [17:29:58]opened in 1729989159 [17:29:58]opened+sec_in_day 1730075559 [17:29:58]quantity*price = 200025 [17:29:58]sum+1 = 200026 [17:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 380 27.10.2024 17:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192348 ФПД: 279171951844063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192348&fm=279171951844063&tin=02508201610067®Number=0000000000091776&sum=200000 [17:29:59]StoreToDocumentArchive [17:29:59]shift 542 fd 192348 [17:29:59]save to /storage/0542/doc_00192348 [17:29:59]save last doc name /storage/0542/doc_00192348 to /storage/kkm_last_doc_name [17:29:59]save OK [17:29:59]Clear old archive folders... [17:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:29:59]tlvbuf is B6F77900 [17:29:59]SAM_PROTO_ClearQueue [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 09 00 00 [17:29:59]Write to MH i2c: E2 08 00 74 20 80 09 00 00 00 00 00 00 06 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [17:29:59]RAPDU: 90 00 [17:29:59]wFMCommunicate OK [17:29:59]SAM_PROTO_ClearQueue done [17:29:59]KKMCreateOFDPacket [17:29:59]OFDProtocolAddRootSTLVToBuf [17:29:59]FM_MakeSignedData [17:29:59]FM_MakeSignedData [17:29:59]SAM_PROTO_SignData [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 0D 01 02 [17:29:59]Write to MH i2c: E2 08 00 75 20 80 0D 01 02 00 00 00 00 0E [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [17:29:59]RAPDU: 90 00 [17:29:59]wFMCommunicate OK [17:29:59]wFMCommunicate request_size=255 [17:29:59]MH_SAM_APDU [17:29: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 96 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EF 02 00 35 04 06 00 FD E7 C9 05 [17:29:59]Write to MH i2c: E2 02 01 76 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 96 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EF 02 00 35 04 06 00 FD E7 C9 05 00 00 B5 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [17:29:59]RAPDU: 90 00 [17:29:59]wFMCommunicate OK [17:29:59]wFMCommunicate request_size=7 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 0D 02 02 02 5A DF [17:29:59]Write to MH i2c: E2 0A 00 77 20 80 0D 02 02 02 00 5A DF 00 00 4E [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [17:29:59]RAPDU: 90 00 [17:29:59]wFMCommunicate OK [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 0D 03 02 [17:29:59]Write to MH i2c: E2 08 00 78 20 80 0D 03 02 00 00 00 00 13 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0B 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0B 00 78 20 00 7F 14 24 9C C7 BE 8E ED 90 00 67 [17:29:59]RAPDU: 7F 14 24 9C C7 BE 8E ED 90 00 [17:29:59]wFMCommunicate OK [17:29:59]SAM_PROTO_SignData done [17:29:59]FM_MakeSignedData done [17:29:59]CreateOFDProtocolMessage [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 11 00 00 [17:29:59]Write to MH i2c: E2 08 00 79 20 80 11 00 00 00 00 00 00 13 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 17 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 17 00 79 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [17:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:59]wFMCommunicate OK [17:29:59]CreateOFDProtocolMessage done [17:29:59]OFDSenderStorePacket 192348 [17:29:59]StoreOFDPacket docnum=192348 [17:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C4 EB 04 01 28 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 96 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EF 02 00 35 04 06 00 FD E7 C9 05 5A DF 7F 14 24 9C C7 BE 8E ED [17:29:59]CheckFolder [17:29:59]dirname=/storage/ofd_packets [17:29:59]CheckFolder done [17:29:59]ProducePacketName [17:29:59]name=ofd_packets/00192348 [17:29:59]NVStorageSaveData ofd_packets/00192348 [17:29:59]File name is /storage/ofd_packets/00192348 [17:29:59]Write 298 bytes [17:29:59]NVStorageSaveData done [17:29:59]OFDSenderStorePacket done [17:29:59]KKMCreateOFDPacket done [17:29:59]NVStorageSaveData kkm_last_timestamp [17:29:59]File name is /storage/kkm_last_timestamp [17:29:59]Write 4 bytes [17:29:59]NVStorageSaveData done [17:29:59]ExternCall_PrintAddStr [17:29:59]wPrintStart [17:29:59]Write to MH i2c: 01 00 00 7A 20 9A [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 07 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 07 00 7A 20 00 00 00 00 00 FF 0F AF [17:29:59]RasterBufferAndPrint [17:29:59]line Счет N : (1)31663 [17:29:59]line ИНН: 02508201610067 [17:29:59]line Контрольно-Кассовый Чек [17:29:59]line ПРОДАЖА [17:29:59]line ТРК (МРК, ГНК) : 11 [17:29:59]line Товар: 2710194210 [17:29:59]line ДТ-К-5 [17:29:59]line 26.250 * 76.20 [17:29:59]line = 2000.25 [17:29:59]line НДС 12% НСП 1% [17:29:59]line > о реализуемом товаре [17:29:59]line ОКРУГЛЕНИЕ: -0.25 [17:29:59]line ИТОГО: 2000.00 [17:29:59]line Внесено: 2000.00 [17:29:59]line СДАЧА: 0.00 [17:29:59]line НСП 1% : 17.70 [17:29:59]line НДС 12% : 212.42 [17:29:59]line Наличными: 2000.00 [17:29:59]line Безнал.: 0.00 [17:29:59]line Место: АЗС № 170 "Партнер Нефть" [17:29:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:29:59]line СНО: Общий режим [17:29:59]line Чек 380 27.10.2024 17:29 [17:29:59]line Смена: 542 ФФД: 1.0 [17:29:59]line ЗНМ: 0300000110 [17:29:59]line РНМ: 0000000000091776 [17:29:59]line Версия ККМ: 001 [17:29:59]line ФМ: 0000000000871754 [17:29:59]line ФД: 192348 [17:29:59]line ФПД: 279171951844063 [17:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192348&fm=279171951844063&tin=02508201610067®Number=0000000000091776&sum=200000 [17:30:00]OFD Sender: Processing packet 192348 [packets to send 75, broken 74] [17:30:00]ProducePacketName [17:30:00]name=ofd_packets/00192348 [17:30:00]OFD Sender: To server: pG, [17:30:00]CommunicateWithHost lk.salyk.kg:30040 [17:30:00]ConnectInit lk.salyk.kg [17:30:00]written 0, free lines is 4095 [17:30:00]Connected sock=10 [17:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C4 EB 04 01 28 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 96 78 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EF 02 00 35 04 06 00 FD E7 C9 05 5A DF 7F 14 24 9C C7 BE 8E ED [17:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 AF 47 00 F8 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C EF 02 00 F4 03 04 00 5D 1D 1E 67 B6 04 01 00 00 09 1C 42 8C 50 7F CA E0 [17:30:00]CommunicateWithHost err = 0 [17:30:00]CheckOFDResponse [17:30:00]1017 (14) - 77093643461234 [17:30:00]1041 (16) - 0000000000871754 [17:30:00]1040 (4) - 192348 [17:30:00]1012 (4) - 27.10.2024 11:00 [17:30:00]1206 (1) - 0 [17:30:00]OFD Sender: Remove packet 192348 [17:30:00]ProducePacketName [17:30:00]name=ofd_packets/00192348 [17:30:00]NVStorageDeleteData [17:30:00]Write to MH i2c: 01 00 00 A5 20 C5 [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: 01 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: 01 07 00 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 C3 0C 9B [17:30:00]RasterBufferAndPrint [17:30:00]line [17:30:00]line [17:30:00]line [17:30:00]line [17:30:00]line [17:30:00]written 0, free lines is 3274 [17:30:00]MH_Cut [17:30:00]Write to MH i2c: D1 01 00 AC 20 01 9E [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: D1 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: D1 01 00 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: D1 01 00 AC 20 00 9D [17:30:00]Write to MH i2c: 01 00 00 AD 20 CD [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:00]OFD Sender: No OFD packet to send [17:30:01]*** Cut start [17:30:01]*** Partial cut [17:30:01]*** CUTSNS_PIN = 1 [17:30:01]*** CUTSNS_PIN = 0 [17:30:01]*** Brake cut motor [17:30:01]Read from MH i2c: 01 [17:30:01]MH_I2C_Read... [17:30:01]*** Stop cut motor [17:30:01]*** Cut end [17:30:01]Read from MH i2c: 01 07 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 AD 20 00 00 00 00 00 FF 0F E2 [17:30:01]process_action close_receipt done [17:30:01]requested_data is exist [17:30:01]produce_requested_data [17:30:01]requested_item fm.sn is exist - process it [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 11 00 00 [17:30:01]Write to MH i2c: E2 08 00 AE 20 80 11 00 00 00 00 00 00 48 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:02]Read from MH i2c: E2 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 17 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 17 00 AE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [17:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:30:02]wFMCommunicate OK [17:30:02]requested_item fd.num is exist - process it [17:30:02]SAM_PROTO_GetFieldsCounters [17:30:02]wFMCommunicate request_size=4 [17:30:02]MH_SAM_APDU [17:30:02]CAPDU: 80 13 00 00 [17:30:02]Write to MH i2c: E2 08 00 AF 20 80 13 00 00 00 00 00 00 4B [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:02]Read from MH i2c: E2 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 62 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 62 00 AF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:02]wFMCommunicate OK [17:30:02]SAM_PROTO_GetFieldsCounters done [17:30:02]requested_item shift.num is exist - process it [17:30:02]requested_item shift.opened is exist - process it [17:30:02]req_shift_opened [17:30:02]FM_GetShiftState [17:30:02]SAM_PROTO_GetShiftState [17:30:02]wFMCommunicate request_size=4 [17:30:02]MH_SAM_APDU [17:30:02]CAPDU: 80 13 01 00 [17:30:02]Write to MH i2c: E2 08 00 B0 20 80 13 01 00 00 00 00 00 4D [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:02]Read from MH i2c: E2 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 0E 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 0E 00 B0 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8E [17:30:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:30:02]wFMCommunicate OK [17:30:02]SAM_PROTO_GetShiftState done [17:30:02]FM_GetShiftState done [17:30:02]req_shift_opened done [17:30:02]requested_item shift.open_date is exist - process it [17:30:02]req_shift_open_date [17:30:02]req_shift_open_date done [17:30:02]produce_requested_data done [17:30:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192348,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:30:02]process_action_free close_receipt [17:30:02]json_value_free [17:30:02]json_value_free done [17:30:02]process_json_proto returns [17:30:02]Send response to host [17:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192348,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:30:02]free response buf [17:30:02]execute_script done [17:30:02]execute_script returns [17:30:02]free content buf [17:30:02]Sock 9.Close socket [17:30:02]Sock 9.Thread stoped [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:54]accept exits with 7 [17:31:54]New connection [17:31:54]New thread 3067080036 created [17:31:54]Thread 3066936676 joined [17:31:54]Waiting for new connection... [17:31:54] Sock 7.Parse request [17:31:54]Sock 7.Check first char [17:31:54]Sock 7.First char is OK [17:31:54]request: POST /json_proto HTTP/1.0 [17:31:54]Method: POST [17:31:54]URL: /json_proto [17:31:54]Method is POST - this is cgi request [17:31:54]url: /json_proto [17:31:54]query_string will be loaded in cgi processing [17:31:54]execute_cgi json_proto POST (null) [17:31:54]execute_cgi path=json_proto method=POST [17:31:54]POST find Content-Length [17:31:54]Host: 172.17.63.131:8080 [17:31:54]Content-Length: 681 [17:31:54]Content-Type: application/json [17:31:54] [17:31:54]POST finish read [17:31:54]Found Content-Length = 681 [17:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:54]execute_script... [17:31: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)31666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:54]POST & json_proto [17:31:54]process_json_proto [17:31:54]json parsed OK: [17:31:54]protocol is kg_v1.0 [17:31:54]action value=close_receipt [17:31:54]process_action close_receipt [17:31:54]cmd_close_receipt [17:31:54]MH_GetDate [17:31:54]Write to MH i2c: F0 00 00 B1 20 C0 [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: F0 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: F0 09 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: F0 09 00 B1 20 00 0B 79 1E 67 22 05 6E 64 CB [17:31:54]GetLastDocTimeStamp 1730050198 [17:31:54]current date 1730050315 [17:31:54]FM_GetShiftState [17:31:54]SAM_PROTO_GetShiftState [17:31:54]wFMCommunicate request_size=4 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 13 01 00 [17:31:54]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:54]Read from MH i2c: E2 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 0E 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 90 [17:31:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:31:54]wFMCommunicate OK [17:31:54]SAM_PROTO_GetShiftState done [17:31:54]FM_GetShiftState done [17:31:54]opened in 1729989159 [17:31:54]opened+sec_in_day 1730075559 [17:31:54]quantity*price = 140021 [17:31:54]sum+1 = 140023 [17:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 381 27.10.2024 17:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192349 ФПД: 22322807061828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192349&fm=22322807061828&tin=02508201610067®Number=0000000000091776&sum=140000 [17:31:55]StoreToDocumentArchive [17:31:55]shift 542 fd 192349 [17:31:55]save to /storage/0542/doc_00192349 [17:31:55]save last doc name /storage/0542/doc_00192349 to /storage/kkm_last_doc_name [17:31:55]save OK [17:31:55]Clear old archive folders... [17:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:55]tlvbuf is 00347BD0 [17:31:55]SAM_PROTO_ClearQueue [17:31:55]wFMCommunicate request_size=4 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 09 00 00 [17:31:55]Write to MH i2c: E2 08 00 BF 20 80 09 00 00 00 00 00 00 51 [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [17:31:55]RAPDU: 90 00 [17:31:55]wFMCommunicate OK [17:31:55]SAM_PROTO_ClearQueue done [17:31:55]KKMCreateOFDPacket [17:31:55]OFDProtocolAddRootSTLVToBuf [17:31:55]FM_MakeSignedData [17:31:55]FM_MakeSignedData [17:31:55]SAM_PROTO_SignData [17:31:55]wFMCommunicate request_size=4 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 0D 01 02 [17:31:55]Write to MH i2c: E2 08 00 C0 20 80 0D 01 02 00 00 00 00 59 [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [17:31:55]RAPDU: 90 00 [17:31:55]wFMCommunicate OK [17:31:55]wFMCommunicate request_size=255 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 0B 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EF 02 00 35 04 06 00 14 [17:31:55]Write to MH i2c: E2 02 01 C1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 0B 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EF 02 00 35 04 06 00 14 00 00 0D [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:56]OFD Sender: No OFD packet to send [17:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 03 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [17:31:56]RAPDU: 90 00 [17:31:56]wFMCommunicate OK [17:31:56]wFMCommunicate request_size=10 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 0D 02 02 05 4D 6E FC 3D 44 [17:31:56]Write to MH i2c: E2 0D 00 C2 20 80 0D 02 02 05 00 4D 6E FC 3D 44 00 00 9E [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 03 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [17:31:56]RAPDU: 90 00 [17:31:56]wFMCommunicate OK [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 0D 03 02 [17:31:56]Write to MH i2c: E2 08 00 C3 20 80 0D 03 02 00 00 00 00 5E [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0B 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0B 00 C3 20 00 56 79 D8 30 97 A0 A5 75 90 00 87 [17:31:56]RAPDU: 56 79 D8 30 97 A0 A5 75 90 00 [17:31:56]wFMCommunicate OK [17:31:56]SAM_PROTO_SignData done [17:31:56]FM_MakeSignedData done [17:31:56]CreateOFDProtocolMessage [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 11 00 00 [17:31:56]Write to MH i2c: E2 08 00 C4 20 80 11 00 00 00 00 00 00 5E [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 17 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 17 00 C4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [17:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:56]wFMCommunicate OK [17:31:56]CreateOFDProtocolMessage done [17:31:56]OFDSenderStorePacket 192349 [17:31:56]StoreOFDPacket docnum=192349 [17:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9D 11 07 01 9D 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 0B 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EF 02 00 35 04 06 00 14 4D 6E FC 3D 44 56 79 D8 30 97 A0 A5 75 [17:31:56]CheckFolder [17:31:56]dirname=/storage/ofd_packets [17:31:56]CheckFolder done [17:31:56]ProducePacketName [17:31:56]name=ofd_packets/00192349 [17:31:56]NVStorageSaveData ofd_packets/00192349 [17:31:56]File name is /storage/ofd_packets/00192349 [17:31:56]Write 301 bytes [17:31:56]NVStorageSaveData done [17:31:56]OFDSenderStorePacket done [17:31:56]KKMCreateOFDPacket done [17:31:56]NVStorageSaveData kkm_last_timestamp [17:31:56]File name is /storage/kkm_last_timestamp [17:31:56]Write 4 bytes [17:31:56]NVStorageSaveData done [17:31:56]ExternCall_PrintAddStr [17:31:56]wPrintStart [17:31:56]Write to MH i2c: 01 00 00 C5 20 E5 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 C5 20 00 00 00 00 00 FF 0F FA [17:31:56]RasterBufferAndPrint [17:31:56]line Счет N : (1)31666 [17:31:56]line ИНН: 02508201610067 [17:31:56]line Контрольно-Кассовый Чек [17:31:56]line ПРОДАЖА [17:31:56]line ТРК (МРК, ГНК) : 21 [17:31:56]line Товар: 2710124130 [17:31:56]line Аи-92-К-5 [17:31:56]line 20.930 * 66.90 [17:31:56]line = 1400.22 [17:31:56]line НДС 12% НСП 1% [17:31:56]line > о реализуемом товаре [17:31:56]line ОКРУГЛЕНИЕ: -0.22 [17:31:56]line ИТОГО: 1400.00 [17:31:56]line Внесено: 1400.00 [17:31:56]line СДАЧА: 0.00 [17:31:56]line НСП 1% : 12.39 [17:31:56]line НДС 12% : 148.70 [17:31:56]line Наличными: 1400.00 [17:31:56]line Безнал.: 0.00 [17:31:56]line Место: АЗС № 170 "Партнер Нефть" [17:31:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:31:56]line СНО: Общий режим [17:31:56]line Чек 381 27.10.2024 17:31 [17:31:56]line Смена: 542 ФФД: 1.0 [17:31:56]line ЗНМ: 0300000110 [17:31:56]line РНМ: 0000000000091776 [17:31:56]line Версия ККМ: 001 [17:31:56]line ФМ: 0000000000871754 [17:31:56]line ФД: 192349 [17:31:56]line ФПД: 22322807061828 [17:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192349&fm=22322807061828&tin=02508201610067®Number=0000000000091776&sum=140000 [17:31:56]written 0, free lines is 4095 [17:31:56]OFD Sender: Processing packet 192349 [packets to send 75, broken 74] [17:31:56]ProducePacketName [17:31:56]name=ofd_packets/00192349 [17:31:56]OFD Sender: To server: pG, [17:31:56]CommunicateWithHost lk.salyk.kg:30040 [17:31:56]ConnectInit lk.salyk.kg [17:31:56]Connected sock=10 [17:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9D 11 07 01 9D 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 0B 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EF 02 00 35 04 06 00 14 4D 6E FC 3D 44 56 79 D8 30 97 A0 A5 75 [17:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 08 47 00 A2 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D EF 02 00 F4 03 04 00 D2 1D 1E 67 B6 04 01 00 00 6D 1E 4B 73 36 E0 CB 96 [17:31:56]CommunicateWithHost err = 0 [17:31:56]CheckOFDResponse [17:31:56]1017 (14) - 77093643461234 [17:31:56]1041 (16) - 0000000000871754 [17:31:56]1040 (4) - 192349 [17:31:56]1012 (4) - 27.10.2024 11:02 [17:31:56]1206 (1) - 0 [17:31:56]OFD Sender: Remove packet 192349 [17:31:56]ProducePacketName [17:31:56]name=ofd_packets/00192349 [17:31:56]NVStorageDeleteData [17:31:56]Write to MH i2c: 01 00 00 F0 20 10 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 C0 0C E3 [17:31:56]RasterBufferAndPrint [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]line [17:31:56]written 0, free lines is 3273 [17:31:56]MH_Cut [17:31:56]Write to MH i2c: D1 01 00 F7 20 01 E9 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 01 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: D1 01 00 F7 20 00 E8 [17:31:56]Write to MH i2c: 01 00 00 F8 20 18 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:57]OFD Sender: No OFD packet to send [17:31:57]*** Cut start [17:31:57]*** Partial cut [17:31:57]*** CUTSNS_PIN = 1 [17:31:57]*** CUTSNS_PIN = 0 [17:31:57]*** Brake cut motor [17:31:58]Read from MH i2c: 01 [17:31:58]MH_I2C_Read... [17:31:58]*** Stop cut motor [17:31:58]*** Cut end [17:31:58]Read from MH i2c: 01 07 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 07 00 F8 20 00 00 00 00 00 FF 0F 2D [17:31:58]process_action close_receipt done [17:31:58]requested_data is exist [17:31:58]produce_requested_data [17:31:58]requested_item fm.sn is exist - process it [17:31:58]wFMCommunicate request_size=4 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 11 00 00 [17:31:58]Write to MH i2c: E2 08 00 F9 20 80 11 00 00 00 00 00 00 93 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 17 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 17 00 F9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [17:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:58]wFMCommunicate OK [17:31:58]requested_item fd.num is exist - process it [17:31:58]SAM_PROTO_GetFieldsCounters [17:31:58]wFMCommunicate request_size=4 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 13 00 00 [17:31:58]Write to MH i2c: E2 08 00 FA 20 80 13 00 00 00 00 00 00 96 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 62 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 62 00 FA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [17:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:58]wFMCommunicate OK [17:31:58]SAM_PROTO_GetFieldsCounters done [17:31:58]requested_item shift.num is exist - process it [17:31:58]requested_item shift.opened is exist - process it [17:31:58]req_shift_opened [17:31:58]FM_GetShiftState [17:31:58]SAM_PROTO_GetShiftState [17:31:58]wFMCommunicate request_size=4 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 13 01 00 [17:31:58]Write to MH i2c: E2 08 00 FB 20 80 13 01 00 00 00 00 00 98 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 0E 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 0E 00 FB 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D9 [17:31:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:31:58]wFMCommunicate OK [17:31:58]SAM_PROTO_GetShiftState done [17:31:58]FM_GetShiftState done [17:31:58]req_shift_opened done [17:31:58]requested_item shift.open_date is exist - process it [17:31:58]req_shift_open_date [17:31:58]req_shift_open_date done [17:31:58]produce_requested_data done [17:31:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192349,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:31:58]process_action_free close_receipt [17:31:58]json_value_free [17:31:58]json_value_free done [17:31:58]process_json_proto returns [17:31:58]Send response to host [17:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192349,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:31:58]free response buf [17:31:58]execute_script done [17:31:58]execute_script returns [17:31:58]free content buf [17:31:58]Sock 7.Close socket [17:31:58]Sock 7.Thread stoped [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:39]accept exits with 9 [17:32:39]New connection [17:32:39]New thread 3066936676 created [17:32:39]Thread 3067080036 joined [17:32:39]Waiting for new connection... [17:32:39] Sock 9.Parse request [17:32:39]Sock 9.Check first char [17:32:39]Sock 9.First char is OK [17:32:39]request: POST /json_proto HTTP/1.0 [17:32:39]Method: POST [17:32:39]URL: /json_proto [17:32:39]Method is POST - this is cgi request [17:32:39]url: /json_proto [17:32:39]query_string will be loaded in cgi processing [17:32:39]execute_cgi json_proto POST (null) [17:32:39]execute_cgi path=json_proto method=POST [17:32:39]POST find Content-Length [17:32:39]Host: 172.17.63.131:8080 [17:32:39]Content-Length: 676 [17:32:39]Content-Type: application/json [17:32:39] [17:32:39]POST finish read [17:32:39]Found Content-Length = 676 [17:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:39]execute_script... [17:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:39]POST & json_proto [17:32:39]process_json_proto [17:32:39]json parsed OK: [17:32:39]protocol is kg_v1.0 [17:32:39]action value=close_receipt [17:32:39]process_action close_receipt [17:32:39]cmd_close_receipt [17:32:39]MH_GetDate [17:32:39]Write to MH i2c: F0 00 00 FC 20 0B [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: F0 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: F0 09 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: F0 09 00 FC 20 00 38 79 1E 67 22 05 6E 64 43 [17:32:39]GetLastDocTimeStamp 1730050315 [17:32:39]current date 1730050360 [17:32:39]FM_GetShiftState [17:32:39]SAM_PROTO_GetShiftState [17:32:39]wFMCommunicate request_size=4 [17:32:39]MH_SAM_APDU [17:32:39]CAPDU: 80 13 01 00 [17:32:39]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:39]Read from MH i2c: E2 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: E2 0E 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DB [17:32:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:32:39]wFMCommunicate OK [17:32:39]SAM_PROTO_GetShiftState done [17:32:39]FM_GetShiftState done [17:32:39]opened in 1729989159 [17:32:39]opened+sec_in_day 1730075559 [17:32:39]quantity*price = 60009 [17:32:39]sum+1 = 60010 [17:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 382 27.10.2024 17:32 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192350 ФПД: 8901371520141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192350&fm=8901371520141&tin=02508201610067®Number=0000000000091776&sum=60000 [17:32:40]StoreToDocumentArchive [17:32:40]shift 542 fd 192350 [17:32:40]save to /storage/0542/doc_00192350 [17:32:40]save last doc name /storage/0542/doc_00192350 to /storage/kkm_last_doc_name [17:32:40]save OK [17:32:40]Clear old archive folders... [17:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:40]tlvbuf is 0037A620 [17:32:40]SAM_PROTO_ClearQueue [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 09 00 00 [17:32:40]Write to MH i2c: E2 08 00 0A 21 80 09 00 00 00 00 00 00 9D [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 03 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [17:32:40]RAPDU: 90 00 [17:32:40]wFMCommunicate OK [17:32:40]SAM_PROTO_ClearQueue done [17:32:40]KKMCreateOFDPacket [17:32:40]OFDProtocolAddRootSTLVToBuf [17:32:40]FM_MakeSignedData [17:32:40]FM_MakeSignedData [17:32:40]SAM_PROTO_SignData [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 0D 01 02 [17:32:40]Write to MH i2c: E2 08 00 0B 21 80 0D 01 02 00 00 00 00 A5 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 03 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [17:32:40]RAPDU: 90 00 [17:32:40]wFMCommunicate OK [17:32:40]wFMCommunicate request_size=255 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 38 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EF 02 00 35 04 06 00 08 [17:32:40]Write to MH i2c: E2 02 01 0C 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 38 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EF 02 00 35 04 06 00 08 00 00 42 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [17:32:41]RAPDU: 90 00 [17:32:41]wFMCommunicate OK [17:32:41]wFMCommunicate request_size=10 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 0D 02 02 05 18 83 16 64 8D [17:32:41]Write to MH i2c: E2 0D 00 0D 21 80 0D 02 02 05 00 18 83 16 64 8D 00 00 54 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [17:32:41]RAPDU: 90 00 [17:32:41]wFMCommunicate OK [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 0D 03 02 [17:32:41]Write to MH i2c: E2 08 00 0E 21 80 0D 03 02 00 00 00 00 AA [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0B 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0B 00 0E 21 00 EE E4 B1 6C 26 40 0A A6 90 00 B0 [17:32:41]RAPDU: EE E4 B1 6C 26 40 0A A6 90 00 [17:32:41]wFMCommunicate OK [17:32:41]SAM_PROTO_SignData done [17:32:41]FM_MakeSignedData done [17:32:41]CreateOFDProtocolMessage [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 11 00 00 [17:32:41]Write to MH i2c: E2 08 00 0F 21 80 11 00 00 00 00 00 00 AA [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 17 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 17 00 0F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [17:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:32:41]wFMCommunicate OK [17:32:41]CreateOFDProtocolMessage done [17:32:41]OFDSenderStorePacket 192350 [17:32:41]StoreOFDPacket docnum=192350 [17:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 69 07 01 89 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 38 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EF 02 00 35 04 06 00 08 18 83 16 64 8D EE E4 B1 6C 26 40 0A A6 [17:32:41]CheckFolder [17:32:41]dirname=/storage/ofd_packets [17:32:41]CheckFolder done [17:32:41]ProducePacketName [17:32:41]name=ofd_packets/00192350 [17:32:41]NVStorageSaveData ofd_packets/00192350 [17:32:41]File name is /storage/ofd_packets/00192350 [17:32:41]Write 301 bytes [17:32:41]NVStorageSaveData done [17:32:41]OFDSenderStorePacket done [17:32:41]KKMCreateOFDPacket done [17:32:41]NVStorageSaveData kkm_last_timestamp [17:32:41]File name is /storage/kkm_last_timestamp [17:32:41]Write 4 bytes [17:32:41]NVStorageSaveData done [17:32:41]ExternCall_PrintAddStr [17:32:41]wPrintStart [17:32:41]Write to MH i2c: 01 00 00 10 21 31 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: 01 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: 01 07 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: 01 07 00 10 21 00 00 00 00 00 FF 0F 46 [17:32:41]RasterBufferAndPrint [17:32:41]line Счет N : (1)31667 [17:32:41]line ИНН: 02508201610067 [17:32:41]line Контрольно-Кассовый Чек [17:32:41]line ПРОДАЖА [17:32:41]line ТРК (МРК, ГНК) : 21 [17:32:41]line Товар: 2710124130 [17:32:41]line Аи-92-К-5 [17:32:41]line 8.970 * 66.90 [17:32:41]line = 600.09 [17:32:41]line НДС 12% НСП 1% [17:32:41]line > о реализуемом товаре [17:32:41]line ОКРУГЛЕНИЕ: -0.09 [17:32:41]line ИТОГО: 600.00 [17:32:41]line Внесено: 600.00 [17:32:41]line СДАЧА: 0.00 [17:32:41]line НСП 1% : 5.31 [17:32:41]line НДС 12% : 63.73 [17:32:41]line Наличными: 600.00 [17:32:41]line Безнал.: 0.00 [17:32:41]line Место: АЗС № 170 "Партнер Нефть" [17:32:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:32:41]line СНО: Общий режим [17:32:41]line Чек 382 27.10.2024 17:32 [17:32:41]line Смена: 542 ФФД: 1.0 [17:32:41]line ЗНМ: 0300000110 [17:32:41]line РНМ: 0000000000091776 [17:32:41]line Версия ККМ: 001 [17:32:41]line ФМ: 0000000000871754 [17:32:41]line ФД: 192350 [17:32:41]line ФПД: 8901371520141 [17:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192350&fm=8901371520141&tin=02508201610067®Number=0000000000091776&sum=60000 [17:32:41]OFD Sender: Processing packet 192350 [packets to send 75, broken 74] [17:32:41]ProducePacketName [17:32:41]name=ofd_packets/00192350 [17:32:41]OFD Sender: To server: pG, [17:32:41]CommunicateWithHost lk.salyk.kg:30040 [17:32:41]ConnectInit lk.salyk.kg [17:32:41]written 0, free lines is 4095 [17:32:41]Connected sock=7 [17:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 69 07 01 89 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 38 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EF 02 00 35 04 06 00 08 18 83 16 64 8D EE E4 B1 6C 26 40 0A A6 [17:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 0E 47 00 44 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E EF 02 00 F4 03 04 00 FF 1D 1E 67 B6 04 01 00 00 52 D0 1A D2 6A DB 1A 73 [17:32:42]CommunicateWithHost err = 0 [17:32:42]CheckOFDResponse [17:32:42]1017 (14) - 77093643461234 [17:32:42]1041 (16) - 0000000000871754 [17:32:42]1040 (4) - 192350 [17:32:42]1012 (4) - 27.10.2024 11:03 [17:32:42]1206 (1) - 0 [17:32:42]OFD Sender: Remove packet 192350 [17:32:42]ProducePacketName [17:32:42]name=ofd_packets/00192350 [17:32:42]NVStorageDeleteData [17:32:42]Write to MH i2c: 01 00 00 3B 21 5C [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 3B 21 00 00 00 00 00 B3 0C 22 [17:32:42]RasterBufferAndPrint [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]written 0, free lines is 3257 [17:32:42]MH_Cut [17:32:42]Write to MH i2c: D1 01 00 42 21 01 35 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 01 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 01 00 42 21 00 34 [17:32:42]Write to MH i2c: 01 00 00 43 21 64 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]OFD Sender: No OFD packet to send [17:32:43]*** Cut start [17:32:43]*** Partial cut [17:32:43]*** CUTSNS_PIN = 1 [17:32:43]*** CUTSNS_PIN = 0 [17:32:43]*** Brake cut motor [17:32:43]Read from MH i2c: 01 [17:32:43]MH_I2C_Read... [17:32:43]*** Stop cut motor [17:32:43]*** Cut end [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 43 21 00 00 00 00 00 FF 0F 79 [17:32:43]process_action close_receipt done [17:32:43]requested_data is exist [17:32:43]produce_requested_data [17:32:43]requested_item fm.sn is exist - process it [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 44 21 80 11 00 00 00 00 00 00 DF [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 44 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [17:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:32:43]wFMCommunicate OK [17:32:43]requested_item fd.num is exist - process it [17:32:43]SAM_PROTO_GetFieldsCounters [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 13 00 00 [17:32:43]Write to MH i2c: E2 08 00 45 21 80 13 00 00 00 00 00 00 E2 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 62 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 62 00 45 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:43]wFMCommunicate OK [17:32:43]SAM_PROTO_GetFieldsCounters done [17:32:43]requested_item shift.num is exist - process it [17:32:43]requested_item shift.opened is exist - process it [17:32:43]req_shift_opened [17:32:43]FM_GetShiftState [17:32:43]SAM_PROTO_GetShiftState [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 13 01 00 [17:32:43]Write to MH i2c: E2 08 00 46 21 80 13 01 00 00 00 00 00 E4 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 0E 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 0E 00 46 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 25 [17:32:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:32:43]wFMCommunicate OK [17:32:43]SAM_PROTO_GetShiftState done [17:32:43]FM_GetShiftState done [17:32:43]req_shift_opened done [17:32:43]requested_item shift.open_date is exist - process it [17:32:43]req_shift_open_date [17:32:43]req_shift_open_date done [17:32:43]produce_requested_data done [17:32:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192350,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:32:43]process_action_free close_receipt [17:32:43]json_value_free [17:32:43]json_value_free done [17:32:43]process_json_proto returns [17:32:43]Send response to host [17:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192350,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:32:43]free response buf [17:32:43]execute_script done [17:32:43]execute_script returns [17:32:43]free content buf [17:32:43]Sock 9.Close socket [17:32:43]Sock 9.Thread stoped [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]accept exits with 10 [17:34:07]New connection [17:34:07]New thread 3067080036 created [17:34:07]Thread 3066936676 joined [17:34:07]Waiting for new connection... [17:34:07] Sock 10.Parse request [17:34:07]Sock 10.Check first char [17:34:07]Sock 10.First char is OK [17:34:07]request: POST /json_proto HTTP/1.0 [17:34:07]Method: POST [17:34:07]URL: /json_proto [17:34:07]Method is POST - this is cgi request [17:34:07]url: /json_proto [17:34:07]query_string will be loaded in cgi processing [17:34:07]execute_cgi json_proto POST (null) [17:34:07]execute_cgi path=json_proto method=POST [17:34:07]POST find Content-Length [17:34:07]Host: 172.17.63.131:8080 [17:34:07]Content-Length: 681 [17:34:07]Content-Type: application/json [17:34:07] [17:34:07]POST finish read [17:34:07]Found Content-Length = 681 [17:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:07]execute_script... [17:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:07]POST & json_proto [17:34:07]process_json_proto [17:34:07]json parsed OK: [17:34:07]protocol is kg_v1.0 [17:34:07]action value=close_receipt [17:34:07]process_action close_receipt [17:34:07]cmd_close_receipt [17:34:07]MH_GetDate [17:34:07]Write to MH i2c: F0 00 00 47 21 57 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 09 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 09 00 47 21 00 8F 79 1E 67 22 05 6E 64 E6 [17:34:07]GetLastDocTimeStamp 1730050360 [17:34:07]current date 1730050447 [17:34:07]FM_GetShiftState [17:34:07]SAM_PROTO_GetShiftState [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 13 01 00 [17:34:07]Write to MH i2c: E2 08 00 48 21 80 13 01 00 00 00 00 00 E6 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 48 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 27 [17:34:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_GetShiftState done [17:34:07]FM_GetShiftState done [17:34:07]opened in 1729989159 [17:34:07]opened+sec_in_day 1730075559 [17:34:07]quantity*price = 200031 [17:34:07]sum+1 = 200032 [17:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 383 27.10.2024 17:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192351 ФПД: 17959584227495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192351&fm=17959584227495&tin=02508201610067®Number=0000000000091776&sum=200000 [17:34:08]StoreToDocumentArchive [17:34:08]shift 542 fd 192351 [17:34:08]save to /storage/0542/doc_00192351 [17:34:08]save last doc name /storage/0542/doc_00192351 to /storage/kkm_last_doc_name [17:34:08]save OK [17:34:08]Clear old archive folders... [17:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:08]tlvbuf is B6EF98A0 [17:34:08]SAM_PROTO_ClearQueue [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 09 00 00 [17:34:08]Write to MH i2c: E2 08 00 55 21 80 09 00 00 00 00 00 00 E8 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_ClearQueue done [17:34:08]KKMCreateOFDPacket [17:34:08]OFDProtocolAddRootSTLVToBuf [17:34:08]FM_MakeSignedData [17:34:08]FM_MakeSignedData [17:34:08]SAM_PROTO_SignData [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 01 02 [17:34:08]Write to MH i2c: E2 08 00 56 21 80 0D 01 02 00 00 00 00 F0 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=255 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 90 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EF 02 00 35 04 06 00 10 [17:34:08]Write to MH i2c: E2 02 01 57 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 90 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EF 02 00 35 04 06 00 10 00 00 54 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=10 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 05 55 8A A3 60 A7 [17:34:08]Write to MH i2c: E2 0D 00 58 21 80 0D 02 02 05 00 55 8A A3 60 A7 00 00 86 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 03 02 [17:34:08]Write to MH i2c: E2 08 00 59 21 80 0D 03 02 00 00 00 00 F5 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 59 21 00 FD DE A3 FA E7 F9 E6 A4 90 00 D8 [17:34:08]RAPDU: FD DE A3 FA E7 F9 E6 A4 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_SignData done [17:34:08]FM_MakeSignedData done [17:34:08]CreateOFDProtocolMessage [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 11 00 00 [17:34:08]Write to MH i2c: E2 08 00 5A 21 80 11 00 00 00 00 00 00 F5 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 5A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [17:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:08]wFMCommunicate OK [17:34:08]CreateOFDProtocolMessage done [17:34:08]OFDSenderStorePacket 192351 [17:34:08]StoreOFDPacket docnum=192351 [17:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 E0 07 01 EA 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 90 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EF 02 00 35 04 06 00 10 55 8A A3 60 A7 FD DE A3 FA E7 F9 E6 A4 [17:34:08]CheckFolder [17:34:08]dirname=/storage/ofd_packets [17:34:08]CheckFolder done [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00192351 [17:34:08]NVStorageSaveData ofd_packets/00192351 [17:34:08]File name is /storage/ofd_packets/00192351 [17:34:08]Write 301 bytes [17:34:08]NVStorageSaveData done [17:34:08]OFDSenderStorePacket done [17:34:08]KKMCreateOFDPacket done [17:34:08]NVStorageSaveData kkm_last_timestamp [17:34:08]File name is /storage/kkm_last_timestamp [17:34:08]Write 4 bytes [17:34:08]NVStorageSaveData done [17:34:08]ExternCall_PrintAddStr [17:34:08]wPrintStart [17:34:08]Write to MH i2c: 01 00 00 5B 21 7C [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 5B 21 00 00 00 00 00 FF 0F 91 [17:34:08]RasterBufferAndPrint [17:34:08]line Счет N : (1)31668 [17:34:08]line ИНН: 02508201610067 [17:34:08]line Контрольно-Кассовый Чек [17:34:08]line ПРОДАЖА [17:34:08]line ТРК (МРК, ГНК) : 12 [17:34:08]line Товар: 2710124130 [17:34:08]line Аи-92-К-5 [17:34:08]line 29.900 * 66.90 [17:34:08]line = 2000.31 [17:34:08]line НДС 12% НСП 1% [17:34:08]line > о реализуемом товаре [17:34:08]line ОКРУГЛЕНИЕ: -0.31 [17:34:08]line ИТОГО: 2000.00 [17:34:08]line Внесено: 2000.00 [17:34:08]line СДАЧА: 0.00 [17:34:08]line НСП 1% : 17.70 [17:34:08]line НДС 12% : 212.42 [17:34:08]line Наличными: 2000.00 [17:34:08]line Безнал.: 0.00 [17:34:08]line Место: АЗС № 170 "Партнер Нефть" [17:34:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:34:08]line СНО: Общий режим [17:34:08]line Чек 383 27.10.2024 17:34 [17:34:08]line Смена: 542 ФФД: 1.0 [17:34:08]line ЗНМ: 0300000110 [17:34:08]line РНМ: 0000000000091776 [17:34:08]line Версия ККМ: 001 [17:34:08]line ФМ: 0000000000871754 [17:34:08]line ФД: 192351 [17:34:08]line ФПД: 17959584227495 [17:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173408&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192351&fm=17959584227495&tin=02508201610067®Number=0000000000091776&sum=200000 [17:34:09]OFD Sender: Processing packet 192351 [packets to send 75, broken 74] [17:34:09]ProducePacketName [17:34:09]name=ofd_packets/00192351 [17:34:09]OFD Sender: To server: pG, [17:34:09]CommunicateWithHost lk.salyk.kg:30040 [17:34:09]ConnectInit lk.salyk.kg [17:34:09]written 0, free lines is 4095 [17:34:09]Connected sock=9 [17:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 E0 07 01 EA 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 90 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EF 02 00 35 04 06 00 10 55 8A A3 60 A7 FD DE A3 FA E7 F9 E6 A4 [17:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 25 47 00 2C 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F EF 02 00 F4 03 04 00 56 1E 1E 67 B6 04 01 00 00 7C 2A CC 7E 4E D4 05 83 [17:34:09]CommunicateWithHost err = 0 [17:34:09]CheckOFDResponse [17:34:09]1017 (14) - 77093643461234 [17:34:09]1041 (16) - 0000000000871754 [17:34:09]1040 (4) - 192351 [17:34:09]1012 (4) - 27.10.2024 11:04 [17:34:09]1206 (1) - 0 [17:34:09]OFD Sender: Remove packet 192351 [17:34:09]ProducePacketName [17:34:09]name=ofd_packets/00192351 [17:34:09]NVStorageDeleteData [17:34:09]Write to MH i2c: 01 00 00 86 21 A7 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 86 21 00 00 00 00 00 C3 0C 7D [17:34:09]RasterBufferAndPrint [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]written 0, free lines is 3274 [17:34:09]MH_Cut [17:34:09]Write to MH i2c: D1 01 00 8D 21 01 80 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 8D 21 00 7F [17:34:09]Write to MH i2c: 01 00 00 8E 21 AF [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]OFD Sender: No OFD packet to send [17:34:10]*** Cut start [17:34:10]*** Partial cut [17:34:10]*** CUTSNS_PIN = 1 [17:34:10]*** CUTSNS_PIN = 0 [17:34:10]*** Brake cut motor [17:34:11]Read from MH i2c: 01 [17:34:11]MH_I2C_Read... [17:34:11]*** Stop cut motor [17:34:11]*** Cut end [17:34:11]Read from MH i2c: 01 07 00 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: 01 07 00 8E 21 00 00 00 00 00 FF 0F C4 [17:34:11]process_action close_receipt done [17:34:11]requested_data is exist [17:34:11]produce_requested_data [17:34:11]requested_item fm.sn is exist - process it [17:34:11]wFMCommunicate request_size=4 [17:34:11]MH_SAM_APDU [17:34:11]CAPDU: 80 11 00 00 [17:34:11]Write to MH i2c: E2 08 00 8F 21 80 11 00 00 00 00 00 00 2A [17:34:11]Write i2c OK [17:34:11]MH_I2C_Read... [17:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:11]Read from MH i2c: E2 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 17 00 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 17 00 8F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [17:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:11]wFMCommunicate OK [17:34:11]requested_item fd.num is exist - process it [17:34:11]SAM_PROTO_GetFieldsCounters [17:34:11]wFMCommunicate request_size=4 [17:34:11]MH_SAM_APDU [17:34:11]CAPDU: 80 13 00 00 [17:34:11]Write to MH i2c: E2 08 00 90 21 80 13 00 00 00 00 00 00 2D [17:34:11]Write i2c OK [17:34:11]MH_I2C_Read... [17:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:11]Read from MH i2c: E2 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 62 00 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 62 00 90 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:34:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:11]wFMCommunicate OK [17:34:11]SAM_PROTO_GetFieldsCounters done [17:34:11]requested_item shift.num is exist - process it [17:34:11]requested_item shift.opened is exist - process it [17:34:11]req_shift_opened [17:34:11]FM_GetShiftState [17:34:11]SAM_PROTO_GetShiftState [17:34:11]wFMCommunicate request_size=4 [17:34:11]MH_SAM_APDU [17:34:11]CAPDU: 80 13 01 00 [17:34:11]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [17:34:11]Write i2c OK [17:34:11]MH_I2C_Read... [17:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:11]Read from MH i2c: E2 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 0E 00 [17:34:11]MH_I2C_Read... [17:34:11]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 70 [17:34:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:34:11]wFMCommunicate OK [17:34:11]SAM_PROTO_GetShiftState done [17:34:11]FM_GetShiftState done [17:34:11]req_shift_opened done [17:34:11]requested_item shift.open_date is exist - process it [17:34:11]req_shift_open_date [17:34:11]req_shift_open_date done [17:34:11]produce_requested_data done [17:34:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192351,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:34:11]process_action_free close_receipt [17:34:11]json_value_free [17:34:11]json_value_free done [17:34:11]process_json_proto returns [17:34:11]Send response to host [17:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192351,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:34:11]free response buf [17:34:11]execute_script done [17:34:11]execute_script returns [17:34:11]free content buf [17:34:11]Sock 10.Close socket [17:34:11]Sock 10.Thread stoped [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]accept exits with 7 [17:34:49]New connection [17:34:49]New thread 3066936676 created [17:34:49]Thread 3067080036 joined [17:34:49]Waiting for new connection... [17:34:49] Sock 7.Parse request [17:34:49]Sock 7.Check first char [17:34:49]Sock 7.First char is OK [17:34:49]request: POST /json_proto HTTP/1.0 [17:34:49]Method: POST [17:34:49]URL: /json_proto [17:34:49]Method is POST - this is cgi request [17:34:49]url: /json_proto [17:34:49]query_string will be loaded in cgi processing [17:34:49]execute_cgi json_proto POST (null) [17:34:49]execute_cgi path=json_proto method=POST [17:34:49]POST find Content-Length [17:34:49]Host: 172.17.63.131:8080 [17:34:49]Content-Length: 677 [17:34:49]Content-Type: application/json [17:34:49] [17:34:49]POST finish read [17:34:49]Found Content-Length = 677 [17:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:49]execute_script... [17:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:49]POST & json_proto [17:34:49]process_json_proto [17:34:49]json parsed OK: [17:34:49]protocol is kg_v1.0 [17:34:49]action value=close_receipt [17:34:49]process_action close_receipt [17:34:49]cmd_close_receipt [17:34:49]MH_GetDate [17:34:49]Write to MH i2c: F0 00 00 92 21 A2 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 92 21 00 BA 79 1E 67 22 05 6E 64 5C [17:34:49]GetLastDocTimeStamp 1730050448 [17:34:49]current date 1730050490 [17:34:49]FM_GetShiftState [17:34:49]SAM_PROTO_GetShiftState [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 13 01 00 [17:34:49]Write to MH i2c: E2 08 00 93 21 80 13 01 00 00 00 00 00 31 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0E 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0E 00 93 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 72 [17:34:49]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_GetShiftState done [17:34:49]FM_GetShiftState done [17:34:49]opened in 1729989159 [17:34:49]opened+sec_in_day 1730075559 [17:34:49]quantity*price = 75061 [17:34:49]sum+1 = 75063 [17:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 384 27.10.2024 17:34 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192352 ФПД: 152899771347420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192352&fm=152899771347420&tin=02508201610067®Number=0000000000091776&sum=75000 [17:34:50]StoreToDocumentArchive [17:34:50]shift 542 fd 192352 [17:34:50]save to /storage/0542/doc_00192352 [17:34:50]save last doc name /storage/0542/doc_00192352 to /storage/kkm_last_doc_name [17:34:50]save OK [17:34:50]Clear old archive folders... [17:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:50]tlvbuf is B6EF93A0 [17:34:50]SAM_PROTO_ClearQueue [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 09 00 00 [17:34:50]Write to MH i2c: E2 08 00 A0 21 80 09 00 00 00 00 00 00 33 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_ClearQueue done [17:34:50]KKMCreateOFDPacket [17:34:50]OFDProtocolAddRootSTLVToBuf [17:34:50]FM_MakeSignedData [17:34:50]FM_MakeSignedData [17:34:50]SAM_PROTO_SignData [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 01 02 [17:34:50]Write to MH i2c: E2 08 00 A1 21 80 0D 01 02 00 00 00 00 3B [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]wFMCommunicate request_size=255 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 BA 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EF 02 00 35 04 06 00 8B [17:34:50]Write to MH i2c: E2 02 01 A2 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 BA 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EF 02 00 35 04 06 00 8B 00 00 2C [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [17:34:51]RAPDU: 90 00 [17:34:51]wFMCommunicate OK [17:34:51]wFMCommunicate request_size=10 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 0D 02 02 05 0F C0 8E B1 DC [17:34:51]Write to MH i2c: E2 0D 00 A3 21 80 0D 02 02 05 00 0F C0 8E B1 DC 00 00 32 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [17:34:51]RAPDU: 90 00 [17:34:51]wFMCommunicate OK [17:34:51]wFMCommunicate request_size=4 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 0D 03 02 [17:34:51]Write to MH i2c: E2 08 00 A4 21 80 0D 03 02 00 00 00 00 40 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0B 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0B 00 A4 21 00 E6 80 1B FF CD 6F 25 96 90 00 B8 [17:34:51]RAPDU: E6 80 1B FF CD 6F 25 96 90 00 [17:34:51]wFMCommunicate OK [17:34:51]SAM_PROTO_SignData done [17:34:51]FM_MakeSignedData done [17:34:51]CreateOFDProtocolMessage [17:34:51]wFMCommunicate request_size=4 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 11 00 00 [17:34:51]Write to MH i2c: E2 08 00 A5 21 80 11 00 00 00 00 00 00 40 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 17 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 17 00 A5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [17:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:51]wFMCommunicate OK [17:34:51]CreateOFDProtocolMessage done [17:34:51]OFDSenderStorePacket 192352 [17:34:51]StoreOFDPacket docnum=192352 [17:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 96 07 01 FF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 BA 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EF 02 00 35 04 06 00 8B 0F C0 8E B1 DC E6 80 1B FF CD 6F 25 96 [17:34:51]CheckFolder [17:34:51]dirname=/storage/ofd_packets [17:34:51]CheckFolder done [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00192352 [17:34:51]NVStorageSaveData ofd_packets/00192352 [17:34:51]File name is /storage/ofd_packets/00192352 [17:34:51]Write 301 bytes [17:34:51]NVStorageSaveData done [17:34:51]OFDSenderStorePacket done [17:34:51]KKMCreateOFDPacket done [17:34:51]NVStorageSaveData kkm_last_timestamp [17:34:51]File name is /storage/kkm_last_timestamp [17:34:51]Write 4 bytes [17:34:51]NVStorageSaveData done [17:34:51]ExternCall_PrintAddStr [17:34:51]wPrintStart [17:34:51]Write to MH i2c: 01 00 00 A6 21 C7 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 A6 21 00 00 00 00 00 FF 0F DC [17:34:51]RasterBufferAndPrint [17:34:51]line Счет N : (1)31669 [17:34:51]line ИНН: 02508201610067 [17:34:51]line Контрольно-Кассовый Чек [17:34:51]line ПРОДАЖА [17:34:51]line ТРК (МРК, ГНК) : 12 [17:34:51]line Товар: 2710124130 [17:34:51]line Аи-92-К-5 [17:34:51]line 11.220 * 66.90 [17:34:51]line = 750.62 [17:34:51]line НДС 12% НСП 1% [17:34:51]line > о реализуемом товаре [17:34:51]line ОКРУГЛЕНИЕ: -0.62 [17:34:51]line ИТОГО: 750.00 [17:34:51]line Внесено: 750.00 [17:34:51]line СДАЧА: 0.00 [17:34:51]line НСП 1% : 6.64 [17:34:51]line НДС 12% : 79.71 [17:34:51]line Наличными: 750.00 [17:34:51]line Безнал.: 0.00 [17:34:51]line Место: АЗС № 170 "Партнер Нефть" [17:34:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:34:51]line СНО: Общий режим [17:34:51]line Чек 384 27.10.2024 17:34 [17:34:51]line Смена: 542 ФФД: 1.0 [17:34:51]line ЗНМ: 0300000110 [17:34:51]line РНМ: 0000000000091776 [17:34:51]line Версия ККМ: 001 [17:34:51]line ФМ: 0000000000871754 [17:34:51]line ФД: 192352 [17:34:51]line ФПД: 152899771347420 [17:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192352&fm=152899771347420&tin=02508201610067®Number=0000000000091776&sum=75000 [17:34:51]OFD Sender: Processing packet 192352 [packets to send 75, broken 74] [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00192352 [17:34:51]OFD Sender: To server: pG, [17:34:51]CommunicateWithHost lk.salyk.kg:30040 [17:34:51]ConnectInit lk.salyk.kg [17:34:51]written 0, free lines is 4095 [17:34:51]Connected sock=10 [17:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 96 07 01 FF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 BA 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EF 02 00 35 04 06 00 8B 0F C0 8E B1 DC E6 80 1B FF CD 6F 25 96 [17:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE 68 47 00 28 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 EF 02 00 F4 03 04 00 81 1E 1E 67 B6 04 01 00 00 C5 BA 72 49 9A F8 6C A1 [17:34:52]CommunicateWithHost err = 0 [17:34:52]CheckOFDResponse [17:34:52]1017 (14) - 77093643461234 [17:34:52]1041 (16) - 0000000000871754 [17:34:52]1040 (4) - 192352 [17:34:52]1012 (4) - 27.10.2024 11:05 [17:34:52]1206 (1) - 0 [17:34:52]OFD Sender: Remove packet 192352 [17:34:52]ProducePacketName [17:34:52]name=ofd_packets/00192352 [17:34:52]NVStorageDeleteData [17:34:52]Write to MH i2c: 01 00 00 D1 21 F2 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 D1 21 00 00 00 00 00 C5 0C CA [17:34:52]RasterBufferAndPrint [17:34:52]line [17:34:52]line [17:34:52]line [17:34:52]line [17:34:52]line [17:34:52]written 0, free lines is 3278 [17:34:52]MH_Cut [17:34:52]Write to MH i2c: D1 01 00 D8 21 01 CB [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: D1 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: D1 01 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: D1 01 00 D8 21 00 CA [17:34:52]Write to MH i2c: 01 00 00 D9 21 FA [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]OFD Sender: No OFD packet to send [17:34:53]*** Cut start [17:34:53]*** Partial cut [17:34:53]*** CUTSNS_PIN = 1 [17:34:53]*** CUTSNS_PIN = 0 [17:34:53]*** Brake cut motor [17:34:53]Read from MH i2c: 01 [17:34:53]MH_I2C_Read... [17:34:53]*** Stop cut motor [17:34:53]*** Cut end [17:34:53]Read from MH i2c: 01 07 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 FF 0F 0F [17:34:53]process_action close_receipt done [17:34:53]requested_data is exist [17:34:53]produce_requested_data [17:34:53]requested_item fm.sn is exist - process it [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 11 00 00 [17:34:53]Write to MH i2c: E2 08 00 DA 21 80 11 00 00 00 00 00 00 75 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 DA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [17:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:53]wFMCommunicate OK [17:34:53]requested_item fd.num is exist - process it [17:34:53]SAM_PROTO_GetFieldsCounters [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 00 00 [17:34:53]Write to MH i2c: E2 08 00 DB 21 80 13 00 00 00 00 00 00 78 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 DB 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [17:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetFieldsCounters done [17:34:53]requested_item shift.num is exist - process it [17:34:53]requested_item shift.opened is exist - process it [17:34:53]req_shift_opened [17:34:53]FM_GetShiftState [17:34:53]SAM_PROTO_GetShiftState [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 01 00 [17:34:53]Write to MH i2c: E2 08 00 DC 21 80 13 01 00 00 00 00 00 7A [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 DC 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BB [17:34:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetShiftState done [17:34:53]FM_GetShiftState done [17:34:53]req_shift_opened done [17:34:53]requested_item shift.open_date is exist - process it [17:34:53]req_shift_open_date [17:34:53]req_shift_open_date done [17:34:53]produce_requested_data done [17:34:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192352,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:34:53]process_action_free close_receipt [17:34:53]json_value_free [17:34:53]json_value_free done [17:34:53]process_json_proto returns [17:34:53]Send response to host [17:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192352,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:34:53]free response buf [17:34:53]execute_script done [17:34:53]execute_script returns [17:34:53]free content buf [17:34:53]Sock 7.Close socket [17:34:53]Sock 7.Thread stoped [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [17:35:33]New connection [17:35:33]New thread 3067080036 created [17:35:33]Thread 3066936676 joined [17:35:33]Waiting for new connection... [17:35:33] Sock 9.Parse request [17:35:33]Sock 9.Check first char [17:35:33]Sock 9.First char is OK [17:35:33]request: POST /json_proto HTTP/1.0 [17:35:33]Method: POST [17:35:33]URL: /json_proto [17:35:33]Method is POST - this is cgi request [17:35:33]url: /json_proto [17:35:33]query_string will be loaded in cgi processing [17:35:33]execute_cgi json_proto POST (null) [17:35:33]execute_cgi path=json_proto method=POST [17:35:33]POST find Content-Length [17:35:33]Host: 172.17.63.131:8080 [17:35:33]Content-Length: 676 [17:35:33]Content-Type: application/json [17:35:33] [17:35:33]POST finish read [17:35:33]Found Content-Length = 676 [17:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:33]execute_script... [17: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 : (1)31670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:33]POST & json_proto [17:35:33]process_json_proto [17:35:33]json parsed OK: [17:35:33]protocol is kg_v1.0 [17:35:33]action value=close_receipt [17:35:33]process_action close_receipt [17:35:33]cmd_close_receipt [17:35:33]MH_GetDate [17:35:33]Write to MH i2c: F0 00 00 DD 21 ED [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: F0 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: F0 09 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: F0 09 00 DD 21 00 E6 79 1E 67 22 05 6E 64 D3 [17:35:33]GetLastDocTimeStamp 1730050490 [17:35:33]current date 1730050534 [17:35:33]FM_GetShiftState [17:35:33]SAM_PROTO_GetShiftState [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 13 01 00 [17:35:33]Write to MH i2c: E2 08 00 DE 21 80 13 01 00 00 00 00 00 7C [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0E 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0E 00 DE 21 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BD [17:35:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_GetShiftState done [17:35:33]FM_GetShiftState done [17:35:33]opened in 1729989159 [17:35:33]opened+sec_in_day 1730075559 [17:35:33]quantity*price = 16056 [17:35:33]sum+1 = 16057 [17:35:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 385 27.10.2024 17:35 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192353 ФПД: 152888578313378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192353&fm=152888578313378&tin=02508201610067®Number=0000000000091776&sum=16000 [17:35:34]StoreToDocumentArchive [17:35:34]shift 542 fd 192353 [17:35:34]save to /storage/0542/doc_00192353 [17:35:34]save last doc name /storage/0542/doc_00192353 to /storage/kkm_last_doc_name [17:35:34]save OK [17:35:34]Clear old archive folders... [17:35:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:34]tlvbuf is B6F774A0 [17:35:34]SAM_PROTO_ClearQueue [17:35:34]wFMCommunicate request_size=4 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 09 00 00 [17:35:34]Write to MH i2c: E2 08 00 EB 21 80 09 00 00 00 00 00 00 7E [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [17:35:34]RAPDU: 90 00 [17:35:34]wFMCommunicate OK [17:35:34]SAM_PROTO_ClearQueue done [17:35:34]KKMCreateOFDPacket [17:35:34]OFDProtocolAddRootSTLVToBuf [17:35:34]FM_MakeSignedData [17:35:34]FM_MakeSignedData [17:35:34]SAM_PROTO_SignData [17:35:34]wFMCommunicate request_size=4 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 0D 01 02 [17:35:34]Write to MH i2c: E2 08 00 EC 21 80 0D 01 02 00 00 00 00 86 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [17:35:34]RAPDU: 90 00 [17:35:34]wFMCommunicate OK [17:35:34]wFMCommunicate request_size=255 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 E6 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EF 02 00 35 04 06 00 8B [17:35:34]Write to MH i2c: E2 02 01 ED 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 E6 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EF 02 00 35 04 06 00 8B 00 00 4C [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [17:35:34]RAPDU: 90 00 [17:35:34]wFMCommunicate OK [17:35:34]wFMCommunicate request_size=10 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 0D 02 02 05 0D 25 66 8C A2 [17:35:34]Write to MH i2c: E2 0D 00 EE 21 80 0D 02 02 05 00 0D 25 66 8C A2 00 00 59 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [17:35:34]RAPDU: 90 00 [17:35:34]wFMCommunicate OK [17:35:34]wFMCommunicate request_size=4 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 0D 03 02 [17:35:34]Write to MH i2c: E2 08 00 EF 21 80 0D 03 02 00 00 00 00 8B [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 0B 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 0B 00 EF 21 00 EE 5C 2E 6B E9 DD C2 16 90 00 0D [17:35:34]RAPDU: EE 5C 2E 6B E9 DD C2 16 90 00 [17:35:34]wFMCommunicate OK [17:35:34]SAM_PROTO_SignData done [17:35:34]FM_MakeSignedData done [17:35:34]CreateOFDProtocolMessage [17:35:34]wFMCommunicate request_size=4 [17:35:34]MH_SAM_APDU [17:35:34]CAPDU: 80 11 00 00 [17:35:34]Write to MH i2c: E2 08 00 F0 21 80 11 00 00 00 00 00 00 8B [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:34]Read from MH i2c: E2 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 17 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: E2 17 00 F0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [17:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:34]wFMCommunicate OK [17:35:34]CreateOFDProtocolMessage done [17:35:34]OFDSenderStorePacket 192353 [17:35:34]StoreOFDPacket docnum=192353 [17:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 82 07 01 BF BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 E6 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EF 02 00 35 04 06 00 8B 0D 25 66 8C A2 EE 5C 2E 6B E9 DD C2 16 [17:35:34]CheckFolder [17:35:34]dirname=/storage/ofd_packets [17:35:34]CheckFolder done [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00192353 [17:35:34]NVStorageSaveData ofd_packets/00192353 [17:35:34]File name is /storage/ofd_packets/00192353 [17:35:34]Write 301 bytes [17:35:34]NVStorageSaveData done [17:35:34]OFDSenderStorePacket done [17:35:34]KKMCreateOFDPacket done [17:35:34]NVStorageSaveData kkm_last_timestamp [17:35:34]File name is /storage/kkm_last_timestamp [17:35:34]Write 4 bytes [17:35:34]NVStorageSaveData done [17:35:34]ExternCall_PrintAddStr [17:35:34]wPrintStart [17:35:34]Write to MH i2c: 01 00 00 F1 21 12 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 F1 21 00 00 00 00 00 FF 0F 27 [17:35:34]RasterBufferAndPrint [17:35:34]line Счет N : (1)31670 [17:35:34]line ИНН: 02508201610067 [17:35:34]line Контрольно-Кассовый Чек [17:35:34]line ПРОДАЖА [17:35:34]line ТРК (МРК, ГНК) : 21 [17:35:34]line Товар: 2710124130 [17:35:34]line Аи-92-К-5 [17:35:34]line 2.400 * 66.90 [17:35:34]line = 160.56 [17:35:34]line НДС 12% НСП 1% [17:35:34]line > о реализуемом товаре [17:35:34]line ОКРУГЛЕНИЕ: -0.56 [17:35:34]line ИТОГО: 160.00 [17:35:34]line Внесено: 160.00 [17:35:34]line СДАЧА: 0.00 [17:35:34]line НСП 1% : 1.42 [17:35:34]line НДС 12% : 17.05 [17:35:34]line Наличными: 160.00 [17:35:34]line Безнал.: 0.00 [17:35:34]line Место: АЗС № 170 "Партнер Нефть" [17:35:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:35:34]line СНО: Общий режим [17:35:34]line Чек 385 27.10.2024 17:35 [17:35:34]line Смена: 542 ФФД: 1.0 [17:35:34]line ЗНМ: 0300000110 [17:35:34]line РНМ: 0000000000091776 [17:35:34]line Версия ККМ: 001 [17:35:34]line ФМ: 0000000000871754 [17:35:34]line ФД: 192353 [17:35:34]line ФПД: 152888578313378 [17:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173534&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192353&fm=152888578313378&tin=02508201610067®Number=0000000000091776&sum=16000 [17:35:34]written 0, free lines is 4095 [17:35:34]OFD Sender: Processing packet 192353 [packets to send 75, broken 74] [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00192353 [17:35:34]OFD Sender: To server: pG, [17:35:34]CommunicateWithHost lk.salyk.kg:30040 [17:35:34]ConnectInit lk.salyk.kg [17:35:35]Connected sock=11 [17:35:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 82 07 01 BF BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 E6 79 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EF 02 00 35 04 06 00 8B 0D 25 66 8C A2 EE 5C 2E 6B E9 DD C2 16 [17:35:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 D8 47 00 4E 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 EF 02 00 F4 03 04 00 AC 1E 1E 67 B6 04 01 00 00 E3 80 DC C5 B4 87 DC 76 [17:35:35]CommunicateWithHost err = 0 [17:35:35]CheckOFDResponse [17:35:35]1017 (14) - 77093643461234 [17:35:35]1041 (16) - 0000000000871754 [17:35:35]1040 (4) - 192353 [17:35:35]1012 (4) - 27.10.2024 11:06 [17:35:35]1206 (1) - 0 [17:35:35]OFD Sender: Remove packet 192353 [17:35:35]ProducePacketName [17:35:35]name=ofd_packets/00192353 [17:35:35]NVStorageDeleteData [17:35:35]Write to MH i2c: 01 00 00 1C 22 3E [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 1C 22 00 00 00 00 00 B8 0C 09 [17:35:35]RasterBufferAndPrint [17:35:35]line [17:35:35]line [17:35:35]line [17:35:35]line [17:35:35]line [17:35:35]written 0, free lines is 3263 [17:35:35]MH_Cut [17:35:35]Write to MH i2c: D1 01 00 23 22 01 17 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: D1 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: D1 01 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: D1 01 00 23 22 00 16 [17:35:35]Write to MH i2c: 01 00 00 24 22 46 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]OFD Sender: No OFD packet to send [17:35:36]*** Cut start [17:35:36]*** Partial cut [17:35:36]*** CUTSNS_PIN = 1 [17:35:36]*** CUTSNS_PIN = 0 [17:35:36]*** Brake cut motor [17:35:36]Read from MH i2c: 01 [17:35:36]MH_I2C_Read... [17:35:36]*** Stop cut motor [17:35:36]*** Cut end [17:35:36]Read from MH i2c: 01 07 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: 01 07 00 24 22 00 00 00 00 00 FF 0F 5B [17:35:36]process_action close_receipt done [17:35:36]requested_data is exist [17:35:36]produce_requested_data [17:35:36]requested_item fm.sn is exist - process it [17:35:36]wFMCommunicate request_size=4 [17:35:36]MH_SAM_APDU [17:35:36]CAPDU: 80 11 00 00 [17:35:36]Write to MH i2c: E2 08 00 25 22 80 11 00 00 00 00 00 00 C1 [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:36]Read from MH i2c: E2 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 17 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 17 00 25 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [17:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:35:36]wFMCommunicate OK [17:35:36]requested_item fd.num is exist - process it [17:35:36]SAM_PROTO_GetFieldsCounters [17:35:36]wFMCommunicate request_size=4 [17:35:36]MH_SAM_APDU [17:35:36]CAPDU: 80 13 00 00 [17:35:36]Write to MH i2c: E2 08 00 26 22 80 13 00 00 00 00 00 00 C4 [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 62 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 62 00 26 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:35:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:37]wFMCommunicate OK [17:35:37]SAM_PROTO_GetFieldsCounters done [17:35:37]requested_item shift.num is exist - process it [17:35:37]requested_item shift.opened is exist - process it [17:35:37]req_shift_opened [17:35:37]FM_GetShiftState [17:35:37]SAM_PROTO_GetShiftState [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 13 01 00 [17:35:37]Write to MH i2c: E2 08 00 27 22 80 13 01 00 00 00 00 00 C6 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 0E 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 0E 00 27 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 07 [17:35:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:35:37]wFMCommunicate OK [17:35:37]SAM_PROTO_GetShiftState done [17:35:37]FM_GetShiftState done [17:35:37]req_shift_opened done [17:35:37]requested_item shift.open_date is exist - process it [17:35:37]req_shift_open_date [17:35:37]req_shift_open_date done [17:35:37]produce_requested_data done [17:35:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192353,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:35:37]process_action_free close_receipt [17:35:37]json_value_free [17:35:37]json_value_free done [17:35:37]process_json_proto returns [17:35:37]Send response to host [17:35:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192353,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:35:37]free response buf [17:35:37]execute_script done [17:35:37]execute_script returns [17:35:37]free content buf [17:35:37]Sock 9.Close socket [17:35:37]Sock 9.Thread stoped [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:27]accept exits with 7 [17:38:27]New connection [17:38:27]New thread 3066936676 created [17:38:27]Thread 3067080036 joined [17:38:27]Waiting for new connection... [17:38:27] Sock 7.Parse request [17:38:27]Sock 7.Check first char [17:38:27]Sock 7.First char is OK [17:38:27]request: POST /json_proto HTTP/1.0 [17:38:27]Method: POST [17:38:27]URL: /json_proto [17:38:27]Method is POST - this is cgi request [17:38:27]url: /json_proto [17:38:27]query_string will be loaded in cgi processing [17:38:27]execute_cgi json_proto POST (null) [17:38:27]execute_cgi path=json_proto method=POST [17:38:27]POST find Content-Length [17:38:27]Host: 172.17.63.131:8080 [17:38:27]Content-Length: 681 [17:38:27]Content-Type: application/json [17:38:27] [17:38:27]POST finish read [17:38:27]Found Content-Length = 681 [17:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "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" ] } } [17:38:27]execute_script... [17:38: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)31672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "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" ] } } [17:38:27]POST & json_proto [17:38:27]process_json_proto [17:38:27]json parsed OK: [17:38:27]protocol is kg_v1.0 [17:38:27]action value=close_receipt [17:38:27]process_action close_receipt [17:38:27]cmd_close_receipt [17:38:27]MH_GetDate [17:38:27]Write to MH i2c: F0 00 00 28 22 39 [17:38:27]Write i2c OK [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: F0 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: F0 09 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: F0 09 00 28 22 00 94 7A 1E 67 22 05 6E 64 CE [17:38:27]GetLastDocTimeStamp 1730050534 [17:38:27]current date 1730050708 [17:38:27]FM_GetShiftState [17:38:27]SAM_PROTO_GetShiftState [17:38:27]wFMCommunicate request_size=4 [17:38:27]MH_SAM_APDU [17:38:27]CAPDU: 80 13 01 00 [17:38:27]Write to MH i2c: E2 08 00 29 22 80 13 01 00 00 00 00 00 C8 [17:38:27]Write i2c OK [17:38:27]MH_I2C_Read... [17:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:27]Read from MH i2c: E2 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 0E 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 0E 00 29 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 09 [17:38:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:38:27]wFMCommunicate OK [17:38:27]SAM_PROTO_GetShiftState done [17:38:27]FM_GetShiftState done [17:38:27]opened in 1729989159 [17:38:27]opened+sec_in_day 1730075559 [17:38:27]quantity*price = 170059 [17:38:27]sum+1 = 170061 [17:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.59 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 386 27.10.2024 17:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192354 ФПД: 165464068892929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192354&fm=165464068892929&tin=02508201610067®Number=0000000000091776&sum=170000 [17:38:28]StoreToDocumentArchive [17:38:28]shift 542 fd 192354 [17:38:28]save to /storage/0542/doc_00192354 [17:38:28]save last doc name /storage/0542/doc_00192354 to /storage/kkm_last_doc_name [17:38:28]save OK [17:38:28]Clear old archive folders... [17:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:28]tlvbuf is 00348160 [17:38:28]SAM_PROTO_ClearQueue [17:38:28]wFMCommunicate request_size=4 [17:38:28]MH_SAM_APDU [17:38:28]CAPDU: 80 09 00 00 [17:38:28]Write to MH i2c: E2 08 00 36 22 80 09 00 00 00 00 00 00 CA [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:28]Read from MH i2c: E2 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [17:38:28]RAPDU: 90 00 [17:38:28]wFMCommunicate OK [17:38:28]SAM_PROTO_ClearQueue done [17:38:28]KKMCreateOFDPacket [17:38:28]OFDProtocolAddRootSTLVToBuf [17:38:28]FM_MakeSignedData [17:38:28]FM_MakeSignedData [17:38:28]SAM_PROTO_SignData [17:38:28]wFMCommunicate request_size=4 [17:38:28]MH_SAM_APDU [17:38:28]CAPDU: 80 0D 01 02 [17:38:28]Write to MH i2c: E2 08 00 37 22 80 0D 01 02 00 00 00 00 D2 [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:28]Read from MH i2c: E2 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [17:38:28]RAPDU: 90 00 [17:38:28]wFMCommunicate OK [17:38:28]wFMCommunicate request_size=255 [17:38:28]MH_SAM_APDU [17:38: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 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 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 8B 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 82 01 00 00 F4 03 04 00 94 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EF 02 00 35 04 06 00 96 [17:38:28]Write to MH i2c: E2 02 01 38 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 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 8B 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 82 01 00 00 F4 03 04 00 94 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EF 02 00 35 04 06 00 96 00 00 DC [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:28]Read from MH i2c: E2 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [17:38:28]RAPDU: 90 00 [17:38:28]wFMCommunicate OK [17:38:28]wFMCommunicate request_size=10 [17:38:28]MH_SAM_APDU [17:38:28]CAPDU: 80 0D 02 02 05 7D 1B 0C A9 01 [17:38:28]Write to MH i2c: E2 0D 00 39 22 80 0D 02 02 05 00 7D 1B 0C A9 01 00 00 2D [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 03 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [17:38:29]RAPDU: 90 00 [17:38:29]wFMCommunicate OK [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 0D 03 02 [17:38:29]Write to MH i2c: E2 08 00 3A 22 80 0D 03 02 00 00 00 00 D7 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0B 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0B 00 3A 22 00 D5 48 B1 53 81 2B 7E 99 90 00 BC [17:38:29]RAPDU: D5 48 B1 53 81 2B 7E 99 90 00 [17:38:29]wFMCommunicate OK [17:38:29]SAM_PROTO_SignData done [17:38:29]FM_MakeSignedData done [17:38:29]CreateOFDProtocolMessage [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 11 00 00 [17:38:29]Write to MH i2c: E2 08 00 3B 22 80 11 00 00 00 00 00 00 D7 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 17 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 17 00 3B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [17:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:29]wFMCommunicate OK [17:38:29]CreateOFDProtocolMessage done [17:38:29]OFDSenderStorePacket 192354 [17:38:29]StoreOFDPacket docnum=192354 [17:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 77 07 01 B1 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 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 8B 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 82 01 00 00 F4 03 04 00 94 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EF 02 00 35 04 06 00 96 7D 1B 0C A9 01 D5 48 B1 53 81 2B 7E 99 [17:38:29]CheckFolder [17:38:29]dirname=/storage/ofd_packets [17:38:29]CheckFolder done [17:38:29]ProducePacketName [17:38:29]name=ofd_packets/00192354 [17:38:29]NVStorageSaveData ofd_packets/00192354 [17:38:29]File name is /storage/ofd_packets/00192354 [17:38:29]Write 301 bytes [17:38:29]NVStorageSaveData done [17:38:29]OFDSenderStorePacket done [17:38:29]KKMCreateOFDPacket done [17:38:29]NVStorageSaveData kkm_last_timestamp [17:38:29]File name is /storage/kkm_last_timestamp [17:38:29]Write 4 bytes [17:38:29]NVStorageSaveData done [17:38:29]ExternCall_PrintAddStr [17:38:29]wPrintStart [17:38:29]Write to MH i2c: 01 00 00 3C 22 5E [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 07 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 07 00 3C 22 00 00 00 00 00 FF 0F 73 [17:38:29]RasterBufferAndPrint [17:38:29]line Счет N : (1)31672 [17:38:29]line ИНН: 02508201610067 [17:38:29]line Контрольно-Кассовый Чек [17:38:29]line ПРОДАЖА [17:38:29]line ТРК (МРК, ГНК) : 12 [17:38:29]line Товар: 2710124130 [17:38:29]line Аи-92-К-5 [17:38:29]line 25.420 * 66.90 [17:38:29]line = 1700.60 [17:38:29]line НДС 12% НСП 1% [17:38:29]line > о реализуемом товаре [17:38:29]line ОКРУГЛЕНИЕ: -0.60 [17:38:29]line ИТОГО: 1700.00 [17:38:29]line Внесено: 1700.00 [17:38:29]line СДАЧА: 0.00 [17:38:29]line НСП 1% : 15.05 [17:38:29]line НДС 12% : 180.59 [17:38:29]line Наличными: 1700.00 [17:38:29]line Безнал.: 0.00 [17:38:29]line Место: АЗС № 170 "Партнер Нефть" [17:38:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:38:29]line СНО: Общий режим [17:38:29]line Чек 386 27.10.2024 17:38 [17:38:29]line Смена: 542 ФФД: 1.0 [17:38:29]line ЗНМ: 0300000110 [17:38:29]line РНМ: 0000000000091776 [17:38:29]line Версия ККМ: 001 [17:38:29]line ФМ: 0000000000871754 [17:38:29]line ФД: 192354 [17:38:29]line ФПД: 165464068892929 [17:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173828&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192354&fm=165464068892929&tin=02508201610067®Number=0000000000091776&sum=170000 [17:38:29]OFD Sender: Processing packet 192354 [packets to send 75, broken 74] [17:38:29]ProducePacketName [17:38:29]name=ofd_packets/00192354 [17:38:29]OFD Sender: To server: pG, [17:38:29]CommunicateWithHost lk.salyk.kg:30040 [17:38:29]ConnectInit lk.salyk.kg [17:38:29]written 0, free lines is 4095 [17:38:29]Connected sock=10 [17:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 77 07 01 B1 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 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 8B 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 82 01 00 00 F4 03 04 00 94 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EF 02 00 35 04 06 00 96 7D 1B 0C A9 01 D5 48 B1 53 81 2B 7E 99 [17:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CA 1C 47 00 D8 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 EF 02 00 F4 03 04 00 5B 1F 1E 67 B6 04 01 00 00 D8 BA F5 EC 69 82 77 58 [17:38:29]CommunicateWithHost err = 0 [17:38:29]CheckOFDResponse [17:38:29]1017 (14) - 77093643461234 [17:38:29]1041 (16) - 0000000000871754 [17:38:29]1040 (4) - 192354 [17:38:29]1012 (4) - 27.10.2024 11:09 [17:38:29]1206 (1) - 0 [17:38:29]OFD Sender: Remove packet 192354 [17:38:29]ProducePacketName [17:38:29]name=ofd_packets/00192354 [17:38:29]NVStorageDeleteData [17:38:29]Write to MH i2c: 01 00 00 67 22 89 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 07 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: 01 07 00 67 22 00 00 00 00 00 C5 0C 61 [17:38:29]RasterBufferAndPrint [17:38:29]line [17:38:29]line [17:38:29]line [17:38:29]line [17:38:29]line [17:38:29]written 0, free lines is 3275 [17:38:29]MH_Cut [17:38:29]Write to MH i2c: D1 01 00 6E 22 01 62 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: D1 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: D1 01 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: D1 01 00 6E 22 00 61 [17:38:29]Write to MH i2c: 01 00 00 6F 22 91 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:30]OFD Sender: No OFD packet to send [17:38:30]*** Cut start [17:38:30]*** Partial cut [17:38:30]*** CUTSNS_PIN = 1 [17:38:30]*** CUTSNS_PIN = 0 [17:38:31]*** Brake cut motor [17:38:31]Read from MH i2c: 01 [17:38:31]MH_I2C_Read... [17:38:31]*** Stop cut motor [17:38:31]*** Cut end [17:38:31]Read from MH i2c: 01 07 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: 01 07 00 6F 22 00 00 00 00 00 FF 0F A6 [17:38:31]process_action close_receipt done [17:38:31]requested_data is exist [17:38:31]produce_requested_data [17:38:31]requested_item fm.sn is exist - process it [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 11 00 00 [17:38:31]Write to MH i2c: E2 08 00 70 22 80 11 00 00 00 00 00 00 0C [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 17 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 17 00 70 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [17:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:31]wFMCommunicate OK [17:38:31]requested_item fd.num is exist - process it [17:38:31]SAM_PROTO_GetFieldsCounters [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 13 00 00 [17:38:31]Write to MH i2c: E2 08 00 71 22 80 13 00 00 00 00 00 00 0F [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 62 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 62 00 71 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:31]wFMCommunicate OK [17:38:31]SAM_PROTO_GetFieldsCounters done [17:38:31]requested_item shift.num is exist - process it [17:38:31]requested_item shift.opened is exist - process it [17:38:31]req_shift_opened [17:38:31]FM_GetShiftState [17:38:31]SAM_PROTO_GetShiftState [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 13 01 00 [17:38:31]Write to MH i2c: E2 08 00 72 22 80 13 01 00 00 00 00 00 11 [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:31]Read from MH i2c: E2 0E 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 0E 00 72 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 52 [17:38:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:38:31]wFMCommunicate OK [17:38:31]SAM_PROTO_GetShiftState done [17:38:31]FM_GetShiftState done [17:38:31]req_shift_opened done [17:38:31]requested_item shift.open_date is exist - process it [17:38:31]req_shift_open_date [17:38:31]req_shift_open_date done [17:38:31]produce_requested_data done [17:38:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192354,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:38:31]process_action_free close_receipt [17:38:31]json_value_free [17:38:31]json_value_free done [17:38:31]process_json_proto returns [17:38:31]Send response to host [17:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192354,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:38:31]free response buf [17:38:31]execute_script done [17:38:31]execute_script returns [17:38:31]free content buf [17:38:31]Sock 7.Close socket [17:38:31]Sock 7.Thread stoped [17:38:32]accept exits with 9 [17:38:32]New connection [17:38:32]New thread 3067080036 created [17:38:32]Thread 3066936676 joined [17:38:32]Waiting for new connection... [17:38:32] Sock 9.Parse request [17:38:32]Sock 9.Check first char [17:38:32]Sock 9.First char is OK [17:38:32]request: POST /json_proto HTTP/1.0 [17:38:32]Method: POST [17:38:32]URL: /json_proto [17:38:32]Method is POST - this is cgi request [17:38:32]url: /json_proto [17:38:32]query_string will be loaded in cgi processing [17:38:32]execute_cgi json_proto POST (null) [17:38:32]execute_cgi path=json_proto method=POST [17:38:32]POST find Content-Length [17:38:32]Host: 172.17.63.131:8080 [17:38:32]Content-Length: 673 [17:38:32]Content-Type: application/json [17:38:32] [17:38:32]POST finish read [17:38:32]Found Content-Length = 673 [17:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31671", "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:38:32]execute_script... [17:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31671", "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:38:32]POST & json_proto [17:38:32]process_json_proto [17:38:32]json parsed OK: [17:38:32]protocol is kg_v1.0 [17:38:32]action value=close_receipt [17:38:32]process_action close_receipt [17:38:32]cmd_close_receipt [17:38:32]MH_GetDate [17:38:32]Write to MH i2c: F0 00 00 73 22 84 [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: F0 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: F0 09 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: F0 09 00 73 22 00 98 7A 1E 67 22 05 6E 64 1D [17:38:32]GetLastDocTimeStamp 1730050708 [17:38:32]current date 1730050712 [17:38:32]FM_GetShiftState [17:38:32]SAM_PROTO_GetShiftState [17:38:32]wFMCommunicate request_size=4 [17:38:32]MH_SAM_APDU [17:38:32]CAPDU: 80 13 01 00 [17:38:32]Write to MH i2c: E2 08 00 74 22 80 13 01 00 00 00 00 00 13 [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 [17:38:32]MH_I2C_Read... [17:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:32]Read from MH i2c: E2 0E 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 0E 00 74 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 54 [17:38:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:38:32]wFMCommunicate OK [17:38:32]SAM_PROTO_GetShiftState done [17:38:32]FM_GetShiftState done [17:38:32]opened in 1729989159 [17:38:32]opened+sec_in_day 1730075559 [17:38:32]quantity*price = 50063 [17:38:32]sum+1 = 50064 [17:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 387 27.10.2024 17:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192355 ФПД: 208909256170080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192355&fm=208909256170080&tin=02508201610067®Number=0000000000091776&sum=50000 [17:38:33]StoreToDocumentArchive [17:38:33]shift 542 fd 192355 [17:38:33]save to /storage/0542/doc_00192355 [17:38:33]save last doc name /storage/0542/doc_00192355 to /storage/kkm_last_doc_name [17:38:33]save OK [17:38:33]Clear old archive folders... [17:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:38:33]tlvbuf is 003E4C10 [17:38:33]SAM_PROTO_ClearQueue [17:38:33]wFMCommunicate request_size=4 [17:38:33]MH_SAM_APDU [17:38:33]CAPDU: 80 09 00 00 [17:38:33]Write to MH i2c: E2 08 00 81 22 80 09 00 00 00 00 00 00 15 [17:38:33]Write i2c OK [17:38:33]MH_I2C_Read... [17:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:33]Read from MH i2c: E2 [17:38:33]MH_I2C_Read... [17:38:33]Read from MH i2c: E2 03 00 [17:38:33]MH_I2C_Read... [17:38:33]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [17:38:33]RAPDU: 90 00 [17:38:33]wFMCommunicate OK [17:38:33]SAM_PROTO_ClearQueue done [17:38:33]KKMCreateOFDPacket [17:38:33]OFDProtocolAddRootSTLVToBuf [17:38:33]FM_MakeSignedData [17:38:33]FM_MakeSignedData [17:38:33]SAM_PROTO_SignData [17:38:33]wFMCommunicate request_size=4 [17:38:33]MH_SAM_APDU [17:38:33]CAPDU: 80 0D 01 02 [17:38:33]Write to MH i2c: E2 08 00 82 22 80 0D 01 02 00 00 00 00 1D [17:38:33]Write i2c OK [17:38:33]MH_I2C_Read... [17:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:33]Read from MH i2c: E2 [17:38:33]MH_I2C_Read... [17:38:33]Read from MH i2c: E2 03 00 [17:38:33]MH_I2C_Read... [17:38:33]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [17:38:33]RAPDU: 90 00 [17:38:33]wFMCommunicate OK [17:38:33]wFMCommunicate request_size=255 [17:38:33]MH_SAM_APDU [17:38:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 99 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EF 02 00 35 04 06 00 BE 00 7A 01 [17:38:33]Write to MH i2c: E2 02 01 83 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 99 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EF 02 00 35 04 06 00 BE 00 7A 01 00 00 F8 [17:38:33]Write i2c OK [17:38:33]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 03 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [17:38:34]RAPDU: 90 00 [17:38:34]wFMCommunicate OK [17:38:34]wFMCommunicate request_size=7 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 0D 02 02 02 1A 60 [17:38:34]Write to MH i2c: E2 0A 00 84 22 80 0D 02 02 02 00 1A 60 00 00 9E [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 03 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 03 00 84 22 00 90 00 1A [17:38:34]RAPDU: 90 00 [17:38:34]wFMCommunicate OK [17:38:34]wFMCommunicate request_size=4 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 0D 03 02 [17:38:34]Write to MH i2c: E2 08 00 85 22 80 0D 03 02 00 00 00 00 22 [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 0B 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 0B 00 85 22 00 1F 7F 15 09 3E 76 21 EA 90 00 9E [17:38:34]RAPDU: 1F 7F 15 09 3E 76 21 EA 90 00 [17:38:34]wFMCommunicate OK [17:38:34]SAM_PROTO_SignData done [17:38:34]FM_MakeSignedData done [17:38:34]CreateOFDProtocolMessage [17:38:34]wFMCommunicate request_size=4 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 11 00 00 [17:38:34]Write to MH i2c: E2 08 00 86 22 80 11 00 00 00 00 00 00 22 [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 17 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 17 00 86 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [17:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:34]wFMCommunicate OK [17:38:34]CreateOFDProtocolMessage done [17:38:34]OFDSenderStorePacket 192355 [17:38:34]StoreOFDPacket docnum=192355 [17:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 49 BD 04 01 6F 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 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 83 01 00 00 F4 03 04 00 99 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EF 02 00 35 04 06 00 BE 00 7A 01 1A 60 1F 7F 15 09 3E 76 21 EA [17:38:34]CheckFolder [17:38:34]dirname=/storage/ofd_packets [17:38:34]CheckFolder done [17:38:34]ProducePacketName [17:38:34]name=ofd_packets/00192355 [17:38:34]NVStorageSaveData ofd_packets/00192355 [17:38:34]File name is /storage/ofd_packets/00192355 [17:38:34]Write 298 bytes [17:38:34]NVStorageSaveData done [17:38:34]OFDSenderStorePacket done [17:38:34]KKMCreateOFDPacket done [17:38:34]NVStorageSaveData kkm_last_timestamp [17:38:34]File name is /storage/kkm_last_timestamp [17:38:34]Write 4 bytes [17:38:34]NVStorageSaveData done [17:38:34]ExternCall_PrintAddStr [17:38:34]wPrintStart [17:38:34]Write to MH i2c: 01 00 00 87 22 A9 [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 07 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 07 00 87 22 00 00 00 00 00 FF 0F BE [17:38:34]RasterBufferAndPrint [17:38:34]line Счет N : (1)31671 [17:38:34]line ИНН: 02508201610067 [17:38:34]line Контрольно-Кассовый Чек [17:38:34]line ПРОДАЖА [17:38:34]line ТРК (МРК, ГНК) : 11 [17:38:34]line Товар: 2710194210 [17:38:34]line ДТ-К-5 [17:38:34]line 6.570 * 76.20 [17:38:34]line = 500.63 [17:38:34]line НДС 12% НСП 1% [17:38:34]line > о реализуемом товаре [17:38:34]line ОКРУГЛЕНИЕ: -0.63 [17:38:34]line ИТОГО: 500.00 [17:38:34]line Внесено: 500.00 [17:38:34]line СДАЧА: 0.00 [17:38:34]line НСП 1% : 4.43 [17:38:34]line НДС 12% : 53.16 [17:38:34]line Наличными: 500.00 [17:38:34]line Безнал.: 0.00 [17:38:34]line Место: АЗС № 170 "Партнер Нефть" [17:38:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:38:34]line СНО: Общий режим [17:38:34]line Чек 387 27.10.2024 17:38 [17:38:34]line Смена: 542 ФФД: 1.0 [17:38:34]line ЗНМ: 0300000110 [17:38:34]line РНМ: 0000000000091776 [17:38:34]line Версия ККМ: 001 [17:38:34]line ФМ: 0000000000871754 [17:38:34]line ФД: 192355 [17:38:34]line ФПД: 208909256170080 [17:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192355&fm=208909256170080&tin=02508201610067®Number=0000000000091776&sum=50000 [17:38:34]written 0, free lines is 4095 [17:38:34]OFD Sender: Processing packet 192355 [packets to send 75, broken 74] [17:38:34]ProducePacketName [17:38:34]name=ofd_packets/00192355 [17:38:34]OFD Sender: To server: pG, [17:38:34]CommunicateWithHost lk.salyk.kg:30040 [17:38:34]ConnectInit lk.salyk.kg [17:38:34]Connected sock=10 [17:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 49 BD 04 01 6F 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 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 83 01 00 00 F4 03 04 00 99 7A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EF 02 00 35 04 06 00 BE 00 7A 01 1A 60 1F 7F 15 09 3E 76 21 EA [17:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 39 47 00 57 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 EF 02 00 F4 03 04 00 60 1F 1E 67 B6 04 01 00 00 B4 14 33 EC A6 E4 6F DC [17:38:34]CommunicateWithHost err = 0 [17:38:34]CheckOFDResponse [17:38:34]1017 (14) - 77093643461234 [17:38:34]1041 (16) - 0000000000871754 [17:38:34]1040 (4) - 192355 [17:38:34]1012 (4) - 27.10.2024 11:09 [17:38:34]1206 (1) - 0 [17:38:34]OFD Sender: Remove packet 192355 [17:38:34]ProducePacketName [17:38:34]name=ofd_packets/00192355 [17:38:34]NVStorageDeleteData [17:38:34]Write to MH i2c: 01 00 00 B2 22 D4 [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 07 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 07 00 B2 22 00 00 00 00 00 C0 0C A7 [17:38:34]RasterBufferAndPrint [17:38:34]line [17:38:34]line [17:38:34]line [17:38:34]line [17:38:34]line [17:38:34]written 0, free lines is 3279 [17:38:34]MH_Cut [17:38:34]Write to MH i2c: D1 01 00 B9 22 01 AD [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: D1 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: D1 01 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: D1 01 00 B9 22 00 AC [17:38:34]Write to MH i2c: 01 00 00 BA 22 DC [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:35]OFD Sender: No OFD packet to send [17:38:35]*** Cut start [17:38:35]*** Partial cut [17:38:35]*** CUTSNS_PIN = 1 [17:38:35]*** CUTSNS_PIN = 0 [17:38:35]*** Brake cut motor [17:38:36]Read from MH i2c: 01 [17:38:36]MH_I2C_Read... [17:38:36]*** Stop cut motor [17:38:36]*** Cut end [17:38:36]Read from MH i2c: 01 07 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 07 00 BA 22 00 00 00 00 00 FF 0F F1 [17:38:36]process_action close_receipt done [17:38:36]requested_data is exist [17:38:36]produce_requested_data [17:38:36]requested_item fm.sn is exist - process it [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 11 00 00 [17:38:36]Write to MH i2c: E2 08 00 BB 22 80 11 00 00 00 00 00 00 57 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 17 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 17 00 BB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [17:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:36]wFMCommunicate OK [17:38:36]requested_item fd.num is exist - process it [17:38:36]SAM_PROTO_GetFieldsCounters [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 13 00 00 [17:38:36]Write to MH i2c: E2 08 00 BC 22 80 13 00 00 00 00 00 00 5A [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 62 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 62 00 BC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:36]wFMCommunicate OK [17:38:36]SAM_PROTO_GetFieldsCounters done [17:38:36]requested_item shift.num is exist - process it [17:38:36]requested_item shift.opened is exist - process it [17:38:36]req_shift_opened [17:38:36]FM_GetShiftState [17:38:36]SAM_PROTO_GetShiftState [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 13 01 00 [17:38:36]Write to MH i2c: E2 08 00 BD 22 80 13 01 00 00 00 00 00 5C [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0E 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0E 00 BD 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9D [17:38:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:38:36]wFMCommunicate OK [17:38:36]SAM_PROTO_GetShiftState done [17:38:36]FM_GetShiftState done [17:38:36]req_shift_opened done [17:38:36]requested_item shift.open_date is exist - process it [17:38:36]req_shift_open_date [17:38:36]req_shift_open_date done [17:38:36]produce_requested_data done [17:38:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192355,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:38:36]process_action_free close_receipt [17:38:36]json_value_free [17:38:36]json_value_free done [17:38:36]process_json_proto returns [17:38:36]Send response to host [17:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192355,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:38:36]free response buf [17:38:36]execute_script done [17:38:36]execute_script returns [17:38:36]free content buf [17:38:36]Sock 9.Close socket [17:38:36]Sock 9.Thread stoped [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:48]accept exits with 7 [17:40:48]New connection [17:40:48]New thread 3066936676 created [17:40:48]Thread 3067080036 joined [17:40:48]Waiting for new connection... [17:40:48] Sock 7.Parse request [17:40:48]Sock 7.Check first char [17:40:48]Sock 7.First char is OK [17:40:48]request: POST /json_proto HTTP/1.0 [17:40:48]Method: POST [17:40:48]URL: /json_proto [17:40:48]Method is POST - this is cgi request [17:40:48]url: /json_proto [17:40:48]query_string will be loaded in cgi processing [17:40:48]execute_cgi json_proto POST (null) [17:40:48]execute_cgi path=json_proto method=POST [17:40:48]POST find Content-Length [17:40:48]Host: 172.17.63.131:8080 [17:40:48]Content-Length: 678 [17:40:48]Content-Type: application/json [17:40:48] [17:40:48]POST finish read [17:40:48]Found Content-Length = 678 [17:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31673", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:48]execute_script... [17:40: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)31673", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:48]POST & json_proto [17:40:48]process_json_proto [17:40:48]json parsed OK: [17:40:48]protocol is kg_v1.0 [17:40:48]action value=close_receipt [17:40:48]process_action close_receipt [17:40:48]cmd_close_receipt [17:40:48]MH_GetDate [17:40:48]Write to MH i2c: F0 00 00 BE 22 CF [17:40:48]Write i2c OK [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: F0 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: F0 09 00 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: F0 09 00 BE 22 00 21 7B 1E 67 22 05 6E 64 F2 [17:40:48]GetLastDocTimeStamp 1730050713 [17:40:48]current date 1730050849 [17:40:48]FM_GetShiftState [17:40:48]SAM_PROTO_GetShiftState [17:40:48]wFMCommunicate request_size=4 [17:40:48]MH_SAM_APDU [17:40:48]CAPDU: 80 13 01 00 [17:40:48]Write to MH i2c: E2 08 00 BF 22 80 13 01 00 00 00 00 00 5E [17:40:48]Write i2c OK [17:40:48]MH_I2C_Read... [17:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:48]Read from MH i2c: E2 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 0E 00 [17:40:48]MH_I2C_Read... [17:40:48]Read from MH i2c: E2 0E 00 BF 22 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9F [17:40:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:40:48]wFMCommunicate OK [17:40:48]SAM_PROTO_GetShiftState done [17:40:48]FM_GetShiftState done [17:40:48]opened in 1729989159 [17:40:48]opened+sec_in_day 1730075559 [17:40:48]quantity*price = 100050 [17:40:48]sum+1 = 100052 [17:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 388 27.10.2024 17:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192356 ФПД: 125791368543677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192356&fm=125791368543677&tin=02508201610067®Number=0000000000091776&sum=100000 [17:40:49]StoreToDocumentArchive [17:40:49]shift 542 fd 192356 [17:40:49]save to /storage/0542/doc_00192356 [17:40:49]save last doc name /storage/0542/doc_00192356 to /storage/kkm_last_doc_name [17:40:49]save OK [17:40:49]Clear old archive folders... [17:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:40:49]tlvbuf is B6EF9D40 [17:40:49]SAM_PROTO_ClearQueue [17:40:49]wFMCommunicate request_size=4 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 09 00 00 [17:40:49]Write to MH i2c: E2 08 00 CC 22 80 09 00 00 00 00 00 00 60 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [17:40:49]RAPDU: 90 00 [17:40:49]wFMCommunicate OK [17:40:49]SAM_PROTO_ClearQueue done [17:40:49]KKMCreateOFDPacket [17:40:49]OFDProtocolAddRootSTLVToBuf [17:40:49]FM_MakeSignedData [17:40:49]FM_MakeSignedData [17:40:49]SAM_PROTO_SignData [17:40:49]wFMCommunicate request_size=4 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 0D 01 02 [17:40:49]Write to MH i2c: E2 08 00 CD 22 80 0D 01 02 00 00 00 00 68 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [17:40:49]RAPDU: 90 00 [17:40:49]wFMCommunicate OK [17:40:49]wFMCommunicate request_size=255 [17:40:49]MH_SAM_APDU [17:40: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 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 84 01 00 00 F4 03 04 00 21 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EF 02 00 35 04 06 00 72 68 15 D6 [17:40:49]Write to MH i2c: E2 02 01 CE 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 21 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EF 02 00 35 04 06 00 72 68 15 D6 00 00 D2 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [17:40:49]RAPDU: 90 00 [17:40:49]wFMCommunicate OK [17:40:49]wFMCommunicate request_size=7 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 0D 02 02 02 7D BD [17:40:49]Write to MH i2c: E2 0A 00 CF 22 80 0D 02 02 02 00 7D BD 00 00 A9 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [17:40:49]RAPDU: 90 00 [17:40:49]wFMCommunicate OK [17:40:49]wFMCommunicate request_size=4 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 0D 03 02 [17:40:49]Write to MH i2c: E2 08 00 D0 22 80 0D 03 02 00 00 00 00 6D [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 0B 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 0B 00 D0 22 00 5B 70 E0 9C E3 20 3A 43 90 00 35 [17:40:49]RAPDU: 5B 70 E0 9C E3 20 3A 43 90 00 [17:40:49]wFMCommunicate OK [17:40:49]SAM_PROTO_SignData done [17:40:49]FM_MakeSignedData done [17:40:49]CreateOFDProtocolMessage [17:40:49]wFMCommunicate request_size=4 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 11 00 00 [17:40:49]Write to MH i2c: E2 08 00 D1 22 80 11 00 00 00 00 00 00 6D [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 17 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 17 00 D1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [17:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:49]wFMCommunicate OK [17:40:49]CreateOFDProtocolMessage done [17:40:49]OFDSenderStorePacket 192356 [17:40:49]StoreOFDPacket docnum=192356 [17:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 87 04 01 D3 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 21 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EF 02 00 35 04 06 00 72 68 15 D6 7D BD 5B 70 E0 9C E3 20 3A 43 [17:40:49]CheckFolder [17:40:49]dirname=/storage/ofd_packets [17:40:49]CheckFolder done [17:40:49]ProducePacketName [17:40:49]name=ofd_packets/00192356 [17:40:49]NVStorageSaveData ofd_packets/00192356 [17:40:49]File name is /storage/ofd_packets/00192356 [17:40:49]Write 298 bytes [17:40:49]NVStorageSaveData done [17:40:49]OFDSenderStorePacket done [17:40:49]KKMCreateOFDPacket done [17:40:49]NVStorageSaveData kkm_last_timestamp [17:40:49]File name is /storage/kkm_last_timestamp [17:40:49]Write 4 bytes [17:40:49]NVStorageSaveData done [17:40:49]ExternCall_PrintAddStr [17:40:49]wPrintStart [17:40:49]Write to MH i2c: 01 00 00 D2 22 F4 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: 01 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: 01 07 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: 01 07 00 D2 22 00 00 00 00 00 FF 0F 09 [17:40:49]RasterBufferAndPrint [17:40:49]line Счет N : (1)31673 [17:40:49]line ИНН: 02508201610067 [17:40:49]line Контрольно-Кассовый Чек [17:40:49]line ПРОДАЖА [17:40:49]line ТРК (МРК, ГНК) : 11 [17:40:49]line Товар: 2710194210 [17:40:49]line ДТ-К-5 [17:40:49]line 13.130 * 76.20 [17:40:49]line = 1000.51 [17:40:49]line НДС 12% НСП 1% [17:40:49]line > о реализуемом товаре [17:40:49]line ОКРУГЛЕНИЕ: -0.51 [17:40:49]line ИТОГО: 1000.00 [17:40:49]line Внесено: 1000.00 [17:40:49]line СДАЧА: 0.00 [17:40:49]line НСП 1% : 8.85 [17:40:49]line НДС 12% : 106.25 [17:40:49]line Наличными: 1000.00 [17:40:49]line Безнал.: 0.00 [17:40:49]line Место: АЗС № 170 "Партнер Нефть" [17:40:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:40:49]line СНО: Общий режим [17:40:49]line Чек 388 27.10.2024 17:40 [17:40:49]line Смена: 542 ФФД: 1.0 [17:40:49]line ЗНМ: 0300000110 [17:40:49]line РНМ: 0000000000091776 [17:40:49]line Версия ККМ: 001 [17:40:49]line ФМ: 0000000000871754 [17:40:49]line ФД: 192356 [17:40:49]line ФПД: 125791368543677 [17:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192356&fm=125791368543677&tin=02508201610067®Number=0000000000091776&sum=100000 [17:40:50]OFD Sender: Processing packet 192356 [packets to send 75, broken 74] [17:40:50]ProducePacketName [17:40:50]name=ofd_packets/00192356 [17:40:50]OFD Sender: To server: pG, [17:40:50]CommunicateWithHost lk.salyk.kg:30040 [17:40:50]ConnectInit lk.salyk.kg [17:40:50]written 0, free lines is 4095 [17:40:50]Connected sock=10 [17:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 87 04 01 D3 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 21 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EF 02 00 35 04 06 00 72 68 15 D6 7D BD 5B 70 E0 9C E3 20 3A 43 [17: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 37 35 34 4F 00 00 00 B8 8F 47 00 E3 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 EF 02 00 F4 03 04 00 E8 1F 1E 67 B6 04 01 00 00 25 F8 AD 19 46 09 0F B3 [17:40:50]CommunicateWithHost err = 0 [17:40:50]CheckOFDResponse [17:40:50]1017 (14) - 77093643461234 [17:40:50]1041 (16) - 0000000000871754 [17:40:50]1040 (4) - 192356 [17:40:50]1012 (4) - 27.10.2024 11:11 [17:40:50]1206 (1) - 0 [17:40:50]OFD Sender: Remove packet 192356 [17:40:50]ProducePacketName [17:40:50]name=ofd_packets/00192356 [17:40:50]NVStorageDeleteData [17:40:50]Write to MH i2c: 01 00 00 FD 22 1F [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: 01 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: 01 07 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: 01 07 00 FD 22 00 00 00 00 00 BE 0C F0 [17:40:50]RasterBufferAndPrint [17:40:50]line [17:40:50]line [17:40:50]line [17:40:50]line [17:40:50]line [17:40:50]written 0, free lines is 3270 [17:40:50]MH_Cut [17:40:50]Write to MH i2c: D1 01 00 04 23 01 F9 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: D1 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: D1 01 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: D1 01 00 04 23 00 F8 [17:40:50]Write to MH i2c: 01 00 00 05 23 28 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:51]OFD Sender: No OFD packet to send [17:40:51]*** Cut start [17:40:51]*** Partial cut [17:40:51]*** CUTSNS_PIN = 1 [17:40:51]*** CUTSNS_PIN = 0 [17:40:51]*** Brake cut motor [17:40:52]Read from MH i2c: 01 [17:40:52]MH_I2C_Read... [17:40:52]*** Stop cut motor [17:40:52]*** Cut end [17:40:52]Read from MH i2c: 01 07 00 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: 01 07 00 05 23 00 00 00 00 00 FF 0F 3D [17:40:52]process_action close_receipt done [17:40:52]requested_data is exist [17:40:52]produce_requested_data [17:40:52]requested_item fm.sn is exist - process it [17:40:52]wFMCommunicate request_size=4 [17:40:52]MH_SAM_APDU [17:40:52]CAPDU: 80 11 00 00 [17:40:52]Write to MH i2c: E2 08 00 06 23 80 11 00 00 00 00 00 00 A3 [17:40:52]Write i2c OK [17:40:52]MH_I2C_Read... [17:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:52]Read from MH i2c: E2 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 17 00 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 17 00 06 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [17:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:52]wFMCommunicate OK [17:40:52]requested_item fd.num is exist - process it [17:40:52]SAM_PROTO_GetFieldsCounters [17:40:52]wFMCommunicate request_size=4 [17:40:52]MH_SAM_APDU [17:40:52]CAPDU: 80 13 00 00 [17:40:52]Write to MH i2c: E2 08 00 07 23 80 13 00 00 00 00 00 00 A6 [17:40:52]Write i2c OK [17:40:52]MH_I2C_Read... [17:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:52]Read from MH i2c: E2 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 62 00 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 62 00 07 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:52]wFMCommunicate OK [17:40:52]SAM_PROTO_GetFieldsCounters done [17:40:52]requested_item shift.num is exist - process it [17:40:52]requested_item shift.opened is exist - process it [17:40:52]req_shift_opened [17:40:52]FM_GetShiftState [17:40:52]SAM_PROTO_GetShiftState [17:40:52]wFMCommunicate request_size=4 [17:40:52]MH_SAM_APDU [17:40:52]CAPDU: 80 13 01 00 [17:40:52]Write to MH i2c: E2 08 00 08 23 80 13 01 00 00 00 00 00 A8 [17:40:52]Write i2c OK [17:40:52]MH_I2C_Read... [17:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:52]Read from MH i2c: E2 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 0E 00 [17:40:52]MH_I2C_Read... [17:40:52]Read from MH i2c: E2 0E 00 08 23 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E9 [17:40:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:40:52]wFMCommunicate OK [17:40:52]SAM_PROTO_GetShiftState done [17:40:52]FM_GetShiftState done [17:40:52]req_shift_opened done [17:40:52]requested_item shift.open_date is exist - process it [17:40:52]req_shift_open_date [17:40:52]req_shift_open_date done [17:40:52]produce_requested_data done [17:40:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192356,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:40:52]process_action_free close_receipt [17:40:52]json_value_free [17:40:52]json_value_free done [17:40:52]process_json_proto returns [17:40:52]Send response to host [17:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192356,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:40:52]free response buf [17:40:52]execute_script done [17:40:52]execute_script returns [17:40:52]free content buf [17:40:52]Sock 7.Close socket [17:40:52]Sock 7.Thread stoped [17:40:53]accept exits with 9 [17:40:53]New connection [17:40:53]New thread 3067080036 created [17:40:53]Thread 3066936676 joined [17:40:53]Waiting for new connection... [17:40:53] Sock 9.Parse request [17:40:53]Sock 9.Check first char [17:40:53]Sock 9.First char is OK [17:40:53]request: POST /json_proto HTTP/1.0 [17:40:53]Method: POST [17:40:53]URL: /json_proto [17:40:53]Method is POST - this is cgi request [17:40:53]url: /json_proto [17:40:53]query_string will be loaded in cgi processing [17:40:53]execute_cgi json_proto POST (null) [17:40:53]execute_cgi path=json_proto method=POST [17:40:53]POST find Content-Length [17:40:53]Host: 172.17.63.131:8080 [17:40:53]Content-Length: 681 [17:40:53]Content-Type: application/json [17:40:53] [17:40:53]POST finish read [17:40:53]Found Content-Length = 681 [17:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:53]execute_script... [17:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:53]POST & json_proto [17:40:53]process_json_proto [17:40:53]json parsed OK: [17:40:53]protocol is kg_v1.0 [17:40:53]action value=close_receipt [17:40:53]process_action close_receipt [17:40:53]cmd_close_receipt [17:40:53]MH_GetDate [17:40:53]Write to MH i2c: F0 00 00 09 23 1B [17:40:53]Write i2c OK [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: F0 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: F0 09 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: F0 09 00 09 23 00 26 7B 1E 67 22 05 6E 64 43 [17:40:53]GetLastDocTimeStamp 1730050849 [17:40:53]current date 1730050854 [17:40:53]FM_GetShiftState [17:40:53]SAM_PROTO_GetShiftState [17:40:53]wFMCommunicate request_size=4 [17:40:53]MH_SAM_APDU [17:40:53]CAPDU: 80 13 01 00 [17:40:53]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [17:40:53]Write i2c OK [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 [17:40:53]MH_I2C_Read... [17:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:53]Read from MH i2c: E2 0E 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EB [17:40:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:40:53]wFMCommunicate OK [17:40:53]SAM_PROTO_GetShiftState done [17:40:53]FM_GetShiftState done [17:40:53]opened in 1729989159 [17:40:53]opened+sec_in_day 1730075559 [17:40:53]quantity*price = 100015 [17:40:53]sum+1 = 100017 [17:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 389 27.10.2024 17:40 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192357 ФПД: 271083839941919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192357&fm=271083839941919&tin=02508201610067®Number=0000000000091776&sum=100000 [17:40:55]StoreToDocumentArchive [17:40:55]shift 542 fd 192357 [17:40:55]save to /storage/0542/doc_00192357 [17:40:55]save last doc name /storage/0542/doc_00192357 to /storage/kkm_last_doc_name [17:40:55]save OK [17:40:55]Clear old archive folders... [17:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:55]tlvbuf is 003E46F0 [17:40:55]SAM_PROTO_ClearQueue [17:40:55]wFMCommunicate request_size=4 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 09 00 00 [17:40:55]Write to MH i2c: E2 08 00 17 23 80 09 00 00 00 00 00 00 AC [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 17 23 00 90 00 AE [17:40:55]RAPDU: 90 00 [17:40:55]wFMCommunicate OK [17:40:55]SAM_PROTO_ClearQueue done [17:40:55]KKMCreateOFDPacket [17:40:55]OFDProtocolAddRootSTLVToBuf [17:40:55]FM_MakeSignedData [17:40:55]FM_MakeSignedData [17:40:55]SAM_PROTO_SignData [17:40:55]wFMCommunicate request_size=4 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 0D 01 02 [17:40:55]Write to MH i2c: E2 08 00 18 23 80 0D 01 02 00 00 00 00 B4 [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [17:40:55]RAPDU: 90 00 [17:40:55]wFMCommunicate OK [17:40:55]wFMCommunicate request_size=255 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 26 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EF 02 00 35 04 06 00 F6 [17:40:55]Write to MH i2c: E2 02 01 19 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 26 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EF 02 00 35 04 06 00 F6 00 00 5A [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [17:40:55]RAPDU: 90 00 [17:40:55]wFMCommunicate OK [17:40:55]wFMCommunicate request_size=10 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 0D 02 02 05 8C 9F FB ED 1F [17:40:55]Write to MH i2c: E2 0D 00 1A 23 80 0D 02 02 05 00 8C 9F FB ED 1F 00 00 F3 [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [17:40:55]RAPDU: 90 00 [17:40:55]wFMCommunicate OK [17:40:55]wFMCommunicate request_size=4 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 0D 03 02 [17:40:55]Write to MH i2c: E2 08 00 1B 23 80 0D 03 02 00 00 00 00 B9 [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 0B 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 0B 00 1B 23 00 23 0B 27 EC 2F 65 69 A7 90 00 9F [17:40:55]RAPDU: 23 0B 27 EC 2F 65 69 A7 90 00 [17:40:55]wFMCommunicate OK [17:40:55]SAM_PROTO_SignData done [17:40:55]FM_MakeSignedData done [17:40:55]CreateOFDProtocolMessage [17:40:55]wFMCommunicate request_size=4 [17:40:55]MH_SAM_APDU [17:40:55]CAPDU: 80 11 00 00 [17:40:55]Write to MH i2c: E2 08 00 1C 23 80 11 00 00 00 00 00 00 B9 [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:55]Read from MH i2c: E2 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 17 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: E2 17 00 1C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [17:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:55]wFMCommunicate OK [17:40:55]CreateOFDProtocolMessage done [17:40:55]OFDSenderStorePacket 192357 [17:40:55]StoreOFDPacket docnum=192357 [17:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 D1 07 01 8F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 26 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EF 02 00 35 04 06 00 F6 8C 9F FB ED 1F 23 0B 27 EC 2F 65 69 A7 [17:40:55]CheckFolder [17:40:55]dirname=/storage/ofd_packets [17:40:55]CheckFolder done [17:40:55]ProducePacketName [17:40:55]name=ofd_packets/00192357 [17:40:55]NVStorageSaveData ofd_packets/00192357 [17:40:55]File name is /storage/ofd_packets/00192357 [17:40:55]Write 301 bytes [17:40:55]NVStorageSaveData done [17:40:55]OFDSenderStorePacket done [17:40:55]KKMCreateOFDPacket done [17:40:55]NVStorageSaveData kkm_last_timestamp [17:40:55]File name is /storage/kkm_last_timestamp [17:40:55]Write 4 bytes [17:40:55]NVStorageSaveData done [17:40:55]ExternCall_PrintAddStr [17:40:55]wPrintStart [17:40:55]Write to MH i2c: 01 00 00 1D 23 40 [17:40:55]Write i2c OK [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: 01 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: 01 07 00 [17:40:55]MH_I2C_Read... [17:40:55]Read from MH i2c: 01 07 00 1D 23 00 00 00 00 00 FF 0F 55 [17:40:55]RasterBufferAndPrint [17:40:55]line Счет N : (1)31674 [17:40:55]line ИНН: 02508201610067 [17:40:55]line Контрольно-Кассовый Чек [17:40:55]line ПРОДАЖА [17:40:55]line ТРК (МРК, ГНК) : 21 [17:40:55]line Товар: 2710124130 [17:40:55]line Аи-92-К-5 [17:40:55]line 14.950 * 66.90 [17:40:55]line = 1000.16 [17:40:55]line НДС 12% НСП 1% [17:40:55]line > о реализуемом товаре [17:40:55]line ОКРУГЛЕНИЕ: -0.16 [17:40:55]line ИТОГО: 1000.00 [17:40:55]line Внесено: 1000.00 [17:40:55]line СДАЧА: 0.00 [17:40:55]line НСП 1% : 8.85 [17:40:55]line НДС 12% : 106.21 [17:40:55]line Наличными: 1000.00 [17:40:55]line Безнал.: 0.00 [17:40:55]line Место: АЗС № 170 "Партнер Нефть" [17:40:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:40:55]line СНО: Общий режим [17:40:55]line Чек 389 27.10.2024 17:40 [17:40:55]line Смена: 542 ФФД: 1.0 [17:40:55]line ЗНМ: 0300000110 [17:40:55]line РНМ: 0000000000091776 [17:40:55]line Версия ККМ: 001 [17:40:55]line ФМ: 0000000000871754 [17:40:55]line ФД: 192357 [17:40:55]line ФПД: 271083839941919 [17:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192357&fm=271083839941919&tin=02508201610067®Number=0000000000091776&sum=100000 [17:40:55]written 0, free lines is 4095 [17:40:55]OFD Sender: Processing packet 192357 [packets to send 75, broken 74] [17:40:55]ProducePacketName [17:40:55]name=ofd_packets/00192357 [17:40:55]OFD Sender: To server: pG, [17:40:55]CommunicateWithHost lk.salyk.kg:30040 [17:40:55]ConnectInit lk.salyk.kg [17:40:56]Connected sock=10 [17:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 D1 07 01 8F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 26 7B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 EF 02 00 35 04 06 00 F6 8C 9F FB ED 1F 23 0B 27 EC 2F 65 69 A7 [17:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 60 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 37 35 34 10 04 04 00 65 EF 02 00 F4 03 04 00 ED 1F 1E 67 B6 04 01 00 00 F0 4E 27 B9 26 C8 CB 62 [17:40:56]CommunicateWithHost err = 0 [17:40:56]CheckOFDResponse [17:40:56]1017 (14) - 77093643461234 [17:40:56]1041 (16) - 0000000000871754 [17:40:56]1040 (4) - 192357 [17:40:56]1012 (4) - 27.10.2024 11:11 [17:40:56]1206 (1) - 0 [17:40:56]OFD Sender: Remove packet 192357 [17:40:56]ProducePacketName [17:40:56]name=ofd_packets/00192357 [17:40:56]NVStorageDeleteData [17:40:56]Write to MH i2c: 01 00 00 48 23 6B [17:40:56]Write i2c OK [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: 01 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: 01 07 00 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 C4 0C 42 [17:40:56]RasterBufferAndPrint [17:40:56]line [17:40:56]line [17:40:56]line [17:40:56]line [17:40:56]line [17:40:56]written 0, free lines is 3280 [17:40:56]MH_Cut [17:40:56]Write to MH i2c: D1 01 00 4F 23 01 44 [17:40:56]Write i2c OK [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: D1 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: D1 01 00 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: D1 01 00 4F 23 00 43 [17:40:56]Write to MH i2c: 01 00 00 50 23 73 [17:40:56]Write i2c OK [17:40:56]MH_I2C_Read... [17:40:56]OFD Sender: No OFD packet to send [17:40:57]*** Cut start [17:40:57]*** Partial cut [17:40:57]*** CUTSNS_PIN = 1 [17:40:57]*** CUTSNS_PIN = 0 [17:40:57]*** Brake cut motor [17:40:57]Read from MH i2c: 01 [17:40:57]MH_I2C_Read... [17:40:57]*** Stop cut motor [17:40:57]*** Cut end [17:40:57]Read from MH i2c: 01 07 00 [17:40:57]MH_I2C_Read... [17:40:57]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 FF 0F 88 [17:40:57]process_action close_receipt done [17:40:57]requested_data is exist [17:40:57]produce_requested_data [17:40:57]requested_item fm.sn is exist - process it [17:40:57]wFMCommunicate request_size=4 [17:40:57]MH_SAM_APDU [17:40:57]CAPDU: 80 11 00 00 [17:40:57]Write to MH i2c: E2 08 00 51 23 80 11 00 00 00 00 00 00 EE [17:40:57]Write i2c OK [17:40:57]MH_I2C_Read... [17:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:57]Read from MH i2c: E2 [17:40:57]MH_I2C_Read... [17:40:57]Read from MH i2c: E2 17 00 [17:40:57]MH_I2C_Read... [17:40:57]Read from MH i2c: E2 17 00 51 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [17:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:40:57]wFMCommunicate OK [17:40:57]requested_item fd.num is exist - process it [17:40:57]SAM_PROTO_GetFieldsCounters [17:40:57]wFMCommunicate request_size=4 [17:40:57]MH_SAM_APDU [17:40:57]CAPDU: 80 13 00 00 [17:40:57]Write to MH i2c: E2 08 00 52 23 80 13 00 00 00 00 00 00 F1 [17:40:57]Write i2c OK [17:40:57]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 62 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 62 00 52 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:58]wFMCommunicate OK [17:40:58]SAM_PROTO_GetFieldsCounters done [17:40:58]requested_item shift.num is exist - process it [17:40:58]requested_item shift.opened is exist - process it [17:40:58]req_shift_opened [17:40:58]FM_GetShiftState [17:40:58]SAM_PROTO_GetShiftState [17:40:58]wFMCommunicate request_size=4 [17:40:58]MH_SAM_APDU [17:40:58]CAPDU: 80 13 01 00 [17:40:58]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 0E 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 34 [17:40:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:40:58]wFMCommunicate OK [17:40:58]SAM_PROTO_GetShiftState done [17:40:58]FM_GetShiftState done [17:40:58]req_shift_opened done [17:40:58]requested_item shift.open_date is exist - process it [17:40:58]req_shift_open_date [17:40:58]req_shift_open_date done [17:40:58]produce_requested_data done [17:40:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192357,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:40:58]process_action_free close_receipt [17:40:58]json_value_free [17:40:58]json_value_free done [17:40:58]process_json_proto returns [17:40:58]Send response to host [17:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192357,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:40:58]free response buf [17:40:58]execute_script done [17:40:58]execute_script returns [17:40:58]free content buf [17:40:58]Sock 9.Close socket [17:40:58]Sock 9.Thread stoped [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:08]accept exits with 7 [17:43:08]New connection [17:43:08]New thread 3066936676 created [17:43:08]Thread 3067080036 joined [17:43:08]Waiting for new connection... [17:43:08] Sock 7.Parse request [17:43:08]Sock 7.Check first char [17:43:08]Sock 7.First char is OK [17:43:08]request: POST /json_proto HTTP/1.0 [17:43:08]Method: POST [17:43:08]URL: /json_proto [17:43:08]Method is POST - this is cgi request [17:43:08]url: /json_proto [17:43:08]query_string will be loaded in cgi processing [17:43:08]execute_cgi json_proto POST (null) [17:43:08]execute_cgi path=json_proto method=POST [17:43:08]POST find Content-Length [17:43:08]Host: 172.17.63.131:8080 [17:43:08]Content-Length: 804 [17:43:08]Content-Type: application/json [17:43:08] [17:43:08]POST finish read [17:43:08]Found Content-Length = 804 [17:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31675", "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" : 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: \u041E! \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" ] } } [17:43:08]execute_script... [17:43: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)31675", "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" : 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: \u041E! \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" ] } } [17:43:08]POST & json_proto [17:43:08]process_json_proto [17:43:08]json parsed OK: [17:43:08]protocol is kg_v1.0 [17:43:08]action value=close_receipt [17:43:08]process_action close_receipt [17:43:08]cmd_close_receipt [17:43:08]MH_GetDate [17:43:08]Write to MH i2c: F0 00 00 54 23 66 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: F0 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: F0 09 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: F0 09 00 54 23 00 AD 7B 1E 67 22 05 6E 64 15 [17:43:08]GetLastDocTimeStamp 1730050854 [17:43:08]current date 1730050989 [17:43:08]FM_GetShiftState [17:43:08]SAM_PROTO_GetShiftState [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 13 01 00 [17:43:08]Write to MH i2c: E2 08 00 55 23 80 13 01 00 00 00 00 00 F5 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0E 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0E 00 55 23 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 36 [17:43:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:43:08]wFMCommunicate OK [17:43:08]SAM_PROTO_GetShiftState done [17:43:08]FM_GetShiftState done [17:43:08]opened in 1729989159 [17:43:08]opened+sec_in_day 1730075559 [17:43:08]quantity*price = 100050 [17:43:08]sum+1 = 100052 [17:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре [17:45:20]line ИТОГО: 1000.51 [17:45:20]line НСП 1% : 8.85 [17:45:20]line НДС 12% : 106.25 [17:45:20]line Наличными: 0.00 [17:45:20]line Безнал.: 1000.51 [17:45:20]line Место: АЗС № 170 "Партнер Нефть" [17:45:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:45:20]line СНО: Общий режим [17:45:20]line Чек 390 27.10.2024 17:43 [17:45:20]line Смена: 542 ФФД: 1.0 [17:45:20]line ЗНМ: 0300000110 [17:45:20]line РНМ: 0000000000091776 [17:45:20]line Версия ККМ: 001 [17:45:20]line Платежная система: О! деньги [17:45:20]line ФМ: 0000000000871754 [17:45:20]line ФД: 192358 [17:45:20]line ФПД: 46437426101682 [17:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174309&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192358&fm=46437426101682&tin=02508201610067®Number=0000000000091776&sum=100051 [17:45:20]written 0, free lines is 4095 [17:45:20]OFD Sender: No OFD packet to send [17:45:20]Write to MH i2c: 01 00 00 47 00 47 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: 01 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: 01 07 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 BA 0C 14 [17:45:20]RasterBufferAndPrint [17:45:20]line [17:45:20]line [17:45:20]line [17:45:20]line [17:45:20]line [17:45:20]written 0, free lines is 3270 [17:45:20]MH_Cut [17:45:20]Write to MH i2c: D1 01 00 4E 00 01 20 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: D1 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: D1 01 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: D1 01 00 4E 00 00 1F [17:45:20]Write to MH i2c: 01 00 00 4F 00 4F [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:21]*** Cut start [17:45:21]*** Partial cut [17:45:21]*** CUTSNS_PIN = 1 [17:45:21]*** CUTSNS_PIN = 0 [17:45:21]*** Brake cut motor [17:45:21]Read from MH i2c: 01 [17:45:21]MH_I2C_Read... [17:45:21]*** Stop cut motor [17:45:21]*** Cut end [17:45:21]Read from MH i2c: 01 07 00 [17:45:21]MH_I2C_Read... [17:45:21]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [17:45:21]process_action print_doc done [17:45:21]requested_data is exist [17:45:21]produce_requested_data [17:45:21]produce_requested_data return (null) [17:45:21]process_action_free print_doc [17:45:21]json_value_free [17:45:21]json_value_free done [17:45:21]process_json_proto returns [17:45:21]Send response to host [17:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:45:21]free response buf [17:45:21]execute_script done [17:45:21]execute_script returns [17:45:21]free content buf [17:45:21]Sock 9.Close socket [17:45:21]Sock 9.Thread stoped [17:45:22]accept exits with 7 [17:45:22]New connection [17:45:22]New thread 3066563940 created [17:45:22]Thread 3066707300 joined [17:45:22]Waiting for new connection... [17:45:22] Sock 7.Parse request [17:45:22]Sock 7.Check first char [17:45:22]Sock 7.First char is OK [17:45:22]request: POST /json_proto HTTP/1.0 [17:45:22]Method: POST [17:45:22]URL: /json_proto [17:45:22]Method is POST - this is cgi request [17:45:22]url: /json_proto [17:45:22]query_string will be loaded in cgi processing [17:45:22]execute_cgi json_proto POST (null) [17:45:22]execute_cgi path=json_proto method=POST [17:45:22]POST find Content-Length [17:45:22]Host: 172.17.63.131:8080 [17:45:22]Content-Length: 681 [17:45:22]Content-Type: application/json [17:45:22] [17:45:22]POST finish read [17:45:22]Found Content-Length = 681 [17:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.450, "sum" : 1903.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1903.00, "payments": [ { "type": 0, "sum" : 1903.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:22]execute_script... [17:45: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)31676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.450, "sum" : 1903.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1903.00, "payments": [ { "type": 0, "sum" : 1903.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:22]POST & json_proto [17:45:22]process_json_proto [17:45:22]json parsed OK: [17:45:22]protocol is kg_v1.0 [17:45:22]action value=close_receipt [17:45:22]process_action close_receipt [17:45:22]cmd_close_receipt [17:45:22]MH_GetDate [17:45:22]Write to MH i2c: F0 00 00 50 00 3F [17:45:22]Write i2c OK [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 09 00 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: F0 09 00 50 00 00 33 7C 1E 67 22 05 6E 64 75 [17:45:22]GetLastDocTimeStamp 1730050989 [17:45:22]current date 1730051123 [17:45:22]FM_GetShiftState [17:45:22]SAM_PROTO_GetShiftState [17:45:22]wFMCommunicate request_size=4 [17:45:22]MH_SAM_APDU [17:45:22]CAPDU: 80 13 01 00 [17:45:22]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [17:45:22]Write i2c OK [17:45:22]MH_I2C_Read... [17:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:22]Read from MH i2c: E2 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: E2 0E 00 [17:45:22]MH_I2C_Read... [17:45:22]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0F [17:45:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:45:22]wFMCommunicate OK [17:45:22]SAM_PROTO_GetShiftState done [17:45:22]FM_GetShiftState done [17:45:22]opened in 1729989159 [17:45:22]opened+sec_in_day 1730075559 [17:45:22]quantity*price = 190330 [17:45:22]sum+1 = 190332 [17:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1903.00 Внесено: 2000.00 СДАЧА: 97.00 НСП 1% : 16.84 НДС 12% : 202.12 Наличными: 1903.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 391 27.10.2024 17:45 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192359 ФПД: 71063048426200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192359&fm=71063048426200&tin=02508201610067®Number=0000000000091776&sum=190300 [17:45:23]StoreToDocumentArchive [17:45:23]shift 542 fd 192359 [17:45:23]save to /storage/0542/doc_00192359 [17:45:23]save last doc name /storage/0542/doc_00192359 to /storage/kkm_last_doc_name [17:45:23]save OK [17:45:23]Clear old archive folders... [17:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:23]tlvbuf is 01966B90 [17:45:23]SAM_PROTO_ClearQueue [17:45:23]wFMCommunicate request_size=4 [17:45:23]MH_SAM_APDU [17:45:23]CAPDU: 80 09 00 00 [17:45:23]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [17:45:23]Write i2c OK [17:45:23]MH_I2C_Read... [17:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:23]Read from MH i2c: E2 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 03 00 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [17:45:23]RAPDU: 90 00 [17:45:23]wFMCommunicate OK [17:45:23]SAM_PROTO_ClearQueue done [17:45:23]KKMCreateOFDPacket [17:45:23]OFDProtocolAddRootSTLVToBuf [17:45:23]FM_MakeSignedData [17:45:23]FM_MakeSignedData [17:45:23]SAM_PROTO_SignData [17:45:23]wFMCommunicate request_size=4 [17:45:23]MH_SAM_APDU [17:45:23]CAPDU: 80 0D 01 02 [17:45:23]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [17:45:23]Write i2c OK [17:45:23]MH_I2C_Read... [17:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:23]Read from MH i2c: E2 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 03 00 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:45:23]RAPDU: 90 00 [17:45:23]wFMCommunicate OK [17:45:23]wFMCommunicate request_size=255 [17:45:23]MH_SAM_APDU [17:45: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 22 6F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C E7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 4E 00 00 00 00 07 04 06 00 5C E7 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 33 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EF 02 00 35 04 06 00 40 [17:45:23]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 6F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C E7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 4E 00 00 00 00 07 04 06 00 5C E7 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 33 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EF 02 00 35 04 06 00 40 00 00 F2 [17:45:23]Write i2c OK [17:45:23]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]wFMCommunicate request_size=10 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 0D 02 02 05 A1 A7 C2 12 D8 [17:45:24]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 A1 A7 C2 12 D8 00 00 D9 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 0D 03 02 [17:45:24]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 0B 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 0B 00 62 00 00 30 22 2C 90 B8 C6 29 92 90 00 25 [17:45:24]RAPDU: 30 22 2C 90 B8 C6 29 92 90 00 [17:45:24]wFMCommunicate OK [17:45:24]SAM_PROTO_SignData done [17:45:24]FM_MakeSignedData done [17:45:24]CreateOFDProtocolMessage [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 11 00 00 [17:45:24]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 17 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [17:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:45:24]wFMCommunicate OK [17:45:24]CreateOFDProtocolMessage done [17:45:24]OFDSenderStorePacket 192359 [17:45:24]StoreOFDPacket docnum=192359 [17:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C E6 07 01 DC 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 6F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C E7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 4E 00 00 00 00 07 04 06 00 5C E7 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 33 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EF 02 00 35 04 06 00 40 A1 A7 C2 12 D8 30 22 2C 90 B8 C6 29 92 [17:45:24]CheckFolder [17:45:24]dirname=/storage/ofd_packets [17:45:24]CheckFolder done [17:45:24]ProducePacketName [17:45:24]name=ofd_packets/00192359 [17:45:24]NVStorageSaveData ofd_packets/00192359 [17:45:24]File name is /storage/ofd_packets/00192359 [17:45:24]Write 301 bytes [17:45:24]NVStorageSaveData done [17:45:24]OFDSenderStorePacket done [17:45:24]KKMCreateOFDPacket done [17:45:24]NVStorageSaveData kkm_last_timestamp [17:45:24]File name is /storage/kkm_last_timestamp [17:45:24]Write 4 bytes [17:45:24]NVStorageSaveData done [17:45:24]ExternCall_PrintAddStr [17:45:24]wPrintStart [17:45:24]Write to MH i2c: 01 00 00 64 00 64 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 07 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [17:45:24]RasterBufferAndPrint [17:45:24]line Счет N : (1)31676 [17:45:24]line ИНН: 02508201610067 [17:45:24]line Контрольно-Кассовый Чек [17:45:24]line ПРОДАЖА [17:45:24]line ТРК (МРК, ГНК) : 12 [17:45:24]line Товар: 2710124130 [17:45:24]line Аи-92-К-5 [17:45:24]line 28.450 * 66.90 [17:45:24]line = 1903.31 [17:45:24]line НДС 12% НСП 1% [17:45:24]line > о реализуемом товаре [17:45:24]line ОКРУГЛЕНИЕ: -0.31 [17:45:24]line ИТОГО: 1903.00 [17:45:24]line Внесено: 2000.00 [17:45:24]line СДАЧА: 97.00 [17:45:24]line НСП 1% : 16.84 [17:45:24]line НДС 12% : 202.12 [17:45:24]line Наличными: 1903.00 [17:45:24]line Безнал.: 0.00 [17:45:24]line Место: АЗС № 170 "Партнер Нефть" [17:45:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:45:24]line СНО: Общий режим [17:45:24]line Чек 391 27.10.2024 17:45 [17:45:24]line Смена: 542 ФФД: 1.0 [17:45:24]line ЗНМ: 0300000110 [17:45:24]line РНМ: 0000000000091776 [17:45:24]line Версия ККМ: 001 [17:45:24]line ФМ: 0000000000871754 [17:45:24]line ФД: 192359 [17:45:24]line ФПД: 71063048426200 [17:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192359&fm=71063048426200&tin=02508201610067®Number=0000000000091776&sum=190300 [17:45:24]written 0, free lines is 4095 [17:45:24]OFD Sender: Processing packet 192359 [packets to send 75, broken 74] [17:45:24]ProducePacketName [17:45:24]name=ofd_packets/00192359 [17:45:24]OFD Sender: To server: pG, [17:45:24]CommunicateWithHost lk.salyk.kg:30040 [17:45:24]ConnectInit lk.salyk.kg [17:45:24]Connected sock=10 [17:45:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9C E6 07 01 DC 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 6F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B E7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C E7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 4E 00 00 00 00 07 04 06 00 5C E7 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 33 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EF 02 00 35 04 06 00 40 A1 A7 C2 12 D8 30 22 2C 90 B8 C6 29 92 [17:45:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB 14 47 00 B1 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 EF 02 00 F4 03 04 00 FA 20 1E 67 B6 04 01 00 00 29 62 71 76 0A 6A A9 DE [17:45:24]CommunicateWithHost err = 0 [17:45:24]CheckOFDResponse [17:45:24]1017 (14) - 77093643461234 [17:45:24]1041 (16) - 0000000000871754 [17:45:24]1040 (4) - 192359 [17:45:24]1012 (4) - 27.10.2024 11:16 [17:45:24]1206 (1) - 0 [17:45:24]OFD Sender: Remove packet 192359 [17:45:24]ProducePacketName [17:45:24]name=ofd_packets/00192359 [17:45:24]NVStorageDeleteData [17:45:24]Write to MH i2c: 01 00 00 8F 00 8F [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 07 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 BC 0C 5E [17:45:24]RasterBufferAndPrint [17:45:24]line [17:45:24]line [17:45:24]line [17:45:24]line [17:45:24]line [17:45:24]written 0, free lines is 3274 [17:45:24]MH_Cut [17:45:24]Write to MH i2c: D1 01 00 96 00 01 68 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: D1 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: D1 01 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: D1 01 00 96 00 00 67 [17:45:24]Write to MH i2c: 01 00 00 97 00 97 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:25]OFD Sender: No OFD packet to send [17:45:25]*** Cut start [17:45:25]*** Partial cut [17:45:25]*** CUTSNS_PIN = 1 [17:45:25]*** CUTSNS_PIN = 0 [17:45:25]*** Brake cut motor [17:45:26]Read from MH i2c: 01 [17:45:26]MH_I2C_Read... [17:45:26]*** Stop cut motor [17:45:26]*** Cut end [17:45:26]Read from MH i2c: 01 07 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [17:45:26]process_action close_receipt done [17:45:26]requested_data is exist [17:45:26]produce_requested_data [17:45:26]requested_item fm.sn is exist - process it [17:45:26]wFMCommunicate request_size=4 [17:45:26]MH_SAM_APDU [17:45:26]CAPDU: 80 11 00 00 [17:45:26]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:26]Read from MH i2c: E2 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 17 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [17:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:45:26]wFMCommunicate OK [17:45:26]requested_item fd.num is exist - process it [17:45:26]SAM_PROTO_GetFieldsCounters [17:45:26]wFMCommunicate request_size=4 [17:45:26]MH_SAM_APDU [17:45:26]CAPDU: 80 13 00 00 [17:45:26]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:26]Read from MH i2c: E2 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 62 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:26]wFMCommunicate OK [17:45:26]SAM_PROTO_GetFieldsCounters done [17:45:26]requested_item shift.num is exist - process it [17:45:26]requested_item shift.opened is exist - process it [17:45:26]req_shift_opened [17:45:26]FM_GetShiftState [17:45:26]SAM_PROTO_GetShiftState [17:45:26]wFMCommunicate request_size=4 [17:45:26]MH_SAM_APDU [17:45:26]CAPDU: 80 13 01 00 [17:45:26]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:26]Read from MH i2c: E2 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 0E 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [17:45:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:45:26]wFMCommunicate OK [17:45:26]SAM_PROTO_GetShiftState done [17:45:26]FM_GetShiftState done [17:45:26]req_shift_opened done [17:45:26]requested_item shift.open_date is exist - process it [17:45:26]req_shift_open_date [17:45:26]req_shift_open_date done [17:45:26]produce_requested_data done [17:45:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192359,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:45:26]process_action_free close_receipt [17:45:26]json_value_free [17:45:26]json_value_free done [17:45:26]process_json_proto returns [17:45:26]Send response to host [17:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192359,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:45:26]free response buf [17:45:26]execute_script done [17:45:26]execute_script returns [17:45:26]free content buf [17:45:26]Sock 7.Close socket [17:45:26]Sock 7.Thread stoped [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:26]accept exits with 9 [17:46:26]New connection [17:46:26]New thread 3066707300 created [17:46:26]Thread 3066563940 joined [17:46:26]Waiting for new connection... [17:46:26] Sock 9.Parse request [17:46:26]Sock 9.Check first char [17:46:26]Sock 9.First char is OK [17:46:26]request: POST /json_proto HTTP/1.0 [17:46:26]Method: POST [17:46:26]URL: /json_proto [17:46:26]Method is POST - this is cgi request [17:46:26]url: /json_proto [17:46:26]query_string will be loaded in cgi processing [17:46:26]execute_cgi json_proto POST (null) [17:46:26]execute_cgi path=json_proto method=POST [17:46:26]POST find Content-Length [17:46:26]Host: 172.17.63.131:8080 [17:46:26]Content-Length: 676 [17:46:26]Content-Type: application/json [17:46:26] [17:46:26]POST finish read [17:46:26]Found Content-Length = 676 [17:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:26]execute_script... [17:46: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)31678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:26]POST & json_proto [17:46:26]process_json_proto [17:46:26]json parsed OK: [17:46:26]protocol is kg_v1.0 [17:46:26]action value=close_receipt [17:46:26]process_action close_receipt [17:46:26]cmd_close_receipt [17:46:26]MH_GetDate [17:46:26]Write to MH i2c: F0 00 00 9B 00 8A [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: F0 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: F0 09 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: F0 09 00 9B 00 00 73 7C 1E 67 22 05 6E 64 00 [17:46:26]GetLastDocTimeStamp 1730051123 [17:46:26]current date 1730051187 [17:46:26]FM_GetShiftState [17:46:26]SAM_PROTO_GetShiftState [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 13 01 00 [17:46:26]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0E 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5A [17:46:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:46:26]wFMCommunicate OK [17:46:26]SAM_PROTO_GetShiftState done [17:46:26]FM_GetShiftState done [17:46:26]opened in 1729989159 [17:46:26]opened+sec_in_day 1730075559 [17:46:26]quantity*price = 30038 [17:46:26]sum+1 = 30039 [17:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 392 27.10.2024 17:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192360 ФПД: 273952052489170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192360&fm=273952052489170&tin=02508201610067®Number=0000000000091776&sum=30000 [17:46:27]StoreToDocumentArchive [17:46:27]shift 542 fd 192360 [17:46:27]save to /storage/0542/doc_00192360 [17:46:27]save last doc name /storage/0542/doc_00192360 to /storage/kkm_last_doc_name [17:46:27]save OK [17:46:27]Clear old archive folders... [17:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:27]tlvbuf is 019CB780 [17:46:27]SAM_PROTO_ClearQueue [17:46:27]wFMCommunicate request_size=4 [17:46:27]MH_SAM_APDU [17:46:27]CAPDU: 80 09 00 00 [17:46:27]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:27]Read from MH i2c: E2 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 03 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [17:46:27]RAPDU: 90 00 [17:46:27]wFMCommunicate OK [17:46:27]SAM_PROTO_ClearQueue done [17:46:27]KKMCreateOFDPacket [17:46:27]OFDProtocolAddRootSTLVToBuf [17:46:27]FM_MakeSignedData [17:46:27]FM_MakeSignedData [17:46:27]SAM_PROTO_SignData [17:46:27]wFMCommunicate request_size=4 [17:46:27]MH_SAM_APDU [17:46:27]CAPDU: 80 0D 01 02 [17:46:27]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:27]Read from MH i2c: E2 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 03 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:46:27]RAPDU: 90 00 [17:46:27]wFMCommunicate OK [17:46:27]wFMCommunicate request_size=255 [17:46:27]MH_SAM_APDU [17:46:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EF 02 00 35 04 06 00 F9 [17:46:27]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EF 02 00 35 04 06 00 F9 00 00 1A [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]wFMCommunicate request_size=10 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 02 02 05 28 6E C6 2B D2 [17:46:28]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 28 6E C6 2B D2 00 00 89 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [17:46:28]RAPDU: 90 00 [17:46:28]wFMCommunicate OK [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 0D 03 02 [17:46:28]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0B 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0B 00 AD 00 00 16 BE 5E AF 6B 99 D1 FD 90 00 DC [17:46:28]RAPDU: 16 BE 5E AF 6B 99 D1 FD 90 00 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_SignData done [17:46:28]FM_MakeSignedData done [17:46:28]CreateOFDProtocolMessage [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 11 00 00 [17:46:28]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 17 00 [17:46:28]MH_I2C_Read... [17:46:28]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 37 35 34 90 00 7B [17:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:28]wFMCommunicate OK [17:46:28]CreateOFDProtocolMessage done [17:46:28]OFDSenderStorePacket 192360 [17:46:28]StoreOFDPacket docnum=192360 [17:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 78 07 01 C2 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EF 02 00 35 04 06 00 F9 28 6E C6 2B D2 16 BE 5E AF 6B 99 D1 FD [17:46:28]CheckFolder [17:46:28]dirname=/storage/ofd_packets [17:46:28]CheckFolder done [17:46:28]ProducePacketName [17:46:28]name=ofd_packets/00192360 [17:46:28]NVStorageSaveData ofd_packets/00192360 [17:46:28]File name is /storage/ofd_packets/00192360 [17:46:28]Write 301 bytes [17:46:28]NVStorageSaveData done [17:46:28]OFDSenderStorePacket done [17:46:28]KKMCreateOFDPacket done [17:46:28]NVStorageSaveData kkm_last_timestamp [17:46:28]File name is /storage/kkm_last_timestamp [17:46:28]Write 4 bytes [17:46:28]NVStorageSaveData done [17:46:28]ExternCall_PrintAddStr [17:46:28]wPrintStart [17:46:28]Write to MH i2c: 01 00 00 AF 00 AF [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [17:46:28]RasterBufferAndPrint [17:46:28]line Счет N : (1)31678 [17:46:28]line ИНН: 02508201610067 [17:46:28]line Контрольно-Кассовый Чек [17:46:28]line ПРОДАЖА [17:46:28]line ТРК (МРК, ГНК) : 21 [17:46:28]line Товар: 2710124130 [17:46:28]line Аи-92-К-5 [17:46:28]line 4.490 * 66.90 [17:46:28]line = 300.38 [17:46:28]line НДС 12% НСП 1% [17:46:28]line > о реализуемом товаре [17:46:28]line ОКРУГЛЕНИЕ: -0.38 [17:46:28]line ИТОГО: 300.00 [17:46:28]line Внесено: 300.00 [17:46:28]line СДАЧА: 0.00 [17:46:28]line НСП 1% : 2.66 [17:46:28]line НДС 12% : 31.90 [17:46:28]line Наличными: 300.00 [17:46:28]line Безнал.: 0.00 [17:46:28]line Место: АЗС № 170 "Партнер Нефть" [17:46:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:46:28]line СНО: Общий режим [17:46:28]line Чек 392 27.10.2024 17:46 [17:46:28]line Смена: 542 ФФД: 1.0 [17:46:28]line ЗНМ: 0300000110 [17:46:28]line РНМ: 0000000000091776 [17:46:28]line Версия ККМ: 001 [17:46:28]line ФМ: 0000000000871754 [17:46:28]line ФД: 192360 [17:46:28]line ФПД: 273952052489170 [17:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192360&fm=273952052489170&tin=02508201610067®Number=0000000000091776&sum=30000 [17:46:28]OFD Sender: Processing packet 192360 [packets to send 75, broken 74] [17:46:28]ProducePacketName [17:46:28]name=ofd_packets/00192360 [17:46:28]OFD Sender: To server: pG, [17:46:28]CommunicateWithHost lk.salyk.kg:30040 [17:46:28]ConnectInit lk.salyk.kg [17:46:28]written 0, free lines is 4095 [17:46:28]Connected sock=11 [17:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 78 07 01 C2 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 73 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EF 02 00 35 04 06 00 F9 28 6E C6 2B D2 16 BE 5E AF 6B 99 D1 FD [17:46:28]Write to MH i2c: 01 00 00 DA 00 DA [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 B7 0C A4 [17:46:28]RasterBufferAndPrint [17:46:28]line [17:46:28]line [17:46:28]line [17:46:28]line [17:46:28]line [17:46:28]written 0, free lines is 3262 [17:46:28]MH_Cut [17:46:28]Write to MH i2c: D1 01 00 E1 00 01 B3 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: D1 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: D1 01 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: D1 01 00 E1 00 00 B2 [17:46:28]Write to MH i2c: 01 00 00 E2 00 E2 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17: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 37 35 34 4F 00 00 00 B9 30 47 00 65 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 EF 02 00 F4 03 04 00 3A 21 1E 67 B6 04 01 00 00 F4 41 EE 21 4D 71 23 C8 [17:46:29]CommunicateWithHost err = 0 [17:46:29]CheckOFDResponse [17:46:29]1017 (14) - 77093643461234 [17:46:29]1041 (16) - 0000000000871754 [17:46:29]1040 (4) - 192360 [17:46:29]1012 (4) - 27.10.2024 11:17 [17:46:29]1206 (1) - 0 [17:46:29]OFD Sender: Remove packet 192360 [17:46:29]ProducePacketName [17:46:29]name=ofd_packets/00192360 [17:46:29]NVStorageDeleteData [17:46:29]OFD Sender: No OFD packet to send [17:46:29]*** Cut start [17:46:29]*** Partial cut [17:46:29]*** CUTSNS_PIN = 1 [17:46:29]*** CUTSNS_PIN = 0 [17:46:30]*** Brake cut motor [17:46:30]Read from MH i2c: 01 [17:46:30]MH_I2C_Read... [17:46:30]*** Stop cut motor [17:46:30]*** Cut end [17:46:30]Read from MH i2c: 01 07 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [17:46:30]process_action close_receipt done [17:46:30]requested_data is exist [17:46:30]produce_requested_data [17:46:30]requested_item fm.sn is exist - process it [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 11 00 00 [17:46:30]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 17 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [17:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:30]wFMCommunicate OK [17:46:30]requested_item fd.num is exist - process it [17:46:30]SAM_PROTO_GetFieldsCounters [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 13 00 00 [17:46:30]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 62 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [17:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:30]wFMCommunicate OK [17:46:30]SAM_PROTO_GetFieldsCounters done [17:46:30]requested_item shift.num is exist - process it [17:46:30]requested_item shift.opened is exist - process it [17:46:30]req_shift_opened [17:46:30]FM_GetShiftState [17:46:30]SAM_PROTO_GetShiftState [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 13 01 00 [17:46:30]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0E 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A3 [17:46:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:46:30]wFMCommunicate OK [17:46:30]SAM_PROTO_GetShiftState done [17:46:30]FM_GetShiftState done [17:46:30]req_shift_opened done [17:46:30]requested_item shift.open_date is exist - process it [17:46:30]req_shift_open_date [17:46:30]req_shift_open_date done [17:46:30]produce_requested_data done [17:46:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192360,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:46:30]process_action_free close_receipt [17:46:30]json_value_free [17:46:30]json_value_free done [17:46:30]process_json_proto returns [17:46:30]Send response to host [17:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192360,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:46:30]free response buf [17:46:30]execute_script done [17:46:30]execute_script returns [17:46:30]free content buf [17:46:30]Sock 9.Close socket [17:46:30]Sock 9.Thread stoped [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:42]accept exits with 7 [17:46:42]New connection [17:46:42]New thread 3066563940 created [17:46:42]Thread 3066707300 joined [17:46:42]Waiting for new connection... [17:46:42] Sock 7.Parse request [17:46:42]Sock 7.Check first char [17:46:42]Sock 7.First char is OK [17:46:42]request: POST /json_proto HTTP/1.0 [17:46:42]Method: POST [17:46:42]URL: /json_proto [17:46:42]Method is POST - this is cgi request [17:46:42]url: /json_proto [17:46:42]query_string will be loaded in cgi processing [17:46:42]execute_cgi json_proto POST (null) [17:46:42]execute_cgi path=json_proto method=POST [17:46:42]POST find Content-Length [17:46:42]Host: 172.17.63.131:8080 [17:46:42]Content-Length: 678 [17:46:42]Content-Type: application/json [17:46:42] [17:46:42]POST finish read [17:46:42]Found Content-Length = 678 [17:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31677", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:42]execute_script... [17:46: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)31677", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:42]POST & json_proto [17:46:42]process_json_proto [17:46:42]json parsed OK: [17:46:42]protocol is kg_v1.0 [17:46:42]action value=close_receipt [17:46:42]process_action close_receipt [17:46:42]cmd_close_receipt [17:46:42]MH_GetDate [17:46:42]Write to MH i2c: F0 00 00 E6 00 D5 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: F0 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: F0 09 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: F0 09 00 E6 00 00 83 7C 1E 67 22 05 6E 64 5B [17:46:42]GetLastDocTimeStamp 1730051187 [17:46:42]current date 1730051203 [17:46:42]FM_GetShiftState [17:46:42]SAM_PROTO_GetShiftState [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 13 01 00 [17:46:42]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 0E 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A5 [17:46:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:46:42]wFMCommunicate OK [17:46:42]SAM_PROTO_GetShiftState done [17:46:42]FM_GetShiftState done [17:46:42]opened in 1729989159 [17:46:42]opened+sec_in_day 1730075559 [17:46:42]quantity*price = 100050 [17:46:42]sum+1 = 100052 [17:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 393 27.10.2024 17:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192361 ФПД: 3781687190760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192361&fm=3781687190760&tin=02508201610067®Number=0000000000091776&sum=100000 [17:46:43]StoreToDocumentArchive [17:46:43]shift 542 fd 192361 [17:46:43]save to /storage/0542/doc_00192361 [17:46:43]save last doc name /storage/0542/doc_00192361 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=248 [17:46:43]tlvbuf is 019B8D20 [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 F4 00 80 09 00 00 00 00 00 00 66 [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 F4 00 00 90 00 68 [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 F5 00 80 0D 01 02 00 00 00 00 6E [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 F5 00 00 90 00 69 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 89 01 00 00 F4 03 04 00 83 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EF 02 00 35 04 06 00 03 70 7E 1F [17:46:43]Write to MH i2c: E2 02 01 F6 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 89 01 00 00 F4 03 04 00 83 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EF 02 00 35 04 06 00 03 70 7E 1F 00 00 90 [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 F6 00 00 90 00 6A [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=7 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 02 02 02 24 E8 [17:46:43]Write to MH i2c: E2 0A 00 F7 00 80 0D 02 02 02 00 24 E8 00 00 81 [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 F7 00 00 90 00 6B [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 F8 00 80 0D 03 02 00 00 00 00 73 [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 F8 00 00 12 CB 56 36 93 39 3B 90 90 00 74 [17:46:43]RAPDU: 12 CB 56 36 93 39 3B 90 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 F9 00 80 11 00 00 00 00 00 00 73 [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 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [17:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:46:43]wFMCommunicate OK [17:46:43]CreateOFDProtocolMessage done [17:46:43]OFDSenderStorePacket 192361 [17:46:43]StoreOFDPacket docnum=192361 [17:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AD 78 04 01 54 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 89 01 00 00 F4 03 04 00 83 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EF 02 00 35 04 06 00 03 70 7E 1F 24 E8 12 CB 56 36 93 39 3B 90 [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/00192361 [17:46:43]NVStorageSaveData ofd_packets/00192361 [17:46:43]File name is /storage/ofd_packets/00192361 [17:46:43]Write 298 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 FA 00 FA [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 FA 00 00 00 00 00 00 FF 0F 0F [17:46:43]RasterBufferAndPrint [17:46:43]line Счет N : (1)31677 [17:46:43]line ИНН: 02508201610067 [17:46:43]line Контрольно-Кассовый Чек [17:46:43]line ПРОДАЖА [17:46:43]line ТРК (МРК, ГНК) : 11 [17:46:43]line Товар: 2710194210 [17:46:43]line ДТ-К-5 [17:46:43]line 13.130 * 76.20 [17:46:43]line = 1000.51 [17:46:43]line НДС 12% НСП 1% [17:46:43]line > о реализуемом товаре [17:46:43]line ОКРУГЛЕНИЕ: -0.51 [17:46:43]line ИТОГО: 1000.00 [17:46:43]line Внесено: 1000.00 [17:46:43]line СДАЧА: 0.00 [17:46:43]line НСП 1% : 8.85 [17:46:43]line НДС 12% : 106.25 [17:46:43]line Наличными: 1000.00 [17:46:43]line Безнал.: 0.00 [17:46:43]line Место: АЗС № 170 "Партнер Нефть" [17:46:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:46:43]line СНО: Общий режим [17:46:43]line Чек 393 27.10.2024 17:46 [17:46:43]line Смена: 542 ФФД: 1.0 [17:46:43]line ЗНМ: 0300000110 [17:46:43]line РНМ: 0000000000091776 [17:46:43]line Версия ККМ: 001 [17:46:43]line ФМ: 0000000000871754 [17:46:43]line ФД: 192361 [17:46:43]line ФПД: 3781687190760 [17:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192361&fm=3781687190760&tin=02508201610067®Number=0000000000091776&sum=100000 [17:46:44]OFD Sender: Processing packet 192361 [packets to send 75, broken 74] [17:46:44]ProducePacketName [17:46:44]name=ofd_packets/00192361 [17:46:44]OFD Sender: To server: pG, [17:46:44]CommunicateWithHost lk.salyk.kg:30040 [17:46:44]ConnectInit lk.salyk.kg [17:46:44]written 0, free lines is 4095 [17:46:44]Connected sock=11 [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 37 35 34 0C 01 00 00 AD 78 04 01 54 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 89 01 00 00 F4 03 04 00 83 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EF 02 00 35 04 06 00 03 70 7E 1F 24 E8 12 CB 56 36 93 39 3B 90 [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 37 35 34 4F 00 00 00 7B 3E 47 00 46 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 EF 02 00 F4 03 04 00 4A 21 1E 67 B6 04 01 00 00 F6 3A E4 5A 26 A2 9F E0 [17:46:44]CommunicateWithHost err = 0 [17:46:44]CheckOFDResponse [17:46:44]1017 (14) - 77093643461234 [17:46:44]1041 (16) - 0000000000871754 [17:46:44]1040 (4) - 192361 [17:46:44]1012 (4) - 27.10.2024 11:17 [17:46:44]1206 (1) - 0 [17:46:44]OFD Sender: Remove packet 192361 [17:46:44]ProducePacketName [17:46:44]name=ofd_packets/00192361 [17:46:44]NVStorageDeleteData [17:46:44]Write to MH i2c: 01 00 00 25 01 26 [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 25 01 00 00 00 00 00 B2 0C EB [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 3255 [17:46:44]MH_Cut [17:46:44]Write to MH i2c: D1 01 00 2C 01 01 FF [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 2C 01 00 FE [17:46:44]Write to MH i2c: 01 00 00 2D 01 2E [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:45]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:45]*** 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 2D 01 00 00 00 00 00 FF 0F 43 [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 2E 01 80 11 00 00 00 00 00 00 A9 [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 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [17:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 2F 01 80 13 00 00 00 00 00 00 AC [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 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 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 30 01 80 13 01 00 00 00 00 00 AE [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 30 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [17:46:46]RAPDU: 09 00 01 27 8A 1D 67 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":"0000000000871754","fd.num":192361,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [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":"0000000000871754","fd.num":192361,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [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 7.Close socket [17:46:46]Sock 7.Thread stoped [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:17]accept exits with 9 [17:48:17]New connection [17:48:17]New thread 3066707300 created [17:48:17]Thread 3066563940 joined [17:48:17]Waiting for new connection... [17:48:17] Sock 9.Parse request [17:48:17]Sock 9.Check first char [17:48:17]Sock 9.First char is OK [17:48:17]request: POST /json_proto HTTP/1.0 [17:48:17]Method: POST [17:48:17]URL: /json_proto [17:48:17]Method is POST - this is cgi request [17:48:17]url: /json_proto [17:48:17]query_string will be loaded in cgi processing [17:48:17]execute_cgi json_proto POST (null) [17:48:17]execute_cgi path=json_proto method=POST [17:48:17]POST find Content-Length [17:48:17]Host: 172.17.63.131:8080 [17:48:17]Content-Length: 678 [17:48:17]Content-Type: application/json [17:48:17] [17:48:17]POST finish read [17:48:17]Found Content-Length = 678 [17:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31679", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:17]execute_script... [17:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31679", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:17]POST & json_proto [17:48:17]process_json_proto [17:48:17]json parsed OK: [17:48:17]protocol is kg_v1.0 [17:48:17]action value=close_receipt [17:48:17]process_action close_receipt [17:48:17]cmd_close_receipt [17:48:17]MH_GetDate [17:48:17]Write to MH i2c: F0 00 00 31 01 21 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: F0 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: F0 09 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: F0 09 00 31 01 00 E2 7C 1E 67 22 05 6E 64 06 [17:48:17]GetLastDocTimeStamp 1730051203 [17:48:17]current date 1730051298 [17:48:17]FM_GetShiftState [17:48:17]SAM_PROTO_GetShiftState [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 13 01 00 [17:48:17]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 0E 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F1 [17:48:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:48:17]wFMCommunicate OK [17:48:17]SAM_PROTO_GetShiftState done [17:48:17]FM_GetShiftState done [17:48:17]opened in 1729989159 [17:48:17]opened+sec_in_day 1730075559 [17:48:17]quantity*price = 100050 [17:48:17]sum+1 = 100052 [17:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 394 27.10.2024 17:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192362 ФПД: 215063022994842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192362&fm=215063022994842&tin=02508201610067®Number=0000000000091776&sum=100000 [17:48:19]StoreToDocumentArchive [17:48:19]shift 542 fd 192362 [17:48:19]save to /storage/0542/doc_00192362 [17:48:19]save last doc name /storage/0542/doc_00192362 to /storage/kkm_last_doc_name [17:48:19]save OK [17:48:19]Clear old archive folders... [17:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:19]tlvbuf is 01966250 [17:48:19]SAM_PROTO_ClearQueue [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 09 00 00 [17:48:19]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]SAM_PROTO_ClearQueue done [17:48:19]KKMCreateOFDPacket [17:48:19]OFDProtocolAddRootSTLVToBuf [17:48:19]FM_MakeSignedData [17:48:19]FM_MakeSignedData [17:48:19]SAM_PROTO_SignData [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 0D 01 02 [17:48:19]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]wFMCommunicate request_size=255 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 01 00 00 F4 03 04 00 E2 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EF 02 00 35 04 06 00 C3 99 43 17 [17:48:19]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 E2 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EF 02 00 35 04 06 00 C3 99 43 17 00 00 E3 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]wFMCommunicate request_size=7 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 0D 02 02 02 05 9A [17:48:19]Write to MH i2c: E2 0A 00 42 01 80 0D 02 02 02 00 05 9A 00 00 60 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [17:48:19]RAPDU: 90 00 [17:48:19]wFMCommunicate OK [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 0D 03 02 [17:48:19]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 0B 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 0B 00 43 01 00 A7 63 F9 22 50 BC 77 8E 90 00 F6 [17:48:19]RAPDU: A7 63 F9 22 50 BC 77 8E 90 00 [17:48:19]wFMCommunicate OK [17:48:19]SAM_PROTO_SignData done [17:48:19]FM_MakeSignedData done [17:48:19]CreateOFDProtocolMessage [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [17:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:19]wFMCommunicate OK [17:48:19]CreateOFDProtocolMessage done [17:48:19]OFDSenderStorePacket 192362 [17:48:19]StoreOFDPacket docnum=192362 [17:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F0 45 04 01 92 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 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 8A 01 00 00 F4 03 04 00 E2 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EF 02 00 35 04 06 00 C3 99 43 17 05 9A A7 63 F9 22 50 BC 77 8E [17:48:19]CheckFolder [17:48:19]dirname=/storage/ofd_packets [17:48:19]CheckFolder done [17:48:19]ProducePacketName [17:48:19]name=ofd_packets/00192362 [17:48:19]NVStorageSaveData ofd_packets/00192362 [17:48:19]File name is /storage/ofd_packets/00192362 [17:48:19]Write 298 bytes [17:48:19]NVStorageSaveData done [17:48:19]OFDSenderStorePacket done [17:48:19]KKMCreateOFDPacket done [17:48:19]NVStorageSaveData kkm_last_timestamp [17:48:19]File name is /storage/kkm_last_timestamp [17:48:19]Write 4 bytes [17:48:19]NVStorageSaveData done [17:48:19]ExternCall_PrintAddStr [17:48:19]wPrintStart [17:48:19]Write to MH i2c: 01 00 00 45 01 46 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 07 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [17:48:19]RasterBufferAndPrint [17:48:19]line Счет N : (1)31679 [17:48:19]line ИНН: 02508201610067 [17:48:19]line Контрольно-Кассовый Чек [17:48:19]line ПРОДАЖА [17:48:19]line ТРК (МРК, ГНК) : 11 [17:48:19]line Товар: 2710194210 [17:48:19]line ДТ-К-5 [17:48:19]line 13.130 * 76.20 [17:48:19]line = 1000.51 [17:48:19]line НДС 12% НСП 1% [17:48:19]line > о реализуемом товаре [17:48:19]line ОКРУГЛЕНИЕ: -0.51 [17:48:19]line ИТОГО: 1000.00 [17:48:19]line Внесено: 1000.00 [17:48:19]line СДАЧА: 0.00 [17:48:19]line НСП 1% : 8.85 [17:48:19]line НДС 12% : 106.25 [17:48:19]line Наличными: 1000.00 [17:48:19]line Безнал.: 0.00 [17:48:19]line Место: АЗС № 170 "Партнер Нефть" [17:48:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:48:19]line СНО: Общий режим [17:48:19]line Чек 394 27.10.2024 17:48 [17:48:19]line Смена: 542 ФФД: 1.0 [17:48:19]line ЗНМ: 0300000110 [17:48:19]line РНМ: 0000000000091776 [17:48:19]line Версия ККМ: 001 [17:48:19]line ФМ: 0000000000871754 [17:48:19]line ФД: 192362 [17:48:19]line ФПД: 215063022994842 [17:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192362&fm=215063022994842&tin=02508201610067®Number=0000000000091776&sum=100000 [17:48:19]OFD Sender: Processing packet 192362 [packets to send 75, broken 74] [17:48:19]ProducePacketName [17:48:19]name=ofd_packets/00192362 [17:48:19]OFD Sender: To server: pG, [17:48:19]CommunicateWithHost lk.salyk.kg:30040 [17:48:19]ConnectInit lk.salyk.kg [17:48:19]written 0, free lines is 4095 [17:48:20]Connected sock=10 [17:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F0 45 04 01 92 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 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 8A 01 00 00 F4 03 04 00 E2 7C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EF 02 00 35 04 06 00 C3 99 43 17 05 9A A7 63 F9 22 50 BC 77 8E [17:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E FE 47 00 1A 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A EF 02 00 F4 03 04 00 A9 21 1E 67 B6 04 01 00 00 E3 B2 A2 7C 9E 30 DB 38 [17:48:20]CommunicateWithHost err = 0 [17:48:20]CheckOFDResponse [17:48:20]1017 (14) - 77093643461234 [17:48:20]1041 (16) - 0000000000871754 [17:48:20]1040 (4) - 192362 [17:48:20]1012 (4) - 27.10.2024 11:19 [17:48:20]1206 (1) - 0 [17:48:20]OFD Sender: Remove packet 192362 [17:48:20]ProducePacketName [17:48:20]name=ofd_packets/00192362 [17:48:20]NVStorageDeleteData [17:48:20]Write to MH i2c: 01 00 00 70 01 71 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 AA 0C 2E [17:48:20]RasterBufferAndPrint [17:48:20]line [17:48:20]line [17:48:20]line [17:48:20]line [17:48:20]line [17:48:20]written 0, free lines is 3248 [17:48:20]MH_Cut [17:48:20]Write to MH i2c: D1 01 00 77 01 01 4A [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: D1 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: D1 01 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: D1 01 00 77 01 00 49 [17:48:20]Write to MH i2c: 01 00 00 78 01 79 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]OFD Sender: No OFD packet to send [17:48:21]*** Cut start [17:48:21]*** Partial cut [17:48:21]*** CUTSNS_PIN = 1 [17:48:21]*** CUTSNS_PIN = 0 [17:48:21]*** Brake cut motor [17:48:21]Read from MH i2c: 01 [17:48:21]MH_I2C_Read... [17:48:21]*** Stop cut motor [17:48:21]*** Cut end [17:48:21]Read from MH i2c: 01 07 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [17:48:21]process_action close_receipt done [17:48:21]requested_data is exist [17:48:21]produce_requested_data [17:48:21]requested_item fm.sn is exist - process it [17:48:21]wFMCommunicate request_size=4 [17:48:21]MH_SAM_APDU [17:48:21]CAPDU: 80 11 00 00 [17:48:21]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:21]Read from MH i2c: E2 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 17 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [17:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:21]wFMCommunicate OK [17:48:21]requested_item fd.num is exist - process it [17:48:21]SAM_PROTO_GetFieldsCounters [17:48:21]wFMCommunicate request_size=4 [17:48:21]MH_SAM_APDU [17:48:21]CAPDU: 80 13 00 00 [17:48:21]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 62 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [17:48:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:22]wFMCommunicate OK [17:48:22]SAM_PROTO_GetFieldsCounters done [17:48:22]requested_item shift.num is exist - process it [17:48:22]requested_item shift.opened is exist - process it [17:48:22]req_shift_opened [17:48:22]FM_GetShiftState [17:48:22]SAM_PROTO_GetShiftState [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 13 01 00 [17:48:22]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0E 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3A [17:48:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:48:22]wFMCommunicate OK [17:48:22]SAM_PROTO_GetShiftState done [17:48:22]FM_GetShiftState done [17:48:22]req_shift_opened done [17:48:22]requested_item shift.open_date is exist - process it [17:48:22]req_shift_open_date [17:48:22]req_shift_open_date done [17:48:22]produce_requested_data done [17:48:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192362,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:48:22]process_action_free close_receipt [17:48:22]json_value_free [17:48:22]json_value_free done [17:48:22]process_json_proto returns [17:48:22]Send response to host [17:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192362,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:48:22]free response buf [17:48:22]execute_script done [17:48:22]execute_script returns [17:48:22]free content buf [17:48:22]Sock 9.Close socket [17:48:22]Sock 9.Thread stoped [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]accept exits with 7 [17:50:00]New connection [17:50:00]New thread 3066563940 created [17:50:00]Thread 3066707300 joined [17:50:00]Waiting for new connection... [17:50:00] Sock 7.Parse request [17:50:00]Sock 7.Check first char [17:50:00]Sock 7.First char is OK [17:50:00]request: POST /json_proto HTTP/1.0 [17:50:00]Method: POST [17:50:00]URL: /json_proto [17:50:00]Method is POST - this is cgi request [17:50:00]url: /json_proto [17:50:00]query_string will be loaded in cgi processing [17:50:00]execute_cgi json_proto POST (null) [17:50:00]execute_cgi path=json_proto method=POST [17:50:00]POST find Content-Length [17:50:00]Host: 172.17.63.131:8080 [17:50:00]Content-Length: 678 [17:50:00]Content-Type: application/json [17:50:00] [17:50:00]POST finish read [17:50:00]Found Content-Length = 678 [17:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31680", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:00]execute_script... [17: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)31680", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:00]POST & json_proto [17:50:00]process_json_proto [17:50:00]json parsed OK: [17:50:00]protocol is kg_v1.0 [17:50:00]action value=close_receipt [17:50:00]process_action close_receipt [17:50:00]cmd_close_receipt [17:50:00]MH_GetDate [17:50:00]Write to MH i2c: F0 00 00 7C 01 6C [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: F0 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: F0 09 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: F0 09 00 7C 01 00 49 7D 1E 67 22 05 6E 64 B9 [17:50:00]GetLastDocTimeStamp 1730051298 [17:50:00]current date 1730051401 [17:50:00]FM_GetShiftState [17:50:00]SAM_PROTO_GetShiftState [17:50:00]wFMCommunicate request_size=4 [17:50:00]MH_SAM_APDU [17:50:00]CAPDU: 80 13 01 00 [17:50:00]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [17:50:00]Write i2c OK [17:50:00]MH_I2C_Read... [17:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:00]Read from MH i2c: E2 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0E 00 [17:50:00]MH_I2C_Read... [17:50:00]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3C [17:50:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:50:00]wFMCommunicate OK [17:50:00]SAM_PROTO_GetShiftState done [17:50:00]FM_GetShiftState done [17:50:00]opened in 1729989159 [17:50:00]opened+sec_in_day 1730075559 [17:50:00]quantity*price = 100050 [17:50:00]sum+1 = 100052 [17:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 395 27.10.2024 17:50 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192363 ФПД: 219554616335270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175001&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192363&fm=219554616335270&tin=02508201610067®Number=0000000000091776&sum=100000 [17:50:02]StoreToDocumentArchive [17:50:02]shift 542 fd 192363 [17:50:02]save to /storage/0542/doc_00192363 [17:50:02]save last doc name /storage/0542/doc_00192363 to /storage/kkm_last_doc_name [17:50:02]save OK [17:50:02]Clear old archive folders... [17:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:02]tlvbuf is 019CAC00 [17:50:02]SAM_PROTO_ClearQueue [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 09 00 00 [17:50:02]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_ClearQueue done [17:50:02]KKMCreateOFDPacket [17:50:02]OFDProtocolAddRootSTLVToBuf [17:50:02]FM_MakeSignedData [17:50:02]FM_MakeSignedData [17:50:02]SAM_PROTO_SignData [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 01 02 [17:50:02]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=255 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 8B 01 00 00 F4 03 04 00 49 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EF 02 00 35 04 06 00 C7 AF 0A EA [17:50:02]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 49 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EF 02 00 35 04 06 00 C7 AF 0A EA 00 00 4C [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=7 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 02 02 02 5B A6 [17:50:02]Write to MH i2c: E2 0A 00 8D 01 80 0D 02 02 02 00 5B A6 00 00 0D [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 03 02 [17:50:02]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0B 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0B 00 8E 01 00 D8 8D AC 2B 74 F4 0D 44 90 00 00 [17:50:02]RAPDU: D8 8D AC 2B 74 F4 0D 44 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_SignData done [17:50:02]FM_MakeSignedData done [17:50:02]CreateOFDProtocolMessage [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 11 00 00 [17:50:02]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 17 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [17:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:02]wFMCommunicate OK [17:50:02]CreateOFDProtocolMessage done [17:50:02]OFDSenderStorePacket 192363 [17:50:02]StoreOFDPacket docnum=192363 [17:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 53 6B 04 01 16 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8B 01 00 00 F4 03 04 00 49 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EF 02 00 35 04 06 00 C7 AF 0A EA 5B A6 D8 8D AC 2B 74 F4 0D 44 [17:50:02]CheckFolder [17:50:02]dirname=/storage/ofd_packets [17:50:02]CheckFolder done [17:50:02]ProducePacketName [17:50:02]name=ofd_packets/00192363 [17:50:02]NVStorageSaveData ofd_packets/00192363 [17:50:02]File name is /storage/ofd_packets/00192363 [17:50:02]Write 298 bytes [17:50:02]NVStorageSaveData done [17:50:02]OFDSenderStorePacket done [17:50:02]KKMCreateOFDPacket done [17:50:02]NVStorageSaveData kkm_last_timestamp [17:50:02]File name is /storage/kkm_last_timestamp [17:50:02]Write 4 bytes [17:50:02]NVStorageSaveData done [17:50:02]ExternCall_PrintAddStr [17:50:02]wPrintStart [17:50:02]Write to MH i2c: 01 00 00 90 01 91 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [17:50:02]RasterBufferAndPrint [17:50:02]line Счет N : (1)31680 [17:50:02]line ИНН: 02508201610067 [17:50:02]line Контрольно-Кассовый Чек [17:50:02]line ПРОДАЖА [17:50:02]line ТРК (МРК, ГНК) : 11 [17:50:02]line Товар: 2710194210 [17:50:02]line ДТ-К-5 [17:50:02]line 13.130 * 76.20 [17:50:02]line = 1000.51 [17:50:02]line НДС 12% НСП 1% [17:50:02]line > о реализуемом товаре [17:50:02]line ОКРУГЛЕНИЕ: -0.51 [17:50:02]line ИТОГО: 1000.00 [17:50:02]line Внесено: 1000.00 [17:50:02]line СДАЧА: 0.00 [17:50:02]line НСП 1% : 8.85 [17:50:02]line НДС 12% : 106.25 [17:50:02]line Наличными: 1000.00 [17:50:02]line Безнал.: 0.00 [17:50:02]line Место: АЗС № 170 "Партнер Нефть" [17:50:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:50:02]line СНО: Общий режим [17:50:02]line Чек 395 27.10.2024 17:50 [17:50:02]line Смена: 542 ФФД: 1.0 [17:50:02]line ЗНМ: 0300000110 [17:50:02]line РНМ: 0000000000091776 [17:50:02]line Версия ККМ: 001 [17:50:02]line ФМ: 0000000000871754 [17:50:02]line ФД: 192363 [17:50:02]line ФПД: 219554616335270 [17:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175001&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192363&fm=219554616335270&tin=02508201610067®Number=0000000000091776&sum=100000 [17:50:02]OFD Sender: Processing packet 192363 [packets to send 75, broken 74] [17:50:02]ProducePacketName [17:50:02]name=ofd_packets/00192363 [17:50:02]OFD Sender: To server: pG, [17:50:02]CommunicateWithHost lk.salyk.kg:30040 [17:50:02]ConnectInit lk.salyk.kg [17:50:02]written 0, free lines is 4095 [17:50:02]Connected sock=10 [17: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 37 35 34 0C 01 00 00 53 6B 04 01 16 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 8B 01 00 00 F4 03 04 00 49 7D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EF 02 00 35 04 06 00 C7 AF 0A EA 5B A6 D8 8D AC 2B 74 F4 0D 44 [17: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 37 35 34 4F 00 00 00 AE 5A 47 00 F7 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B EF 02 00 F4 03 04 00 10 22 1E 67 B6 04 01 00 00 A7 E2 0B 9A B9 4B 2F 44 [17:50:02]CommunicateWithHost err = 0 [17:50:02]CheckOFDResponse [17:50:02]1017 (14) - 77093643461234 [17:50:02]1041 (16) - 0000000000871754 [17:50:02]1040 (4) - 192363 [17:50:02]1012 (4) - 27.10.2024 11:20 [17:50:02]1206 (1) - 0 [17:50:02]OFD Sender: Remove packet 192363 [17:50:02]ProducePacketName [17:50:02]name=ofd_packets/00192363 [17:50:02]NVStorageDeleteData [17:50:03]Write to MH i2c: 01 00 00 BB 01 BC [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 [17:50:03]MH_I2C_Read... [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 BB 01 00 00 00 00 00 A5 0C 74 [17:50:03]RasterBufferAndPrint [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]written 0, free lines is 3242 [17:50:03]MH_Cut [17:50:03]Write to MH i2c: D1 01 00 C2 01 01 95 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 01 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 01 00 C2 01 00 94 [17:50:03]Write to MH i2c: 01 00 00 C3 01 C4 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]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:04]*** Brake cut motor [17:50:04]Read from MH i2c: 01 [17:50:04]MH_I2C_Read... [17:50:04]*** Stop cut motor [17:50:04]*** Cut end [17:50:04]Read from MH i2c: 01 07 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [17:50:04]process_action close_receipt done [17:50:04]requested_data is exist [17:50:04]produce_requested_data [17:50:04]requested_item fm.sn is exist - process it [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 11 00 00 [17:50:04]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 17 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [17:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:04]wFMCommunicate OK [17:50:04]requested_item fd.num is exist - process it [17:50:04]SAM_PROTO_GetFieldsCounters [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 13 00 00 [17:50:04]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 62 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [17: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:04]wFMCommunicate OK [17:50:04]SAM_PROTO_GetFieldsCounters done [17:50:04]requested_item shift.num is exist - process it [17:50:04]requested_item shift.opened is exist - process it [17:50:04]req_shift_opened [17:50:04]FM_GetShiftState [17:50:04]SAM_PROTO_GetShiftState [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 13 01 00 [17:50:04]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 0E 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 85 [17:50:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:50:04]wFMCommunicate OK [17:50:04]SAM_PROTO_GetShiftState done [17:50:04]FM_GetShiftState done [17:50:04]req_shift_opened done [17:50:04]requested_item shift.open_date is exist - process it [17:50:04]req_shift_open_date [17:50:04]req_shift_open_date done [17:50:04]produce_requested_data done [17:50:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192363,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:50:04]process_action_free close_receipt [17:50:04]json_value_free [17:50:04]json_value_free done [17:50:04]process_json_proto returns [17:50:04]Send response to host [17:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192363,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:50:04]free response buf [17:50:04]execute_script done [17:50:04]execute_script returns [17:50:04]free content buf [17:50:04]Sock 7.Close socket [17:50:04]Sock 7.Thread stoped [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]accept exits with 9 [17:53:13]New connection [17:53:13]New thread 3066707300 created [17:53:13]Thread 3066563940 joined [17:53:13]Waiting for new connection... [17:53:13] Sock 9.Parse request [17:53:13]Sock 9.Check first char [17:53:13]Sock 9.First char is OK [17:53:13]request: POST /json_proto HTTP/1.0 [17:53:13]Method: POST [17:53:13]URL: /json_proto [17:53:13]Method is POST - this is cgi request [17:53:13]url: /json_proto [17:53:13]query_string will be loaded in cgi processing [17:53:13]execute_cgi json_proto POST (null) [17:53:13]execute_cgi path=json_proto method=POST [17:53:13]POST find Content-Length [17:53:13]Host: 172.17.63.131:8080 [17:53:13]Content-Length: 681 [17:53:13]Content-Type: application/json [17:53:13] [17:53:13]POST finish read [17:53:13]Found Content-Length = 681 [17:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:13]execute_script... [17:53:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.420, "sum" : 1499.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:13]POST & json_proto [17:53:13]process_json_proto [17:53:13]json parsed OK: [17:53:13]protocol is kg_v1.0 [17:53:13]action value=close_receipt [17:53:13]process_action close_receipt [17:53:13]cmd_close_receipt [17:53:13]MH_GetDate [17:53:13]Write to MH i2c: F0 00 00 C7 01 B7 [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: F0 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: F0 09 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: F0 09 00 C7 01 00 0A 7E 1E 67 22 05 6E 64 C6 [17:53:13]GetLastDocTimeStamp 1730051401 [17:53:13]current date 1730051594 [17:53:13]FM_GetShiftState [17:53:13]SAM_PROTO_GetShiftState [17:53:13]wFMCommunicate request_size=4 [17:53:13]MH_SAM_APDU [17:53:13]CAPDU: 80 13 01 00 [17:53:13]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:13]Read from MH i2c: E2 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 0E 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 87 [17:53:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:53:13]wFMCommunicate OK [17:53:13]SAM_PROTO_GetShiftState done [17:53:13]FM_GetShiftState done [17:53:13]opened in 1729989159 [17:53:13]opened+sec_in_day 1730075559 [17:53:13]quantity*price = 149989 [17:53:13]sum+1 = 149991 [17:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1499.00 Внесено: 2000.00 СДАЧА: 501.00 НСП 1% : 13.27 НДС 12% : 159.28 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 396 27.10.2024 17:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192364 ФПД: 237272648175743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192364&fm=237272648175743&tin=02508201610067®Number=0000000000091776&sum=149900 [17:53:14]StoreToDocumentArchive [17:53:14]shift 542 fd 192364 [17:53:14]save to /storage/0542/doc_00192364 [17:53:14]save last doc name /storage/0542/doc_00192364 to /storage/kkm_last_doc_name [17:53:14]save OK [17:53:14]Clear old archive folders... [17:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:14]tlvbuf is 01967E80 [17:53:14]SAM_PROTO_ClearQueue [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 09 00 00 [17:53:14]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [17:53:14]RAPDU: 90 00 [17:53:14]wFMCommunicate OK [17:53:14]SAM_PROTO_ClearQueue done [17:53:14]KKMCreateOFDPacket [17:53:14]OFDProtocolAddRootSTLVToBuf [17:53:14]FM_MakeSignedData [17:53:14]FM_MakeSignedData [17:53:14]SAM_PROTO_SignData [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 0D 01 02 [17:53:14]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [17:53:14]RAPDU: 90 00 [17:53:14]wFMCommunicate OK [17:53:14]wFMCommunicate request_size=255 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 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 8C 01 00 00 F4 03 04 00 0A 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EF 02 00 35 04 06 00 D7 [17:53:14]Write to MH i2c: E2 02 01 D7 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 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 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 8C 01 00 00 F4 03 04 00 0A 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EF 02 00 35 04 06 00 D7 00 00 FD [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [17:53:14]RAPDU: 90 00 [17:53:14]wFMCommunicate OK [17:53:14]wFMCommunicate request_size=10 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 0D 02 02 05 CC 57 E8 D0 7F [17:53:14]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 CC 57 E8 D0 7F 00 00 B7 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [17:53:14]RAPDU: 90 00 [17:53:14]wFMCommunicate OK [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 0D 03 02 [17:53:14]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0B 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0B 00 D9 01 00 E2 4D 6B E6 F8 35 43 3A 90 00 80 [17:53:14]RAPDU: E2 4D 6B E6 F8 35 43 3A 90 00 [17:53:14]wFMCommunicate OK [17:53:14]SAM_PROTO_SignData done [17:53:14]FM_MakeSignedData done [17:53:14]CreateOFDProtocolMessage [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 11 00 00 [17:53:14]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 17 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [17:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:14]wFMCommunicate OK [17:53:14]CreateOFDProtocolMessage done [17:53:14]OFDSenderStorePacket 192364 [17:53:14]StoreOFDPacket docnum=192364 [17:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D B5 07 01 4D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 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 8C 01 00 00 F4 03 04 00 0A 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EF 02 00 35 04 06 00 D7 CC 57 E8 D0 7F E2 4D 6B E6 F8 35 43 3A [17:53:14]CheckFolder [17:53:14]dirname=/storage/ofd_packets [17:53:14]CheckFolder done [17:53:14]ProducePacketName [17:53:14]name=ofd_packets/00192364 [17:53:14]NVStorageSaveData ofd_packets/00192364 [17:53:14]File name is /storage/ofd_packets/00192364 [17:53:14]Write 301 bytes [17:53:14]NVStorageSaveData done [17:53:14]OFDSenderStorePacket done [17:53:14]KKMCreateOFDPacket done [17:53:14]NVStorageSaveData kkm_last_timestamp [17:53:14]File name is /storage/kkm_last_timestamp [17:53:14]Write 4 bytes [17:53:14]NVStorageSaveData done [17:53:14]OFD Sender: Processing packet 192364 [packets to send 75, broken 74] [17:53:14]ProducePacketName [17:53:14]name=ofd_packets/00192364 [17:53:14]OFD Sender: To server: pG, [17:53:14]CommunicateWithHost lk.salyk.kg:30040 [17:53:14]ConnectInit lk.salyk.kg [17:53:14]ExternCall_PrintAddStr [17:53:14]wPrintStart [17:53:14]Write to MH i2c: 01 00 00 DB 01 DC [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: 01 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: 01 07 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [17:53:14]RasterBufferAndPrint [17:53:14]line Счет N : (1)31681 [17:53:14]line ИНН: 02508201610067 [17:53:14]line Контрольно-Кассовый Чек [17:53:14]line ПРОДАЖА [17:53:14]line ТРК (МРК, ГНК) : 21 [17:53:14]line Товар: 2710124130 [17:53:14]line Аи-92-К-5 [17:53:14]line 22.420 * 66.90 [17:53:14]line = 1499.90 [17:53:14]line НДС 12% НСП 1% [17:53:14]line > о реализуемом товаре [17:53:14]line ОКРУГЛЕНИЕ: -0.90 [17:53:14]line ИТОГО: 1499.00 [17:53:14]line Внесено: 2000.00 [17:53:14]line СДАЧА: 501.00 [17:53:14]line НСП 1% : 13.27 [17:53:14]line НДС 12% : 159.28 [17:53:14]line Наличными: 1499.00 [17:53:14]line Безнал.: 0.00 [17:53:14]line Место: АЗС № 170 "Партнер Нефть" [17:53:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:53:14]line СНО: Общий режим [17:53:14]line Чек 396 27.10.2024 17:53 [17:53:14]line Смена: 542 ФФД: 1.0 [17:53:14]line ЗНМ: 0300000110 [17:53:14]line РНМ: 0000000000091776 [17:53:14]line Версия ККМ: 001 [17:53:14]line ФМ: 0000000000871754 [17:53:14]line ФД: 192364 [17:53:14]line ФПД: 237272648175743 [17:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192364&fm=237272648175743&tin=02508201610067®Number=0000000000091776&sum=149900 [17:53:15]Connected sock=11 [17:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D B5 07 01 4D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 8C 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 8C 01 00 00 F4 03 04 00 0A 7E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EF 02 00 35 04 06 00 D7 CC 57 E8 D0 7F E2 4D 6B E6 F8 35 43 3A [17:53:15]written 0, free lines is 4095 [17:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8E 75 47 00 9C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C EF 02 00 F4 03 04 00 D0 22 1E 67 B6 04 01 00 00 78 10 00 4C AD 97 19 65 [17:53:15]CommunicateWithHost err = 0 [17:53:15]CheckOFDResponse [17:53:15]1017 (14) - 77093643461234 [17:53:15]1041 (16) - 0000000000871754 [17:53:15]1040 (4) - 192364 [17:53:15]1012 (4) - 27.10.2024 11:24 [17:53:15]1206 (1) - 0 [17:53:15]OFD Sender: Remove packet 192364 [17:53:15]ProducePacketName [17:53:15]name=ofd_packets/00192364 [17:53:15]NVStorageDeleteData [17:53:15]Write to MH i2c: 01 00 00 06 02 08 [17:53:15]Write i2c OK [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: 01 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: 01 07 00 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 AB 0C C6 [17:53:15]RasterBufferAndPrint [17:53:15]line [17:53:15]line [17:53:15]line [17:53:15]line [17:53:15]line [17:53:15]written 0, free lines is 3249 [17:53:15]MH_Cut [17:53:15]Write to MH i2c: D1 01 00 0D 02 01 E1 [17:53:15]Write i2c OK [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: D1 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: D1 01 00 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: D1 01 00 0D 02 00 E0 [17:53:15]Write to MH i2c: 01 00 00 0E 02 10 [17:53:15]Write i2c OK [17:53:15]MH_I2C_Read... [17:53:15]OFD Sender: No OFD packet to send [17:53:16]*** Cut start [17:53:16]*** Partial cut [17:53:16]*** CUTSNS_PIN = 1 [17:53:16]*** CUTSNS_PIN = 0 [17:53:16]*** Brake cut motor [17:53:17]Read from MH i2c: 01 [17:53:17]MH_I2C_Read... [17:53:17]*** Stop cut motor [17:53:17]*** Cut end [17:53:17]Read from MH i2c: 01 07 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [17:53:17]process_action close_receipt done [17:53:17]requested_data is exist [17:53:17]produce_requested_data [17:53:17]requested_item fm.sn is exist - process it [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 11 00 00 [17:53:17]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:17]Read from MH i2c: E2 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 17 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [17:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:17]wFMCommunicate OK [17:53:17]requested_item fd.num is exist - process it [17:53:17]SAM_PROTO_GetFieldsCounters [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 13 00 00 [17:53:17]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:17]Read from MH i2c: E2 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 62 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:17]wFMCommunicate OK [17:53:17]SAM_PROTO_GetFieldsCounters done [17:53:17]requested_item shift.num is exist - process it [17:53:17]requested_item shift.opened is exist - process it [17:53:17]req_shift_opened [17:53:17]FM_GetShiftState [17:53:17]SAM_PROTO_GetShiftState [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 13 01 00 [17:53:17]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:17]Read from MH i2c: E2 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 0E 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [17:53:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [17:53:17]wFMCommunicate OK [17:53:17]SAM_PROTO_GetShiftState done [17:53:17]FM_GetShiftState done [17:53:17]req_shift_opened done [17:53:17]requested_item shift.open_date is exist - process it [17:53:17]req_shift_open_date [17:53:17]req_shift_open_date done [17:53:17]produce_requested_data done [17:53:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192364,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [17:53:17]process_action_free close_receipt [17:53:17]json_value_free [17:53:17]json_value_free done [17:53:17]process_json_proto returns [17:53:17]Send response to host [17:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192364,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [17:53:17]free response buf [17:53:17]execute_script done [17:53:17]execute_script returns [17:53:17]free content buf [17:53:17]Sock 9.Close socket [17:53:17]Sock 9.Thread stoped [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:27]accept exits with 7 [18:01:27]New connection [18:01:27]New thread 3066563940 created [18:01:27]Thread 3066707300 joined [18:01:27]Waiting for new connection... [18:01:27] Sock 7.Parse request [18:01:27]Sock 7.Check first char [18:01:27]Sock 7.First char is OK [18:01:27]request: POST /json_proto HTTP/1.0 [18:01:27]Method: POST [18:01:27]URL: /json_proto [18:01:27]Method is POST - this is cgi request [18:01:27]url: /json_proto [18:01:27]query_string will be loaded in cgi processing [18:01:27]execute_cgi json_proto POST (null) [18:01:27]execute_cgi path=json_proto method=POST [18:01:27]POST find Content-Length [18:01:27]Host: 172.17.63.131:8080 [18:01:27]Content-Length: 678 [18:01:27]Content-Type: application/json [18:01:27] [18:01:27]POST finish read [18:01:27]Found Content-Length = 678 [18:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31682", "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" : 38.600, "sum" : 2941.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2941.00, "payments": [ { "type": 0, "sum" : 2941.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:27]execute_script... [18:01: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)31682", "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" : 38.600, "sum" : 2941.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2941.00, "payments": [ { "type": 0, "sum" : 2941.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:27]POST & json_proto [18:01:27]process_json_proto [18:01:27]json parsed OK: [18:01:27]protocol is kg_v1.0 [18:01:27]action value=close_receipt [18:01:27]process_action close_receipt [18:01:27]cmd_close_receipt [18:01:27]MH_GetDate [18:01:27]Write to MH i2c: F0 00 00 12 02 03 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 09 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 09 00 12 02 00 F8 7F 1E 67 22 05 6E 64 01 [18:01:27]GetLastDocTimeStamp 1730051594 [18:01:27]current date 1730052088 [18:01:27]FM_GetShiftState [18:01:27]SAM_PROTO_GetShiftState [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 01 00 [18:01:27]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D3 [18:01:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetShiftState done [18:01:27]FM_GetShiftState done [18:01:27]opened in 1729989159 [18:01:27]opened+sec_in_day 1730075559 [18:01:27]quantity*price = 294132 [18:01:27]sum+1 = 294133 [18:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2941.00 Внесено: 3000.00 СДАЧА: 59.00 НСП 1% : 26.03 НДС 12% : 312.35 Наличными: 2941.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 397 27.10.2024 18:01 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192365 ФПД: 69298344661156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192365&fm=69298344661156&tin=02508201610067®Number=0000000000091776&sum=294100 [18:01:29]StoreToDocumentArchive [18:01:29]shift 542 fd 192365 [18:01:29]save to /storage/0542/doc_00192365 [18:01:29]save last doc name /storage/0542/doc_00192365 to /storage/kkm_last_doc_name [18:01:29]save OK [18:01:29]Clear old archive folders... [18:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:01:29]tlvbuf is 019CA060 [18:01:29]SAM_PROTO_ClearQueue [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 09 00 00 [18:01:29]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]SAM_PROTO_ClearQueue done [18:01:29]KKMCreateOFDPacket [18:01:29]OFDProtocolAddRootSTLVToBuf [18:01:29]FM_MakeSignedData [18:01:29]FM_MakeSignedData [18:01:29]SAM_PROTO_SignData [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 01 02 [18:01:29]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=255 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 96 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F4 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 7A 00 00 00 00 07 04 06 00 D4 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EF 02 00 35 04 06 00 3F 06 C7 37 [18:01:29]Write to MH i2c: E2 02 01 22 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 C8 96 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F4 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 7A 00 00 00 00 07 04 06 00 D4 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EF 02 00 35 04 06 00 3F 06 C7 37 00 00 56 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=7 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 02 02 02 90 A4 [18:01:29]Write to MH i2c: E2 0A 00 23 02 80 0D 02 02 02 00 90 A4 00 00 D7 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 03 02 [18:01:29]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 0B 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 0B 00 24 02 00 D6 22 D8 1F 97 5A 3F 69 90 00 2A [18:01:29]RAPDU: D6 22 D8 1F 97 5A 3F 69 90 00 [18:01:29]wFMCommunicate OK [18:01:29]SAM_PROTO_SignData done [18:01:29]FM_MakeSignedData done [18:01:29]CreateOFDProtocolMessage [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 11 00 00 [18:01:29]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 17 00 [18:01:29]MH_I2C_Read... [18:01:29]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 37 35 34 90 00 F4 [18:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:01:29]wFMCommunicate OK [18:01:29]CreateOFDProtocolMessage done [18:01:29]OFDSenderStorePacket 192365 [18:01:29]StoreOFDPacket docnum=192365 [18:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 CB 04 01 F3 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 C8 96 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F4 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 7A 00 00 00 00 07 04 06 00 D4 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EF 02 00 35 04 06 00 3F 06 C7 37 90 A4 D6 22 D8 1F 97 5A 3F 69 [18:01:29]CheckFolder [18:01:29]dirname=/storage/ofd_packets [18:01:29]CheckFolder done [18:01:29]ProducePacketName [18:01:29]name=ofd_packets/00192365 [18:01:29]NVStorageSaveData ofd_packets/00192365 [18:01:29]File name is /storage/ofd_packets/00192365 [18:01:29]Write 298 bytes [18:01:29]NVStorageSaveData done [18:01:29]OFDSenderStorePacket done [18:01:29]KKMCreateOFDPacket done [18:01:29]NVStorageSaveData kkm_last_timestamp [18:01:29]File name is /storage/kkm_last_timestamp [18:01:29]Write 4 bytes [18:01:29]NVStorageSaveData done [18:01:29]ExternCall_PrintAddStr [18:01:29]wPrintStart [18:01:29]Write to MH i2c: 01 00 00 26 02 28 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [18:01:29]RasterBufferAndPrint [18:01:29]line Счет N : (1)31682 [18:01:29]line ИНН: 02508201610067 [18:01:29]line Контрольно-Кассовый Чек [18:01:29]line ПРОДАЖА [18:01:29]line ТРК (МРК, ГНК) : 11 [18:01:29]line Товар: 2710194210 [18:01:29]line ДТ-К-5 [18:01:29]line 38.600 * 76.20 [18:01:29]line = 2941.32 [18:01:29]line НДС 12% НСП 1% [18:01:29]line > о реализуемом товаре [18:01:29]line ОКРУГЛЕНИЕ: -0.32 [18:01:29]line ИТОГО: 2941.00 [18:01:29]line Внесено: 3000.00 [18:01:29]line СДАЧА: 59.00 [18:01:29]line НСП 1% : 26.03 [18:01:29]line НДС 12% : 312.35 [18:01:29]line Наличными: 2941.00 [18:01:29]line Безнал.: 0.00 [18:01:29]line Место: АЗС № 170 "Партнер Нефть" [18:01:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:01:29]line СНО: Общий режим [18:01:29]line Чек 397 27.10.2024 18:01 [18:01:29]line Смена: 542 ФФД: 1.0 [18:01:29]line ЗНМ: 0300000110 [18:01:29]line РНМ: 0000000000091776 [18:01:29]line Версия ККМ: 001 [18:01:29]line ФМ: 0000000000871754 [18:01:29]line ФД: 192365 [18:01:29]line ФПД: 69298344661156 [18:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192365&fm=69298344661156&tin=02508201610067®Number=0000000000091776&sum=294100 [18:01:29]OFD Sender: Processing packet 192365 [packets to send 75, broken 74] [18:01:29]ProducePacketName [18:01:29]name=ofd_packets/00192365 [18:01:29]OFD Sender: To server: pG, [18:01:29]CommunicateWithHost lk.salyk.kg:30040 [18:01:29]ConnectInit lk.salyk.kg [18:01:29]written 0, free lines is 4095 [18:01:30]Connected sock=10 [18:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A3 CB 04 01 F3 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 C8 96 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F4 7C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 7A 00 00 00 00 07 04 06 00 D4 7C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EF 02 00 35 04 06 00 3F 06 C7 37 90 A4 D6 22 D8 1F 97 5A 3F 69 [18:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F 87 47 00 42 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D EF 02 00 F4 03 04 00 BF 24 1E 67 B6 04 01 00 00 38 C3 94 5D 54 D3 40 2A [18:01:30]CommunicateWithHost err = 0 [18:01:30]CheckOFDResponse [18:01:30]1017 (14) - 77093643461234 [18:01:30]1041 (16) - 0000000000871754 [18:01:30]1040 (4) - 192365 [18:01:30]1012 (4) - 27.10.2024 11:32 [18:01:30]1206 (1) - 0 [18:01:30]OFD Sender: Remove packet 192365 [18:01:30]ProducePacketName [18:01:30]name=ofd_packets/00192365 [18:01:30]NVStorageDeleteData [18:01:30]Write to MH i2c: 01 00 00 51 02 53 [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 07 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 B3 0C 19 [18:01:30]RasterBufferAndPrint [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]written 0, free lines is 3255 [18:01:30]MH_Cut [18:01:30]Write to MH i2c: D1 01 00 58 02 01 2C [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 01 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 01 00 58 02 00 2B [18:01:30]Write to MH i2c: 01 00 00 59 02 5B [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]OFD Sender: No OFD packet to send [18:01:31]*** Cut start [18:01:31]*** Partial cut [18:01:31]*** CUTSNS_PIN = 1 [18:01:31]*** CUTSNS_PIN = 0 [18:01:31]*** Brake cut motor [18:01:31]Read from MH i2c: 01 [18:01:31]MH_I2C_Read... [18:01:31]*** Stop cut motor [18:01:31]*** Cut end [18:01:31]Read from MH i2c: 01 07 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [18:01:31]process_action close_receipt done [18:01:31]requested_data is exist [18:01:31]produce_requested_data [18:01:31]requested_item fm.sn is exist - process it [18:01:31]wFMCommunicate request_size=4 [18:01:31]MH_SAM_APDU [18:01:31]CAPDU: 80 11 00 00 [18:01:31]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [18:01:31]Write i2c OK [18:01:31]MH_I2C_Read... [18:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:31]Read from MH i2c: E2 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 17 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [18:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:01:31]wFMCommunicate OK [18:01:31]requested_item fd.num is exist - process it [18:01:31]SAM_PROTO_GetFieldsCounters [18:01:31]wFMCommunicate request_size=4 [18:01:31]MH_SAM_APDU [18:01:31]CAPDU: 80 13 00 00 [18:01:31]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [18:01:31]Write i2c OK [18:01:31]MH_I2C_Read... [18:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:32]Read from MH i2c: E2 [18:01:32]MH_I2C_Read... [18:01:32]Read from MH i2c: E2 62 00 [18:01:32]MH_I2C_Read... [18:01:32]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [18:01:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:32]wFMCommunicate OK [18:01:32]SAM_PROTO_GetFieldsCounters done [18:01:32]requested_item shift.num is exist - process it [18:01:32]requested_item shift.opened is exist - process it [18:01:32]req_shift_opened [18:01:32]FM_GetShiftState [18:01:32]SAM_PROTO_GetShiftState [18:01:32]wFMCommunicate request_size=4 [18:01:32]MH_SAM_APDU [18:01:32]CAPDU: 80 13 01 00 [18:01:32]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [18:01:32]Write i2c OK [18:01:32]MH_I2C_Read... [18:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:32]Read from MH i2c: E2 [18:01:32]MH_I2C_Read... [18:01:32]Read from MH i2c: E2 0E 00 [18:01:32]MH_I2C_Read... [18:01:32]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1C [18:01:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:01:32]wFMCommunicate OK [18:01:32]SAM_PROTO_GetShiftState done [18:01:32]FM_GetShiftState done [18:01:32]req_shift_opened done [18:01:32]requested_item shift.open_date is exist - process it [18:01:32]req_shift_open_date [18:01:32]req_shift_open_date done [18:01:32]produce_requested_data done [18:01:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192365,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:01:32]process_action_free close_receipt [18:01:32]json_value_free [18:01:32]json_value_free done [18:01:32]process_json_proto returns [18:01:32]Send response to host [18:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192365,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:01:32]free response buf [18:01:32]execute_script done [18:01:32]execute_script returns [18:01:32]free content buf [18:01:32]Sock 7.Close socket [18:01:32]Sock 7.Thread stoped [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:02:58]accept exits with 9 [18:02:58]New connection [18:02:58]New thread 3066707300 created [18:02:58]Thread 3066563940 joined [18:02:58]Waiting for new connection... [18:02:58] Sock 9.Parse request [18:02:58]Sock 9.Check first char [18:02:58]Sock 9.First char is OK [18:02:58]request: POST /json_proto HTTP/1.0 [18:02:58]Method: POST [18:02:58]URL: /json_proto [18:02:58]Method is POST - this is cgi request [18:02:58]url: /json_proto [18:02:58]query_string will be loaded in cgi processing [18:02:58]execute_cgi json_proto POST (null) [18:02:58]execute_cgi path=json_proto method=POST [18:02:58]POST find Content-Length [18:02:58]Host: 172.17.63.131:8080 [18:02:58]Content-Length: 681 [18:02:58]Content-Type: application/json [18:02:58] [18:02:58]POST finish read [18:02:58]Found Content-Length = 681 [18:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:58]execute_script... [18:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:58]POST & json_proto [18:02:58]process_json_proto [18:02:58]json parsed OK: [18:02:58]protocol is kg_v1.0 [18:02:58]action value=close_receipt [18:02:58]process_action close_receipt [18:02:58]cmd_close_receipt [18:02:58]MH_GetDate [18:02:58]Write to MH i2c: F0 00 00 5D 02 4E [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: F0 09 00 5D 02 00 53 80 1E 67 22 05 6E 64 A8 [18:02:58]GetLastDocTimeStamp 1730052088 [18:02:58]current date 1730052179 [18:02:58]FM_GetShiftState [18:02:58]SAM_PROTO_GetShiftState [18:02:58]wFMCommunicate request_size=4 [18:02:58]MH_SAM_APDU [18:02:58]CAPDU: 80 13 01 00 [18:02:58]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:58]Read from MH i2c: E2 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1E [18:02:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:02:58]wFMCommunicate OK [18:02:58]SAM_PROTO_GetShiftState done [18:02:58]FM_GetShiftState done [18:02:58]opened in 1729989159 [18:02:58]opened+sec_in_day 1730075559 [18:02:58]quantity*price = 100015 [18:02:58]sum+1 = 100017 [18:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 398 27.10.2024 18:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192366 ФПД: 72141093348571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192366&fm=72141093348571&tin=02508201610067®Number=0000000000091776&sum=100000 [18:03:00]StoreToDocumentArchive [18:03:00]shift 542 fd 192366 [18:03:00]save to /storage/0542/doc_00192366 [18:03:00]save last doc name /storage/0542/doc_00192366 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 019CB9A0 [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 6B 02 80 09 00 00 00 00 00 00 DF [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 6B 02 00 90 00 E1 [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 6C 02 80 0D 01 02 00 00 00 00 E7 [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 6C 02 00 90 00 E2 [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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 53 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EF 02 00 35 04 06 00 41 [18:03:00]Write to MH i2c: E2 02 01 6D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 53 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EF 02 00 35 04 06 00 41 00 00 1C [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 6D 02 00 90 00 E3 [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 9C A8 3E 24 DB [18:03:00]Write to MH i2c: E2 0D 00 6E 02 80 0D 02 02 05 00 9C A8 3E 24 DB 00 00 75 [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 6E 02 00 90 00 E4 [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 6F 02 80 0D 03 02 00 00 00 00 EC [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 6F 02 00 1C CC BC 30 E0 30 15 03 90 00 E9 [18:03:00]RAPDU: 1C CC BC 30 E0 30 15 03 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 70 02 80 11 00 00 00 00 00 00 EC [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:00]Read from MH i2c: E2 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 17 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [18:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:00]wFMCommunicate OK [18:03:00]CreateOFDProtocolMessage done [18:03:00]OFDSenderStorePacket 192366 [18:03:00]StoreOFDPacket docnum=192366 [18:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 1C 07 01 2D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 53 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EF 02 00 35 04 06 00 41 9C A8 3E 24 DB 1C CC BC 30 E0 30 15 03 [18:03:00]CheckFolder [18:03:00]dirname=/storage/ofd_packets [18:03:00]CheckFolder done [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00192366 [18:03:00]NVStorageSaveData ofd_packets/00192366 [18:03:00]File name is /storage/ofd_packets/00192366 [18:03:00]Write 301 bytes [18:03:00]NVStorageSaveData done [18:03:00]OFDSenderStorePacket done [18:03:00]KKMCreateOFDPacket done [18:03:00]NVStorageSaveData kkm_last_timestamp [18:03:00]File name is /storage/kkm_last_timestamp [18:03:00]Write 4 bytes [18:03:00]NVStorageSaveData done [18:03:00]ExternCall_PrintAddStr [18:03:00]wPrintStart [18:03:00]Write to MH i2c: 01 00 00 71 02 73 [18:03:00]Write i2c OK [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 [18:03:00]MH_I2C_Read... [18:03:00]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [18:03:00]RasterBufferAndPrint [18:03:00]line Счет N : (1)31683 [18:03:00]line ИНН: 02508201610067 [18:03:00]line Контрольно-Кассовый Чек [18:03:00]line ПРОДАЖА [18:03:00]line ТРК (МРК, ГНК) : 21 [18:03:00]line Товар: 2710124130 [18:03:00]line Аи-92-К-5 [18:03:00]line 14.950 * 66.90 [18:03:00]line = 1000.16 [18:03:00]line НДС 12% НСП 1% [18:03:00]line > о реализуемом товаре [18:03:00]line ОКРУГЛЕНИЕ: -0.16 [18:03:00]line ИТОГО: 1000.00 [18:03:00]line Внесено: 1000.00 [18:03:00]line СДАЧА: 0.00 [18:03:00]line НСП 1% : 8.85 [18:03:00]line НДС 12% : 106.21 [18:03:00]line Наличными: 1000.00 [18:03:00]line Безнал.: 0.00 [18:03:00]line Место: АЗС № 170 "Партнер Нефть" [18:03:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:03:00]line СНО: Общий режим [18:03:00]line Чек 398 27.10.2024 18:02 [18:03:00]line Смена: 542 ФФД: 1.0 [18:03:00]line ЗНМ: 0300000110 [18:03:00]line РНМ: 0000000000091776 [18:03:00]line Версия ККМ: 001 [18:03:00]line ФМ: 0000000000871754 [18:03:00]line ФД: 192366 [18:03:00]line ФПД: 72141093348571 [18:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180259&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192366&fm=72141093348571&tin=02508201610067®Number=0000000000091776&sum=100000 [18:03:00]OFD Sender: Processing packet 192366 [packets to send 75, broken 74] [18:03:00]ProducePacketName [18:03:00]name=ofd_packets/00192366 [18:03:00]OFD Sender: To server: pG, [18:03:00]CommunicateWithHost lk.salyk.kg:30040 [18:03:00]ConnectInit lk.salyk.kg [18:03:00]written 0, free lines is 4095 [18:03:00]Connected sock=10 [18:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 1C 07 01 2D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 53 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EF 02 00 35 04 06 00 41 9C A8 3E 24 DB 1C CC BC 30 E0 30 15 03 [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 37 35 34 4F 00 00 00 93 CE 47 00 75 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E EF 02 00 F4 03 04 00 1A 25 1E 67 B6 04 01 00 00 89 6F A8 C2 D1 B0 CF BA [18:03:01]CommunicateWithHost err = 0 [18:03:01]CheckOFDResponse [18:03:01]1017 (14) - 77093643461234 [18:03:01]1041 (16) - 0000000000871754 [18:03:01]1040 (4) - 192366 [18:03:01]1012 (4) - 27.10.2024 11:33 [18:03:01]1206 (1) - 0 [18:03:01]OFD Sender: Remove packet 192366 [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00192366 [18:03:01]NVStorageDeleteData [18:03:01]Write to MH i2c: 01 00 00 9C 02 9E [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 9C 02 00 00 00 00 00 A5 0C 56 [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 3242 [18:03:01]MH_Cut [18:03:01]Write to MH i2c: D1 01 00 A3 02 01 77 [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 A3 02 00 76 [18:03:01]Write to MH i2c: 01 00 00 A4 02 A6 [18:03:01]Write i2c OK [18:03:01]MH_I2C_Read... [18:03:01]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:02]*** Brake cut motor [18:03:02]Read from MH i2c: 01 [18:03:02]MH_I2C_Read... [18:03:02]*** Stop cut motor [18:03:02]*** Cut end [18:03:02]Read from MH i2c: 01 07 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [18:03:02]process_action close_receipt done [18:03:02]requested_data is exist [18:03:02]produce_requested_data [18:03:02]requested_item fm.sn is exist - process it [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 11 00 00 [18:03:02]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [18:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:02]wFMCommunicate OK [18:03:02]requested_item fd.num is exist - process it [18:03:02]SAM_PROTO_GetFieldsCounters [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 00 00 [18:03:02]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [18:03:02]Write i2c OK [18:03:02]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 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 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 A7 02 80 13 01 00 00 00 00 00 26 [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 A7 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 67 [18:03:03]RAPDU: 09 00 01 27 8A 1D 67 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":"0000000000871754","fd.num":192366,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [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":"0000000000871754","fd.num":192366,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [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 9.Close socket [18:03:03]Sock 9.Thread stoped [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:08]accept exits with 7 [18:04:08]New connection [18:04:08]New thread 3066563940 created [18:04:08]Thread 3066707300 joined [18:04:08]Waiting for new connection... [18:04:08] Sock 7.Parse request [18:04:08]Sock 7.Check first char [18:04:08]Sock 7.First char is OK [18:04:08]request: POST /json_proto HTTP/1.0 [18:04:08]Method: POST [18:04:08]URL: /json_proto [18:04:08]Method is POST - this is cgi request [18:04:08]url: /json_proto [18:04:08]query_string will be loaded in cgi processing [18:04:08]execute_cgi json_proto POST (null) [18:04:08]execute_cgi path=json_proto method=POST [18:04:08]POST find Content-Length [18:04:08]Host: 172.17.63.131:8080 [18:04:08]Content-Length: 676 [18:04:08]Content-Type: application/json [18:04:08] [18:04:08]POST finish read [18:04:08]Found Content-Length = 676 [18:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:08]execute_script... [18:04: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)31684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:08]POST & json_proto [18:04:08]process_json_proto [18:04:08]json parsed OK: [18:04:08]protocol is kg_v1.0 [18:04:08]action value=close_receipt [18:04:08]process_action close_receipt [18:04:08]cmd_close_receipt [18:04:08]MH_GetDate [18:04:08]Write to MH i2c: F0 00 00 A8 02 99 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 09 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 09 00 A8 02 00 99 80 1E 67 22 05 6E 64 39 [18:04:08]GetLastDocTimeStamp 1730052179 [18:04:08]current date 1730052249 [18:04:08]FM_GetShiftState [18:04:08]SAM_PROTO_GetShiftState [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 13 01 00 [18:04:08]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 69 [18:04:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:04:08]wFMCommunicate OK [18:04:08]SAM_PROTO_GetShiftState done [18:04:08]FM_GetShiftState done [18:04:08]opened in 1729989159 [18:04:08]opened+sec_in_day 1730075559 [18:04:08]quantity*price = 50041 [18:04:08]sum+1 = 50042 [18:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 399 27.10.2024 18:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192367 ФПД: 176012765859654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180409&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192367&fm=176012765859654&tin=02508201610067®Number=0000000000091776&sum=50000 [18:04:09]StoreToDocumentArchive [18:04:09]shift 542 fd 192367 [18:04:09]save to /storage/0542/doc_00192367 [18:04:09]save last doc name /storage/0542/doc_00192367 to /storage/kkm_last_doc_name [18:04:09]save OK [18:04:09]Clear old archive folders... [18:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:09]tlvbuf is B6E85E80 [18:04:09]SAM_PROTO_ClearQueue [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 09 00 00 [18:04:09]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_ClearQueue done [18:04:09]KKMCreateOFDPacket [18:04:09]OFDProtocolAddRootSTLVToBuf [18:04:09]FM_MakeSignedData [18:04:09]FM_MakeSignedData [18:04:09]SAM_PROTO_SignData [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 01 02 [18:04:09]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=255 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 99 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EF 02 00 35 04 06 00 A0 [18:04:09]Write to MH i2c: E2 02 01 B8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 99 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EF 02 00 35 04 06 00 A0 00 00 14 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=10 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 02 02 05 15 2A 62 8F 46 [18:04:09]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 15 2A 62 8F 46 00 00 B5 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 03 02 [18:04:09]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0B 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0B 00 BA 02 00 D9 BD 84 25 DB 13 15 02 90 00 7C [18:04:09]RAPDU: D9 BD 84 25 DB 13 15 02 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_SignData done [18:04:09]FM_MakeSignedData done [18:04:09]CreateOFDProtocolMessage [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 11 00 00 [18:04:09]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [18:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:04:09]wFMCommunicate OK [18:04:09]CreateOFDProtocolMessage done [18:04:09]OFDSenderStorePacket 192367 [18:04:09]StoreOFDPacket docnum=192367 [18:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 25 07 01 9F 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 99 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EF 02 00 35 04 06 00 A0 15 2A 62 8F 46 D9 BD 84 25 DB 13 15 02 [18:04:09]CheckFolder [18:04:09]dirname=/storage/ofd_packets [18:04:09]CheckFolder done [18:04:09]ProducePacketName [18:04:09]name=ofd_packets/00192367 [18:04:09]NVStorageSaveData ofd_packets/00192367 [18:04:09]File name is /storage/ofd_packets/00192367 [18:04:09]Write 301 bytes [18:04:09]NVStorageSaveData done [18:04:09]OFDSenderStorePacket done [18:04:09]KKMCreateOFDPacket done [18:04:09]NVStorageSaveData kkm_last_timestamp [18:04:09]File name is /storage/kkm_last_timestamp [18:04:09]Write 4 bytes [18:04:09]NVStorageSaveData done [18:04:09]ExternCall_PrintAddStr [18:04:09]wPrintStart [18:04:09]Write to MH i2c: 01 00 00 BC 02 BE [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 07 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [18:04:09]RasterBufferAndPrint [18:04:09]line Счет N : (1)31684 [18:04:09]line ИНН: 02508201610067 [18:04:09]line Контрольно-Кассовый Чек [18:04:09]line ПРОДАЖА [18:04:09]line ТРК (МРК, ГНК) : 21 [18:04:09]line Товар: 2710124130 [18:04:09]line Аи-92-К-5 [18:04:09]line 7.480 * 66.90 [18:04:09]line = 500.41 [18:04:09]line НДС 12% НСП 1% [18:04:09]line > о реализуемом товаре [18:04:09]line ОКРУГЛЕНИЕ: -0.41 [18:04:09]line ИТОГО: 500.00 [18:04:09]line Внесено: 500.00 [18:04:09]line СДАЧА: 0.00 [18:04:09]line НСП 1% : 4.43 [18:04:09]line НДС 12% : 53.14 [18:04:09]line Наличными: 500.00 [18:04:09]line Безнал.: 0.00 [18:04:09]line Место: АЗС № 170 "Партнер Нефть" [18:04:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:04:09]line СНО: Общий режим [18:04:09]line Чек 399 27.10.2024 18:04 [18:04:09]line Смена: 542 ФФД: 1.0 [18:04:09]line ЗНМ: 0300000110 [18:04:09]line РНМ: 0000000000091776 [18:04:09]line Версия ККМ: 001 [18:04:09]line ФМ: 0000000000871754 [18:04:09]line ФД: 192367 [18:04:09]line ФПД: 176012765859654 [18:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180409&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192367&fm=176012765859654&tin=02508201610067®Number=0000000000091776&sum=50000 [18:04:10]OFD Sender: Processing packet 192367 [packets to send 75, broken 74] [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00192367 [18:04:10]OFD Sender: To server: pG, [18:04:10]CommunicateWithHost lk.salyk.kg:30040 [18:04:10]ConnectInit lk.salyk.kg [18:04:10]written 0, free lines is 4095 [18:04:10]Connected sock=10 [18:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC 25 07 01 9F 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 99 80 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EF 02 00 35 04 06 00 A0 15 2A 62 8F 46 D9 BD 84 25 DB 13 15 02 [18:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 64 22 47 00 98 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F EF 02 00 F4 03 04 00 5F 25 1E 67 B6 04 01 00 00 29 48 D7 58 DE 6A 3F B7 [18:04:10]CommunicateWithHost err = 0 [18:04:10]CheckOFDResponse [18:04:10]1017 (14) - 77093643461234 [18:04:10]1041 (16) - 0000000000871754 [18:04:10]1040 (4) - 192367 [18:04:10]1012 (4) - 27.10.2024 11:34 [18:04:10]1206 (1) - 0 [18:04:10]OFD Sender: Remove packet 192367 [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00192367 [18:04:10]NVStorageDeleteData [18:04:10]Write to MH i2c: 01 00 00 E7 02 E9 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 AD 0C A9 [18:04:10]RasterBufferAndPrint [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]line [18:04:10]written 0, free lines is 3252 [18:04:10]MH_Cut [18:04:10]Write to MH i2c: D1 01 00 EE 02 01 C2 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: D1 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: D1 01 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: D1 01 00 EE 02 00 C1 [18:04:10]Write to MH i2c: 01 00 00 EF 02 F1 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]OFD Sender: No OFD packet to send [18:04:11]*** Cut start [18:04:11]*** Partial cut [18:04:11]*** CUTSNS_PIN = 1 [18:04:11]*** CUTSNS_PIN = 0 [18:04:11]*** Brake cut motor [18:04:12]Read from MH i2c: 01 [18:04:12]MH_I2C_Read... [18:04:12]*** Stop cut motor [18:04:12]*** Cut end [18:04:12]Read from MH i2c: 01 07 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [18:04:12]process_action close_receipt done [18:04:12]requested_data is exist [18:04:12]produce_requested_data [18:04:12]requested_item fm.sn is exist - process it [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 11 00 00 [18:04:12]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 17 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [18:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:04:12]wFMCommunicate OK [18:04:12]requested_item fd.num is exist - process it [18:04:12]SAM_PROTO_GetFieldsCounters [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 13 00 00 [18:04:12]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 62 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 62 00 F1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [18:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:12]wFMCommunicate OK [18:04:12]SAM_PROTO_GetFieldsCounters done [18:04:12]requested_item shift.num is exist - process it [18:04:12]requested_item shift.opened is exist - process it [18:04:12]req_shift_opened [18:04:12]FM_GetShiftState [18:04:12]SAM_PROTO_GetShiftState [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 13 01 00 [18:04:12]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 0E 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B2 [18:04:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:04:12]wFMCommunicate OK [18:04:12]SAM_PROTO_GetShiftState done [18:04:12]FM_GetShiftState done [18:04:12]req_shift_opened done [18:04:12]requested_item shift.open_date is exist - process it [18:04:12]req_shift_open_date [18:04:12]req_shift_open_date done [18:04:12]produce_requested_data done [18:04:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192367,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:04:12]process_action_free close_receipt [18:04:12]json_value_free [18:04:12]json_value_free done [18:04:12]process_json_proto returns [18:04:12]Send response to host [18:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192367,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:04:12]free response buf [18:04:12]execute_script done [18:04:12]execute_script returns [18:04:12]free content buf [18:04:12]Sock 7.Close socket [18:04:12]Sock 7.Thread stoped [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:27]accept exits with 9 [18:16:27]New connection [18:16:27]New thread 3066707300 created [18:16:27]Thread 3066563940 joined [18:16:27]Waiting for new connection... [18:16:27] Sock 9.Parse request [18:16:27]Sock 9.Check first char [18:16:27]Sock 9.First char is OK [18:16:27]request: POST /json_proto HTTP/1.0 [18:16:27]Method: POST [18:16:27]URL: /json_proto [18:16:27]Method is POST - this is cgi request [18:16:27]url: /json_proto [18:16:27]query_string will be loaded in cgi processing [18:16:27]execute_cgi json_proto POST (null) [18:16:27]execute_cgi path=json_proto method=POST [18:16:27]POST find Content-Length [18:16:27]Host: 172.17.63.131:8080 [18:16:27]Content-Length: 862 [18:16:27]Content-Type: application/json [18:16:27] [18:16:27]POST finish read [18:16:27]Found Content-Length = 862 [18:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:27]execute_script... [18:16: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)31685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:27]POST & json_proto [18:16:27]process_json_proto [18:16:27]json parsed OK: [18:16:27]protocol is kg_v1.0 [18:16:27]action value=close_receipt [18:16:27]process_action close_receipt [18:16:27]cmd_close_receipt [18:16:27]MH_GetDate [18:16:27]Write to MH i2c: F0 00 00 F3 02 E4 [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: F0 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: F0 09 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: F0 09 00 F3 02 00 7C 83 1E 67 22 05 6E 64 6A [18:16:27]GetLastDocTimeStamp 1730052249 [18:16:27]current date 1730052988 [18:16:27]FM_GetShiftState [18:16:27]SAM_PROTO_GetShiftState [18:16:27]wFMCommunicate request_size=4 [18:16:27]MH_SAM_APDU [18:16:27]CAPDU: 80 13 01 00 [18:16:27]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:27]Read from MH i2c: E2 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: E2 0E 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B4 [18:16:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:16:27]wFMCommunicate OK [18:16:27]SAM_PROTO_GetShiftState done [18:16:27]FM_GetShiftState done [18:16:27]opened in 1729989159 [18:16:27]opened+sec_in_day 1730075559 [18:16:27]quantity*price = 50041 [18:16:27]sum+1 = 50042 [18:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 400 27.10.2024 18:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192368 ФПД: 227791432644869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192368&fm=227791432644869&tin=02508201610067®Number=0000000000091776&sum=50041 [18:16:28]StoreToDocumentArchive [18:16:28]shift 542 fd 192368 [18:16:28]save to /storage/0542/doc_00192368 [18:16:28]save last doc name /storage/0542/doc_00192368 to /storage/kkm_last_doc_name [18:16:28]save OK [18:16:28]Clear old archive folders... [18:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:28]tlvbuf is 019CAC60 [18:16:28]SAM_PROTO_ClearQueue [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 09 00 00 [18:16:28]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [18:16:28]RAPDU: 90 00 [18:16:28]wFMCommunicate OK [18:16:28]SAM_PROTO_ClearQueue done [18:16:28]KKMCreateOFDPacket [18:16:28]OFDProtocolAddRootSTLVToBuf [18:16:28]FM_MakeSignedData [18:16:28]FM_MakeSignedData [18:16:28]SAM_PROTO_SignData [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 0D 01 02 [18:16:28]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [18:16:28]RAPDU: 90 00 [18:16:28]wFMCommunicate OK [18:16:28]wFMCommunicate request_size=255 [18:16:28]MH_SAM_APDU [18:16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 7C 83 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EF 02 00 35 04 06 00 CF [18:16:28]Write to MH i2c: E2 02 01 03 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 7C 83 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EF 02 00 35 04 06 00 CF 00 00 C9 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [18:16:28]RAPDU: 90 00 [18:16:28]wFMCommunicate OK [18:16:28]wFMCommunicate request_size=10 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 0D 02 02 05 2C D3 6C F9 05 [18:16:28]Write to MH i2c: E2 0D 00 04 03 80 0D 02 02 05 00 2C D3 6C F9 05 00 00 F4 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [18:16:28]RAPDU: 90 00 [18:16:28]wFMCommunicate OK [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 0D 03 02 [18:16:28]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 0B 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 0B 00 05 03 00 A5 64 79 B7 12 46 FC 0E 90 00 1F [18:16:28]RAPDU: A5 64 79 B7 12 46 FC 0E 90 00 [18:16:28]wFMCommunicate OK [18:16:28]SAM_PROTO_SignData done [18:16:28]FM_MakeSignedData done [18:16:28]CreateOFDProtocolMessage [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 11 00 00 [18:16:28]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:29]Read from MH i2c: E2 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 17 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [18:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:16:29]wFMCommunicate OK [18:16:29]CreateOFDProtocolMessage done [18:16:29]OFDSenderStorePacket 192368 [18:16:29]StoreOFDPacket docnum=192368 [18:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 A7 07 01 63 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 7C 83 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EF 02 00 35 04 06 00 CF 2C D3 6C F9 05 A5 64 79 B7 12 46 FC 0E [18:16:29]CheckFolder [18:16:29]dirname=/storage/ofd_packets [18:16:29]CheckFolder done [18:16:29]ProducePacketName [18:16:29]name=ofd_packets/00192368 [18:16:29]NVStorageSaveData ofd_packets/00192368 [18:16:29]File name is /storage/ofd_packets/00192368 [18:16:29]Write 301 bytes [18:16:29]NVStorageSaveData done [18:16:29]OFDSenderStorePacket done [18:16:29]KKMCreateOFDPacket done [18:16:29]NVStorageSaveData kkm_last_timestamp [18:16:29]File name is /storage/kkm_last_timestamp [18:16:29]Write 4 bytes [18:16:29]NVStorageSaveData done [18:16:29]ExternCall_PrintAddStr [18:16:29]wPrintStart [18:16:29]Write to MH i2c: 01 00 00 07 03 0A [18:16:29]Write i2c OK [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 07 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [18:16:29]RasterBufferAndPrint [18:16:29]line Счет N : (1)31685 [18:16:29]line ИНН: 02508201610067 [18:16:29]line Контрольно-Кассовый Чек [18:16:29]line ПРОДАЖА [18:16:29]line ТРК (МРК, ГНК) : 12 [18:16:29]line Товар: 2710124130 [18:16:29]line Аи-92-К-5 [18:16:29]line 7.480 * 66.90 [18:16:29]line = 500.41 [18:16:29]line НДС 12% НСП 1% [18:16:29]line > о реализуемом товаре [18:16:29]line ИТОГО: 500.41 [18:16:29]line НСП 1% : 4.43 [18:16:29]line НДС 12% : 53.14 [18:16:29]line Наличными: 0.00 [18:16:29]line Безнал.: 500.41 [18:16:29]line Место: АЗС № 170 "Партнер Нефть" [18:16:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:16:29]line СНО: Общий режим [18:16:29]line Чек 400 27.10.2024 18:16 [18:16:29]line Смена: 542 ФФД: 1.0 [18:16:29]line ЗНМ: 0300000110 [18:16:29]line РНМ: 0000000000091776 [18:16:29]line Версия ККМ: 001 [18:16:29]line Платежная система: Кыргызкоммерцбанк [18:16:29]line ФМ: 0000000000871754 [18:16:29]line ФД: 192368 [18:16:29]line ФПД: 227791432644869 [18:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181628&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192368&fm=227791432644869&tin=02508201610067®Number=0000000000091776&sum=50041 [18:16:29]OFD Sender: Processing packet 192368 [packets to send 75, broken 74] [18:16:29]ProducePacketName [18:16:29]name=ofd_packets/00192368 [18:16:29]OFD Sender: To server: pG, [18:16:29]CommunicateWithHost lk.salyk.kg:30040 [18:16:29]ConnectInit lk.salyk.kg [18:16:29]written 0, free lines is 4095 [18:16:29]Connected sock=10 [18:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 A7 07 01 63 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 7C 83 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EF 02 00 35 04 06 00 CF 2C D3 6C F9 05 A5 64 79 B7 12 46 FC 0E [18:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AD 21 47 00 49 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 EF 02 00 F4 03 04 00 43 28 1E 67 B6 04 01 00 00 5B 6B 94 83 AA 08 1A CF [18:16:29]CommunicateWithHost err = 0 [18:16:29]CheckOFDResponse [18:16:29]1017 (14) - 77093643461234 [18:16:29]1041 (16) - 0000000000871754 [18:16:29]1040 (4) - 192368 [18:16:29]1012 (4) - 27.10.2024 11:47 [18:16:29]1206 (1) - 0 [18:16:29]OFD Sender: Remove packet 192368 [18:16:29]ProducePacketName [18:16:29]name=ofd_packets/00192368 [18:16:29]NVStorageDeleteData [18:16:29]Write to MH i2c: 01 00 00 31 03 34 [18:16:29]Write i2c OK [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 07 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 BE 0C 05 [18:16:29]RasterBufferAndPrint [18:16:29]line [18:16:29]line [18:16:29]line [18:16:29]line [18:16:29]line [18:16:29]written 0, free lines is 3268 [18:16:29]MH_Cut [18:16:29]Write to MH i2c: D1 01 00 38 03 01 0D [18:16:29]Write i2c OK [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: D1 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: D1 01 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: D1 01 00 38 03 00 0C [18:16:29]Write to MH i2c: 01 00 00 39 03 3C [18:16:29]Write i2c OK [18:16:29]MH_I2C_Read... [18:16:30]OFD Sender: No OFD packet to send [18:16:30]*** Cut start [18:16:30]*** Partial cut [18:16:30]*** CUTSNS_PIN = 1 [18:16:30]*** CUTSNS_PIN = 0 [18:16:30]*** Brake cut motor [18:16:31]Read from MH i2c: 01 [18:16:31]MH_I2C_Read... [18:16:31]*** Stop cut motor [18:16:31]*** Cut end [18:16:31]Read from MH i2c: 01 07 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [18:16:31]process_action close_receipt done [18:16:31]requested_data is exist [18:16:31]produce_requested_data [18:16:31]requested_item fm.sn is exist - process it [18:16:31]wFMCommunicate request_size=4 [18:16:31]MH_SAM_APDU [18:16:31]CAPDU: 80 11 00 00 [18:16:31]Write to MH i2c: E2 08 00 3A 03 80 11 00 00 00 00 00 00 B7 [18:16:31]Write i2c OK [18:16:31]MH_I2C_Read... [18:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:31]Read from MH i2c: E2 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 17 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 17 00 3A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [18:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:16:31]wFMCommunicate OK [18:16:31]requested_item fd.num is exist - process it [18:16:31]SAM_PROTO_GetFieldsCounters [18:16:31]wFMCommunicate request_size=4 [18:16:31]MH_SAM_APDU [18:16:31]CAPDU: 80 13 00 00 [18:16:31]Write to MH i2c: E2 08 00 3B 03 80 13 00 00 00 00 00 00 BA [18:16:31]Write i2c OK [18:16:31]MH_I2C_Read... [18:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:31]Read from MH i2c: E2 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 62 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 62 00 3B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:31]wFMCommunicate OK [18:16:31]SAM_PROTO_GetFieldsCounters done [18:16:31]requested_item shift.num is exist - process it [18:16:31]requested_item shift.opened is exist - process it [18:16:31]req_shift_opened [18:16:31]FM_GetShiftState [18:16:31]SAM_PROTO_GetShiftState [18:16:31]wFMCommunicate request_size=4 [18:16:31]MH_SAM_APDU [18:16:31]CAPDU: 80 13 01 00 [18:16:31]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [18:16:31]Write i2c OK [18:16:31]MH_I2C_Read... [18:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:31]Read from MH i2c: E2 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 0E 00 [18:16:31]MH_I2C_Read... [18:16:31]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FD [18:16:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:16:31]wFMCommunicate OK [18:16:31]SAM_PROTO_GetShiftState done [18:16:31]FM_GetShiftState done [18:16:31]req_shift_opened done [18:16:31]requested_item shift.open_date is exist - process it [18:16:31]req_shift_open_date [18:16:31]req_shift_open_date done [18:16:31]produce_requested_data done [18:16:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192368,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:16:31]process_action_free close_receipt [18:16:31]json_value_free [18:16:31]json_value_free done [18:16:31]process_json_proto returns [18:16:31]Send response to host [18:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192368,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:16:31]free response buf [18:16:31]execute_script done [18:16:31]execute_script returns [18:16:31]free content buf [18:16:31]Sock 9.Close socket [18:16:31]Sock 9.Thread stoped [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:19:59]accept exits with 7 [18:19:59]New connection [18:19:59]New thread 3066563940 created [18:19:59]Thread 3066707300 joined [18:19:59]Waiting for new connection... [18:19:59] Sock 7.Parse request [18:19:59]Sock 7.Check first char [18:19:59]Sock 7.First char is OK [18:19:59]request: POST /json_proto HTTP/1.0 [18:19:59]Method: POST [18:19:59]URL: /json_proto [18:19:59]Method is POST - this is cgi request [18:19:59]url: /json_proto [18:19:59]query_string will be loaded in cgi processing [18:19:59]execute_cgi json_proto POST (null) [18:19:59]execute_cgi path=json_proto method=POST [18:19:59]POST find Content-Length [18:19:59]Host: 172.17.63.131:8080 [18:19:59]Content-Length: 678 [18:19:59]Content-Type: application/json [18:19:59] [18:19:59]POST finish read [18:19:59]Found Content-Length = 678 [18:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31686", "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" : 26.060, "sum" : 1985.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1985.00, "payments": [ { "type": 0, "sum" : 1985.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:59]execute_script... [18:19: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)31686", "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" : 26.060, "sum" : 1985.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1985.00, "payments": [ { "type": 0, "sum" : 1985.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:59]POST & json_proto [18:19:59]process_json_proto [18:19:59]json parsed OK: [18:19:59]protocol is kg_v1.0 [18:19:59]action value=close_receipt [18:19:59]process_action close_receipt [18:19:59]cmd_close_receipt [18:19:59]MH_GetDate [18:19:59]Write to MH i2c: F0 00 00 3D 03 2F [18:19:59]Write i2c OK [18:19:59]MH_I2C_Read... [18:19:59]Read from MH i2c: F0 [18:19:59]MH_I2C_Read... [18:19:59]Read from MH i2c: F0 09 00 [18:19:59]MH_I2C_Read... [18:19:59]Read from MH i2c: F0 09 00 3D 03 00 50 84 1E 67 22 05 6E 64 8A [18:19:59]GetLastDocTimeStamp 1730052988 [18:19:59]current date 1730053200 [18:19:59]FM_GetShiftState [18:19:59]SAM_PROTO_GetShiftState [18:19:59]wFMCommunicate request_size=4 [18:19:59]MH_SAM_APDU [18:19:59]CAPDU: 80 13 01 00 [18:19:59]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [18:19:59]Write i2c OK [18:19:59]MH_I2C_Read... [18:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:59]Read from MH i2c: E2 [18:19:59]MH_I2C_Read... [18:19:59]Read from MH i2c: E2 0E 00 [18:19:59]MH_I2C_Read... [18:19:59]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FF [18:19:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:19:59]wFMCommunicate OK [18:19:59]SAM_PROTO_GetShiftState done [18:19:59]FM_GetShiftState done [18:19:59]opened in 1729989159 [18:19:59]opened+sec_in_day 1730075559 [18:19:59]quantity*price = 198577 [18:19:59]sum+1 = 198578 [18:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1985.00 Внесено: 2000.00 СДАЧА: 15.00 НСП 1% : 17.57 НДС 12% : 210.88 Наличными: 1985.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 401 27.10.2024 18:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192369 ФПД: 16153413249526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182000&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192369&fm=16153413249526&tin=02508201610067®Number=0000000000091776&sum=198500 [18:20:00]StoreToDocumentArchive [18:20:00]shift 542 fd 192369 [18:20:00]save to /storage/0542/doc_00192369 [18:20:00]save last doc name /storage/0542/doc_00192369 to /storage/kkm_last_doc_name [18:20:00]save OK [18:20:00]Clear old archive folders... [18:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:20:00]tlvbuf is 019BB050 [18:20:00]SAM_PROTO_ClearQueue [18:20:00]wFMCommunicate request_size=4 [18:20:00]MH_SAM_APDU [18:20:00]CAPDU: 80 09 00 00 [18:20:00]Write to MH i2c: E2 08 00 4B 03 80 09 00 00 00 00 00 00 C0 [18:20:00]Write i2c OK [18:20:00]MH_I2C_Read... [18:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [18:20:01]RAPDU: 90 00 [18:20:01]wFMCommunicate OK [18:20:01]SAM_PROTO_ClearQueue done [18:20:01]KKMCreateOFDPacket [18:20:01]OFDProtocolAddRootSTLVToBuf [18:20:01]FM_MakeSignedData [18:20:01]FM_MakeSignedData [18:20:01]SAM_PROTO_SignData [18:20:01]wFMCommunicate request_size=4 [18:20:01]MH_SAM_APDU [18:20:01]CAPDU: 80 0D 01 02 [18:20:01]Write to MH i2c: E2 08 00 4C 03 80 0D 01 02 00 00 00 00 C8 [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [18:20:01]RAPDU: 90 00 [18:20:01]wFMCommunicate OK [18:20:01]wFMCommunicate request_size=255 [18:20:01]MH_SAM_APDU [18:20: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 CC 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 52 00 00 00 00 07 04 06 00 64 07 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 50 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EF 02 00 35 04 06 00 0E B1 02 75 [18:20:01]Write to MH i2c: E2 02 01 4D 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 CC 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 52 00 00 00 00 07 04 06 00 64 07 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 50 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EF 02 00 35 04 06 00 0E B1 02 75 00 00 0B [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [18:20:01]RAPDU: 90 00 [18:20:01]wFMCommunicate OK [18:20:01]wFMCommunicate request_size=7 [18:20:01]MH_SAM_APDU [18:20:01]CAPDU: 80 0D 02 02 02 69 F6 [18:20:01]Write to MH i2c: E2 0A 00 4E 03 80 0D 02 02 02 00 69 F6 00 00 2E [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [18:20:01]RAPDU: 90 00 [18:20:01]wFMCommunicate OK [18:20:01]wFMCommunicate request_size=4 [18:20:01]MH_SAM_APDU [18:20:01]CAPDU: 80 0D 03 02 [18:20:01]Write to MH i2c: E2 08 00 4F 03 80 0D 03 02 00 00 00 00 CD [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 0B 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 0B 00 4F 03 00 73 00 87 47 9B 56 41 9A 90 00 DB [18:20:01]RAPDU: 73 00 87 47 9B 56 41 9A 90 00 [18:20:01]wFMCommunicate OK [18:20:01]SAM_PROTO_SignData done [18:20:01]FM_MakeSignedData done [18:20:01]CreateOFDProtocolMessage [18:20:01]wFMCommunicate request_size=4 [18:20:01]MH_SAM_APDU [18:20:01]CAPDU: 80 11 00 00 [18:20:01]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:01]Read from MH i2c: E2 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 17 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [18:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:01]wFMCommunicate OK [18:20:01]CreateOFDProtocolMessage done [18:20:01]OFDSenderStorePacket 192369 [18:20:01]StoreOFDPacket docnum=192369 [18:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B3 1E 04 01 B6 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 CC 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 52 00 00 00 00 07 04 06 00 64 07 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 50 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EF 02 00 35 04 06 00 0E B1 02 75 69 F6 73 00 87 47 9B 56 41 9A [18:20:01]CheckFolder [18:20:01]dirname=/storage/ofd_packets [18:20:01]CheckFolder done [18:20:01]ProducePacketName [18:20:01]name=ofd_packets/00192369 [18:20:01]NVStorageSaveData ofd_packets/00192369 [18:20:01]File name is /storage/ofd_packets/00192369 [18:20:01]Write 298 bytes [18:20:01]NVStorageSaveData done [18:20:01]OFDSenderStorePacket done [18:20:01]KKMCreateOFDPacket done [18:20:01]NVStorageSaveData kkm_last_timestamp [18:20:01]File name is /storage/kkm_last_timestamp [18:20:01]Write 4 bytes [18:20:01]NVStorageSaveData done [18:20:01]ExternCall_PrintAddStr [18:20:01]wPrintStart [18:20:01]Write to MH i2c: 01 00 00 51 03 54 [18:20:01]Write i2c OK [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: 01 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: 01 07 00 [18:20:01]MH_I2C_Read... [18:20:01]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [18:20:01]RasterBufferAndPrint [18:20:01]line Счет N : (1)31686 [18:20:01]line ИНН: 02508201610067 [18:20:01]line Контрольно-Кассовый Чек [18:20:01]line ПРОДАЖА [18:20:01]line ТРК (МРК, ГНК) : 11 [18:20:01]line Товар: 2710194210 [18:20:01]line ДТ-К-5 [18:20:01]line 26.060 * 76.20 [18:20:01]line = 1985.77 [18:20:01]line НДС 12% НСП 1% [18:20:01]line > о реализуемом товаре [18:20:01]line ОКРУГЛЕНИЕ: -0.77 [18:20:01]line ИТОГО: 1985.00 [18:20:01]line Внесено: 2000.00 [18:20:01]line СДАЧА: 15.00 [18:20:01]line НСП 1% : 17.57 [18:20:01]line НДС 12% : 210.88 [18:20:01]line Наличными: 1985.00 [18:20:01]line Безнал.: 0.00 [18:20:01]line Место: АЗС № 170 "Партнер Нефть" [18:20:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:20:01]line СНО: Общий режим [18:20:01]line Чек 401 27.10.2024 18:20 [18:20:01]line Смена: 542 ФФД: 1.0 [18:20:01]line ЗНМ: 0300000110 [18:20:01]line РНМ: 0000000000091776 [18:20:01]line Версия ККМ: 001 [18:20:01]line ФМ: 0000000000871754 [18:20:01]line ФД: 192369 [18:20:01]line ФПД: 16153413249526 [18:20:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182000&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192369&fm=16153413249526&tin=02508201610067®Number=0000000000091776&sum=198500 [18:20:01]written 0, free lines is 4095 [18:20:01]OFD Sender: Processing packet 192369 [packets to send 75, broken 74] [18:20:01]ProducePacketName [18:20:01]name=ofd_packets/00192369 [18:20:01]OFD Sender: To server: pG, [18:20:01]CommunicateWithHost lk.salyk.kg:30040 [18:20:01]ConnectInit lk.salyk.kg [18:20:01]Connected sock=10 [18:20:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B3 1E 04 01 B6 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 CC 65 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 07 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 07 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 52 00 00 00 00 07 04 06 00 64 07 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 50 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EF 02 00 35 04 06 00 0E B1 02 75 69 F6 73 00 87 47 9B 56 41 9A [18:20:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B A1 47 00 F3 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 EF 02 00 F4 03 04 00 17 29 1E 67 B6 04 01 00 00 88 7C 3A 06 6E 3B 75 74 [18:20:02]CommunicateWithHost err = 0 [18:20:02]CheckOFDResponse [18:20:02]1017 (14) - 77093643461234 [18:20:02]1041 (16) - 0000000000871754 [18:20:02]1040 (4) - 192369 [18:20:02]1012 (4) - 27.10.2024 11:50 [18:20:02]1206 (1) - 0 [18:20:02]OFD Sender: Remove packet 192369 [18:20:02]ProducePacketName [18:20:02]name=ofd_packets/00192369 [18:20:02]NVStorageDeleteData [18:20:02]Write to MH i2c: 01 00 00 7C 03 7F [18:20:02]Write i2c OK [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: 01 [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: 01 07 00 [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 AD 0C 3F [18:20:02]RasterBufferAndPrint [18:20:02]line [18:20:02]line [18:20:02]line [18:20:02]line [18:20:02]line [18:20:02]written 0, free lines is 3251 [18:20:02]MH_Cut [18:20:02]Write to MH i2c: D1 01 00 83 03 01 58 [18:20:02]Write i2c OK [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: D1 [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: D1 01 00 [18:20:02]MH_I2C_Read... [18:20:02]Read from MH i2c: D1 01 00 83 03 00 57 [18:20:02]Write to MH i2c: 01 00 00 84 03 87 [18:20:02]Write i2c OK [18:20:02]MH_I2C_Read... [18:20:02]OFD Sender: No OFD packet to send [18:20:03]*** Cut start [18:20:03]*** Partial cut [18:20:03]*** CUTSNS_PIN = 1 [18:20:03]*** CUTSNS_PIN = 0 [18:20:03]*** Brake cut motor [18:20:03]Read from MH i2c: 01 [18:20:03]MH_I2C_Read... [18:20:03]*** Stop cut motor [18:20:03]*** Cut end [18:20:03]Read from MH i2c: 01 07 00 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [18:20:03]process_action close_receipt done [18:20:03]requested_data is exist [18:20:03]produce_requested_data [18:20:03]requested_item fm.sn is exist - process it [18:20:03]wFMCommunicate request_size=4 [18:20:03]MH_SAM_APDU [18:20:03]CAPDU: 80 11 00 00 [18:20:03]Write to MH i2c: E2 08 00 85 03 80 11 00 00 00 00 00 00 02 [18:20:03]Write i2c OK [18:20:03]MH_I2C_Read... [18:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:03]Read from MH i2c: E2 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 17 00 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 17 00 85 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [18:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:03]wFMCommunicate OK [18:20:03]requested_item fd.num is exist - process it [18:20:03]SAM_PROTO_GetFieldsCounters [18:20:03]wFMCommunicate request_size=4 [18:20:03]MH_SAM_APDU [18:20:03]CAPDU: 80 13 00 00 [18:20:03]Write to MH i2c: E2 08 00 86 03 80 13 00 00 00 00 00 00 05 [18:20:03]Write i2c OK [18:20:03]MH_I2C_Read... [18:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:03]Read from MH i2c: E2 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 62 00 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 62 00 86 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [18:20:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:03]wFMCommunicate OK [18:20:03]SAM_PROTO_GetFieldsCounters done [18:20:03]requested_item shift.num is exist - process it [18:20:03]requested_item shift.opened is exist - process it [18:20:03]req_shift_opened [18:20:03]FM_GetShiftState [18:20:03]SAM_PROTO_GetShiftState [18:20:03]wFMCommunicate request_size=4 [18:20:03]MH_SAM_APDU [18:20:03]CAPDU: 80 13 01 00 [18:20:03]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [18:20:03]Write i2c OK [18:20:03]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 [18:20:04]MH_I2C_Read... [18:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:04]Read from MH i2c: E2 0E 00 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 48 [18:20:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:20:04]wFMCommunicate OK [18:20:04]SAM_PROTO_GetShiftState done [18:20:04]FM_GetShiftState done [18:20:04]req_shift_opened done [18:20:04]requested_item shift.open_date is exist - process it [18:20:04]req_shift_open_date [18:20:04]req_shift_open_date done [18:20:04]produce_requested_data done [18:20:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192369,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:20:04]process_action_free close_receipt [18:20:04]json_value_free [18:20:04]json_value_free done [18:20:04]process_json_proto returns [18:20:04]Send response to host [18:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192369,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:20:04]free response buf [18:20:04]execute_script done [18:20:04]execute_script returns [18:20:04]free content buf [18:20:04]Sock 7.Close socket [18:20:04]Sock 7.Thread stoped [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]accept exits with 9 [18:22:37]New connection [18:22:37]New thread 3066707300 created [18:22:37]Thread 3066563940 joined [18:22:37]Waiting for new connection... [18:22:37] Sock 9.Parse request [18:22:37]Sock 9.Check first char [18:22:37]Sock 9.First char is OK [18:22:37]request: POST /json_proto HTTP/1.0 [18:22:37]Method: POST [18:22:37]URL: /json_proto [18:22:37]Method is POST - this is cgi request [18:22:37]url: /json_proto [18:22:37]query_string will be loaded in cgi processing [18:22:37]execute_cgi json_proto POST (null) [18:22:37]execute_cgi path=json_proto method=POST [18:22:37]POST find Content-Length [18:22:37]Host: 172.17.63.131:8080 [18:22:37]Content-Length: 681 [18:22:37]Content-Type: application/json [18:22:37] [18:22:37]POST finish read [18:22:37]Found Content-Length = 681 [18:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.400, "sum" : 1498.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1498.00, "payments": [ { "type": 0, "sum" : 1498.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:37]execute_script... [18:22:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.400, "sum" : 1498.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1498.00, "payments": [ { "type": 0, "sum" : 1498.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:37]POST & json_proto [18:22:37]process_json_proto [18:22:37]json parsed OK: [18:22:37]protocol is kg_v1.0 [18:22:37]action value=close_receipt [18:22:37]process_action close_receipt [18:22:37]cmd_close_receipt [18:22:37]MH_GetDate [18:22:37]Write to MH i2c: F0 00 00 88 03 7A [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: F0 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: F0 09 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: F0 09 00 88 03 00 EE 84 1E 67 22 05 6E 64 73 [18:22:37]GetLastDocTimeStamp 1730053200 [18:22:37]current date 1730053358 [18:22:37]FM_GetShiftState [18:22:37]SAM_PROTO_GetShiftState [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 13 01 00 [18:22:37]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0E 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 4A [18:22:37]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:22:37]wFMCommunicate OK [18:22:37]SAM_PROTO_GetShiftState done [18:22:37]FM_GetShiftState done [18:22:37]opened in 1729989159 [18:22:37]opened+sec_in_day 1730075559 [18:22:37]quantity*price = 149856 [18:22:37]sum+1 = 149857 [18:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1498.00 Внесено: 1500.00 СДАЧА: 2.00 НСП 1% : 13.26 НДС 12% : 159.14 Наличными: 1498.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 402 27.10.2024 18:22 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192370 ФПД: 243105740228118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192370&fm=243105740228118&tin=02508201610067®Number=0000000000091776&sum=149800 [18:22:38]StoreToDocumentArchive [18:22:38]shift 542 fd 192370 [18:22:38]save to /storage/0542/doc_00192370 [18:22:38]save last doc name /storage/0542/doc_00192370 to /storage/kkm_last_doc_name [18:22:38]save OK [18:22:38]Clear old archive folders... [18:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:38]tlvbuf is B6F19950 [18:22:38]SAM_PROTO_ClearQueue [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 09 00 00 [18:22:38]Write to MH i2c: E2 08 00 96 03 80 09 00 00 00 00 00 00 0B [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [18:22:38]RAPDU: 90 00 [18:22:38]wFMCommunicate OK [18:22:38]SAM_PROTO_ClearQueue done [18:22:38]KKMCreateOFDPacket [18:22:38]OFDProtocolAddRootSTLVToBuf [18:22:38]FM_MakeSignedData [18:22:38]FM_MakeSignedData [18:22:38]SAM_PROTO_SignData [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 0D 01 02 [18:22:38]Write to MH i2c: E2 08 00 97 03 80 0D 01 02 00 00 00 00 13 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [18:22:38]RAPDU: 90 00 [18:22:38]wFMCommunicate OK [18:22:38]wFMCommunicate request_size=255 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 60 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 3E 00 00 00 00 07 04 06 00 28 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 92 01 00 00 F4 03 04 00 EE 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EF 02 00 35 04 06 00 DD [18:22:38]Write to MH i2c: E2 02 01 98 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 60 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 3E 00 00 00 00 07 04 06 00 28 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 92 01 00 00 F4 03 04 00 EE 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EF 02 00 35 04 06 00 DD 00 00 4B [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [18:22:38]RAPDU: 90 00 [18:22:38]wFMCommunicate OK [18:22:38]wFMCommunicate request_size=10 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 0D 02 02 05 1A 77 4A 06 16 [18:22:38]Write to MH i2c: E2 0D 00 99 03 80 0D 02 02 05 00 1A 77 4A 06 16 00 00 17 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [18:22:38]RAPDU: 90 00 [18:22:38]wFMCommunicate OK [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 0D 03 02 [18:22:38]Write to MH i2c: E2 08 00 9A 03 80 0D 03 02 00 00 00 00 18 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0B 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0B 00 9A 03 00 F6 44 6A 03 52 C1 37 26 90 00 30 [18:22:38]RAPDU: F6 44 6A 03 52 C1 37 26 90 00 [18:22:38]wFMCommunicate OK [18:22:38]SAM_PROTO_SignData done [18:22:38]FM_MakeSignedData done [18:22:38]CreateOFDProtocolMessage [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 11 00 00 [18:22:38]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 17 00 [18:22:38]MH_I2C_Read... [18:22:38]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 37 35 34 90 00 6B [18:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:22:38]wFMCommunicate OK [18:22:38]CreateOFDProtocolMessage done [18:22:38]OFDSenderStorePacket 192370 [18:22:38]StoreOFDPacket docnum=192370 [18:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 9C 07 01 3E DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 60 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 3E 00 00 00 00 07 04 06 00 28 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 92 01 00 00 F4 03 04 00 EE 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EF 02 00 35 04 06 00 DD 1A 77 4A 06 16 F6 44 6A 03 52 C1 37 26 [18:22:38]CheckFolder [18:22:38]dirname=/storage/ofd_packets [18:22:38]CheckFolder done [18:22:38]ProducePacketName [18:22:38]name=ofd_packets/00192370 [18:22:38]NVStorageSaveData ofd_packets/00192370 [18:22:38]File name is /storage/ofd_packets/00192370 [18:22:38]Write 301 bytes [18:22:38]NVStorageSaveData done [18:22:38]OFDSenderStorePacket done [18:22:38]KKMCreateOFDPacket done [18:22:38]NVStorageSaveData kkm_last_timestamp [18:22:38]File name is /storage/kkm_last_timestamp [18:22:38]Write 4 bytes [18:22:38]NVStorageSaveData done [18:22:38]ExternCall_PrintAddStr [18:22:38]wPrintStart [18:22:38]Write to MH i2c: 01 00 00 9C 03 9F [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 07 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [18:22:38]RasterBufferAndPrint [18:22:38]line Счет N : (1)31688 [18:22:38]line ИНН: 02508201610067 [18:22:38]line Контрольно-Кассовый Чек [18:22:38]line ПРОДАЖА [18:22:38]line ТРК (МРК, ГНК) : 12 [18:22:38]line Товар: 2710124130 [18:22:38]line Аи-92-К-5 [18:22:38]line 22.400 * 66.90 [18:22:38]line = 1498.56 [18:22:38]line НДС 12% НСП 1% [18:22:38]line > о реализуемом товаре [18:22:38]line ОКРУГЛЕНИЕ: -0.56 [18:22:38]line ИТОГО: 1498.00 [18:22:38]line Внесено: 1500.00 [18:22:38]line СДАЧА: 2.00 [18:22:38]line НСП 1% : 13.26 [18:22:38]line НДС 12% : 159.14 [18:22:38]line Наличными: 1498.00 [18:22:38]line Безнал.: 0.00 [18:22:38]line Место: АЗС № 170 "Партнер Нефть" [18:22:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:22:38]line СНО: Общий режим [18:22:38]line Чек 402 27.10.2024 18:22 [18:22:38]line Смена: 542 ФФД: 1.0 [18:22:38]line ЗНМ: 0300000110 [18:22:38]line РНМ: 0000000000091776 [18:22:38]line Версия ККМ: 001 [18:22:38]line ФМ: 0000000000871754 [18:22:38]line ФД: 192370 [18:22:38]line ФПД: 243105740228118 [18:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192370&fm=243105740228118&tin=02508201610067®Number=0000000000091776&sum=149800 [18:22:39]OFD Sender: Processing packet 192370 [packets to send 75, broken 74] [18:22:39]ProducePacketName [18:22:39]name=ofd_packets/00192370 [18:22:39]OFD Sender: To server: pG, [18:22:39]CommunicateWithHost lk.salyk.kg:30040 [18:22:39]ConnectInit lk.salyk.kg [18:22:39]written 0, free lines is 4095 [18:22:39]Connected sock=10 [18:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 9C 07 01 3E DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 60 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 3E 00 00 00 00 07 04 06 00 28 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 92 01 00 00 F4 03 04 00 EE 84 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EF 02 00 35 04 06 00 DD 1A 77 4A 06 16 F6 44 6A 03 52 C1 37 26 [18:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 75 47 00 37 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 EF 02 00 F4 03 04 00 B5 29 1E 67 B6 04 01 00 00 31 0F 57 85 75 F2 32 68 [18:22:39]CommunicateWithHost err = 0 [18:22:39]CheckOFDResponse [18:22:39]1017 (14) - 77093643461234 [18:22:39]1041 (16) - 0000000000871754 [18:22:39]1040 (4) - 192370 [18:22:39]1012 (4) - 27.10.2024 11:53 [18:22:39]1206 (1) - 0 [18:22:39]OFD Sender: Remove packet 192370 [18:22:39]ProducePacketName [18:22:39]name=ofd_packets/00192370 [18:22:39]NVStorageDeleteData [18:22:39]Write to MH i2c: 01 00 00 C7 03 CA [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: 01 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: 01 07 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 AD 0C 8A [18:22:39]RasterBufferAndPrint [18:22:39]line [18:22:39]line [18:22:39]line [18:22:39]line [18:22:39]line [18:22:39]written 0, free lines is 3251 [18:22:39]MH_Cut [18:22:39]Write to MH i2c: D1 01 00 CE 03 01 A3 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: D1 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: D1 01 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: D1 01 00 CE 03 00 A2 [18:22:39]Write to MH i2c: 01 00 00 CF 03 D2 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:40]OFD Sender: No OFD packet to send [18:22:40]*** Cut start [18:22:40]*** Partial cut [18:22:40]*** CUTSNS_PIN = 1 [18:22:40]*** CUTSNS_PIN = 0 [18:22:40]*** Brake cut motor [18:22:41]Read from MH i2c: 01 [18:22:41]MH_I2C_Read... [18:22:41]*** Stop cut motor [18:22:41]*** Cut end [18:22:41]Read from MH i2c: 01 07 00 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [18:22:41]process_action close_receipt done [18:22:41]requested_data is exist [18:22:41]produce_requested_data [18:22:41]requested_item fm.sn is exist - process it [18:22:41]wFMCommunicate request_size=4 [18:22:41]MH_SAM_APDU [18:22:41]CAPDU: 80 11 00 00 [18:22:41]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [18:22:41]Write i2c OK [18:22:41]MH_I2C_Read... [18:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:41]Read from MH i2c: E2 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 17 00 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [18:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:22:41]wFMCommunicate OK [18:22:41]requested_item fd.num is exist - process it [18:22:41]SAM_PROTO_GetFieldsCounters [18:22:41]wFMCommunicate request_size=4 [18:22:41]MH_SAM_APDU [18:22:41]CAPDU: 80 13 00 00 [18:22:41]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [18:22:41]Write i2c OK [18:22:41]MH_I2C_Read... [18:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:41]Read from MH i2c: E2 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 62 00 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:41]wFMCommunicate OK [18:22:41]SAM_PROTO_GetFieldsCounters done [18:22:41]requested_item shift.num is exist - process it [18:22:41]requested_item shift.opened is exist - process it [18:22:41]req_shift_opened [18:22:41]FM_GetShiftState [18:22:41]SAM_PROTO_GetShiftState [18:22:41]wFMCommunicate request_size=4 [18:22:41]MH_SAM_APDU [18:22:41]CAPDU: 80 13 01 00 [18:22:41]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [18:22:41]Write i2c OK [18:22:41]MH_I2C_Read... [18:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:41]Read from MH i2c: E2 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 0E 00 [18:22:41]MH_I2C_Read... [18:22:41]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 93 [18:22:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:22:41]wFMCommunicate OK [18:22:41]SAM_PROTO_GetShiftState done [18:22:41]FM_GetShiftState done [18:22:41]req_shift_opened done [18:22:41]requested_item shift.open_date is exist - process it [18:22:41]req_shift_open_date [18:22:41]req_shift_open_date done [18:22:41]produce_requested_data done [18:22:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192370,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:22:41]process_action_free close_receipt [18:22:41]json_value_free [18:22:41]json_value_free done [18:22:41]process_json_proto returns [18:22:41]Send response to host [18:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192370,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:22:41]free response buf [18:22:41]execute_script done [18:22:41]execute_script returns [18:22:41]free content buf [18:22:41]Sock 9.Close socket [18:22:41]Sock 9.Thread stoped [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:12]accept exits with 7 [18:25:12]New connection [18:25:12]New thread 3066563940 created [18:25:12]Thread 3066707300 joined [18:25:12]Waiting for new connection... [18:25:12] Sock 7.Parse request [18:25:12]Sock 7.Check first char [18:25:12]Sock 7.First char is OK [18:25:12]request: POST /json_proto HTTP/1.0 [18:25:12]Method: POST [18:25:12]URL: /json_proto [18:25:12]Method is POST - this is cgi request [18:25:12]url: /json_proto [18:25:12]query_string will be loaded in cgi processing [18:25:12]execute_cgi json_proto POST (null) [18:25:12]execute_cgi path=json_proto method=POST [18:25:12]POST find Content-Length [18:25:12]Host: 172.17.63.131:8080 [18:25:12]Content-Length: 676 [18:25:12]Content-Type: application/json [18:25:12] [18:25:12]POST finish read [18:25:12]Found Content-Length = 676 [18:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:12]execute_script... [18: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 : (1)31689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:12]POST & json_proto [18:25:12]process_json_proto [18:25:12]json parsed OK: [18:25:12]protocol is kg_v1.0 [18:25:12]action value=close_receipt [18:25:12]process_action close_receipt [18:25:12]cmd_close_receipt [18:25:12]MH_GetDate [18:25:12]Write to MH i2c: F0 00 00 D3 03 C5 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 09 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 09 00 D3 03 00 89 85 1E 67 22 05 6E 64 5A [18:25:12]GetLastDocTimeStamp 1730053358 [18:25:12]current date 1730053513 [18:25:12]FM_GetShiftState [18:25:12]SAM_PROTO_GetShiftState [18:25:12]wFMCommunicate request_size=4 [18:25:12]MH_SAM_APDU [18:25:12]CAPDU: 80 13 01 00 [18:25:12]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:12]Read from MH i2c: E2 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0E 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 95 [18:25:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:25:12]wFMCommunicate OK [18:25:12]SAM_PROTO_GetShiftState done [18:25:12]FM_GetShiftState done [18:25:12]opened in 1729989159 [18:25:12]opened+sec_in_day 1730075559 [18:25:12]quantity*price = 40006 [18:25:12]sum+1 = 40007 [18:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 403 27.10.2024 18:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192371 ФПД: 240180692362957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192371&fm=240180692362957&tin=02508201610067®Number=0000000000091776&sum=40000 [18:25:13]StoreToDocumentArchive [18:25:13]shift 542 fd 192371 [18:25:13]save to /storage/0542/doc_00192371 [18:25:13]save last doc name /storage/0542/doc_00192371 to /storage/kkm_last_doc_name [18:25:13]save OK [18:25:13]Clear old archive folders... [18:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:13]tlvbuf is 019BBEF0 [18:25:13]SAM_PROTO_ClearQueue [18:25:13]wFMCommunicate request_size=4 [18:25:13]MH_SAM_APDU [18:25:13]CAPDU: 80 09 00 00 [18:25:13]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:13]Read from MH i2c: E2 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [18:25:13]RAPDU: 90 00 [18:25:13]wFMCommunicate OK [18:25:13]SAM_PROTO_ClearQueue done [18:25:13]KKMCreateOFDPacket [18:25:13]OFDProtocolAddRootSTLVToBuf [18:25:13]FM_MakeSignedData [18:25:13]FM_MakeSignedData [18:25:13]SAM_PROTO_SignData [18:25:13]wFMCommunicate request_size=4 [18:25:13]MH_SAM_APDU [18:25:13]CAPDU: 80 0D 01 02 [18:25:13]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:13]Read from MH i2c: E2 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [18:25:13]RAPDU: 90 00 [18:25:13]wFMCommunicate OK [18:25:13]wFMCommunicate request_size=255 [18:25:13]MH_SAM_APDU [18:25:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 89 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EF 02 00 35 04 06 00 DA [18:25:13]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 89 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EF 02 00 35 04 06 00 DA 00 00 46 [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [18:25:14]RAPDU: 90 00 [18:25:14]wFMCommunicate OK [18:25:14]wFMCommunicate request_size=10 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 0D 02 02 05 71 6C D9 A6 CD [18:25:14]Write to MH i2c: E2 0D 00 E4 03 80 0D 02 02 05 00 71 6C D9 A6 CD 00 00 94 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [18:25:14]RAPDU: 90 00 [18:25:14]wFMCommunicate OK [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 0D 03 02 [18:25:14]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0B 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0B 00 E5 03 00 32 EF 28 8A 65 C5 F4 D4 90 00 29 [18:25:14]RAPDU: 32 EF 28 8A 65 C5 F4 D4 90 00 [18:25:14]wFMCommunicate OK [18:25:14]SAM_PROTO_SignData done [18:25:14]FM_MakeSignedData done [18:25:14]CreateOFDProtocolMessage [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 11 00 00 [18:25:14]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 17 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [18:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:25:14]wFMCommunicate OK [18:25:14]CreateOFDProtocolMessage done [18:25:14]OFDSenderStorePacket 192371 [18:25:14]StoreOFDPacket docnum=192371 [18:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 6C 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 89 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EF 02 00 35 04 06 00 DA 71 6C D9 A6 CD 32 EF 28 8A 65 C5 F4 D4 [18:25:14]CheckFolder [18:25:14]dirname=/storage/ofd_packets [18:25:14]CheckFolder done [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00192371 [18:25:14]NVStorageSaveData ofd_packets/00192371 [18:25:14]File name is /storage/ofd_packets/00192371 [18:25:14]Write 301 bytes [18:25:14]NVStorageSaveData done [18:25:14]OFDSenderStorePacket done [18:25:14]KKMCreateOFDPacket done [18:25:14]NVStorageSaveData kkm_last_timestamp [18:25:14]File name is /storage/kkm_last_timestamp [18:25:14]Write 4 bytes [18:25:14]NVStorageSaveData done [18:25:14]ExternCall_PrintAddStr [18:25:14]wPrintStart [18:25:14]Write to MH i2c: 01 00 00 E7 03 EA [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [18:25:14]RasterBufferAndPrint [18:25:14]line Счет N : (1)31689 [18:25:14]line ИНН: 02508201610067 [18:25:14]line Контрольно-Кассовый Чек [18:25:14]line ПРОДАЖА [18:25:14]line ТРК (МРК, ГНК) : 12 [18:25:14]line Товар: 2710124130 [18:25:14]line Аи-92-К-5 [18:25:14]line 5.980 * 66.90 [18:25:14]line = 400.06 [18:25:14]line НДС 12% НСП 1% [18:25:14]line > о реализуемом товаре [18:25:14]line ОКРУГЛЕНИЕ: -0.06 [18:25:14]line ИТОГО: 400.00 [18:25:14]line Внесено: 400.00 [18:25:14]line СДАЧА: 0.00 [18:25:14]line НСП 1% : 3.54 [18:25:14]line НДС 12% : 42.48 [18:25:14]line Наличными: 400.00 [18:25:14]line Безнал.: 0.00 [18:25:14]line Место: АЗС № 170 "Партнер Нефть" [18:25:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:25:14]line СНО: Общий режим [18:25:14]line Чек 403 27.10.2024 18:25 [18:25:14]line Смена: 542 ФФД: 1.0 [18:25:14]line ЗНМ: 0300000110 [18:25:14]line РНМ: 0000000000091776 [18:25:14]line Версия ККМ: 001 [18:25:14]line ФМ: 0000000000871754 [18:25:14]line ФД: 192371 [18:25:14]line ФПД: 240180692362957 [18:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192371&fm=240180692362957&tin=02508201610067®Number=0000000000091776&sum=40000 [18:25:14]OFD Sender: Processing packet 192371 [packets to send 75, broken 74] [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00192371 [18:25:14]OFD Sender: To server: pG, [18:25:14]CommunicateWithHost lk.salyk.kg:30040 [18:25:14]ConnectInit lk.salyk.kg [18:25:14]written 0, free lines is 4095 [18:25:14]Connected sock=10 [18:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 6C 07 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 89 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EF 02 00 35 04 06 00 DA 71 6C D9 A6 CD 32 EF 28 8A 65 C5 F4 D4 [18:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 79 47 00 28 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 EF 02 00 F4 03 04 00 50 2A 1E 67 B6 04 01 00 00 B8 C3 F6 C9 3C 52 DD A0 [18:25:14]CommunicateWithHost err = 0 [18:25:14]CheckOFDResponse [18:25:14]1017 (14) - 77093643461234 [18:25:14]1041 (16) - 0000000000871754 [18:25:14]1040 (4) - 192371 [18:25:14]1012 (4) - 27.10.2024 11:56 [18:25:14]1206 (1) - 0 [18:25:14]OFD Sender: Remove packet 192371 [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00192371 [18:25:14]NVStorageDeleteData [18:25:14]Write to MH i2c: 01 00 00 12 04 16 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 A0 0C C9 [18:25:14]RasterBufferAndPrint [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]written 0, free lines is 3239 [18:25:14]MH_Cut [18:25:14]Write to MH i2c: D1 01 00 19 04 01 EF [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 01 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 01 00 19 04 00 EE [18:25:14]Write to MH i2c: 01 00 00 1A 04 1E [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:15]OFD Sender: No OFD packet to send [18:25:15]*** Cut start [18:25:15]*** Partial cut [18:25:15]*** CUTSNS_PIN = 1 [18:25:15]*** CUTSNS_PIN = 0 [18:25:16]*** Brake cut motor [18:25:16]Read from MH i2c: 01 [18:25:16]MH_I2C_Read... [18:25:16]*** Stop cut motor [18:25:16]*** Cut end [18:25:16]Read from MH i2c: 01 07 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [18:25:16]process_action close_receipt done [18:25:16]requested_data is exist [18:25:16]produce_requested_data [18:25:16]requested_item fm.sn is exist - process it [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 11 00 00 [18:25:16]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [18:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:25:16]wFMCommunicate OK [18:25:16]requested_item fd.num is exist - process it [18:25:16]SAM_PROTO_GetFieldsCounters [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 13 00 00 [18:25:16]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 62 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 62 00 1C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [18:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_GetFieldsCounters done [18:25:16]requested_item shift.num is exist - process it [18:25:16]requested_item shift.opened is exist - process it [18:25:16]req_shift_opened [18:25:16]FM_GetShiftState [18:25:16]SAM_PROTO_GetShiftState [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 13 01 00 [18:25:16]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DF [18:25:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_GetShiftState done [18:25:16]FM_GetShiftState done [18:25:16]req_shift_opened done [18:25:16]requested_item shift.open_date is exist - process it [18:25:16]req_shift_open_date [18:25:16]req_shift_open_date done [18:25:16]produce_requested_data done [18:25:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192371,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:25:16]process_action_free close_receipt [18:25:16]json_value_free [18:25:16]json_value_free done [18:25:16]process_json_proto returns [18:25:16]Send response to host [18:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192371,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:25:16]free response buf [18:25:16]execute_script done [18:25:16]execute_script returns [18:25:16]free content buf [18:25:16]Sock 7.Close socket [18:25:16]Sock 7.Thread stoped [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:39]accept exits with 9 [18:26:39]New connection [18:26:39]New thread 3066707300 created [18:26:39]Thread 3066563940 joined [18:26:39]Waiting for new connection... [18:26:39] Sock 9.Parse request [18:26:39]Sock 9.Check first char [18:26:39]Sock 9.First char is OK [18:26:39]request: POST /json_proto HTTP/1.0 [18:26:39]Method: POST [18:26:39]URL: /json_proto [18:26:39]Method is POST - this is cgi request [18:26:39]url: /json_proto [18:26:39]query_string will be loaded in cgi processing [18:26:39]execute_cgi json_proto POST (null) [18:26:39]execute_cgi path=json_proto method=POST [18:26:39]POST find Content-Length [18:26:39]Host: 172.17.63.131:8080 [18:26:39]Content-Length: 681 [18:26:39]Content-Type: application/json [18:26:39] [18:26:39]POST finish read [18:26:39]Found Content-Length = 681 [18:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:39]execute_script... [18:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:39]POST & json_proto [18:26:39]process_json_proto [18:26:39]json parsed OK: [18:26:39]protocol is kg_v1.0 [18:26:39]action value=close_receipt [18:26:39]process_action close_receipt [18:26:39]cmd_close_receipt [18:26:39]MH_GetDate [18:26:39]Write to MH i2c: F0 00 00 1E 04 11 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 09 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: F0 09 00 1E 04 00 E0 85 1E 67 22 05 6E 64 FD [18:26:39]GetLastDocTimeStamp 1730053513 [18:26:39]current date 1730053600 [18:26:39]FM_GetShiftState [18:26:39]SAM_PROTO_GetShiftState [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 13 01 00 [18:26:39]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E1 [18:26:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_GetShiftState done [18:26:39]FM_GetShiftState done [18:26:39]opened in 1729989159 [18:26:39]opened+sec_in_day 1730075559 [18:26:39]quantity*price = 100015 [18:26:39]sum+1 = 100017 [18:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 404 27.10.2024 18:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192372 ФПД: 142453425324345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192372&fm=142453425324345&tin=02508201610067®Number=0000000000091776&sum=100000 [18:26:40]StoreToDocumentArchive [18:26:40]shift 542 fd 192372 [18:26:40]save to /storage/0542/doc_00192372 [18:26:40]save last doc name /storage/0542/doc_00192372 to /storage/kkm_last_doc_name [18:26:40]save OK [18:26:40]Clear old archive folders... [18:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:40]tlvbuf is 019BCD80 [18:26:40]SAM_PROTO_ClearQueue [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 09 00 00 [18:26:40]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]SAM_PROTO_ClearQueue done [18:26:41]KKMCreateOFDPacket [18:26:41]OFDProtocolAddRootSTLVToBuf [18:26:41]FM_MakeSignedData [18:26:41]FM_MakeSignedData [18:26:41]SAM_PROTO_SignData [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 01 02 [18:26:41]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]wFMCommunicate request_size=255 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 E0 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EF 02 00 35 04 06 00 81 [18:26:41]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E0 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EF 02 00 35 04 06 00 81 00 00 BD [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]wFMCommunicate request_size=10 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 02 02 05 8F 85 D0 41 39 [18:26:41]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 8F 85 D0 41 39 00 00 15 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [18:26:41]RAPDU: 90 00 [18:26:41]wFMCommunicate OK [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 0D 03 02 [18:26:41]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0B 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0B 00 30 04 00 46 FE 67 E9 ED 86 4D 88 90 00 8C [18:26:41]RAPDU: 46 FE 67 E9 ED 86 4D 88 90 00 [18:26:41]wFMCommunicate OK [18:26:41]SAM_PROTO_SignData done [18:26:41]FM_MakeSignedData done [18:26:41]CreateOFDProtocolMessage [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 11 00 00 [18:26:41]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [18:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:41]wFMCommunicate OK [18:26:41]CreateOFDProtocolMessage done [18:26:41]OFDSenderStorePacket 192372 [18:26:41]StoreOFDPacket docnum=192372 [18:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 0C 07 01 68 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E0 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EF 02 00 35 04 06 00 81 8F 85 D0 41 39 46 FE 67 E9 ED 86 4D 88 [18:26:41]CheckFolder [18:26:41]dirname=/storage/ofd_packets [18:26:41]CheckFolder done [18:26:41]ProducePacketName [18:26:41]name=ofd_packets/00192372 [18:26:41]NVStorageSaveData ofd_packets/00192372 [18:26:41]File name is /storage/ofd_packets/00192372 [18:26:41]Write 301 bytes [18:26:41]NVStorageSaveData done [18:26:41]OFDSenderStorePacket done [18:26:41]KKMCreateOFDPacket done [18:26:41]NVStorageSaveData kkm_last_timestamp [18:26:41]File name is /storage/kkm_last_timestamp [18:26:41]Write 4 bytes [18:26:41]NVStorageSaveData done [18:26:41]ExternCall_PrintAddStr [18:26:41]wPrintStart [18:26:41]Write to MH i2c: 01 00 00 32 04 36 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [18:26:41]RasterBufferAndPrint [18:26:41]line Счет N : (1)31690 [18:26:41]line ИНН: 02508201610067 [18:26:41]line Контрольно-Кассовый Чек [18:26:41]line ПРОДАЖА [18:26:41]line ТРК (МРК, ГНК) : 12 [18:26:41]line Товар: 2710124130 [18:26:41]line Аи-92-К-5 [18:26:41]line 14.950 * 66.90 [18:26:41]line = 1000.16 [18:26:41]line НДС 12% НСП 1% [18:26:41]line > о реализуемом товаре [18:26:41]line ОКРУГЛЕНИЕ: -0.16 [18:26:41]line ИТОГО: 1000.00 [18:26:41]line Внесено: 1000.00 [18:26:41]line СДАЧА: 0.00 [18:26:41]line НСП 1% : 8.85 [18:26:41]line НДС 12% : 106.21 [18:26:41]line Наличными: 1000.00 [18:26:41]line Безнал.: 0.00 [18:26:41]line Место: АЗС № 170 "Партнер Нефть" [18:26:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:26:41]line СНО: Общий режим [18:26:41]line Чек 404 27.10.2024 18:26 [18:26:41]line Смена: 542 ФФД: 1.0 [18:26:41]line ЗНМ: 0300000110 [18:26:41]line РНМ: 0000000000091776 [18:26:41]line Версия ККМ: 001 [18:26:41]line ФМ: 0000000000871754 [18:26:41]line ФД: 192372 [18:26:41]line ФПД: 142453425324345 [18:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192372&fm=142453425324345&tin=02508201610067®Number=0000000000091776&sum=100000 [18:26:41]OFD Sender: Processing packet 192372 [packets to send 75, broken 74] [18:26:41]ProducePacketName [18:26:41]name=ofd_packets/00192372 [18:26:41]OFD Sender: To server: pG, [18:26:41]CommunicateWithHost lk.salyk.kg:30040 [18:26:41]ConnectInit lk.salyk.kg [18:26:41]written 0, free lines is 4095 [18:26:41]Connected sock=10 [18:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 0C 07 01 68 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E0 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EF 02 00 35 04 06 00 81 8F 85 D0 41 39 46 FE 67 E9 ED 86 4D 88 [18:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B8 A4 47 00 0B DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 EF 02 00 F4 03 04 00 A7 2A 1E 67 B6 04 01 00 00 83 68 C6 AA BF 66 4A 4D [18:26:42]CommunicateWithHost err = 0 [18:26:42]CheckOFDResponse [18:26:42]1017 (14) - 77093643461234 [18:26:42]1041 (16) - 0000000000871754 [18:26:42]1040 (4) - 192372 [18:26:42]1012 (4) - 27.10.2024 11:57 [18:26:42]1206 (1) - 0 [18:26:42]OFD Sender: Remove packet 192372 [18:26:42]ProducePacketName [18:26:42]name=ofd_packets/00192372 [18:26:42]NVStorageDeleteData [18:26:42]Write to MH i2c: 01 00 00 5D 04 61 [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 B4 0C 28 [18:26:42]RasterBufferAndPrint [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]written 0, free lines is 3256 [18:26:42]MH_Cut [18:26:42]Write to MH i2c: D1 01 00 64 04 01 3A [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 01 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 01 00 64 04 00 39 [18:26:42]Write to MH i2c: 01 00 00 65 04 69 [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]OFD Sender: No OFD packet to send [18:26:43]*** Cut start [18:26:43]*** Partial cut [18:26:43]*** CUTSNS_PIN = 1 [18:26:43]*** CUTSNS_PIN = 0 [18:26:43]*** Brake cut motor [18:26:43]Read from MH i2c: 01 [18:26:43]MH_I2C_Read... [18:26:43]*** Stop cut motor [18:26:43]*** Cut end [18:26:43]Read from MH i2c: 01 07 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [18:26:43]process_action close_receipt done [18:26:43]requested_data is exist [18:26:43]produce_requested_data [18:26:43]requested_item fm.sn is exist - process it [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 11 00 00 [18:26:43]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:43]Read from MH i2c: E2 17 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [18:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:43]wFMCommunicate OK [18:26:43]requested_item fd.num is exist - process it [18:26:43]SAM_PROTO_GetFieldsCounters [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 13 00 00 [18:26:43]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 62 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [18:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_GetFieldsCounters done [18:26:44]requested_item shift.num is exist - process it [18:26:44]requested_item shift.opened is exist - process it [18:26:44]req_shift_opened [18:26:44]FM_GetShiftState [18:26:44]SAM_PROTO_GetShiftState [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 13 01 00 [18:26:44]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0E 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2A [18:26:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_GetShiftState done [18:26:44]FM_GetShiftState done [18:26:44]req_shift_opened done [18:26:44]requested_item shift.open_date is exist - process it [18:26:44]req_shift_open_date [18:26:44]req_shift_open_date done [18:26:44]produce_requested_data done [18:26:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192372,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:26:44]process_action_free close_receipt [18:26:44]json_value_free [18:26:44]json_value_free done [18:26:44]process_json_proto returns [18:26:44]Send response to host [18:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192372,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:26:44]free response buf [18:26:44]execute_script done [18:26:44]execute_script returns [18:26:44]free content buf [18:26:44]Sock 9.Close socket [18:26:44]Sock 9.Thread stoped [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:56]accept exits with 7 [18:26:56]New connection [18:26:56]New thread 3066563940 created [18:26:56]Thread 3066707300 joined [18:26:56]Waiting for new connection... [18:26:56] Sock 7.Parse request [18:26:56]Sock 7.Check first char [18:26:56]Sock 7.First char is OK [18:26:56]request: POST /json_proto HTTP/1.0 [18:26:56]Method: POST [18:26:56]URL: /json_proto [18:26:56]Method is POST - this is cgi request [18:26:56]url: /json_proto [18:26:56]query_string will be loaded in cgi processing [18:26:56]execute_cgi json_proto POST (null) [18:26:56]execute_cgi path=json_proto method=POST [18:26:56]POST find Content-Length [18:26:56]Host: 172.17.63.131:8080 [18:26:56]Content-Length: 678 [18:26:56]Content-Type: application/json [18:26:56] [18:26:56]POST finish read [18:26:56]Found Content-Length = 678 [18:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31687", "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" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:56]execute_script... [18: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)31687", "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" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:56]POST & json_proto [18:26:56]process_json_proto [18:26:56]json parsed OK: [18:26:56]protocol is kg_v1.0 [18:26:56]action value=close_receipt [18:26:56]process_action close_receipt [18:26:56]cmd_close_receipt [18:26:56]MH_GetDate [18:26:56]Write to MH i2c: F0 00 00 69 04 5C [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: F0 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: F0 09 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: F0 09 00 69 04 00 F1 85 1E 67 22 05 6E 64 59 [18:26:56]GetLastDocTimeStamp 1730053600 [18:26:56]current date 1730053617 [18:26:56]FM_GetShiftState [18:26:56]SAM_PROTO_GetShiftState [18:26:56]wFMCommunicate request_size=4 [18:26:56]MH_SAM_APDU [18:26:56]CAPDU: 80 13 01 00 [18:26:56]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [18:26:56]Write i2c OK [18:26:56]MH_I2C_Read... [18:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:56]Read from MH i2c: E2 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 0E 00 [18:26:56]MH_I2C_Read... [18:26:56]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2C [18:26:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:26:56]wFMCommunicate OK [18:26:56]SAM_PROTO_GetShiftState done [18:26:56]FM_GetShiftState done [18:26:56]opened in 1729989159 [18:26:56]opened+sec_in_day 1730075559 [18:26:56]quantity*price = 700049 [18:26:56]sum+1 = 700050 [18:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 405 27.10.2024 18:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192373 ФПД: 178874906882894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192373&fm=178874906882894&tin=02508201610067®Number=0000000000091776&sum=700000 [18:26:57]StoreToDocumentArchive [18:26:57]shift 542 fd 192373 [18:26:57]save to /storage/0542/doc_00192373 [18:26:57]save last doc name /storage/0542/doc_00192373 to /storage/kkm_last_doc_name [18:26:57]save OK [18:26:57]Clear old archive folders... [18:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:26:57]tlvbuf is 019C15A0 [18:26:57]SAM_PROTO_ClearQueue [18:26:57]wFMCommunicate request_size=4 [18:26:57]MH_SAM_APDU [18:26:57]CAPDU: 80 09 00 00 [18:26:57]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [18:26:57]Write i2c OK [18:26:57]MH_I2C_Read... [18:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:57]Read from MH i2c: E2 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 03 00 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [18:26:57]RAPDU: 90 00 [18:26:57]wFMCommunicate OK [18:26:57]SAM_PROTO_ClearQueue done [18:26:57]KKMCreateOFDPacket [18:26:57]OFDProtocolAddRootSTLVToBuf [18:26:57]FM_MakeSignedData [18:26:57]FM_MakeSignedData [18:26:57]SAM_PROTO_SignData [18:26:57]wFMCommunicate request_size=4 [18:26:57]MH_SAM_APDU [18:26:57]CAPDU: 80 0D 01 02 [18:26:57]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [18:26:57]Write i2c OK [18:26:57]MH_I2C_Read... [18:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:57]Read from MH i2c: E2 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 03 00 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [18:26:57]RAPDU: 90 00 [18:26:57]wFMCommunicate OK [18:26:57]wFMCommunicate request_size=255 [18:26:57]MH_SAM_APDU [18:26:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 F1 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EF 02 00 35 04 06 00 A2 AF 8F 48 [18:26:57]Write to MH i2c: E2 02 01 79 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 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 F1 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EF 02 00 35 04 06 00 A2 AF 8F 48 00 00 08 [18:26:57]Write i2c OK [18:26:57]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 03 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [18:26:58]RAPDU: 90 00 [18:26:58]wFMCommunicate OK [18:26:58]wFMCommunicate request_size=7 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 0D 02 02 02 B3 4E [18:26:58]Write to MH i2c: E2 0A 00 7A 04 80 0D 02 02 02 00 B3 4E 00 00 FD [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 03 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [18:26:58]RAPDU: 90 00 [18:26:58]wFMCommunicate OK [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 0D 03 02 [18:26:58]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0B 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0B 00 7B 04 00 F9 69 8A 56 03 19 9B 8A 90 00 7E [18:26:58]RAPDU: F9 69 8A 56 03 19 9B 8A 90 00 [18:26:58]wFMCommunicate OK [18:26:58]SAM_PROTO_SignData done [18:26:58]FM_MakeSignedData done [18:26:58]CreateOFDProtocolMessage [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 11 00 00 [18:26:58]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 17 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [18:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:58]wFMCommunicate OK [18:26:58]CreateOFDProtocolMessage done [18:26:58]OFDSenderStorePacket 192373 [18:26:58]StoreOFDPacket docnum=192373 [18:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 04 42 04 01 F2 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 F1 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EF 02 00 35 04 06 00 A2 AF 8F 48 B3 4E F9 69 8A 56 03 19 9B 8A [18:26:58]CheckFolder [18:26:58]dirname=/storage/ofd_packets [18:26:58]CheckFolder done [18:26:58]ProducePacketName [18:26:58]name=ofd_packets/00192373 [18:26:58]NVStorageSaveData ofd_packets/00192373 [18:26:58]File name is /storage/ofd_packets/00192373 [18:26:58]Write 298 bytes [18:26:58]NVStorageSaveData done [18:26:58]OFDSenderStorePacket done [18:26:58]KKMCreateOFDPacket done [18:26:58]NVStorageSaveData kkm_last_timestamp [18:26:58]File name is /storage/kkm_last_timestamp [18:26:58]Write 4 bytes [18:26:58]NVStorageSaveData done [18:26:58]ExternCall_PrintAddStr [18:26:58]wPrintStart [18:26:58]Write to MH i2c: 01 00 00 7D 04 81 [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: 01 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: 01 07 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [18:26:58]RasterBufferAndPrint [18:26:58]line Счет N : (1)31687 [18:26:58]line ИНН: 02508201610067 [18:26:58]line Контрольно-Кассовый Чек [18:26:58]line ПРОДАЖА [18:26:58]line ТРК (МРК, ГНК) : 11 [18:26:58]line Товар: 2710194210 [18:26:58]line ДТ-К-5 [18:26:58]line 91.870 * 76.20 [18:26:58]line = 7000.49 [18:26:58]line НДС 12% НСП 1% [18:26:58]line > о реализуемом товаре [18:26:58]line ОКРУГЛЕНИЕ: -0.49 [18:26:58]line ИТОГО: 7000.00 [18:26:58]line Внесено: 7000.00 [18:26:58]line СДАЧА: 0.00 [18:26:58]line НСП 1% : 61.95 [18:26:58]line НДС 12% : 743.41 [18:26:58]line Наличными: 7000.00 [18:26:58]line Безнал.: 0.00 [18:26:58]line Место: АЗС № 170 "Партнер Нефть" [18:26:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:26:58]line СНО: Общий режим [18:26:58]line Чек 405 27.10.2024 18:26 [18:26:58]line Смена: 542 ФФД: 1.0 [18:26:58]line ЗНМ: 0300000110 [18:26:58]line РНМ: 0000000000091776 [18:26:58]line Версия ККМ: 001 [18:26:58]line ФМ: 0000000000871754 [18:26:58]line ФД: 192373 [18:26:58]line ФПД: 178874906882894 [18:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192373&fm=178874906882894&tin=02508201610067®Number=0000000000091776&sum=700000 [18:26:58]OFD Sender: Processing packet 192373 [packets to send 75, broken 74] [18:26:58]ProducePacketName [18:26:58]name=ofd_packets/00192373 [18:26:58]OFD Sender: To server: pG, [18:26:58]CommunicateWithHost lk.salyk.kg:30040 [18:26:58]ConnectInit lk.salyk.kg [18:26:58]written 0, free lines is 4095 [18:26:58]Connected sock=10 [18: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 37 35 34 0C 01 00 00 04 42 04 01 F2 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 F1 85 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 EF 02 00 35 04 06 00 A2 AF 8F 48 B3 4E F9 69 8A 56 03 19 9B 8A [18: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 37 35 34 4F 00 00 00 AC 20 47 00 79 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 37 35 34 10 04 04 00 75 EF 02 00 F4 03 04 00 B8 2A 1E 67 B6 04 01 00 00 F2 F8 A6 35 B5 B1 4C C3 [18:26:58]CommunicateWithHost err = 0 [18:26:58]CheckOFDResponse [18:26:58]1017 (14) - 77093643461234 [18:26:58]1041 (16) - 0000000000871754 [18:26:58]1040 (4) - 192373 [18:26:58]1012 (4) - 27.10.2024 11:57 [18:26:58]1206 (1) - 0 [18:26:58]OFD Sender: Remove packet 192373 [18:26:58]ProducePacketName [18:26:58]name=ofd_packets/00192373 [18:26:58]NVStorageDeleteData [18:26:59]Write to MH i2c: 01 00 00 A8 04 AC [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: 01 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: 01 07 00 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 B6 0C 75 [18:26:59]RasterBufferAndPrint [18:26:59]line [18:26:59]line [18:26:59]line [18:26:59]line [18:26:59]line [18:26:59]written 0, free lines is 3262 [18:26:59]MH_Cut [18:26:59]Write to MH i2c: D1 01 00 AF 04 01 85 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: D1 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: D1 01 00 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: D1 01 00 AF 04 00 84 [18:26:59]Write to MH i2c: 01 00 00 B0 04 B4 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]OFD Sender: No OFD packet to send [18:26:59]*** Cut start [18:26:59]*** Partial cut [18:26:59]*** CUTSNS_PIN = 1 [18:26:59]*** CUTSNS_PIN = 0 [18:27:00]*** Brake cut motor [18:27:00]Read from MH i2c: 01 [18:27:00]MH_I2C_Read... [18:27:00]*** Stop cut motor [18:27:00]*** Cut end [18:27:00]Read from MH i2c: 01 07 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [18:27:00]process_action close_receipt done [18:27:00]requested_data is exist [18:27:00]produce_requested_data [18:27:00]requested_item fm.sn is exist - process it [18:27:00]wFMCommunicate request_size=4 [18:27:00]MH_SAM_APDU [18:27:00]CAPDU: 80 11 00 00 [18:27:00]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:00]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 17 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [18:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:27:00]wFMCommunicate OK [18:27:00]requested_item fd.num is exist - process it [18:27:00]SAM_PROTO_GetFieldsCounters [18:27:00]wFMCommunicate request_size=4 [18:27:00]MH_SAM_APDU [18:27:00]CAPDU: 80 13 00 00 [18:27:00]Write to MH i2c: E2 08 00 B2 04 80 13 00 00 00 00 00 00 32 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:00]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 62 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 62 00 B2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:00]wFMCommunicate OK [18:27:00]SAM_PROTO_GetFieldsCounters done [18:27:00]requested_item shift.num is exist - process it [18:27:00]requested_item shift.opened is exist - process it [18:27:00]req_shift_opened [18:27:00]FM_GetShiftState [18:27:00]SAM_PROTO_GetShiftState [18:27:00]wFMCommunicate request_size=4 [18:27:00]MH_SAM_APDU [18:27:00]CAPDU: 80 13 01 00 [18:27:00]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:00]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 0E 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [18:27:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:27:00]wFMCommunicate OK [18:27:00]SAM_PROTO_GetShiftState done [18:27:00]FM_GetShiftState done [18:27:00]req_shift_opened done [18:27:00]requested_item shift.open_date is exist - process it [18:27:00]req_shift_open_date [18:27:00]req_shift_open_date done [18:27:00]produce_requested_data done [18:27:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192373,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:27:00]process_action_free close_receipt [18:27:00]json_value_free [18:27:00]json_value_free done [18:27:00]process_json_proto returns [18:27:00]Send response to host [18:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192373,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:27:00]free response buf [18:27:00]execute_script done [18:27:00]execute_script returns [18:27:00]free content buf [18:27:00]Sock 7.Close socket [18:27:00]Sock 7.Thread stoped [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]accept exits with 9 [18:28:09]New connection [18:28:09]New thread 3066707300 created [18:28:09]Thread 3066563940 joined [18:28:09]Waiting for new connection... [18:28:09] Sock 9.Parse request [18:28:09]Sock 9.Check first char [18:28:09]Sock 9.First char is OK [18:28:09]request: POST /json_proto HTTP/1.0 [18:28:09]Method: POST [18:28:09]URL: /json_proto [18:28:09]Method is POST - this is cgi request [18:28:09]url: /json_proto [18:28:09]query_string will be loaded in cgi processing [18:28:09]execute_cgi json_proto POST (null) [18:28:09]execute_cgi path=json_proto method=POST [18:28:09]POST find Content-Length [18:28:09]Host: 172.17.63.131:8080 [18:28:09]Content-Length: 677 [18:28:09]Content-Type: application/json [18:28:09] [18:28:09]POST finish read [18:28:09]Found Content-Length = 677 [18:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:09]execute_script... [18:28:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:09]POST & json_proto [18:28:09]process_json_proto [18:28:09]json parsed OK: [18:28:09]protocol is kg_v1.0 [18:28:09]action value=close_receipt [18:28:09]process_action close_receipt [18:28:09]cmd_close_receipt [18:28:09]MH_GetDate [18:28:09]Write to MH i2c: F0 00 00 B4 04 A7 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: F0 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: F0 09 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: F0 09 00 B4 04 00 3A 86 1E 67 22 05 6E 64 EE [18:28:09]GetLastDocTimeStamp 1730053617 [18:28:09]current date 1730053690 [18:28:09]FM_GetShiftState [18:28:09]SAM_PROTO_GetShiftState [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 13 01 00 [18:28:09]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0E 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 77 [18:28:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:28:09]wFMCommunicate OK [18:28:09]SAM_PROTO_GetShiftState done [18:28:09]FM_GetShiftState done [18:28:09]opened in 1729989159 [18:28:09]opened+sec_in_day 1730075559 [18:28:09]quantity*price = 80012 [18:28:09]sum+1 = 80013 [18:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 406 27.10.2024 18:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192374 ФПД: 85528215445984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192374&fm=85528215445984&tin=02508201610067®Number=0000000000091776&sum=80000 [18:28:10]StoreToDocumentArchive [18:28:10]shift 542 fd 192374 [18:28:10]save to /storage/0542/doc_00192374 [18:28:10]save last doc name /storage/0542/doc_00192374 to /storage/kkm_last_doc_name [18:28:10]save OK [18:28:10]Clear old archive folders... [18:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:10]tlvbuf is 019C4A80 [18:28:10]SAM_PROTO_ClearQueue [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 09 00 00 [18:28:10]Write to MH i2c: E2 08 00 C2 04 80 09 00 00 00 00 00 00 38 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 03 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [18:28:10]RAPDU: 90 00 [18:28:10]wFMCommunicate OK [18:28:10]SAM_PROTO_ClearQueue done [18:28:10]KKMCreateOFDPacket [18:28:10]OFDProtocolAddRootSTLVToBuf [18:28:10]FM_MakeSignedData [18:28:10]FM_MakeSignedData [18:28:10]SAM_PROTO_SignData [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 0D 01 02 [18:28:10]Write to MH i2c: E2 08 00 C3 04 80 0D 01 02 00 00 00 00 40 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 03 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [18:28:10]RAPDU: 90 00 [18:28:10]wFMCommunicate OK [18:28:10]wFMCommunicate request_size=255 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 3A 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EF 02 00 35 04 06 00 4D [18:28:10]Write to MH i2c: E2 02 01 C4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 3A 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EF 02 00 35 04 06 00 4D 00 00 70 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 03 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [18:28:11]RAPDU: 90 00 [18:28:11]wFMCommunicate OK [18:28:11]wFMCommunicate request_size=10 [18:28:11]MH_SAM_APDU [18:28:11]CAPDU: 80 0D 02 02 05 C9 96 E6 61 E0 [18:28:11]Write to MH i2c: E2 0D 00 C5 04 80 0D 02 02 05 00 C9 96 E6 61 E0 00 00 D3 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 03 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [18:28:11]RAPDU: 90 00 [18:28:11]wFMCommunicate OK [18:28:11]wFMCommunicate request_size=4 [18:28:11]MH_SAM_APDU [18:28:11]CAPDU: 80 0D 03 02 [18:28:11]Write to MH i2c: E2 08 00 C6 04 80 0D 03 02 00 00 00 00 45 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 0B 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 0B 00 C6 04 00 F5 5A 99 FD EB 59 4B 6D 90 00 27 [18:28:11]RAPDU: F5 5A 99 FD EB 59 4B 6D 90 00 [18:28:11]wFMCommunicate OK [18:28:11]SAM_PROTO_SignData done [18:28:11]FM_MakeSignedData done [18:28:11]CreateOFDProtocolMessage [18:28:11]wFMCommunicate request_size=4 [18:28:11]MH_SAM_APDU [18:28:11]CAPDU: 80 11 00 00 [18:28:11]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 17 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [18:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:28:11]wFMCommunicate OK [18:28:11]CreateOFDProtocolMessage done [18:28:11]OFDSenderStorePacket 192374 [18:28:11]StoreOFDPacket docnum=192374 [18:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 F2 07 01 6B 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 3A 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EF 02 00 35 04 06 00 4D C9 96 E6 61 E0 F5 5A 99 FD EB 59 4B 6D [18:28:11]CheckFolder [18:28:11]dirname=/storage/ofd_packets [18:28:11]CheckFolder done [18:28:11]ProducePacketName [18:28:11]name=ofd_packets/00192374 [18:28:11]NVStorageSaveData ofd_packets/00192374 [18:28:11]File name is /storage/ofd_packets/00192374 [18:28:11]Write 301 bytes [18:28:11]NVStorageSaveData done [18:28:11]OFDSenderStorePacket done [18:28:11]KKMCreateOFDPacket done [18:28:11]NVStorageSaveData kkm_last_timestamp [18:28:11]File name is /storage/kkm_last_timestamp [18:28:11]Write 4 bytes [18:28:11]NVStorageSaveData done [18:28:11]ExternCall_PrintAddStr [18:28:11]wPrintStart [18:28:11]Write to MH i2c: 01 00 00 C8 04 CC [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 07 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [18:28:11]RasterBufferAndPrint [18:28:11]line Счет N : (1)31691 [18:28:11]line ИНН: 02508201610067 [18:28:11]line Контрольно-Кассовый Чек [18:28:11]line ПРОДАЖА [18:28:11]line ТРК (МРК, ГНК) : 12 [18:28:11]line Товар: 2710124130 [18:28:11]line Аи-92-К-5 [18:28:11]line 11.960 * 66.90 [18:28:11]line = 800.12 [18:28:11]line НДС 12% НСП 1% [18:28:11]line > о реализуемом товаре [18:28:11]line ОКРУГЛЕНИЕ: -0.12 [18:28:11]line ИТОГО: 800.00 [18:28:11]line Внесено: 800.00 [18:28:11]line СДАЧА: 0.00 [18:28:11]line НСП 1% : 7.08 [18:28:11]line НДС 12% : 84.97 [18:28:11]line Наличными: 800.00 [18:28:11]line Безнал.: 0.00 [18:28:11]line Место: АЗС № 170 "Партнер Нефть" [18:28:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:28:11]line СНО: Общий режим [18:28:11]line Чек 406 27.10.2024 18:28 [18:28:11]line Смена: 542 ФФД: 1.0 [18:28:11]line ЗНМ: 0300000110 [18:28:11]line РНМ: 0000000000091776 [18:28:11]line Версия ККМ: 001 [18:28:11]line ФМ: 0000000000871754 [18:28:11]line ФД: 192374 [18:28:11]line ФПД: 85528215445984 [18:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192374&fm=85528215445984&tin=02508201610067®Number=0000000000091776&sum=80000 [18:28:11]OFD Sender: Processing packet 192374 [packets to send 75, broken 74] [18:28:11]ProducePacketName [18:28:11]name=ofd_packets/00192374 [18:28:11]OFD Sender: To server: pG, [18:28:11]CommunicateWithHost lk.salyk.kg:30040 [18:28:11]ConnectInit lk.salyk.kg [18:28:11]written 0, free lines is 4095 [18:28:11]Connected sock=10 [18:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 F2 07 01 6B 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 3A 86 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EF 02 00 35 04 06 00 4D C9 96 E6 61 E0 F5 5A 99 FD EB 59 4B 6D [18:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 DB 47 00 39 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 EF 02 00 F4 03 04 00 01 2B 1E 67 B6 04 01 00 00 C7 1C 7D 56 D9 93 5C 8C [18:28:11]CommunicateWithHost err = 0 [18:28:11]CheckOFDResponse [18:28:11]1017 (14) - 77093643461234 [18:28:11]1041 (16) - 0000000000871754 [18:28:11]1040 (4) - 192374 [18:28:11]1012 (4) - 27.10.2024 11:58 [18:28:11]1206 (1) - 0 [18:28:11]OFD Sender: Remove packet 192374 [18:28:11]ProducePacketName [18:28:11]name=ofd_packets/00192374 [18:28:11]NVStorageDeleteData [18:28:11]Write to MH i2c: 01 00 00 F3 04 F7 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 07 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 C2 0C CC [18:28:11]RasterBufferAndPrint [18:28:11]line [18:28:11]line [18:28:11]line [18:28:11]line [18:28:11]line [18:28:11]written 0, free lines is 3272 [18:28:12]MH_Cut [18:28:12]Write to MH i2c: D1 01 00 FA 04 01 D0 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: D1 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: D1 01 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: D1 01 00 FA 04 00 CF [18:28:12]Write to MH i2c: 01 00 00 FB 04 FF [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]OFD Sender: No OFD packet to send [18:28:12]*** Cut start [18:28:12]*** Partial cut [18:28:12]*** CUTSNS_PIN = 1 [18:28:12]*** CUTSNS_PIN = 0 [18:28:13]*** Brake cut motor [18:28:13]Read from MH i2c: 01 [18:28:13]MH_I2C_Read... [18:28:13]*** Stop cut motor [18:28:13]*** Cut end [18:28:13]Read from MH i2c: 01 07 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [18:28:13]process_action close_receipt done [18:28:13]requested_data is exist [18:28:13]produce_requested_data [18:28:13]requested_item fm.sn is exist - process it [18:28:13]wFMCommunicate request_size=4 [18:28:13]MH_SAM_APDU [18:28:13]CAPDU: 80 11 00 00 [18:28:13]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [18:28:13]Write i2c OK [18:28:13]MH_I2C_Read... [18:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:13]Read from MH i2c: E2 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 17 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [18:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:28:13]wFMCommunicate OK [18:28:13]requested_item fd.num is exist - process it [18:28:13]SAM_PROTO_GetFieldsCounters [18:28:13]wFMCommunicate request_size=4 [18:28:13]MH_SAM_APDU [18:28:13]CAPDU: 80 13 00 00 [18:28:13]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [18:28:13]Write i2c OK [18:28:13]MH_I2C_Read... [18:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:13]Read from MH i2c: E2 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 62 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:28:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:13]wFMCommunicate OK [18:28:13]SAM_PROTO_GetFieldsCounters done [18:28:13]requested_item shift.num is exist - process it [18:28:13]requested_item shift.opened is exist - process it [18:28:13]req_shift_opened [18:28:13]FM_GetShiftState [18:28:13]SAM_PROTO_GetShiftState [18:28:13]wFMCommunicate request_size=4 [18:28:13]MH_SAM_APDU [18:28:13]CAPDU: 80 13 01 00 [18:28:13]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [18:28:13]Write i2c OK [18:28:13]MH_I2C_Read... [18:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:13]Read from MH i2c: E2 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [18:28:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:28:13]wFMCommunicate OK [18:28:13]SAM_PROTO_GetShiftState done [18:28:13]FM_GetShiftState done [18:28:13]req_shift_opened done [18:28:13]requested_item shift.open_date is exist - process it [18:28:13]req_shift_open_date [18:28:13]req_shift_open_date done [18:28:13]produce_requested_data done [18:28:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192374,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:28:13]process_action_free close_receipt [18:28:13]json_value_free [18:28:13]json_value_free done [18:28:13]process_json_proto returns [18:28:13]Send response to host [18:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192374,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:28:13]free response buf [18:28:13]execute_script done [18:28:13]execute_script returns [18:28:13]free content buf [18:28:13]Sock 9.Close socket [18:28:13]Sock 9.Thread stoped [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:37]accept exits with 7 [18:31:37]New connection [18:31:37]New thread 3066563940 created [18:31:37]Thread 3066707300 joined [18:31:37]Waiting for new connection... [18:31:37] Sock 7.Parse request [18:31:37]Sock 7.Check first char [18:31:37]Sock 7.First char is OK [18:31:37]request: POST /json_proto HTTP/1.0 [18:31:37]Method: POST [18:31:37]URL: /json_proto [18:31:37]Method is POST - this is cgi request [18:31:37]url: /json_proto [18:31:37]query_string will be loaded in cgi processing [18:31:37]execute_cgi json_proto POST (null) [18:31:37]execute_cgi path=json_proto method=POST [18:31:37]POST find Content-Length [18:31:37]Host: 172.17.63.131:8080 [18:31:37]Content-Length: 677 [18:31:37]Content-Type: application/json [18:31:37] [18:31:37]POST finish read [18:31:37]Found Content-Length = 677 [18:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:37]execute_script... [18:31:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:37]POST & json_proto [18:31:37]process_json_proto [18:31:37]json parsed OK: [18:31:37]protocol is kg_v1.0 [18:31:37]action value=close_receipt [18:31:37]process_action close_receipt [18:31:37]cmd_close_receipt [18:31:37]MH_GetDate [18:31:37]Write to MH i2c: F0 00 00 FF 04 F2 [18:31:37]Write i2c OK [18:31:37]MH_I2C_Read... [18:31:37]Read from MH i2c: F0 [18:31:37]MH_I2C_Read... [18:31:37]Read from MH i2c: F0 09 00 [18:31:37]MH_I2C_Read... [18:31:37]Read from MH i2c: F0 09 00 FF 04 00 0A 87 1E 67 22 05 6E 64 0A [18:31:37]GetLastDocTimeStamp 1730053690 [18:31:37]current date 1730053898 [18:31:37]FM_GetShiftState [18:31:37]SAM_PROTO_GetShiftState [18:31:37]wFMCommunicate request_size=4 [18:31:37]MH_SAM_APDU [18:31:37]CAPDU: 80 13 01 00 [18:31:37]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [18:31:37]Write i2c OK [18:31:37]MH_I2C_Read... [18:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:38]Read from MH i2c: E2 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: E2 0E 00 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C3 [18:31:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:31:38]wFMCommunicate OK [18:31:38]SAM_PROTO_GetShiftState done [18:31:38]FM_GetShiftState done [18:31:38]opened in 1729989159 [18:31:38]opened+sec_in_day 1730075559 [18:31:38]quantity*price = 70044 [18:31:38]sum+1 = 70045 [18:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 407 27.10.2024 18:31 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192375 ФПД: 194484605767945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192375&fm=194484605767945&tin=02508201610067®Number=0000000000091776&sum=70000 [18:31:39]StoreToDocumentArchive [18:31:39]shift 542 fd 192375 [18:31:39]save to /storage/0542/doc_00192375 [18:31:39]save last doc name /storage/0542/doc_00192375 to /storage/kkm_last_doc_name [18:31:39]save OK [18:31:39]Clear old archive folders... [18:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:39]tlvbuf is B6E857C0 [18:31:39]SAM_PROTO_ClearQueue [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 09 00 00 [18:31:39]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [18:31:39]RAPDU: 90 00 [18:31:39]wFMCommunicate OK [18:31:39]SAM_PROTO_ClearQueue done [18:31:39]KKMCreateOFDPacket [18:31:39]OFDProtocolAddRootSTLVToBuf [18:31:39]FM_MakeSignedData [18:31:39]FM_MakeSignedData [18:31:39]SAM_PROTO_SignData [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 0D 01 02 [18:31:39]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [18:31:39]RAPDU: 90 00 [18:31:39]wFMCommunicate OK [18:31:39]wFMCommunicate request_size=255 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0B 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EF 02 00 35 04 06 00 B0 [18:31:39]Write to MH i2c: E2 02 01 0F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0B 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EF 02 00 35 04 06 00 B0 00 00 17 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [18:31:39]RAPDU: 90 00 [18:31:39]wFMCommunicate OK [18:31:39]wFMCommunicate request_size=10 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 0D 02 02 05 E1 F9 D7 51 09 [18:31:39]Write to MH i2c: E2 0D 00 10 05 80 0D 02 02 05 00 E1 F9 D7 51 09 00 00 A4 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [18:31:39]RAPDU: 90 00 [18:31:39]wFMCommunicate OK [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 0D 03 02 [18:31:39]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0B 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0B 00 11 05 00 52 5E DD 28 C8 5E 98 02 90 00 07 [18:31:39]RAPDU: 52 5E DD 28 C8 5E 98 02 90 00 [18:31:39]wFMCommunicate OK [18:31:39]SAM_PROTO_SignData done [18:31:39]FM_MakeSignedData done [18:31:39]CreateOFDProtocolMessage [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 11 00 00 [18:31:39]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 17 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [18:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:39]wFMCommunicate OK [18:31:39]CreateOFDProtocolMessage done [18:31:39]OFDSenderStorePacket 192375 [18:31:39]StoreOFDPacket docnum=192375 [18:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 E7 07 01 C5 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0B 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EF 02 00 35 04 06 00 B0 E1 F9 D7 51 09 52 5E DD 28 C8 5E 98 02 [18:31:39]CheckFolder [18:31:39]dirname=/storage/ofd_packets [18:31:39]CheckFolder done [18:31:39]ProducePacketName [18:31:39]name=ofd_packets/00192375 [18:31:39]NVStorageSaveData ofd_packets/00192375 [18:31:39]File name is /storage/ofd_packets/00192375 [18:31:39]Write 301 bytes [18:31:39]NVStorageSaveData done [18:31:39]OFDSenderStorePacket done [18:31:39]KKMCreateOFDPacket done [18:31:39]NVStorageSaveData kkm_last_timestamp [18:31:39]File name is /storage/kkm_last_timestamp [18:31:39]Write 4 bytes [18:31:39]NVStorageSaveData done [18:31:39]ExternCall_PrintAddStr [18:31:39]wPrintStart [18:31:39]Write to MH i2c: 01 00 00 13 05 18 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: 01 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: 01 07 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [18:31:39]RasterBufferAndPrint [18:31:39]line Счет N : (1)31692 [18:31:39]line ИНН: 02508201610067 [18:31:39]line Контрольно-Кассовый Чек [18:31:39]line ПРОДАЖА [18:31:39]line ТРК (МРК, ГНК) : 21 [18:31:39]line Товар: 2710124130 [18:31:39]line Аи-92-К-5 [18:31:39]line 10.470 * 66.90 [18:31:39]line = 700.44 [18:31:39]line НДС 12% НСП 1% [18:31:39]line > о реализуемом товаре [18:31:39]line ОКРУГЛЕНИЕ: -0.44 [18:31:39]line ИТОГО: 700.00 [18:31:39]line Внесено: 700.00 [18:31:39]line СДАЧА: 0.00 [18:31:39]line НСП 1% : 6.20 [18:31:39]line НДС 12% : 74.38 [18:31:39]line Наличными: 700.00 [18:31:39]line Безнал.: 0.00 [18:31:39]line Место: АЗС № 170 "Партнер Нефть" [18:31:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:31:39]line СНО: Общий режим [18:31:39]line Чек 407 27.10.2024 18:31 [18:31:39]line Смена: 542 ФФД: 1.0 [18:31:39]line ЗНМ: 0300000110 [18:31:39]line РНМ: 0000000000091776 [18:31:39]line Версия ККМ: 001 [18:31:39]line ФМ: 0000000000871754 [18:31:39]line ФД: 192375 [18:31:39]line ФПД: 194484605767945 [18:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192375&fm=194484605767945&tin=02508201610067®Number=0000000000091776&sum=70000 [18:31:39]written 0, free lines is 4095 [18:31:39]OFD Sender: Processing packet 192375 [packets to send 75, broken 74] [18:31:39]ProducePacketName [18:31:39]name=ofd_packets/00192375 [18:31:39]OFD Sender: To server: pG, [18:31:39]CommunicateWithHost lk.salyk.kg:30040 [18:31:39]ConnectInit lk.salyk.kg [18:31:39]Connected sock=10 [18:31:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 E7 07 01 C5 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0B 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EF 02 00 35 04 06 00 B0 E1 F9 D7 51 09 52 5E DD 28 C8 5E 98 02 [18:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B E8 47 00 15 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 EF 02 00 F4 03 04 00 D1 2B 1E 67 B6 04 01 00 00 55 50 E6 62 97 B9 1F 9C [18:31:40]CommunicateWithHost err = 0 [18:31:40]CheckOFDResponse [18:31:40]1017 (14) - 77093643461234 [18:31:40]1041 (16) - 0000000000871754 [18:31:40]1040 (4) - 192375 [18:31:40]1012 (4) - 27.10.2024 12:02 [18:31:40]1206 (1) - 0 [18:31:40]OFD Sender: Remove packet 192375 [18:31:40]ProducePacketName [18:31:40]name=ofd_packets/00192375 [18:31:40]NVStorageDeleteData [18:31:40]Write to MH i2c: 01 00 00 3E 05 43 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 07 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 AF 0C 05 [18:31:40]RasterBufferAndPrint [18:31:40]line [18:31:40]line [18:31:40]line [18:31:40]line [18:31:40]line [18:31:40]written 0, free lines is 3254 [18:31:40]MH_Cut [18:31:40]Write to MH i2c: D1 01 00 45 05 01 1C [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: D1 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: D1 01 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: D1 01 00 45 05 00 1B [18:31:40]Write to MH i2c: 01 00 00 46 05 4B [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]OFD Sender: No OFD packet to send [18:31:41]*** Cut start [18:31:41]*** Partial cut [18:31:41]*** CUTSNS_PIN = 1 [18:31:41]*** CUTSNS_PIN = 0 [18:31:41]*** Brake cut motor [18:31:41]Read from MH i2c: 01 [18:31:41]MH_I2C_Read... [18:31:41]*** Stop cut motor [18:31:41]*** Cut end [18:31:41]Read from MH i2c: 01 07 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [18:31:41]process_action close_receipt done [18:31:41]requested_data is exist [18:31:41]produce_requested_data [18:31:41]requested_item fm.sn is exist - process it [18:31:41]wFMCommunicate request_size=4 [18:31:41]MH_SAM_APDU [18:31:41]CAPDU: 80 11 00 00 [18:31:41]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:41]Read from MH i2c: E2 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 17 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [18:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:41]wFMCommunicate OK [18:31:41]requested_item fd.num is exist - process it [18:31:41]SAM_PROTO_GetFieldsCounters [18:31:41]wFMCommunicate request_size=4 [18:31:41]MH_SAM_APDU [18:31:41]CAPDU: 80 13 00 00 [18:31:41]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:41]Read from MH i2c: E2 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 62 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [18:31:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:41]wFMCommunicate OK [18:31:41]SAM_PROTO_GetFieldsCounters done [18:31:41]requested_item shift.num is exist - process it [18:31:41]requested_item shift.opened is exist - process it [18:31:41]req_shift_opened [18:31:41]FM_GetShiftState [18:31:41]SAM_PROTO_GetShiftState [18:31:41]wFMCommunicate request_size=4 [18:31:41]MH_SAM_APDU [18:31:41]CAPDU: 80 13 01 00 [18:31:41]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:41]Read from MH i2c: E2 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 0E 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [18:31:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:31:41]wFMCommunicate OK [18:31:41]SAM_PROTO_GetShiftState done [18:31:41]FM_GetShiftState done [18:31:41]req_shift_opened done [18:31:41]requested_item shift.open_date is exist - process it [18:31:41]req_shift_open_date [18:31:41]req_shift_open_date done [18:31:41]produce_requested_data done [18:31:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192375,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:31:41]process_action_free close_receipt [18:31:41]json_value_free [18:31:41]json_value_free done [18:31:41]process_json_proto returns [18:31:41]Send response to host [18:31:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192375,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:31:41]free response buf [18:31:41]execute_script done [18:31:41]execute_script returns [18:31:41]free content buf [18:31:41]Sock 7.Close socket [18:31:41]Sock 7.Thread stoped [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:43]accept exits with 9 [18:33:43]New connection [18:33:43]New thread 3066707300 created [18:33:43]Thread 3066563940 joined [18:33:43]Waiting for new connection... [18:33:43] Sock 9.Parse request [18:33:43]Sock 9.Check first char [18:33:43]Sock 9.First char is OK [18:33:43]request: POST /json_proto HTTP/1.0 [18:33:43]Method: POST [18:33:43]URL: /json_proto [18:33:43]Method is POST - this is cgi request [18:33:43]url: /json_proto [18:33:43]query_string will be loaded in cgi processing [18:33:43]execute_cgi json_proto POST (null) [18:33:43]execute_cgi path=json_proto method=POST [18:33:43]POST find Content-Length [18:33:43]Host: 172.17.63.131:8080 [18:33:43]Content-Length: 676 [18:33:43]Content-Type: application/json [18:33:43] [18:33:43]POST finish read [18:33:43]Found Content-Length = 676 [18:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:43]execute_script... [18:33: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)31693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:43]POST & json_proto [18:33:43]process_json_proto [18:33:43]json parsed OK: [18:33:43]protocol is kg_v1.0 [18:33:43]action value=close_receipt [18:33:43]process_action close_receipt [18:33:43]cmd_close_receipt [18:33:43]MH_GetDate [18:33:43]Write to MH i2c: F0 00 00 4A 05 3E [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: F0 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: F0 09 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: F0 09 00 4A 05 00 88 87 1E 67 22 05 6E 64 D4 [18:33:43]GetLastDocTimeStamp 1730053899 [18:33:43]current date 1730054024 [18:33:43]FM_GetShiftState [18:33:43]SAM_PROTO_GetShiftState [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 13 01 00 [18:33:43]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0E 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0E [18:33:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:33:43]wFMCommunicate OK [18:33:43]SAM_PROTO_GetShiftState done [18:33:43]FM_GetShiftState done [18:33:43]opened in 1729989159 [18:33:43]opened+sec_in_day 1730075559 [18:33:43]quantity*price = 10035 [18:33:43]sum+1 = 10036 [18:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 408 27.10.2024 18:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192376 ФПД: 145596817848551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192376&fm=145596817848551&tin=02508201610067®Number=0000000000091776&sum=10000 [18:33:44]StoreToDocumentArchive [18:33:44]shift 542 fd 192376 [18:33:44]save to /storage/0542/doc_00192376 [18:33:44]save last doc name /storage/0542/doc_00192376 to /storage/kkm_last_doc_name [18:33:44]save OK [18:33:44]Clear old archive folders... [18:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:44]tlvbuf is 019CF340 [18:33:44]SAM_PROTO_ClearQueue [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 09 00 00 [18:33:44]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_ClearQueue done [18:33:44]KKMCreateOFDPacket [18:33:44]OFDProtocolAddRootSTLVToBuf [18:33:44]FM_MakeSignedData [18:33:44]FM_MakeSignedData [18:33:44]SAM_PROTO_SignData [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 0D 01 02 [18:33:44]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]wFMCommunicate request_size=255 [18:33:44]MH_SAM_APDU [18:33: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 88 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EF 02 00 35 04 06 00 84 [18:33:44]Write to MH i2c: E2 02 01 5A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 88 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EF 02 00 35 04 06 00 84 00 00 8C [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [18:33:45]RAPDU: 90 00 [18:33:45]wFMCommunicate OK [18:33:45]wFMCommunicate request_size=10 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 0D 02 02 05 6B 66 9B B8 E7 [18:33:45]Write to MH i2c: E2 0D 00 5B 05 80 0D 02 02 05 00 6B 66 9B B8 E7 00 00 EF [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [18:33:45]RAPDU: 90 00 [18:33:45]wFMCommunicate OK [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 0D 03 02 [18:33:45]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0B 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0B 00 5C 05 00 DF 0C 88 39 7C 54 7A E5 90 00 B8 [18:33:45]RAPDU: DF 0C 88 39 7C 54 7A E5 90 00 [18:33:45]wFMCommunicate OK [18:33:45]SAM_PROTO_SignData done [18:33:45]FM_MakeSignedData done [18:33:45]CreateOFDProtocolMessage [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 11 00 00 [18:33:45]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 17 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [18:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:33:45]wFMCommunicate OK [18:33:45]CreateOFDProtocolMessage done [18:33:45]OFDSenderStorePacket 192376 [18:33:45]StoreOFDPacket docnum=192376 [18:33:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 02 07 01 94 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 88 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EF 02 00 35 04 06 00 84 6B 66 9B B8 E7 DF 0C 88 39 7C 54 7A E5 [18:33:45]CheckFolder [18:33:45]dirname=/storage/ofd_packets [18:33:45]CheckFolder done [18:33:45]ProducePacketName [18:33:45]name=ofd_packets/00192376 [18:33:45]NVStorageSaveData ofd_packets/00192376 [18:33:45]File name is /storage/ofd_packets/00192376 [18:33:45]Write 301 bytes [18:33:45]NVStorageSaveData done [18:33:45]OFDSenderStorePacket done [18:33:45]KKMCreateOFDPacket done [18:33:45]NVStorageSaveData kkm_last_timestamp [18:33:45]File name is /storage/kkm_last_timestamp [18:33:45]Write 4 bytes [18:33:45]NVStorageSaveData done [18:33:45]ExternCall_PrintAddStr [18:33:45]wPrintStart [18:33:45]Write to MH i2c: 01 00 00 5E 05 63 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 07 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [18:33:45]RasterBufferAndPrint [18:33:45]line Счет N : (1)31693 [18:33:45]line ИНН: 02508201610067 [18:33:45]line Контрольно-Кассовый Чек [18:33:45]line ПРОДАЖА [18:33:45]line ТРК (МРК, ГНК) : 21 [18:33:45]line Товар: 2710124130 [18:33:45]line Аи-92-К-5 [18:33:45]line 1.500 * 66.90 [18:33:45]line = 100.35 [18:33:45]line НДС 12% НСП 1% [18:33:45]line > о реализуемом товаре [18:33:45]line ОКРУГЛЕНИЕ: -0.35 [18:33:45]line ИТОГО: 100.00 [18:33:45]line Внесено: 100.00 [18:33:45]line СДАЧА: 0.00 [18:33:45]line НСП 1% : 0.89 [18:33:45]line НДС 12% : 10.66 [18:33:45]line Наличными: 100.00 [18:33:45]line Безнал.: 0.00 [18:33:45]line Место: АЗС № 170 "Партнер Нефть" [18:33:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:33:45]line СНО: Общий режим [18:33:45]line Чек 408 27.10.2024 18:33 [18:33:45]line Смена: 542 ФФД: 1.0 [18:33:45]line ЗНМ: 0300000110 [18:33:45]line РНМ: 0000000000091776 [18:33:45]line Версия ККМ: 001 [18:33:45]line ФМ: 0000000000871754 [18:33:45]line ФД: 192376 [18:33:45]line ФПД: 145596817848551 [18:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192376&fm=145596817848551&tin=02508201610067®Number=0000000000091776&sum=10000 [18:33:45]OFD Sender: Processing packet 192376 [packets to send 75, broken 74] [18:33:45]ProducePacketName [18:33:45]name=ofd_packets/00192376 [18:33:45]OFD Sender: To server: pG, [18:33:45]CommunicateWithHost lk.salyk.kg:30040 [18:33:45]ConnectInit lk.salyk.kg [18:33:45]written 0, free lines is 4095 [18:33:45]Connected sock=10 [18:33:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 02 07 01 94 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 88 87 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EF 02 00 35 04 06 00 84 6B 66 9B B8 E7 DF 0C 88 39 7C 54 7A E5 [18:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 E7 47 00 A9 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 EF 02 00 F4 03 04 00 4F 2C 1E 67 B6 04 01 00 00 0D 4C C2 BB F2 8A F8 13 [18:33:45]CommunicateWithHost err = 0 [18:33:45]CheckOFDResponse [18:33:45]1017 (14) - 77093643461234 [18:33:45]1041 (16) - 0000000000871754 [18:33:45]1040 (4) - 192376 [18:33:45]1012 (4) - 27.10.2024 12:04 [18:33:45]1206 (1) - 0 [18:33:45]OFD Sender: Remove packet 192376 [18:33:45]ProducePacketName [18:33:45]name=ofd_packets/00192376 [18:33:45]NVStorageDeleteData [18:33:46]Write to MH i2c: 01 00 00 89 05 8E [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 AA 0C 4B [18:33:46]RasterBufferAndPrint [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]written 0, free lines is 3248 [18:33:46]MH_Cut [18:33:46]Write to MH i2c: D1 01 00 90 05 01 67 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 01 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 01 00 90 05 00 66 [18:33:46]Write to MH i2c: 01 00 00 91 05 96 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]OFD Sender: No OFD packet to send [18:33:46]*** Cut start [18:33:46]*** Partial cut [18:33:46]*** CUTSNS_PIN = 1 [18:33:46]*** CUTSNS_PIN = 0 [18:33:47]*** Brake cut motor [18:33:47]Read from MH i2c: 01 [18:33:47]MH_I2C_Read... [18:33:47]*** Stop cut motor [18:33:47]*** Cut end [18:33:47]Read from MH i2c: 01 07 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [18:33:47]process_action close_receipt done [18:33:47]requested_data is exist [18:33:47]produce_requested_data [18:33:47]requested_item fm.sn is exist - process it [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 11 00 00 [18:33:47]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 17 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [18:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:33:47]wFMCommunicate OK [18:33:47]requested_item fd.num is exist - process it [18:33:47]SAM_PROTO_GetFieldsCounters [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 13 00 00 [18:33:47]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 62 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_GetFieldsCounters done [18:33:47]requested_item shift.num is exist - process it [18:33:47]requested_item shift.opened is exist - process it [18:33:47]req_shift_opened [18:33:47]FM_GetShiftState [18:33:47]SAM_PROTO_GetShiftState [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 13 01 00 [18:33:47]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0E 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [18:33:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_GetShiftState done [18:33:47]FM_GetShiftState done [18:33:47]req_shift_opened done [18:33:47]requested_item shift.open_date is exist - process it [18:33:47]req_shift_open_date [18:33:47]req_shift_open_date done [18:33:47]produce_requested_data done [18:33:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192376,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:33:47]process_action_free close_receipt [18:33:47]json_value_free [18:33:47]json_value_free done [18:33:47]process_json_proto returns [18:33:47]Send response to host [18:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192376,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:33:47]free response buf [18:33:47]execute_script done [18:33:47]execute_script returns [18:33:47]free content buf [18:33:47]Sock 9.Close socket [18:33:47]Sock 9.Thread stoped [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:38]accept exits with 7 [18:36:38]New connection [18:36:38]New thread 3066563940 created [18:36:38]Thread 3066707300 joined [18:36:38]Waiting for new connection... [18:36:38] Sock 7.Parse request [18:36:38]Sock 7.Check first char [18:36:38]Sock 7.First char is OK [18:36:38]request: POST /json_proto HTTP/1.0 [18:36:38]Method: POST [18:36:38]URL: /json_proto [18:36:38]Method is POST - this is cgi request [18:36:38]url: /json_proto [18:36:38]query_string will be loaded in cgi processing [18:36:38]execute_cgi json_proto POST (null) [18:36:38]execute_cgi path=json_proto method=POST [18:36:38]POST find Content-Length [18:36:38]Host: 172.17.63.131:8080 [18:36:38]Content-Length: 681 [18:36:38]Content-Type: application/json [18:36:38] [18:36:38]POST finish read [18:36:38]Found Content-Length = 681 [18:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:38]execute_script... [18: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 : (1)31694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:38]POST & json_proto [18:36:38]process_json_proto [18:36:38]json parsed OK: [18:36:38]protocol is kg_v1.0 [18:36:38]action value=close_receipt [18:36:38]process_action close_receipt [18:36:38]cmd_close_receipt [18:36:38]MH_GetDate [18:36:38]Write to MH i2c: F0 00 00 95 05 89 [18:36:38]Write i2c OK [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 09 00 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 09 00 95 05 00 37 88 1E 67 22 05 6E 64 CF [18:36:38]GetLastDocTimeStamp 1730054024 [18:36:38]current date 1730054199 [18:36:38]FM_GetShiftState [18:36:38]SAM_PROTO_GetShiftState [18:36:38]wFMCommunicate request_size=4 [18:36:38]MH_SAM_APDU [18:36:38]CAPDU: 80 13 01 00 [18:36:38]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [18:36:38]Write i2c OK [18:36:38]MH_I2C_Read... [18:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:38]Read from MH i2c: E2 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: E2 0E 00 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 59 [18:36:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:36:38]wFMCommunicate OK [18:36:38]SAM_PROTO_GetShiftState done [18:36:38]FM_GetShiftState done [18:36:38]opened in 1729989159 [18:36:38]opened+sec_in_day 1730075559 [18:36:38]quantity*price = 100015 [18:36:38]sum+1 = 100017 [18:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 409 27.10.2024 18:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192377 ФПД: 276328766328647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192377&fm=276328766328647&tin=02508201610067®Number=0000000000091776&sum=100000 [18:36:39]StoreToDocumentArchive [18:36:39]shift 542 fd 192377 [18:36:39]save to /storage/0542/doc_00192377 [18:36:39]save last doc name /storage/0542/doc_00192377 to /storage/kkm_last_doc_name [18:36:39]save OK [18:36:39]Clear old archive folders... [18:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:39]tlvbuf is 019D54D0 [18:36:39]SAM_PROTO_ClearQueue [18:36:39]wFMCommunicate request_size=4 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 09 00 00 [18:36:39]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [18:36:39]RAPDU: 90 00 [18:36:39]wFMCommunicate OK [18:36:39]SAM_PROTO_ClearQueue done [18:36:39]KKMCreateOFDPacket [18:36:39]OFDProtocolAddRootSTLVToBuf [18:36:39]FM_MakeSignedData [18:36:39]FM_MakeSignedData [18:36:39]SAM_PROTO_SignData [18:36:39]wFMCommunicate request_size=4 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 0D 01 02 [18:36:39]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [18:36:39]RAPDU: 90 00 [18:36:39]wFMCommunicate OK [18:36:39]wFMCommunicate request_size=255 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 37 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EF 02 00 35 04 06 00 FB [18:36:39]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 37 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EF 02 00 35 04 06 00 FB 00 00 13 [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [18:36:39]RAPDU: 90 00 [18:36:39]wFMCommunicate OK [18:36:39]wFMCommunicate request_size=10 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 0D 02 02 05 51 CD F5 4F 47 [18:36:39]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 51 CD F5 4F 47 00 00 D8 [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [18:36:39]RAPDU: 90 00 [18:36:39]wFMCommunicate OK [18:36:39]wFMCommunicate request_size=4 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 0D 03 02 [18:36:39]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 0B 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 0B 00 A7 05 00 C3 A5 EB AE B2 2B F1 A7 90 00 9E [18:36:39]RAPDU: C3 A5 EB AE B2 2B F1 A7 90 00 [18:36:39]wFMCommunicate OK [18:36:39]SAM_PROTO_SignData done [18:36:39]FM_MakeSignedData done [18:36:39]CreateOFDProtocolMessage [18:36:39]wFMCommunicate request_size=4 [18:36:39]MH_SAM_APDU [18:36:39]CAPDU: 80 11 00 00 [18:36:39]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:39]Read from MH i2c: E2 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 17 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [18:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:36:39]wFMCommunicate OK [18:36:39]CreateOFDProtocolMessage done [18:36:39]OFDSenderStorePacket 192377 [18:36:39]StoreOFDPacket docnum=192377 [18:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 D9 07 01 EE 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 37 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EF 02 00 35 04 06 00 FB 51 CD F5 4F 47 C3 A5 EB AE B2 2B F1 A7 [18:36:39]CheckFolder [18:36:39]dirname=/storage/ofd_packets [18:36:39]CheckFolder done [18:36:39]ProducePacketName [18:36:39]name=ofd_packets/00192377 [18:36:39]NVStorageSaveData ofd_packets/00192377 [18:36:39]File name is /storage/ofd_packets/00192377 [18:36:39]Write 301 bytes [18:36:39]NVStorageSaveData done [18:36:39]OFDSenderStorePacket done [18:36:39]KKMCreateOFDPacket done [18:36:39]NVStorageSaveData kkm_last_timestamp [18:36:39]File name is /storage/kkm_last_timestamp [18:36:39]Write 4 bytes [18:36:39]NVStorageSaveData done [18:36:39]ExternCall_PrintAddStr [18:36:39]wPrintStart [18:36:39]Write to MH i2c: 01 00 00 A9 05 AE [18:36:39]Write i2c OK [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: 01 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: 01 07 00 [18:36:39]MH_I2C_Read... [18:36:39]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [18:36:39]RasterBufferAndPrint [18:36:39]line Счет N : (1)31694 [18:36:39]line ИНН: 02508201610067 [18:36:39]line Контрольно-Кассовый Чек [18:36:39]line ПРОДАЖА [18:36:39]line ТРК (МРК, ГНК) : 21 [18:36:39]line Товар: 2710124130 [18:36:39]line Аи-92-К-5 [18:36:39]line 14.950 * 66.90 [18:36:39]line = 1000.16 [18:36:39]line НДС 12% НСП 1% [18:36:39]line > о реализуемом товаре [18:36:39]line ОКРУГЛЕНИЕ: -0.16 [18:36:39]line ИТОГО: 1000.00 [18:36:39]line Внесено: 1000.00 [18:36:39]line СДАЧА: 0.00 [18:36:39]line НСП 1% : 8.85 [18:36:39]line НДС 12% : 106.21 [18:36:39]line Наличными: 1000.00 [18:36:39]line Безнал.: 0.00 [18:36:39]line Место: АЗС № 170 "Партнер Нефть" [18:36:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:36:39]line СНО: Общий режим [18:36:39]line Чек 409 27.10.2024 18:36 [18:36:39]line Смена: 542 ФФД: 1.0 [18:36:39]line ЗНМ: 0300000110 [18:36:39]line РНМ: 0000000000091776 [18:36:39]line Версия ККМ: 001 [18:36:39]line ФМ: 0000000000871754 [18:36:39]line ФД: 192377 [18:36:39]line ФПД: 276328766328647 [18:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192377&fm=276328766328647&tin=02508201610067®Number=0000000000091776&sum=100000 [18:36:40]OFD Sender: Processing packet 192377 [packets to send 75, broken 74] [18:36:40]ProducePacketName [18:36:40]name=ofd_packets/00192377 [18:36:40]OFD Sender: To server: pG, [18:36:40]CommunicateWithHost lk.salyk.kg:30040 [18:36:40]ConnectInit lk.salyk.kg [18:36:40]written 0, free lines is 4095 [18:36:40]Connected sock=10 [18: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 37 35 34 0F 01 00 00 82 D9 07 01 EE 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 37 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 EF 02 00 35 04 06 00 FB 51 CD F5 4F 47 C3 A5 EB AE B2 2B F1 A7 [18: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 37 35 34 4F 00 00 00 2E 20 47 00 B4 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 37 35 34 10 04 04 00 79 EF 02 00 F4 03 04 00 FD 2C 1E 67 B6 04 01 00 00 AE 07 BE 87 80 19 27 3F [18:36:40]CommunicateWithHost err = 0 [18:36:40]CheckOFDResponse [18:36:40]1017 (14) - 77093643461234 [18:36:40]1041 (16) - 0000000000871754 [18:36:40]1040 (4) - 192377 [18:36:40]1012 (4) - 27.10.2024 12:07 [18:36:40]1206 (1) - 0 [18:36:40]OFD Sender: Remove packet 192377 [18:36:40]ProducePacketName [18:36:40]name=ofd_packets/00192377 [18:36:40]NVStorageDeleteData [18:36:40]Write to MH i2c: 01 00 00 D4 05 D9 [18:36:40]Write i2c OK [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: 01 [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: 01 07 00 [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 B6 0C A2 [18:36:40]RasterBufferAndPrint [18:36:40]line [18:36:40]line [18:36:40]line [18:36:40]line [18:36:40]line [18:36:40]written 0, free lines is 3260 [18:36:40]MH_Cut [18:36:40]Write to MH i2c: D1 01 00 DB 05 01 B2 [18:36:40]Write i2c OK [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: D1 [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: D1 01 00 [18:36:40]MH_I2C_Read... [18:36:40]Read from MH i2c: D1 01 00 DB 05 00 B1 [18:36:40]Write to MH i2c: 01 00 00 DC 05 E1 [18:36:40]Write i2c OK [18:36:40]MH_I2C_Read... [18:36:40]OFD Sender: No OFD packet to send [18:36:41]*** Cut start [18:36:41]*** Partial cut [18:36:41]*** CUTSNS_PIN = 1 [18:36:41]*** CUTSNS_PIN = 0 [18:36:41]*** Brake cut motor [18:36:42]Read from MH i2c: 01 [18:36:42]MH_I2C_Read... [18:36:42]*** Stop cut motor [18:36:42]*** Cut end [18:36:42]Read from MH i2c: 01 07 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [18:36:42]process_action close_receipt done [18:36:42]requested_data is exist [18:36:42]produce_requested_data [18:36:42]requested_item fm.sn is exist - process it [18:36:42]wFMCommunicate request_size=4 [18:36:42]MH_SAM_APDU [18:36:42]CAPDU: 80 11 00 00 [18:36:42]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:42]Read from MH i2c: E2 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 17 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [18:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:36:42]wFMCommunicate OK [18:36:42]requested_item fd.num is exist - process it [18:36:42]SAM_PROTO_GetFieldsCounters [18:36:42]wFMCommunicate request_size=4 [18:36:42]MH_SAM_APDU [18:36:42]CAPDU: 80 13 00 00 [18:36:42]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:42]Read from MH i2c: E2 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 62 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [18: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:42]wFMCommunicate OK [18:36:42]SAM_PROTO_GetFieldsCounters done [18:36:42]requested_item shift.num is exist - process it [18:36:42]requested_item shift.opened is exist - process it [18:36:42]req_shift_opened [18:36:42]FM_GetShiftState [18:36:42]SAM_PROTO_GetShiftState [18:36:42]wFMCommunicate request_size=4 [18:36:42]MH_SAM_APDU [18:36:42]CAPDU: 80 13 01 00 [18:36:42]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:42]Read from MH i2c: E2 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A2 [18:36:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:36:42]wFMCommunicate OK [18:36:42]SAM_PROTO_GetShiftState done [18:36:42]FM_GetShiftState done [18:36:42]req_shift_opened done [18:36:42]requested_item shift.open_date is exist - process it [18:36:42]req_shift_open_date [18:36:42]req_shift_open_date done [18:36:42]produce_requested_data done [18:36:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192377,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:36:42]process_action_free close_receipt [18:36:42]json_value_free [18:36:42]json_value_free done [18:36:42]process_json_proto returns [18:36:42]Send response to host [18:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192377,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:36:42]free response buf [18:36:42]execute_script done [18:36:42]execute_script returns [18:36:42]free content buf [18:36:42]Sock 7.Close socket [18:36:42]Sock 7.Thread stoped [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:05]accept exits with 9 [18:37:05]New connection [18:37:05]New thread 3066707300 created [18:37:05]Thread 3066563940 joined [18:37:05]Waiting for new connection... [18:37:05] Sock 9.Parse request [18:37:05]Sock 9.Check first char [18:37:05]Sock 9.First char is OK [18:37:05]request: POST /json_proto HTTP/1.0 [18:37:05]Method: POST [18:37:05]URL: /json_proto [18:37:05]Method is POST - this is cgi request [18:37:05]url: /json_proto [18:37:05]query_string will be loaded in cgi processing [18:37:05]execute_cgi json_proto POST (null) [18:37:05]execute_cgi path=json_proto method=POST [18:37:05]POST find Content-Length [18:37:05]Host: 172.17.63.131:8080 [18:37:05]Content-Length: 676 [18:37:05]Content-Type: application/json [18:37:05] [18:37:05]POST finish read [18:37:05]Found Content-Length = 676 [18:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:05]execute_script... [18:37: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)31695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:05]POST & json_proto [18:37:05]process_json_proto [18:37:05]json parsed OK: [18:37:05]protocol is kg_v1.0 [18:37:05]action value=close_receipt [18:37:05]process_action close_receipt [18:37:05]cmd_close_receipt [18:37:05]MH_GetDate [18:37:05]Write to MH i2c: F0 00 00 E0 05 D4 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: F0 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: F0 09 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: F0 09 00 E0 05 00 53 88 1E 67 22 05 6E 64 36 [18:37:05]GetLastDocTimeStamp 1730054199 [18:37:05]current date 1730054227 [18:37:05]FM_GetShiftState [18:37:05]SAM_PROTO_GetShiftState [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 13 01 00 [18:37:05]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:06]Read from MH i2c: E2 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: E2 0E 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A4 [18:37:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:37:06]wFMCommunicate OK [18:37:06]SAM_PROTO_GetShiftState done [18:37:06]FM_GetShiftState done [18:37:06]opened in 1729989159 [18:37:06]opened+sec_in_day 1730075559 [18:37:06]quantity*price = 30038 [18:37:06]sum+1 = 30039 [18:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 410 27.10.2024 18:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192378 ФПД: 206796826052218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192378&fm=206796826052218&tin=02508201610067®Number=0000000000091776&sum=30000 [18:37:07]StoreToDocumentArchive [18:37:07]shift 542 fd 192378 [18:37:07]save to /storage/0542/doc_00192378 [18:37:07]save last doc name /storage/0542/doc_00192378 to /storage/kkm_last_doc_name [18:37:07]save OK [18:37:07]Clear old archive folders... [18:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:07]tlvbuf is 0196C530 [18:37:07]SAM_PROTO_ClearQueue [18:37:07]wFMCommunicate request_size=4 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 09 00 00 [18:37:07]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [18:37:07]RAPDU: 90 00 [18:37:07]wFMCommunicate OK [18:37:07]SAM_PROTO_ClearQueue done [18:37:07]KKMCreateOFDPacket [18:37:07]OFDProtocolAddRootSTLVToBuf [18:37:07]FM_MakeSignedData [18:37:07]FM_MakeSignedData [18:37:07]SAM_PROTO_SignData [18:37:07]wFMCommunicate request_size=4 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 0D 01 02 [18:37:07]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [18:37:07]RAPDU: 90 00 [18:37:07]wFMCommunicate OK [18:37:07]wFMCommunicate request_size=255 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 53 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EF 02 00 35 04 06 00 BC [18:37:07]Write to MH i2c: E2 02 01 F0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 53 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EF 02 00 35 04 06 00 BC 00 00 37 [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [18:37:07]RAPDU: 90 00 [18:37:07]wFMCommunicate OK [18:37:07]wFMCommunicate request_size=10 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 0D 02 02 05 14 A3 5B 86 7A [18:37:07]Write to MH i2c: E2 0D 00 F1 05 80 0D 02 02 05 00 14 A3 5B 86 7A 00 00 8C [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [18:37:07]RAPDU: 90 00 [18:37:07]wFMCommunicate OK [18:37:07]wFMCommunicate request_size=4 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 0D 03 02 [18:37:07]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 0B 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 0B 00 F2 05 00 D1 5B 1F A0 CD 63 01 8D 90 00 1C [18:37:07]RAPDU: D1 5B 1F A0 CD 63 01 8D 90 00 [18:37:07]wFMCommunicate OK [18:37:07]SAM_PROTO_SignData done [18:37:07]FM_MakeSignedData done [18:37:07]CreateOFDProtocolMessage [18:37:07]wFMCommunicate request_size=4 [18:37:07]MH_SAM_APDU [18:37:07]CAPDU: 80 11 00 00 [18:37:07]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:07]Read from MH i2c: E2 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 17 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [18:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:37:07]wFMCommunicate OK [18:37:07]CreateOFDProtocolMessage done [18:37:07]OFDSenderStorePacket 192378 [18:37:07]StoreOFDPacket docnum=192378 [18:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 4E 07 01 18 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 53 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EF 02 00 35 04 06 00 BC 14 A3 5B 86 7A D1 5B 1F A0 CD 63 01 8D [18:37:07]CheckFolder [18:37:07]dirname=/storage/ofd_packets [18:37:07]CheckFolder done [18:37:07]ProducePacketName [18:37:07]name=ofd_packets/00192378 [18:37:07]NVStorageSaveData ofd_packets/00192378 [18:37:07]File name is /storage/ofd_packets/00192378 [18:37:07]Write 301 bytes [18:37:07]NVStorageSaveData done [18:37:07]OFDSenderStorePacket done [18:37:07]KKMCreateOFDPacket done [18:37:07]NVStorageSaveData kkm_last_timestamp [18:37:07]File name is /storage/kkm_last_timestamp [18:37:07]Write 4 bytes [18:37:07]NVStorageSaveData done [18:37:07]ExternCall_PrintAddStr [18:37:07]wPrintStart [18:37:07]Write to MH i2c: 01 00 00 F4 05 F9 [18:37:07]Write i2c OK [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: 01 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: 01 07 00 [18:37:07]MH_I2C_Read... [18:37:07]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FF 0F 0E [18:37:07]RasterBufferAndPrint [18:37:07]line Счет N : (1)31695 [18:37:07]line ИНН: 02508201610067 [18:37:07]line Контрольно-Кассовый Чек [18:37:07]line ПРОДАЖА [18:37:07]line ТРК (МРК, ГНК) : 12 [18:37:07]line Товар: 2710124130 [18:37:07]line Аи-92-К-5 [18:37:07]line 4.490 * 66.90 [18:37:07]line = 300.38 [18:37:07]line НДС 12% НСП 1% [18:37:07]line > о реализуемом товаре [18:37:07]line ОКРУГЛЕНИЕ: -0.38 [18:37:07]line ИТОГО: 300.00 [18:37:07]line Внесено: 300.00 [18:37:07]line СДАЧА: 0.00 [18:37:07]line НСП 1% : 2.66 [18:37:07]line НДС 12% : 31.90 [18:37:07]line Наличными: 300.00 [18:37:07]line Безнал.: 0.00 [18:37:07]line Место: АЗС № 170 "Партнер Нефть" [18:37:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:37:07]line СНО: Общий режим [18:37:07]line Чек 410 27.10.2024 18:37 [18:37:07]line Смена: 542 ФФД: 1.0 [18:37:07]line ЗНМ: 0300000110 [18:37:07]line РНМ: 0000000000091776 [18:37:07]line Версия ККМ: 001 [18:37:07]line ФМ: 0000000000871754 [18:37:07]line ФД: 192378 [18:37:07]line ФПД: 206796826052218 [18:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192378&fm=206796826052218&tin=02508201610067®Number=0000000000091776&sum=30000 [18:37:08]OFD Sender: Processing packet 192378 [packets to send 75, broken 74] [18:37:08]ProducePacketName [18:37:08]name=ofd_packets/00192378 [18:37:08]OFD Sender: To server: pG, [18:37:08]CommunicateWithHost lk.salyk.kg:30040 [18:37:08]ConnectInit lk.salyk.kg [18:37:08]written 0, free lines is 4095 [18:37:08]Write to MH i2c: 01 00 00 1F 06 25 [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 07 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 AF 0C E7 [18:37:08]RasterBufferAndPrint [18:37:08]line [18:37:08]line [18:37:08]line [18:37:08]line [18:37:08]line [18:37:08]written 0, free lines is 3250 [18:37:08]MH_Cut [18:37:08]Write to MH i2c: D1 01 00 26 06 01 FE [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: D1 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: D1 01 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: D1 01 00 26 06 00 FD [18:37:08]Write to MH i2c: 01 00 00 27 06 2D [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:09]*** Cut start [18:37:09]*** Partial cut [18:37:09]*** CUTSNS_PIN = 1 [18:37:09]*** CUTSNS_PIN = 0 [18:37:09]*** Brake cut motor [18:37:09]Read from MH i2c: 01 [18:37:09]MH_I2C_Read... [18:37:09]*** Stop cut motor [18:37:09]*** Cut end [18:37:09]Read from MH i2c: 01 07 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [18:37:09]process_action close_receipt done [18:37:09]requested_data is exist [18:37:09]produce_requested_data [18:37:09]requested_item fm.sn is exist - process it [18:37:09]wFMCommunicate request_size=4 [18:37:09]MH_SAM_APDU [18:37:09]CAPDU: 80 11 00 00 [18:37:09]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:10]Read from MH i2c: E2 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 17 00 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [18:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:37:10]wFMCommunicate OK [18:37:10]requested_item fd.num is exist - process it [18:37:10]SAM_PROTO_GetFieldsCounters [18:37:10]wFMCommunicate request_size=4 [18:37:10]MH_SAM_APDU [18:37:10]CAPDU: 80 13 00 00 [18:37:10]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [18:37:10]Write i2c OK [18:37:10]MH_I2C_Read... [18:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:10]Read from MH i2c: E2 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 62 00 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:10]wFMCommunicate OK [18:37:10]SAM_PROTO_GetFieldsCounters done [18:37:10]requested_item shift.num is exist - process it [18:37:10]requested_item shift.opened is exist - process it [18:37:10]req_shift_opened [18:37:10]FM_GetShiftState [18:37:10]SAM_PROTO_GetShiftState [18:37:10]wFMCommunicate request_size=4 [18:37:10]MH_SAM_APDU [18:37:10]CAPDU: 80 13 01 00 [18:37:10]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [18:37:10]Write i2c OK [18:37:10]MH_I2C_Read... [18:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:10]Read from MH i2c: E2 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 0E 00 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EE [18:37:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:37:10]wFMCommunicate OK [18:37:10]SAM_PROTO_GetShiftState done [18:37:10]FM_GetShiftState done [18:37:10]req_shift_opened done [18:37:10]requested_item shift.open_date is exist - process it [18:37:10]req_shift_open_date [18:37:10]req_shift_open_date done [18:37:10]produce_requested_data done [18:37:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192378,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:37:10]process_action_free close_receipt [18:37:10]json_value_free [18:37:10]json_value_free done [18:37:10]process_json_proto returns [18:37:10]Send response to host [18:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192378,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:37:10]free response buf [18:37:10]execute_script done [18:37:10]execute_script returns [18:37:10]free content buf [18:37:10]Sock 9.Close socket [18:37:10]Sock 9.Thread stoped [18:39:19]ConnectInit Can't connect to host [18:39:19]CommunicateWithHost connect error [18:39:19]CommunicateWithHost err = -1 [18:39:19]OFD Sender: Server communicate error [18:39:24]OFD Sender: Processing packet 192378 [packets to send 75, broken 74] [18:39:24]ProducePacketName [18:39:24]name=ofd_packets/00192378 [18:39:24]OFD Sender: To server: pG, [18:39:24]CommunicateWithHost lk.salyk.kg:30040 [18:39:24]ConnectInit lk.salyk.kg [18:39:24]Connected sock=9 [18:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 4E 07 01 18 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 53 88 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EF 02 00 35 04 06 00 BC 14 A3 5B 86 7A D1 5B 1F A0 CD 63 01 8D [18:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 46 47 00 AE 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A EF 02 00 F4 03 04 00 A2 2D 1E 67 B6 04 01 00 00 41 55 E0 B0 83 9D 40 1D [18:39:25]CommunicateWithHost err = 0 [18:39:25]CheckOFDResponse [18:39:25]1017 (14) - 77093643461234 [18:39:25]1041 (16) - 0000000000871754 [18:39:25]1040 (4) - 192378 [18:39:25]1012 (4) - 27.10.2024 12:10 [18:39:25]1206 (1) - 0 [18:39:25]OFD Sender: Remove packet 192378 [18:39:25]ProducePacketName [18:39:25]name=ofd_packets/00192378 [18:39:25]NVStorageDeleteData [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:06]accept exits with 7 [18:41:06]New connection [18:41:06]New thread 3066563940 created [18:41:06]Thread 3066707300 joined [18:41:06]Waiting for new connection... [18:41:06] Sock 7.Parse request [18:41:06]Sock 7.Check first char [18:41:06]Sock 7.First char is OK [18:41:06]request: POST /json_proto HTTP/1.0 [18:41:06]Method: POST [18:41:06]URL: /json_proto [18:41:06]Method is POST - this is cgi request [18:41:06]url: /json_proto [18:41:06]query_string will be loaded in cgi processing [18:41:06]execute_cgi json_proto POST (null) [18:41:06]execute_cgi path=json_proto method=POST [18:41:06]POST find Content-Length [18:41:06]Host: 172.17.63.131:8080 [18:41:06]Content-Length: 677 [18:41:06]Content-Type: application/json [18:41:06] [18:41:06]POST finish read [18:41:06]Found Content-Length = 677 [18:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:06]execute_script... [18:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:06]POST & json_proto [18:41:06]process_json_proto [18:41:06]json parsed OK: [18:41:06]protocol is kg_v1.0 [18:41:06]action value=close_receipt [18:41:06]process_action close_receipt [18:41:06]cmd_close_receipt [18:41:06]MH_GetDate [18:41:06]Write to MH i2c: F0 00 00 2B 06 20 [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 09 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 09 00 2B 06 00 43 89 1E 67 22 05 6E 64 73 [18:41:06]GetLastDocTimeStamp 1730054227 [18:41:06]current date 1730054467 [18:41:06]FM_GetShiftState [18:41:06]SAM_PROTO_GetShiftState [18:41:06]wFMCommunicate request_size=4 [18:41:06]MH_SAM_APDU [18:41:06]CAPDU: 80 13 01 00 [18:41:06]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:06]Read from MH i2c: E2 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 0E 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F0 [18:41:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:41:06]wFMCommunicate OK [18:41:06]SAM_PROTO_GetShiftState done [18:41:06]FM_GetShiftState done [18:41:06]opened in 1729989159 [18:41:06]opened+sec_in_day 1730075559 [18:41:06]quantity*price = 70044 [18:41:06]sum+1 = 70045 [18:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 411 27.10.2024 18:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192379 ФПД: 143331579822785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192379&fm=143331579822785&tin=02508201610067®Number=0000000000091776&sum=70000 [18:41:07]StoreToDocumentArchive [18:41:07]shift 542 fd 192379 [18:41:07]save to /storage/0542/doc_00192379 [18:41:07]save last doc name /storage/0542/doc_00192379 to /storage/kkm_last_doc_name [18:41:07]save OK [18:41:07]Clear old archive folders... [18:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:07]tlvbuf is 019C1760 [18:41:07]SAM_PROTO_ClearQueue [18:41:07]wFMCommunicate request_size=4 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 09 00 00 [18:41:07]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [18:41:07]RAPDU: 90 00 [18:41:07]wFMCommunicate OK [18:41:07]SAM_PROTO_ClearQueue done [18:41:07]KKMCreateOFDPacket [18:41:07]OFDProtocolAddRootSTLVToBuf [18:41:07]FM_MakeSignedData [18:41:07]FM_MakeSignedData [18:41:07]SAM_PROTO_SignData [18:41:07]wFMCommunicate request_size=4 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 0D 01 02 [18:41:07]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [18:41:07]RAPDU: 90 00 [18:41:07]wFMCommunicate OK [18:41:07]wFMCommunicate request_size=255 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 43 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EF 02 00 35 04 06 00 82 [18:41:07]Write to MH i2c: E2 02 01 3B 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 43 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EF 02 00 35 04 06 00 82 00 00 58 [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [18:41:07]RAPDU: 90 00 [18:41:07]wFMCommunicate OK [18:41:07]wFMCommunicate request_size=10 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 0D 02 02 05 5B FB E6 82 C1 [18:41:07]Write to MH i2c: E2 0D 00 3C 06 80 0D 02 02 05 00 5B FB E6 82 C1 00 00 45 [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [18:41:07]RAPDU: 90 00 [18:41:07]wFMCommunicate OK [18:41:07]wFMCommunicate request_size=4 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 0D 03 02 [18:41:07]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 0B 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 0B 00 3D 06 00 9E F2 8E 43 3B D6 06 62 90 00 99 [18:41:07]RAPDU: 9E F2 8E 43 3B D6 06 62 90 00 [18:41:07]wFMCommunicate OK [18:41:07]SAM_PROTO_SignData done [18:41:07]FM_MakeSignedData done [18:41:07]CreateOFDProtocolMessage [18:41:07]wFMCommunicate request_size=4 [18:41:07]MH_SAM_APDU [18:41:07]CAPDU: 80 11 00 00 [18:41:07]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:07]Read from MH i2c: E2 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 17 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [18:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:41:07]wFMCommunicate OK [18:41:07]CreateOFDProtocolMessage done [18:41:07]OFDSenderStorePacket 192379 [18:41:07]StoreOFDPacket docnum=192379 [18:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 D6 07 01 DC F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 43 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EF 02 00 35 04 06 00 82 5B FB E6 82 C1 9E F2 8E 43 3B D6 06 62 [18:41:07]CheckFolder [18:41:07]dirname=/storage/ofd_packets [18:41:07]CheckFolder done [18:41:07]ProducePacketName [18:41:07]name=ofd_packets/00192379 [18:41:07]NVStorageSaveData ofd_packets/00192379 [18:41:07]File name is /storage/ofd_packets/00192379 [18:41:07]Write 301 bytes [18:41:07]NVStorageSaveData done [18:41:07]OFDSenderStorePacket done [18:41:07]KKMCreateOFDPacket done [18:41:07]NVStorageSaveData kkm_last_timestamp [18:41:07]File name is /storage/kkm_last_timestamp [18:41:07]Write 4 bytes [18:41:07]NVStorageSaveData done [18:41:07]ExternCall_PrintAddStr [18:41:07]wPrintStart [18:41:07]Write to MH i2c: 01 00 00 3F 06 45 [18:41:07]Write i2c OK [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: 01 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: 01 07 00 [18:41:07]MH_I2C_Read... [18:41:07]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [18:41:07]RasterBufferAndPrint [18:41:07]line Счет N : (1)31696 [18:41:07]line ИНН: 02508201610067 [18:41:07]line Контрольно-Кассовый Чек [18:41:07]line ПРОДАЖА [18:41:07]line ТРК (МРК, ГНК) : 12 [18:41:07]line Товар: 2710124130 [18:41:07]line Аи-92-К-5 [18:41:07]line 10.470 * 66.90 [18:41:07]line = 700.44 [18:41:07]line НДС 12% НСП 1% [18:41:07]line > о реализуемом товаре [18:41:07]line ОКРУГЛЕНИЕ: -0.44 [18:41:07]line ИТОГО: 700.00 [18:41:07]line Внесено: 700.00 [18:41:07]line СДАЧА: 0.00 [18:41:07]line НСП 1% : 6.20 [18:41:07]line НДС 12% : 74.38 [18:41:07]line Наличными: 700.00 [18:41:07]line Безнал.: 0.00 [18:41:07]line Место: АЗС № 170 "Партнер Нефть" [18:41:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:41:07]line СНО: Общий режим [18:41:07]line Чек 411 27.10.2024 18:41 [18:41:07]line Смена: 542 ФФД: 1.0 [18:41:07]line ЗНМ: 0300000110 [18:41:07]line РНМ: 0000000000091776 [18:41:07]line Версия ККМ: 001 [18:41:07]line ФМ: 0000000000871754 [18:41:07]line ФД: 192379 [18:41:07]line ФПД: 143331579822785 [18:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192379&fm=143331579822785&tin=02508201610067®Number=0000000000091776&sum=70000 [18:41:08]written 0, free lines is 4095 [18:41:08]OFD Sender: Processing packet 192379 [packets to send 75, broken 74] [18:41:08]ProducePacketName [18:41:08]name=ofd_packets/00192379 [18:41:08]OFD Sender: To server: pG, [18:41:08]CommunicateWithHost lk.salyk.kg:30040 [18:41:08]ConnectInit lk.salyk.kg [18:41:08]Connected sock=10 [18:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 D6 07 01 DC F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 43 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EF 02 00 35 04 06 00 82 5B FB E6 82 C1 9E F2 8E 43 3B D6 06 62 [18:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 73 47 00 15 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B EF 02 00 F4 03 04 00 09 2E 1E 67 B6 04 01 00 00 B7 34 C4 39 8A C3 98 6A [18:41:08]CommunicateWithHost err = 0 [18:41:08]CheckOFDResponse [18:41:08]1017 (14) - 77093643461234 [18:41:08]1041 (16) - 0000000000871754 [18:41:08]1040 (4) - 192379 [18:41:08]1012 (4) - 27.10.2024 12:11 [18:41:08]1206 (1) - 0 [18:41:08]OFD Sender: Remove packet 192379 [18:41:08]ProducePacketName [18:41:08]name=ofd_packets/00192379 [18:41:08]NVStorageDeleteData [18:41:08]Write to MH i2c: 01 00 00 6A 06 70 [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: 01 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: 01 07 00 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 AA 0C 2D [18:41:08]RasterBufferAndPrint [18:41:08]line [18:41:08]line [18:41:08]line [18:41:08]line [18:41:08]line [18:41:08]written 0, free lines is 3248 [18:41:08]MH_Cut [18:41:08]Write to MH i2c: D1 01 00 71 06 01 49 [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: D1 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: D1 01 00 [18:41:08]MH_I2C_Read... [18:41:08]Read from MH i2c: D1 01 00 71 06 00 48 [18:41:08]Write to MH i2c: 01 00 00 72 06 78 [18:41:08]Write i2c OK [18:41:08]MH_I2C_Read... [18:41:08]OFD Sender: No OFD packet to send [18:41:09]*** Cut start [18:41:09]*** Partial cut [18:41:09]*** CUTSNS_PIN = 1 [18:41:09]*** CUTSNS_PIN = 0 [18:41:09]*** Brake cut motor [18:41:09]Read from MH i2c: 01 [18:41:10]MH_I2C_Read... [18:41:10]*** Stop cut motor [18:41:10]*** Cut end [18:41:10]Read from MH i2c: 01 07 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [18:41:10]process_action close_receipt done [18:41:10]requested_data is exist [18:41:10]produce_requested_data [18:41:10]requested_item fm.sn is exist - process it [18:41:10]wFMCommunicate request_size=4 [18:41:10]MH_SAM_APDU [18:41:10]CAPDU: 80 11 00 00 [18:41:10]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [18:41:10]Write i2c OK [18:41:10]MH_I2C_Read... [18:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:10]Read from MH i2c: E2 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 17 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [18:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:41:10]wFMCommunicate OK [18:41:10]requested_item fd.num is exist - process it [18:41:10]SAM_PROTO_GetFieldsCounters [18:41:10]wFMCommunicate request_size=4 [18:41:10]MH_SAM_APDU [18:41:10]CAPDU: 80 13 00 00 [18:41:10]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [18:41:10]Write i2c OK [18:41:10]MH_I2C_Read... [18:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:10]Read from MH i2c: E2 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 62 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:10]wFMCommunicate OK [18:41:10]SAM_PROTO_GetFieldsCounters done [18:41:10]requested_item shift.num is exist - process it [18:41:10]requested_item shift.opened is exist - process it [18:41:10]req_shift_opened [18:41:10]FM_GetShiftState [18:41:10]SAM_PROTO_GetShiftState [18:41:10]wFMCommunicate request_size=4 [18:41:10]MH_SAM_APDU [18:41:10]CAPDU: 80 13 01 00 [18:41:10]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [18:41:10]Write i2c OK [18:41:10]MH_I2C_Read... [18:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:10]Read from MH i2c: E2 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 0E 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [18:41:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:41:10]wFMCommunicate OK [18:41:10]SAM_PROTO_GetShiftState done [18:41:10]FM_GetShiftState done [18:41:10]req_shift_opened done [18:41:10]requested_item shift.open_date is exist - process it [18:41:10]req_shift_open_date [18:41:10]req_shift_open_date done [18:41:10]produce_requested_data done [18:41:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192379,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:41:10]process_action_free close_receipt [18:41:10]json_value_free [18:41:10]json_value_free done [18:41:10]process_json_proto returns [18:41:10]Send response to host [18:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192379,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:41:10]free response buf [18:41:10]execute_script done [18:41:10]execute_script returns [18:41:10]free content buf [18:41:10]Sock 7.Close socket [18:41:10]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:48]accept exits with 9 [18:42:48]New connection [18:42:48]New thread 3066707300 created [18:42:48]Thread 3066563940 joined [18:42:48]Waiting for new connection... [18:42:48] Sock 9.Parse request [18:42:48]Sock 9.Check first char [18:42:48]Sock 9.First char is OK [18:42:48]request: POST /json_proto HTTP/1.0 [18:42:48]Method: POST [18:42:48]URL: /json_proto [18:42:48]Method is POST - this is cgi request [18:42:48]url: /json_proto [18:42:48]query_string will be loaded in cgi processing [18:42:48]execute_cgi json_proto POST (null) [18:42:48]execute_cgi path=json_proto method=POST [18:42:48]POST find Content-Length [18:42:48]Host: 172.17.63.131:8080 [18:42:48]Content-Length: 676 [18:42:48]Content-Type: application/json [18:42:48] [18:42:48]POST finish read [18:42:48]Found Content-Length = 676 [18:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:48]execute_script... [18:42: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)31697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:48]POST & json_proto [18:42:48]process_json_proto [18:42:48]json parsed OK: [18:42:48]protocol is kg_v1.0 [18:42:48]action value=close_receipt [18:42:48]process_action close_receipt [18:42:48]cmd_close_receipt [18:42:48]MH_GetDate [18:42:48]Write to MH i2c: F0 00 00 76 06 6B [18:42:48]Write i2c OK [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: F0 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: F0 09 00 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: F0 09 00 76 06 00 A9 89 1E 67 22 05 6E 64 24 [18:42:48]GetLastDocTimeStamp 1730054467 [18:42:48]current date 1730054569 [18:42:48]FM_GetShiftState [18:42:48]SAM_PROTO_GetShiftState [18:42:48]wFMCommunicate request_size=4 [18:42:48]MH_SAM_APDU [18:42:48]CAPDU: 80 13 01 00 [18:42:48]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [18:42:48]Write i2c OK [18:42:48]MH_I2C_Read... [18:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:48]Read from MH i2c: E2 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 0E 00 [18:42:48]MH_I2C_Read... [18:42:48]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [18:42:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:42:48]wFMCommunicate OK [18:42:48]SAM_PROTO_GetShiftState done [18:42:48]FM_GetShiftState done [18:42:48]opened in 1729989159 [18:42:48]opened+sec_in_day 1730075559 [18:42:48]quantity*price = 50041 [18:42:48]sum+1 = 50042 [18:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 412 27.10.2024 18:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192380 ФПД: 198559967818874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192380&fm=198559967818874&tin=02508201610067®Number=0000000000091776&sum=50000 [18:42:49]StoreToDocumentArchive [18:42:49]shift 542 fd 192380 [18:42:49]save to /storage/0542/doc_00192380 [18:42:49]save last doc name /storage/0542/doc_00192380 to /storage/kkm_last_doc_name [18:42:49]save OK [18:42:49]Clear old archive folders... [18:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:49]tlvbuf is 019BF2D0 [18:42:49]SAM_PROTO_ClearQueue [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 09 00 00 [18:42:49]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [18:42:49]RAPDU: 90 00 [18:42:49]wFMCommunicate OK [18:42:49]SAM_PROTO_ClearQueue done [18:42:49]KKMCreateOFDPacket [18:42:49]OFDProtocolAddRootSTLVToBuf [18:42:49]FM_MakeSignedData [18:42:49]FM_MakeSignedData [18:42:49]SAM_PROTO_SignData [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 0D 01 02 [18:42:49]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [18:42:49]RAPDU: 90 00 [18:42:49]wFMCommunicate OK [18:42:49]wFMCommunicate request_size=255 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 A9 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EF 02 00 35 04 06 00 B4 [18:42:49]Write to MH i2c: E2 02 01 86 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 A9 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EF 02 00 35 04 06 00 B4 00 00 2D [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [18:42:49]RAPDU: 90 00 [18:42:49]wFMCommunicate OK [18:42:49]wFMCommunicate request_size=10 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 0D 02 02 05 96 D8 59 34 7A [18:42:49]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 96 D8 59 34 7A 00 00 86 [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [18:42:49]RAPDU: 90 00 [18:42:49]wFMCommunicate OK [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 0D 03 02 [18:42:49]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0B 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0B 00 88 06 00 4B 40 53 AB 4C B1 E1 E7 90 00 58 [18:42:49]RAPDU: 4B 40 53 AB 4C B1 E1 E7 90 00 [18:42:49]wFMCommunicate OK [18:42:49]SAM_PROTO_SignData done [18:42:49]FM_MakeSignedData done [18:42:49]CreateOFDProtocolMessage [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 11 00 00 [18:42:49]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 17 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [18:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:42:49]wFMCommunicate OK [18:42:49]CreateOFDProtocolMessage done [18:42:49]OFDSenderStorePacket 192380 [18:42:49]StoreOFDPacket docnum=192380 [18:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F A6 07 01 8A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EF 02 00 35 04 06 00 B4 96 D8 59 34 7A 4B 40 53 AB 4C B1 E1 E7 [18:42:49]CheckFolder [18:42:49]dirname=/storage/ofd_packets [18:42:49]CheckFolder done [18:42:49]ProducePacketName [18:42:49]name=ofd_packets/00192380 [18:42:49]NVStorageSaveData ofd_packets/00192380 [18:42:49]File name is /storage/ofd_packets/00192380 [18:42:49]Write 301 bytes [18:42:49]NVStorageSaveData done [18:42:49]OFDSenderStorePacket done [18:42:49]KKMCreateOFDPacket done [18:42:49]NVStorageSaveData kkm_last_timestamp [18:42:49]File name is /storage/kkm_last_timestamp [18:42:49]Write 4 bytes [18:42:49]NVStorageSaveData done [18:42:49]ExternCall_PrintAddStr [18:42:49]wPrintStart [18:42:49]Write to MH i2c: 01 00 00 8A 06 90 [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: 01 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: 01 07 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [18:42:49]RasterBufferAndPrint [18:42:49]line Счет N : (1)31697 [18:42:49]line ИНН: 02508201610067 [18:42:49]line Контрольно-Кассовый Чек [18:42:49]line ПРОДАЖА [18:42:49]line ТРК (МРК, ГНК) : 12 [18:42:49]line Товар: 2710124130 [18:42:49]line Аи-92-К-5 [18:42:49]line 7.480 * 66.90 [18:42:49]line = 500.41 [18:42:49]line НДС 12% НСП 1% [18:42:49]line > о реализуемом товаре [18:42:49]line ОКРУГЛЕНИЕ: -0.41 [18:42:49]line ИТОГО: 500.00 [18:42:49]line Внесено: 500.00 [18:42:49]line СДАЧА: 0.00 [18:42:49]line НСП 1% : 4.43 [18:42:49]line НДС 12% : 53.14 [18:42:49]line Наличными: 500.00 [18:42:49]line Безнал.: 0.00 [18:42:49]line Место: АЗС № 170 "Партнер Нефть" [18:42:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:42:49]line СНО: Общий режим [18:42:49]line Чек 412 27.10.2024 18:42 [18:42:49]line Смена: 542 ФФД: 1.0 [18:42:49]line ЗНМ: 0300000110 [18:42:49]line РНМ: 0000000000091776 [18:42:49]line Версия ККМ: 001 [18:42:49]line ФМ: 0000000000871754 [18:42:49]line ФД: 192380 [18:42:49]line ФПД: 198559967818874 [18:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192380&fm=198559967818874&tin=02508201610067®Number=0000000000091776&sum=50000 [18:42:49]written 0, free lines is 4095 [18:42:49]OFD Sender: Processing packet 192380 [packets to send 75, broken 74] [18:42:49]ProducePacketName [18:42:49]name=ofd_packets/00192380 [18:42:49]OFD Sender: To server: pG, [18:42:49]CommunicateWithHost lk.salyk.kg:30040 [18:42:49]ConnectInit lk.salyk.kg [18:42:49]Connected sock=10 [18:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2F A6 07 01 8A CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 89 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EF 02 00 35 04 06 00 B4 96 D8 59 34 7A 4B 40 53 AB 4C B1 E1 E7 [18:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 3C 47 00 81 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C EF 02 00 F4 03 04 00 6F 2E 1E 67 B6 04 01 00 00 36 E2 07 43 67 B8 8D 49 [18:42:50]CommunicateWithHost err = 0 [18:42:50]CheckOFDResponse [18:42:50]1017 (14) - 77093643461234 [18:42:50]1041 (16) - 0000000000871754 [18:42:50]1040 (4) - 192380 [18:42:50]1012 (4) - 27.10.2024 12:13 [18:42:50]1206 (1) - 0 [18:42:50]OFD Sender: Remove packet 192380 [18:42:50]ProducePacketName [18:42:50]name=ofd_packets/00192380 [18:42:50]NVStorageDeleteData [18:42:50]Write to MH i2c: 01 00 00 B5 06 BB [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: 01 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: 01 07 00 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 BB 0C 89 [18:42:50]RasterBufferAndPrint [18:42:50]line [18:42:50]line [18:42:50]line [18:42:50]line [18:42:50]line [18:42:50]written 0, free lines is 3266 [18:42:50]MH_Cut [18:42:50]Write to MH i2c: D1 01 00 BC 06 01 94 [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: D1 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: D1 01 00 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: D1 01 00 BC 06 00 93 [18:42:50]Write to MH i2c: 01 00 00 BD 06 C3 [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]OFD Sender: No OFD packet to send [18:42:51]*** Cut start [18:42:51]*** Partial cut [18:42:51]*** CUTSNS_PIN = 1 [18:42:51]*** CUTSNS_PIN = 0 [18:42:51]*** Brake cut motor [18:42:51]Read from MH i2c: 01 [18:42:51]MH_I2C_Read... [18:42:51]*** Stop cut motor [18:42:51]*** Cut end [18:42:51]Read from MH i2c: 01 07 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [18:42:51]process_action close_receipt done [18:42:51]requested_data is exist [18:42:51]produce_requested_data [18:42:51]requested_item fm.sn is exist - process it [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 11 00 00 [18:42:51]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 17 00 [18:42:51]MH_I2C_Read... [18:42:51]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 37 35 34 90 00 91 [18:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:42:51]wFMCommunicate OK [18:42:51]requested_item fd.num is exist - process it [18:42:51]SAM_PROTO_GetFieldsCounters [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 13 00 00 [18:42:51]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 62 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:51]wFMCommunicate OK [18:42:51]SAM_PROTO_GetFieldsCounters done [18:42:51]requested_item shift.num is exist - process it [18:42:51]requested_item shift.opened is exist - process it [18:42:51]req_shift_opened [18:42:51]FM_GetShiftState [18:42:51]SAM_PROTO_GetShiftState [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 13 01 00 [18:42:51]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0E 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [18:42:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:42:51]wFMCommunicate OK [18:42:51]SAM_PROTO_GetShiftState done [18:42:51]FM_GetShiftState done [18:42:51]req_shift_opened done [18:42:51]requested_item shift.open_date is exist - process it [18:42:51]req_shift_open_date [18:42:51]req_shift_open_date done [18:42:51]produce_requested_data done [18:42:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192380,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:42:51]process_action_free close_receipt [18:42:51]json_value_free [18:42:51]json_value_free done [18:42:51]process_json_proto returns [18:42:51]Send response to host [18:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192380,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:42:51]free response buf [18:42:51]execute_script done [18:42:51]execute_script returns [18:42:51]free content buf [18:42:51]Sock 9.Close socket [18:42:51]Sock 9.Thread stoped [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:07]accept exits with 7 [18:46:07]New connection [18:46:07]New thread 3066563940 created [18:46:07]Thread 3066707300 joined [18:46:07]Waiting for new connection... [18:46:07] Sock 7.Parse request [18:46:07]Sock 7.Check first char [18:46:07]Sock 7.First char is OK [18:46:07]request: POST /json_proto HTTP/1.0 [18:46:07]Method: POST [18:46:07]URL: /json_proto [18:46:07]Method is POST - this is cgi request [18:46:07]url: /json_proto [18:46:07]query_string will be loaded in cgi processing [18:46:07]execute_cgi json_proto POST (null) [18:46:07]execute_cgi path=json_proto method=POST [18:46:07]POST find Content-Length [18:46:07]Host: 172.17.63.131:8080 [18:46:07]Content-Length: 678 [18:46:07]Content-Type: application/json [18:46:07] [18:46:07]POST finish read [18:46:07]Found Content-Length = 678 [18:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31698", "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" : 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" ] } } [18:46:07]execute_script... [18:46:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31698", "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" : 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" ] } } [18:46:07]POST & json_proto [18:46:07]process_json_proto [18:46:07]json parsed OK: [18:46:07]protocol is kg_v1.0 [18:46:07]action value=close_receipt [18:46:07]process_action close_receipt [18:46:07]cmd_close_receipt [18:46:07]MH_GetDate [18:46:07]Write to MH i2c: F0 00 00 C1 06 B6 [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: F0 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: F0 09 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: F0 09 00 C1 06 00 70 8A 1E 67 22 05 6E 64 37 [18:46:07]GetLastDocTimeStamp 1730054569 [18:46:07]current date 1730054768 [18:46:07]FM_GetShiftState [18:46:07]SAM_PROTO_GetShiftState [18:46:07]wFMCommunicate request_size=4 [18:46:07]MH_SAM_APDU [18:46:07]CAPDU: 80 13 01 00 [18:46:07]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:07]Read from MH i2c: E2 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: E2 0E 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 86 [18:46:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:46:07]wFMCommunicate OK [18:46:07]SAM_PROTO_GetShiftState done [18:46:07]FM_GetShiftState done [18:46:07]opened in 1729989159 [18:46:07]opened+sec_in_day 1730075559 [18:46:07]quantity*price = 150037 [18:46:07]sum+1 = 150039 [18:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 413 27.10.2024 18:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192381 ФПД: 274836410546904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192381&fm=274836410546904&tin=02508201610067®Number=0000000000091776&sum=150000 [18:46:08]StoreToDocumentArchive [18:46:08]shift 542 fd 192381 [18:46:08]save to /storage/0542/doc_00192381 [18:46:08]save last doc name /storage/0542/doc_00192381 to /storage/kkm_last_doc_name [18:46:08]save OK [18:46:08]Clear old archive folders... [18:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:46:08]tlvbuf is 019C0D30 [18:46:08]SAM_PROTO_ClearQueue [18:46:08]wFMCommunicate request_size=4 [18:46:08]MH_SAM_APDU [18:46:08]CAPDU: 80 09 00 00 [18:46:08]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [18:46:08]Write i2c OK [18:46:08]MH_I2C_Read... [18:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:08]Read from MH i2c: E2 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 03 00 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [18:46:08]RAPDU: 90 00 [18:46:08]wFMCommunicate OK [18:46:08]SAM_PROTO_ClearQueue done [18:46:08]KKMCreateOFDPacket [18:46:08]OFDProtocolAddRootSTLVToBuf [18:46:08]FM_MakeSignedData [18:46:08]FM_MakeSignedData [18:46:08]SAM_PROTO_SignData [18:46:08]wFMCommunicate request_size=4 [18:46:08]MH_SAM_APDU [18:46:08]CAPDU: 80 0D 01 02 [18:46:08]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [18:46:08]Write i2c OK [18:46:08]MH_I2C_Read... [18:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:08]Read from MH i2c: E2 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 03 00 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [18:46:08]RAPDU: 90 00 [18:46:08]wFMCommunicate OK [18:46:08]wFMCommunicate request_size=255 [18:46:08]MH_SAM_APDU [18:46: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 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 9D 01 00 00 F4 03 04 00 70 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EF 02 00 35 04 06 00 F9 F6 56 9F [18:46:08]Write to MH i2c: E2 02 01 D1 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 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 9D 01 00 00 F4 03 04 00 70 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EF 02 00 35 04 06 00 F9 F6 56 9F 00 00 DF [18:46:08]Write i2c OK [18:46:08]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 03 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [18:46:09]RAPDU: 90 00 [18:46:09]wFMCommunicate OK [18:46:09]wFMCommunicate request_size=7 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 0D 02 02 02 3A D8 [18:46:09]Write to MH i2c: E2 0A 00 D2 06 80 0D 02 02 02 00 3A D8 00 00 68 [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 03 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [18:46:09]RAPDU: 90 00 [18:46:09]wFMCommunicate OK [18:46:09]wFMCommunicate request_size=4 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 0D 03 02 [18:46:09]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 0B 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 0B 00 D3 06 00 47 1A 20 C2 15 89 E7 90 90 00 AD [18:46:09]RAPDU: 47 1A 20 C2 15 89 E7 90 90 00 [18:46:09]wFMCommunicate OK [18:46:09]SAM_PROTO_SignData done [18:46:09]FM_MakeSignedData done [18:46:09]CreateOFDProtocolMessage [18:46:09]wFMCommunicate request_size=4 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 11 00 00 [18:46:09]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 17 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [18:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:09]wFMCommunicate OK [18:46:09]CreateOFDProtocolMessage done [18:46:09]OFDSenderStorePacket 192381 [18:46:09]StoreOFDPacket docnum=192381 [18:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5A E0 04 01 1C 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9D 01 00 00 F4 03 04 00 70 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EF 02 00 35 04 06 00 F9 F6 56 9F 3A D8 47 1A 20 C2 15 89 E7 90 [18:46:09]CheckFolder [18:46:09]dirname=/storage/ofd_packets [18:46:09]CheckFolder done [18:46:09]ProducePacketName [18:46:09]name=ofd_packets/00192381 [18:46:09]NVStorageSaveData ofd_packets/00192381 [18:46:09]File name is /storage/ofd_packets/00192381 [18:46:09]Write 298 bytes [18:46:09]NVStorageSaveData done [18:46:09]OFDSenderStorePacket done [18:46:09]KKMCreateOFDPacket done [18:46:09]NVStorageSaveData kkm_last_timestamp [18:46:09]File name is /storage/kkm_last_timestamp [18:46:09]Write 4 bytes [18:46:09]NVStorageSaveData done [18:46:09]ExternCall_PrintAddStr [18:46:09]wPrintStart [18:46:09]Write to MH i2c: 01 00 00 D5 06 DB [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: 01 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: 01 07 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [18:46:09]RasterBufferAndPrint [18:46:09]line Счет N : (1)31698 [18:46:09]line ИНН: 02508201610067 [18:46:09]line Контрольно-Кассовый Чек [18:46:09]line ПРОДАЖА [18:46:09]line ТРК (МРК, ГНК) : 11 [18:46:09]line Товар: 2710194210 [18:46:09]line ДТ-К-5 [18:46:09]line 19.690 * 76.20 [18:46:09]line = 1500.38 [18:46:09]line НДС 12% НСП 1% [18:46:09]line > о реализуемом товаре [18:46:09]line ОКРУГЛЕНИЕ: -0.38 [18:46:09]line ИТОГО: 1500.00 [18:46:09]line Внесено: 1500.00 [18:46:09]line СДАЧА: 0.00 [18:46:09]line НСП 1% : 13.28 [18:46:09]line НДС 12% : 159.33 [18:46:09]line Наличными: 1500.00 [18:46:09]line Безнал.: 0.00 [18:46:09]line Место: АЗС № 170 "Партнер Нефть" [18:46:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:46:09]line СНО: Общий режим [18:46:09]line Чек 413 27.10.2024 18:46 [18:46:09]line Смена: 542 ФФД: 1.0 [18:46:09]line ЗНМ: 0300000110 [18:46:09]line РНМ: 0000000000091776 [18:46:09]line Версия ККМ: 001 [18:46:09]line ФМ: 0000000000871754 [18:46:09]line ФД: 192381 [18:46:09]line ФПД: 274836410546904 [18:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192381&fm=274836410546904&tin=02508201610067®Number=0000000000091776&sum=150000 [18:46:09]OFD Sender: Processing packet 192381 [packets to send 75, broken 74] [18:46:09]ProducePacketName [18:46:09]name=ofd_packets/00192381 [18:46:09]OFD Sender: To server: pG, [18:46:09]CommunicateWithHost lk.salyk.kg:30040 [18:46:09]ConnectInit lk.salyk.kg [18:46:09]written 0, free lines is 4095 [18:46:09]Connected sock=9 [18:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5A E0 04 01 1C 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9D 01 00 00 F4 03 04 00 70 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EF 02 00 35 04 06 00 F9 F6 56 9F 3A D8 47 1A 20 C2 15 89 E7 90 [18:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 28 47 00 FC A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D EF 02 00 F4 03 04 00 37 2F 1E 67 B6 04 01 00 00 54 A2 E7 1F BF 4D 92 C5 [18:46:09]CommunicateWithHost err = 0 [18:46:09]CheckOFDResponse [18:46:09]1017 (14) - 77093643461234 [18:46:09]1041 (16) - 0000000000871754 [18:46:09]1040 (4) - 192381 [18:46:09]1012 (4) - 27.10.2024 12:16 [18:46:09]1206 (1) - 0 [18:46:09]OFD Sender: Remove packet 192381 [18:46:09]ProducePacketName [18:46:09]name=ofd_packets/00192381 [18:46:09]NVStorageDeleteData [18:46:10]Write to MH i2c: 01 00 00 00 07 07 [18:46:10]Write i2c OK [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: 01 [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: 01 07 00 [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 B6 0C D0 [18:46:10]RasterBufferAndPrint [18:46:10]line [18:46:10]line [18:46:10]line [18:46:10]line [18:46:10]line [18:46:10]written 0, free lines is 3260 [18:46:10]MH_Cut [18:46:10]Write to MH i2c: D1 01 00 07 07 01 E0 [18:46:10]Write i2c OK [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: D1 [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: D1 01 00 [18:46:10]MH_I2C_Read... [18:46:10]Read from MH i2c: D1 01 00 07 07 00 DF [18:46:10]Write to MH i2c: 01 00 00 08 07 0F [18:46:10]Write i2c OK [18:46:10]MH_I2C_Read... [18:46:10]OFD Sender: No OFD packet to send [18:46:10]*** Cut start [18:46:10]*** Partial cut [18:46:10]*** CUTSNS_PIN = 1 [18:46:10]*** CUTSNS_PIN = 0 [18:46:11]*** Brake cut motor [18:46:11]Read from MH i2c: 01 [18:46:11]MH_I2C_Read... [18:46:11]*** Stop cut motor [18:46:11]*** Cut end [18:46:11]Read from MH i2c: 01 07 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [18:46:11]process_action close_receipt done [18:46:11]requested_data is exist [18:46:11]produce_requested_data [18:46:11]requested_item fm.sn is exist - process it [18:46:11]wFMCommunicate request_size=4 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 11 00 00 [18:46:11]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [18:46:11]Write i2c OK [18:46:11]MH_I2C_Read... [18:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:11]Read from MH i2c: E2 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 17 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [18:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:11]wFMCommunicate OK [18:46:11]requested_item fd.num is exist - process it [18:46:11]SAM_PROTO_GetFieldsCounters [18:46:11]wFMCommunicate request_size=4 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 13 00 00 [18:46:11]Write to MH i2c: E2 08 00 0A 07 80 13 00 00 00 00 00 00 8D [18:46:11]Write i2c OK [18:46:11]MH_I2C_Read... [18:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:11]Read from MH i2c: E2 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 62 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:11]wFMCommunicate OK [18:46:11]SAM_PROTO_GetFieldsCounters done [18:46:11]requested_item shift.num is exist - process it [18:46:11]requested_item shift.opened is exist - process it [18:46:11]req_shift_opened [18:46:11]FM_GetShiftState [18:46:11]SAM_PROTO_GetShiftState [18:46:11]wFMCommunicate request_size=4 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 13 01 00 [18:46:11]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [18:46:11]Write i2c OK [18:46:11]MH_I2C_Read... [18:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:11]Read from MH i2c: E2 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 0E 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D0 [18:46:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:46:11]wFMCommunicate OK [18:46:11]SAM_PROTO_GetShiftState done [18:46:11]FM_GetShiftState done [18:46:11]req_shift_opened done [18:46:11]requested_item shift.open_date is exist - process it [18:46:11]req_shift_open_date [18:46:11]req_shift_open_date done [18:46:11]produce_requested_data done [18:46:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192381,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:46:11]process_action_free close_receipt [18:46:11]json_value_free [18:46:11]json_value_free done [18:46:11]process_json_proto returns [18:46:11]Send response to host [18:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192381,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:46:11]free response buf [18:46:11]execute_script done [18:46:11]execute_script returns [18:46:11]free content buf [18:46:11]Sock 7.Close socket [18:46:11]Sock 7.Thread stoped [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:25]accept exits with 10 [18:47:25]New connection [18:47:25]New thread 3066707300 created [18:47:25]Thread 3066563940 joined [18:47:25]Waiting for new connection... [18:47:25] Sock 10.Parse request [18:47:25]Sock 10.Check first char [18:47:25]Sock 10.First char is OK [18:47:25]request: POST /json_proto HTTP/1.0 [18:47:25]Method: POST [18:47:25]URL: /json_proto [18:47:25]Method is POST - this is cgi request [18:47:25]url: /json_proto [18:47:25]query_string will be loaded in cgi processing [18:47:25]execute_cgi json_proto POST (null) [18:47:25]execute_cgi path=json_proto method=POST [18:47:25]POST find Content-Length [18:47:25]Host: 172.17.63.131:8080 [18:47:25]Content-Length: 676 [18:47:25]Content-Type: application/json [18:47:25] [18:47:25]POST finish read [18:47:25]Found Content-Length = 676 [18:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:25]execute_script... [18:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:25]POST & json_proto [18:47:25]process_json_proto [18:47:25]json parsed OK: [18:47:25]protocol is kg_v1.0 [18:47:25]action value=close_receipt [18:47:25]process_action close_receipt [18:47:25]cmd_close_receipt [18:47:25]MH_GetDate [18:47:25]Write to MH i2c: F0 00 00 0C 07 02 [18:47:25]Write i2c OK [18:47:25]MH_I2C_Read... [18:47:25]Read from MH i2c: F0 [18:47:25]MH_I2C_Read... [18:47:25]Read from MH i2c: F0 09 00 [18:47:25]MH_I2C_Read... [18:47:25]Read from MH i2c: F0 09 00 0C 07 00 BE 8A 1E 67 22 05 6E 64 D1 [18:47:25]GetLastDocTimeStamp 1730054768 [18:47:25]current date 1730054846 [18:47:25]FM_GetShiftState [18:47:25]SAM_PROTO_GetShiftState [18:47:25]wFMCommunicate request_size=4 [18:47:25]MH_SAM_APDU [18:47:25]CAPDU: 80 13 01 00 [18:47:25]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [18:47:25]Write i2c OK [18:47:25]MH_I2C_Read... [18:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:25]Read from MH i2c: E2 [18:47:25]MH_I2C_Read... [18:47:25]Read from MH i2c: E2 0E 00 [18:47:25]MH_I2C_Read... [18:47:25]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D2 [18:47:25]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:47:25]wFMCommunicate OK [18:47:25]SAM_PROTO_GetShiftState done [18:47:25]FM_GetShiftState done [18:47:25]opened in 1729989159 [18:47:25]opened+sec_in_day 1730075559 [18:47:25]quantity*price = 50041 [18:47:25]sum+1 = 50042 [18:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 414 27.10.2024 18:47 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192382 ФПД: 265905218543695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192382&fm=265905218543695&tin=02508201610067®Number=0000000000091776&sum=50000 [18:47:27]StoreToDocumentArchive [18:47:27]shift 542 fd 192382 [18:47:27]save to /storage/0542/doc_00192382 [18:47:27]save last doc name /storage/0542/doc_00192382 to /storage/kkm_last_doc_name [18:47:27]save OK [18:47:27]Clear old archive folders... [18:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:27]tlvbuf is 019D1270 [18:47:27]SAM_PROTO_ClearQueue [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 09 00 00 [18:47:27]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [18:47:27]RAPDU: 90 00 [18:47:27]wFMCommunicate OK [18:47:27]SAM_PROTO_ClearQueue done [18:47:27]KKMCreateOFDPacket [18:47:27]OFDProtocolAddRootSTLVToBuf [18:47:27]FM_MakeSignedData [18:47:27]FM_MakeSignedData [18:47:27]SAM_PROTO_SignData [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 0D 01 02 [18:47:27]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [18:47:27]RAPDU: 90 00 [18:47:27]wFMCommunicate OK [18:47:27]wFMCommunicate request_size=255 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BE 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EF 02 00 35 04 06 00 F1 [18:47:27]Write to MH i2c: E2 02 01 1C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 BE 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EF 02 00 35 04 06 00 F1 00 00 1B [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [18:47:27]RAPDU: 90 00 [18:47:27]wFMCommunicate OK [18:47:27]wFMCommunicate request_size=10 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 0D 02 02 05 D6 E2 18 60 4F [18:47:27]Write to MH i2c: E2 0D 00 1D 07 80 0D 02 02 05 00 D6 E2 18 60 4F 00 00 27 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [18:47:27]RAPDU: 90 00 [18:47:27]wFMCommunicate OK [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 0D 03 02 [18:47:27]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0B 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0B 00 1E 07 00 02 7F 69 58 E7 4A 5A 57 90 00 C5 [18:47:27]RAPDU: 02 7F 69 58 E7 4A 5A 57 90 00 [18:47:27]wFMCommunicate OK [18:47:27]SAM_PROTO_SignData done [18:47:27]FM_MakeSignedData done [18:47:27]CreateOFDProtocolMessage [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 11 00 00 [18:47:27]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 17 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [18:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:47:27]wFMCommunicate OK [18:47:27]CreateOFDProtocolMessage done [18:47:27]OFDSenderStorePacket 192382 [18:47:27]StoreOFDPacket docnum=192382 [18:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 85 07 01 1D 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BE 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EF 02 00 35 04 06 00 F1 D6 E2 18 60 4F 02 7F 69 58 E7 4A 5A 57 [18:47:27]CheckFolder [18:47:27]dirname=/storage/ofd_packets [18:47:27]CheckFolder done [18:47:27]ProducePacketName [18:47:27]name=ofd_packets/00192382 [18:47:27]NVStorageSaveData ofd_packets/00192382 [18:47:27]File name is /storage/ofd_packets/00192382 [18:47:27]Write 301 bytes [18:47:27]NVStorageSaveData done [18:47:27]OFDSenderStorePacket done [18:47:27]KKMCreateOFDPacket done [18:47:27]NVStorageSaveData kkm_last_timestamp [18:47:27]File name is /storage/kkm_last_timestamp [18:47:27]Write 4 bytes [18:47:27]NVStorageSaveData done [18:47:27]ExternCall_PrintAddStr [18:47:27]wPrintStart [18:47:27]Write to MH i2c: 01 00 00 20 07 27 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 07 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [18:47:27]RasterBufferAndPrint [18:47:27]line Счет N : (1)31699 [18:47:27]line ИНН: 02508201610067 [18:47:27]line Контрольно-Кассовый Чек [18:47:27]line ПРОДАЖА [18:47:27]line ТРК (МРК, ГНК) : 12 [18:47:27]line Товар: 2710124130 [18:47:27]line Аи-92-К-5 [18:47:27]line 7.480 * 66.90 [18:47:27]line = 500.41 [18:47:27]line НДС 12% НСП 1% [18:47:27]line > о реализуемом товаре [18:47:27]line ОКРУГЛЕНИЕ: -0.41 [18:47:27]line ИТОГО: 500.00 [18:47:27]line Внесено: 500.00 [18:47:27]line СДАЧА: 0.00 [18:47:27]line НСП 1% : 4.43 [18:47:27]line НДС 12% : 53.14 [18:47:27]line Наличными: 500.00 [18:47:27]line Безнал.: 0.00 [18:47:27]line Место: АЗС № 170 "Партнер Нефть" [18:47:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:47:27]line СНО: Общий режим [18:47:27]line Чек 414 27.10.2024 18:47 [18:47:27]line Смена: 542 ФФД: 1.0 [18:47:27]line ЗНМ: 0300000110 [18:47:27]line РНМ: 0000000000091776 [18:47:27]line Версия ККМ: 001 [18:47:27]line ФМ: 0000000000871754 [18:47:27]line ФД: 192382 [18:47:27]line ФПД: 265905218543695 [18:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192382&fm=265905218543695&tin=02508201610067®Number=0000000000091776&sum=50000 [18:47:27]OFD Sender: Processing packet 192382 [packets to send 75, broken 74] [18:47:27]ProducePacketName [18:47:27]name=ofd_packets/00192382 [18:47:27]OFD Sender: To server: pG, [18:47:27]CommunicateWithHost lk.salyk.kg:30040 [18:47:27]ConnectInit lk.salyk.kg [18:47:27]written 0, free lines is 4095 [18:47:27]Connected sock=9 [18:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CA 85 07 01 1D 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BE 8A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EF 02 00 35 04 06 00 F1 D6 E2 18 60 4F 02 7F 69 58 E7 4A 5A 57 [18:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD AF 47 00 15 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E EF 02 00 F4 03 04 00 85 2F 1E 67 B6 04 01 00 00 57 10 C9 C3 4A 00 20 08 [18:47:28]CommunicateWithHost err = 0 [18:47:28]CheckOFDResponse [18:47:28]1017 (14) - 77093643461234 [18:47:28]1041 (16) - 0000000000871754 [18:47:28]1040 (4) - 192382 [18:47:28]1012 (4) - 27.10.2024 12:18 [18:47:28]1206 (1) - 0 [18:47:28]OFD Sender: Remove packet 192382 [18:47:28]ProducePacketName [18:47:28]name=ofd_packets/00192382 [18:47:28]NVStorageDeleteData [18:47:28]Write to MH i2c: 01 00 00 4B 07 52 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 AA 0C 0F [18:47:28]RasterBufferAndPrint [18:47:28]line [18:47:28]line [18:47:28]line [18:47:28]line [18:47:28]line [18:47:28]written 0, free lines is 3248 [18:47:28]MH_Cut [18:47:28]Write to MH i2c: D1 01 00 52 07 01 2B [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D1 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D1 01 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D1 01 00 52 07 00 2A [18:47:28]Write to MH i2c: 01 00 00 53 07 5A [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]OFD Sender: No OFD packet to send [18:47:29]*** Cut start [18:47:29]*** Partial cut [18:47:29]*** CUTSNS_PIN = 1 [18:47:29]*** CUTSNS_PIN = 0 [18:47:29]*** Brake cut motor [18:47:29]Read from MH i2c: 01 [18:47:29]MH_I2C_Read... [18:47:29]*** Stop cut motor [18:47:29]*** Cut end [18:47:29]Read from MH i2c: 01 07 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [18:47:29]process_action close_receipt done [18:47:29]requested_data is exist [18:47:29]produce_requested_data [18:47:29]requested_item fm.sn is exist - process it [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 11 00 00 [18:47:29]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [18:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:47:29]wFMCommunicate OK [18:47:29]requested_item fd.num is exist - process it [18:47:29]SAM_PROTO_GetFieldsCounters [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 13 00 00 [18:47:29]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:30]Read from MH i2c: E2 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: E2 62 00 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [18:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:30]wFMCommunicate OK [18:47:30]SAM_PROTO_GetFieldsCounters done [18:47:30]requested_item shift.num is exist - process it [18:47:30]requested_item shift.opened is exist - process it [18:47:30]req_shift_opened [18:47:30]FM_GetShiftState [18:47:30]SAM_PROTO_GetShiftState [18:47:30]wFMCommunicate request_size=4 [18:47:30]MH_SAM_APDU [18:47:30]CAPDU: 80 13 01 00 [18:47:30]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [18:47:30]Write i2c OK [18:47:30]MH_I2C_Read... [18:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:30]Read from MH i2c: E2 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: E2 0E 00 [18:47:30]MH_I2C_Read... [18:47:30]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [18:47:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:47:30]wFMCommunicate OK [18:47:30]SAM_PROTO_GetShiftState done [18:47:30]FM_GetShiftState done [18:47:30]req_shift_opened done [18:47:30]requested_item shift.open_date is exist - process it [18:47:30]req_shift_open_date [18:47:30]req_shift_open_date done [18:47:30]produce_requested_data done [18:47:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192382,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:47:30]process_action_free close_receipt [18:47:30]json_value_free [18:47:30]json_value_free done [18:47:30]process_json_proto returns [18:47:30]Send response to host [18:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192382,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:47:30]free response buf [18:47:30]execute_script done [18:47:30]execute_script returns [18:47:30]free content buf [18:47:30]Sock 10.Close socket [18:47:30]Sock 10.Thread stoped [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]accept exits with 7 [18:49:38]New connection [18:49:38]New thread 3066563940 created [18:49:38]Thread 3066707300 joined [18:49:38]Waiting for new connection... [18:49:38] Sock 7.Parse request [18:49:38]Sock 7.Check first char [18:49:38]Sock 7.First char is OK [18:49:38]request: POST /json_proto HTTP/1.0 [18:49:38]Method: POST [18:49:38]URL: /json_proto [18:49:38]Method is POST - this is cgi request [18:49:38]url: /json_proto [18:49:38]query_string will be loaded in cgi processing [18:49:38]execute_cgi json_proto POST (null) [18:49:38]execute_cgi path=json_proto method=POST [18:49:38]POST find Content-Length [18:49:38]Host: 172.17.63.131:8080 [18:49:38]Content-Length: 673 [18:49:38]Content-Type: application/json [18:49:38] [18:49:38]POST finish read [18:49:38]Found Content-Length = 673 [18:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31700", "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" : 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" ] } } [18:49:38]execute_script... [18:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31700", "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" : 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" ] } } [18:49:38]POST & json_proto [18:49:38]process_json_proto [18:49:38]json parsed OK: [18:49:38]protocol is kg_v1.0 [18:49:38]action value=close_receipt [18:49:38]process_action close_receipt [18:49:38]cmd_close_receipt [18:49:38]MH_GetDate [18:49:38]Write to MH i2c: F0 00 00 57 07 4D [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: F0 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: F0 09 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: F0 09 00 57 07 00 43 8B 1E 67 22 05 6E 64 A2 [18:49:38]GetLastDocTimeStamp 1730054846 [18:49:38]current date 1730054979 [18:49:38]FM_GetShiftState [18:49:38]SAM_PROTO_GetShiftState [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 13 01 00 [18:49:38]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0E 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1D [18:49:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:49:38]wFMCommunicate OK [18:49:38]SAM_PROTO_GetShiftState done [18:49:38]FM_GetShiftState done [18:49:38]opened in 1729989159 [18:49:38]opened+sec_in_day 1730075559 [18:49:38]quantity*price = 70027 [18:49:38]sum+1 = 70029 [18:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 415 27.10.2024 18:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192383 ФПД: 254266317539333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184939&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192383&fm=254266317539333&tin=02508201610067®Number=0000000000091776&sum=70000 [18:49:39]StoreToDocumentArchive [18:49:39]shift 542 fd 192383 [18:49:39]save to /storage/0542/doc_00192383 [18:49:39]save last doc name /storage/0542/doc_00192383 to /storage/kkm_last_doc_name [18:49:39]save OK [18:49:39]Clear old archive folders... [18:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:49:39]tlvbuf is 019C0E10 [18:49:39]SAM_PROTO_ClearQueue [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 09 00 00 [18:49:39]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [18:49:39]RAPDU: 90 00 [18:49:39]wFMCommunicate OK [18:49:39]SAM_PROTO_ClearQueue done [18:49:39]KKMCreateOFDPacket [18:49:39]OFDProtocolAddRootSTLVToBuf [18:49:39]FM_MakeSignedData [18:49:39]FM_MakeSignedData [18:49:39]SAM_PROTO_SignData [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 0D 01 02 [18:49:39]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [18:49:39]RAPDU: 90 00 [18:49:39]wFMCommunicate OK [18:49:39]wFMCommunicate request_size=255 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 01 00 00 F4 03 04 00 43 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EF 02 00 35 04 06 00 E7 40 FD 89 [18:49:39]Write to MH i2c: E2 02 01 67 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 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 9F 01 00 00 F4 03 04 00 43 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EF 02 00 35 04 06 00 E7 40 FD 89 00 00 9C [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [18:49:39]RAPDU: 90 00 [18:49:39]wFMCommunicate OK [18:49:39]wFMCommunicate request_size=7 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 0D 02 02 02 08 05 [18:49:39]Write to MH i2c: E2 0A 00 68 07 80 0D 02 02 02 00 08 05 00 00 FA [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [18:49:39]RAPDU: 90 00 [18:49:39]wFMCommunicate OK [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 0D 03 02 [18:49:39]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0B 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0B 00 69 07 00 CC C1 11 E2 30 85 13 64 90 00 98 [18:49:39]RAPDU: CC C1 11 E2 30 85 13 64 90 00 [18:49:39]wFMCommunicate OK [18:49:39]SAM_PROTO_SignData done [18:49:39]FM_MakeSignedData done [18:49:39]CreateOFDProtocolMessage [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 11 00 00 [18:49:39]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 17 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [18:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:49:39]wFMCommunicate OK [18:49:39]CreateOFDProtocolMessage done [18:49:39]OFDSenderStorePacket 192383 [18:49:39]StoreOFDPacket docnum=192383 [18:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 73 04 01 44 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 01 00 00 F4 03 04 00 43 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EF 02 00 35 04 06 00 E7 40 FD 89 08 05 CC C1 11 E2 30 85 13 64 [18:49:39]CheckFolder [18:49:39]dirname=/storage/ofd_packets [18:49:39]CheckFolder done [18:49:39]ProducePacketName [18:49:39]name=ofd_packets/00192383 [18:49:39]NVStorageSaveData ofd_packets/00192383 [18:49:39]File name is /storage/ofd_packets/00192383 [18:49:39]Write 298 bytes [18:49:39]NVStorageSaveData done [18:49:39]OFDSenderStorePacket done [18:49:39]KKMCreateOFDPacket done [18:49:39]NVStorageSaveData kkm_last_timestamp [18:49:39]File name is /storage/kkm_last_timestamp [18:49:39]Write 4 bytes [18:49:39]NVStorageSaveData done [18:49:39]ExternCall_PrintAddStr [18:49:39]wPrintStart [18:49:39]Write to MH i2c: 01 00 00 6B 07 72 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 07 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [18:49:39]RasterBufferAndPrint [18:49:39]line Счет N : (1)31700 [18:49:39]line ИНН: 02508201610067 [18:49:39]line Контрольно-Кассовый Чек [18:49:39]line ПРОДАЖА [18:49:39]line ТРК (МРК, ГНК) : 11 [18:49:39]line Товар: 2710194210 [18:49:39]line ДТ-К-5 [18:49:39]line 9.190 * 76.20 [18:49:39]line = 700.28 [18:49:39]line НДС 12% НСП 1% [18:49:39]line > о реализуемом товаре [18:49:39]line ОКРУГЛЕНИЕ: -0.28 [18:49:39]line ИТОГО: 700.00 [18:49:39]line Внесено: 700.00 [18:49:39]line СДАЧА: 0.00 [18:49:39]line НСП 1% : 6.20 [18:49:39]line НДС 12% : 74.37 [18:49:39]line Наличными: 700.00 [18:49:39]line Безнал.: 0.00 [18:49:39]line Место: АЗС № 170 "Партнер Нефть" [18:49:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:49:39]line СНО: Общий режим [18:49:39]line Чек 415 27.10.2024 18:49 [18:49:39]line Смена: 542 ФФД: 1.0 [18:49:39]line ЗНМ: 0300000110 [18:49:39]line РНМ: 0000000000091776 [18:49:39]line Версия ККМ: 001 [18:49:39]line ФМ: 0000000000871754 [18:49:39]line ФД: 192383 [18:49:39]line ФПД: 254266317539333 [18:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184939&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192383&fm=254266317539333&tin=02508201610067®Number=0000000000091776&sum=70000 [18:49:40]written 0, free lines is 4095 [18:49:40]OFD Sender: Processing packet 192383 [packets to send 75, broken 74] [18:49:40]ProducePacketName [18:49:40]name=ofd_packets/00192383 [18:49:40]OFD Sender: To server: pG, [18:49:40]CommunicateWithHost lk.salyk.kg:30040 [18:49:40]ConnectInit lk.salyk.kg [18:49:40]Connected sock=11 [18:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 73 04 01 44 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 01 00 00 F4 03 04 00 43 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EF 02 00 35 04 06 00 E7 40 FD 89 08 05 CC C1 11 E2 30 85 13 64 [18:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 A6 47 00 00 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F EF 02 00 F4 03 04 00 0A 30 1E 67 B6 04 01 00 00 68 52 57 6B BA 2B 01 58 [18:49:40]CommunicateWithHost err = 0 [18:49:40]CheckOFDResponse [18:49:40]1017 (14) - 77093643461234 [18:49:40]1041 (16) - 0000000000871754 [18:49:40]1040 (4) - 192383 [18:49:40]1012 (4) - 27.10.2024 12:20 [18:49:40]1206 (1) - 0 [18:49:40]OFD Sender: Remove packet 192383 [18:49:40]ProducePacketName [18:49:40]name=ofd_packets/00192383 [18:49:40]NVStorageDeleteData [18:49:40]Write to MH i2c: 01 00 00 96 07 9D [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 07 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 A3 0C 53 [18:49:40]RasterBufferAndPrint [18:49:40]line [18:49:40]line [18:49:40]line [18:49:40]line [18:49:40]line [18:49:40]written 0, free lines is 3241 [18:49:40]MH_Cut [18:49:40]Write to MH i2c: D1 01 00 9D 07 01 76 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: D1 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: D1 01 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: D1 01 00 9D 07 00 75 [18:49:40]Write to MH i2c: 01 00 00 9E 07 A5 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:41]OFD Sender: No OFD packet to send [18:49:41]*** Cut start [18:49:41]*** Partial cut [18:49:41]*** CUTSNS_PIN = 1 [18:49:41]*** CUTSNS_PIN = 0 [18:49:41]*** Brake cut motor [18:49:42]Read from MH i2c: 01 [18:49:42]MH_I2C_Read... [18:49:42]*** Stop cut motor [18:49:42]*** Cut end [18:49:42]Read from MH i2c: 01 07 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [18:49:42]process_action close_receipt done [18:49:42]requested_data is exist [18:49:42]produce_requested_data [18:49:42]requested_item fm.sn is exist - process it [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 11 00 00 [18:49:42]Write to MH i2c: E2 08 00 9F 07 80 11 00 00 00 00 00 00 20 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:42]Read from MH i2c: E2 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 17 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 17 00 9F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [18:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:49:42]wFMCommunicate OK [18:49:42]requested_item fd.num is exist - process it [18:49:42]SAM_PROTO_GetFieldsCounters [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 13 00 00 [18:49:42]Write to MH i2c: E2 08 00 A0 07 80 13 00 00 00 00 00 00 23 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:42]Read from MH i2c: E2 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 62 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 62 00 A0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:42]wFMCommunicate OK [18:49:42]SAM_PROTO_GetFieldsCounters done [18:49:42]requested_item shift.num is exist - process it [18:49:42]requested_item shift.opened is exist - process it [18:49:42]req_shift_opened [18:49:42]FM_GetShiftState [18:49:42]SAM_PROTO_GetShiftState [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 13 01 00 [18:49:42]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 [18:49:42]MH_I2C_Read... [18:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:42]Read from MH i2c: E2 0E 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 66 [18:49:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:49:42]wFMCommunicate OK [18:49:42]SAM_PROTO_GetShiftState done [18:49:42]FM_GetShiftState done [18:49:42]req_shift_opened done [18:49:42]requested_item shift.open_date is exist - process it [18:49:42]req_shift_open_date [18:49:42]req_shift_open_date done [18:49:42]produce_requested_data done [18:49:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192383,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:49:42]process_action_free close_receipt [18:49:42]json_value_free [18:49:42]json_value_free done [18:49:42]process_json_proto returns [18:49:42]Send response to host [18:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192383,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:49:42]free response buf [18:49:42]execute_script done [18:49:42]execute_script returns [18:49:42]free content buf [18:49:42]Sock 7.Close socket [18:49:42]Sock 7.Thread stoped [18:49:44]accept exits with 10 [18:49:44]New connection [18:49:44]New thread 3066707300 created [18:49:44]Thread 3066563940 joined [18:49:44]Waiting for new connection... [18:49:44] Sock 10.Parse request [18:49:44]Sock 10.Check first char [18:49:44]Sock 10.First char is OK [18:49:44]request: POST /json_proto HTTP/1.0 [18:49:44]Method: POST [18:49:44]URL: /json_proto [18:49:44]Method is POST - this is cgi request [18:49:44]url: /json_proto [18:49:44]query_string will be loaded in cgi processing [18:49:44]execute_cgi json_proto POST (null) [18:49:44]execute_cgi path=json_proto method=POST [18:49:44]POST find Content-Length [18:49:44]Host: 172.17.63.131:8080 [18:49:44]Content-Length: 807 [18:49:44]Content-Type: application/json [18:49:44] [18:49:44]POST finish read [18:49:44]Found Content-Length = 807 [18:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:44]execute_script... [18:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:44]POST & json_proto [18:49:44]process_json_proto [18:49:44]json parsed OK: [18:49:44]protocol is kg_v1.0 [18:49:44]action value=close_receipt [18:49:44]process_action close_receipt [18:49:44]cmd_close_receipt [18:49:44]MH_GetDate [18:49:44]Write to MH i2c: F0 00 00 A2 07 98 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 09 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 09 00 A2 07 00 49 8B 1E 67 22 05 6E 64 F3 [18:49:44]GetLastDocTimeStamp 1730054979 [18:49:44]current date 1730054985 [18:49:44]FM_GetShiftState [18:49:44]SAM_PROTO_GetShiftState [18:49:44]wFMCommunicate request_size=4 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 13 01 00 [18:49:44]Write to MH i2c: E2 08 00 A3 07 80 13 01 00 00 00 00 00 27 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0E 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0E 00 A3 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 68 [18:49:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:49:44]wFMCommunicate OK [18:49:44]SAM_PROTO_GetShiftState done [18:49:44]FM_GetShiftState done [18:49:44]opened in 1729989159 [18:49:44]opened+sec_in_day 1730075559 [18:49:44]quantity*price = 150056 [18:49:44]sum+1 = 150058 [18:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 416 27.10.2024 18:49 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192384 ФПД: 233766775253723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192384&fm=233766775253723&tin=02508201610067®Number=0000000000091776&sum=150057 [18:49:45]StoreToDocumentArchive [18:49:45]shift 542 fd 192384 [18:49:45]save to /storage/0542/doc_00192384 [18:49:45]save last doc name /storage/0542/doc_00192384 to /storage/kkm_last_doc_name [18:49:45]save OK [18:49:45]Clear old archive folders... [18:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:45]tlvbuf is 019ED460 [18:49:45]SAM_PROTO_ClearQueue [18:49:45]wFMCommunicate request_size=4 [18:49:45]MH_SAM_APDU [18:49:45]CAPDU: 80 09 00 00 [18:49:45]Write to MH i2c: E2 08 00 B0 07 80 09 00 00 00 00 00 00 29 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:45]Read from MH i2c: E2 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [18:49:45]RAPDU: 90 00 [18:49:45]wFMCommunicate OK [18:49:45]SAM_PROTO_ClearQueue done [18:49:45]KKMCreateOFDPacket [18:49:45]OFDProtocolAddRootSTLVToBuf [18:49:45]FM_MakeSignedData [18:49:45]FM_MakeSignedData [18:49:45]SAM_PROTO_SignData [18:49:45]wFMCommunicate request_size=4 [18:49:45]MH_SAM_APDU [18:49:45]CAPDU: 80 0D 01 02 [18:49:45]Write to MH i2c: E2 08 00 B1 07 80 0D 01 02 00 00 00 00 31 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [18:49:46]RAPDU: 90 00 [18:49:46]wFMCommunicate OK [18:49:46]wFMCommunicate request_size=255 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 49 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EF 02 00 35 04 06 00 D4 [18:49:46]Write to MH i2c: E2 02 01 B2 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 49 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EF 02 00 35 04 06 00 D4 00 00 E1 [18:49:46]OFD Sender: No OFD packet to send [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [18:49:46]RAPDU: 90 00 [18:49:46]wFMCommunicate OK [18:49:46]wFMCommunicate request_size=10 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 0D 02 02 05 9C 11 99 6A DB [18:49:46]Write to MH i2c: E2 0D 00 B3 07 80 0D 02 02 05 00 9C 11 99 6A DB 00 00 C9 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [18:49:46]RAPDU: 90 00 [18:49:46]wFMCommunicate OK [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 0D 03 02 [18:49:46]Write to MH i2c: E2 08 00 B4 07 80 0D 03 02 00 00 00 00 36 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0B 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0B 00 B4 07 00 57 3C 56 96 E6 24 97 1B 90 00 72 [18:49:46]RAPDU: 57 3C 56 96 E6 24 97 1B 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_SignData done [18:49:46]FM_MakeSignedData done [18:49:46]CreateOFDProtocolMessage [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 11 00 00 [18:49:46]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 [18:49:46]MH_I2C_Read... [18:49:46]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 37 35 34 90 00 89 [18:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:49:46]wFMCommunicate OK [18:49:46]CreateOFDProtocolMessage done [18:49:46]OFDSenderStorePacket 192384 [18:49:46]StoreOFDPacket docnum=192384 [18:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B AB 07 01 21 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 49 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EF 02 00 35 04 06 00 D4 9C 11 99 6A DB 57 3C 56 96 E6 24 97 1B [18:49:46]CheckFolder [18:49:46]dirname=/storage/ofd_packets [18:49:46]CheckFolder done [18:49:46]ProducePacketName [18:49:46]name=ofd_packets/00192384 [18:49:46]NVStorageSaveData ofd_packets/00192384 [18:49:46]File name is /storage/ofd_packets/00192384 [18:49:46]Write 301 bytes [18:49:46]NVStorageSaveData done [18:49:46]OFDSenderStorePacket done [18:49:46]KKMCreateOFDPacket done [18:49:46]NVStorageSaveData kkm_last_timestamp [18:49:46]File name is /storage/kkm_last_timestamp [18:49:46]Write 4 bytes [18:49:46]NVStorageSaveData done [18:49:46]ExternCall_PrintAddStr [18:49:46]wPrintStart [18:49:46]Write to MH i2c: 01 00 00 B6 07 BD [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [18:49:46]RasterBufferAndPrint [18:49:46]line Счет N : (1)31701 [18:49:46]line ИНН: 02508201610067 [18:49:46]line Контрольно-Кассовый Чек [18:49:46]line ПРОДАЖА [18:49:46]line ТРК (МРК, ГНК) : 21 [18:49:46]line Товар: 2710124130 [18:49:46]line Аи-92-К-5 [18:49:46]line 22.430 * 66.90 [18:49:46]line = 1500.57 [18:49:46]line НДС 12% НСП 1% [18:49:46]line > о реализуемом товаре [18:49:46]line ИТОГО: 1500.57 [18:49:46]line НСП 1% : 13.28 [18:49:46]line НДС 12% : 159.35 [18:49:46]line Наличными: 0.00 [18:49:46]line Безнал.: 1500.57 [18:49:46]line Место: АЗС № 170 "Партнер Нефть" [18:49:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:49:46]line СНО: Общий режим [18:49:46]line Чек 416 27.10.2024 18:49 [18:49:46]line Смена: 542 ФФД: 1.0 [18:49:46]line ЗНМ: 0300000110 [18:49:46]line РНМ: 0000000000091776 [18:49:46]line Версия ККМ: 001 [18:49:46]line Платежная система: О! деньги [18:49:46]line ФМ: 0000000000871754 [18:49:46]line ФД: 192384 [18:49:46]line ФПД: 233766775253723 [18:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184945&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192384&fm=233766775253723&tin=02508201610067®Number=0000000000091776&sum=150057 [18:49:46]written 0, free lines is 4095 [18:49:46]OFD Sender: Processing packet 192384 [packets to send 75, broken 74] [18:49:46]ProducePacketName [18:49:46]name=ofd_packets/00192384 [18:49:46]OFD Sender: To server: pG, [18:49:46]CommunicateWithHost lk.salyk.kg:30040 [18:49:46]ConnectInit lk.salyk.kg [18:49:46]Connected sock=11 [18:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B AB 07 01 21 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 49 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EF 02 00 35 04 06 00 D4 9C 11 99 6A DB 57 3C 56 96 E6 24 97 1B [18:49:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B 86 47 00 00 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 EF 02 00 F4 03 04 00 10 30 1E 67 B6 04 01 00 00 FF 94 6A 18 0E B5 D6 14 [18:49:47]CommunicateWithHost err = 0 [18:49:47]CheckOFDResponse [18:49:47]1017 (14) - 77093643461234 [18:49:47]1041 (16) - 0000000000871754 [18:49:47]1040 (4) - 192384 [18:49:47]1012 (4) - 27.10.2024 12:20 [18:49:47]1206 (1) - 0 [18:49:47]OFD Sender: Remove packet 192384 [18:49:47]ProducePacketName [18:49:47]name=ofd_packets/00192384 [18:49:47]NVStorageDeleteData [18:49:47]Write to MH i2c: 01 00 00 E0 07 E7 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 EB 0C E5 [18:49:47]RasterBufferAndPrint [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]written 0, free lines is 3322 [18:49:47]MH_Cut [18:49:47]Write to MH i2c: D1 01 00 E7 07 01 C0 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 01 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 01 00 E7 07 00 BF [18:49:47]Write to MH i2c: 01 00 00 E8 07 EF [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]OFD Sender: No OFD packet to send [18:49:47]*** Cut start [18:49:47]*** Partial cut [18:49:47]*** CUTSNS_PIN = 1 [18:49:47]*** CUTSNS_PIN = 0 [18:49:48]*** Brake cut motor [18:49:48]Read from MH i2c: 01 [18:49:48]MH_I2C_Read... [18:49:48]*** Stop cut motor [18:49:48]*** Cut end [18:49:48]Read from MH i2c: 01 07 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [18:49:48]process_action close_receipt done [18:49:48]requested_data is exist [18:49:48]produce_requested_data [18:49:48]requested_item fm.sn is exist - process it [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 11 00 00 [18:49:48]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [18:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:49:48]wFMCommunicate OK [18:49:48]requested_item fd.num is exist - process it [18:49:48]SAM_PROTO_GetFieldsCounters [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 00 00 [18:49:48]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 62 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 62 00 EA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [18:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetFieldsCounters done [18:49:48]requested_item shift.num is exist - process it [18:49:48]requested_item shift.opened is exist - process it [18:49:48]req_shift_opened [18:49:48]FM_GetShiftState [18:49:48]SAM_PROTO_GetShiftState [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 01 00 [18:49:48]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [18:49:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetShiftState done [18:49:48]FM_GetShiftState done [18:49:48]req_shift_opened done [18:49:48]requested_item shift.open_date is exist - process it [18:49:48]req_shift_open_date [18:49:48]req_shift_open_date done [18:49:48]produce_requested_data done [18:49:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192384,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:49:48]process_action_free close_receipt [18:49:48]json_value_free [18:49:48]json_value_free done [18:49:48]process_json_proto returns [18:49:48]Send response to host [18:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192384,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:49:48]free response buf [18:49:48]execute_script done [18:49:48]execute_script returns [18:49:48]free content buf [18:49:48]Sock 10.Close socket [18:49:48]Sock 10.Thread stoped [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:44]accept exits with 7 [18:52:44]New connection [18:52:44]New thread 3066563940 created [18:52:44]Thread 3066707300 joined [18:52:44]Waiting for new connection... [18:52:44] Sock 7.Parse request [18:52:44]Sock 7.Check first char [18:52:44]Sock 7.First char is OK [18:52:44]request: POST /json_proto HTTP/1.0 [18:52:44]Method: POST [18:52:44]URL: /json_proto [18:52:44]Method is POST - this is cgi request [18:52:44]url: /json_proto [18:52:44]query_string will be loaded in cgi processing [18:52:44]execute_cgi json_proto POST (null) [18:52:44]execute_cgi path=json_proto method=POST [18:52:44]POST find Content-Length [18:52:44]Host: 172.17.63.131:8080 [18:52:44]Content-Length: 676 [18:52:44]Content-Type: application/json [18:52:44] [18:52:44]POST finish read [18:52:44]Found Content-Length = 676 [18:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:44]execute_script... [18:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:44]POST & json_proto [18:52:44]process_json_proto [18:52:44]json parsed OK: [18:52:44]protocol is kg_v1.0 [18:52:44]action value=close_receipt [18:52:44]process_action close_receipt [18:52:44]cmd_close_receipt [18:52:44]MH_GetDate [18:52:44]Write to MH i2c: F0 00 00 EC 07 E2 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: F0 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: F0 09 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: F0 09 00 EC 07 00 FD 8B 1E 67 22 05 6E 64 F1 [18:52:44]GetLastDocTimeStamp 1730054985 [18:52:44]current date 1730055165 [18:52:44]FM_GetShiftState [18:52:44]SAM_PROTO_GetShiftState [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 13 01 00 [18:52:44]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0E 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B2 [18:52:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_GetShiftState done [18:52:44]FM_GetShiftState done [18:52:44]opened in 1729989159 [18:52:44]opened+sec_in_day 1730075559 [18:52:44]quantity*price = 50041 [18:52:44]sum+1 = 50042 [18:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 417 27.10.2024 18:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192385 ФПД: 21481627250770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192385&fm=21481627250770&tin=02508201610067®Number=0000000000091776&sum=50000 [18:52:46]StoreToDocumentArchive [18:52:46]shift 542 fd 192385 [18:52:46]save to /storage/0542/doc_00192385 [18:52:46]save last doc name /storage/0542/doc_00192385 to /storage/kkm_last_doc_name [18:52:46]save OK [18:52:46]Clear old archive folders... [18:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:46]tlvbuf is 019C0EE0 [18:52:46]SAM_PROTO_ClearQueue [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 09 00 00 [18:52:46]Write to MH i2c: E2 08 00 FA 07 80 09 00 00 00 00 00 00 73 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [18:52:46]RAPDU: 90 00 [18:52:46]wFMCommunicate OK [18:52:46]SAM_PROTO_ClearQueue done [18:52:46]KKMCreateOFDPacket [18:52:46]OFDProtocolAddRootSTLVToBuf [18:52:46]FM_MakeSignedData [18:52:46]FM_MakeSignedData [18:52:46]SAM_PROTO_SignData [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 0D 01 02 [18:52:46]Write to MH i2c: E2 08 00 FB 07 80 0D 01 02 00 00 00 00 7B [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [18:52:46]RAPDU: 90 00 [18:52:46]wFMCommunicate OK [18:52:46]wFMCommunicate request_size=255 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FD 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EF 02 00 35 04 06 00 13 [18:52:46]Write to MH i2c: E2 02 01 FC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 FD 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EF 02 00 35 04 06 00 13 00 00 63 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [18:52:46]RAPDU: 90 00 [18:52:46]wFMCommunicate OK [18:52:46]wFMCommunicate request_size=10 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 0D 02 02 05 89 94 C2 F0 52 [18:52:46]Write to MH i2c: E2 0D 00 FD 07 80 0D 02 02 05 00 89 94 C2 F0 52 00 00 A9 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [18:52:46]RAPDU: 90 00 [18:52:46]wFMCommunicate OK [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 0D 03 02 [18:52:46]Write to MH i2c: E2 08 00 FE 07 80 0D 03 02 00 00 00 00 80 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 0B 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 0B 00 FE 07 00 38 44 EC 4F A7 FE A1 CC 90 00 4A [18:52:46]RAPDU: 38 44 EC 4F A7 FE A1 CC 90 00 [18:52:46]wFMCommunicate OK [18:52:46]SAM_PROTO_SignData done [18:52:46]FM_MakeSignedData done [18:52:46]CreateOFDProtocolMessage [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 11 00 00 [18:52:46]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 17 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [18:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:52:46]wFMCommunicate OK [18:52:46]CreateOFDProtocolMessage done [18:52:46]OFDSenderStorePacket 192385 [18:52:46]StoreOFDPacket docnum=192385 [18:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 41 07 01 8B 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FD 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EF 02 00 35 04 06 00 13 89 94 C2 F0 52 38 44 EC 4F A7 FE A1 CC [18:52:46]CheckFolder [18:52:46]dirname=/storage/ofd_packets [18:52:46]CheckFolder done [18:52:46]ProducePacketName [18:52:46]name=ofd_packets/00192385 [18:52:46]NVStorageSaveData ofd_packets/00192385 [18:52:46]File name is /storage/ofd_packets/00192385 [18:52:46]Write 301 bytes [18:52:46]NVStorageSaveData done [18:52:46]OFDSenderStorePacket done [18:52:46]KKMCreateOFDPacket done [18:52:46]NVStorageSaveData kkm_last_timestamp [18:52:46]File name is /storage/kkm_last_timestamp [18:52:46]Write 4 bytes [18:52:46]NVStorageSaveData done [18:52:46]ExternCall_PrintAddStr [18:52:46]wPrintStart [18:52:46]Write to MH i2c: 01 00 00 00 08 08 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [18:52:46]RasterBufferAndPrint [18:52:46]line Счет N : (1)31702 [18:52:46]line ИНН: 02508201610067 [18:52:46]line Контрольно-Кассовый Чек [18:52:46]line ПРОДАЖА [18:52:46]line ТРК (МРК, ГНК) : 12 [18:52:46]line Товар: 2710124130 [18:52:46]line Аи-92-К-5 [18:52:46]line 7.480 * 66.90 [18:52:46]line = 500.41 [18:52:46]line НДС 12% НСП 1% [18:52:46]line > о реализуемом товаре [18:52:46]line ОКРУГЛЕНИЕ: -0.41 [18:52:46]line ИТОГО: 500.00 [18:52:46]line Внесено: 500.00 [18:52:46]line СДАЧА: 0.00 [18:52:46]line НСП 1% : 4.43 [18:52:46]line НДС 12% : 53.14 [18:52:46]line Наличными: 500.00 [18:52:46]line Безнал.: 0.00 [18:52:46]line Место: АЗС № 170 "Партнер Нефть" [18:52:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:52:46]line СНО: Общий режим [18:52:46]line Чек 417 27.10.2024 18:52 [18:52:46]line Смена: 542 ФФД: 1.0 [18:52:46]line ЗНМ: 0300000110 [18:52:46]line РНМ: 0000000000091776 [18:52:46]line Версия ККМ: 001 [18:52:46]line ФМ: 0000000000871754 [18:52:46]line ФД: 192385 [18:52:46]line ФПД: 21481627250770 [18:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192385&fm=21481627250770&tin=02508201610067®Number=0000000000091776&sum=50000 [18:52:46]written 0, free lines is 4095 [18:52:46]OFD Sender: Processing packet 192385 [packets to send 75, broken 74] [18:52:46]ProducePacketName [18:52:46]name=ofd_packets/00192385 [18:52:46]OFD Sender: To server: pG, [18:52:46]CommunicateWithHost lk.salyk.kg:30040 [18:52:46]ConnectInit lk.salyk.kg [18:52:46]Connected sock=11 [18:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 41 07 01 8B 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FD 8B 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EF 02 00 35 04 06 00 13 89 94 C2 F0 52 38 44 EC 4F A7 FE A1 CC [18:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 84 47 00 89 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 EF 02 00 F4 03 04 00 C4 30 1E 67 B6 04 01 00 00 43 C3 85 8D 10 25 71 1E [18:52:46]CommunicateWithHost err = 0 [18:52:46]CheckOFDResponse [18:52:46]1017 (14) - 77093643461234 [18:52:46]1041 (16) - 0000000000871754 [18:52:46]1040 (4) - 192385 [18:52:46]1012 (4) - 27.10.2024 12:23 [18:52:46]1206 (1) - 0 [18:52:46]OFD Sender: Remove packet 192385 [18:52:46]ProducePacketName [18:52:46]name=ofd_packets/00192385 [18:52:46]NVStorageDeleteData [18:52:47]Write to MH i2c: 01 00 00 2B 08 33 [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: 01 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: 01 07 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 B3 0C F9 [18:52:47]RasterBufferAndPrint [18:52:47]line [18:52:47]line [18:52:47]line [18:52:47]line [18:52:47]line [18:52:47]written 0, free lines is 3258 [18:52:47]MH_Cut [18:52:47]Write to MH i2c: D1 01 00 32 08 01 0C [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: D1 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: D1 01 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: D1 01 00 32 08 00 0B [18:52:47]Write to MH i2c: 01 00 00 33 08 3B [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]OFD Sender: No OFD packet to send [18:52:47]*** Cut start [18:52:47]*** Partial cut [18:52:47]*** CUTSNS_PIN = 1 [18:52:47]*** CUTSNS_PIN = 0 [18:52:48]*** Brake cut motor [18:52:48]Read from MH i2c: 01 [18:52:48]MH_I2C_Read... [18:52:48]*** Stop cut motor [18:52:48]*** Cut end [18:52:48]Read from MH i2c: 01 07 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [18:52:48]process_action close_receipt done [18:52:48]requested_data is exist [18:52:48]produce_requested_data [18:52:48]requested_item fm.sn is exist - process it [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 11 00 00 [18:52:48]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 17 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [18:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:52:48]wFMCommunicate OK [18:52:48]requested_item fd.num is exist - process it [18:52:48]SAM_PROTO_GetFieldsCounters [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 13 00 00 [18:52:48]Write to MH i2c: E2 08 00 35 08 80 13 00 00 00 00 00 00 B9 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 62 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 62 00 35 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:48]wFMCommunicate OK [18:52:48]SAM_PROTO_GetFieldsCounters done [18:52:48]requested_item shift.num is exist - process it [18:52:48]requested_item shift.opened is exist - process it [18:52:48]req_shift_opened [18:52:48]FM_GetShiftState [18:52:48]SAM_PROTO_GetShiftState [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 13 01 00 [18:52:48]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 0E 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [18:52:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:52:48]wFMCommunicate OK [18:52:48]SAM_PROTO_GetShiftState done [18:52:48]FM_GetShiftState done [18:52:48]req_shift_opened done [18:52:48]requested_item shift.open_date is exist - process it [18:52:48]req_shift_open_date [18:52:48]req_shift_open_date done [18:52:48]produce_requested_data done [18:52:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192385,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:52:48]process_action_free close_receipt [18:52:48]json_value_free [18:52:48]json_value_free done [18:52:48]process_json_proto returns [18:52:48]Send response to host [18:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192385,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:52:48]free response buf [18:52:48]execute_script done [18:52:48]execute_script returns [18:52:48]free content buf [18:52:48]Sock 7.Close socket [18:52:48]Sock 7.Thread stoped [18:52:52]OFD Sender: No OFD packet to send [18:52:57]accept exits with 10 [18:52:57]New connection [18:52:57]New thread 3066707300 created [18:52:57]Thread 3066563940 joined [18:52:57]Waiting for new connection... [18:52:57] Sock 10.Parse request [18:52:57]Sock 10.Check first char [18:52:57]Sock 10.First char is OK [18:52:57]request: POST /json_proto HTTP/1.0 [18:52:57]Method: POST [18:52:57]URL: /json_proto [18:52:57]Method is POST - this is cgi request [18:52:57]url: /json_proto [18:52:57]query_string will be loaded in cgi processing [18:52:57]execute_cgi json_proto POST (null) [18:52:57]execute_cgi path=json_proto method=POST [18:52:57]POST find Content-Length [18:52:57]Host: 172.17.63.131:8080 [18:52:57]Content-Length: 676 [18:52:57]Content-Type: application/json [18:52:57] [18:52:57]POST finish read [18:52:57]Found Content-Length = 676 [18:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:57]execute_script... [18:52: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)31703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:57]POST & json_proto [18:52:57]process_json_proto [18:52:57]json parsed OK: [18:52:57]protocol is kg_v1.0 [18:52:57]action value=close_receipt [18:52:57]process_action close_receipt [18:52:57]cmd_close_receipt [18:52:57]MH_GetDate [18:52:57]Write to MH i2c: F0 00 00 37 08 2E [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: F0 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: F0 09 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: F0 09 00 37 08 00 0A 8C 1E 67 22 05 6E 64 4B [18:52:57]GetLastDocTimeStamp 1730055165 [18:52:57]current date 1730055178 [18:52:57]FM_GetShiftState [18:52:57]SAM_PROTO_GetShiftState [18:52:57]wFMCommunicate request_size=4 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 13 01 00 [18:52:57]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 0E 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [18:52:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:52:57]wFMCommunicate OK [18:52:57]SAM_PROTO_GetShiftState done [18:52:57]FM_GetShiftState done [18:52:57]opened in 1729989159 [18:52:57]opened+sec_in_day 1730075559 [18:52:57]quantity*price = 30038 [18:52:57]sum+1 = 30039 [18:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 418 27.10.2024 18:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192386 ФПД: 186997448838735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192386&fm=186997448838735&tin=02508201610067®Number=0000000000091776&sum=30000 [18:52:58]StoreToDocumentArchive [18:52:58]shift 542 fd 192386 [18:52:58]save to /storage/0542/doc_00192386 [18:52:58]save last doc name /storage/0542/doc_00192386 to /storage/kkm_last_doc_name [18:52:58]save OK [18:52:58]Clear old archive folders... [18:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:58]tlvbuf is 019C0790 [18:52:58]SAM_PROTO_ClearQueue [18:52:58]wFMCommunicate request_size=4 [18:52:58]MH_SAM_APDU [18:52:58]CAPDU: 80 09 00 00 [18:52:58]Write to MH i2c: E2 08 00 45 08 80 09 00 00 00 00 00 00 BF [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [18:52:58]RAPDU: 90 00 [18:52:58]wFMCommunicate OK [18:52:58]SAM_PROTO_ClearQueue done [18:52:58]KKMCreateOFDPacket [18:52:58]OFDProtocolAddRootSTLVToBuf [18:52:58]FM_MakeSignedData [18:52:58]FM_MakeSignedData [18:52:58]SAM_PROTO_SignData [18:52:58]wFMCommunicate request_size=4 [18:52:58]MH_SAM_APDU [18:52:58]CAPDU: 80 0D 01 02 [18:52:58]Write to MH i2c: E2 08 00 46 08 80 0D 01 02 00 00 00 00 C7 [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [18:52:58]RAPDU: 90 00 [18:52:58]wFMCommunicate OK [18:52:58]wFMCommunicate request_size=255 [18:52:58]MH_SAM_APDU [18:52: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 0A 8C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EF 02 00 35 04 06 00 AA [18:52:58]Write to MH i2c: E2 02 01 47 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A2 01 00 00 F4 03 04 00 0A 8C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EF 02 00 35 04 06 00 AA 00 00 4A [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [18:52:58]RAPDU: 90 00 [18:52:58]wFMCommunicate OK [18:52:58]wFMCommunicate request_size=10 [18:52:58]MH_SAM_APDU [18:52:58]CAPDU: 80 0D 02 02 05 12 BC 83 0E 4F [18:52:58]Write to MH i2c: E2 0D 00 48 08 80 0D 02 02 05 00 12 BC 83 0E 4F 00 00 82 [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [18:52:58]RAPDU: 90 00 [18:52:58]wFMCommunicate OK [18:52:58]wFMCommunicate request_size=4 [18:52:58]MH_SAM_APDU [18:52:58]CAPDU: 80 0D 03 02 [18:52:58]Write to MH i2c: E2 08 00 49 08 80 0D 03 02 00 00 00 00 CC [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 0B 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 0B 00 49 08 00 44 B0 EC AE 51 11 DF F2 90 00 8E [18:52:58]RAPDU: 44 B0 EC AE 51 11 DF F2 90 00 [18:52:58]wFMCommunicate OK [18:52:58]SAM_PROTO_SignData done [18:52:58]FM_MakeSignedData done [18:52:58]CreateOFDProtocolMessage [18:52:58]wFMCommunicate request_size=4 [18:52:58]MH_SAM_APDU [18:52:58]CAPDU: 80 11 00 00 [18:52:58]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 17 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [18:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:52:58]wFMCommunicate OK [18:52:58]CreateOFDProtocolMessage done [18:52:58]OFDSenderStorePacket 192386 [18:52:58]StoreOFDPacket docnum=192386 [18:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 84 07 01 1B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 0A 8C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EF 02 00 35 04 06 00 AA 12 BC 83 0E 4F 44 B0 EC AE 51 11 DF F2 [18:52:58]CheckFolder [18:52:58]dirname=/storage/ofd_packets [18:52:58]CheckFolder done [18:52:58]ProducePacketName [18:52:58]name=ofd_packets/00192386 [18:52:58]NVStorageSaveData ofd_packets/00192386 [18:52:58]File name is /storage/ofd_packets/00192386 [18:52:58]Write 301 bytes [18:52:58]NVStorageSaveData done [18:52:58]OFDSenderStorePacket done [18:52:58]KKMCreateOFDPacket done [18:52:58]NVStorageSaveData kkm_last_timestamp [18:52:58]File name is /storage/kkm_last_timestamp [18:52:58]Write 4 bytes [18:52:58]NVStorageSaveData done [18:52:58]ExternCall_PrintAddStr [18:52:58]wPrintStart [18:52:58]Write to MH i2c: 01 00 00 4B 08 53 [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [18:52:58]RasterBufferAndPrint [18:52:58]line Счет N : (1)31703 [18:52:58]line ИНН: 02508201610067 [18:52:58]line Контрольно-Кассовый Чек [18:52:58]line ПРОДАЖА [18:52:58]line ТРК (МРК, ГНК) : 21 [18:52:58]line Товар: 2710124130 [18:52:58]line Аи-92-К-5 [18:52:58]line 4.490 * 66.90 [18:52:58]line = 300.38 [18:52:58]line НДС 12% НСП 1% [18:52:58]line > о реализуемом товаре [18:52:58]line ОКРУГЛЕНИЕ: -0.38 [18:52:58]line ИТОГО: 300.00 [18:52:58]line Внесено: 300.00 [18:52:58]line СДАЧА: 0.00 [18:52:58]line НСП 1% : 2.66 [18:52:58]line НДС 12% : 31.90 [18:52:58]line Наличными: 300.00 [18:52:58]line Безнал.: 0.00 [18:52:58]line Место: АЗС № 170 "Партнер Нефть" [18:52:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:52:58]line СНО: Общий режим [18:52:58]line Чек 418 27.10.2024 18:52 [18:52:58]line Смена: 542 ФФД: 1.0 [18:52:58]line ЗНМ: 0300000110 [18:52:58]line РНМ: 0000000000091776 [18:52:58]line Версия ККМ: 001 [18:52:58]line ФМ: 0000000000871754 [18:52:58]line ФД: 192386 [18:52:58]line ФПД: 186997448838735 [18:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192386&fm=186997448838735&tin=02508201610067®Number=0000000000091776&sum=30000 [18:52:58]written 0, free lines is 4095 [18:52:58]OFD Sender: Processing packet 192386 [packets to send 75, broken 74] [18:52:58]ProducePacketName [18:52:58]name=ofd_packets/00192386 [18:52:58]OFD Sender: To server: pG, [18:52:58]CommunicateWithHost lk.salyk.kg:30040 [18:52:58]ConnectInit lk.salyk.kg [18:52:58]Connected sock=11 [18:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 84 07 01 1B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 0A 8C 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EF 02 00 35 04 06 00 AA 12 BC 83 0E 4F 44 B0 EC AE 51 11 DF F2 [18:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 DE 47 00 2F 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 EF 02 00 F4 03 04 00 D0 30 1E 67 B6 04 01 00 00 90 BE E5 50 55 37 AE 37 [18:52:59]CommunicateWithHost err = 0 [18:52:59]CheckOFDResponse [18:52:59]1017 (14) - 77093643461234 [18:52:59]1041 (16) - 0000000000871754 [18:52:59]1040 (4) - 192386 [18:52:59]1012 (4) - 27.10.2024 12:23 [18:52:59]1206 (1) - 0 [18:52:59]OFD Sender: Remove packet 192386 [18:52:59]ProducePacketName [18:52:59]name=ofd_packets/00192386 [18:52:59]NVStorageDeleteData [18:52:59]Write to MH i2c: 01 00 00 76 08 7E [18:52:59]Write i2c OK [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: 01 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: 01 07 00 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 C3 0C 54 [18:52:59]RasterBufferAndPrint [18:52:59]line [18:52:59]line [18:52:59]line [18:52:59]line [18:52:59]line [18:52:59]written 0, free lines is 3279 [18:52:59]MH_Cut [18:52:59]Write to MH i2c: D1 01 00 7D 08 01 57 [18:52:59]Write i2c OK [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: D1 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: D1 01 00 [18:52:59]MH_I2C_Read... [18:52:59]Read from MH i2c: D1 01 00 7D 08 00 56 [18:52:59]Write to MH i2c: 01 00 00 7E 08 86 [18:52:59]Write i2c OK [18:52:59]MH_I2C_Read... [18:52:59]OFD Sender: No OFD packet to send [18:53:00]*** Cut start [18:53:00]*** Partial cut [18:53:00]*** CUTSNS_PIN = 1 [18:53:00]*** CUTSNS_PIN = 0 [18:53:00]*** Brake cut motor [18:53:00]Read from MH i2c: 01 [18:53:00]MH_I2C_Read... [18:53:00]*** Stop cut motor [18:53:00]*** Cut end [18:53:00]Read from MH i2c: 01 07 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [18:53:00]process_action close_receipt done [18:53:00]requested_data is exist [18:53:00]produce_requested_data [18:53:00]requested_item fm.sn is exist - process it [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 11 00 00 [18:53:00]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 17 00 [18:53:00]MH_I2C_Read... [18:53:00]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 37 35 34 90 00 54 [18:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:53:00]wFMCommunicate OK [18:53:00]requested_item fd.num is exist - process it [18:53:00]SAM_PROTO_GetFieldsCounters [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 13 00 00 [18:53:00]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:01]Read from MH i2c: E2 [18:53:01]MH_I2C_Read... [18:53:01]Read from MH i2c: E2 62 00 [18:53:01]MH_I2C_Read... [18:53:01]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:01]wFMCommunicate OK [18:53:01]SAM_PROTO_GetFieldsCounters done [18:53:01]requested_item shift.num is exist - process it [18:53:01]requested_item shift.opened is exist - process it [18:53:01]req_shift_opened [18:53:01]FM_GetShiftState [18:53:01]SAM_PROTO_GetShiftState [18:53:01]wFMCommunicate request_size=4 [18:53:01]MH_SAM_APDU [18:53:01]CAPDU: 80 13 01 00 [18:53:01]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [18:53:01]Write i2c OK [18:53:01]MH_I2C_Read... [18:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:01]Read from MH i2c: E2 [18:53:01]MH_I2C_Read... [18:53:01]Read from MH i2c: E2 0E 00 [18:53:01]MH_I2C_Read... [18:53:01]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [18:53:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:53:01]wFMCommunicate OK [18:53:01]SAM_PROTO_GetShiftState done [18:53:01]FM_GetShiftState done [18:53:01]req_shift_opened done [18:53:01]requested_item shift.open_date is exist - process it [18:53:01]req_shift_open_date [18:53:01]req_shift_open_date done [18:53:01]produce_requested_data done [18:53:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192386,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:53:01]process_action_free close_receipt [18:53:01]json_value_free [18:53:01]json_value_free done [18:53:01]process_json_proto returns [18:53:01]Send response to host [18:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192386,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:53:01]free response buf [18:53:01]execute_script done [18:53:01]execute_script returns [18:53:01]free content buf [18:53:01]Sock 10.Close socket [18:53:01]Sock 10.Thread stoped [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:03]accept exits with 9 [18:58:03]New connection [18:58:03]New thread 3066563940 created [18:58:03]Thread 3066707300 joined [18:58:03]Waiting for new connection... [18:58:03] Sock 9.Parse request [18:58:03]Sock 9.Check first char [18:58:03]Sock 9.First char is OK [18:58:03]request: POST /json_proto HTTP/1.0 [18:58:03]Method: POST [18:58:03]URL: /json_proto [18:58:03]Method is POST - this is cgi request [18:58:03]url: /json_proto [18:58:03]query_string will be loaded in cgi processing [18:58:03]execute_cgi json_proto POST (null) [18:58:03]execute_cgi path=json_proto method=POST [18:58:03]POST find Content-Length [18:58:03]Host: 172.17.63.131:8080 [18:58:03]Content-Length: 678 [18:58:03]Content-Type: application/json [18:58:03] [18:58:03]POST finish read [18:58:03]Found Content-Length = 678 [18:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.830, "sum" : 992.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 992.00, "payments": [ { "type": 0, "sum" : 992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:03]execute_script... [18:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.830, "sum" : 992.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 992.00, "payments": [ { "type": 0, "sum" : 992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:03]POST & json_proto [18:58:03]process_json_proto [18:58:03]json parsed OK: [18:58:03]protocol is kg_v1.0 [18:58:03]action value=close_receipt [18:58:03]process_action close_receipt [18:58:03]cmd_close_receipt [18:58:03]MH_GetDate [18:58:03]Write to MH i2c: F0 00 00 82 08 79 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: F0 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: F0 09 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: F0 09 00 82 08 00 3C 8D 1E 67 22 05 6E 64 C9 [18:58:03]GetLastDocTimeStamp 1730055178 [18:58:03]current date 1730055484 [18:58:03]FM_GetShiftState [18:58:03]SAM_PROTO_GetShiftState [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 13 01 00 [18:58:03]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 49 [18:58:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:58:03]wFMCommunicate OK [18:58:03]SAM_PROTO_GetShiftState done [18:58:03]FM_GetShiftState done [18:58:03]opened in 1729989159 [18:58:03]opened+sec_in_day 1730075559 [18:58:03]quantity*price = 99212 [18:58:03]sum+1 = 99214 [18:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 992.00 Внесено: 1000.00 СДАЧА: 8.00 НСП 1% : 8.78 НДС 12% : 105.36 Наличными: 992.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 419 27.10.2024 18:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192387 ФПД: 250104488078165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185804&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192387&fm=250104488078165&tin=02508201610067®Number=0000000000091776&sum=99200 [18:58:04]StoreToDocumentArchive [18:58:04]shift 542 fd 192387 [18:58:04]save to /storage/0542/doc_00192387 [18:58:04]save last doc name /storage/0542/doc_00192387 to /storage/kkm_last_doc_name [18:58:04]save OK [18:58:04]Clear old archive folders... [18:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:04]tlvbuf is 0196C760 [18:58:04]SAM_PROTO_ClearQueue [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 09 00 00 [18:58:04]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 03 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [18:58:04]RAPDU: 90 00 [18:58:04]wFMCommunicate OK [18:58:04]SAM_PROTO_ClearQueue done [18:58:04]KKMCreateOFDPacket [18:58:04]OFDProtocolAddRootSTLVToBuf [18:58:04]FM_MakeSignedData [18:58:04]FM_MakeSignedData [18:58:04]SAM_PROTO_SignData [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 0D 01 02 [18:58:04]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 03 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [18:58:04]RAPDU: 90 00 [18:58:04]wFMCommunicate OK [18:58:04]wFMCommunicate request_size=255 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 83 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 29 00 00 00 00 07 04 06 00 80 83 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 3C 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EF 02 00 35 04 06 00 E3 [18:58:04]Write to MH i2c: E2 02 01 92 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 EE 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 83 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 29 00 00 00 00 07 04 06 00 80 83 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 3C 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EF 02 00 35 04 06 00 E3 00 00 C8 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:05]OFD Sender: No OFD packet to send [18:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]wFMCommunicate request_size=10 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 02 02 05 77 FD 2B 2B 55 [18:58:05]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 77 FD 2B 2B 55 00 00 3E [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 03 02 [18:58:05]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0B 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0B 00 94 08 00 E6 B4 73 EA FB 48 4D 20 90 00 BF [18:58:05]RAPDU: E6 B4 73 EA FB 48 4D 20 90 00 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_SignData done [18:58:05]FM_MakeSignedData done [18:58:05]CreateOFDProtocolMessage [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 11 00 00 [18:58:05]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [18:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:05]wFMCommunicate OK [18:58:05]CreateOFDProtocolMessage done [18:58:05]OFDSenderStorePacket 192387 [18:58:05]StoreOFDPacket docnum=192387 [18:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 65 07 01 83 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 83 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 29 00 00 00 00 07 04 06 00 80 83 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 3C 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EF 02 00 35 04 06 00 E3 77 FD 2B 2B 55 E6 B4 73 EA FB 48 4D 20 [18:58:05]CheckFolder [18:58:05]dirname=/storage/ofd_packets [18:58:05]CheckFolder done [18:58:05]ProducePacketName [18:58:05]name=ofd_packets/00192387 [18:58:05]NVStorageSaveData ofd_packets/00192387 [18:58:05]File name is /storage/ofd_packets/00192387 [18:58:05]Write 301 bytes [18:58:05]NVStorageSaveData done [18:58:05]OFDSenderStorePacket done [18:58:05]KKMCreateOFDPacket done [18:58:05]NVStorageSaveData kkm_last_timestamp [18:58:05]File name is /storage/kkm_last_timestamp [18:58:05]Write 4 bytes [18:58:05]NVStorageSaveData done [18:58:05]ExternCall_PrintAddStr [18:58:05]wPrintStart [18:58:05]Write to MH i2c: 01 00 00 96 08 9E [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 07 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [18:58:05]RasterBufferAndPrint [18:58:05]line Счет N : (1)31704 [18:58:05]line ИНН: 02508201610067 [18:58:05]line Контрольно-Кассовый Чек [18:58:05]line ПРОДАЖА [18:58:05]line ТРК (МРК, ГНК) : 12 [18:58:05]line Товар: 2710124130 [18:58:05]line Аи-92-К-5 [18:58:05]line 14.830 * 66.90 [18:58:05]line = 992.13 [18:58:05]line НДС 12% НСП 1% [18:58:05]line > о реализуемом товаре [18:58:05]line ОКРУГЛЕНИЕ: -0.13 [18:58:05]line ИТОГО: 992.00 [18:58:05]line Внесено: 1000.00 [18:58:05]line СДАЧА: 8.00 [18:58:05]line НСП 1% : 8.78 [18:58:05]line НДС 12% : 105.36 [18:58:05]line Наличными: 992.00 [18:58:05]line Безнал.: 0.00 [18:58:05]line Место: АЗС № 170 "Партнер Нефть" [18:58:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:58:05]line СНО: Общий режим [18:58:05]line Чек 419 27.10.2024 18:58 [18:58:05]line Смена: 542 ФФД: 1.0 [18:58:05]line ЗНМ: 0300000110 [18:58:05]line РНМ: 0000000000091776 [18:58:05]line Версия ККМ: 001 [18:58:05]line ФМ: 0000000000871754 [18:58:05]line ФД: 192387 [18:58:05]line ФПД: 250104488078165 [18:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185804&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192387&fm=250104488078165&tin=02508201610067®Number=0000000000091776&sum=99200 [18:58:05]OFD Sender: Processing packet 192387 [packets to send 75, broken 74] [18:58:05]ProducePacketName [18:58:05]name=ofd_packets/00192387 [18:58:05]OFD Sender: To server: pG, [18:58:05]CommunicateWithHost lk.salyk.kg:30040 [18:58:05]ConnectInit lk.salyk.kg [18:58:05]written 0, free lines is 4095 [18:58:05]Connected sock=10 [18:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 65 07 01 83 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 83 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 29 00 00 00 00 07 04 06 00 80 83 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 3C 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EF 02 00 35 04 06 00 E3 77 FD 2B 2B 55 E6 B4 73 EA FB 48 4D 20 [18:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 F6 47 00 6B B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 EF 02 00 F4 03 04 00 03 32 1E 67 B6 04 01 00 00 17 8C 83 01 82 09 37 DF [18:58:05]CommunicateWithHost err = 0 [18:58:05]CheckOFDResponse [18:58:05]1017 (14) - 77093643461234 [18:58:05]1041 (16) - 0000000000871754 [18:58:05]1040 (4) - 192387 [18:58:05]1012 (4) - 27.10.2024 12:28 [18:58:05]1206 (1) - 0 [18:58:05]OFD Sender: Remove packet 192387 [18:58:05]ProducePacketName [18:58:05]name=ofd_packets/00192387 [18:58:05]NVStorageDeleteData [18:58:06]Write to MH i2c: 01 00 00 C1 08 C9 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 B0 0C 8C [18:58:06]RasterBufferAndPrint [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]written 0, free lines is 3255 [18:58:06]MH_Cut [18:58:06]Write to MH i2c: D1 01 00 C8 08 01 A2 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 01 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 01 00 C8 08 00 A1 [18:58:06]Write to MH i2c: 01 00 00 C9 08 D1 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]OFD Sender: No OFD packet to send [18:58:06]*** Cut start [18:58:06]*** Partial cut [18:58:06]*** CUTSNS_PIN = 1 [18:58:07]*** CUTSNS_PIN = 0 [18:58:07]*** Brake cut motor [18:58:07]Read from MH i2c: 01 [18:58:07]MH_I2C_Read... [18:58:07]*** Stop cut motor [18:58:07]*** Cut end [18:58:07]Read from MH i2c: 01 07 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [18:58:07]process_action close_receipt done [18:58:07]requested_data is exist [18:58:07]produce_requested_data [18:58:07]requested_item fm.sn is exist - process it [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 11 00 00 [18:58:07]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [18:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:07]wFMCommunicate OK [18:58:07]requested_item fd.num is exist - process it [18:58:07]SAM_PROTO_GetFieldsCounters [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 13 00 00 [18:58:07]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 62 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [18:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_GetFieldsCounters done [18:58:07]requested_item shift.num is exist - process it [18:58:07]requested_item shift.opened is exist - process it [18:58:07]req_shift_opened [18:58:07]FM_GetShiftState [18:58:07]SAM_PROTO_GetShiftState [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 13 01 00 [18:58:07]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:07]Read from MH i2c: E2 0E 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [18:58:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_GetShiftState done [18:58:07]FM_GetShiftState done [18:58:07]req_shift_opened done [18:58:07]requested_item shift.open_date is exist - process it [18:58:07]req_shift_open_date [18:58:07]req_shift_open_date done [18:58:07]produce_requested_data done [18:58:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192387,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:58:07]process_action_free close_receipt [18:58:07]json_value_free [18:58:07]json_value_free done [18:58:07]process_json_proto returns [18:58:07]Send response to host [18:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192387,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:58:07]free response buf [18:58:07]execute_script done [18:58:07]execute_script returns [18:58:07]free content buf [18:58:07]Sock 9.Close socket [18:58:07]Sock 9.Thread stoped [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:28]accept exits with 7 [18:58:28]New connection [18:58:28]New thread 3066707300 created [18:58:28]Thread 3066563940 joined [18:58:28]Waiting for new connection... [18:58:28] Sock 7.Parse request [18:58:28]Sock 7.Check first char [18:58:28]Sock 7.First char is OK [18:58:28]request: POST /json_proto HTTP/1.0 [18:58:28]Method: POST [18:58:28]URL: /json_proto [18:58:28]Method is POST - this is cgi request [18:58:28]url: /json_proto [18:58:28]query_string will be loaded in cgi processing [18:58:28]execute_cgi json_proto POST (null) [18:58:28]execute_cgi path=json_proto method=POST [18:58:28]POST find Content-Length [18:58:28]Host: 172.17.63.131:8080 [18:58:28]Content-Length: 676 [18:58:28]Content-Type: application/json [18:58:28] [18:58:28]POST finish read [18:58:28]Found Content-Length = 676 [18:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:28]execute_script... [18:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:28]POST & json_proto [18:58:28]process_json_proto [18:58:28]json parsed OK: [18:58:28]protocol is kg_v1.0 [18:58:28]action value=close_receipt [18:58:28]process_action close_receipt [18:58:28]cmd_close_receipt [18:58:28]MH_GetDate [18:58:28]Write to MH i2c: F0 00 00 CD 08 C4 [18:58:28]Write i2c OK [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 09 00 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 09 00 CD 08 00 55 8D 1E 67 22 05 6E 64 2D [18:58:28]GetLastDocTimeStamp 1730055484 [18:58:28]current date 1730055509 [18:58:28]FM_GetShiftState [18:58:28]SAM_PROTO_GetShiftState [18:58:28]wFMCommunicate request_size=4 [18:58:28]MH_SAM_APDU [18:58:28]CAPDU: 80 13 01 00 [18:58:28]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [18:58:28]Write i2c OK [18:58:28]MH_I2C_Read... [18:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:28]Read from MH i2c: E2 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: E2 0E 00 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 94 [18:58:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:58:28]wFMCommunicate OK [18:58:28]SAM_PROTO_GetShiftState done [18:58:28]FM_GetShiftState done [18:58:28]opened in 1729989159 [18:58:28]opened+sec_in_day 1730075559 [18:58:28]quantity*price = 50041 [18:58:28]sum+1 = 50042 [18:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 420 27.10.2024 18:58 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192388 ФПД: 130383097688366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192388&fm=130383097688366&tin=02508201610067®Number=0000000000091776&sum=50000 [18:58:29]StoreToDocumentArchive [18:58:29]shift 542 fd 192388 [18:58:29]save to /storage/0542/doc_00192388 [18:58:29]save last doc name /storage/0542/doc_00192388 to /storage/kkm_last_doc_name [18:58:29]save OK [18:58:29]Clear old archive folders... [18:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:29]tlvbuf is 0196C320 [18:58:29]SAM_PROTO_ClearQueue [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 09 00 00 [18:58:29]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]SAM_PROTO_ClearQueue done [18:58:29]KKMCreateOFDPacket [18:58:29]OFDProtocolAddRootSTLVToBuf [18:58:29]FM_MakeSignedData [18:58:29]FM_MakeSignedData [18:58:29]SAM_PROTO_SignData [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 0D 01 02 [18:58:29]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]wFMCommunicate request_size=255 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 55 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EF 02 00 35 04 06 00 76 [18:58:29]Write to MH i2c: E2 02 01 DD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 55 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EF 02 00 35 04 06 00 76 00 00 08 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:30]Read from MH i2c: E2 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 03 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [18:58:30]RAPDU: 90 00 [18:58:30]wFMCommunicate OK [18:58:30]wFMCommunicate request_size=10 [18:58:30]MH_SAM_APDU [18:58:30]CAPDU: 80 0D 02 02 05 95 2E 38 F1 2E [18:58:30]Write to MH i2c: E2 0D 00 DE 08 80 0D 02 02 05 00 95 2E 38 F1 2E 00 00 84 [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:30]Read from MH i2c: E2 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 03 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [18:58:30]RAPDU: 90 00 [18:58:30]wFMCommunicate OK [18:58:30]wFMCommunicate request_size=4 [18:58:30]MH_SAM_APDU [18:58:30]CAPDU: 80 0D 03 02 [18:58:30]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:30]Read from MH i2c: E2 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 0B 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 0B 00 DF 08 00 33 20 D9 CE 16 70 45 F0 90 00 18 [18:58:30]RAPDU: 33 20 D9 CE 16 70 45 F0 90 00 [18:58:30]wFMCommunicate OK [18:58:30]SAM_PROTO_SignData done [18:58:30]FM_MakeSignedData done [18:58:30]CreateOFDProtocolMessage [18:58:30]wFMCommunicate request_size=4 [18:58:30]MH_SAM_APDU [18:58:30]CAPDU: 80 11 00 00 [18:58:30]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:30]Read from MH i2c: E2 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 17 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [18:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:30]wFMCommunicate OK [18:58:30]CreateOFDProtocolMessage done [18:58:30]OFDSenderStorePacket 192388 [18:58:30]StoreOFDPacket docnum=192388 [18:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 08 07 01 9B 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 55 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EF 02 00 35 04 06 00 76 95 2E 38 F1 2E 33 20 D9 CE 16 70 45 F0 [18:58:30]CheckFolder [18:58:30]dirname=/storage/ofd_packets [18:58:30]CheckFolder done [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00192388 [18:58:30]NVStorageSaveData ofd_packets/00192388 [18:58:30]File name is /storage/ofd_packets/00192388 [18:58:30]Write 301 bytes [18:58:30]NVStorageSaveData done [18:58:30]OFDSenderStorePacket done [18:58:30]KKMCreateOFDPacket done [18:58:30]NVStorageSaveData kkm_last_timestamp [18:58:30]File name is /storage/kkm_last_timestamp [18:58:30]Write 4 bytes [18:58:30]NVStorageSaveData done [18:58:30]ExternCall_PrintAddStr [18:58:30]wPrintStart [18:58:30]Write to MH i2c: 01 00 00 E1 08 E9 [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 07 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [18:58:30]RasterBufferAndPrint [18:58:30]line Счет N : (1)31705 [18:58:30]line ИНН: 02508201610067 [18:58:30]line Контрольно-Кассовый Чек [18:58:30]line ПРОДАЖА [18:58:30]line ТРК (МРК, ГНК) : 21 [18:58:30]line Товар: 2710124130 [18:58:30]line Аи-92-К-5 [18:58:30]line 7.480 * 66.90 [18:58:30]line = 500.41 [18:58:30]line НДС 12% НСП 1% [18:58:30]line > о реализуемом товаре [18:58:30]line ОКРУГЛЕНИЕ: -0.41 [18:58:30]line ИТОГО: 500.00 [18:58:30]line Внесено: 500.00 [18:58:30]line СДАЧА: 0.00 [18:58:30]line НСП 1% : 4.43 [18:58:30]line НДС 12% : 53.14 [18:58:30]line Наличными: 500.00 [18:58:30]line Безнал.: 0.00 [18:58:30]line Место: АЗС № 170 "Партнер Нефть" [18:58:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:58:30]line СНО: Общий режим [18:58:30]line Чек 420 27.10.2024 18:58 [18:58:30]line Смена: 542 ФФД: 1.0 [18:58:30]line ЗНМ: 0300000110 [18:58:30]line РНМ: 0000000000091776 [18:58:30]line Версия ККМ: 001 [18:58:30]line ФМ: 0000000000871754 [18:58:30]line ФД: 192388 [18:58:30]line ФПД: 130383097688366 [18:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185829&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192388&fm=130383097688366&tin=02508201610067®Number=0000000000091776&sum=50000 [18:58:30]OFD Sender: Processing packet 192388 [packets to send 75, broken 74] [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00192388 [18:58:30]OFD Sender: To server: pG, [18:58:30]CommunicateWithHost lk.salyk.kg:30040 [18:58:30]ConnectInit lk.salyk.kg [18:58:30]written 0, free lines is 4095 [18:58:30]Connected sock=10 [18:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 08 07 01 9B 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 55 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EF 02 00 35 04 06 00 76 95 2E 38 F1 2E 33 20 D9 CE 16 70 45 F0 [18:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5B A3 47 00 A3 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 EF 02 00 F4 03 04 00 1C 32 1E 67 B6 04 01 00 00 1D BF 25 4E 2D E5 C5 80 [18:58:30]CommunicateWithHost err = 0 [18:58:30]CheckOFDResponse [18:58:30]1017 (14) - 77093643461234 [18:58:30]1041 (16) - 0000000000871754 [18:58:30]1040 (4) - 192388 [18:58:30]1012 (4) - 27.10.2024 12:29 [18:58:30]1206 (1) - 0 [18:58:30]OFD Sender: Remove packet 192388 [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00192388 [18:58:30]NVStorageDeleteData [18:58:31]Write to MH i2c: 01 00 00 0C 09 15 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 07 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 BB 0C E3 [18:58:31]RasterBufferAndPrint [18:58:31]line [18:58:31]line [18:58:31]line [18:58:31]line [18:58:31]line [18:58:31]written 0, free lines is 3266 [18:58:31]MH_Cut [18:58:31]Write to MH i2c: D1 01 00 13 09 01 EE [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: D1 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: D1 01 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: D1 01 00 13 09 00 ED [18:58:31]Write to MH i2c: 01 00 00 14 09 1D [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]OFD Sender: No OFD packet to send [18:58:31]*** Cut start [18:58:31]*** Partial cut [18:58:31]*** CUTSNS_PIN = 1 [18:58:31]*** CUTSNS_PIN = 0 [18:58:32]*** Brake cut motor [18:58:32]Read from MH i2c: 01 [18:58:32]MH_I2C_Read... [18:58:32]*** Stop cut motor [18:58:32]*** Cut end [18:58:32]Read from MH i2c: 01 07 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [18:58:32]process_action close_receipt done [18:58:32]requested_data is exist [18:58:32]produce_requested_data [18:58:32]requested_item fm.sn is exist - process it [18:58:32]wFMCommunicate request_size=4 [18:58:32]MH_SAM_APDU [18:58:32]CAPDU: 80 11 00 00 [18:58:32]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:32]Read from MH i2c: E2 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 17 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [18:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:32]wFMCommunicate OK [18:58:32]requested_item fd.num is exist - process it [18:58:32]SAM_PROTO_GetFieldsCounters [18:58:32]wFMCommunicate request_size=4 [18:58:32]MH_SAM_APDU [18:58:32]CAPDU: 80 13 00 00 [18:58:32]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:32]Read from MH i2c: E2 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 62 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 62 00 16 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:32]wFMCommunicate OK [18:58:32]SAM_PROTO_GetFieldsCounters done [18:58:32]requested_item shift.num is exist - process it [18:58:32]requested_item shift.opened is exist - process it [18:58:32]req_shift_opened [18:58:32]FM_GetShiftState [18:58:32]SAM_PROTO_GetShiftState [18:58:32]wFMCommunicate request_size=4 [18:58:32]MH_SAM_APDU [18:58:32]CAPDU: 80 13 01 00 [18:58:32]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:32]Read from MH i2c: E2 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 0E 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [18:58:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [18:58:32]wFMCommunicate OK [18:58:32]SAM_PROTO_GetShiftState done [18:58:32]FM_GetShiftState done [18:58:32]req_shift_opened done [18:58:32]requested_item shift.open_date is exist - process it [18:58:32]req_shift_open_date [18:58:32]req_shift_open_date done [18:58:32]produce_requested_data done [18:58:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192388,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [18:58:32]process_action_free close_receipt [18:58:32]json_value_free [18:58:32]json_value_free done [18:58:32]process_json_proto returns [18:58:32]Send response to host [18:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192388,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [18:58:32]free response buf [18:58:32]execute_script done [18:58:32]execute_script returns [18:58:32]free content buf [18:58:32]Sock 7.Close socket [18:58:32]Sock 7.Thread stoped [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]accept exits with 9 [19:00:31]New connection [19:00:31]New thread 3066563940 created [19:00:31]Thread 3066707300 joined [19:00:31]Waiting for new connection... [19:00:31] Sock 9.Parse request [19:00:31]Sock 9.Check first char [19:00:31]Sock 9.First char is OK [19:00:31]request: POST /json_proto HTTP/1.0 [19:00:31]Method: POST [19:00:31]URL: /json_proto [19:00:31]Method is POST - this is cgi request [19:00:31]url: /json_proto [19:00:31]query_string will be loaded in cgi processing [19:00:31]execute_cgi json_proto POST (null) [19:00:31]execute_cgi path=json_proto method=POST [19:00:31]POST find Content-Length [19:00:31]Host: 172.17.63.131:8080 [19:00:31]Content-Length: 676 [19:00:31]Content-Type: application/json [19:00:31] [19:00:31]POST finish read [19:00:31]Found Content-Length = 676 [19:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:31]execute_script... [19:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:31]POST & json_proto [19:00:31]process_json_proto [19:00:31]json parsed OK: [19:00:31]protocol is kg_v1.0 [19:00:31]action value=close_receipt [19:00:31]process_action close_receipt [19:00:31]cmd_close_receipt [19:00:31]MH_GetDate [19:00:31]Write to MH i2c: F0 00 00 18 09 10 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 09 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: F0 09 00 18 09 00 D0 8D 1E 67 22 05 6E 64 F4 [19:00:31]GetLastDocTimeStamp 1730055509 [19:00:31]current date 1730055632 [19:00:31]FM_GetShiftState [19:00:31]SAM_PROTO_GetShiftState [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 13 01 00 [19:00:31]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [19:00:31]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:00:31]wFMCommunicate OK [19:00:31]SAM_PROTO_GetShiftState done [19:00:31]FM_GetShiftState done [19:00:31]opened in 1729989159 [19:00:31]opened+sec_in_day 1730075559 [19:00:31]quantity*price = 50041 [19:00:31]sum+1 = 50042 [19:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 421 27.10.2024 19:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192389 ФПД: 267125416055553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192389&fm=267125416055553&tin=02508201610067®Number=0000000000091776&sum=50000 [19:00:32]StoreToDocumentArchive [19:00:32]shift 542 fd 192389 [19:00:32]save to /storage/0542/doc_00192389 [19:00:32]save last doc name /storage/0542/doc_00192389 to /storage/kkm_last_doc_name [19:00:32]save OK [19:00:32]Clear old archive folders... [19:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:32]tlvbuf is 01A061D0 [19:00:32]SAM_PROTO_ClearQueue [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 09 00 00 [19:00:32]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]SAM_PROTO_ClearQueue done [19:00:32]KKMCreateOFDPacket [19:00:32]OFDProtocolAddRootSTLVToBuf [19:00:32]FM_MakeSignedData [19:00:32]FM_MakeSignedData [19:00:32]SAM_PROTO_SignData [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 01 02 [19:00:32]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=255 [19:00:32]MH_SAM_APDU [19:00: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D0 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EF 02 00 35 04 06 00 F2 [19:00:32]Write to MH i2c: E2 02 01 28 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 D0 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EF 02 00 35 04 06 00 F2 00 00 4D [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=10 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 02 02 05 F2 FB 88 D3 01 [19:00:32]Write to MH i2c: E2 0D 00 29 09 80 0D 02 02 05 00 F2 FB 88 D3 01 00 00 FF [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 03 02 [19:00:32]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 0B 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 0B 00 2A 09 00 C6 91 21 E5 E8 87 80 65 90 00 60 [19:00:32]RAPDU: C6 91 21 E5 E8 87 80 65 90 00 [19:00:32]wFMCommunicate OK [19:00:32]SAM_PROTO_SignData done [19:00:32]FM_MakeSignedData done [19:00:32]CreateOFDProtocolMessage [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 11 00 00 [19:00:32]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 17 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [19:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:00:32]wFMCommunicate OK [19:00:32]CreateOFDProtocolMessage done [19:00:32]OFDSenderStorePacket 192389 [19:00:32]StoreOFDPacket docnum=192389 [19:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D 4D 07 01 21 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D0 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EF 02 00 35 04 06 00 F2 F2 FB 88 D3 01 C6 91 21 E5 E8 87 80 65 [19:00:32]CheckFolder [19:00:32]dirname=/storage/ofd_packets [19:00:32]CheckFolder done [19:00:32]ProducePacketName [19:00:32]name=ofd_packets/00192389 [19:00:32]NVStorageSaveData ofd_packets/00192389 [19:00:32]File name is /storage/ofd_packets/00192389 [19:00:32]Write 301 bytes [19:00:32]NVStorageSaveData done [19:00:32]OFDSenderStorePacket done [19:00:32]KKMCreateOFDPacket done [19:00:32]NVStorageSaveData kkm_last_timestamp [19:00:32]File name is /storage/kkm_last_timestamp [19:00:32]Write 4 bytes [19:00:32]NVStorageSaveData done [19:00:32]ExternCall_PrintAddStr [19:00:32]wPrintStart [19:00:32]Write to MH i2c: 01 00 00 2C 09 35 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 07 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [19:00:32]RasterBufferAndPrint [19:00:32]line Счет N : (1)31707 [19:00:32]line ИНН: 02508201610067 [19:00:32]line Контрольно-Кассовый Чек [19:00:32]line ПРОДАЖА [19:00:32]line ТРК (МРК, ГНК) : 12 [19:00:32]line Товар: 2710124130 [19:00:32]line Аи-92-К-5 [19:00:32]line 7.480 * 66.90 [19:00:32]line = 500.41 [19:00:32]line НДС 12% НСП 1% [19:00:32]line > о реализуемом товаре [19:00:32]line ОКРУГЛЕНИЕ: -0.41 [19:00:32]line ИТОГО: 500.00 [19:00:32]line Внесено: 500.00 [19:00:32]line СДАЧА: 0.00 [19:00:32]line НСП 1% : 4.43 [19:00:32]line НДС 12% : 53.14 [19:00:32]line Наличными: 500.00 [19:00:32]line Безнал.: 0.00 [19:00:32]line Место: АЗС № 170 "Партнер Нефть" [19:00:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:00:32]line СНО: Общий режим [19:00:32]line Чек 421 27.10.2024 19:00 [19:00:32]line Смена: 542 ФФД: 1.0 [19:00:32]line ЗНМ: 0300000110 [19:00:32]line РНМ: 0000000000091776 [19:00:32]line Версия ККМ: 001 [19:00:32]line ФМ: 0000000000871754 [19:00:32]line ФД: 192389 [19:00:32]line ФПД: 267125416055553 [19:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192389&fm=267125416055553&tin=02508201610067®Number=0000000000091776&sum=50000 [19:00:33]OFD Sender: Processing packet 192389 [packets to send 75, broken 74] [19:00:33]ProducePacketName [19:00:33]name=ofd_packets/00192389 [19:00:33]OFD Sender: To server: pG, [19:00:33]CommunicateWithHost lk.salyk.kg:30040 [19:00:33]ConnectInit lk.salyk.kg [19:00:33]written 0, free lines is 4095 [19:00:33]Connected sock=10 [19:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5D 4D 07 01 21 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D0 8D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EF 02 00 35 04 06 00 F2 F2 FB 88 D3 01 C6 91 21 E5 E8 87 80 65 [19:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D 87 47 00 F4 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 EF 02 00 F4 03 04 00 96 32 1E 67 B6 04 01 00 00 53 EA F9 70 3E A1 D6 45 [19:00:33]CommunicateWithHost err = 0 [19:00:33]CheckOFDResponse [19:00:33]1017 (14) - 77093643461234 [19:00:33]1041 (16) - 0000000000871754 [19:00:33]1040 (4) - 192389 [19:00:33]1012 (4) - 27.10.2024 12:31 [19:00:33]1206 (1) - 0 [19:00:33]OFD Sender: Remove packet 192389 [19:00:33]ProducePacketName [19:00:33]name=ofd_packets/00192389 [19:00:33]NVStorageDeleteData [19:00:33]Write to MH i2c: 01 00 00 57 09 60 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 07 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 AF 0C 22 [19:00:33]RasterBufferAndPrint [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]written 0, free lines is 3253 [19:00:33]MH_Cut [19:00:33]Write to MH i2c: D1 01 00 5E 09 01 39 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 01 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 01 00 5E 09 00 38 [19:00:33]Write to MH i2c: 01 00 00 5F 09 68 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]OFD Sender: No OFD packet to send [19:00:34]*** Cut start [19:00:34]*** Partial cut [19:00:34]*** CUTSNS_PIN = 1 [19:00:34]*** CUTSNS_PIN = 0 [19:00:34]*** Brake cut motor [19:00:34]Read from MH i2c: 01 [19:00:34]MH_I2C_Read... [19:00:34]*** Stop cut motor [19:00:34]*** Cut end [19:00:34]Read from MH i2c: 01 07 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [19:00:34]process_action close_receipt done [19:00:34]requested_data is exist [19:00:34]produce_requested_data [19:00:34]requested_item fm.sn is exist - process it [19:00:34]wFMCommunicate request_size=4 [19:00:34]MH_SAM_APDU [19:00:34]CAPDU: 80 11 00 00 [19:00:34]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 17 00 [19:00:35]MH_I2C_Read... [19:00:35]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 37 35 34 90 00 36 [19:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:00:35]wFMCommunicate OK [19:00:35]requested_item fd.num is exist - process it [19:00:35]SAM_PROTO_GetFieldsCounters [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 00 00 [19:00:35]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 62 00 [19:00:35]MH_I2C_Read... [19:00:35]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [19:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetFieldsCounters done [19:00:35]requested_item shift.num is exist - process it [19:00:35]requested_item shift.opened is exist - process it [19:00:35]req_shift_opened [19:00:35]FM_GetShiftState [19:00:35]SAM_PROTO_GetShiftState [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 01 00 [19:00:35]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [19:00:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetShiftState done [19:00:35]FM_GetShiftState done [19:00:35]req_shift_opened done [19:00:35]requested_item shift.open_date is exist - process it [19:00:35]req_shift_open_date [19:00:35]req_shift_open_date done [19:00:35]produce_requested_data done [19:00:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192389,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:00:35]process_action_free close_receipt [19:00:35]json_value_free [19:00:35]json_value_free done [19:00:35]process_json_proto returns [19:00:35]Send response to host [19:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192389,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:00:35]free response buf [19:00:35]execute_script done [19:00:35]execute_script returns [19:00:35]free content buf [19:00:35]Sock 9.Close socket [19:00:35]Sock 9.Thread stoped [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:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:24]accept exits with 7 [19:02:24]New connection [19:02:24]New thread 3066707300 created [19:02:24]Thread 3066563940 joined [19:02:24]Waiting for new connection... [19:02:24] Sock 7.Parse request [19:02:24]Sock 7.Check first char [19:02:24]Sock 7.First char is OK [19:02:24]request: POST /json_proto HTTP/1.0 [19:02:24]Method: POST [19:02:24]URL: /json_proto [19:02:24]Method is POST - this is cgi request [19:02:24]url: /json_proto [19:02:24]query_string will be loaded in cgi processing [19:02:24]execute_cgi json_proto POST (null) [19:02:24]execute_cgi path=json_proto method=POST [19:02:24]POST find Content-Length [19:02:24]Host: 172.17.63.131:8080 [19:02:24]Content-Length: 676 [19:02:24]Content-Type: application/json [19:02:24] [19:02:24]POST finish read [19:02:24]Found Content-Length = 676 [19:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:24]execute_script... [19:02: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)31708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:24]POST & json_proto [19:02:24]process_json_proto [19:02:24]json parsed OK: [19:02:24]protocol is kg_v1.0 [19:02:24]action value=close_receipt [19:02:24]process_action close_receipt [19:02:24]cmd_close_receipt [19:02:24]MH_GetDate [19:02:24]Write to MH i2c: F0 00 00 63 09 5B [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 09 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 09 00 63 09 00 41 8E 1E 67 22 05 6E 64 B1 [19:02:24]GetLastDocTimeStamp 1730055632 [19:02:24]current date 1730055745 [19:02:24]FM_GetShiftState [19:02:24]SAM_PROTO_GetShiftState [19:02:24]wFMCommunicate request_size=4 [19:02:24]MH_SAM_APDU [19:02:24]CAPDU: 80 13 01 00 [19:02:24]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:24]Read from MH i2c: E2 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2B [19:02:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:02:24]wFMCommunicate OK [19:02:24]SAM_PROTO_GetShiftState done [19:02:24]FM_GetShiftState done [19:02:24]opened in 1729989159 [19:02:24]opened+sec_in_day 1730075559 [19:02:24]quantity*price = 34052 [19:02:24]sum+1 = 34053 [19:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 422 27.10.2024 19:02 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192390 ФПД: 200290820383722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192390&fm=200290820383722&tin=02508201610067®Number=0000000000091776&sum=34000 [19:02:25]StoreToDocumentArchive [19:02:25]shift 542 fd 192390 [19:02:25]save to /storage/0542/doc_00192390 [19:02:25]save last doc name /storage/0542/doc_00192390 to /storage/kkm_last_doc_name [19:02:25]save OK [19:02:25]Clear old archive folders... [19:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:25]tlvbuf is 019658E0 [19:02:25]SAM_PROTO_ClearQueue [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 09 00 00 [19:02:25]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_ClearQueue done [19:02:26]KKMCreateOFDPacket [19:02:26]OFDProtocolAddRootSTLVToBuf [19:02:26]FM_MakeSignedData [19:02:26]FM_MakeSignedData [19:02:26]SAM_PROTO_SignData [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 01 02 [19:02:26]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]wFMCommunicate request_size=255 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 41 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EF 02 00 35 04 06 00 B6 [19:02:26]Write to MH i2c: E2 02 01 73 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 41 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EF 02 00 35 04 06 00 B6 00 00 09 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]wFMCommunicate request_size=10 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 02 02 05 29 D7 33 63 EA [19:02:26]Write to MH i2c: E2 0D 00 74 09 80 0D 02 02 05 00 29 D7 33 63 EA 00 00 81 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 03 02 [19:02:26]Write to MH i2c: E2 08 00 75 09 80 0D 03 02 00 00 00 00 F9 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0B 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0B 00 75 09 00 61 D3 49 64 5E 2B F5 67 90 00 C0 [19:02:26]RAPDU: 61 D3 49 64 5E 2B F5 67 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_SignData done [19:02:26]FM_MakeSignedData done [19:02:26]CreateOFDProtocolMessage [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 11 00 00 [19:02:26]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 17 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [19:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:02:26]wFMCommunicate OK [19:02:26]CreateOFDProtocolMessage done [19:02:26]OFDSenderStorePacket 192390 [19:02:26]StoreOFDPacket docnum=192390 [19:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 44 07 01 77 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 41 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EF 02 00 35 04 06 00 B6 29 D7 33 63 EA 61 D3 49 64 5E 2B F5 67 [19:02:26]CheckFolder [19:02:26]dirname=/storage/ofd_packets [19:02:26]CheckFolder done [19:02:26]ProducePacketName [19:02:26]name=ofd_packets/00192390 [19:02:26]NVStorageSaveData ofd_packets/00192390 [19:02:26]File name is /storage/ofd_packets/00192390 [19:02:26]Write 301 bytes [19:02:26]NVStorageSaveData done [19:02:26]OFDSenderStorePacket done [19:02:26]KKMCreateOFDPacket done [19:02:26]NVStorageSaveData kkm_last_timestamp [19:02:26]File name is /storage/kkm_last_timestamp [19:02:26]Write 4 bytes [19:02:26]NVStorageSaveData done [19:02:26]ExternCall_PrintAddStr [19:02:26]wPrintStart [19:02:26]Write to MH i2c: 01 00 00 77 09 80 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [19:02:26]RasterBufferAndPrint [19:02:26]line Счет N : (1)31708 [19:02:26]line ИНН: 02508201610067 [19:02:26]line Контрольно-Кассовый Чек [19:02:26]line ПРОДАЖА [19:02:26]line ТРК (МРК, ГНК) : 21 [19:02:26]line Товар: 2710124130 [19:02:26]line Аи-92-К-5 [19:02:26]line 5.090 * 66.90 [19:02:26]line = 340.52 [19:02:26]line НДС 12% НСП 1% [19:02:26]line > о реализуемом товаре [19:02:26]line ОКРУГЛЕНИЕ: -0.52 [19:02:26]line ИТОГО: 340.00 [19:02:26]line Внесено: 340.00 [19:02:26]line СДАЧА: 0.00 [19:02:26]line НСП 1% : 3.01 [19:02:26]line НДС 12% : 36.16 [19:02:26]line Наличными: 340.00 [19:02:26]line Безнал.: 0.00 [19:02:26]line Место: АЗС № 170 "Партнер Нефть" [19:02:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:02:26]line СНО: Общий режим [19:02:26]line Чек 422 27.10.2024 19:02 [19:02:26]line Смена: 542 ФФД: 1.0 [19:02:26]line ЗНМ: 0300000110 [19:02:26]line РНМ: 0000000000091776 [19:02:26]line Версия ККМ: 001 [19:02:26]line ФМ: 0000000000871754 [19:02:26]line ФД: 192390 [19:02:26]line ФПД: 200290820383722 [19:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192390&fm=200290820383722&tin=02508201610067®Number=0000000000091776&sum=34000 [19:02:26]OFD Sender: Processing packet 192390 [packets to send 75, broken 74] [19:02:26]ProducePacketName [19:02:26]name=ofd_packets/00192390 [19:02:26]OFD Sender: To server: pG, [19:02:26]CommunicateWithHost lk.salyk.kg:30040 [19:02:26]ConnectInit lk.salyk.kg [19:02:26]written 0, free lines is 4095 [19:02:26]Connected sock=10 [19:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 44 07 01 77 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 41 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EF 02 00 35 04 06 00 B6 29 D7 33 63 EA 61 D3 49 64 5E 2B F5 67 [19:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB 95 47 00 02 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 EF 02 00 F4 03 04 00 08 33 1E 67 B6 04 01 00 00 44 03 56 1F 89 7E 61 FB [19:02:27]CommunicateWithHost err = 0 [19:02:27]CheckOFDResponse [19:02:27]1017 (14) - 77093643461234 [19:02:27]1041 (16) - 0000000000871754 [19:02:27]1040 (4) - 192390 [19:02:27]1012 (4) - 27.10.2024 12:33 [19:02:27]1206 (1) - 0 [19:02:27]OFD Sender: Remove packet 192390 [19:02:27]ProducePacketName [19:02:27]name=ofd_packets/00192390 [19:02:27]NVStorageDeleteData [19:02:27]Write to MH i2c: 01 00 00 A2 09 AB [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: 01 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: 01 07 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 BE 0C 7C [19:02:27]RasterBufferAndPrint [19:02:27]line [19:02:27]line [19:02:27]line [19:02:27]line [19:02:27]line [19:02:27]written 0, free lines is 3268 [19:02:27]MH_Cut [19:02:27]Write to MH i2c: D1 01 00 A9 09 01 84 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: D1 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: D1 01 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: D1 01 00 A9 09 00 83 [19:02:27]Write to MH i2c: 01 00 00 AA 09 B3 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]OFD Sender: No OFD packet to send [19:02:28]*** Cut start [19:02:28]*** Partial cut [19:02:28]*** CUTSNS_PIN = 1 [19:02:28]*** CUTSNS_PIN = 0 [19:02:28]*** Brake cut motor [19:02:28]Read from MH i2c: 01 [19:02:28]MH_I2C_Read... [19:02:28]*** Stop cut motor [19:02:28]*** Cut end [19:02:28]Read from MH i2c: 01 07 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [19:02:28]process_action close_receipt done [19:02:28]requested_data is exist [19:02:28]produce_requested_data [19:02:28]requested_item fm.sn is exist - process it [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 11 00 00 [19:02:28]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [19:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:02:28]wFMCommunicate OK [19:02:28]requested_item fd.num is exist - process it [19:02:28]SAM_PROTO_GetFieldsCounters [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 13 00 00 [19:02:28]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 62 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 62 00 AC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:02:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:29]wFMCommunicate OK [19:02:29]SAM_PROTO_GetFieldsCounters done [19:02:29]requested_item shift.num is exist - process it [19:02:29]requested_item shift.opened is exist - process it [19:02:29]req_shift_opened [19:02:29]FM_GetShiftState [19:02:29]SAM_PROTO_GetShiftState [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 13 01 00 [19:02:29]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0E 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [19:02:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:02:29]wFMCommunicate OK [19:02:29]SAM_PROTO_GetShiftState done [19:02:29]FM_GetShiftState done [19:02:29]req_shift_opened done [19:02:29]requested_item shift.open_date is exist - process it [19:02:29]req_shift_open_date [19:02:29]req_shift_open_date done [19:02:29]produce_requested_data done [19:02:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192390,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:02:29]process_action_free close_receipt [19:02:29]json_value_free [19:02:29]json_value_free done [19:02:29]process_json_proto returns [19:02:29]Send response to host [19:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192390,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:02:29]free response buf [19:02:29]execute_script done [19:02:29]execute_script returns [19:02:29]free content buf [19:02:29]Sock 7.Close socket [19:02:29]Sock 7.Thread stoped [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:09]accept exits with 9 [19:03:09]New connection [19:03:09]New thread 3066563940 created [19:03:09]Thread 3066707300 joined [19:03:09]Waiting for new connection... [19:03:09] Sock 9.Parse request [19:03:09]Sock 9.Check first char [19:03:09]Sock 9.First char is OK [19:03:09]request: POST /json_proto HTTP/1.0 [19:03:09]Method: POST [19:03:09]URL: /json_proto [19:03:09]Method is POST - this is cgi request [19:03:09]url: /json_proto [19:03:09]query_string will be loaded in cgi processing [19:03:09]execute_cgi json_proto POST (null) [19:03:09]execute_cgi path=json_proto method=POST [19:03:09]POST find Content-Length [19:03:09]Host: 172.17.63.131:8080 [19:03:09]Content-Length: 678 [19:03:09]Content-Type: application/json [19:03:09] [19:03:09]POST finish read [19:03:09]Found Content-Length = 678 [19:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31706", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:09]execute_script... [19:03: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)31706", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:09]POST & json_proto [19:03:09]process_json_proto [19:03:09]json parsed OK: [19:03:09]protocol is kg_v1.0 [19:03:09]action value=close_receipt [19:03:09]process_action close_receipt [19:03:09]cmd_close_receipt [19:03:09]MH_GetDate [19:03:09]Write to MH i2c: F0 00 00 AE 09 A6 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 09 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 09 00 AE 09 00 6E 8E 1E 67 22 05 6E 64 29 [19:03:09]GetLastDocTimeStamp 1730055745 [19:03:09]current date 1730055790 [19:03:09]FM_GetShiftState [19:03:09]SAM_PROTO_GetShiftState [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 13 01 00 [19:03:09]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0E 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 76 [19:03:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:03:09]wFMCommunicate OK [19:03:09]SAM_PROTO_GetShiftState done [19:03:09]FM_GetShiftState done [19:03:09]opened in 1729989159 [19:03:09]opened+sec_in_day 1730075559 [19:03:09]quantity*price = 300075 [19:03:09]sum+1 = 300077 [19:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 423 27.10.2024 19:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192391 ФПД: 72959711080186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192391&fm=72959711080186&tin=02508201610067®Number=0000000000091776&sum=300000 [19:03:10]StoreToDocumentArchive [19:03:10]shift 542 fd 192391 [19:03:10]save to /storage/0542/doc_00192391 [19:03:10]save last doc name /storage/0542/doc_00192391 to /storage/kkm_last_doc_name [19:03:10]save OK [19:03:10]Clear old archive folders... [19:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:10]tlvbuf is 01970770 [19:03:10]SAM_PROTO_ClearQueue [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 09 00 00 [19:03:10]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_ClearQueue done [19:03:10]KKMCreateOFDPacket [19:03:10]OFDProtocolAddRootSTLVToBuf [19:03:10]FM_MakeSignedData [19:03:10]FM_MakeSignedData [19:03:10]SAM_PROTO_SignData [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 01 02 [19:03:10]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=255 [19:03:10]MH_SAM_APDU [19:03: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 6E 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EF 02 00 35 04 06 00 42 5B 41 A9 [19:03:10]Write to MH i2c: E2 02 01 BE 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 6E 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EF 02 00 35 04 06 00 42 5B 41 A9 00 00 48 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=7 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 02 02 02 6E FA [19:03:10]Write to MH i2c: E2 0A 00 BF 09 80 0D 02 02 02 00 6E FA 00 00 AE [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 03 02 [19:03:10]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0B 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0B 00 C0 09 00 DE A1 D7 D6 C5 3E CB 5B 90 00 9A [19:03:10]RAPDU: DE A1 D7 D6 C5 3E CB 5B 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_SignData done [19:03:10]FM_MakeSignedData done [19:03:10]CreateOFDProtocolMessage [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 11 00 00 [19:03:10]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 17 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [19:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:10]wFMCommunicate OK [19:03:10]CreateOFDProtocolMessage done [19:03:10]OFDSenderStorePacket 192391 [19:03:10]StoreOFDPacket docnum=192391 [19:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 24 58 04 01 FB 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 6E 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EF 02 00 35 04 06 00 42 5B 41 A9 6E FA DE A1 D7 D6 C5 3E CB 5B [19:03:10]CheckFolder [19:03:10]dirname=/storage/ofd_packets [19:03:10]CheckFolder done [19:03:10]ProducePacketName [19:03:10]name=ofd_packets/00192391 [19:03:10]NVStorageSaveData ofd_packets/00192391 [19:03:10]File name is /storage/ofd_packets/00192391 [19:03:10]Write 298 bytes [19:03:10]NVStorageSaveData done [19:03:10]OFDSenderStorePacket done [19:03:10]KKMCreateOFDPacket done [19:03:10]NVStorageSaveData kkm_last_timestamp [19:03:10]File name is /storage/kkm_last_timestamp [19:03:10]Write 4 bytes [19:03:10]NVStorageSaveData done [19:03:10]ExternCall_PrintAddStr [19:03:10]wPrintStart [19:03:10]Write to MH i2c: 01 00 00 C2 09 CB [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 07 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [19:03:10]RasterBufferAndPrint [19:03:10]line Счет N : (1)31706 [19:03:10]line ИНН: 02508201610067 [19:03:10]line Контрольно-Кассовый Чек [19:03:10]line ПРОДАЖА [19:03:10]line ТРК (МРК, ГНК) : 11 [19:03:10]line Товар: 2710194210 [19:03:10]line ДТ-К-5 [19:03:10]line 39.380 * 76.20 [19:03:10]line = 3000.76 [19:03:10]line НДС 12% НСП 1% [19:03:10]line > о реализуемом товаре [19:03:10]line ОКРУГЛЕНИЕ: -0.76 [19:03:10]line ИТОГО: 3000.00 [19:03:10]line Внесено: 3000.00 [19:03:10]line СДАЧА: 0.00 [19:03:10]line НСП 1% : 26.55 [19:03:10]line НДС 12% : 318.66 [19:03:10]line Наличными: 3000.00 [19:03:10]line Безнал.: 0.00 [19:03:10]line Место: АЗС № 170 "Партнер Нефть" [19:03:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:03:10]line СНО: Общий режим [19:03:10]line Чек 423 27.10.2024 19:03 [19:03:10]line Смена: 542 ФФД: 1.0 [19:03:10]line ЗНМ: 0300000110 [19:03:10]line РНМ: 0000000000091776 [19:03:10]line Версия ККМ: 001 [19:03:10]line ФМ: 0000000000871754 [19:03:10]line ФД: 192391 [19:03:11]line ФПД: 72959711080186 [19:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192391&fm=72959711080186&tin=02508201610067®Number=0000000000091776&sum=300000 [19:03:11]OFD Sender: Processing packet 192391 [packets to send 75, broken 74] [19:03:11]ProducePacketName [19:03:11]name=ofd_packets/00192391 [19:03:11]OFD Sender: To server: pG, [19:03:11]CommunicateWithHost lk.salyk.kg:30040 [19:03:11]ConnectInit lk.salyk.kg [19:03:11]written 0, free lines is 4095 [19:03:11]Connected sock=10 [19:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 24 58 04 01 FB 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 6E 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EF 02 00 35 04 06 00 42 5B 41 A9 6E FA DE A1 D7 D6 C5 3E CB 5B [19:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 44 47 00 F2 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 EF 02 00 F4 03 04 00 35 33 1E 67 B6 04 01 00 00 B1 38 C9 FA 4B EB 96 9E [19:03:11]CommunicateWithHost err = 0 [19:03:11]CheckOFDResponse [19:03:11]1017 (14) - 77093643461234 [19:03:11]1041 (16) - 0000000000871754 [19:03:11]1040 (4) - 192391 [19:03:11]1012 (4) - 27.10.2024 12:33 [19:03:11]1206 (1) - 0 [19:03:11]OFD Sender: Remove packet 192391 [19:03:11]ProducePacketName [19:03:11]name=ofd_packets/00192391 [19:03:11]NVStorageDeleteData [19:03:11]Write to MH i2c: 01 00 00 ED 09 F6 [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 07 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 B6 0C BF [19:03:11]RasterBufferAndPrint [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]written 0, free lines is 3259 [19:03:11]MH_Cut [19:03:11]Write to MH i2c: D1 01 00 F4 09 01 CF [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 01 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 01 00 F4 09 00 CE [19:03:11]Write to MH i2c: 01 00 00 F5 09 FE [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:12]OFD Sender: No OFD packet to send [19:03:12]*** Cut start [19:03:12]*** Partial cut [19:03:12]*** CUTSNS_PIN = 1 [19:03:12]*** CUTSNS_PIN = 0 [19:03:12]*** Brake cut motor [19:03:13]Read from MH i2c: 01 [19:03:13]MH_I2C_Read... [19:03:13]*** Stop cut motor [19:03:13]*** Cut end [19:03:13]Read from MH i2c: 01 07 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [19:03:13]process_action close_receipt done [19:03:13]requested_data is exist [19:03:13]produce_requested_data [19:03:13]requested_item fm.sn is exist - process it [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 11 00 00 [19:03:13]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 17 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [19:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:13]wFMCommunicate OK [19:03:13]requested_item fd.num is exist - process it [19:03:13]SAM_PROTO_GetFieldsCounters [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 13 00 00 [19:03:13]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 62 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 62 00 F7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:13]wFMCommunicate OK [19:03:13]SAM_PROTO_GetFieldsCounters done [19:03:13]requested_item shift.num is exist - process it [19:03:13]requested_item shift.opened is exist - process it [19:03:13]req_shift_opened [19:03:13]FM_GetShiftState [19:03:13]SAM_PROTO_GetShiftState [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 13 01 00 [19:03:13]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 0E 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [19:03:13]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:03:13]wFMCommunicate OK [19:03:13]SAM_PROTO_GetShiftState done [19:03:13]FM_GetShiftState done [19:03:13]req_shift_opened done [19:03:13]requested_item shift.open_date is exist - process it [19:03:13]req_shift_open_date [19:03:13]req_shift_open_date done [19:03:13]produce_requested_data done [19:03:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192391,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:03:13]process_action_free close_receipt [19:03:13]json_value_free [19:03:13]json_value_free done [19:03:13]process_json_proto returns [19:03:13]Send response to host [19:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192391,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:03:13]free response buf [19:03:13]execute_script done [19:03:13]execute_script returns [19:03:13]free content buf [19:03:13]Sock 9.Close socket [19:03:13]Sock 9.Thread stoped [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:03:57]accept exits with 7 [19:03:57]New connection [19:03:57]New thread 3066707300 created [19:03:57]Thread 3066563940 joined [19:03:57]Waiting for new connection... [19:03:57] Sock 7.Parse request [19:03:57]Sock 7.Check first char [19:03:57]Sock 7.First char is OK [19:03:57]request: POST /json_proto HTTP/1.0 [19:03:57]Method: POST [19:03:57]URL: /json_proto [19:03:57]Method is POST - this is cgi request [19:03:57]url: /json_proto [19:03:57]query_string will be loaded in cgi processing [19:03:57]execute_cgi json_proto POST (null) [19:03:57]execute_cgi path=json_proto method=POST [19:03:57]POST find Content-Length [19:03:57]Host: 172.17.63.131:8080 [19:03:57]Content-Length: 676 [19:03:57]Content-Type: application/json [19:03:57] [19:03:57]POST finish read [19:03:57]Found Content-Length = 676 [19:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:57]execute_script... [19:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:57]POST & json_proto [19:03:57]process_json_proto [19:03:57]json parsed OK: [19:03:57]protocol is kg_v1.0 [19:03:57]action value=close_receipt [19:03:57]process_action close_receipt [19:03:57]cmd_close_receipt [19:03:57]MH_GetDate [19:03:57]Write to MH i2c: F0 00 00 F9 09 F1 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 F9 09 00 9E 8E 1E 67 22 05 6E 64 A4 [19:03:57]GetLastDocTimeStamp 1730055790 [19:03:57]current date 1730055838 [19:03:57]FM_GetShiftState [19:03:57]SAM_PROTO_GetShiftState [19:03:57]wFMCommunicate request_size=4 [19:03:57]MH_SAM_APDU [19:03:57]CAPDU: 80 13 01 00 [19:03:57]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:57]Read from MH i2c: E2 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C1 [19:03:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:03:57]wFMCommunicate OK [19:03:57]SAM_PROTO_GetShiftState done [19:03:57]FM_GetShiftState done [19:03:57]opened in 1729989159 [19:03:57]opened+sec_in_day 1730075559 [19:03:57]quantity*price = 30038 [19:03:57]sum+1 = 30039 [19:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 424 27.10.2024 19:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192392 ФПД: 262638785997994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192392&fm=262638785997994&tin=02508201610067®Number=0000000000091776&sum=30000 [19:03:59]StoreToDocumentArchive [19:03:59]shift 542 fd 192392 [19:03:59]save to /storage/0542/doc_00192392 [19:03:59]save last doc name /storage/0542/doc_00192392 to /storage/kkm_last_doc_name [19:03:59]save OK [19:03:59]Clear old archive folders... [19:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:59]tlvbuf is 019C3810 [19:03:59]SAM_PROTO_ClearQueue [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 09 00 00 [19:03:59]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]SAM_PROTO_ClearQueue done [19:03:59]KKMCreateOFDPacket [19:03:59]OFDProtocolAddRootSTLVToBuf [19:03:59]FM_MakeSignedData [19:03:59]FM_MakeSignedData [19:03:59]SAM_PROTO_SignData [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 01 02 [19:03:59]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=255 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 9F 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EF 02 00 35 04 06 00 EE [19:03:59]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 9F 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EF 02 00 35 04 06 00 EE 00 00 F5 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=10 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 02 02 05 DE 5B 8B 2C AA [19:03:59]Write to MH i2c: E2 0D 00 0A 0A 80 0D 02 02 05 00 DE 5B 8B 2C AA 00 00 32 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 03 02 [19:03:59]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0B 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0B 00 0B 0A 00 5F 9C B1 86 98 F0 95 7D 90 00 5D [19:03:59]RAPDU: 5F 9C B1 86 98 F0 95 7D 90 00 [19:03:59]wFMCommunicate OK [19:03:59]SAM_PROTO_SignData done [19:03:59]FM_MakeSignedData done [19:03:59]CreateOFDProtocolMessage [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 11 00 00 [19:03:59]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [19:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:59]wFMCommunicate OK [19:03:59]CreateOFDProtocolMessage done [19:03:59]OFDSenderStorePacket 192392 [19:03:59]StoreOFDPacket docnum=192392 [19:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 2F 07 01 DC 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 9F 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EF 02 00 35 04 06 00 EE DE 5B 8B 2C AA 5F 9C B1 86 98 F0 95 7D [19:03:59]CheckFolder [19:03:59]dirname=/storage/ofd_packets [19:03:59]CheckFolder done [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00192392 [19:03:59]NVStorageSaveData ofd_packets/00192392 [19:03:59]File name is /storage/ofd_packets/00192392 [19:03:59]Write 301 bytes [19:03:59]NVStorageSaveData done [19:03:59]OFDSenderStorePacket done [19:03:59]KKMCreateOFDPacket done [19:03:59]NVStorageSaveData kkm_last_timestamp [19:03:59]File name is /storage/kkm_last_timestamp [19:03:59]Write 4 bytes [19:03:59]NVStorageSaveData done [19:03:59]ExternCall_PrintAddStr [19:03:59]wPrintStart [19:03:59]Write to MH i2c: 01 00 00 0D 0A 17 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [19:03:59]RasterBufferAndPrint [19:03:59]line Счет N : (1)31709 [19:03:59]line ИНН: 02508201610067 [19:03:59]line Контрольно-Кассовый Чек [19:03:59]line ПРОДАЖА [19:03:59]line ТРК (МРК, ГНК) : 12 [19:03:59]line Товар: 2710124130 [19:03:59]line Аи-92-К-5 [19:03:59]line 4.490 * 66.90 [19:03:59]line = 300.38 [19:03:59]line НДС 12% НСП 1% [19:03:59]line > о реализуемом товаре [19:03:59]line ОКРУГЛЕНИЕ: -0.38 [19:03:59]line ИТОГО: 300.00 [19:03:59]line Внесено: 300.00 [19:03:59]line СДАЧА: 0.00 [19:03:59]line НСП 1% : 2.66 [19:03:59]line НДС 12% : 31.90 [19:03:59]line Наличными: 300.00 [19:03:59]line Безнал.: 0.00 [19:03:59]line Место: АЗС № 170 "Партнер Нефть" [19:03:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:03:59]line СНО: Общий режим [19:03:59]line Чек 424 27.10.2024 19:03 [19:03:59]line Смена: 542 ФФД: 1.0 [19:03:59]line ЗНМ: 0300000110 [19:03:59]line РНМ: 0000000000091776 [19:03:59]line Версия ККМ: 001 [19:03:59]line ФМ: 0000000000871754 [19:03:59]line ФД: 192392 [19:03:59]line ФПД: 262638785997994 [19:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192392&fm=262638785997994&tin=02508201610067®Number=0000000000091776&sum=30000 [19:03:59]OFD Sender: Processing packet 192392 [packets to send 75, broken 74] [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00192392 [19:03:59]OFD Sender: To server: pG, [19:03:59]CommunicateWithHost lk.salyk.kg:30040 [19:03:59]ConnectInit lk.salyk.kg [19:03:59]written 0, free lines is 4095 [19:03:59]Connected sock=10 [19:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 2F 07 01 DC 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 9F 8E 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EF 02 00 35 04 06 00 EE DE 5B 8B 2C AA 5F 9C B1 86 98 F0 95 7D [19:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 57 47 00 61 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 EF 02 00 F4 03 04 00 65 33 1E 67 B6 04 01 00 00 6C B1 A2 9E 4E 9A BC E4 [19:04:00]CommunicateWithHost err = 0 [19:04:00]CheckOFDResponse [19:04:00]1017 (14) - 77093643461234 [19:04:00]1041 (16) - 0000000000871754 [19:04:00]1040 (4) - 192392 [19:04:00]1012 (4) - 27.10.2024 12:34 [19:04:00]1206 (1) - 0 [19:04:00]OFD Sender: Remove packet 192392 [19:04:00]ProducePacketName [19:04:00]name=ofd_packets/00192392 [19:04:00]NVStorageDeleteData [19:04:00]Write to MH i2c: 01 00 00 38 0A 42 [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: 01 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: 01 07 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 A9 0C FE [19:04:00]RasterBufferAndPrint [19:04:00]line [19:04:00]line [19:04:00]line [19:04:00]line [19:04:00]line [19:04:00]written 0, free lines is 3246 [19:04:00]MH_Cut [19:04:00]Write to MH i2c: D1 01 00 3F 0A 01 1B [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: D1 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: D1 01 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: D1 01 00 3F 0A 00 1A [19:04:00]Write to MH i2c: 01 00 00 40 0A 4A [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]OFD Sender: No OFD packet to send [19:04:01]*** Cut start [19:04:01]*** Partial cut [19:04:01]*** CUTSNS_PIN = 1 [19:04:01]*** CUTSNS_PIN = 0 [19:04:01]*** Brake cut motor [19:04:01]Read from MH i2c: 01 [19:04:01]MH_I2C_Read... [19:04:01]*** Stop cut motor [19:04:01]*** Cut end [19:04:01]Read from MH i2c: 01 07 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [19:04:01]process_action close_receipt done [19:04:01]requested_data is exist [19:04:01]produce_requested_data [19:04:01]requested_item fm.sn is exist - process it [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 11 00 00 [19:04:01]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 17 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [19:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:04:01]wFMCommunicate OK [19:04:01]requested_item fd.num is exist - process it [19:04:01]SAM_PROTO_GetFieldsCounters [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 13 00 00 [19:04:01]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 62 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_GetFieldsCounters done [19:04:02]requested_item shift.num is exist - process it [19:04:02]requested_item shift.opened is exist - process it [19:04:02]req_shift_opened [19:04:02]FM_GetShiftState [19:04:02]SAM_PROTO_GetShiftState [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 13 01 00 [19:04:02]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0E 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [19:04:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_GetShiftState done [19:04:02]FM_GetShiftState done [19:04:02]req_shift_opened done [19:04:02]requested_item shift.open_date is exist - process it [19:04:02]req_shift_open_date [19:04:02]req_shift_open_date done [19:04:02]produce_requested_data done [19:04:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192392,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:04:02]process_action_free close_receipt [19:04:02]json_value_free [19:04:02]json_value_free done [19:04:02]process_json_proto returns [19:04:02]Send response to host [19:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192392,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:04:02]free response buf [19:04:02]execute_script done [19:04:02]execute_script returns [19:04:02]free content buf [19:04:02]Sock 7.Close socket [19:04:02]Sock 7.Thread stoped [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:02]accept exits with 9 [19:06:02]New connection [19:06:02]New thread 3066563940 created [19:06:02]Thread 3066707300 joined [19:06:02]Waiting for new connection... [19:06:02] Sock 9.Parse request [19:06:02]Sock 9.Check first char [19:06:02]Sock 9.First char is OK [19:06:02]request: POST /json_proto HTTP/1.0 [19:06:02]Method: POST [19:06:02]URL: /json_proto [19:06:02]Method is POST - this is cgi request [19:06:02]url: /json_proto [19:06:02]query_string will be loaded in cgi processing [19:06:02]execute_cgi json_proto POST (null) [19:06:02]execute_cgi path=json_proto method=POST [19:06:02]POST find Content-Length [19:06:02]Host: 172.17.63.131:8080 [19:06:02]Content-Length: 676 [19:06:02]Content-Type: application/json [19:06:02] [19:06:02]POST finish read [19:06:02]Found Content-Length = 676 [19:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:02]execute_script... [19: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 : (1)31710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:02]POST & json_proto [19:06:02]process_json_proto [19:06:02]json parsed OK: [19:06:02]protocol is kg_v1.0 [19:06:02]action value=close_receipt [19:06:02]process_action close_receipt [19:06:02]cmd_close_receipt [19:06:02]MH_GetDate [19:06:02]Write to MH i2c: F0 00 00 44 0A 3D [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 09 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 09 00 44 0A 00 1B 8F 1E 67 22 05 6E 64 6E [19:06:02]GetLastDocTimeStamp 1730055839 [19:06:02]current date 1730055963 [19:06:02]FM_GetShiftState [19:06:02]SAM_PROTO_GetShiftState [19:06:02]wFMCommunicate request_size=4 [19:06:02]MH_SAM_APDU [19:06:02]CAPDU: 80 13 01 00 [19:06:02]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:02]Read from MH i2c: E2 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0E 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0D [19:06:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:06:02]wFMCommunicate OK [19:06:02]SAM_PROTO_GetShiftState done [19:06:02]FM_GetShiftState done [19:06:02]opened in 1729989159 [19:06:02]opened+sec_in_day 1730075559 [19:06:02]quantity*price = 50041 [19:06:02]sum+1 = 50042 [19:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 425 27.10.2024 19:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192393 ФПД: 49694840819646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192393&fm=49694840819646&tin=02508201610067®Number=0000000000091776&sum=50000 [19:06:03]StoreToDocumentArchive [19:06:03]shift 542 fd 192393 [19:06:03]save to /storage/0542/doc_00192393 [19:06:03]save last doc name /storage/0542/doc_00192393 to /storage/kkm_last_doc_name [19:06:03]save OK [19:06:03]Clear old archive folders... [19:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:03]tlvbuf is 019D7AE0 [19:06:03]SAM_PROTO_ClearQueue [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 09 00 00 [19:06:03]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]SAM_PROTO_ClearQueue done [19:06:03]KKMCreateOFDPacket [19:06:03]OFDProtocolAddRootSTLVToBuf [19:06:03]FM_MakeSignedData [19:06:03]FM_MakeSignedData [19:06:03]SAM_PROTO_SignData [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 0D 01 02 [19:06:03]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]wFMCommunicate request_size=255 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 1B 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EF 02 00 35 04 06 00 2D [19:06:03]Write to MH i2c: E2 02 01 54 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 1B 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EF 02 00 35 04 06 00 2D 00 00 0A [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 03 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [19:06:04]RAPDU: 90 00 [19:06:04]wFMCommunicate OK [19:06:04]wFMCommunicate request_size=10 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 0D 02 02 05 32 7B 55 8F BE [19:06:04]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 32 7B 55 8F BE 00 00 32 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 03 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [19:06:04]RAPDU: 90 00 [19:06:04]wFMCommunicate OK [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 0D 03 02 [19:06:04]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0B 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0B 00 56 0A 00 E4 9C 47 22 A1 C0 13 05 90 00 3E [19:06:04]RAPDU: E4 9C 47 22 A1 C0 13 05 90 00 [19:06:04]wFMCommunicate OK [19:06:04]SAM_PROTO_SignData done [19:06:04]FM_MakeSignedData done [19:06:04]CreateOFDProtocolMessage [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 11 00 00 [19:06:04]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [19:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:04]wFMCommunicate OK [19:06:04]CreateOFDProtocolMessage done [19:06:04]OFDSenderStorePacket 192393 [19:06:04]StoreOFDPacket docnum=192393 [19:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 1D 07 01 D6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 1B 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EF 02 00 35 04 06 00 2D 32 7B 55 8F BE E4 9C 47 22 A1 C0 13 05 [19:06:04]CheckFolder [19:06:04]dirname=/storage/ofd_packets [19:06:04]CheckFolder done [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192393 [19:06:04]NVStorageSaveData ofd_packets/00192393 [19:06:04]File name is /storage/ofd_packets/00192393 [19:06:04]Write 301 bytes [19:06:04]NVStorageSaveData done [19:06:04]OFDSenderStorePacket done [19:06:04]KKMCreateOFDPacket done [19:06:04]NVStorageSaveData kkm_last_timestamp [19:06:04]File name is /storage/kkm_last_timestamp [19:06:04]Write 4 bytes [19:06:04]NVStorageSaveData done [19:06:04]ExternCall_PrintAddStr [19:06:04]wPrintStart [19:06:04]Write to MH i2c: 01 00 00 58 0A 62 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [19:06:04]RasterBufferAndPrint [19:06:04]line Счет N : (1)31710 [19:06:04]line ИНН: 02508201610067 [19:06:04]line Контрольно-Кассовый Чек [19:06:04]line ПРОДАЖА [19:06:04]line ТРК (МРК, ГНК) : 12 [19:06:04]line Товар: 2710124130 [19:06:04]line Аи-92-К-5 [19:06:04]line 7.480 * 66.90 [19:06:04]line = 500.41 [19:06:04]line НДС 12% НСП 1% [19:06:04]line > о реализуемом товаре [19:06:04]line ОКРУГЛЕНИЕ: -0.41 [19:06:04]line ИТОГО: 500.00 [19:06:04]line Внесено: 500.00 [19:06:04]line СДАЧА: 0.00 [19:06:04]line НСП 1% : 4.43 [19:06:04]line НДС 12% : 53.14 [19:06:04]line Наличными: 500.00 [19:06:04]line Безнал.: 0.00 [19:06:04]line Место: АЗС № 170 "Партнер Нефть" [19:06:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:06:04]line СНО: Общий режим [19:06:04]line Чек 425 27.10.2024 19:06 [19:06:04]line Смена: 542 ФФД: 1.0 [19:06:04]line ЗНМ: 0300000110 [19:06:04]line РНМ: 0000000000091776 [19:06:04]line Версия ККМ: 001 [19:06:04]line ФМ: 0000000000871754 [19:06:04]line ФД: 192393 [19:06:04]line ФПД: 49694840819646 [19:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192393&fm=49694840819646&tin=02508201610067®Number=0000000000091776&sum=50000 [19:06:04]written 0, free lines is 4095 [19:06:04]OFD Sender: Processing packet 192393 [packets to send 75, broken 74] [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192393 [19:06:04]OFD Sender: To server: pG, [19:06:04]CommunicateWithHost lk.salyk.kg:30040 [19:06:04]ConnectInit lk.salyk.kg [19:06:04]Connected sock=10 [19:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 79 1D 07 01 D6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 1B 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EF 02 00 35 04 06 00 2D 32 7B 55 8F BE E4 9C 47 22 A1 C0 13 05 [19:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 05 D3 47 00 C9 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 EF 02 00 F4 03 04 00 E2 33 1E 67 B6 04 01 00 00 33 C7 AB 3B DA ED FE 1A [19:06:04]CommunicateWithHost err = 0 [19:06:04]CheckOFDResponse [19:06:04]1017 (14) - 77093643461234 [19:06:04]1041 (16) - 0000000000871754 [19:06:04]1040 (4) - 192393 [19:06:04]1012 (4) - 27.10.2024 12:36 [19:06:04]1206 (1) - 0 [19:06:04]OFD Sender: Remove packet 192393 [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192393 [19:06:04]NVStorageDeleteData [19:06:04]Write to MH i2c: 01 00 00 83 0A 8D [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 A3 0C 43 [19:06:04]RasterBufferAndPrint [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]written 0, free lines is 3241 [19:06:04]MH_Cut [19:06:04]Write to MH i2c: D1 01 00 8A 0A 01 66 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 01 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 01 00 8A 0A 00 65 [19:06:04]Write to MH i2c: 01 00 00 8B 0A 95 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:05]OFD Sender: No OFD packet to send [19:06:05]*** Cut start [19:06:05]*** Partial cut [19:06:05]*** CUTSNS_PIN = 1 [19:06:05]*** CUTSNS_PIN = 0 [19:06:05]*** Brake cut motor [19:06:06]Read from MH i2c: 01 [19:06:06]MH_I2C_Read... [19:06:06]*** Stop cut motor [19:06:06]*** Cut end [19:06:06]Read from MH i2c: 01 07 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [19:06:06]process_action close_receipt done [19:06:06]requested_data is exist [19:06:06]produce_requested_data [19:06:06]requested_item fm.sn is exist - process it [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 11 00 00 [19:06:06]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 17 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [19:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:06]wFMCommunicate OK [19:06:06]requested_item fd.num is exist - process it [19:06:06]SAM_PROTO_GetFieldsCounters [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 13 00 00 [19:06:06]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 62 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 62 00 8D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:06:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:06]wFMCommunicate OK [19:06:06]SAM_PROTO_GetFieldsCounters done [19:06:06]requested_item shift.num is exist - process it [19:06:06]requested_item shift.opened is exist - process it [19:06:06]req_shift_opened [19:06:06]FM_GetShiftState [19:06:06]SAM_PROTO_GetShiftState [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 13 01 00 [19:06:06]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [19:06:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:06:06]wFMCommunicate OK [19:06:06]SAM_PROTO_GetShiftState done [19:06:06]FM_GetShiftState done [19:06:06]req_shift_opened done [19:06:06]requested_item shift.open_date is exist - process it [19:06:06]req_shift_open_date [19:06:06]req_shift_open_date done [19:06:06]produce_requested_data done [19:06:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192393,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:06:06]process_action_free close_receipt [19:06:06]json_value_free [19:06:06]json_value_free done [19:06:06]process_json_proto returns [19:06:06]Send response to host [19:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192393,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:06:06]free response buf [19:06:06]execute_script done [19:06:06]execute_script returns [19:06:06]free content buf [19:06:06]Sock 9.Close socket [19:06:06]Sock 9.Thread stoped [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:39]accept exits with 7 [19:06:39]New connection [19:06:39]New thread 3066707300 created [19:06:39]Thread 3066563940 joined [19:06:39]Waiting for new connection... [19:06:39] Sock 7.Parse request [19:06:39]Sock 7.Check first char [19:06:39]Sock 7.First char is OK [19:06:39]request: POST /json_proto HTTP/1.0 [19:06:39]Method: POST [19:06:39]URL: /json_proto [19:06:39]Method is POST - this is cgi request [19:06:39]url: /json_proto [19:06:39]query_string will be loaded in cgi processing [19:06:39]execute_cgi json_proto POST (null) [19:06:39]execute_cgi path=json_proto method=POST [19:06:39]POST find Content-Length [19:06:39]Host: 172.17.63.131:8080 [19:06:39]Content-Length: 676 [19:06:39]Content-Type: application/json [19:06:39] [19:06:39]POST finish read [19:06:39]Found Content-Length = 676 [19:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]execute_script... [19:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]POST & json_proto [19:06:39]process_json_proto [19:06:39]json parsed OK: [19:06:39]protocol is kg_v1.0 [19:06:39]action value=close_receipt [19:06:39]process_action close_receipt [19:06:39]cmd_close_receipt [19:06:39]MH_GetDate [19:06:39]Write to MH i2c: F0 00 00 8F 0A 88 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 8F 0A 00 40 8F 1E 67 22 05 6E 64 DE [19:06:39]GetLastDocTimeStamp 1730055963 [19:06:39]current date 1730056000 [19:06:39]FM_GetShiftState [19:06:39]SAM_PROTO_GetShiftState [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 13 01 00 [19:06:39]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [19:06:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_GetShiftState done [19:06:39]FM_GetShiftState done [19:06:39]opened in 1729989159 [19:06:39]opened+sec_in_day 1730075559 [19:06:39]quantity*price = 20003 [19:06:39]sum+1 = 20004 [19:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 426 27.10.2024 19:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192394 ФПД: 30881782402175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192394&fm=30881782402175&tin=02508201610067®Number=0000000000091776&sum=20000 [19:06:40]StoreToDocumentArchive [19:06:40]shift 542 fd 192394 [19:06:40]save to /storage/0542/doc_00192394 [19:06:40]save last doc name /storage/0542/doc_00192394 to /storage/kkm_last_doc_name [19:06:40]save OK [19:06:40]Clear old archive folders... [19:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:40]tlvbuf is 019DC360 [19:06:40]SAM_PROTO_ClearQueue [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 09 00 00 [19:06:40]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]SAM_PROTO_ClearQueue done [19:06:40]KKMCreateOFDPacket [19:06:40]OFDProtocolAddRootSTLVToBuf [19:06:40]FM_MakeSignedData [19:06:40]FM_MakeSignedData [19:06:40]SAM_PROTO_SignData [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 01 02 [19:06:40]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=255 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 40 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EF 02 00 35 04 06 00 1C [19:06:40]Write to MH i2c: E2 02 01 9F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 40 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EF 02 00 35 04 06 00 1C 00 00 2D [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=10 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 02 02 05 16 39 AB 8C 7F [19:06:40]Write to MH i2c: E2 0D 00 A0 0A 80 0D 02 02 05 00 16 39 AB 8C 7F 00 00 33 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 03 02 [19:06:40]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0B 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0B 00 A1 0A 00 93 DC AD BC F9 8D 97 86 90 00 A2 [19:06:40]RAPDU: 93 DC AD BC F9 8D 97 86 90 00 [19:06:40]wFMCommunicate OK [19:06:40]SAM_PROTO_SignData done [19:06:40]FM_MakeSignedData done [19:06:40]CreateOFDProtocolMessage [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 11 00 00 [19:06:40]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [19:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:41]wFMCommunicate OK [19:06:41]CreateOFDProtocolMessage done [19:06:41]OFDSenderStorePacket 192394 [19:06:41]StoreOFDPacket docnum=192394 [19:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CD B2 07 01 91 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 40 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EF 02 00 35 04 06 00 1C 16 39 AB 8C 7F 93 DC AD BC F9 8D 97 86 [19:06:41]CheckFolder [19:06:41]dirname=/storage/ofd_packets [19:06:41]CheckFolder done [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00192394 [19:06:41]NVStorageSaveData ofd_packets/00192394 [19:06:41]File name is /storage/ofd_packets/00192394 [19:06:41]Write 301 bytes [19:06:41]NVStorageSaveData done [19:06:41]OFDSenderStorePacket done [19:06:41]KKMCreateOFDPacket done [19:06:41]NVStorageSaveData kkm_last_timestamp [19:06:41]File name is /storage/kkm_last_timestamp [19:06:41]Write 4 bytes [19:06:41]NVStorageSaveData done [19:06:41]ExternCall_PrintAddStr [19:06:41]wPrintStart [19:06:41]Write to MH i2c: 01 00 00 A3 0A AD [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [19:06:41]RasterBufferAndPrint [19:06:41]line Счет N : (1)31711 [19:06:41]line ИНН: 02508201610067 [19:06:41]line Контрольно-Кассовый Чек [19:06:41]line ПРОДАЖА [19:06:41]line ТРК (МРК, ГНК) : 21 [19:06:41]line Товар: 2710124130 [19:06:41]line Аи-92-К-5 [19:06:41]line 2.990 * 66.90 [19:06:41]line = 200.03 [19:06:41]line НДС 12% НСП 1% [19:06:41]line > о реализуемом товаре [19:06:41]line ОКРУГЛЕНИЕ: -0.03 [19:06:41]line ИТОГО: 200.00 [19:06:41]line Внесено: 200.00 [19:06:41]line СДАЧА: 0.00 [19:06:41]line НСП 1% : 1.77 [19:06:41]line НДС 12% : 21.24 [19:06:41]line Наличными: 200.00 [19:06:41]line Безнал.: 0.00 [19:06:41]line Место: АЗС № 170 "Партнер Нефть" [19:06:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:06:41]line СНО: Общий режим [19:06:41]line Чек 426 27.10.2024 19:06 [19:06:41]line Смена: 542 ФФД: 1.0 [19:06:41]line ЗНМ: 0300000110 [19:06:41]line РНМ: 0000000000091776 [19:06:41]line Версия ККМ: 001 [19:06:41]line ФМ: 0000000000871754 [19:06:41]line ФД: 192394 [19:06:41]line ФПД: 30881782402175 [19:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192394&fm=30881782402175&tin=02508201610067®Number=0000000000091776&sum=20000 [19:06:41]OFD Sender: Processing packet 192394 [packets to send 75, broken 74] [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00192394 [19:06:41]OFD Sender: To server: pG, [19:06:41]CommunicateWithHost lk.salyk.kg:30040 [19:06:41]ConnectInit lk.salyk.kg [19:06:41]written 0, free lines is 4095 [19:06:41]Connected sock=10 [19:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CD B2 07 01 91 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 40 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EF 02 00 35 04 06 00 1C 16 39 AB 8C 7F 93 DC AD BC F9 8D 97 86 [19:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 70 47 00 64 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A EF 02 00 F4 03 04 00 07 34 1E 67 B6 04 01 00 00 30 57 F0 2A 71 90 48 AA [19:06:41]CommunicateWithHost err = 0 [19:06:41]CheckOFDResponse [19:06:41]1017 (14) - 77093643461234 [19:06:41]1041 (16) - 0000000000871754 [19:06:41]1040 (4) - 192394 [19:06:41]1012 (4) - 27.10.2024 12:37 [19:06:41]1206 (1) - 0 [19:06:41]OFD Sender: Remove packet 192394 [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00192394 [19:06:41]NVStorageDeleteData [19:06:41]Write to MH i2c: 01 00 00 CE 0A D8 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 A5 0C 90 [19:06:41]RasterBufferAndPrint [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]written 0, free lines is 3242 [19:06:41]MH_Cut [19:06:41]Write to MH i2c: D1 01 00 D5 0A 01 B1 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 01 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 01 00 D5 0A 00 B0 [19:06:41]Write to MH i2c: 01 00 00 D6 0A E0 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:42]OFD Sender: No OFD packet to send [19:06:42]*** Cut start [19:06:42]*** Partial cut [19:06:42]*** CUTSNS_PIN = 1 [19:06:42]*** CUTSNS_PIN = 0 [19:06:42]*** Brake cut motor [19:06:43]Read from MH i2c: 01 [19:06:43]MH_I2C_Read... [19:06:43]*** Stop cut motor [19:06:43]*** Cut end [19:06:43]Read from MH i2c: 01 07 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [19:06:43]process_action close_receipt done [19:06:43]requested_data is exist [19:06:43]produce_requested_data [19:06:43]requested_item fm.sn is exist - process it [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 11 00 00 [19:06:43]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [19:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:43]wFMCommunicate OK [19:06:43]requested_item fd.num is exist - process it [19:06:43]SAM_PROTO_GetFieldsCounters [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 00 00 [19:06:43]Write to MH i2c: E2 08 00 D8 0A 80 13 00 00 00 00 00 00 5E [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 D8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetFieldsCounters done [19:06:43]requested_item shift.num is exist - process it [19:06:43]requested_item shift.opened is exist - process it [19:06:43]req_shift_opened [19:06:43]FM_GetShiftState [19:06:43]SAM_PROTO_GetShiftState [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 01 00 [19:06:43]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [19:06:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetShiftState done [19:06:43]FM_GetShiftState done [19:06:43]req_shift_opened done [19:06:43]requested_item shift.open_date is exist - process it [19:06:43]req_shift_open_date [19:06:43]req_shift_open_date done [19:06:43]produce_requested_data done [19:06:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192394,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:06:43]process_action_free close_receipt [19:06:43]json_value_free [19:06:43]json_value_free done [19:06:43]process_json_proto returns [19:06:43]Send response to host [19:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192394,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:06:43]free response buf [19:06:43]execute_script done [19:06:43]execute_script returns [19:06:43]free content buf [19:06:43]Sock 7.Close socket [19:06:43]Sock 7.Thread stoped [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:07:58]accept exits with 9 [19:07:58]New connection [19:07:58]New thread 3066563940 created [19:07:58]Thread 3066707300 joined [19:07:58]Waiting for new connection... [19:07:58] Sock 9.Parse request [19:07:58]Sock 9.Check first char [19:07:58]Sock 9.First char is OK [19:07:58]request: POST /json_proto HTTP/1.0 [19:07:58]Method: POST [19:07:58]URL: /json_proto [19:07:58]Method is POST - this is cgi request [19:07:58]url: /json_proto [19:07:58]query_string will be loaded in cgi processing [19:07:58]execute_cgi json_proto POST (null) [19:07:58]execute_cgi path=json_proto method=POST [19:07:58]POST find Content-Length [19:07:58]Host: 172.17.63.131:8080 [19:07:58]Content-Length: 676 [19:07:58]Content-Type: application/json [19:07:58] [19:07:58]POST finish read [19:07:58]Found Content-Length = 676 [19:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:58]execute_script... [19:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:58]POST & json_proto [19:07:58]process_json_proto [19:07:58]json parsed OK: [19:07:58]protocol is kg_v1.0 [19:07:58]action value=close_receipt [19:07:58]process_action close_receipt [19:07:58]cmd_close_receipt [19:07:58]MH_GetDate [19:07:58]Write to MH i2c: F0 00 00 DA 0A D3 [19:07:58]Write i2c OK [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 09 00 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: F0 09 00 DA 0A 00 90 8F 1E 67 22 05 6E 64 79 [19:07:58]GetLastDocTimeStamp 1730056000 [19:07:58]current date 1730056080 [19:07:58]FM_GetShiftState [19:07:58]SAM_PROTO_GetShiftState [19:07:58]wFMCommunicate request_size=4 [19:07:58]MH_SAM_APDU [19:07:58]CAPDU: 80 13 01 00 [19:07:58]Write to MH i2c: E2 08 00 DB 0A 80 13 01 00 00 00 00 00 62 [19:07:58]Write i2c OK [19:07:58]MH_I2C_Read... [19:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:58]Read from MH i2c: E2 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: E2 0E 00 [19:07:58]MH_I2C_Read... [19:07:58]Read from MH i2c: E2 0E 00 DB 0A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A3 [19:07:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:07:58]wFMCommunicate OK [19:07:58]SAM_PROTO_GetShiftState done [19:07:58]FM_GetShiftState done [19:07:58]opened in 1729989159 [19:07:58]opened+sec_in_day 1730075559 [19:07:58]quantity*price = 30038 [19:07:58]sum+1 = 30039 [19:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 427 27.10.2024 19:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192395 ФПД: 23483464779997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192395&fm=23483464779997&tin=02508201610067®Number=0000000000091776&sum=30000 [19:08:00]StoreToDocumentArchive [19:08:00]shift 542 fd 192395 [19:08:00]save to /storage/0542/doc_00192395 [19:08:00]save last doc name /storage/0542/doc_00192395 to /storage/kkm_last_doc_name [19:08:00]save OK [19:08:00]Clear old archive folders... [19:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:00]tlvbuf is 019D7AB0 [19:08:00]SAM_PROTO_ClearQueue [19:08:00]wFMCommunicate request_size=4 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 09 00 00 [19:08:00]Write to MH i2c: E2 08 00 E8 0A 80 09 00 00 00 00 00 00 64 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [19:08:00]RAPDU: 90 00 [19:08:00]wFMCommunicate OK [19:08:00]SAM_PROTO_ClearQueue done [19:08:00]KKMCreateOFDPacket [19:08:00]OFDProtocolAddRootSTLVToBuf [19:08:00]FM_MakeSignedData [19:08:00]FM_MakeSignedData [19:08:00]SAM_PROTO_SignData [19:08:00]wFMCommunicate request_size=4 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 0D 01 02 [19:08:00]Write to MH i2c: E2 08 00 E9 0A 80 0D 01 02 00 00 00 00 6C [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [19:08:00]RAPDU: 90 00 [19:08:00]wFMCommunicate OK [19:08:00]wFMCommunicate request_size=255 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AB 01 00 00 F4 03 04 00 90 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EF 02 00 35 04 06 00 15 [19:08:00]Write to MH i2c: E2 02 01 EA 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 90 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EF 02 00 35 04 06 00 15 00 00 F5 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [19:08:00]RAPDU: 90 00 [19:08:00]wFMCommunicate OK [19:08:00]wFMCommunicate request_size=10 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 0D 02 02 05 5B AB 93 88 DD [19:08:00]Write to MH i2c: E2 0D 00 EB 0A 80 0D 02 02 05 00 5B AB 93 88 DD 00 00 77 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [19:08:00]RAPDU: 90 00 [19:08:00]wFMCommunicate OK [19:08:00]wFMCommunicate request_size=4 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 0D 03 02 [19:08:00]Write to MH i2c: E2 08 00 EC 0A 80 0D 03 02 00 00 00 00 71 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 0B 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 0B 00 EC 0A 00 42 EF E5 26 38 05 99 D2 90 00 56 [19:08:00]RAPDU: 42 EF E5 26 38 05 99 D2 90 00 [19:08:00]wFMCommunicate OK [19:08:00]SAM_PROTO_SignData done [19:08:00]FM_MakeSignedData done [19:08:00]CreateOFDProtocolMessage [19:08:00]wFMCommunicate request_size=4 [19:08:00]MH_SAM_APDU [19:08:00]CAPDU: 80 11 00 00 [19:08:00]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:00]Read from MH i2c: E2 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 17 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [19:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:08:00]wFMCommunicate OK [19:08:00]CreateOFDProtocolMessage done [19:08:00]OFDSenderStorePacket 192395 [19:08:00]StoreOFDPacket docnum=192395 [19:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 27 07 01 AE BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 90 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EF 02 00 35 04 06 00 15 5B AB 93 88 DD 42 EF E5 26 38 05 99 D2 [19:08:00]CheckFolder [19:08:00]dirname=/storage/ofd_packets [19:08:00]CheckFolder done [19:08:00]ProducePacketName [19:08:00]name=ofd_packets/00192395 [19:08:00]NVStorageSaveData ofd_packets/00192395 [19:08:00]File name is /storage/ofd_packets/00192395 [19:08:00]Write 301 bytes [19:08:00]NVStorageSaveData done [19:08:00]OFDSenderStorePacket done [19:08:00]KKMCreateOFDPacket done [19:08:00]NVStorageSaveData kkm_last_timestamp [19:08:00]File name is /storage/kkm_last_timestamp [19:08:00]Write 4 bytes [19:08:00]NVStorageSaveData done [19:08:00]ExternCall_PrintAddStr [19:08:00]wPrintStart [19:08:00]Write to MH i2c: 01 00 00 EE 0A F8 [19:08:00]Write i2c OK [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 07 00 [19:08:00]MH_I2C_Read... [19:08:00]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [19:08:00]RasterBufferAndPrint [19:08:00]line Счет N : (1)31713 [19:08:00]line ИНН: 02508201610067 [19:08:00]line Контрольно-Кассовый Чек [19:08:00]line ПРОДАЖА [19:08:00]line ТРК (МРК, ГНК) : 12 [19:08:00]line Товар: 2710124130 [19:08:00]line Аи-92-К-5 [19:08:00]line 4.490 * 66.90 [19:08:00]line = 300.38 [19:08:00]line НДС 12% НСП 1% [19:08:00]line > о реализуемом товаре [19:08:00]line ОКРУГЛЕНИЕ: -0.38 [19:08:00]line ИТОГО: 300.00 [19:08:00]line Внесено: 300.00 [19:08:00]line СДАЧА: 0.00 [19:08:00]line НСП 1% : 2.66 [19:08:00]line НДС 12% : 31.90 [19:08:00]line Наличными: 300.00 [19:08:00]line Безнал.: 0.00 [19:08:00]line Место: АЗС № 170 "Партнер Нефть" [19:08:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:08:00]line СНО: Общий режим [19:08:00]line Чек 427 27.10.2024 19:08 [19:08:00]line Смена: 542 ФФД: 1.0 [19:08:00]line ЗНМ: 0300000110 [19:08:00]line РНМ: 0000000000091776 [19:08:00]line Версия ККМ: 001 [19:08:00]line ФМ: 0000000000871754 [19:08:00]line ФД: 192395 [19:08:00]line ФПД: 23483464779997 [19:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190800&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192395&fm=23483464779997&tin=02508201610067®Number=0000000000091776&sum=30000 [19:08:00]OFD Sender: Processing packet 192395 [packets to send 75, broken 74] [19:08:00]ProducePacketName [19:08:00]name=ofd_packets/00192395 [19:08:00]OFD Sender: To server: pG, [19:08:00]CommunicateWithHost lk.salyk.kg:30040 [19:08:00]ConnectInit lk.salyk.kg [19:08:00]written 0, free lines is 4095 [19:08:01]Connected sock=10 [19:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 27 07 01 AE BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 90 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EF 02 00 35 04 06 00 15 5B AB 93 88 DD 42 EF E5 26 38 05 99 D2 [19:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 24 47 00 72 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B EF 02 00 F4 03 04 00 56 34 1E 67 B6 04 01 00 00 CC C5 EE DB 78 D4 A9 E9 [19:08:01]CommunicateWithHost err = 0 [19:08:01]CheckOFDResponse [19:08:01]1017 (14) - 77093643461234 [19:08:01]1041 (16) - 0000000000871754 [19:08:01]1040 (4) - 192395 [19:08:01]1012 (4) - 27.10.2024 12:38 [19:08:01]1206 (1) - 0 [19:08:01]OFD Sender: Remove packet 192395 [19:08:01]ProducePacketName [19:08:01]name=ofd_packets/00192395 [19:08:01]NVStorageDeleteData [19:08:01]Write to MH i2c: 01 00 00 19 0B 24 [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: 01 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: 01 07 00 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 B4 0C EB [19:08:01]RasterBufferAndPrint [19:08:01]line [19:08:01]line [19:08:01]line [19:08:01]line [19:08:01]line [19:08:01]written 0, free lines is 3259 [19:08:01]MH_Cut [19:08:01]Write to MH i2c: D1 01 00 20 0B 01 FD [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: D1 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: D1 01 00 [19:08:01]MH_I2C_Read... [19:08:01]Read from MH i2c: D1 01 00 20 0B 00 FC [19:08:01]Write to MH i2c: 01 00 00 21 0B 2C [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:01]OFD Sender: No OFD packet to send [19:08:02]*** Cut start [19:08:02]*** Partial cut [19:08:02]*** CUTSNS_PIN = 1 [19:08:02]*** CUTSNS_PIN = 0 [19:08:02]*** Brake cut motor [19:08:02]Read from MH i2c: *** Stop cut motor [19:08:02]01 *** Cut end [19:08:02] [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: 01 07 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [19:08:02]process_action close_receipt done [19:08:02]requested_data is exist [19:08:02]produce_requested_data [19:08:02]requested_item fm.sn is exist - process it [19:08:02]wFMCommunicate request_size=4 [19:08:02]MH_SAM_APDU [19:08:02]CAPDU: 80 11 00 00 [19:08:02]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [19:08:02]Write i2c OK [19:08:02]MH_I2C_Read... [19:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:02]Read from MH i2c: E2 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 17 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [19:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:08:02]wFMCommunicate OK [19:08:02]requested_item fd.num is exist - process it [19:08:02]SAM_PROTO_GetFieldsCounters [19:08:02]wFMCommunicate request_size=4 [19:08:02]MH_SAM_APDU [19:08:02]CAPDU: 80 13 00 00 [19:08:02]Write to MH i2c: E2 08 00 23 0B 80 13 00 00 00 00 00 00 AA [19:08:02]Write i2c OK [19:08:02]MH_I2C_Read... [19:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:03]Read from MH i2c: E2 [19:08:03]MH_I2C_Read... [19:08:03]Read from MH i2c: E2 62 00 [19:08:03]MH_I2C_Read... [19:08:03]Read from MH i2c: E2 62 00 23 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [19:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:03]wFMCommunicate OK [19:08:03]SAM_PROTO_GetFieldsCounters done [19:08:03]requested_item shift.num is exist - process it [19:08:03]requested_item shift.opened is exist - process it [19:08:03]req_shift_opened [19:08:03]FM_GetShiftState [19:08:03]SAM_PROTO_GetShiftState [19:08:03]wFMCommunicate request_size=4 [19:08:03]MH_SAM_APDU [19:08:03]CAPDU: 80 13 01 00 [19:08:03]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [19:08:03]Write i2c OK [19:08:03]MH_I2C_Read... [19:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:03]Read from MH i2c: E2 [19:08:03]MH_I2C_Read... [19:08:03]Read from MH i2c: E2 0E 00 [19:08:03]MH_I2C_Read... [19:08:03]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [19:08:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:08:03]wFMCommunicate OK [19:08:03]SAM_PROTO_GetShiftState done [19:08:03]FM_GetShiftState done [19:08:03]req_shift_opened done [19:08:03]requested_item shift.open_date is exist - process it [19:08:03]req_shift_open_date [19:08:03]req_shift_open_date done [19:08:03]produce_requested_data done [19:08:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192395,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:08:03]process_action_free close_receipt [19:08:03]json_value_free [19:08:03]json_value_free done [19:08:03]process_json_proto returns [19:08:03]Send response to host [19:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192395,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:08:03]free response buf [19:08:03]execute_script done [19:08:03]execute_script returns [19:08:03]free content buf [19:08:03]Sock 9.Close socket [19:08:03]Sock 9.Thread stoped [19:08:06]OFD Sender: No OFD packet to send [19:08:07]accept exits with 7 [19:08:07]New connection [19:08:07]New thread 3066707300 created [19:08:07]Thread 3066563940 joined [19:08:07]Waiting for new connection... [19:08:07] Sock 7.Parse request [19:08:07]Sock 7.Check first char [19:08:07]Sock 7.First char is OK [19:08:07]request: POST /json_proto HTTP/1.0 [19:08:07]Method: POST [19:08:07]URL: /json_proto [19:08:07]Method is POST - this is cgi request [19:08:07]url: /json_proto [19:08:07]query_string will be loaded in cgi processing [19:08:07]execute_cgi json_proto POST (null) [19:08:07]execute_cgi path=json_proto method=POST [19:08:07]POST find Content-Length [19:08:07]Host: 172.17.63.131:8080 [19:08:07]Content-Length: 681 [19:08:07]Content-Type: application/json [19:08:07] [19:08:07]POST finish read [19:08:07]Found Content-Length = 681 [19:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:07]execute_script... [19:08:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:07]POST & json_proto [19:08:07]process_json_proto [19:08:07]json parsed OK: [19:08:07]protocol is kg_v1.0 [19:08:07]action value=close_receipt [19:08:07]process_action close_receipt [19:08:07]cmd_close_receipt [19:08:07]MH_GetDate [19:08:07]Write to MH i2c: F0 00 00 25 0B 1F [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 09 00 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 09 00 25 0B 00 98 8F 1E 67 22 05 6E 64 CD [19:08:07]GetLastDocTimeStamp 1730056080 [19:08:07]current date 1730056088 [19:08:07]FM_GetShiftState [19:08:07]SAM_PROTO_GetShiftState [19:08:07]wFMCommunicate request_size=4 [19:08:07]MH_SAM_APDU [19:08:07]CAPDU: 80 13 01 00 [19:08:07]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:07]Read from MH i2c: E2 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: E2 0E 00 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [19:08:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:08:07]wFMCommunicate OK [19:08:07]SAM_PROTO_GetShiftState done [19:08:07]FM_GetShiftState done [19:08:07]opened in 1729989159 [19:08:07]opened+sec_in_day 1730075559 [19:08:07]quantity*price = 100015 [19:08:07]sum+1 = 100017 [19:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 428 27.10.2024 19:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192396 ФПД: 191221297398802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192396&fm=191221297398802&tin=02508201610067®Number=0000000000091776&sum=100000 [19:08:08]StoreToDocumentArchive [19:08:08]shift 542 fd 192396 [19:08:08]save to /storage/0542/doc_00192396 [19:08:08]save last doc name /storage/0542/doc_00192396 to /storage/kkm_last_doc_name [19:08:08]save OK [19:08:08]Clear old archive folders... [19:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:08]tlvbuf is 019BF690 [19:08:08]SAM_PROTO_ClearQueue [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 09 00 00 [19:08:08]Write to MH i2c: E2 08 00 33 0B 80 09 00 00 00 00 00 00 B0 [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [19:08:08]RAPDU: 90 00 [19:08:08]wFMCommunicate OK [19:08:08]SAM_PROTO_ClearQueue done [19:08:08]KKMCreateOFDPacket [19:08:08]OFDProtocolAddRootSTLVToBuf [19:08:08]FM_MakeSignedData [19:08:08]FM_MakeSignedData [19:08:08]SAM_PROTO_SignData [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 0D 01 02 [19:08:08]Write to MH i2c: E2 08 00 34 0B 80 0D 01 02 00 00 00 00 B8 [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [19:08:09]RAPDU: 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=255 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 98 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EF 02 00 35 04 06 00 AD [19:08:09]Write to MH i2c: E2 02 01 35 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 98 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EF 02 00 35 04 06 00 AD 00 00 E9 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [19:08:09]RAPDU: 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=10 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 0D 02 02 05 EA 2D 81 44 12 [19:08:09]Write to MH i2c: E2 0D 00 36 0B 80 0D 02 02 05 00 EA 2D 81 44 12 00 00 B3 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [19:08:09]RAPDU: 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 0D 03 02 [19:08:09]Write to MH i2c: E2 08 00 37 0B 80 0D 03 02 00 00 00 00 BD [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0B 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0B 00 37 0B 00 C4 83 9C 78 09 14 B9 F1 90 00 E0 [19:08:09]RAPDU: C4 83 9C 78 09 14 B9 F1 90 00 [19:08:09]wFMCommunicate OK [19:08:09]SAM_PROTO_SignData done [19:08:09]FM_MakeSignedData done [19:08:09]CreateOFDProtocolMessage [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 11 00 00 [19:08:09]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 17 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [19:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:08:09]wFMCommunicate OK [19:08:09]CreateOFDProtocolMessage done [19:08:09]OFDSenderStorePacket 192396 [19:08:09]StoreOFDPacket docnum=192396 [19:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F 16 07 01 F4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 98 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EF 02 00 35 04 06 00 AD EA 2D 81 44 12 C4 83 9C 78 09 14 B9 F1 [19:08:09]CheckFolder [19:08:09]dirname=/storage/ofd_packets [19:08:09]CheckFolder done [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00192396 [19:08:09]NVStorageSaveData ofd_packets/00192396 [19:08:09]File name is /storage/ofd_packets/00192396 [19:08:09]Write 301 bytes [19:08:09]NVStorageSaveData done [19:08:09]OFDSenderStorePacket done [19:08:09]KKMCreateOFDPacket done [19:08:09]NVStorageSaveData kkm_last_timestamp [19:08:09]File name is /storage/kkm_last_timestamp [19:08:09]Write 4 bytes [19:08:09]NVStorageSaveData done [19:08:09]ExternCall_PrintAddStr [19:08:09]wPrintStart [19:08:09]Write to MH i2c: 01 00 00 39 0B 44 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [19:08:09]RasterBufferAndPrint [19:08:09]line Счет N : (1)31712 [19:08:09]line ИНН: 02508201610067 [19:08:09]line Контрольно-Кассовый Чек [19:08:09]line ПРОДАЖА [19:08:09]line ТРК (МРК, ГНК) : 21 [19:08:09]line Товар: 2710124130 [19:08:09]line Аи-92-К-5 [19:08:09]line 14.950 * 66.90 [19:08:09]line = 1000.16 [19:08:09]line НДС 12% НСП 1% [19:08:09]line > о реализуемом товаре [19:08:09]line ОКРУГЛЕНИЕ: -0.16 [19:08:09]line ИТОГО: 1000.00 [19:08:09]line Внесено: 1000.00 [19:08:09]line СДАЧА: 0.00 [19:08:09]line НСП 1% : 8.85 [19:08:09]line НДС 12% : 106.21 [19:08:09]line Наличными: 1000.00 [19:08:09]line Безнал.: 0.00 [19:08:09]line Место: АЗС № 170 "Партнер Нефть" [19:08:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:08:09]line СНО: Общий режим [19:08:09]line Чек 428 27.10.2024 19:08 [19:08:09]line Смена: 542 ФФД: 1.0 [19:08:09]line ЗНМ: 0300000110 [19:08:09]line РНМ: 0000000000091776 [19:08:09]line Версия ККМ: 001 [19:08:09]line ФМ: 0000000000871754 [19:08:09]line ФД: 192396 [19:08:09]line ФПД: 191221297398802 [19:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190808&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192396&fm=191221297398802&tin=02508201610067®Number=0000000000091776&sum=100000 [19:08:09]written 0, free lines is 4095 [19:08:09]OFD Sender: Processing packet 192396 [packets to send 75, broken 74] [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00192396 [19:08:09]OFD Sender: To server: pG, [19:08:09]CommunicateWithHost lk.salyk.kg:30040 [19:08:09]ConnectInit lk.salyk.kg [19:08:09]Connected sock=10 [19:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F 16 07 01 F4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 98 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EF 02 00 35 04 06 00 AD EA 2D 81 44 12 C4 83 9C 78 09 14 B9 F1 [19: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 37 35 34 4F 00 00 00 BB 76 47 00 BF 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C EF 02 00 F4 03 04 00 5F 34 1E 67 B6 04 01 00 00 3D 00 AE A7 21 11 79 2A [19:08:09]CommunicateWithHost err = 0 [19:08:09]CheckOFDResponse [19:08:09]1017 (14) - 77093643461234 [19:08:09]1041 (16) - 0000000000871754 [19:08:09]1040 (4) - 192396 [19:08:09]1012 (4) - 27.10.2024 12:38 [19:08:09]1206 (1) - 0 [19:08:09]OFD Sender: Remove packet 192396 [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00192396 [19:08:09]NVStorageDeleteData [19:08:09]Write to MH i2c: 01 00 00 64 0B 6F [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 B5 0C 37 [19:08:09]RasterBufferAndPrint [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]written 0, free lines is 3262 [19:08:09]MH_Cut [19:08:09]Write to MH i2c: D1 01 00 6B 0B 01 48 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 01 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 01 00 6B 0B 00 47 [19:08:09]Write to MH i2c: 01 00 00 6C 0B 77 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:10]OFD Sender: No OFD packet to send [19:08:10]*** Cut start [19:08:10]*** Partial cut [19:08:10]*** CUTSNS_PIN = 1 [19:08:10]*** CUTSNS_PIN = 0 [19:08:11]*** Brake cut motor [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]*** Stop cut motor [19:08:11]*** Cut end [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [19:08:11]process_action close_receipt done [19:08:11]requested_data is exist [19:08:11]produce_requested_data [19:08:11]requested_item fm.sn is exist - process it [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [19:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:08:11]wFMCommunicate OK [19:08:11]requested_item fd.num is exist - process it [19:08:11]SAM_PROTO_GetFieldsCounters [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 00 00 [19:08:11]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:11]Read from MH i2c: E2 62 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 62 00 6E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetFieldsCounters done [19:08:11]requested_item shift.num is exist - process it [19:08:11]requested_item shift.opened is exist - process it [19:08:11]req_shift_opened [19:08:11]FM_GetShiftState [19:08:11]SAM_PROTO_GetShiftState [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 01 00 [19:08:11]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [19:08:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetShiftState done [19:08:11]FM_GetShiftState done [19:08:11]req_shift_opened done [19:08:11]requested_item shift.open_date is exist - process it [19:08:11]req_shift_open_date [19:08:11]req_shift_open_date done [19:08:11]produce_requested_data done [19:08:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192396,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:08:11]process_action_free close_receipt [19:08:11]json_value_free [19:08:11]json_value_free done [19:08:11]process_json_proto returns [19:08:11]Send response to host [19:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192396,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:08:11]free response buf [19:08:11]execute_script done [19:08:11]execute_script returns [19:08:11]free content buf [19:08:11]Sock 7.Close socket [19:08:11]Sock 7.Thread stoped [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:08:58]accept exits with 9 [19:08:58]New connection [19:08:58]New thread 3066563940 created [19:08:58]Thread 3066707300 joined [19:08:58]Waiting for new connection... [19:08:58] Sock 9.Parse request [19:08:58]Sock 9.Check first char [19:08:58]Sock 9.First char is OK [19:08:58]request: POST /json_proto HTTP/1.0 [19:08:58]Method: POST [19:08:58]URL: /json_proto [19:08:58]Method is POST - this is cgi request [19:08:58]url: /json_proto [19:08:58]query_string will be loaded in cgi processing [19:08:58]execute_cgi json_proto POST (null) [19:08:58]execute_cgi path=json_proto method=POST [19:08:58]POST find Content-Length [19:08:58]Host: 172.17.63.131:8080 [19:08:58]Content-Length: 681 [19:08:58]Content-Type: application/json [19:08:58] [19:08:58]POST finish read [19:08:58]Found Content-Length = 681 [19:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:58]execute_script... [19:08:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:58]POST & json_proto [19:08:58]process_json_proto [19:08:58]json parsed OK: [19:08:58]protocol is kg_v1.0 [19:08:58]action value=close_receipt [19:08:58]process_action close_receipt [19:08:58]cmd_close_receipt [19:08:58]MH_GetDate [19:08:58]Write to MH i2c: F0 00 00 70 0B 6A [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: F0 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: F0 09 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: F0 09 00 70 0B 00 CB 8F 1E 67 22 05 6E 64 4B [19:08:58]GetLastDocTimeStamp 1730056088 [19:08:58]current date 1730056139 [19:08:58]FM_GetShiftState [19:08:58]SAM_PROTO_GetShiftState [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 13 01 00 [19:08:58]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0E 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3A [19:08:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:08:58]wFMCommunicate OK [19:08:58]SAM_PROTO_GetShiftState done [19:08:58]FM_GetShiftState done [19:08:58]opened in 1729989159 [19:08:58]opened+sec_in_day 1730075559 [19:08:58]quantity*price = 100015 [19:08:58]sum+1 = 100017 [19:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 429 27.10.2024 19:08 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192397 ФПД: 21771326119108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192397&fm=21771326119108&tin=02508201610067®Number=0000000000091776&sum=100000 [19:08:59]StoreToDocumentArchive [19:08:59]shift 542 fd 192397 [19:08:59]save to /storage/0542/doc_00192397 [19:08:59]save last doc name /storage/0542/doc_00192397 to /storage/kkm_last_doc_name [19:08:59]save OK [19:08:59]Clear old archive folders... [19:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:59]tlvbuf is 019D8710 [19:08:59]SAM_PROTO_ClearQueue [19:08:59]wFMCommunicate request_size=4 [19:08:59]MH_SAM_APDU [19:08:59]CAPDU: 80 09 00 00 [19:08:59]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:59]Read from MH i2c: E2 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 03 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [19:08:59]RAPDU: 90 00 [19:08:59]wFMCommunicate OK [19:08:59]SAM_PROTO_ClearQueue done [19:08:59]KKMCreateOFDPacket [19:08:59]OFDProtocolAddRootSTLVToBuf [19:08:59]FM_MakeSignedData [19:08:59]FM_MakeSignedData [19:08:59]SAM_PROTO_SignData [19:08:59]wFMCommunicate request_size=4 [19:08:59]MH_SAM_APDU [19:08:59]CAPDU: 80 0D 01 02 [19:08:59]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:59]Read from MH i2c: E2 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 03 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [19:08:59]RAPDU: 90 00 [19:08:59]wFMCommunicate OK [19:08:59]wFMCommunicate request_size=255 [19:08:59]MH_SAM_APDU [19:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CB 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EF 02 00 35 04 06 00 13 [19:08:59]Write to MH i2c: E2 02 01 80 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CB 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EF 02 00 35 04 06 00 13 00 00 CF [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [19:09:00]RAPDU: 90 00 [19:09:00]wFMCommunicate OK [19:09:00]wFMCommunicate request_size=10 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 0D 02 02 05 CD 08 28 DC C4 [19:09:00]Write to MH i2c: E2 0D 00 81 0B 80 0D 02 02 05 00 CD 08 28 DC C4 00 00 AD [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [19:09:00]RAPDU: 90 00 [19:09:00]wFMCommunicate OK [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 0D 03 02 [19:09:00]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 0B 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 0B 00 82 0B 00 C5 39 CA 9A E0 70 4A 29 90 00 2E [19:09:00]RAPDU: C5 39 CA 9A E0 70 4A 29 90 00 [19:09:00]wFMCommunicate OK [19:09:00]SAM_PROTO_SignData done [19:09:00]FM_MakeSignedData done [19:09:00]CreateOFDProtocolMessage [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 11 00 00 [19:09:00]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [19:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:09:00]wFMCommunicate OK [19:09:00]CreateOFDProtocolMessage done [19:09:00]OFDSenderStorePacket 192397 [19:09:00]StoreOFDPacket docnum=192397 [19:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 51 07 01 DC 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CB 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EF 02 00 35 04 06 00 13 CD 08 28 DC C4 C5 39 CA 9A E0 70 4A 29 [19:09:00]CheckFolder [19:09:00]dirname=/storage/ofd_packets [19:09:00]CheckFolder done [19:09:00]ProducePacketName [19:09:00]name=ofd_packets/00192397 [19:09:00]NVStorageSaveData ofd_packets/00192397 [19:09:00]File name is /storage/ofd_packets/00192397 [19:09:00]Write 301 bytes [19:09:00]NVStorageSaveData done [19:09:00]OFDSenderStorePacket done [19:09:00]KKMCreateOFDPacket done [19:09:00]NVStorageSaveData kkm_last_timestamp [19:09:00]File name is /storage/kkm_last_timestamp [19:09:00]Write 4 bytes [19:09:00]NVStorageSaveData done [19:09:00]OFD Sender: Processing packet 192397 [packets to send 75, broken 74] [19:09:00]ProducePacketName [19:09:00]name=ofd_packets/00192397 [19:09:00]OFD Sender: To server: pG, [19:09:00]CommunicateWithHost lk.salyk.kg:30040 [19:09:00]ConnectInit lk.salyk.kg [19:09:00]ExternCall_PrintAddStr [19:09:00]wPrintStart [19:09:00]Write to MH i2c: 01 00 00 84 0B 8F [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: 01 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: 01 07 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [19:09:00]RasterBufferAndPrint [19:09:00]line Счет N : (1)31714 [19:09:00]line ИНН: 02508201610067 [19:09:00]line Контрольно-Кассовый Чек [19:09:00]line ПРОДАЖА [19:09:00]line ТРК (МРК, ГНК) : 12 [19:09:00]line Товар: 2710124130 [19:09:00]line Аи-92-К-5 [19:09:00]line 14.950 * 66.90 [19:09:00]line = 1000.16 [19:09:00]line НДС 12% НСП 1% [19:09:00]line > о реализуемом товаре [19:09:00]line ОКРУГЛЕНИЕ: -0.16 [19:09:00]line ИТОГО: 1000.00 [19:09:00]line Внесено: 1000.00 [19:09:00]line СДАЧА: 0.00 [19:09:00]line НСП 1% : 8.85 [19:09:00]line НДС 12% : 106.21 [19:09:00]line Наличными: 1000.00 [19:09:00]line Безнал.: 0.00 [19:09:00]line Место: АЗС № 170 "Партнер Нефть" [19:09:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:09:00]line СНО: Общий режим [19:09:00]line Чек 429 27.10.2024 19:08 [19:09:00]line Смена: 542 ФФД: 1.0 [19:09:00]line ЗНМ: 0300000110 [19:09:00]line РНМ: 0000000000091776 [19:09:00]line Версия ККМ: 001 [19:09:00]line ФМ: 0000000000871754 [19:09:00]line ФД: 192397 [19:09:00]line ФПД: 21771326119108 [19:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192397&fm=21771326119108&tin=02508201610067®Number=0000000000091776&sum=100000 [19:09:00]Connected sock=11 [19:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 51 07 01 DC 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 CB 8F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EF 02 00 35 04 06 00 13 CD 08 28 DC C4 C5 39 CA 9A E0 70 4A 29 [19:09:00]written 0, free lines is 4095 [19:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E C3 47 00 C9 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D EF 02 00 F4 03 04 00 92 34 1E 67 B6 04 01 00 00 2D 57 5A 7D 75 4D CA BA [19:09:00]CommunicateWithHost err = 0 [19:09:00]CheckOFDResponse [19:09:00]1017 (14) - 77093643461234 [19:09:00]1041 (16) - 0000000000871754 [19:09:00]1040 (4) - 192397 [19:09:00]1012 (4) - 27.10.2024 12:39 [19:09:00]1206 (1) - 0 [19:09:00]OFD Sender: Remove packet 192397 [19:09:00]ProducePacketName [19:09:00]name=ofd_packets/00192397 [19:09:00]NVStorageDeleteData [19:09:01]Write to MH i2c: 01 00 00 AF 0B BA [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 07 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 AA 0C 77 [19:09:01]RasterBufferAndPrint [19:09:01]line [19:09:01]line [19:09:01]line [19:09:01]line [19:09:01]line [19:09:01]written 0, free lines is 3248 [19:09:01]MH_Cut [19:09:01]Write to MH i2c: D1 01 00 B6 0B 01 93 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: D1 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: D1 01 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: D1 01 00 B6 0B 00 92 [19:09:01]Write to MH i2c: 01 00 00 B7 0B C2 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]OFD Sender: No OFD packet to send [19:09:01]*** Cut start [19:09:01]*** Partial cut [19:09:01]*** CUTSNS_PIN = 1 [19:09:01]*** CUTSNS_PIN = 0 [19:09:02]*** Brake cut motor [19:09:02]Read from MH i2c: 01 [19:09:02]MH_I2C_Read... [19:09:02]*** Stop cut motor [19:09:02]*** Cut end [19:09:02]Read from MH i2c: 01 07 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [19:09:02]process_action close_receipt done [19:09:02]requested_data is exist [19:09:02]produce_requested_data [19:09:02]requested_item fm.sn is exist - process it [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 11 00 00 [19:09:02]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 17 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [19:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:09:02]wFMCommunicate OK [19:09:02]requested_item fd.num is exist - process it [19:09:02]SAM_PROTO_GetFieldsCounters [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 13 00 00 [19:09:02]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 62 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:02]wFMCommunicate OK [19:09:02]SAM_PROTO_GetFieldsCounters done [19:09:02]requested_item shift.num is exist - process it [19:09:02]requested_item shift.opened is exist - process it [19:09:02]req_shift_opened [19:09:02]FM_GetShiftState [19:09:02]SAM_PROTO_GetShiftState [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 13 01 00 [19:09:02]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0E 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [19:09:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:09:02]wFMCommunicate OK [19:09:02]SAM_PROTO_GetShiftState done [19:09:02]FM_GetShiftState done [19:09:02]req_shift_opened done [19:09:02]requested_item shift.open_date is exist - process it [19:09:02]req_shift_open_date [19:09:02]req_shift_open_date done [19:09:02]produce_requested_data done [19:09:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192397,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:09:02]process_action_free close_receipt [19:09:02]json_value_free [19:09:02]json_value_free done [19:09:02]process_json_proto returns [19:09:02]Send response to host [19:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192397,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:09:02]free response buf [19:09:02]execute_script done [19:09:02]execute_script returns [19:09:02]free content buf [19:09:02]Sock 9.Close socket [19:09:02]Sock 9.Thread stoped [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:19]accept exits with 7 [19:12:19]New connection [19:12:19]New thread 3066707300 created [19:12:19]Thread 3066563940 joined [19:12:19]Waiting for new connection... [19:12:19] Sock 7.Parse request [19:12:19]Sock 7.Check first char [19:12:19]Sock 7.First char is OK [19:12:19]request: POST /json_proto HTTP/1.0 [19:12:19]Method: POST [19:12:19]URL: /json_proto [19:12:19]Method is POST - this is cgi request [19:12:19]url: /json_proto [19:12:19]query_string will be loaded in cgi processing [19:12:19]execute_cgi json_proto POST (null) [19:12:19]execute_cgi path=json_proto method=POST [19:12:19]POST find Content-Length [19:12:19]Host: 172.17.63.131:8080 [19:12:19]Content-Length: 676 [19:12:19]Content-Type: application/json [19:12:19] [19:12:19]POST finish read [19:12:19]Found Content-Length = 676 [19:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:19]execute_script... [19:12: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)31715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:19]POST & json_proto [19:12:19]process_json_proto [19:12:19]json parsed OK: [19:12:19]protocol is kg_v1.0 [19:12:19]action value=close_receipt [19:12:19]process_action close_receipt [19:12:19]cmd_close_receipt [19:12:19]MH_GetDate [19:12:19]Write to MH i2c: F0 00 00 BB 0B B5 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: F0 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: F0 09 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: F0 09 00 BB 0B 00 94 90 1E 67 22 05 6E 64 60 [19:12:19]GetLastDocTimeStamp 1730056139 [19:12:19]current date 1730056340 [19:12:19]FM_GetShiftState [19:12:19]SAM_PROTO_GetShiftState [19:12:19]wFMCommunicate request_size=4 [19:12:19]MH_SAM_APDU [19:12:19]CAPDU: 80 13 01 00 [19:12:19]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:19]Read from MH i2c: E2 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 0E 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 85 [19:12:19]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:12:19]wFMCommunicate OK [19:12:19]SAM_PROTO_GetShiftState done [19:12:19]FM_GetShiftState done [19:12:19]opened in 1729989159 [19:12:19]opened+sec_in_day 1730075559 [19:12:19]quantity*price = 50041 [19:12:19]sum+1 = 50042 [19:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 430 27.10.2024 19:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192398 ФПД: 146460566745696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192398&fm=146460566745696&tin=02508201610067®Number=0000000000091776&sum=50000 [19:12:20]StoreToDocumentArchive [19:12:20]shift 542 fd 192398 [19:12:20]save to /storage/0542/doc_00192398 [19:12:20]save last doc name /storage/0542/doc_00192398 to /storage/kkm_last_doc_name [19:12:20]save OK [19:12:20]Clear old archive folders... [19:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:20]tlvbuf is 019CB070 [19:12:20]SAM_PROTO_ClearQueue [19:12:20]wFMCommunicate request_size=4 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 09 00 00 [19:12:20]Write to MH i2c: E2 08 00 C9 0B 80 09 00 00 00 00 00 00 46 [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [19:12:20]RAPDU: 90 00 [19:12:20]wFMCommunicate OK [19:12:20]SAM_PROTO_ClearQueue done [19:12:20]KKMCreateOFDPacket [19:12:20]OFDProtocolAddRootSTLVToBuf [19:12:20]FM_MakeSignedData [19:12:20]FM_MakeSignedData [19:12:20]SAM_PROTO_SignData [19:12:20]wFMCommunicate request_size=4 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 0D 01 02 [19:12:20]Write to MH i2c: E2 08 00 CA 0B 80 0D 01 02 00 00 00 00 4E [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [19:12:20]RAPDU: 90 00 [19:12:20]wFMCommunicate OK [19:12:20]wFMCommunicate request_size=255 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 94 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EF 02 00 35 04 06 00 85 [19:12:20]Write to MH i2c: E2 02 01 CB 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 94 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EF 02 00 35 04 06 00 85 00 00 5E [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [19:12:20]RAPDU: 90 00 [19:12:20]wFMCommunicate OK [19:12:20]wFMCommunicate request_size=10 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 0D 02 02 05 34 82 0D F2 60 [19:12:20]Write to MH i2c: E2 0D 00 CC 0B 80 0D 02 02 05 00 34 82 0D F2 60 00 00 70 [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [19:12:20]RAPDU: 90 00 [19:12:20]wFMCommunicate OK [19:12:20]wFMCommunicate request_size=4 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 0D 03 02 [19:12:20]Write to MH i2c: E2 08 00 CD 0B 80 0D 03 02 00 00 00 00 53 [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 0B 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 0B 00 CD 0B 00 8D D1 1C 46 D8 AF A2 F1 90 00 2E [19:12:20]RAPDU: 8D D1 1C 46 D8 AF A2 F1 90 00 [19:12:20]wFMCommunicate OK [19:12:20]SAM_PROTO_SignData done [19:12:20]FM_MakeSignedData done [19:12:20]CreateOFDProtocolMessage [19:12:20]wFMCommunicate request_size=4 [19:12:20]MH_SAM_APDU [19:12:20]CAPDU: 80 11 00 00 [19:12:20]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:20]Read from MH i2c: E2 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 17 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [19:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:20]wFMCommunicate OK [19:12:20]CreateOFDProtocolMessage done [19:12:20]OFDSenderStorePacket 192398 [19:12:20]StoreOFDPacket docnum=192398 [19:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 77 07 01 25 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 94 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EF 02 00 35 04 06 00 85 34 82 0D F2 60 8D D1 1C 46 D8 AF A2 F1 [19:12:20]CheckFolder [19:12:20]dirname=/storage/ofd_packets [19:12:20]CheckFolder done [19:12:20]ProducePacketName [19:12:20]name=ofd_packets/00192398 [19:12:20]NVStorageSaveData ofd_packets/00192398 [19:12:20]File name is /storage/ofd_packets/00192398 [19:12:20]Write 301 bytes [19:12:20]NVStorageSaveData done [19:12:20]OFDSenderStorePacket done [19:12:20]KKMCreateOFDPacket done [19:12:20]NVStorageSaveData kkm_last_timestamp [19:12:20]File name is /storage/kkm_last_timestamp [19:12:20]Write 4 bytes [19:12:20]NVStorageSaveData done [19:12:20]ExternCall_PrintAddStr [19:12:20]wPrintStart [19:12:20]Write to MH i2c: 01 00 00 CF 0B DA [19:12:20]Write i2c OK [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: 01 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: 01 07 00 [19:12:20]MH_I2C_Read... [19:12:20]Read from MH i2c: 01 07 00 CF 0B 00 00 00 00 00 FF 0F EF [19:12:20]RasterBufferAndPrint [19:12:20]line Счет N : (1)31715 [19:12:20]line ИНН: 02508201610067 [19:12:20]line Контрольно-Кассовый Чек [19:12:20]line ПРОДАЖА [19:12:20]line ТРК (МРК, ГНК) : 12 [19:12:20]line Товар: 2710124130 [19:12:20]line Аи-92-К-5 [19:12:20]line 7.480 * 66.90 [19:12:20]line = 500.41 [19:12:20]line НДС 12% НСП 1% [19:12:20]line > о реализуемом товаре [19:12:20]line ОКРУГЛЕНИЕ: -0.41 [19:12:20]line ИТОГО: 500.00 [19:12:20]line Внесено: 500.00 [19:12:20]line СДАЧА: 0.00 [19:12:20]line НСП 1% : 4.43 [19:12:20]line НДС 12% : 53.14 [19:12:20]line Наличными: 500.00 [19:12:20]line Безнал.: 0.00 [19:12:20]line Место: АЗС № 170 "Партнер Нефть" [19:12:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:12:20]line СНО: Общий режим [19:12:20]line Чек 430 27.10.2024 19:12 [19:12:20]line Смена: 542 ФФД: 1.0 [19:12:20]line ЗНМ: 0300000110 [19:12:20]line РНМ: 0000000000091776 [19:12:20]line Версия ККМ: 001 [19:12:20]line ФМ: 0000000000871754 [19:12:20]line ФД: 192398 [19:12:20]line ФПД: 146460566745696 [19:12:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191220&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192398&fm=146460566745696&tin=02508201610067®Number=0000000000091776&sum=50000 [19:12:21]OFD Sender: Processing packet 192398 [packets to send 75, broken 74] [19:12:21]ProducePacketName [19:12:21]name=ofd_packets/00192398 [19:12:21]OFD Sender: To server: pG, [19:12:21]CommunicateWithHost lk.salyk.kg:30040 [19:12:21]ConnectInit lk.salyk.kg [19:12:21]written 0, free lines is 4095 [19:12:21]Connected sock=10 [19:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 77 07 01 25 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 94 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EF 02 00 35 04 06 00 85 34 82 0D F2 60 8D D1 1C 46 D8 AF A2 F1 [19:12:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4D 0D 47 00 8E D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E EF 02 00 F4 03 04 00 5A 35 1E 67 B6 04 01 00 00 68 B3 84 6B B3 F3 F4 E6 [19:12:21]CommunicateWithHost err = 0 [19:12:21]CheckOFDResponse [19:12:21]1017 (14) - 77093643461234 [19:12:21]1041 (16) - 0000000000871754 [19:12:21]1040 (4) - 192398 [19:12:21]1012 (4) - 27.10.2024 12:43 [19:12:21]1206 (1) - 0 [19:12:21]OFD Sender: Remove packet 192398 [19:12:21]ProducePacketName [19:12:21]name=ofd_packets/00192398 [19:12:21]NVStorageDeleteData [19:12:21]Write to MH i2c: 01 00 00 FA 0B 05 [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: 01 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: 01 07 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 A5 0C BD [19:12:21]RasterBufferAndPrint [19:12:21]line [19:12:21]line [19:12:21]line [19:12:21]line [19:12:21]line [19:12:21]written 0, free lines is 3242 [19:12:21]MH_Cut [19:12:21]Write to MH i2c: D1 01 00 01 0C 01 DF [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: D1 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: D1 01 00 [19:12:21]MH_I2C_Read... [19:12:21]Read from MH i2c: D1 01 00 01 0C 00 DE [19:12:21]Write to MH i2c: 01 00 00 02 0C 0E [19:12:21]Write i2c OK [19:12:21]MH_I2C_Read... [19:12:21]OFD Sender: No OFD packet to send [19:12:22]*** Cut start [19:12:22]*** Partial cut [19:12:22]*** CUTSNS_PIN = 1 [19:12:22]*** CUTSNS_PIN = 0 [19:12:22]*** Brake cut motor [19:12:23]Read from MH i2c: 01 [19:12:23]MH_I2C_Read... [19:12:23]*** Stop cut motor [19:12:23]*** Cut end [19:12:23]Read from MH i2c: 01 07 00 [19:12:23]MH_I2C_Read... [19:12:23]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [19:12:23]process_action close_receipt done [19:12:23]requested_data is exist [19:12:23]produce_requested_data [19:12:23]requested_item fm.sn is exist - process it [19:12:23]wFMCommunicate request_size=4 [19:12:23]MH_SAM_APDU [19:12:23]CAPDU: 80 11 00 00 [19:12:23]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [19:12:23]Write i2c OK [19:12:23]MH_I2C_Read... [19:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:23]Read from MH i2c: E2 [19:12:23]MH_I2C_Read... [19:12:23]Read from MH i2c: E2 17 00 [19:12:23]MH_I2C_Read... [19:12:23]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 37 35 34 90 00 DC [19:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:23]wFMCommunicate OK [19:12:23]requested_item fd.num is exist - process it [19:12:23]SAM_PROTO_GetFieldsCounters [19:12:23]wFMCommunicate request_size=4 [19:12:23]MH_SAM_APDU [19:12:23]CAPDU: 80 13 00 00 [19:12:23]Write to MH i2c: E2 08 00 04 0C 80 13 00 00 00 00 00 00 8C [19:12:23]Write i2c OK [19:12:23]MH_I2C_Read... [19:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:23]Read from MH i2c: E2 [19:12:23]MH_I2C_Read... [19:12:23]Read from MH i2c: E2 62 00 [19:12:23]MH_I2C_Read... [19:12:23]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [19:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:23]wFMCommunicate OK [19:12:23]SAM_PROTO_GetFieldsCounters done [19:12:23]requested_item shift.num is exist - process it [19:12:23]requested_item shift.opened is exist - process it [19:12:23]req_shift_opened [19:12:23]FM_GetShiftState [19:12:23]SAM_PROTO_GetShiftState [19:12:23]wFMCommunicate request_size=4 [19:12:23]MH_SAM_APDU [19:12:23]CAPDU: 80 13 01 00 [19:12:23]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [19:12:23]Write i2c OK [19:12:23]MH_I2C_Read... [19:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:23]Read from MH i2c: E2 [19:12:23]MH_I2C_Read... [19:12:23]Read from MH i2c: E2 0E 00 [19:12:23]MH_I2C_Read... [19:12:23]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [19:12:23]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:12:23]wFMCommunicate OK [19:12:23]SAM_PROTO_GetShiftState done [19:12:23]FM_GetShiftState done [19:12:23]req_shift_opened done [19:12:23]requested_item shift.open_date is exist - process it [19:12:23]req_shift_open_date [19:12:23]req_shift_open_date done [19:12:23]produce_requested_data done [19:12:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192398,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:12:23]process_action_free close_receipt [19:12:23]json_value_free [19:12:23]json_value_free done [19:12:23]process_json_proto returns [19:12:23]Send response to host [19:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192398,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:12:23]free response buf [19:12:23]execute_script done [19:12:23]execute_script returns [19:12:23]free content buf [19:12:23]Sock 7.Close socket [19:12:23]Sock 7.Thread stoped [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:39]accept exits with 9 [19:12:39]New connection [19:12:39]New thread 3066563940 created [19:12:39]Thread 3066707300 joined [19:12:39]Waiting for new connection... [19:12:39] Sock 9.Parse request [19:12:39]Sock 9.Check first char [19:12:39]Sock 9.First char is OK [19:12:39]request: POST /json_proto HTTP/1.0 [19:12:39]Method: POST [19:12:39]URL: /json_proto [19:12:39]Method is POST - this is cgi request [19:12:39]url: /json_proto [19:12:39]query_string will be loaded in cgi processing [19:12:39]execute_cgi json_proto POST (null) [19:12:39]execute_cgi path=json_proto method=POST [19:12:39]POST find Content-Length [19:12:39]Host: 172.17.63.131:8080 [19:12:39]Content-Length: 676 [19:12:39]Content-Type: application/json [19:12:39] [19:12:39]POST finish read [19:12:39]Found Content-Length = 676 [19:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:39]execute_script... [19:12:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:39]POST & json_proto [19:12:39]process_json_proto [19:12:39]json parsed OK: [19:12:39]protocol is kg_v1.0 [19:12:39]action value=close_receipt [19:12:39]process_action close_receipt [19:12:39]cmd_close_receipt [19:12:39]MH_GetDate [19:12:39]Write to MH i2c: F0 00 00 06 0C 01 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: F0 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: F0 09 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: F0 09 00 06 0C 00 A9 90 1E 67 22 05 6E 64 C1 [19:12:39]GetLastDocTimeStamp 1730056340 [19:12:39]current date 1730056361 [19:12:39]FM_GetShiftState [19:12:39]SAM_PROTO_GetShiftState [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 13 01 00 [19:12:39]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0E 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [19:12:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_GetShiftState done [19:12:39]FM_GetShiftState done [19:12:39]opened in 1729989159 [19:12:39]opened+sec_in_day 1730075559 [19:12:39]quantity*price = 50041 [19:12:39]sum+1 = 50042 [19:12:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 431 27.10.2024 19:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192399 ФПД: 64623550013637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192399&fm=64623550013637&tin=02508201610067®Number=0000000000091776&sum=50000 [19:12:41]StoreToDocumentArchive [19:12:41]shift 542 fd 192399 [19:12:41]save to /storage/0542/doc_00192399 [19:12:41]save last doc name /storage/0542/doc_00192399 to /storage/kkm_last_doc_name [19:12:41]save OK [19:12:41]Clear old archive folders... [19:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:41]tlvbuf is 01A06720 [19:12:41]SAM_PROTO_ClearQueue [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 09 00 00 [19:12:41]Write to MH i2c: E2 08 00 14 0C 80 09 00 00 00 00 00 00 92 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [19:12:41]RAPDU: 90 00 [19:12:41]wFMCommunicate OK [19:12:41]SAM_PROTO_ClearQueue done [19:12:41]KKMCreateOFDPacket [19:12:41]OFDProtocolAddRootSTLVToBuf [19:12:41]FM_MakeSignedData [19:12:41]FM_MakeSignedData [19:12:41]SAM_PROTO_SignData [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 0D 01 02 [19:12:41]Write to MH i2c: E2 08 00 15 0C 80 0D 01 02 00 00 00 00 9A [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [19:12:41]RAPDU: 90 00 [19:12:41]wFMCommunicate OK [19:12:41]wFMCommunicate request_size=255 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EF 02 00 35 04 06 00 3A [19:12:41]Write to MH i2c: E2 02 01 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EF 02 00 35 04 06 00 3A 00 00 76 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [19:12:41]RAPDU: 90 00 [19:12:41]wFMCommunicate OK [19:12:41]wFMCommunicate request_size=10 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 0D 02 02 05 C6 57 BE 20 C5 [19:12:41]Write to MH i2c: E2 0D 00 17 0C 80 0D 02 02 05 00 C6 57 BE 20 C5 00 00 67 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [19:12:41]RAPDU: 90 00 [19:12:41]wFMCommunicate OK [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 0D 03 02 [19:12:41]Write to MH i2c: E2 08 00 18 0C 80 0D 03 02 00 00 00 00 9F [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 0B 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 0B 00 18 0C 00 EE D4 D0 3A D0 4E 48 A2 90 00 74 [19:12:41]RAPDU: EE D4 D0 3A D0 4E 48 A2 90 00 [19:12:41]wFMCommunicate OK [19:12:41]SAM_PROTO_SignData done [19:12:41]FM_MakeSignedData done [19:12:41]CreateOFDProtocolMessage [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 11 00 00 [19:12:41]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 17 00 [19:12:41]MH_I2C_Read... [19:12:41]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 37 35 34 90 00 F2 [19:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:41]wFMCommunicate OK [19:12:41]CreateOFDProtocolMessage done [19:12:41]OFDSenderStorePacket 192399 [19:12:41]StoreOFDPacket docnum=192399 [19:12:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 48 07 01 CF 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EF 02 00 35 04 06 00 3A C6 57 BE 20 C5 EE D4 D0 3A D0 4E 48 A2 [19:12:41]CheckFolder [19:12:41]dirname=/storage/ofd_packets [19:12:41]CheckFolder done [19:12:41]ProducePacketName [19:12:41]name=ofd_packets/00192399 [19:12:41]NVStorageSaveData ofd_packets/00192399 [19:12:41]File name is /storage/ofd_packets/00192399 [19:12:41]Write 301 bytes [19:12:41]NVStorageSaveData done [19:12:41]OFDSenderStorePacket done [19:12:41]KKMCreateOFDPacket done [19:12:41]NVStorageSaveData kkm_last_timestamp [19:12:41]File name is /storage/kkm_last_timestamp [19:12:41]Write 4 bytes [19:12:41]NVStorageSaveData done [19:12:41]ExternCall_PrintAddStr [19:12:41]wPrintStart [19:12:41]Write to MH i2c: 01 00 00 1A 0C 26 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [19:12:41]RasterBufferAndPrint [19:12:41]line Счет N : (1)31716 [19:12:41]line ИНН: 02508201610067 [19:12:41]line Контрольно-Кассовый Чек [19:12:41]line ПРОДАЖА [19:12:41]line ТРК (МРК, ГНК) : 21 [19:12:41]line Товар: 2710124130 [19:12:41]line Аи-92-К-5 [19:12:41]line 7.480 * 66.90 [19:12:41]line = 500.41 [19:12:41]line НДС 12% НСП 1% [19:12:41]line > о реализуемом товаре [19:12:41]line ОКРУГЛЕНИЕ: -0.41 [19:12:41]line ИТОГО: 500.00 [19:12:41]line Внесено: 500.00 [19:12:41]line СДАЧА: 0.00 [19:12:41]line НСП 1% : 4.43 [19:12:41]line НДС 12% : 53.14 [19:12:41]line Наличными: 500.00 [19:12:41]line Безнал.: 0.00 [19:12:41]line Место: АЗС № 170 "Партнер Нефть" [19:12:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:12:41]line СНО: Общий режим [19:12:41]line Чек 431 27.10.2024 19:12 [19:12:41]line Смена: 542 ФФД: 1.0 [19:12:41]line ЗНМ: 0300000110 [19:12:41]line РНМ: 0000000000091776 [19:12:41]line Версия ККМ: 001 [19:12:41]line ФМ: 0000000000871754 [19:12:41]line ФД: 192399 [19:12:41]line ФПД: 64623550013637 [19:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192399&fm=64623550013637&tin=02508201610067®Number=0000000000091776&sum=50000 [19:12:41]OFD Sender: Processing packet 192399 [packets to send 75, broken 74] [19:12:41]ProducePacketName [19:12:41]name=ofd_packets/00192399 [19:12:41]OFD Sender: To server: pG, [19:12:41]CommunicateWithHost lk.salyk.kg:30040 [19:12:41]ConnectInit lk.salyk.kg [19:12:41]written 0, free lines is 4095 [19:12:42]Connected sock=10 [19:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 48 07 01 CF 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A9 90 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EF 02 00 35 04 06 00 3A C6 57 BE 20 C5 EE D4 D0 3A D0 4E 48 A2 [19:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 21 47 00 FC 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F EF 02 00 F4 03 04 00 6F 35 1E 67 B6 04 01 00 00 0C E0 CB C3 C1 D9 D9 D0 [19:12:42]CommunicateWithHost err = 0 [19:12:42]CheckOFDResponse [19:12:42]1017 (14) - 77093643461234 [19:12:42]1041 (16) - 0000000000871754 [19:12:42]1040 (4) - 192399 [19:12:42]1012 (4) - 27.10.2024 12:43 [19:12:42]1206 (1) - 0 [19:12:42]OFD Sender: Remove packet 192399 [19:12:42]ProducePacketName [19:12:42]name=ofd_packets/00192399 [19:12:42]NVStorageDeleteData [19:12:42]Write to MH i2c: 01 00 00 45 0C 51 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 07 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 07 00 45 0C 00 00 00 00 00 A3 0C 07 [19:12:42]RasterBufferAndPrint [19:12:42]line [19:12:42]line [19:12:42]line [19:12:42]line [19:12:42]line [19:12:42]written 0, free lines is 3241 [19:12:42]MH_Cut [19:12:42]Write to MH i2c: D1 01 00 4C 0C 01 2A [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: D1 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: D1 01 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: D1 01 00 4C 0C 00 29 [19:12:42]Write to MH i2c: 01 00 00 4D 0C 59 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]OFD Sender: No OFD packet to send [19:12:43]*** Cut start [19:12:43]*** Partial cut [19:12:43]*** CUTSNS_PIN = 1 [19:12:43]*** CUTSNS_PIN = 0 [19:12:43]*** Brake cut motor [19:12:43]Read from MH i2c: 01 [19:12:43]MH_I2C_Read... [19:12:43]*** Stop cut motor [19:12:43]*** Cut end [19:12:43]Read from MH i2c: 01 07 00 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 FF 0F 6E [19:12:43]process_action close_receipt done [19:12:43]requested_data is exist [19:12:43]produce_requested_data [19:12:43]requested_item fm.sn is exist - process it [19:12:43]wFMCommunicate request_size=4 [19:12:43]MH_SAM_APDU [19:12:43]CAPDU: 80 11 00 00 [19:12:43]Write to MH i2c: E2 08 00 4E 0C 80 11 00 00 00 00 00 00 D4 [19:12:43]Write i2c OK [19:12:43]MH_I2C_Read... [19:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:43]Read from MH i2c: E2 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: E2 17 00 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: E2 17 00 4E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [19:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:12:43]wFMCommunicate OK [19:12:43]requested_item fd.num is exist - process it [19:12:43]SAM_PROTO_GetFieldsCounters [19:12:43]wFMCommunicate request_size=4 [19:12:43]MH_SAM_APDU [19:12:43]CAPDU: 80 13 00 00 [19:12:43]Write to MH i2c: E2 08 00 4F 0C 80 13 00 00 00 00 00 00 D7 [19:12:43]Write i2c OK [19:12:43]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 62 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 62 00 4F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetFieldsCounters done [19:12:44]requested_item shift.num is exist - process it [19:12:44]requested_item shift.opened is exist - process it [19:12:44]req_shift_opened [19:12:44]FM_GetShiftState [19:12:44]SAM_PROTO_GetShiftState [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 13 01 00 [19:12:44]Write to MH i2c: E2 08 00 50 0C 80 13 01 00 00 00 00 00 D9 [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 50 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1A [19:12:44]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetShiftState done [19:12:44]FM_GetShiftState done [19:12:44]req_shift_opened done [19:12:44]requested_item shift.open_date is exist - process it [19:12:44]req_shift_open_date [19:12:44]req_shift_open_date done [19:12:44]produce_requested_data done [19:12:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192399,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:12:44]process_action_free close_receipt [19:12:44]json_value_free [19:12:44]json_value_free done [19:12:44]process_json_proto returns [19:12:44]Send response to host [19:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192399,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:12:44]free response buf [19:12:44]execute_script done [19:12:44]execute_script returns [19:12:44]free content buf [19:12:44]Sock 9.Close socket [19:12:44]Sock 9.Thread stoped [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:01]accept exits with 7 [19:16:01]New connection [19:16:01]New thread 3066707300 created [19:16:01]Thread 3066563940 joined [19:16:01]Waiting for new connection... [19:16:01] Sock 7.Parse request [19:16:01]Sock 7.Check first char [19:16:01]Sock 7.First char is OK [19:16:01]request: POST /json_proto HTTP/1.0 [19:16:01]Method: POST [19:16:01]URL: /json_proto [19:16:01]Method is POST - this is cgi request [19:16:01]url: /json_proto [19:16:01]query_string will be loaded in cgi processing [19:16:01]execute_cgi json_proto POST (null) [19:16:01]execute_cgi path=json_proto method=POST [19:16:01]POST find Content-Length [19:16:01]Host: 172.17.63.131:8080 [19:16:01]Content-Length: 676 [19:16:01]Content-Type: application/json [19:16:01] [19:16:01]POST finish read [19:16:01]Found Content-Length = 676 [19:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:01]execute_script... [19:16: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)31717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:01]POST & json_proto [19:16:01]process_json_proto [19:16:01]json parsed OK: [19:16:01]protocol is kg_v1.0 [19:16:01]action value=close_receipt [19:16:01]process_action close_receipt [19:16:01]cmd_close_receipt [19:16:01]MH_GetDate [19:16:01]Write to MH i2c: F0 00 00 51 0C 4C [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: F0 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: F0 09 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: F0 09 00 51 0C 00 72 91 1E 67 22 05 6E 64 D6 [19:16:01]GetLastDocTimeStamp 1730056361 [19:16:01]current date 1730056562 [19:16:01]FM_GetShiftState [19:16:01]SAM_PROTO_GetShiftState [19:16:01]wFMCommunicate request_size=4 [19:16:01]MH_SAM_APDU [19:16:01]CAPDU: 80 13 01 00 [19:16:01]Write to MH i2c: E2 08 00 52 0C 80 13 01 00 00 00 00 00 DB [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 52 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1C [19:16:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:16:01]wFMCommunicate OK [19:16:01]SAM_PROTO_GetShiftState done [19:16:01]FM_GetShiftState done [19:16:01]opened in 1729989159 [19:16:01]opened+sec_in_day 1730075559 [19:16:01]quantity*price = 40006 [19:16:01]sum+1 = 40007 [19:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 432 27.10.2024 19:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192400 ФПД: 63505995786045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191602&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192400&fm=63505995786045&tin=02508201610067®Number=0000000000091776&sum=40000 [19:16:02]StoreToDocumentArchive [19:16:02]shift 542 fd 192400 [19:16:02]save to /storage/0542/doc_00192400 [19:16:02]save last doc name /storage/0542/doc_00192400 to /storage/kkm_last_doc_name [19:16:02]save OK [19:16:02]Clear old archive folders... [19:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:02]tlvbuf is 019D88B0 [19:16:02]SAM_PROTO_ClearQueue [19:16:02]wFMCommunicate request_size=4 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 09 00 00 [19:16:02]Write to MH i2c: E2 08 00 5F 0C 80 09 00 00 00 00 00 00 DD [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:02]Read from MH i2c: E2 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [19:16:02]RAPDU: 90 00 [19:16:02]wFMCommunicate OK [19:16:02]SAM_PROTO_ClearQueue done [19:16:02]KKMCreateOFDPacket [19:16:02]OFDProtocolAddRootSTLVToBuf [19:16:02]FM_MakeSignedData [19:16:02]FM_MakeSignedData [19:16:02]SAM_PROTO_SignData [19:16:02]wFMCommunicate request_size=4 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 0D 01 02 [19:16:02]Write to MH i2c: E2 08 00 60 0C 80 0D 01 02 00 00 00 00 E5 [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:02]Read from MH i2c: E2 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [19:16:02]RAPDU: 90 00 [19:16:02]wFMCommunicate OK [19:16:02]wFMCommunicate request_size=255 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 72 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EF 02 00 35 04 06 00 39 [19:16:02]Write to MH i2c: E2 02 01 61 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 72 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EF 02 00 35 04 06 00 39 00 00 5B [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]OFD Sender: No OFD packet to send [19:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [19:16:03]RAPDU: 90 00 [19:16:03]wFMCommunicate OK [19:16:03]wFMCommunicate request_size=10 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 0D 02 02 05 C2 24 51 E7 3D [19:16:03]Write to MH i2c: E2 0D 00 62 0C 80 0D 02 02 05 00 C2 24 51 E7 3D 00 00 4D [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:03]Read from MH i2c: E2 03 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [19:16:03]RAPDU: 90 00 [19:16:03]wFMCommunicate OK [19:16:03]wFMCommunicate request_size=4 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 0D 03 02 [19:16:03]Write to MH i2c: E2 08 00 63 0C 80 0D 03 02 00 00 00 00 EA [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 0B 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 0B 00 63 0C 00 FC 11 5A 44 DE 48 92 9F 90 00 ED [19:16:03]RAPDU: FC 11 5A 44 DE 48 92 9F 90 00 [19:16:03]wFMCommunicate OK [19:16:03]SAM_PROTO_SignData done [19:16:03]FM_MakeSignedData done [19:16:03]CreateOFDProtocolMessage [19:16:03]wFMCommunicate request_size=4 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 11 00 00 [19:16:03]Write to MH i2c: E2 08 00 64 0C 80 11 00 00 00 00 00 00 EA [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:03]Read from MH i2c: E2 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 17 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: E2 17 00 64 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [19:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:16:03]wFMCommunicate OK [19:16:03]CreateOFDProtocolMessage done [19:16:03]OFDSenderStorePacket 192400 [19:16:03]StoreOFDPacket docnum=192400 [19:16:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 95 07 01 52 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 72 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EF 02 00 35 04 06 00 39 C2 24 51 E7 3D FC 11 5A 44 DE 48 92 9F [19:16:03]CheckFolder [19:16:03]dirname=/storage/ofd_packets [19:16:03]CheckFolder done [19:16:03]ProducePacketName [19:16:03]name=ofd_packets/00192400 [19:16:03]NVStorageSaveData ofd_packets/00192400 [19:16:03]File name is /storage/ofd_packets/00192400 [19:16:03]Write 301 bytes [19:16:03]NVStorageSaveData done [19:16:03]OFDSenderStorePacket done [19:16:03]KKMCreateOFDPacket done [19:16:03]NVStorageSaveData kkm_last_timestamp [19:16:03]File name is /storage/kkm_last_timestamp [19:16:03]Write 4 bytes [19:16:03]NVStorageSaveData done [19:16:03]ExternCall_PrintAddStr [19:16:03]wPrintStart [19:16:03]Write to MH i2c: 01 00 00 65 0C 71 [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 07 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 07 00 65 0C 00 00 00 00 00 FF 0F 86 [19:16:03]RasterBufferAndPrint [19:16:03]line Счет N : (1)31717 [19:16:03]line ИНН: 02508201610067 [19:16:03]line Контрольно-Кассовый Чек [19:16:03]line ПРОДАЖА [19:16:03]line ТРК (МРК, ГНК) : 12 [19:16:03]line Товар: 2710124130 [19:16:03]line Аи-92-К-5 [19:16:03]line 5.980 * 66.90 [19:16:03]line = 400.06 [19:16:03]line НДС 12% НСП 1% [19:16:03]line > о реализуемом товаре [19:16:03]line ОКРУГЛЕНИЕ: -0.06 [19:16:03]line ИТОГО: 400.00 [19:16:03]line Внесено: 400.00 [19:16:03]line СДАЧА: 0.00 [19:16:03]line НСП 1% : 3.54 [19:16:03]line НДС 12% : 42.48 [19:16:03]line Наличными: 400.00 [19:16:03]line Безнал.: 0.00 [19:16:03]line Место: АЗС № 170 "Партнер Нефть" [19:16:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:16:03]line СНО: Общий режим [19:16:03]line Чек 432 27.10.2024 19:16 [19:16:03]line Смена: 542 ФФД: 1.0 [19:16:03]line ЗНМ: 0300000110 [19:16:03]line РНМ: 0000000000091776 [19:16:03]line Версия ККМ: 001 [19:16:03]line ФМ: 0000000000871754 [19:16:03]line ФД: 192400 [19:16:03]line ФПД: 63505995786045 [19:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191602&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192400&fm=63505995786045&tin=02508201610067®Number=0000000000091776&sum=40000 [19:16:03]written 0, free lines is 4095 [19:16:03]OFD Sender: Processing packet 192400 [packets to send 75, broken 74] [19:16:03]ProducePacketName [19:16:03]name=ofd_packets/00192400 [19:16:03]OFD Sender: To server: pG, [19:16:03]CommunicateWithHost lk.salyk.kg:30040 [19:16:03]ConnectInit lk.salyk.kg [19:16:03]Connected sock=10 [19:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 95 07 01 52 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 72 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EF 02 00 35 04 06 00 39 C2 24 51 E7 3D FC 11 5A 44 DE 48 92 9F [19:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 1E 47 00 09 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 EF 02 00 F4 03 04 00 39 36 1E 67 B6 04 01 00 00 A6 C3 07 50 D5 26 4A 66 [19:16:03]CommunicateWithHost err = 0 [19:16:03]CheckOFDResponse [19:16:03]1017 (14) - 77093643461234 [19:16:03]1041 (16) - 0000000000871754 [19:16:03]1040 (4) - 192400 [19:16:03]1012 (4) - 27.10.2024 12:46 [19:16:03]1206 (1) - 0 [19:16:03]OFD Sender: Remove packet 192400 [19:16:03]ProducePacketName [19:16:03]name=ofd_packets/00192400 [19:16:03]NVStorageDeleteData [19:16:03]Write to MH i2c: 01 00 00 90 0C 9C [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 07 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: 01 07 00 90 0C 00 00 00 00 00 AA 0C 59 [19:16:03]RasterBufferAndPrint [19:16:03]line [19:16:03]line [19:16:03]line [19:16:03]line [19:16:03]line [19:16:03]written 0, free lines is 3248 [19:16:03]MH_Cut [19:16:03]Write to MH i2c: D1 01 00 97 0C 01 75 [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: D1 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: D1 01 00 [19:16:03]MH_I2C_Read... [19:16:03]Read from MH i2c: D1 01 00 97 0C 00 74 [19:16:03]Write to MH i2c: 01 00 00 98 0C A4 [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:04]OFD Sender: No OFD packet to send [19:16:04]*** Cut start [19:16:04]*** Partial cut [19:16:04]*** CUTSNS_PIN = 1 [19:16:04]*** CUTSNS_PIN = 0 [19:16:04]*** Brake cut motor [19:16:05]Read from MH i2c: 01 [19:16:05]MH_I2C_Read... [19:16:05]*** Stop cut motor [19:16:05]*** Cut end [19:16:05]Read from MH i2c: 01 07 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: 01 07 00 98 0C 00 00 00 00 00 FF 0F B9 [19:16:05]process_action close_receipt done [19:16:05]requested_data is exist [19:16:05]produce_requested_data [19:16:05]requested_item fm.sn is exist - process it [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 11 00 00 [19:16:05]Write to MH i2c: E2 08 00 99 0C 80 11 00 00 00 00 00 00 1F [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 17 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 17 00 99 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [19:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:16:05]wFMCommunicate OK [19:16:05]requested_item fd.num is exist - process it [19:16:05]SAM_PROTO_GetFieldsCounters [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 13 00 00 [19:16:05]Write to MH i2c: E2 08 00 9A 0C 80 13 00 00 00 00 00 00 22 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 62 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 62 00 9A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [19:16:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:05]wFMCommunicate OK [19:16:05]SAM_PROTO_GetFieldsCounters done [19:16:05]requested_item shift.num is exist - process it [19:16:05]requested_item shift.opened is exist - process it [19:16:05]req_shift_opened [19:16:05]FM_GetShiftState [19:16:05]SAM_PROTO_GetShiftState [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 13 01 00 [19:16:05]Write to MH i2c: E2 08 00 9B 0C 80 13 01 00 00 00 00 00 24 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 0E 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 0E 00 9B 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 65 [19:16:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:16:05]wFMCommunicate OK [19:16:05]SAM_PROTO_GetShiftState done [19:16:05]FM_GetShiftState done [19:16:05]req_shift_opened done [19:16:05]requested_item shift.open_date is exist - process it [19:16:05]req_shift_open_date [19:16:05]req_shift_open_date done [19:16:05]produce_requested_data done [19:16:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192400,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:16:05]process_action_free close_receipt [19:16:05]json_value_free [19:16:05]json_value_free done [19:16:05]process_json_proto returns [19:16:05]Send response to host [19:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192400,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:16:05]free response buf [19:16:05]execute_script done [19:16:05]execute_script returns [19:16:05]free content buf [19:16:05]Sock 7.Close socket [19:16:05]Sock 7.Thread stoped [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:33]accept exits with 9 [19:17:33]New connection [19:17:33]New thread 3066563940 created [19:17:33]Thread 3066707300 joined [19:17:33]Waiting for new connection... [19:17:33] Sock 9.Parse request [19:17:33]Sock 9.Check first char [19:17:33]Sock 9.First char is OK [19:17:33]request: POST /json_proto HTTP/1.0 [19:17:33]Method: POST [19:17:33]URL: /json_proto [19:17:33]Method is POST - this is cgi request [19:17:33]url: /json_proto [19:17:33]query_string will be loaded in cgi processing [19:17:33]execute_cgi json_proto POST (null) [19:17:33]execute_cgi path=json_proto method=POST [19:17:33]POST find Content-Length [19:17:33]Host: 172.17.63.131:8080 [19:17:33]Content-Length: 676 [19:17:33]Content-Type: application/json [19:17:33] [19:17:33]POST finish read [19:17:33]Found Content-Length = 676 [19:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:33]execute_script... [19: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 : (1)31718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:33]POST & json_proto [19:17:33]process_json_proto [19:17:33]json parsed OK: [19:17:33]protocol is kg_v1.0 [19:17:33]action value=close_receipt [19:17:33]process_action close_receipt [19:17:33]cmd_close_receipt [19:17:33]MH_GetDate [19:17:33]Write to MH i2c: F0 00 00 9C 0C 97 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: F0 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: F0 09 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: F0 09 00 9C 0C 00 CF 91 1E 67 22 05 6E 64 7E [19:17:33]GetLastDocTimeStamp 1730056562 [19:17:33]current date 1730056655 [19:17:33]FM_GetShiftState [19:17:33]SAM_PROTO_GetShiftState [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 01 00 [19:17:33]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 67 [19:17:33]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetShiftState done [19:17:33]FM_GetShiftState done [19:17:33]opened in 1729989159 [19:17:33]opened+sec_in_day 1730075559 [19:17:33]quantity*price = 60009 [19:17:33]sum+1 = 60010 [19:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 433 27.10.2024 19:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192401 ФПД: 54505030267836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191735&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192401&fm=54505030267836&tin=02508201610067®Number=0000000000091776&sum=60000 [19:17:35]StoreToDocumentArchive [19:17:35]shift 542 fd 192401 [19:17:35]save to /storage/0542/doc_00192401 [19:17:35]save last doc name /storage/0542/doc_00192401 to /storage/kkm_last_doc_name [19:17:35]save OK [19:17:35]Clear old archive folders... [19:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:35]tlvbuf is 0196A940 [19:17:35]SAM_PROTO_ClearQueue [19:17:35]wFMCommunicate request_size=4 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 09 00 00 [19:17:35]Write to MH i2c: E2 08 00 AA 0C 80 09 00 00 00 00 00 00 28 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [19:17:35]RAPDU: 90 00 [19:17:35]wFMCommunicate OK [19:17:35]SAM_PROTO_ClearQueue done [19:17:35]KKMCreateOFDPacket [19:17:35]OFDProtocolAddRootSTLVToBuf [19:17:35]FM_MakeSignedData [19:17:35]FM_MakeSignedData [19:17:35]SAM_PROTO_SignData [19:17:35]wFMCommunicate request_size=4 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 0D 01 02 [19:17:35]Write to MH i2c: E2 08 00 AB 0C 80 0D 01 02 00 00 00 00 30 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [19:17:35]RAPDU: 90 00 [19:17:35]wFMCommunicate OK [19:17:35]wFMCommunicate request_size=255 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 CF 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EF 02 00 35 04 06 00 31 [19:17:35]Write to MH i2c: E2 02 01 AC 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 CF 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EF 02 00 35 04 06 00 31 00 00 0B [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [19:17:35]RAPDU: 90 00 [19:17:35]wFMCommunicate OK [19:17:35]wFMCommunicate request_size=10 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 0D 02 02 05 92 70 F7 B3 BC [19:17:35]Write to MH i2c: E2 0D 00 AD 0C 80 0D 02 02 05 00 92 70 F7 B3 BC 00 00 A5 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [19:17:35]RAPDU: 90 00 [19:17:35]wFMCommunicate OK [19:17:35]wFMCommunicate request_size=4 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 0D 03 02 [19:17:35]Write to MH i2c: E2 08 00 AE 0C 80 0D 03 02 00 00 00 00 35 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 0B 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 0B 00 AE 0C 00 FA 0A BE 75 EB 65 EA 96 90 00 3D [19:17:35]RAPDU: FA 0A BE 75 EB 65 EA 96 90 00 [19:17:35]wFMCommunicate OK [19:17:35]SAM_PROTO_SignData done [19:17:35]FM_MakeSignedData done [19:17:35]CreateOFDProtocolMessage [19:17:35]wFMCommunicate request_size=4 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 11 00 00 [19:17:35]Write to MH i2c: E2 08 00 AF 0C 80 11 00 00 00 00 00 00 35 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 17 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 17 00 AF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [19:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:17:35]wFMCommunicate OK [19:17:35]CreateOFDProtocolMessage done [19:17:35]OFDSenderStorePacket 192401 [19:17:35]StoreOFDPacket docnum=192401 [19:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E D3 07 01 6B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 CF 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EF 02 00 35 04 06 00 31 92 70 F7 B3 BC FA 0A BE 75 EB 65 EA 96 [19:17:35]CheckFolder [19:17:35]dirname=/storage/ofd_packets [19:17:35]CheckFolder done [19:17:35]ProducePacketName [19:17:35]name=ofd_packets/00192401 [19:17:35]NVStorageSaveData ofd_packets/00192401 [19:17:35]File name is /storage/ofd_packets/00192401 [19:17:35]Write 301 bytes [19:17:35]NVStorageSaveData done [19:17:35]OFDSenderStorePacket done [19:17:35]KKMCreateOFDPacket done [19:17:35]NVStorageSaveData kkm_last_timestamp [19:17:35]File name is /storage/kkm_last_timestamp [19:17:35]Write 4 bytes [19:17:35]NVStorageSaveData done [19:17:35]ExternCall_PrintAddStr [19:17:35]wPrintStart [19:17:35]Write to MH i2c: 01 00 00 B0 0C BC [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: 01 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: 01 07 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: 01 07 00 B0 0C 00 00 00 00 00 FF 0F D1 [19:17:35]RasterBufferAndPrint [19:17:35]line Счет N : (1)31718 [19:17:35]line ИНН: 02508201610067 [19:17:35]line Контрольно-Кассовый Чек [19:17:35]line ПРОДАЖА [19:17:35]line ТРК (МРК, ГНК) : 12 [19:17:35]line Товар: 2710124130 [19:17:35]line Аи-92-К-5 [19:17:35]line 8.970 * 66.90 [19:17:35]line = 600.09 [19:17:35]line НДС 12% НСП 1% [19:17:35]line > о реализуемом товаре [19:17:35]line ОКРУГЛЕНИЕ: -0.09 [19:17:35]line ИТОГО: 600.00 [19:17:35]line Внесено: 600.00 [19:17:35]line СДАЧА: 0.00 [19:17:35]line НСП 1% : 5.31 [19:17:35]line НДС 12% : 63.73 [19:17:35]line Наличными: 600.00 [19:17:35]line Безнал.: 0.00 [19:17:35]line Место: АЗС № 170 "Партнер Нефть" [19:17:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:17:35]line СНО: Общий режим [19:17:35]line Чек 433 27.10.2024 19:17 [19:17:35]line Смена: 542 ФФД: 1.0 [19:17:35]line ЗНМ: 0300000110 [19:17:35]line РНМ: 0000000000091776 [19:17:35]line Версия ККМ: 001 [19:17:35]line ФМ: 0000000000871754 [19:17:35]line ФД: 192401 [19:17:35]line ФПД: 54505030267836 [19:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191735&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192401&fm=54505030267836&tin=02508201610067®Number=0000000000091776&sum=60000 [19:17:35]OFD Sender: Processing packet 192401 [packets to send 75, broken 74] [19:17:35]ProducePacketName [19:17:35]name=ofd_packets/00192401 [19:17:35]OFD Sender: To server: pG, [19:17:35]CommunicateWithHost lk.salyk.kg:30040 [19:17:35]ConnectInit lk.salyk.kg [19:17:35]written 0, free lines is 4095 [19:17:36]Connected sock=10 [19: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 37 35 34 0F 01 00 00 7E D3 07 01 6B CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 CF 91 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EF 02 00 35 04 06 00 31 92 70 F7 B3 BC FA 0A BE 75 EB 65 EA 96 [19: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 37 35 34 4F 00 00 00 6B 28 47 00 7D 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 EF 02 00 F4 03 04 00 95 36 1E 67 B6 04 01 00 00 78 D6 8A BC 93 E5 FC BC [19:17:36]CommunicateWithHost err = 0 [19:17:36]CheckOFDResponse [19:17:36]1017 (14) - 77093643461234 [19:17:36]1041 (16) - 0000000000871754 [19:17:36]1040 (4) - 192401 [19:17:36]1012 (4) - 27.10.2024 12:48 [19:17:36]1206 (1) - 0 [19:17:36]OFD Sender: Remove packet 192401 [19:17:36]ProducePacketName [19:17:36]name=ofd_packets/00192401 [19:17:36]NVStorageDeleteData [19:17:36]Write to MH i2c: 01 00 00 DB 0C E7 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 DB 0C 00 00 00 00 00 9F 0C 99 [19:17:36]RasterBufferAndPrint [19:17:36]line [19:17:36]line [19:17:36]line [19:17:36]line [19:17:36]line [19:17:36]written 0, free lines is 3236 [19:17:36]MH_Cut [19:17:36]Write to MH i2c: D1 01 00 E2 0C 01 C0 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: D1 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: D1 01 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: D1 01 00 E2 0C 00 BF [19:17:36]Write to MH i2c: 01 00 00 E3 0C EF [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]OFD Sender: No OFD packet to send [19:17:37]*** Cut start [19:17:37]*** Partial cut [19:17:37]*** CUTSNS_PIN = 1 [19:17:37]*** CUTSNS_PIN = 0 [19:17:37]*** Brake cut motor [19:17:37]Read from MH i2c: 01 [19:17:37]MH_I2C_Read... [19:17:37]*** Stop cut motor [19:17:37]*** Cut end [19:17:37]Read from MH i2c: 01 07 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 FF 0F 04 [19:17:37]process_action close_receipt done [19:17:37]requested_data is exist [19:17:37]produce_requested_data [19:17:37]requested_item fm.sn is exist - process it [19:17:37]wFMCommunicate request_size=4 [19:17:37]MH_SAM_APDU [19:17:37]CAPDU: 80 11 00 00 [19:17:37]Write to MH i2c: E2 08 00 E4 0C 80 11 00 00 00 00 00 00 6A [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:37]Read from MH i2c: E2 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: E2 17 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: E2 17 00 E4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [19:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:17:37]wFMCommunicate OK [19:17:37]requested_item fd.num is exist - process it [19:17:37]SAM_PROTO_GetFieldsCounters [19:17:37]wFMCommunicate request_size=4 [19:17:37]MH_SAM_APDU [19:17:37]CAPDU: 80 13 00 00 [19:17:37]Write to MH i2c: E2 08 00 E5 0C 80 13 00 00 00 00 00 00 6D [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 62 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 62 00 E5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [19: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:38]wFMCommunicate OK [19:17:38]SAM_PROTO_GetFieldsCounters done [19:17:38]requested_item shift.num is exist - process it [19:17:38]requested_item shift.opened is exist - process it [19:17:38]req_shift_opened [19:17:38]FM_GetShiftState [19:17:38]SAM_PROTO_GetShiftState [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 13 01 00 [19:17:38]Write to MH i2c: E2 08 00 E6 0C 80 13 01 00 00 00 00 00 6F [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 0E 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 0E 00 E6 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [19:17:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:17:38]wFMCommunicate OK [19:17:38]SAM_PROTO_GetShiftState done [19:17:38]FM_GetShiftState done [19:17:38]req_shift_opened done [19:17:38]requested_item shift.open_date is exist - process it [19:17:38]req_shift_open_date [19:17:38]req_shift_open_date done [19:17:38]produce_requested_data done [19:17:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192401,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:17:38]process_action_free close_receipt [19:17:38]json_value_free [19:17:38]json_value_free done [19:17:38]process_json_proto returns [19:17:38]Send response to host [19:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192401,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:17:38]free response buf [19:17:38]execute_script done [19:17:38]execute_script returns [19:17:38]free content buf [19:17:38]Sock 9.Close socket [19:17:38]Sock 9.Thread stoped [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:02]accept exits with 7 [19:19:02]New connection [19:19:02]New thread 3066707300 created [19:19:02]Thread 3066563940 joined [19:19:02]Waiting for new connection... [19:19:02] Sock 7.Parse request [19:19:02]Sock 7.Check first char [19:19:02]Sock 7.First char is OK [19:19:02]request: POST /json_proto HTTP/1.0 [19:19:02]Method: POST [19:19:02]URL: /json_proto [19:19:02]Method is POST - this is cgi request [19:19:02]url: /json_proto [19:19:02]query_string will be loaded in cgi processing [19:19:02]execute_cgi json_proto POST (null) [19:19:02]execute_cgi path=json_proto method=POST [19:19:02]POST find Content-Length [19:19:02]Host: 172.17.63.131:8080 [19:19:02]Content-Length: 674 [19:19:02]Content-Type: application/json [19:19:02] [19:19:02]POST finish read [19:19:02]Found Content-Length = 674 [19:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31719", "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" : 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" ] } } [19:19:02]execute_script... [19:19: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)31719", "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" : 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" ] } } [19:19:02]POST & json_proto [19:19:02]process_json_proto [19:19:02]json parsed OK: [19:19:02]protocol is kg_v1.0 [19:19:02]action value=close_receipt [19:19:02]process_action close_receipt [19:19:02]cmd_close_receipt [19:19:02]MH_GetDate [19:19:02]Write to MH i2c: F0 00 00 E7 0C E2 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 09 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 09 00 E7 0C 00 27 92 1E 67 22 05 6E 64 22 [19:19:02]GetLastDocTimeStamp 1730056655 [19:19:02]current date 1730056743 [19:19:02]FM_GetShiftState [19:19:02]SAM_PROTO_GetShiftState [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 01 00 [19:19:02]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B2 [19:19:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetShiftState done [19:19:02]FM_GetShiftState done [19:19:02]opened in 1729989159 [19:19:02]opened+sec_in_day 1730075559 [19:19:02]quantity*price = 80010 [19:19:02]sum+1 = 80011 [19:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 434 27.10.2024 19:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192402 ФПД: 248734849712229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192402&fm=248734849712229&tin=02508201610067®Number=0000000000091776&sum=80000 [19:19:03]StoreToDocumentArchive [19:19:03]shift 542 fd 192402 [19:19:03]save to /storage/0542/doc_00192402 [19:19:03]save last doc name /storage/0542/doc_00192402 to /storage/kkm_last_doc_name [19:19:03]save OK [19:19:03]Clear old archive folders... [19:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:19:03]tlvbuf is 0194BB80 [19:19:03]SAM_PROTO_ClearQueue [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 09 00 00 [19:19:03]Write to MH i2c: E2 08 00 F5 0C 80 09 00 00 00 00 00 00 73 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]SAM_PROTO_ClearQueue done [19:19:03]KKMCreateOFDPacket [19:19:03]OFDProtocolAddRootSTLVToBuf [19:19:03]FM_MakeSignedData [19:19:03]FM_MakeSignedData [19:19:03]SAM_PROTO_SignData [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 0D 01 02 [19:19:03]Write to MH i2c: E2 08 00 F6 0C 80 0D 01 02 00 00 00 00 7B [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]wFMCommunicate request_size=255 [19:19:03]MH_SAM_APDU [19:19: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 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 B2 01 00 00 F4 03 04 00 27 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EF 02 00 35 04 06 00 E2 39 18 5C [19:19:03]Write to MH i2c: E2 02 01 F7 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 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 B2 01 00 00 F4 03 04 00 27 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EF 02 00 35 04 06 00 E2 39 18 5C 00 00 5B [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]wFMCommunicate request_size=7 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 0D 02 02 02 40 65 [19:19:03]Write to MH i2c: E2 0A 00 F8 0C 80 0D 02 02 02 00 40 65 00 00 27 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 0D 03 02 [19:19:03]Write to MH i2c: E2 08 00 F9 0C 80 0D 03 02 00 00 00 00 80 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 0B 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 0B 00 F9 0C 00 BF 21 A7 81 C2 59 43 E7 90 00 CE [19:19:03]RAPDU: BF 21 A7 81 C2 59 43 E7 90 00 [19:19:03]wFMCommunicate OK [19:19:03]SAM_PROTO_SignData done [19:19:03]FM_MakeSignedData done [19:19:03]CreateOFDProtocolMessage [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 11 00 00 [19:19:03]Write to MH i2c: E2 08 00 FA 0C 80 11 00 00 00 00 00 00 80 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 17 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 17 00 FA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [19:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:03]wFMCommunicate OK [19:19:03]CreateOFDProtocolMessage done [19:19:03]OFDSenderStorePacket 192402 [19:19:03]StoreOFDPacket docnum=192402 [19:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 92 12 04 01 53 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B2 01 00 00 F4 03 04 00 27 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EF 02 00 35 04 06 00 E2 39 18 5C 40 65 BF 21 A7 81 C2 59 43 E7 [19:19:03]CheckFolder [19:19:03]dirname=/storage/ofd_packets [19:19:03]CheckFolder done [19:19:03]ProducePacketName [19:19:03]name=ofd_packets/00192402 [19:19:03]NVStorageSaveData ofd_packets/00192402 [19:19:03]File name is /storage/ofd_packets/00192402 [19:19:03]Write 298 bytes [19:19:03]NVStorageSaveData done [19:19:03]OFDSenderStorePacket done [19:19:03]KKMCreateOFDPacket done [19:19:03]NVStorageSaveData kkm_last_timestamp [19:19:03]File name is /storage/kkm_last_timestamp [19:19:03]Write 4 bytes [19:19:03]NVStorageSaveData done [19:19:03]ExternCall_PrintAddStr [19:19:03]wPrintStart [19:19:03]Write to MH i2c: 01 00 00 FB 0C 07 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [19:19:03]RasterBufferAndPrint [19:19:03]line Счет N : (1)31719 [19:19:03]line ИНН: 02508201610067 [19:19:03]line Контрольно-Кассовый Чек [19:19:03]line ПРОДАЖА [19:19:03]line ТРК (МРК, ГНК) : 11 [19:19:03]line Товар: 2710194210 [19:19:03]line ДТ-К-5 [19:19:03]line 10.500 * 76.20 [19:19:03]line = 800.10 [19:19:03]line НДС 12% НСП 1% [19:19:03]line > о реализуемом товаре [19:19:03]line ОКРУГЛЕНИЕ: -0.10 [19:19:03]line ИТОГО: 800.00 [19:19:03]line Внесено: 800.00 [19:19:03]line СДАЧА: 0.00 [19:19:03]line НСП 1% : 7.08 [19:19:03]line НДС 12% : 84.97 [19:19:03]line Наличными: 800.00 [19:19:03]line Безнал.: 0.00 [19:19:03]line Место: АЗС № 170 "Партнер Нефть" [19:19:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:19:03]line СНО: Общий режим [19:19:03]line Чек 434 27.10.2024 19:19 [19:19:03]line Смена: 542 ФФД: 1.0 [19:19:03]line ЗНМ: 0300000110 [19:19:03]line РНМ: 0000000000091776 [19:19:03]line Версия ККМ: 001 [19:19:03]line ФМ: 0000000000871754 [19:19:03]line ФД: 192402 [19:19:03]line ФПД: 248734849712229 [19:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192402&fm=248734849712229&tin=02508201610067®Number=0000000000091776&sum=80000 [19:19:04]OFD Sender: Processing packet 192402 [packets to send 75, broken 74] [19:19:04]ProducePacketName [19:19:04]name=ofd_packets/00192402 [19:19:04]OFD Sender: To server: pG, [19:19:04]CommunicateWithHost lk.salyk.kg:30040 [19:19:04]ConnectInit lk.salyk.kg [19:19:04]written 0, free lines is 4095 [19:19:04]Connected sock=10 [19:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 92 12 04 01 53 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B2 01 00 00 F4 03 04 00 27 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EF 02 00 35 04 06 00 E2 39 18 5C 40 65 BF 21 A7 81 C2 59 43 E7 [19:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF CC 47 00 AC D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 EF 02 00 F4 03 04 00 EE 36 1E 67 B6 04 01 00 00 5F 5C 0E 69 7C 11 F5 53 [19:19:04]CommunicateWithHost err = 0 [19:19:04]CheckOFDResponse [19:19:04]1017 (14) - 77093643461234 [19:19:04]1041 (16) - 0000000000871754 [19:19:04]1040 (4) - 192402 [19:19:04]1012 (4) - 27.10.2024 12:49 [19:19:04]1206 (1) - 0 [19:19:04]OFD Sender: Remove packet 192402 [19:19:04]ProducePacketName [19:19:04]name=ofd_packets/00192402 [19:19:04]NVStorageDeleteData [19:19:04]Write to MH i2c: 01 00 00 26 0D 33 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 B6 0C FC [19:19:04]RasterBufferAndPrint [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]written 0, free lines is 3262 [19:19:04]MH_Cut [19:19:04]Write to MH i2c: D1 01 00 2D 0D 01 0C [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 01 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 01 00 2D 0D 00 0B [19:19:04]Write to MH i2c: 01 00 00 2E 0D 3B [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:05]OFD Sender: No OFD packet to send [19:19:05]*** Cut start [19:19:05]*** Partial cut [19:19:05]*** CUTSNS_PIN = 1 [19:19:05]*** CUTSNS_PIN = 0 [19:19:05]*** Brake cut motor [19:19:06]Read from MH i2c: 01 [19:19:06]MH_I2C_Read... [19:19:06]*** Stop cut motor [19:19:06]*** Cut end [19:19:06]Read from MH i2c: 01 07 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [19:19:06]process_action close_receipt done [19:19:06]requested_data is exist [19:19:06]produce_requested_data [19:19:06]requested_item fm.sn is exist - process it [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 11 00 00 [19:19:06]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 2F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [19:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:06]wFMCommunicate OK [19:19:06]requested_item fd.num is exist - process it [19:19:06]SAM_PROTO_GetFieldsCounters [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 13 00 00 [19:19:06]Write to MH i2c: E2 08 00 30 0D 80 13 00 00 00 00 00 00 B9 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 62 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 62 00 30 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [19:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_GetFieldsCounters done [19:19:06]requested_item shift.num is exist - process it [19:19:06]requested_item shift.opened is exist - process it [19:19:06]req_shift_opened [19:19:06]FM_GetShiftState [19:19:06]SAM_PROTO_GetShiftState [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 13 01 00 [19:19:06]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0E 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [19:19:06]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_GetShiftState done [19:19:06]FM_GetShiftState done [19:19:06]req_shift_opened done [19:19:06]requested_item shift.open_date is exist - process it [19:19:06]req_shift_open_date [19:19:06]req_shift_open_date done [19:19:06]produce_requested_data done [19:19:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192402,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:19:06]process_action_free close_receipt [19:19:06]json_value_free [19:19:06]json_value_free done [19:19:06]process_json_proto returns [19:19:06]Send response to host [19:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192402,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:19:06]free response buf [19:19:06]execute_script done [19:19:06]execute_script returns [19:19:06]free content buf [19:19:06]Sock 7.Close socket [19:19:06]Sock 7.Thread stoped [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:53]accept exits with 9 [19:19:53]New connection [19:19:53]New thread 3066563940 created [19:19:53]Thread 3066707300 joined [19:19:53]Waiting for new connection... [19:19:53] Sock 9.Parse request [19:19:53]Sock 9.Check first char [19:19:53]Sock 9.First char is OK [19:19:53]request: POST /json_proto HTTP/1.0 [19:19:53]Method: POST [19:19:53]URL: /json_proto [19:19:53]Method is POST - this is cgi request [19:19:53]url: /json_proto [19:19:53]query_string will be loaded in cgi processing [19:19:53]execute_cgi json_proto POST (null) [19:19:53]execute_cgi path=json_proto method=POST [19:19:53]POST find Content-Length [19:19:53]Host: 172.17.63.131:8080 [19:19:53]Content-Length: 681 [19:19:53]Content-Type: application/json [19:19:53] [19:19:53]POST finish read [19:19:53]Found Content-Length = 681 [19:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:53]execute_script... [19:19:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:53]POST & json_proto [19:19:53]process_json_proto [19:19:53]json parsed OK: [19:19:53]protocol is kg_v1.0 [19:19:53]action value=close_receipt [19:19:53]process_action close_receipt [19:19:53]cmd_close_receipt [19:19:53]MH_GetDate [19:19:53]Write to MH i2c: F0 00 00 32 0D 2E [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: F0 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: F0 09 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: F0 09 00 32 0D 00 5A 92 1E 67 22 05 6E 64 A1 [19:19:53]GetLastDocTimeStamp 1730056743 [19:19:53]current date 1730056794 [19:19:53]FM_GetShiftState [19:19:53]SAM_PROTO_GetShiftState [19:19:53]wFMCommunicate request_size=4 [19:19:53]MH_SAM_APDU [19:19:53]CAPDU: 80 13 01 00 [19:19:53]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:53]Read from MH i2c: E2 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: E2 0E 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [19:19:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:19:53]wFMCommunicate OK [19:19:53]SAM_PROTO_GetShiftState done [19:19:53]FM_GetShiftState done [19:19:53]opened in 1729989159 [19:19:53]opened+sec_in_day 1730075559 [19:19:53]quantity*price = 100015 [19:19:53]sum+1 = 100017 [19:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 435 27.10.2024 19:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192403 ФПД: 248648679734659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192403&fm=248648679734659&tin=02508201610067®Number=0000000000091776&sum=100000 [19:19:54]StoreToDocumentArchive [19:19:54]shift 542 fd 192403 [19:19:54]save to /storage/0542/doc_00192403 [19:19:54]save last doc name /storage/0542/doc_00192403 to /storage/kkm_last_doc_name [19:19:54]save OK [19:19:54]Clear old archive folders... [19:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:54]tlvbuf is 019DCF80 [19:19:54]SAM_PROTO_ClearQueue [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 09 00 00 [19:19:54]Write to MH i2c: E2 08 00 40 0D 80 09 00 00 00 00 00 00 BF [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 03 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [19:19:54]RAPDU: 90 00 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_ClearQueue done [19:19:54]KKMCreateOFDPacket [19:19:54]OFDProtocolAddRootSTLVToBuf [19:19:54]FM_MakeSignedData [19:19:54]FM_MakeSignedData [19:19:54]SAM_PROTO_SignData [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 0D 01 02 [19:19:54]Write to MH i2c: E2 08 00 41 0D 80 0D 01 02 00 00 00 00 C7 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 03 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [19:19:54]RAPDU: 90 00 [19:19:54]wFMCommunicate OK [19:19:54]wFMCommunicate request_size=255 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 5A 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EF 02 00 35 04 06 00 E2 [19:19:54]Write to MH i2c: E2 02 01 42 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 5A 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EF 02 00 35 04 06 00 E2 00 00 00 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:55]Read from MH i2c: E2 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 03 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [19:19:55]RAPDU: 90 00 [19:19:55]wFMCommunicate OK [19:19:55]wFMCommunicate request_size=10 [19:19:55]MH_SAM_APDU [19:19:55]CAPDU: 80 0D 02 02 05 25 08 3A BD 83 [19:19:55]Write to MH i2c: E2 0D 00 43 0D 80 0D 02 02 05 00 25 08 3A BD 83 00 00 7B [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:55]Read from MH i2c: E2 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 03 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [19:19:55]RAPDU: 90 00 [19:19:55]wFMCommunicate OK [19:19:55]wFMCommunicate request_size=4 [19:19:55]MH_SAM_APDU [19:19:55]CAPDU: 80 0D 03 02 [19:19:55]Write to MH i2c: E2 08 00 44 0D 80 0D 03 02 00 00 00 00 CC [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:55]Read from MH i2c: E2 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 0B 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 0B 00 44 0D 00 C7 D4 F4 AB EE 7A C7 4F 90 00 85 [19:19:55]RAPDU: C7 D4 F4 AB EE 7A C7 4F 90 00 [19:19:55]wFMCommunicate OK [19:19:55]SAM_PROTO_SignData done [19:19:55]FM_MakeSignedData done [19:19:55]CreateOFDProtocolMessage [19:19:55]wFMCommunicate request_size=4 [19:19:55]MH_SAM_APDU [19:19:55]CAPDU: 80 11 00 00 [19:19:55]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]OFD Sender: No OFD packet to send [19:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:55]Read from MH i2c: E2 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: E2 17 00 [19:19:55]MH_I2C_Read... [19:19:55]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 37 35 34 90 00 1F [19:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:55]wFMCommunicate OK [19:19:55]CreateOFDProtocolMessage done [19:19:55]OFDSenderStorePacket 192403 [19:19:55]StoreOFDPacket docnum=192403 [19:19:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 C0 07 01 1F DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 5A 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EF 02 00 35 04 06 00 E2 25 08 3A BD 83 C7 D4 F4 AB EE 7A C7 4F [19:19:55]CheckFolder [19:19:55]dirname=/storage/ofd_packets [19:19:55]CheckFolder done [19:19:55]ProducePacketName [19:19:55]name=ofd_packets/00192403 [19:19:55]NVStorageSaveData ofd_packets/00192403 [19:19:55]File name is /storage/ofd_packets/00192403 [19:19:55]Write 301 bytes [19:19:55]NVStorageSaveData done [19:19:55]OFDSenderStorePacket done [19:19:55]KKMCreateOFDPacket done [19:19:55]NVStorageSaveData kkm_last_timestamp [19:19:55]File name is /storage/kkm_last_timestamp [19:19:55]Write 4 bytes [19:19:55]NVStorageSaveData done [19:19:55]ExternCall_PrintAddStr [19:19:55]wPrintStart [19:19:55]Write to MH i2c: 01 00 00 46 0D 53 [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [19:19:55]RasterBufferAndPrint [19:19:55]line Счет N : (1)31720 [19:19:55]line ИНН: 02508201610067 [19:19:55]line Контрольно-Кассовый Чек [19:19:55]line ПРОДАЖА [19:19:55]line ТРК (МРК, ГНК) : 21 [19:19:55]line Товар: 2710124130 [19:19:55]line Аи-92-К-5 [19:19:55]line 14.950 * 66.90 [19:19:55]line = 1000.16 [19:19:55]line НДС 12% НСП 1% [19:19:55]line > о реализуемом товаре [19:19:55]line ОКРУГЛЕНИЕ: -0.16 [19:19:55]line ИТОГО: 1000.00 [19:19:55]line Внесено: 1000.00 [19:19:55]line СДАЧА: 0.00 [19:19:55]line НСП 1% : 8.85 [19:19:55]line НДС 12% : 106.21 [19:19:55]line Наличными: 1000.00 [19:19:55]line Безнал.: 0.00 [19:19:55]line Место: АЗС № 170 "Партнер Нефть" [19:19:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:19:55]line СНО: Общий режим [19:19:55]line Чек 435 27.10.2024 19:19 [19:19:55]line Смена: 542 ФФД: 1.0 [19:19:55]line ЗНМ: 0300000110 [19:19:55]line РНМ: 0000000000091776 [19:19:55]line Версия ККМ: 001 [19:19:55]line ФМ: 0000000000871754 [19:19:55]line ФД: 192403 [19:19:55]line ФПД: 248648679734659 [19:19:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191954&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192403&fm=248648679734659&tin=02508201610067®Number=0000000000091776&sum=100000 [19:19:55]OFD Sender: Processing packet 192403 [packets to send 75, broken 74] [19:19:55]ProducePacketName [19:19:55]name=ofd_packets/00192403 [19:19:55]OFD Sender: To server: pG, [19:19:55]CommunicateWithHost lk.salyk.kg:30040 [19:19:55]ConnectInit lk.salyk.kg [19:19:55]written 0, free lines is 4095 [19:19:55]Connected sock=10 [19:19:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 C0 07 01 1F DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 5A 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EF 02 00 35 04 06 00 E2 25 08 3A BD 83 C7 D4 F4 AB EE 7A C7 4F [19:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A5 43 47 00 4D 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 EF 02 00 F4 03 04 00 21 37 1E 67 B6 04 01 00 00 2F E2 D5 B7 C3 E3 72 92 [19:19:55]CommunicateWithHost err = 0 [19:19:55]CheckOFDResponse [19:19:55]1017 (14) - 77093643461234 [19:19:55]1041 (16) - 0000000000871754 [19:19:55]1040 (4) - 192403 [19:19:55]1012 (4) - 27.10.2024 12:50 [19:19:55]1206 (1) - 0 [19:19:55]OFD Sender: Remove packet 192403 [19:19:55]ProducePacketName [19:19:55]name=ofd_packets/00192403 [19:19:55]NVStorageDeleteData [19:19:55]Write to MH i2c: 01 00 00 71 0D 7E [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 A9 0C 3A [19:19:55]RasterBufferAndPrint [19:19:55]line [19:19:55]line [19:19:55]line [19:19:55]line [19:19:55]line [19:19:55]written 0, free lines is 3246 [19:19:55]MH_Cut [19:19:55]Write to MH i2c: D1 01 00 78 0D 01 57 [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: D1 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: D1 01 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: D1 01 00 78 0D 00 56 [19:19:55]Write to MH i2c: 01 00 00 79 0D 86 [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:56]OFD Sender: No OFD packet to send [19:19:56]*** Cut start [19:19:56]*** Partial cut [19:19:56]*** CUTSNS_PIN = 1 [19:19:56]*** CUTSNS_PIN = 0 [19:19:57]*** Brake cut motor [19:19:57]Read from MH i2c: 01 [19:19:57]MH_I2C_Read... [19:19:57]*** Stop cut motor [19:19:57]*** Cut end [19:19:57]Read from MH i2c: 01 07 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [19:19:57]process_action close_receipt done [19:19:57]requested_data is exist [19:19:57]produce_requested_data [19:19:57]requested_item fm.sn is exist - process it [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 11 00 00 [19:19:57]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 17 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [19:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:19:57]wFMCommunicate OK [19:19:57]requested_item fd.num is exist - process it [19:19:57]SAM_PROTO_GetFieldsCounters [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 13 00 00 [19:19:57]Write to MH i2c: E2 08 00 7B 0D 80 13 00 00 00 00 00 00 04 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 62 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 62 00 7B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [19:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:57]wFMCommunicate OK [19:19:57]SAM_PROTO_GetFieldsCounters done [19:19:57]requested_item shift.num is exist - process it [19:19:57]requested_item shift.opened is exist - process it [19:19:57]req_shift_opened [19:19:57]FM_GetShiftState [19:19:57]SAM_PROTO_GetShiftState [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 13 01 00 [19:19:57]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 0E 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [19:19:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:19:57]wFMCommunicate OK [19:19:57]SAM_PROTO_GetShiftState done [19:19:57]FM_GetShiftState done [19:19:57]req_shift_opened done [19:19:57]requested_item shift.open_date is exist - process it [19:19:57]req_shift_open_date [19:19:57]req_shift_open_date done [19:19:57]produce_requested_data done [19:19:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192403,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:19:57]process_action_free close_receipt [19:19:57]json_value_free [19:19:57]json_value_free done [19:19:57]process_json_proto returns [19:19:57]Send response to host [19:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192403,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:19:57]free response buf [19:19:57]execute_script done [19:19:57]execute_script returns [19:19:57]free content buf [19:19:57]Sock 9.Close socket [19:19:57]Sock 9.Thread stoped [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:55]accept exits with 7 [19:21:55]New connection [19:21:55]New thread 3066707300 created [19:21:55]Thread 3066563940 joined [19:21:55]Waiting for new connection... [19:21:55] Sock 7.Parse request [19:21:55]Sock 7.Check first char [19:21:55]Sock 7.First char is OK [19:21:55]request: POST /json_proto HTTP/1.0 [19:21:55]Method: POST [19:21:55]URL: /json_proto [19:21:55]Method is POST - this is cgi request [19:21:55]url: /json_proto [19:21:55]query_string will be loaded in cgi processing [19:21:55]execute_cgi json_proto POST (null) [19:21:55]execute_cgi path=json_proto method=POST [19:21:55]POST find Content-Length [19:21:55]Host: 172.17.63.131:8080 [19:21:55]Content-Length: 676 [19:21:55]Content-Type: application/json [19:21:55] [19:21:55]POST finish read [19:21:55]Found Content-Length = 676 [19:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:55]execute_script... [19:21: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)31721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:55]POST & json_proto [19:21:55]process_json_proto [19:21:55]json parsed OK: [19:21:55]protocol is kg_v1.0 [19:21:55]action value=close_receipt [19:21:55]process_action close_receipt [19:21:55]cmd_close_receipt [19:21:55]MH_GetDate [19:21:55]Write to MH i2c: F0 00 00 7D 0D 79 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 09 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 09 00 7D 0D 00 D5 92 1E 67 22 05 6E 64 67 [19:21:55]GetLastDocTimeStamp 1730056794 [19:21:55]current date 1730056917 [19:21:55]FM_GetShiftState [19:21:55]SAM_PROTO_GetShiftState [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 13 01 00 [19:21:55]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0E 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 49 [19:21:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:21:55]wFMCommunicate OK [19:21:55]SAM_PROTO_GetShiftState done [19:21:55]FM_GetShiftState done [19:21:55]opened in 1729989159 [19:21:55]opened+sec_in_day 1730075559 [19:21:55]quantity*price = 50041 [19:21:55]sum+1 = 50042 [19:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 436 27.10.2024 19:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192404 ФПД: 44067553663524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192404&fm=44067553663524&tin=02508201610067®Number=0000000000091776&sum=50000 [19:21:57]StoreToDocumentArchive [19:21:57]shift 542 fd 192404 [19:21:57]save to /storage/0542/doc_00192404 [19:21:57]save last doc name /storage/0542/doc_00192404 to /storage/kkm_last_doc_name [19:21:57]save OK [19:21:57]Clear old archive folders... [19:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:57]tlvbuf is 01A03920 [19:21:57]SAM_PROTO_ClearQueue [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 09 00 00 [19:21:57]Write to MH i2c: E2 08 00 8B 0D 80 09 00 00 00 00 00 00 0A [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [19:21:57]RAPDU: 90 00 [19:21:57]wFMCommunicate OK [19:21:57]SAM_PROTO_ClearQueue done [19:21:57]KKMCreateOFDPacket [19:21:57]OFDProtocolAddRootSTLVToBuf [19:21:57]FM_MakeSignedData [19:21:57]FM_MakeSignedData [19:21:57]SAM_PROTO_SignData [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 0D 01 02 [19:21:57]Write to MH i2c: E2 08 00 8C 0D 80 0D 01 02 00 00 00 00 12 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [19:21:57]RAPDU: 90 00 [19:21:57]wFMCommunicate OK [19:21:57]wFMCommunicate request_size=255 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 D5 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EF 02 00 35 04 06 00 28 [19:21:57]Write to MH i2c: E2 02 01 8D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 D5 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EF 02 00 35 04 06 00 28 00 00 14 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [19:21:57]RAPDU: 90 00 [19:21:57]wFMCommunicate OK [19:21:57]wFMCommunicate request_size=10 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 0D 02 02 05 14 46 E1 DA 24 [19:21:57]Write to MH i2c: E2 0D 00 8E 0D 80 0D 02 02 05 00 14 46 E1 DA 24 00 00 58 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [19:21:57]RAPDU: 90 00 [19:21:57]wFMCommunicate OK [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 0D 03 02 [19:21:57]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 0B 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 0B 00 8F 0D 00 DA 19 7D 02 72 D0 DC 38 90 00 E0 [19:21:57]RAPDU: DA 19 7D 02 72 D0 DC 38 90 00 [19:21:57]wFMCommunicate OK [19:21:57]SAM_PROTO_SignData done [19:21:57]FM_MakeSignedData done [19:21:57]CreateOFDProtocolMessage [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 11 00 00 [19:21:57]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 17 00 [19:21:57]MH_I2C_Read... [19:21:57]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 37 35 34 90 00 6A [19:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:21:57]wFMCommunicate OK [19:21:57]CreateOFDProtocolMessage done [19:21:57]OFDSenderStorePacket 192404 [19:21:57]StoreOFDPacket docnum=192404 [19:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 3D 07 01 C2 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D5 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EF 02 00 35 04 06 00 28 14 46 E1 DA 24 DA 19 7D 02 72 D0 DC 38 [19:21:57]CheckFolder [19:21:57]dirname=/storage/ofd_packets [19:21:57]CheckFolder done [19:21:57]ProducePacketName [19:21:57]name=ofd_packets/00192404 [19:21:57]NVStorageSaveData ofd_packets/00192404 [19:21:57]File name is /storage/ofd_packets/00192404 [19:21:57]Write 301 bytes [19:21:57]NVStorageSaveData done [19:21:57]OFDSenderStorePacket done [19:21:57]KKMCreateOFDPacket done [19:21:57]NVStorageSaveData kkm_last_timestamp [19:21:57]File name is /storage/kkm_last_timestamp [19:21:57]Write 4 bytes [19:21:57]NVStorageSaveData done [19:21:57]ExternCall_PrintAddStr [19:21:57]wPrintStart [19:21:57]Write to MH i2c: 01 00 00 91 0D 9E [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 07 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [19:21:57]RasterBufferAndPrint [19:21:57]line Счет N : (1)31721 [19:21:57]line ИНН: 02508201610067 [19:21:57]line Контрольно-Кассовый Чек [19:21:57]line ПРОДАЖА [19:21:57]line ТРК (МРК, ГНК) : 21 [19:21:57]line Товар: 2710124130 [19:21:57]line Аи-92-К-5 [19:21:57]line 7.480 * 66.90 [19:21:57]line = 500.41 [19:21:57]line НДС 12% НСП 1% [19:21:57]line > о реализуемом товаре [19:21:57]line ОКРУГЛЕНИЕ: -0.41 [19:21:57]line ИТОГО: 500.00 [19:21:57]line Внесено: 500.00 [19:21:57]line СДАЧА: 0.00 [19:21:57]line НСП 1% : 4.43 [19:21:57]line НДС 12% : 53.14 [19:21:57]line Наличными: 500.00 [19:21:57]line Безнал.: 0.00 [19:21:57]line Место: АЗС № 170 "Партнер Нефть" [19:21:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:21:57]line СНО: Общий режим [19:21:57]line Чек 436 27.10.2024 19:21 [19:21:57]line Смена: 542 ФФД: 1.0 [19:21:57]line ЗНМ: 0300000110 [19:21:57]line РНМ: 0000000000091776 [19:21:57]line Версия ККМ: 001 [19:21:57]line ФМ: 0000000000871754 [19:21:57]line ФД: 192404 [19:21:57]line ФПД: 44067553663524 [19:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192404&fm=44067553663524&tin=02508201610067®Number=0000000000091776&sum=50000 [19:21:57]OFD Sender: Processing packet 192404 [packets to send 75, broken 74] [19:21:57]ProducePacketName [19:21:57]name=ofd_packets/00192404 [19:21:57]OFD Sender: To server: pG, [19:21:57]CommunicateWithHost lk.salyk.kg:30040 [19:21:57]ConnectInit lk.salyk.kg [19:21:57]written 0, free lines is 4095 [19:21:58]Connected sock=10 [19:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 3D 07 01 C2 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 D5 92 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EF 02 00 35 04 06 00 28 14 46 E1 DA 24 DA 19 7D 02 72 D0 DC 38 [19:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 23 50 47 00 FC E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 EF 02 00 F4 03 04 00 9B 37 1E 67 B6 04 01 00 00 EA 69 04 7C 88 0E 1A FD [19:21:58]CommunicateWithHost err = 0 [19:21:58]CheckOFDResponse [19:21:58]1017 (14) - 77093643461234 [19:21:58]1041 (16) - 0000000000871754 [19:21:58]1040 (4) - 192404 [19:21:58]1012 (4) - 27.10.2024 12:52 [19:21:58]1206 (1) - 0 [19:21:58]OFD Sender: Remove packet 192404 [19:21:58]ProducePacketName [19:21:58]name=ofd_packets/00192404 [19:21:58]NVStorageDeleteData [19:21:58]Write to MH i2c: 01 00 00 BC 0D C9 [19:21:58]Write i2c OK [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: 01 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: 01 07 00 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 9D 0C 79 [19:21:58]RasterBufferAndPrint [19:21:58]line [19:21:58]line [19:21:58]line [19:21:58]line [19:21:58]line [19:21:58]written 0, free lines is 3237 [19:21:58]MH_Cut [19:21:58]Write to MH i2c: D1 01 00 C3 0D 01 A2 [19:21:58]Write i2c OK [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: D1 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: D1 01 00 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: D1 01 00 C3 0D 00 A1 [19:21:58]Write to MH i2c: 01 00 00 C4 0D D1 [19:21:58]Write i2c OK [19:21:58]MH_I2C_Read... [19:21:58]OFD Sender: No OFD packet to send [19:21:59]*** Cut start [19:21:59]*** Partial cut [19:21:59]*** CUTSNS_PIN = 1 [19:21:59]*** CUTSNS_PIN = 0 [19:21:59]*** Brake cut motor [19:21:59]Read from MH i2c: 01 [19:21:59]MH_I2C_Read... [19:21:59]*** Stop cut motor [19:21:59]*** Cut end [19:21:59]Read from MH i2c: 01 07 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [19:21:59]process_action close_receipt done [19:21:59]requested_data is exist [19:21:59]produce_requested_data [19:21:59]requested_item fm.sn is exist - process it [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 11 00 00 [19:21:59]Write to MH i2c: E2 08 00 C5 0D 80 11 00 00 00 00 00 00 4C [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 17 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 17 00 C5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [19:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:21:59]wFMCommunicate OK [19:21:59]requested_item fd.num is exist - process it [19:21:59]SAM_PROTO_GetFieldsCounters [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 13 00 00 [19:21:59]Write to MH i2c: E2 08 00 C6 0D 80 13 00 00 00 00 00 00 4F [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 62 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 62 00 C6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [19:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:00]wFMCommunicate OK [19:22:00]SAM_PROTO_GetFieldsCounters done [19:22:00]requested_item shift.num is exist - process it [19:22:00]requested_item shift.opened is exist - process it [19:22:00]req_shift_opened [19:22:00]FM_GetShiftState [19:22:00]SAM_PROTO_GetShiftState [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 13 01 00 [19:22:00]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0E 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [19:22:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:22:00]wFMCommunicate OK [19:22:00]SAM_PROTO_GetShiftState done [19:22:00]FM_GetShiftState done [19:22:00]req_shift_opened done [19:22:00]requested_item shift.open_date is exist - process it [19:22:00]req_shift_open_date [19:22:00]req_shift_open_date done [19:22:00]produce_requested_data done [19:22:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192404,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:22:00]process_action_free close_receipt [19:22:00]json_value_free [19:22:00]json_value_free done [19:22:00]process_json_proto returns [19:22:00]Send response to host [19:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192404,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:22:00]free response buf [19:22:00]execute_script done [19:22:00]execute_script returns [19:22:00]free content buf [19:22:00]Sock 7.Close socket [19:22:00]Sock 7.Thread stoped [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:58]accept exits with 9 [19:28:58]New connection [19:28:58]New thread 3066563940 created [19:28:58]Thread 3066707300 joined [19:28:58]Waiting for new connection... [19:28:58] Sock 9.Parse request [19:28:58]Sock 9.Check first char [19:28:58]Sock 9.First char is OK [19:28:58]request: POST /json_proto HTTP/1.0 [19:28:58]Method: POST [19:28:58]URL: /json_proto [19:28:58]Method is POST - this is cgi request [19:28:58]url: /json_proto [19:28:58]query_string will be loaded in cgi processing [19:28:58]execute_cgi json_proto POST (null) [19:28:58]execute_cgi path=json_proto method=POST [19:28:58]POST find Content-Length [19:28:58]Host: 172.17.63.131:8080 [19:28:58]Content-Length: 681 [19:28:58]Content-Type: application/json [19:28:58] [19:28:58]POST finish read [19:28:58]Found Content-Length = 681 [19:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:58]execute_script... [19: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 : (1)31722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:58]POST & json_proto [19:28:58]process_json_proto [19:28:58]json parsed OK: [19:28:58]protocol is kg_v1.0 [19:28:58]action value=close_receipt [19:28:58]process_action close_receipt [19:28:58]cmd_close_receipt [19:28:58]MH_GetDate [19:28:58]Write to MH i2c: F0 00 00 C8 0D C4 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: F0 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: F0 09 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: F0 09 00 C8 0D 00 7B 94 1E 67 22 05 6E 64 5A [19:28:58]GetLastDocTimeStamp 1730056917 [19:28:58]current date 1730057339 [19:28:58]FM_GetShiftState [19:28:58]SAM_PROTO_GetShiftState [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 13 01 00 [19:28:58]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0E 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 94 [19:28:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:28:58]wFMCommunicate OK [19:28:58]SAM_PROTO_GetShiftState done [19:28:58]FM_GetShiftState done [19:28:58]opened in 1729989159 [19:28:58]opened+sec_in_day 1730075559 [19:28:58]quantity*price = 100015 [19:28:58]sum+1 = 100017 [19:28:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 437 27.10.2024 19:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192405 ФПД: 56996067964919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192405&fm=56996067964919&tin=02508201610067®Number=0000000000091776&sum=100000 [19:28:59]StoreToDocumentArchive [19:28:59]shift 542 fd 192405 [19:28:59]save to /storage/0542/doc_00192405 [19:28:59]save last doc name /storage/0542/doc_00192405 to /storage/kkm_last_doc_name [19:28:59]save OK [19:28:59]Clear old archive folders... [19:28:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:59]tlvbuf is B6E9E610 [19:28:59]SAM_PROTO_ClearQueue [19:28:59]wFMCommunicate request_size=4 [19:28:59]MH_SAM_APDU [19:28:59]CAPDU: 80 09 00 00 [19:28:59]Write to MH i2c: E2 08 00 D6 0D 80 09 00 00 00 00 00 00 55 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:59]Read from MH i2c: E2 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 03 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [19:28:59]RAPDU: 90 00 [19:28:59]wFMCommunicate OK [19:28:59]SAM_PROTO_ClearQueue done [19:28:59]KKMCreateOFDPacket [19:28:59]OFDProtocolAddRootSTLVToBuf [19:28:59]FM_MakeSignedData [19:28:59]FM_MakeSignedData [19:28:59]SAM_PROTO_SignData [19:28:59]wFMCommunicate request_size=4 [19:28:59]MH_SAM_APDU [19:28:59]CAPDU: 80 0D 01 02 [19:28:59]Write to MH i2c: E2 08 00 D7 0D 80 0D 01 02 00 00 00 00 5D [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:59]Read from MH i2c: E2 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 03 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [19:28:59]RAPDU: 90 00 [19:28:59]wFMCommunicate OK [19:28:59]wFMCommunicate request_size=255 [19:28:59]MH_SAM_APDU [19:28:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 7B 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EF 02 00 35 04 06 00 33 [19:28:59]Write to MH i2c: E2 02 01 D8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 7B 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EF 02 00 35 04 06 00 33 00 00 0E [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [19:29:00]RAPDU: 90 00 [19:29:00]wFMCommunicate OK [19:29:00]wFMCommunicate request_size=10 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 0D 02 02 05 D6 6E 62 77 F7 [19:29:00]Write to MH i2c: E2 0D 00 D9 0D 80 0D 02 02 05 00 D6 6E 62 77 F7 00 00 7E [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [19:29:00]RAPDU: 90 00 [19:29:00]wFMCommunicate OK [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 0D 03 02 [19:29:00]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0B 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0B 00 DA 0D 00 71 87 F0 3A 7C 9F A3 8E 90 00 D1 [19:29:00]RAPDU: 71 87 F0 3A 7C 9F A3 8E 90 00 [19:29:00]wFMCommunicate OK [19:29:00]SAM_PROTO_SignData done [19:29:00]FM_MakeSignedData done [19:29:00]CreateOFDProtocolMessage [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 11 00 00 [19:29:00]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 17 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [19:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:29:00]wFMCommunicate OK [19:29:00]CreateOFDProtocolMessage done [19:29:00]OFDSenderStorePacket 192405 [19:29:00]StoreOFDPacket docnum=192405 [19:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A1 3C 07 01 5D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 7B 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EF 02 00 35 04 06 00 33 D6 6E 62 77 F7 71 87 F0 3A 7C 9F A3 8E [19:29:00]CheckFolder [19:29:00]dirname=/storage/ofd_packets [19:29:00]CheckFolder done [19:29:00]ProducePacketName [19:29:00]name=ofd_packets/00192405 [19:29:00]NVStorageSaveData ofd_packets/00192405 [19:29:00]File name is /storage/ofd_packets/00192405 [19:29:00]Write 301 bytes [19:29:00]NVStorageSaveData done [19:29:00]OFDSenderStorePacket done [19:29:00]KKMCreateOFDPacket done [19:29:00]NVStorageSaveData kkm_last_timestamp [19:29:00]File name is /storage/kkm_last_timestamp [19:29:00]Write 4 bytes [19:29:00]NVStorageSaveData done [19:29:00]ExternCall_PrintAddStr [19:29:00]wPrintStart [19:29:00]Write to MH i2c: 01 00 00 DC 0D E9 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 07 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [19:29:00]RasterBufferAndPrint [19:29:00]line Счет N : (1)31722 [19:29:00]line ИНН: 02508201610067 [19:29:00]line Контрольно-Кассовый Чек [19:29:00]line ПРОДАЖА [19:29:00]line ТРК (МРК, ГНК) : 21 [19:29:00]line Товар: 2710124130 [19:29:00]line Аи-92-К-5 [19:29:00]line 14.950 * 66.90 [19:29:00]line = 1000.16 [19:29:00]line НДС 12% НСП 1% [19:29:00]line > о реализуемом товаре [19:29:00]line ОКРУГЛЕНИЕ: -0.16 [19:29:00]line ИТОГО: 1000.00 [19:29:00]line Внесено: 1000.00 [19:29:00]line СДАЧА: 0.00 [19:29:00]line НСП 1% : 8.85 [19:29:00]line НДС 12% : 106.21 [19:29:00]line Наличными: 1000.00 [19:29:00]line Безнал.: 0.00 [19:29:00]line Место: АЗС № 170 "Партнер Нефть" [19:29:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:29:00]line СНО: Общий режим [19:29:00]line Чек 437 27.10.2024 19:28 [19:29:00]line Смена: 542 ФФД: 1.0 [19:29:00]line ЗНМ: 0300000110 [19:29:00]line РНМ: 0000000000091776 [19:29:00]line Версия ККМ: 001 [19:29:00]line ФМ: 0000000000871754 [19:29:00]line ФД: 192405 [19:29:00]line ФПД: 56996067964919 [19:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192405&fm=56996067964919&tin=02508201610067®Number=0000000000091776&sum=100000 [19:29:00]OFD Sender: Processing packet 192405 [packets to send 75, broken 74] [19:29:00]ProducePacketName [19:29:00]name=ofd_packets/00192405 [19:29:00]OFD Sender: To server: pG, [19:29:00]CommunicateWithHost lk.salyk.kg:30040 [19:29:00]ConnectInit lk.salyk.kg [19:29:00]written 0, free lines is 4095 [19:29:00]Connected sock=10 [19:29:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A1 3C 07 01 5D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 7B 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EF 02 00 35 04 06 00 33 D6 6E 62 77 F7 71 87 F0 3A 7C 9F A3 8E [19:29:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 37 47 00 86 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 EF 02 00 F4 03 04 00 42 39 1E 67 B6 04 01 00 00 BC 9E 4C C0 6C 2D 99 2D [19:29:00]CommunicateWithHost err = 0 [19:29:00]CheckOFDResponse [19:29:00]1017 (14) - 77093643461234 [19:29:00]1041 (16) - 0000000000871754 [19:29:00]1040 (4) - 192405 [19:29:00]1012 (4) - 27.10.2024 12:59 [19:29:00]1206 (1) - 0 [19:29:00]OFD Sender: Remove packet 192405 [19:29:00]ProducePacketName [19:29:00]name=ofd_packets/00192405 [19:29:00]NVStorageDeleteData [19:29:01]Write to MH i2c: 01 00 00 07 0E 15 [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: 01 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: 01 07 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 AB 0C D3 [19:29:01]RasterBufferAndPrint [19:29:01]line [19:29:01]line [19:29:01]line [19:29:01]line [19:29:01]line [19:29:01]written 0, free lines is 3249 [19:29:01]MH_Cut [19:29:01]Write to MH i2c: D1 01 00 0E 0E 01 EE [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: D1 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: D1 01 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: D1 01 00 0E 0E 00 ED [19:29:01]Write to MH i2c: 01 00 00 0F 0E 1D [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]OFD Sender: No OFD packet to send [19:29:01]*** Cut start [19:29:01]*** Partial cut [19:29:01]*** CUTSNS_PIN = 1 [19:29:02]*** CUTSNS_PIN = 0 [19:29:02]*** Brake cut motor [19:29:02]Read from MH i2c: 01 [19:29:02]MH_I2C_Read... [19:29:02]*** Stop cut motor [19:29:02]*** Cut end [19:29:02]Read from MH i2c: 01 07 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [19:29:02]process_action close_receipt done [19:29:02]requested_data is exist [19:29:02]produce_requested_data [19:29:02]requested_item fm.sn is exist - process it [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 11 00 00 [19:29:02]Write to MH i2c: E2 08 00 10 0E 80 11 00 00 00 00 00 00 98 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:02]Read from MH i2c: E2 17 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 17 00 10 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [19:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:29:02]wFMCommunicate OK [19:29:02]requested_item fd.num is exist - process it [19:29:02]SAM_PROTO_GetFieldsCounters [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 13 00 00 [19:29:02]Write to MH i2c: E2 08 00 11 0E 80 13 00 00 00 00 00 00 9B [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 62 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 62 00 11 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [19:29:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:02]wFMCommunicate OK [19:29:02]SAM_PROTO_GetFieldsCounters done [19:29:02]requested_item shift.num is exist - process it [19:29:02]requested_item shift.opened is exist - process it [19:29:02]req_shift_opened [19:29:02]FM_GetShiftState [19:29:02]SAM_PROTO_GetShiftState [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 13 01 00 [19:29:02]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 0E 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [19:29:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:29:02]wFMCommunicate OK [19:29:02]SAM_PROTO_GetShiftState done [19:29:02]FM_GetShiftState done [19:29:02]req_shift_opened done [19:29:02]requested_item shift.open_date is exist - process it [19:29:02]req_shift_open_date [19:29:02]req_shift_open_date done [19:29:02]produce_requested_data done [19:29:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192405,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:29:02]process_action_free close_receipt [19:29:02]json_value_free [19:29:02]json_value_free done [19:29:02]process_json_proto returns [19:29:02]Send response to host [19:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192405,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:29:02]free response buf [19:29:02]execute_script done [19:29:02]execute_script returns [19:29:02]free content buf [19:29:02]Sock 9.Close socket [19:29:02]Sock 9.Thread stoped [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:48]accept exits with 7 [19:30:48]New connection [19:30:48]New thread 3066707300 created [19:30:48]Thread 3066563940 joined [19:30:48]Waiting for new connection... [19:30:48] Sock 7.Parse request [19:30:48]Sock 7.Check first char [19:30:48]Sock 7.First char is OK [19:30:48]request: POST /json_proto HTTP/1.0 [19:30:48]Method: POST [19:30:48]URL: /json_proto [19:30:48]Method is POST - this is cgi request [19:30:48]url: /json_proto [19:30:48]query_string will be loaded in cgi processing [19:30:48]execute_cgi json_proto POST (null) [19:30:48]execute_cgi path=json_proto method=POST [19:30:48]POST find Content-Length [19:30:48]Host: 172.17.63.131:8080 [19:30:48]Content-Length: 677 [19:30:48]Content-Type: application/json [19:30:48] [19:30:48]POST finish read [19:30:48]Found Content-Length = 677 [19:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:48]execute_script... [19:30: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)31723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:48]POST & json_proto [19:30:48]process_json_proto [19:30:48]json parsed OK: [19:30:48]protocol is kg_v1.0 [19:30:48]action value=close_receipt [19:30:48]process_action close_receipt [19:30:48]cmd_close_receipt [19:30:48]MH_GetDate [19:30:48]Write to MH i2c: F0 00 00 13 0E 10 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 09 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 09 00 13 0E 00 EA 94 1E 67 22 05 6E 64 15 [19:30:48]GetLastDocTimeStamp 1730057339 [19:30:48]current date 1730057450 [19:30:48]FM_GetShiftState [19:30:48]SAM_PROTO_GetShiftState [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 13 01 00 [19:30:48]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [19:30:48]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:30:48]wFMCommunicate OK [19:30:48]SAM_PROTO_GetShiftState done [19:30:48]FM_GetShiftState done [19:30:48]opened in 1729989159 [19:30:48]opened+sec_in_day 1730075559 [19:30:48]quantity*price = 90047 [19:30:48]sum+1 = 90048 [19:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 438 27.10.2024 19:30 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192406 ФПД: 201850078704822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192406&fm=201850078704822&tin=02508201610067®Number=0000000000091776&sum=90000 [19:30:50]StoreToDocumentArchive [19:30:50]shift 542 fd 192406 [19:30:50]save to /storage/0542/doc_00192406 [19:30:50]save last doc name /storage/0542/doc_00192406 to /storage/kkm_last_doc_name [19:30:50]save OK [19:30:50]Clear old archive folders... [19:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:50]tlvbuf is 01A02BF0 [19:30:50]SAM_PROTO_ClearQueue [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 09 00 00 [19:30:50]Write to MH i2c: E2 08 00 21 0E 80 09 00 00 00 00 00 00 A1 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_ClearQueue done [19:30:50]KKMCreateOFDPacket [19:30:50]OFDProtocolAddRootSTLVToBuf [19:30:50]FM_MakeSignedData [19:30:50]FM_MakeSignedData [19:30:50]SAM_PROTO_SignData [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 01 02 [19:30:50]Write to MH i2c: E2 08 00 22 0E 80 0D 01 02 00 00 00 00 A9 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=255 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 EA 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EF 02 00 35 04 06 00 B7 [19:30:50]Write to MH i2c: E2 02 01 23 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 EA 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EF 02 00 35 04 06 00 B7 00 00 72 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=10 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 02 02 05 94 E2 3D 34 B6 [19:30:50]Write to MH i2c: E2 0D 00 24 0E 80 0D 02 02 05 00 94 E2 3D 34 B6 00 00 53 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [19:30:50]RAPDU: 90 00 [19:30:50]wFMCommunicate OK [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 0D 03 02 [19:30:50]Write to MH i2c: E2 08 00 25 0E 80 0D 03 02 00 00 00 00 AE [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 25 0E 00 D4 2A 75 BB CB BD E2 6E 90 00 B5 [19:30:50]RAPDU: D4 2A 75 BB CB BD E2 6E 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_SignData done [19:30:50]FM_MakeSignedData done [19:30:50]CreateOFDProtocolMessage [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 11 00 00 [19:30:50]Write to MH i2c: E2 08 00 26 0E 80 11 00 00 00 00 00 00 AE [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 26 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [19:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:50]wFMCommunicate OK [19:30:50]CreateOFDProtocolMessage done [19:30:50]OFDSenderStorePacket 192406 [19:30:50]StoreOFDPacket docnum=192406 [19:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 74 07 01 FE 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 EA 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EF 02 00 35 04 06 00 B7 94 E2 3D 34 B6 D4 2A 75 BB CB BD E2 6E [19:30:50]CheckFolder [19:30:50]dirname=/storage/ofd_packets [19:30:50]CheckFolder done [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00192406 [19:30:50]NVStorageSaveData ofd_packets/00192406 [19:30:50]File name is /storage/ofd_packets/00192406 [19:30:50]Write 301 bytes [19:30:50]NVStorageSaveData done [19:30:50]OFDSenderStorePacket done [19:30:50]KKMCreateOFDPacket done [19:30:50]NVStorageSaveData kkm_last_timestamp [19:30:50]File name is /storage/kkm_last_timestamp [19:30:50]Write 4 bytes [19:30:50]NVStorageSaveData done [19:30:50]OFD Sender: Processing packet 192406 [packets to send 75, broken 74] [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00192406 [19:30:50]OFD Sender: To server: pG, [19:30:50]CommunicateWithHost lk.salyk.kg:30040 [19:30:50]ConnectInit lk.salyk.kg [19:30:50]ExternCall_PrintAddStr [19:30:50]wPrintStart [19:30:50]Write to MH i2c: 01 00 00 27 0E 35 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 FF 0F 4A [19:30:50]RasterBufferAndPrint [19:30:50]line Счет N : (1)31723 [19:30:50]line ИНН: 02508201610067 [19:30:50]line Контрольно-Кассовый Чек [19:30:50]line ПРОДАЖА [19:30:50]line ТРК (МРК, ГНК) : 12 [19:30:50]line Товар: 2710124130 [19:30:50]line Аи-92-К-5 [19:30:50]line 13.460 * 66.90 [19:30:50]line = 900.47 [19:30:50]line НДС 12% НСП 1% [19:30:50]line > о реализуемом товаре [19:30:50]line ОКРУГЛЕНИЕ: -0.47 [19:30:50]line ИТОГО: 900.00 [19:30:50]line Внесено: 900.00 [19:30:50]line СДАЧА: 0.00 [19:30:50]line НСП 1% : 7.97 [19:30:50]line НДС 12% : 95.62 [19:30:50]line Наличными: 900.00 [19:30:50]line Безнал.: 0.00 [19:30:50]line Место: АЗС № 170 "Партнер Нефть" [19:30:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:30:50]line СНО: Общий режим [19:30:50]line Чек 438 27.10.2024 19:30 [19:30:50]line Смена: 542 ФФД: 1.0 [19:30:50]line ЗНМ: 0300000110 [19:30:50]line РНМ: 0000000000091776 [19:30:50]line Версия ККМ: 001 [19:30:50]line ФМ: 0000000000871754 [19:30:50]line ФД: 192406 [19:30:50]line ФПД: 201850078704822 [19:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192406&fm=201850078704822&tin=02508201610067®Number=0000000000091776&sum=90000 [19:30:50]Connected sock=11 [19:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 74 07 01 FE 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 EA 94 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EF 02 00 35 04 06 00 B7 94 E2 3D 34 B6 D4 2A 75 BB CB BD E2 6E [19:30:50]written 0, free lines is 4095 [19:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 91 47 00 9C 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 EF 02 00 F4 03 04 00 B0 39 1E 67 B6 04 01 00 00 48 88 06 68 FA 07 14 A8 [19:30:51]CommunicateWithHost err = 0 [19:30:51]CheckOFDResponse [19:30:51]1017 (14) - 77093643461234 [19:30:51]1041 (16) - 0000000000871754 [19:30:51]1040 (4) - 192406 [19:30:51]1012 (4) - 27.10.2024 13:01 [19:30:51]1206 (1) - 0 [19:30:51]OFD Sender: Remove packet 192406 [19:30:51]ProducePacketName [19:30:51]name=ofd_packets/00192406 [19:30:51]NVStorageDeleteData [19:30:51]Write to MH i2c: 01 00 00 52 0E 60 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 9B 0C 0E [19:30:51]RasterBufferAndPrint [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]line [19:30:51]written 0, free lines is 3233 [19:30:51]MH_Cut [19:30:51]Write to MH i2c: D1 01 00 59 0E 01 39 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 01 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: D1 01 00 59 0E 00 38 [19:30:51]Write to MH i2c: 01 00 00 5A 0E 68 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]OFD Sender: No OFD packet to send [19:30:52]*** Cut start [19:30:52]*** Partial cut [19:30:52]*** CUTSNS_PIN = 1 [19:30:52]*** CUTSNS_PIN = 0 [19:30:52]*** Brake cut motor [19:30:52]Read from MH i2c: 01 [19:30:52]MH_I2C_Read... [19:30:52]*** Stop cut motor [19:30:52]*** Cut end [19:30:52]Read from MH i2c: 01 07 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 FF 0F 7D [19:30:52]process_action close_receipt done [19:30:52]requested_data is exist [19:30:52]produce_requested_data [19:30:52]requested_item fm.sn is exist - process it [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 11 00 00 [19:30:52]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 5B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [19:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:52]wFMCommunicate OK [19:30:52]requested_item fd.num is exist - process it [19:30:52]SAM_PROTO_GetFieldsCounters [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 13 00 00 [19:30:52]Write to MH i2c: E2 08 00 5C 0E 80 13 00 00 00 00 00 00 E6 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 62 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 62 00 5C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [19:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetFieldsCounters done [19:30:53]requested_item shift.num is exist - process it [19:30:53]requested_item shift.opened is exist - process it [19:30:53]req_shift_opened [19:30:53]FM_GetShiftState [19:30:53]SAM_PROTO_GetShiftState [19:30:53]wFMCommunicate request_size=4 [19:30:53]MH_SAM_APDU [19:30:53]CAPDU: 80 13 01 00 [19:30:53]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [19:30:53]Write i2c OK [19:30:53]MH_I2C_Read... [19:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:53]Read from MH i2c: E2 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 [19:30:53]MH_I2C_Read... [19:30:53]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [19:30:53]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:30:53]wFMCommunicate OK [19:30:53]SAM_PROTO_GetShiftState done [19:30:53]FM_GetShiftState done [19:30:53]req_shift_opened done [19:30:53]requested_item shift.open_date is exist - process it [19:30:53]req_shift_open_date [19:30:53]req_shift_open_date done [19:30:53]produce_requested_data done [19:30:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192406,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:30:53]process_action_free close_receipt [19:30:53]json_value_free [19:30:53]json_value_free done [19:30:53]process_json_proto returns [19:30:53]Send response to host [19:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192406,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:30:53]free response buf [19:30:53]execute_script done [19:30:53]execute_script returns [19:30:53]free content buf [19:30:53]Sock 7.Close socket [19:30:53]Sock 7.Thread stoped [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:34]accept exits with 9 [19:36:34]New connection [19:36:34]New thread 3066563940 created [19:36:34]Thread 3066707300 joined [19:36:34]Waiting for new connection... [19:36:34] Sock 9.Parse request [19:36:34]Sock 9.Check first char [19:36:34]Sock 9.First char is OK [19:36:34]request: POST /json_proto HTTP/1.0 [19:36:34]Method: POST [19:36:34]URL: /json_proto [19:36:34]Method is POST - this is cgi request [19:36:34]url: /json_proto [19:36:34]query_string will be loaded in cgi processing [19:36:34]execute_cgi json_proto POST (null) [19:36:34]execute_cgi path=json_proto method=POST [19:36:34]POST find Content-Length [19:36:34]Host: 172.17.63.131:8080 [19:36:34]Content-Length: 676 [19:36:34]Content-Type: application/json [19:36:34] [19:36:34]POST finish read [19:36:34]Found Content-Length = 676 [19:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:34]execute_script... [19:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:34]POST & json_proto [19:36:34]process_json_proto [19:36:34]json parsed OK: [19:36:34]protocol is kg_v1.0 [19:36:34]action value=close_receipt [19:36:34]process_action close_receipt [19:36:34]cmd_close_receipt [19:36:34]MH_GetDate [19:36:34]Write to MH i2c: F0 00 00 5E 0E 5B [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: F0 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: F0 09 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: F0 09 00 5E 0E 00 43 96 1E 67 22 05 6E 64 BB [19:36:34]GetLastDocTimeStamp 1730057450 [19:36:34]current date 1730057795 [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 5F 0E 80 13 01 00 00 00 00 00 EA [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 5F 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2B [19:36:34]RAPDU: 09 00 01 27 8A 1D 67 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]opened in 1729989159 [19:36:34]opened+sec_in_day 1730075559 [19:36:34]quantity*price = 50041 [19:36:34]sum+1 = 50042 [19:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 439 27.10.2024 19:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192407 ФПД: 68757346576991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192407&fm=68757346576991&tin=02508201610067®Number=0000000000091776&sum=50000 [19:36:35]StoreToDocumentArchive [19:36:35]shift 542 fd 192407 [19:36:35]save to /storage/0542/doc_00192407 [19:36:35]save last doc name /storage/0542/doc_00192407 to /storage/kkm_last_doc_name [19:36:35]save OK [19:36:35]Clear old archive folders... [19:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:35]tlvbuf is 019C5F20 [19:36:35]SAM_PROTO_ClearQueue [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 09 00 00 [19:36:35]Write to MH i2c: E2 08 00 6C 0E 80 09 00 00 00 00 00 00 EC [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]SAM_PROTO_ClearQueue done [19:36:35]KKMCreateOFDPacket [19:36:35]OFDProtocolAddRootSTLVToBuf [19:36:35]FM_MakeSignedData [19:36:35]FM_MakeSignedData [19:36:35]SAM_PROTO_SignData [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 0D 01 02 [19:36:35]Write to MH i2c: E2 08 00 6D 0E 80 0D 01 02 00 00 00 00 F4 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]wFMCommunicate request_size=255 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 43 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EF 02 00 35 04 06 00 3E [19:36:35]Write to MH i2c: E2 02 01 6E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 43 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EF 02 00 35 04 06 00 3E 00 00 84 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 03 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [19:36:36]RAPDU: 90 00 [19:36:36]wFMCommunicate OK [19:36:36]wFMCommunicate request_size=10 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 0D 02 02 05 88 D1 37 EA 5F [19:36:36]Write to MH i2c: E2 0D 00 6F 0E 80 0D 02 02 05 00 88 D1 37 EA 5F 00 00 DA [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 03 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [19:36:36]RAPDU: 90 00 [19:36:36]wFMCommunicate OK [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 0D 03 02 [19:36:36]Write to MH i2c: E2 08 00 70 0E 80 0D 03 02 00 00 00 00 F9 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0B 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0B 00 70 0E 00 8E 2B D4 32 F2 F1 58 D3 90 00 C7 [19:36:36]RAPDU: 8E 2B D4 32 F2 F1 58 D3 90 00 [19:36:36]wFMCommunicate OK [19:36:36]SAM_PROTO_SignData done [19:36:36]FM_MakeSignedData done [19:36:36]CreateOFDProtocolMessage [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 11 00 00 [19:36:36]Write to MH i2c: E2 08 00 71 0E 80 11 00 00 00 00 00 00 F9 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 17 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 17 00 71 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [19:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:36:36]wFMCommunicate OK [19:36:36]CreateOFDProtocolMessage done [19:36:36]OFDSenderStorePacket 192407 [19:36:36]StoreOFDPacket docnum=192407 [19:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 01 07 01 23 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 43 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EF 02 00 35 04 06 00 3E 88 D1 37 EA 5F 8E 2B D4 32 F2 F1 58 D3 [19:36:36]CheckFolder [19:36:36]dirname=/storage/ofd_packets [19:36:36]CheckFolder done [19:36:36]ProducePacketName [19:36:36]name=ofd_packets/00192407 [19:36:36]NVStorageSaveData ofd_packets/00192407 [19:36:36]File name is /storage/ofd_packets/00192407 [19:36:36]Write 301 bytes [19:36:36]NVStorageSaveData done [19:36:36]OFDSenderStorePacket done [19:36:36]KKMCreateOFDPacket done [19:36:36]NVStorageSaveData kkm_last_timestamp [19:36:36]File name is /storage/kkm_last_timestamp [19:36:36]Write 4 bytes [19:36:36]NVStorageSaveData done [19:36:36]ExternCall_PrintAddStr [19:36:36]wPrintStart [19:36:36]Write to MH i2c: 01 00 00 72 0E 80 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [19:36:36]RasterBufferAndPrint [19:36:36]line Счет N : (1)31724 [19:36:36]line ИНН: 02508201610067 [19:36:36]line Контрольно-Кассовый Чек [19:36:36]line ПРОДАЖА [19:36:36]line ТРК (МРК, ГНК) : 21 [19:36:36]line Товар: 2710124130 [19:36:36]line Аи-92-К-5 [19:36:36]line 7.480 * 66.90 [19:36:36]line = 500.41 [19:36:36]line НДС 12% НСП 1% [19:36:36]line > о реализуемом товаре [19:36:36]line ОКРУГЛЕНИЕ: -0.41 [19:36:36]line ИТОГО: 500.00 [19:36:36]line Внесено: 500.00 [19:36:36]line СДАЧА: 0.00 [19:36:36]line НСП 1% : 4.43 [19:36:36]line НДС 12% : 53.14 [19:36:36]line Наличными: 500.00 [19:36:36]line Безнал.: 0.00 [19:36:36]line Место: АЗС № 170 "Партнер Нефть" [19:36:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:36:36]line СНО: Общий режим [19:36:36]line Чек 439 27.10.2024 19:36 [19:36:36]line Смена: 542 ФФД: 1.0 [19:36:36]line ЗНМ: 0300000110 [19:36:36]line РНМ: 0000000000091776 [19:36:36]line Версия ККМ: 001 [19:36:36]line ФМ: 0000000000871754 [19:36:36]line ФД: 192407 [19:36:36]line ФПД: 68757346576991 [19:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192407&fm=68757346576991&tin=02508201610067®Number=0000000000091776&sum=50000 [19:36:36]OFD Sender: Processing packet 192407 [packets to send 75, broken 74] [19:36:36]ProducePacketName [19:36:36]name=ofd_packets/00192407 [19:36:36]OFD Sender: To server: pG, [19:36:36]CommunicateWithHost lk.salyk.kg:30040 [19:36:36]ConnectInit lk.salyk.kg [19:36:36]written 0, free lines is 4095 [19:36:36]Connected sock=10 [19:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 01 07 01 23 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 43 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EF 02 00 35 04 06 00 3E 88 D1 37 EA 5F 8E 2B D4 32 F2 F1 58 D3 [19:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 8A 47 00 74 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 EF 02 00 F4 03 04 00 0A 3B 1E 67 B6 04 01 00 00 2F AD C9 65 BB 0E 7A A6 [19:36:36]CommunicateWithHost err = 0 [19:36:36]CheckOFDResponse [19:36:36]1017 (14) - 77093643461234 [19:36:36]1041 (16) - 0000000000871754 [19:36:36]1040 (4) - 192407 [19:36:36]1012 (4) - 27.10.2024 13:07 [19:36:36]1206 (1) - 0 [19:36:36]OFD Sender: Remove packet 192407 [19:36:36]ProducePacketName [19:36:36]name=ofd_packets/00192407 [19:36:36]NVStorageDeleteData [19:36:36]Write to MH i2c: 01 00 00 9D 0E AB [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 A8 0C 66 [19:36:36]RasterBufferAndPrint [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]written 0, free lines is 3245 [19:36:36]MH_Cut [19:36:36]Write to MH i2c: D1 01 00 A4 0E 01 84 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 01 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 01 00 A4 0E 00 83 [19:36:36]Write to MH i2c: 01 00 00 A5 0E B3 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:37]OFD Sender: No OFD packet to send [19:36:37]*** Cut start [19:36:37]*** Partial cut [19:36:37]*** CUTSNS_PIN = 1 [19:36:37]*** CUTSNS_PIN = 0 [19:36:38]*** Brake cut motor [19:36:38]Read from MH i2c: 01 [19:36:38]MH_I2C_Read... [19:36:38]*** Stop cut motor [19:36:38]*** Cut end [19:36:38]Read from MH i2c: 01 07 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 A5 0E 00 00 00 00 00 FF 0F C8 [19:36:38]process_action close_receipt done [19:36:38]requested_data is exist [19:36:38]produce_requested_data [19:36:38]requested_item fm.sn is exist - process it [19:36:38]wFMCommunicate request_size=4 [19:36:38]MH_SAM_APDU [19:36:38]CAPDU: 80 11 00 00 [19:36:38]Write to MH i2c: E2 08 00 A6 0E 80 11 00 00 00 00 00 00 2E [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:38]Read from MH i2c: E2 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 17 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 17 00 A6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [19:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:36:38]wFMCommunicate OK [19:36:38]requested_item fd.num is exist - process it [19:36:38]SAM_PROTO_GetFieldsCounters [19:36:38]wFMCommunicate request_size=4 [19:36:38]MH_SAM_APDU [19:36:38]CAPDU: 80 13 00 00 [19:36:38]Write to MH i2c: E2 08 00 A7 0E 80 13 00 00 00 00 00 00 31 [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:38]Read from MH i2c: E2 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 62 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 62 00 A7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [19:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:38]wFMCommunicate OK [19:36:38]SAM_PROTO_GetFieldsCounters done [19:36:38]requested_item shift.num is exist - process it [19:36:38]requested_item shift.opened is exist - process it [19:36:38]req_shift_opened [19:36:38]FM_GetShiftState [19:36:38]SAM_PROTO_GetShiftState [19:36:38]wFMCommunicate request_size=4 [19:36:38]MH_SAM_APDU [19:36:38]CAPDU: 80 13 01 00 [19:36:38]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:38]Read from MH i2c: E2 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 0E 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 74 [19:36:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:36:38]wFMCommunicate OK [19:36:38]SAM_PROTO_GetShiftState done [19:36:38]FM_GetShiftState done [19:36:38]req_shift_opened done [19:36:38]requested_item shift.open_date is exist - process it [19:36:38]req_shift_open_date [19:36:38]req_shift_open_date done [19:36:38]produce_requested_data done [19:36:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192407,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:36:38]process_action_free close_receipt [19:36:38]json_value_free [19:36:38]json_value_free done [19:36:38]process_json_proto returns [19:36:38]Send response to host [19:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192407,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:36:38]free response buf [19:36:38]execute_script done [19:36:38]execute_script returns [19:36:38]free content buf [19:36:38]Sock 9.Close socket [19:36:38]Sock 9.Thread stoped [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:35]accept exits with 7 [19:37:35]New connection [19:37:35]New thread 3066707300 created [19:37:35]Thread 3066563940 joined [19:37:35]Waiting for new connection... [19:37:35] Sock 7.Parse request [19:37:35]Sock 7.Check first char [19:37:35]Sock 7.First char is OK [19:37:35]request: POST /json_proto HTTP/1.0 [19:37:35]Method: POST [19:37:35]URL: /json_proto [19:37:35]Method is POST - this is cgi request [19:37:35]url: /json_proto [19:37:35]query_string will be loaded in cgi processing [19:37:35]execute_cgi json_proto POST (null) [19:37:35]execute_cgi path=json_proto method=POST [19:37:35]POST find Content-Length [19:37:35]Host: 172.17.63.131:8080 [19:37:35]Content-Length: 670 [19:37:35]Content-Type: application/json [19:37:35] [19:37:35]POST finish read [19:37:35]Found Content-Length = 670 [19:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:35]execute_script... [19:37: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)31725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:35]POST & json_proto [19:37:35]process_json_proto [19:37:35]json parsed OK: [19:37:35]protocol is kg_v1.0 [19:37:35]action value=close_receipt [19:37:35]process_action close_receipt [19:37:35]cmd_close_receipt [19:37:35]MH_GetDate [19:37:35]Write to MH i2c: F0 00 00 A9 0E A6 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: F0 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: F0 09 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: F0 09 00 A9 0E 00 81 96 1E 67 22 05 6E 64 44 [19:37:35]GetLastDocTimeStamp 1730057795 [19:37:35]current date 1730057857 [19:37:35]FM_GetShiftState [19:37:35]SAM_PROTO_GetShiftState [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 13 01 00 [19:37:35]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0E 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 76 [19:37:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:37:35]wFMCommunicate OK [19:37:35]SAM_PROTO_GetShiftState done [19:37:35]FM_GetShiftState done [19:37:35]opened in 1729989159 [19:37:35]opened+sec_in_day 1730075559 [19:37:35]quantity*price = 66 [19:37:35]sum+1 = 68 [19:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 400.00 СДАЧА: 400.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 440 27.10.2024 19:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192408 ФПД: 128157235211850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192408&fm=128157235211850&tin=02508201610067®Number=0000000000091776&sum=0 [19:37:36]StoreToDocumentArchive [19:37:36]shift 542 fd 192408 [19:37:36]save to /storage/0542/doc_00192408 [19:37:36]save last doc name /storage/0542/doc_00192408 to /storage/kkm_last_doc_name [19:37:36]save OK [19:37:36]Clear old archive folders... [19:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:36]tlvbuf is 019DCD00 [19:37:36]SAM_PROTO_ClearQueue [19:37:36]wFMCommunicate request_size=4 [19:37:36]MH_SAM_APDU [19:37:36]CAPDU: 80 09 00 00 [19:37:36]Write to MH i2c: E2 08 00 B7 0E 80 09 00 00 00 00 00 00 37 [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_ClearQueue done [19:37:37]KKMCreateOFDPacket [19:37:37]OFDProtocolAddRootSTLVToBuf [19:37:37]FM_MakeSignedData [19:37:37]FM_MakeSignedData [19:37:37]SAM_PROTO_SignData [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 01 02 [19:37:37]Write to MH i2c: E2 08 00 B8 0E 80 0D 01 02 00 00 00 00 3F [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=255 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 81 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EF 02 00 35 04 06 00 74 [19:37:37]Write to MH i2c: E2 02 01 B9 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 81 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EF 02 00 35 04 06 00 74 00 00 51 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=10 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 02 02 05 8E EE 7A EE 4A [19:37:37]Write to MH i2c: E2 0D 00 BA 0E 80 0D 02 02 05 00 8E EE 7A EE 4A 00 00 7A [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 03 02 [19:37:37]Write to MH i2c: E2 08 00 BB 0E 80 0D 03 02 00 00 00 00 44 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]OFD Sender: No OFD packet to send [19:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0B 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0B 00 BB 0E 00 3F 08 5F 8B 7E B3 22 9F 90 00 68 [19:37:37]RAPDU: 3F 08 5F 8B 7E B3 22 9F 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_SignData done [19:37:37]FM_MakeSignedData done [19:37:37]CreateOFDProtocolMessage [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 11 00 00 [19:37:37]Write to MH i2c: E2 08 00 BC 0E 80 11 00 00 00 00 00 00 44 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 BC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [19:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:37]wFMCommunicate OK [19:37:37]CreateOFDProtocolMessage done [19:37:37]OFDSenderStorePacket 192408 [19:37:37]StoreOFDPacket docnum=192408 [19:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 23 07 01 41 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 81 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EF 02 00 35 04 06 00 74 8E EE 7A EE 4A 3F 08 5F 8B 7E B3 22 9F [19:37:37]CheckFolder [19:37:37]dirname=/storage/ofd_packets [19:37:37]CheckFolder done [19:37:37]ProducePacketName [19:37:37]name=ofd_packets/00192408 [19:37:37]NVStorageSaveData ofd_packets/00192408 [19:37:37]File name is /storage/ofd_packets/00192408 [19:37:37]Write 301 bytes [19:37:37]NVStorageSaveData done [19:37:37]OFDSenderStorePacket done [19:37:37]KKMCreateOFDPacket done [19:37:37]NVStorageSaveData kkm_last_timestamp [19:37:37]File name is /storage/kkm_last_timestamp [19:37:37]Write 4 bytes [19:37:37]NVStorageSaveData done [19:37:37]ExternCall_PrintAddStr [19:37:37]wPrintStart [19:37:37]Write to MH i2c: 01 00 00 BD 0E CB [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 FF 0F E0 [19:37:37]RasterBufferAndPrint [19:37:37]line Счет N : (1)31725 [19:37:37]line ИНН: 02508201610067 [19:37:37]line Контрольно-Кассовый Чек [19:37:37]line ПРОДАЖА [19:37:37]line ТРК (МРК, ГНК) : 12 [19:37:37]line Товар: 2710124130 [19:37:37]line Аи-92-К-5 [19:37:37]line 0.010 * 66.90 [19:37:37]line = 0.67 [19:37:37]line НДС 12% НСП 1% [19:37:37]line > о реализуемом товаре [19:37:37]line ОКРУГЛЕНИЕ: -0.67 [19:37:37]line ИТОГО: 0.00 [19:37:37]line Внесено: 400.00 [19:37:37]line СДАЧА: 400.00 [19:37:37]line НСП 1% : 0.01 [19:37:37]line НДС 12% : 0.07 [19:37:37]line Наличными: 0.00 [19:37:37]line Безнал.: 0.00 [19:37:37]line Место: АЗС № 170 "Партнер Нефть" [19:37:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:37:37]line СНО: Общий режим [19:37:37]line Чек 440 27.10.2024 19:37 [19:37:37]line Смена: 542 ФФД: 1.0 [19:37:37]line ЗНМ: 0300000110 [19:37:37]line РНМ: 0000000000091776 [19:37:37]line Версия ККМ: 001 [19:37:37]line ФМ: 0000000000871754 [19:37:37]line ФД: 192408 [19:37:37]line ФПД: 128157235211850 [19:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192408&fm=128157235211850&tin=02508201610067®Number=0000000000091776&sum=0 [19:37:37]OFD Sender: Processing packet 192408 [packets to send 75, broken 74] [19:37:37]ProducePacketName [19:37:37]name=ofd_packets/00192408 [19:37:37]OFD Sender: To server: pG, [19:37:37]CommunicateWithHost lk.salyk.kg:30040 [19:37:37]ConnectInit lk.salyk.kg [19:37:37]written 0, free lines is 4095 [19:37:37]Connected sock=10 [19:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 23 07 01 41 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 81 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EF 02 00 35 04 06 00 74 8E EE 7A EE 4A 3F 08 5F 8B 7E B3 22 9F [19:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF C1 47 00 76 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 EF 02 00 F4 03 04 00 47 3B 1E 67 B6 04 01 00 00 32 55 4D D6 3B 2D D3 B4 [19:37:38]CommunicateWithHost err = 0 [19:37:38]CheckOFDResponse [19:37:38]1017 (14) - 77093643461234 [19:37:38]1041 (16) - 0000000000871754 [19:37:38]1040 (4) - 192408 [19:37:38]1012 (4) - 27.10.2024 13:08 [19:37:38]1206 (1) - 0 [19:37:38]OFD Sender: Remove packet 192408 [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00192408 [19:37:38]NVStorageDeleteData [19:37:38]Write to MH i2c: 01 00 00 E8 0E F6 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 A1 0C AA [19:37:38]RasterBufferAndPrint [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]written 0, free lines is 3239 [19:37:38]MH_Cut [19:37:38]Write to MH i2c: D1 01 00 EF 0E 01 CF [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 EF 0E 00 CE [19:37:38]Write to MH i2c: 01 00 00 F0 0E FE [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]OFD Sender: No OFD packet to send [19:37:39]*** Cut start [19:37:39]*** Partial cut [19:37:39]*** CUTSNS_PIN = 1 [19:37:39]*** CUTSNS_PIN = 0 [19:37:39]*** Brake cut motor [19:37:39]Read from MH i2c: 01 [19:37:39]MH_I2C_Read... [19:37:39]*** Stop cut motor [19:37:39]*** Cut end [19:37:39]Read from MH i2c: 01 07 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 FF 0F 13 [19:37:39]process_action close_receipt done [19:37:39]requested_data is exist [19:37:39]produce_requested_data [19:37:39]requested_item fm.sn is exist - process it [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 11 00 00 [19:37:39]Write to MH i2c: E2 08 00 F1 0E 80 11 00 00 00 00 00 00 79 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 F1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [19:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:39]wFMCommunicate OK [19:37:39]requested_item fd.num is exist - process it [19:37:39]SAM_PROTO_GetFieldsCounters [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 13 00 00 [19:37:39]Write to MH i2c: E2 08 00 F2 0E 80 13 00 00 00 00 00 00 7C [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 62 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 62 00 F2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [19:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:39]wFMCommunicate OK [19:37:39]SAM_PROTO_GetFieldsCounters done [19:37:39]requested_item shift.num is exist - process it [19:37:39]requested_item shift.opened is exist - process it [19:37:39]req_shift_opened [19:37:39]FM_GetShiftState [19:37:39]SAM_PROTO_GetShiftState [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 13 01 00 [19:37:39]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BF [19:37:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:37:40]wFMCommunicate OK [19:37:40]SAM_PROTO_GetShiftState done [19:37:40]FM_GetShiftState done [19:37:40]req_shift_opened done [19:37:40]requested_item shift.open_date is exist - process it [19:37:40]req_shift_open_date [19:37:40]req_shift_open_date done [19:37:40]produce_requested_data done [19:37:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192408,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:37:40]process_action_free close_receipt [19:37:40]json_value_free [19:37:40]json_value_free done [19:37:40]process_json_proto returns [19:37:40]Send response to host [19:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192408,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:37:40]free response buf [19:37:40]execute_script done [19:37:40]execute_script returns [19:37:40]free content buf [19:37:40]Sock 7.Close socket [19:37:40]Sock 7.Thread stoped [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:24]accept exits with 9 [19:38:24]New connection [19:38:24]New thread 3066563940 created [19:38:24]Thread 3066707300 joined [19:38:24]Waiting for new connection... [19:38:24] Sock 9.Parse request [19:38:24]Sock 9.Check first char [19:38:24]Sock 9.First char is OK [19:38:24]request: POST /json_proto HTTP/1.0 [19:38:24]Method: POST [19:38:24]URL: /json_proto [19:38:24]Method is POST - this is cgi request [19:38:24]url: /json_proto [19:38:24]query_string will be loaded in cgi processing [19:38:24]execute_cgi json_proto POST (null) [19:38:24]execute_cgi path=json_proto method=POST [19:38:24]POST find Content-Length [19:38:24]Host: 172.17.63.131:8080 [19:38:24]Content-Length: 676 [19:38:24]Content-Type: application/json [19:38:24] [19:38:24]POST finish read [19:38:24]Found Content-Length = 676 [19:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:24]execute_script... [19:38:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:24]POST & json_proto [19:38:24]process_json_proto [19:38:24]json parsed OK: [19:38:24]protocol is kg_v1.0 [19:38:24]action value=close_receipt [19:38:24]process_action close_receipt [19:38:24]cmd_close_receipt [19:38:24]MH_GetDate [19:38:24]Write to MH i2c: F0 00 00 F4 0E F1 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 09 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 09 00 F4 0E 00 B2 96 1E 67 22 05 6E 64 C0 [19:38:24]GetLastDocTimeStamp 1730057857 [19:38:24]current date 1730057906 [19:38:24]FM_GetShiftState [19:38:24]SAM_PROTO_GetShiftState [19:38:24]wFMCommunicate request_size=4 [19:38:24]MH_SAM_APDU [19:38:24]CAPDU: 80 13 01 00 [19:38:24]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:24]Read from MH i2c: E2 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C1 [19:38:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:38:24]wFMCommunicate OK [19:38:24]SAM_PROTO_GetShiftState done [19:38:24]FM_GetShiftState done [19:38:24]opened in 1729989159 [19:38:24]opened+sec_in_day 1730075559 [19:38:24]quantity*price = 50041 [19:38:24]sum+1 = 50042 [19:38:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 441 27.10.2024 19:38 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192409 ФПД: 35195261375906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192409&fm=35195261375906&tin=02508201610067®Number=0000000000091776&sum=50000 [19:38:26]StoreToDocumentArchive [19:38:26]shift 542 fd 192409 [19:38:26]save to /storage/0542/doc_00192409 [19:38:26]save last doc name /storage/0542/doc_00192409 to /storage/kkm_last_doc_name [19:38:26]save OK [19:38:26]Clear old archive folders... [19:38:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:26]tlvbuf is 01A066B0 [19:38:26]SAM_PROTO_ClearQueue [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 09 00 00 [19:38:26]Write to MH i2c: E2 08 00 02 0F 80 09 00 00 00 00 00 00 83 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [19:38:26]RAPDU: 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_ClearQueue done [19:38:26]KKMCreateOFDPacket [19:38:26]OFDProtocolAddRootSTLVToBuf [19:38:26]FM_MakeSignedData [19:38:26]FM_MakeSignedData [19:38:26]SAM_PROTO_SignData [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 0D 01 02 [19:38:26]Write to MH i2c: E2 08 00 03 0F 80 0D 01 02 00 00 00 00 8B [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [19:38:26]RAPDU: 90 00 [19:38:26]wFMCommunicate OK [19:38:26]wFMCommunicate request_size=255 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B2 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EF 02 00 35 04 06 00 20 [19:38:26]Write to MH i2c: E2 02 01 04 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B2 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EF 02 00 35 04 06 00 20 00 00 70 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [19:38:26]RAPDU: 90 00 [19:38:26]wFMCommunicate OK [19:38:26]wFMCommunicate request_size=10 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 0D 02 02 05 02 89 0D 55 A2 [19:38:26]Write to MH i2c: E2 0D 00 05 0F 80 0D 02 02 05 00 02 89 0D 55 A2 00 00 27 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [19:38:26]RAPDU: 90 00 [19:38:26]wFMCommunicate OK [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 0D 03 02 [19:38:26]Write to MH i2c: E2 08 00 06 0F 80 0D 03 02 00 00 00 00 90 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0B 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0B 00 06 0F 00 37 8A E1 27 B7 6F 03 7D 90 00 00 [19:38:26]RAPDU: 37 8A E1 27 B7 6F 03 7D 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_SignData done [19:38:26]FM_MakeSignedData done [19:38:26]CreateOFDProtocolMessage [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 11 00 00 [19:38:26]Write to MH i2c: E2 08 00 07 0F 80 11 00 00 00 00 00 00 90 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 07 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [19:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:38:26]wFMCommunicate OK [19:38:26]CreateOFDProtocolMessage done [19:38:26]OFDSenderStorePacket 192409 [19:38:26]StoreOFDPacket docnum=192409 [19:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 92 07 01 30 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B2 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EF 02 00 35 04 06 00 20 02 89 0D 55 A2 37 8A E1 27 B7 6F 03 7D [19:38:26]CheckFolder [19:38:26]dirname=/storage/ofd_packets [19:38:26]CheckFolder done [19:38:26]ProducePacketName [19:38:26]name=ofd_packets/00192409 [19:38:26]NVStorageSaveData ofd_packets/00192409 [19:38:26]File name is /storage/ofd_packets/00192409 [19:38:26]Write 301 bytes [19:38:26]NVStorageSaveData done [19:38:26]OFDSenderStorePacket done [19:38:26]KKMCreateOFDPacket done [19:38:26]NVStorageSaveData kkm_last_timestamp [19:38:26]File name is /storage/kkm_last_timestamp [19:38:26]Write 4 bytes [19:38:26]NVStorageSaveData done [19:38:26]ExternCall_PrintAddStr [19:38:26]wPrintStart [19:38:26]Write to MH i2c: 01 00 00 08 0F 17 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [19:38:26]RasterBufferAndPrint [19:38:26]line Счет N : (1)31726 [19:38:26]line ИНН: 02508201610067 [19:38:26]line Контрольно-Кассовый Чек [19:38:26]line ПРОДАЖА [19:38:26]line ТРК (МРК, ГНК) : 21 [19:38:26]line Товар: 2710124130 [19:38:26]line Аи-92-К-5 [19:38:26]line 7.480 * 66.90 [19:38:26]line = 500.41 [19:38:26]line НДС 12% НСП 1% [19:38:26]line > о реализуемом товаре [19:38:26]line ОКРУГЛЕНИЕ: -0.41 [19:38:26]line ИТОГО: 500.00 [19:38:26]line Внесено: 500.00 [19:38:26]line СДАЧА: 0.00 [19:38:26]line НСП 1% : 4.43 [19:38:26]line НДС 12% : 53.14 [19:38:26]line Наличными: 500.00 [19:38:26]line Безнал.: 0.00 [19:38:26]line Место: АЗС № 170 "Партнер Нефть" [19:38:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:38:26]line СНО: Общий режим [19:38:26]line Чек 441 27.10.2024 19:38 [19:38:26]line Смена: 542 ФФД: 1.0 [19:38:26]line ЗНМ: 0300000110 [19:38:26]line РНМ: 0000000000091776 [19:38:26]line Версия ККМ: 001 [19:38:26]line ФМ: 0000000000871754 [19:38:26]line ФД: 192409 [19:38:26]line ФПД: 35195261375906 [19:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192409&fm=35195261375906&tin=02508201610067®Number=0000000000091776&sum=50000 [19:38:26]OFD Sender: Processing packet 192409 [packets to send 75, broken 74] [19:38:26]ProducePacketName [19:38:26]name=ofd_packets/00192409 [19:38:26]OFD Sender: To server: pG, [19:38:26]CommunicateWithHost lk.salyk.kg:30040 [19:38:26]ConnectInit lk.salyk.kg [19:38:26]written 0, free lines is 4095 [19:38:27]Connected sock=10 [19:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 92 07 01 30 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B2 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EF 02 00 35 04 06 00 20 02 89 0D 55 A2 37 8A E1 27 B7 6F 03 7D [19:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3E 4D 47 00 D3 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 EF 02 00 F4 03 04 00 78 3B 1E 67 B6 04 01 00 00 28 72 AE E2 21 3F D1 51 [19:38:27]CommunicateWithHost err = 0 [19:38:27]CheckOFDResponse [19:38:27]1017 (14) - 77093643461234 [19:38:27]1041 (16) - 0000000000871754 [19:38:27]1040 (4) - 192409 [19:38:27]1012 (4) - 27.10.2024 13:09 [19:38:27]1206 (1) - 0 [19:38:27]OFD Sender: Remove packet 192409 [19:38:27]ProducePacketName [19:38:27]name=ofd_packets/00192409 [19:38:27]NVStorageDeleteData [19:38:27]Write to MH i2c: 01 00 00 33 0F 42 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 07 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 A3 0C F8 [19:38:27]RasterBufferAndPrint [19:38:27]line [19:38:27]line [19:38:27]line [19:38:27]line [19:38:27]line [19:38:27]written 0, free lines is 3241 [19:38:27]MH_Cut [19:38:27]Write to MH i2c: D1 01 00 3A 0F 01 1B [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: D1 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: D1 01 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: D1 01 00 3A 0F 00 1A [19:38:27]Write to MH i2c: 01 00 00 3B 0F 4A [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]OFD Sender: No OFD packet to send [19:38:28]*** Cut start [19:38:28]*** Partial cut [19:38:28]*** CUTSNS_PIN = 1 [19:38:28]*** CUTSNS_PIN = 0 [19:38:28]*** Brake cut motor [19:38:28]Read from MH i2c: 01 [19:38:28]MH_I2C_Read... [19:38:28]*** Stop cut motor [19:38:28]*** Cut end [19:38:28]Read from MH i2c: 01 07 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [19:38:28]process_action close_receipt done [19:38:28]requested_data is exist [19:38:28]produce_requested_data [19:38:28]requested_item fm.sn is exist - process it [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 11 00 00 [19:38:28]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:28]Read from MH i2c: E2 17 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 18 [19:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:38:28]wFMCommunicate OK [19:38:28]requested_item fd.num is exist - process it [19:38:28]SAM_PROTO_GetFieldsCounters [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 13 00 00 [19:38:28]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 62 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [19:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_GetFieldsCounters done [19:38:29]requested_item shift.num is exist - process it [19:38:29]requested_item shift.opened is exist - process it [19:38:29]req_shift_opened [19:38:29]FM_GetShiftState [19:38:29]SAM_PROTO_GetShiftState [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 13 01 00 [19:38:29]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0E 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0B [19:38:29]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_GetShiftState done [19:38:29]FM_GetShiftState done [19:38:29]req_shift_opened done [19:38:29]requested_item shift.open_date is exist - process it [19:38:29]req_shift_open_date [19:38:29]req_shift_open_date done [19:38:29]produce_requested_data done [19:38:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192409,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:38:29]process_action_free close_receipt [19:38:29]json_value_free [19:38:29]json_value_free done [19:38:29]process_json_proto returns [19:38:29]Send response to host [19:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192409,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:38:29]free response buf [19:38:29]execute_script done [19:38:29]execute_script returns [19:38:29]free content buf [19:38:29]Sock 9.Close socket [19:38:29]Sock 9.Thread stoped [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:35]accept exits with 7 [19:39:35]New connection [19:39:35]New thread 3066707300 created [19:39:35]Thread 3066563940 joined [19:39:35]Waiting for new connection... [19:39:35] Sock 7.Parse request [19:39:35]Sock 7.Check first char [19:39:35]Sock 7.First char is OK [19:39:35]request: POST /json_proto HTTP/1.0 [19:39:35]Method: POST [19:39:35]URL: /json_proto [19:39:35]Method is POST - this is cgi request [19:39:35]url: /json_proto [19:39:35]query_string will be loaded in cgi processing [19:39:35]execute_cgi json_proto POST (null) [19:39:35]execute_cgi path=json_proto method=POST [19:39:35]POST find Content-Length [19:39:35]Host: 172.17.63.131:8080 [19:39:35]Content-Length: 676 [19:39:35]Content-Type: application/json [19:39:35] [19:39:35]POST finish read [19:39:35]Found Content-Length = 676 [19:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]execute_script... [19:39: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)31727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]POST & json_proto [19:39:35]process_json_proto [19:39:35]json parsed OK: [19:39:35]protocol is kg_v1.0 [19:39:35]action value=close_receipt [19:39:35]process_action close_receipt [19:39:35]cmd_close_receipt [19:39:35]MH_GetDate [19:39:35]Write to MH i2c: F0 00 00 3F 0F 3D [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 3F 0F 00 F9 96 1E 67 22 05 6E 64 53 [19:39:35]GetLastDocTimeStamp 1730057906 [19:39:35]current date 1730057977 [19:39:35]FM_GetShiftState [19:39:35]SAM_PROTO_GetShiftState [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 01 00 [19:39:35]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0D [19:39:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetShiftState done [19:39:35]FM_GetShiftState done [19:39:35]opened in 1729989159 [19:39:35]opened+sec_in_day 1730075559 [19:39:35]quantity*price = 49037 [19:39:35]sum+1 = 49039 [19:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 442 27.10.2024 19:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192410 ФПД: 204682993290162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192410&fm=204682993290162&tin=02508201610067®Number=0000000000091776&sum=49000 [19:39:37]StoreToDocumentArchive [19:39:37]shift 542 fd 192410 [19:39:37]save to /storage/0542/doc_00192410 [19:39:37]save last doc name /storage/0542/doc_00192410 to /storage/kkm_last_doc_name [19:39:37]save OK [19:39:37]Clear old archive folders... [19:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:37]tlvbuf is 01A06640 [19:39:37]SAM_PROTO_ClearQueue [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 09 00 00 [19:39:37]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_ClearQueue done [19:39:37]KKMCreateOFDPacket [19:39:37]OFDProtocolAddRootSTLVToBuf [19:39:37]FM_MakeSignedData [19:39:37]FM_MakeSignedData [19:39:37]SAM_PROTO_SignData [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 01 02 [19:39:37]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=255 [19:39:37]MH_SAM_APDU [19:39: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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 01 00 00 F4 03 04 00 F9 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EF 02 00 35 04 06 00 BA [19:39:37]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 01 00 00 F4 03 04 00 F9 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EF 02 00 35 04 06 00 BA 00 00 CD [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=10 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 02 02 05 28 79 1B 4B B2 [19:39:37]Write to MH i2c: E2 0D 00 50 0F 80 0D 02 02 05 00 28 79 1B 4B B2 00 00 9C [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 03 02 [19:39:37]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 51 0F 00 43 60 CC 46 71 11 A5 D7 90 00 8F [19:39:37]RAPDU: 43 60 CC 46 71 11 A5 D7 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_SignData done [19:39:37]FM_MakeSignedData done [19:39:37]CreateOFDProtocolMessage [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 11 00 00 [19:39:37]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [19:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:39:37]wFMCommunicate OK [19:39:37]CreateOFDProtocolMessage done [19:39:37]OFDSenderStorePacket 192410 [19:39:37]StoreOFDPacket docnum=192410 [19:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 94 07 01 26 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 01 00 00 F4 03 04 00 F9 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EF 02 00 35 04 06 00 BA 28 79 1B 4B B2 43 60 CC 46 71 11 A5 D7 [19:39:37]CheckFolder [19:39:37]dirname=/storage/ofd_packets [19:39:37]CheckFolder done [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00192410 [19:39:37]NVStorageSaveData ofd_packets/00192410 [19:39:37]File name is /storage/ofd_packets/00192410 [19:39:37]Write 301 bytes [19:39:37]NVStorageSaveData done [19:39:37]OFDSenderStorePacket done [19:39:37]KKMCreateOFDPacket done [19:39:37]NVStorageSaveData kkm_last_timestamp [19:39:37]File name is /storage/kkm_last_timestamp [19:39:37]Write 4 bytes [19:39:37]NVStorageSaveData done [19:39:37]ExternCall_PrintAddStr [19:39:37]wPrintStart [19:39:37]Write to MH i2c: 01 00 00 53 0F 62 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [19:39:37]RasterBufferAndPrint [19:39:37]line Счет N : (1)31727 [19:39:37]line ИНН: 02508201610067 [19:39:37]line Контрольно-Кассовый Чек [19:39:37]line ПРОДАЖА [19:39:37]line ТРК (МРК, ГНК) : 12 [19:39:37]line Товар: 2710124130 [19:39:37]line Аи-92-К-5 [19:39:37]line 7.330 * 66.90 [19:39:37]line = 490.38 [19:39:37]line НДС 12% НСП 1% [19:39:37]line > о реализуемом товаре [19:39:37]line ОКРУГЛЕНИЕ: -0.38 [19:39:37]line ИТОГО: 490.00 [19:39:37]line Внесено: 490.00 [19:39:37]line СДАЧА: 0.00 [19:39:37]line НСП 1% : 4.34 [19:39:37]line НДС 12% : 52.08 [19:39:37]line Наличными: 490.00 [19:39:37]line Безнал.: 0.00 [19:39:37]line Место: АЗС № 170 "Партнер Нефть" [19:39:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:39:37]line СНО: Общий режим [19:39:37]line Чек 442 27.10.2024 19:39 [19:39:37]line Смена: 542 ФФД: 1.0 [19:39:37]line ЗНМ: 0300000110 [19:39:37]line РНМ: 0000000000091776 [19:39:37]line Версия ККМ: 001 [19:39:37]line ФМ: 0000000000871754 [19:39:37]line ФД: 192410 [19:39:37]line ФПД: 204682993290162 [19:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192410&fm=204682993290162&tin=02508201610067®Number=0000000000091776&sum=49000 [19:39:37]OFD Sender: Processing packet 192410 [packets to send 75, broken 74] [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00192410 [19:39:37]OFD Sender: To server: pG, [19:39:37]CommunicateWithHost lk.salyk.kg:30040 [19:39:37]ConnectInit lk.salyk.kg [19:39:37]written 0, free lines is 4095 [19:39:38]Connected sock=9 [19:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 94 07 01 26 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 01 00 00 F4 03 04 00 F9 96 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EF 02 00 35 04 06 00 BA 28 79 1B 4B B2 43 60 CC 46 71 11 A5 D7 [19:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C FF 47 00 C8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A EF 02 00 F4 03 04 00 BF 3B 1E 67 B6 04 01 00 00 EA E0 DD EC 3A C4 2A B8 [19:39:38]CommunicateWithHost err = 0 [19:39:38]CheckOFDResponse [19:39:38]1017 (14) - 77093643461234 [19:39:38]1041 (16) - 0000000000871754 [19:39:38]1040 (4) - 192410 [19:39:38]1012 (4) - 27.10.2024 13:10 [19:39:38]1206 (1) - 0 [19:39:38]OFD Sender: Remove packet 192410 [19:39:38]ProducePacketName [19:39:38]name=ofd_packets/00192410 [19:39:38]NVStorageDeleteData [19:39:38]Write to MH i2c: 01 00 00 7E 0F 8D [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 07 00 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 A7 0C 47 [19:39:38]RasterBufferAndPrint [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]written 0, free lines is 3245 [19:39:38]MH_Cut [19:39:38]Write to MH i2c: D1 01 00 85 0F 01 66 [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 01 00 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 01 00 85 0F 00 65 [19:39:38]Write to MH i2c: 01 00 00 86 0F 95 [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]OFD Sender: No OFD packet to send [19:39:39]*** Cut start [19:39:39]*** Partial cut [19:39:39]*** CUTSNS_PIN = 1 [19:39:39]*** CUTSNS_PIN = 0 [19:39:39]*** Brake cut motor [19:39:39]Read from MH i2c: 01 [19:39:39]MH_I2C_Read... [19:39:39]*** Stop cut motor [19:39:39]*** Cut end [19:39:39]Read from MH i2c: 01 07 00 [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [19:39:39]process_action close_receipt done [19:39:39]requested_data is exist [19:39:39]produce_requested_data [19:39:39]requested_item fm.sn is exist - process it [19:39:39]wFMCommunicate request_size=4 [19:39:39]MH_SAM_APDU [19:39:39]CAPDU: 80 11 00 00 [19:39:39]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [19:39:39]Write i2c OK [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: E2 [19:39:39]MH_I2C_Read... [19:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:39]Read from MH i2c: E2 17 00 [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [19:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:39:39]wFMCommunicate OK [19:39:39]requested_item fd.num is exist - process it [19:39:39]SAM_PROTO_GetFieldsCounters [19:39:39]wFMCommunicate request_size=4 [19:39:39]MH_SAM_APDU [19:39:39]CAPDU: 80 13 00 00 [19:39:39]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [19:39:39]Write i2c OK [19:39:39]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 62 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 62 00 88 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetFieldsCounters done [19:39:40]requested_item shift.num is exist - process it [19:39:40]requested_item shift.opened is exist - process it [19:39:40]req_shift_opened [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 56 [19:39:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]req_shift_opened done [19:39:40]requested_item shift.open_date is exist - process it [19:39:40]req_shift_open_date [19:39:40]req_shift_open_date done [19:39:40]produce_requested_data done [19:39:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192410,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:39:40]process_action_free close_receipt [19:39:40]json_value_free [19:39:40]json_value_free done [19:39:40]process_json_proto returns [19:39:40]Send response to host [19:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192410,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:39:40]free response buf [19:39:40]execute_script done [19:39:40]execute_script returns [19:39:40]free content buf [19:39:40]Sock 7.Close socket [19:39:40]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:54]accept exits with 10 [19:43:54]New connection [19:43:54]New thread 3066563940 created [19:43:54]Thread 3066707300 joined [19:43:54]Waiting for new connection... [19:43:54] Sock 10.Parse request [19:43:54]Sock 10.Check first char [19:43:54]Sock 10.First char is OK [19:43:54]request: POST /json_proto HTTP/1.0 [19:43:54]Method: POST [19:43:54]URL: /json_proto [19:43:54]Method is POST - this is cgi request [19:43:54]url: /json_proto [19:43:54]query_string will be loaded in cgi processing [19:43:54]execute_cgi json_proto POST (null) [19:43:54]execute_cgi path=json_proto method=POST [19:43:54]POST find Content-Length [19:43:54]Host: 172.17.63.131:8080 [19:43:54]Content-Length: 681 [19:43:54]Content-Type: application/json [19:43:54] [19:43:54]POST finish read [19:43:54]Found Content-Length = 681 [19:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:54]execute_script... [19:43: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)31728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:54]POST & json_proto [19:43:54]process_json_proto [19:43:54]json parsed OK: [19:43:54]protocol is kg_v1.0 [19:43:54]action value=close_receipt [19:43:54]process_action close_receipt [19:43:54]cmd_close_receipt [19:43:54]MH_GetDate [19:43:54]Write to MH i2c: F0 00 00 8A 0F 88 [19:43:54]Write i2c OK [19:43:54]MH_I2C_Read... [19:43:54]Read from MH i2c: F0 [19:43:54]MH_I2C_Read... [19:43:54]Read from MH i2c: F0 09 00 [19:43:54]MH_I2C_Read... [19:43:54]Read from MH i2c: F0 09 00 8A 0F 00 FC 97 1E 67 22 05 6E 64 A2 [19:43:54]GetLastDocTimeStamp 1730057977 [19:43:54]current date 1730058236 [19:43:54]FM_GetShiftState [19:43:54]SAM_PROTO_GetShiftState [19:43:54]wFMCommunicate request_size=4 [19:43:54]MH_SAM_APDU [19:43:54]CAPDU: 80 13 01 00 [19:43:54]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [19:43:54]Write i2c OK [19:43:54]MH_I2C_Read... [19:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:54]Read from MH i2c: E2 [19:43:54]MH_I2C_Read... [19:43:54]Read from MH i2c: E2 0E 00 [19:43:54]MH_I2C_Read... [19:43:54]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [19:43:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:43:54]wFMCommunicate OK [19:43:54]SAM_PROTO_GetShiftState done [19:43:54]FM_GetShiftState done [19:43:54]opened in 1729989159 [19:43:54]opened+sec_in_day 1730075559 [19:43:54]quantity*price = 100015 [19:43:54]sum+1 = 100017 [19:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 443 27.10.2024 19:43 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192411 ФПД: 194684085064101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192411&fm=194684085064101&tin=02508201610067®Number=0000000000091776&sum=100000 [19:43:55]StoreToDocumentArchive [19:43:55]shift 542 fd 192411 [19:43:55]save to /storage/0542/doc_00192411 [19:43:55]save last doc name /storage/0542/doc_00192411 to /storage/kkm_last_doc_name [19:43:55]save OK [19:43:55]Clear old archive folders... [19:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:55]tlvbuf is 01A00510 [19:43:55]SAM_PROTO_ClearQueue [19:43:55]wFMCommunicate request_size=4 [19:43:55]MH_SAM_APDU [19:43:55]CAPDU: 80 09 00 00 [19:43:55]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [19:43:55]Write i2c OK [19:43:55]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [19:43:56]RAPDU: 90 00 [19:43:56]wFMCommunicate OK [19:43:56]SAM_PROTO_ClearQueue done [19:43:56]KKMCreateOFDPacket [19:43:56]OFDProtocolAddRootSTLVToBuf [19:43:56]FM_MakeSignedData [19:43:56]FM_MakeSignedData [19:43:56]SAM_PROTO_SignData [19:43:56]wFMCommunicate request_size=4 [19:43:56]MH_SAM_APDU [19:43:56]CAPDU: 80 0D 01 02 [19:43:56]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [19:43:56]RAPDU: 90 00 [19:43:56]wFMCommunicate OK [19:43:56]wFMCommunicate request_size=255 [19:43:56]MH_SAM_APDU [19:43:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 FC 97 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EF 02 00 35 04 06 00 B1 [19:43:56]Write to MH i2c: E2 02 01 9A 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 FC 97 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EF 02 00 35 04 06 00 B1 00 00 E0 [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [19:43:56]RAPDU: 90 00 [19:43:56]wFMCommunicate OK [19:43:56]wFMCommunicate request_size=10 [19:43:56]MH_SAM_APDU [19:43:56]CAPDU: 80 0D 02 02 05 10 6B BB D1 A5 [19:43:56]Write to MH i2c: E2 0D 00 9B 0F 80 0D 02 02 05 00 10 6B BB D1 A5 00 00 DA [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [19:43:56]RAPDU: 90 00 [19:43:56]wFMCommunicate OK [19:43:56]wFMCommunicate request_size=4 [19:43:56]MH_SAM_APDU [19:43:56]CAPDU: 80 0D 03 02 [19:43:56]Write to MH i2c: E2 08 00 9C 0F 80 0D 03 02 00 00 00 00 26 [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 0B 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 0B 00 9C 0F 00 FA 44 FF 11 D7 DD D1 9F 90 00 99 [19:43:56]RAPDU: FA 44 FF 11 D7 DD D1 9F 90 00 [19:43:56]wFMCommunicate OK [19:43:56]SAM_PROTO_SignData done [19:43:56]FM_MakeSignedData done [19:43:56]CreateOFDProtocolMessage [19:43:56]wFMCommunicate request_size=4 [19:43:56]MH_SAM_APDU [19:43:56]CAPDU: 80 11 00 00 [19:43:56]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:56]Read from MH i2c: E2 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 17 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [19:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:56]wFMCommunicate OK [19:43:56]CreateOFDProtocolMessage done [19:43:56]OFDSenderStorePacket 192411 [19:43:56]StoreOFDPacket docnum=192411 [19:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 85 07 01 47 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 FC 97 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EF 02 00 35 04 06 00 B1 10 6B BB D1 A5 FA 44 FF 11 D7 DD D1 9F [19:43:56]CheckFolder [19:43:56]dirname=/storage/ofd_packets [19:43:56]CheckFolder done [19:43:56]ProducePacketName [19:43:56]name=ofd_packets/00192411 [19:43:56]NVStorageSaveData ofd_packets/00192411 [19:43:56]File name is /storage/ofd_packets/00192411 [19:43:56]Write 301 bytes [19:43:56]NVStorageSaveData done [19:43:56]OFDSenderStorePacket done [19:43:56]KKMCreateOFDPacket done [19:43:56]NVStorageSaveData kkm_last_timestamp [19:43:56]File name is /storage/kkm_last_timestamp [19:43:56]Write 4 bytes [19:43:56]NVStorageSaveData done [19:43:56]ExternCall_PrintAddStr [19:43:56]wPrintStart [19:43:56]Write to MH i2c: 01 00 00 9E 0F AD [19:43:56]Write i2c OK [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: 01 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: 01 07 00 [19:43:56]MH_I2C_Read... [19:43:56]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [19:43:56]RasterBufferAndPrint [19:43:56]line Счет N : (1)31728 [19:43:56]line ИНН: 02508201610067 [19:43:56]line Контрольно-Кассовый Чек [19:43:56]line ПРОДАЖА [19:43:56]line ТРК (МРК, ГНК) : 12 [19:43:56]line Товар: 2710124130 [19:43:56]line Аи-92-К-5 [19:43:56]line 14.950 * 66.90 [19:43:56]line = 1000.16 [19:43:56]line НДС 12% НСП 1% [19:43:56]line > о реализуемом товаре [19:43:56]line ОКРУГЛЕНИЕ: -0.16 [19:43:56]line ИТОГО: 1000.00 [19:43:56]line Внесено: 1000.00 [19:43:56]line СДАЧА: 0.00 [19:43:56]line НСП 1% : 8.85 [19:43:56]line НДС 12% : 106.21 [19:43:56]line Наличными: 1000.00 [19:43:56]line Безнал.: 0.00 [19:43:56]line Место: АЗС № 170 "Партнер Нефть" [19:43:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:43:56]line СНО: Общий режим [19:43:56]line Чек 443 27.10.2024 19:43 [19:43:56]line Смена: 542 ФФД: 1.0 [19:43:56]line ЗНМ: 0300000110 [19:43:56]line РНМ: 0000000000091776 [19:43:56]line Версия ККМ: 001 [19:43:56]line ФМ: 0000000000871754 [19:43:56]line ФД: 192411 [19:43:56]line ФПД: 194684085064101 [19:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192411&fm=194684085064101&tin=02508201610067®Number=0000000000091776&sum=100000 [19:43:56]OFD Sender: Processing packet 192411 [packets to send 75, broken 74] [19:43:56]ProducePacketName [19:43:56]name=ofd_packets/00192411 [19:43:56]OFD Sender: To server: pG, [19:43:56]CommunicateWithHost lk.salyk.kg:30040 [19:43:56]ConnectInit lk.salyk.kg [19:43:56]written 0, free lines is 4095 [19:43:56]Connected sock=9 [19:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 85 07 01 47 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 FC 97 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EF 02 00 35 04 06 00 B1 10 6B BB D1 A5 FA 44 FF 11 D7 DD D1 9F [19:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 06 47 00 B3 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EF 02 00 F4 03 04 00 C2 3C 1E 67 B6 04 01 00 00 B3 9A CD E5 21 DD C0 9E [19:43:57]CommunicateWithHost err = 0 [19:43:57]CheckOFDResponse [19:43:57]1017 (14) - 77093643461234 [19:43:57]1041 (16) - 0000000000871754 [19:43:57]1040 (4) - 192411 [19:43:57]1012 (4) - 27.10.2024 13:14 [19:43:57]1206 (1) - 0 [19:43:57]OFD Sender: Remove packet 192411 [19:43:57]ProducePacketName [19:43:57]name=ofd_packets/00192411 [19:43:57]NVStorageDeleteData [19:43:57]Write to MH i2c: 01 00 00 C9 0F D8 [19:43:57]Write i2c OK [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: 01 [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: 01 07 00 [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: 01 07 00 C9 0F 00 00 00 00 00 A5 0C 90 [19:43:57]RasterBufferAndPrint [19:43:57]line [19:43:57]line [19:43:57]line [19:43:57]line [19:43:57]line [19:43:57]written 0, free lines is 3242 [19:43:57]MH_Cut [19:43:57]Write to MH i2c: D1 01 00 D0 0F 01 B1 [19:43:57]Write i2c OK [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: D1 [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: D1 01 00 [19:43:57]MH_I2C_Read... [19:43:57]Read from MH i2c: D1 01 00 D0 0F 00 B0 [19:43:57]Write to MH i2c: 01 00 00 D1 0F E0 [19:43:57]Write i2c OK [19:43:57]MH_I2C_Read... [19:43:57]OFD Sender: No OFD packet to send [19:43:58]*** Cut start [19:43:58]*** Partial cut [19:43:58]*** CUTSNS_PIN = 1 [19:43:58]*** CUTSNS_PIN = 0 [19:43:58]*** Brake cut motor [19:43:58]Read from MH i2c: 01 [19:43:58]MH_I2C_Read... [19:43:58]*** Stop cut motor [19:43:58]*** Cut end [19:43:58]Read from MH i2c: 01 07 00 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 FF 0F F5 [19:43:58]process_action close_receipt done [19:43:58]requested_data is exist [19:43:58]produce_requested_data [19:43:58]requested_item fm.sn is exist - process it [19:43:58]wFMCommunicate request_size=4 [19:43:58]MH_SAM_APDU [19:43:58]CAPDU: 80 11 00 00 [19:43:58]Write to MH i2c: E2 08 00 D2 0F 80 11 00 00 00 00 00 00 5B [19:43:58]Write i2c OK [19:43:58]MH_I2C_Read... [19:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:58]Read from MH i2c: E2 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: E2 17 00 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: E2 17 00 D2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [19:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:58]wFMCommunicate OK [19:43:58]requested_item fd.num is exist - process it [19:43:58]SAM_PROTO_GetFieldsCounters [19:43:58]wFMCommunicate request_size=4 [19:43:58]MH_SAM_APDU [19:43:58]CAPDU: 80 13 00 00 [19:43:58]Write to MH i2c: E2 08 00 D3 0F 80 13 00 00 00 00 00 00 5E [19:43:58]Write i2c OK [19:43:58]MH_I2C_Read... [19:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:58]Read from MH i2c: E2 [19:43:58]MH_I2C_Read... [19:43:58]Read from MH i2c: E2 62 00 [19:43:58]MH_I2C_Read... [19:43:59]Read from MH i2c: E2 62 00 D3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [19:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:59]wFMCommunicate OK [19:43:59]SAM_PROTO_GetFieldsCounters done [19:43:59]requested_item shift.num is exist - process it [19:43:59]requested_item shift.opened is exist - process it [19:43:59]req_shift_opened [19:43:59]FM_GetShiftState [19:43:59]SAM_PROTO_GetShiftState [19:43:59]wFMCommunicate request_size=4 [19:43:59]MH_SAM_APDU [19:43:59]CAPDU: 80 13 01 00 [19:43:59]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [19:43:59]Write i2c OK [19:43:59]MH_I2C_Read... [19:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:59]Read from MH i2c: E2 [19:43:59]MH_I2C_Read... [19:43:59]Read from MH i2c: E2 0E 00 [19:43:59]MH_I2C_Read... [19:43:59]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [19:43:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:43:59]wFMCommunicate OK [19:43:59]SAM_PROTO_GetShiftState done [19:43:59]FM_GetShiftState done [19:43:59]req_shift_opened done [19:43:59]requested_item shift.open_date is exist - process it [19:43:59]req_shift_open_date [19:43:59]req_shift_open_date done [19:43:59]produce_requested_data done [19:43:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192411,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:43:59]process_action_free close_receipt [19:43:59]json_value_free [19:43:59]json_value_free done [19:43:59]process_json_proto returns [19:43:59]Send response to host [19:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192411,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:43:59]free response buf [19:43:59]execute_script done [19:43:59]execute_script returns [19:43:59]free content buf [19:43:59]Sock 10.Close socket [19:43:59]Sock 10.Thread stoped [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:00]accept exits with 7 [19:46:00]New connection [19:46:00]New thread 3066707300 created [19:46:00]Thread 3066563940 joined [19:46:00]Waiting for new connection... [19:46:00] Sock 7.Parse request [19:46:00]Sock 7.Check first char [19:46:00]Sock 7.First char is OK [19:46:00]request: POST /json_proto HTTP/1.0 [19:46:00]Method: POST [19:46:00]URL: /json_proto [19:46:00]Method is POST - this is cgi request [19:46:00]url: /json_proto [19:46:00]query_string will be loaded in cgi processing [19:46:00]execute_cgi json_proto POST (null) [19:46:00]execute_cgi path=json_proto method=POST [19:46:00]POST find Content-Length [19:46:00]Host: 172.17.63.131:8080 [19:46:00]Content-Length: 676 [19:46:00]Content-Type: application/json [19:46:00] [19:46:00]POST finish read [19:46:00]Found Content-Length = 676 [19:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:00]execute_script... [19:46: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)31729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:00]POST & json_proto [19:46:00]process_json_proto [19:46:00]json parsed OK: [19:46:00]protocol is kg_v1.0 [19:46:00]action value=close_receipt [19:46:00]process_action close_receipt [19:46:00]cmd_close_receipt [19:46:00]MH_GetDate [19:46:00]Write to MH i2c: F0 00 00 D5 0F D3 [19:46:00]Write i2c OK [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 09 00 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: F0 09 00 D5 0F 00 79 98 1E 67 22 05 6E 64 6B [19:46:00]GetLastDocTimeStamp 1730058236 [19:46:00]current date 1730058361 [19:46:00]FM_GetShiftState [19:46:00]SAM_PROTO_GetShiftState [19:46:00]wFMCommunicate request_size=4 [19:46:00]MH_SAM_APDU [19:46:00]CAPDU: 80 13 01 00 [19:46:00]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [19:46:00]Write i2c OK [19:46:00]MH_I2C_Read... [19:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:00]Read from MH i2c: E2 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: E2 0E 00 [19:46:00]MH_I2C_Read... [19:46:00]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A3 [19:46:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:46:00]wFMCommunicate OK [19:46:00]SAM_PROTO_GetShiftState done [19:46:00]FM_GetShiftState done [19:46:00]opened in 1729989159 [19:46:00]opened+sec_in_day 1730075559 [19:46:00]quantity*price = 20003 [19:46:00]sum+1 = 20004 [19:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 444 27.10.2024 19:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192412 ФПД: 149990403557925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192412&fm=149990403557925&tin=02508201610067®Number=0000000000091776&sum=20000 [19:46:01]StoreToDocumentArchive [19:46:01]shift 542 fd 192412 [19:46:01]save to /storage/0542/doc_00192412 [19:46:01]save last doc name /storage/0542/doc_00192412 to /storage/kkm_last_doc_name [19:46:01]save OK [19:46:01]Clear old archive folders... [19:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:01]tlvbuf is 019B34B0 [19:46:01]SAM_PROTO_ClearQueue [19:46:01]wFMCommunicate request_size=4 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 09 00 00 [19:46:01]Write to MH i2c: E2 08 00 E3 0F 80 09 00 00 00 00 00 00 64 [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:01]Read from MH i2c: E2 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [19:46:01]RAPDU: 90 00 [19:46:01]wFMCommunicate OK [19:46:01]SAM_PROTO_ClearQueue done [19:46:01]KKMCreateOFDPacket [19:46:01]OFDProtocolAddRootSTLVToBuf [19:46:01]FM_MakeSignedData [19:46:01]FM_MakeSignedData [19:46:01]SAM_PROTO_SignData [19:46:01]wFMCommunicate request_size=4 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 0D 01 02 [19:46:01]Write to MH i2c: E2 08 00 E4 0F 80 0D 01 02 00 00 00 00 6C [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:01]Read from MH i2c: E2 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 [19:46:01]MH_I2C_Read... [19:46:01]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [19:46:01]RAPDU: 90 00 [19:46:01]wFMCommunicate OK [19:46:01]wFMCommunicate request_size=255 [19:46:01]MH_SAM_APDU [19:46:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 79 98 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EF 02 00 35 04 06 00 88 [19:46:01]Write to MH i2c: E2 02 01 E5 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 79 98 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EF 02 00 35 04 06 00 88 00 00 4A [19:46:01]Write i2c OK [19:46:01]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [19:46:02]RAPDU: 90 00 [19:46:02]wFMCommunicate OK [19:46:02]wFMCommunicate request_size=10 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 0D 02 02 05 6A 5C B9 4A 25 [19:46:02]Write to MH i2c: E2 0D 00 E6 0F 80 0D 02 02 05 00 6A 5C B9 4A 25 00 00 67 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [19:46:02]RAPDU: 90 00 [19:46:02]wFMCommunicate OK [19:46:02]wFMCommunicate request_size=4 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 0D 03 02 [19:46:02]Write to MH i2c: E2 08 00 E7 0F 80 0D 03 02 00 00 00 00 71 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 0B 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 0B 00 E7 0F 00 4F 02 2E CF 55 B5 39 AC 90 00 AF [19:46:02]RAPDU: 4F 02 2E CF 55 B5 39 AC 90 00 [19:46:02]wFMCommunicate OK [19:46:02]SAM_PROTO_SignData done [19:46:02]FM_MakeSignedData done [19:46:02]CreateOFDProtocolMessage [19:46:02]wFMCommunicate request_size=4 [19:46:02]MH_SAM_APDU [19:46:02]CAPDU: 80 11 00 00 [19:46:02]Write to MH i2c: E2 08 00 E8 0F 80 11 00 00 00 00 00 00 71 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:02]Read from MH i2c: E2 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 17 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: E2 17 00 E8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [19:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:46:02]wFMCommunicate OK [19:46:02]CreateOFDProtocolMessage done [19:46:02]OFDSenderStorePacket 192412 [19:46:02]StoreOFDPacket docnum=192412 [19:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 DC 07 01 D8 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 79 98 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EF 02 00 35 04 06 00 88 6A 5C B9 4A 25 4F 02 2E CF 55 B5 39 AC [19:46:02]CheckFolder [19:46:02]dirname=/storage/ofd_packets [19:46:02]CheckFolder done [19:46:02]ProducePacketName [19:46:02]name=ofd_packets/00192412 [19:46:02]NVStorageSaveData ofd_packets/00192412 [19:46:02]File name is /storage/ofd_packets/00192412 [19:46:02]Write 301 bytes [19:46:02]NVStorageSaveData done [19:46:02]OFDSenderStorePacket done [19:46:02]KKMCreateOFDPacket done [19:46:02]NVStorageSaveData kkm_last_timestamp [19:46:02]File name is /storage/kkm_last_timestamp [19:46:02]Write 4 bytes [19:46:02]NVStorageSaveData done [19:46:02]ExternCall_PrintAddStr [19:46:02]wPrintStart [19:46:02]Write to MH i2c: 01 00 00 E9 0F F8 [19:46:02]Write i2c OK [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 07 00 [19:46:02]MH_I2C_Read... [19:46:02]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 FF 0F 0D [19:46:02]RasterBufferAndPrint [19:46:02]line Счет N : (1)31729 [19:46:02]line ИНН: 02508201610067 [19:46:02]line Контрольно-Кассовый Чек [19:46:02]line ПРОДАЖА [19:46:02]line ТРК (МРК, ГНК) : 21 [19:46:02]line Товар: 2710124130 [19:46:02]line Аи-92-К-5 [19:46:02]line 2.990 * 66.90 [19:46:02]line = 200.03 [19:46:02]line НДС 12% НСП 1% [19:46:02]line > о реализуемом товаре [19:46:02]line ОКРУГЛЕНИЕ: -0.03 [19:46:02]line ИТОГО: 200.00 [19:46:02]line Внесено: 200.00 [19:46:02]line СДАЧА: 0.00 [19:46:02]line НСП 1% : 1.77 [19:46:02]line НДС 12% : 21.24 [19:46:02]line Наличными: 200.00 [19:46:02]line Безнал.: 0.00 [19:46:02]line Место: АЗС № 170 "Партнер Нефть" [19:46:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:46:02]line СНО: Общий режим [19:46:02]line Чек 444 27.10.2024 19:46 [19:46:02]line Смена: 542 ФФД: 1.0 [19:46:02]line ЗНМ: 0300000110 [19:46:02]line РНМ: 0000000000091776 [19:46:02]line Версия ККМ: 001 [19:46:02]line ФМ: 0000000000871754 [19:46:02]line ФД: 192412 [19:46:02]line ФПД: 149990403557925 [19:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192412&fm=149990403557925&tin=02508201610067®Number=0000000000091776&sum=20000 [19:46:02]OFD Sender: Processing packet 192412 [packets to send 75, broken 74] [19:46:02]ProducePacketName [19:46:02]name=ofd_packets/00192412 [19:46:02]OFD Sender: To server: pG, [19:46:02]CommunicateWithHost lk.salyk.kg:30040 [19:46:02]ConnectInit lk.salyk.kg [19:46:02]written 0, free lines is 4095 [19:46:02]Connected sock=10 [19:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 DC 07 01 D8 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 79 98 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EF 02 00 35 04 06 00 88 6A 5C B9 4A 25 4F 02 2E CF 55 B5 39 AC [19:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A F2 47 00 E7 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EF 02 00 F4 03 04 00 40 3D 1E 67 B6 04 01 00 00 9D F5 9D FD 06 9A 34 51 [19:46:02]CommunicateWithHost err = 0 [19:46:02]CheckOFDResponse [19:46:02]1017 (14) - 77093643461234 [19:46:02]1041 (16) - 0000000000871754 [19:46:02]1040 (4) - 192412 [19:46:02]1012 (4) - 27.10.2024 13:16 [19:46:02]1206 (1) - 0 [19:46:02]OFD Sender: Remove packet 192412 [19:46:02]ProducePacketName [19:46:02]name=ofd_packets/00192412 [19:46:02]NVStorageDeleteData [19:46:03]Write to MH i2c: 01 00 00 14 10 24 [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 A3 0C DA [19:46:03]RasterBufferAndPrint [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]line [19:46:03]written 0, free lines is 3239 [19:46:03]MH_Cut [19:46:03]Write to MH i2c: D1 01 00 1B 10 01 FD [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 01 00 [19:46:03]MH_I2C_Read... [19:46:03]Read from MH i2c: D1 01 00 1B 10 00 FC [19:46:03]Write to MH i2c: 01 00 00 1C 10 2C [19:46:03]Write i2c OK [19:46:03]MH_I2C_Read... [19:46:03]OFD Sender: No OFD packet to send [19:46:03]*** Cut start [19:46:03]*** Partial cut [19:46:03]*** CUTSNS_PIN = 1 [19:46:04]*** CUTSNS_PIN = 0 [19:46:04]*** Brake cut motor [19:46:04]Read from MH i2c: 01 [19:46:04]MH_I2C_Read... [19:46:04]*** Stop cut motor [19:46:04]*** Cut end [19:46:04]Read from MH i2c: 01 07 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [19:46:04]process_action close_receipt done [19:46:04]requested_data is exist [19:46:04]produce_requested_data [19:46:04]requested_item fm.sn is exist - process it [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 11 00 00 [19:46:04]Write to MH i2c: E2 08 00 1D 10 80 11 00 00 00 00 00 00 A7 [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:04]Read from MH i2c: E2 17 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 17 00 1D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [19:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:46:04]wFMCommunicate OK [19:46:04]requested_item fd.num is exist - process it [19:46:04]SAM_PROTO_GetFieldsCounters [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 00 00 [19:46:04]Write to MH i2c: E2 08 00 1E 10 80 13 00 00 00 00 00 00 AA [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 62 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 62 00 1E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [19:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetFieldsCounters done [19:46:04]requested_item shift.num is exist - process it [19:46:04]requested_item shift.opened is exist - process it [19:46:04]req_shift_opened [19:46:04]FM_GetShiftState [19:46:04]SAM_PROTO_GetShiftState [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 01 00 [19:46:04]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [19:46:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetShiftState done [19:46:04]FM_GetShiftState done [19:46:04]req_shift_opened done [19:46:04]requested_item shift.open_date is exist - process it [19:46:04]req_shift_open_date [19:46:04]req_shift_open_date done [19:46:04]produce_requested_data done [19:46:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192412,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:46:04]process_action_free close_receipt [19:46:04]json_value_free [19:46:04]json_value_free done [19:46:04]process_json_proto returns [19:46:04]Send response to host [19:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192412,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:46:04]free response buf [19:46:04]execute_script done [19:46:04]execute_script returns [19:46:04]free content buf [19:46:04]Sock 7.Close socket [19:46:04]Sock 7.Thread stoped [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]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:26]accept exits with 9 [19:48:26]New connection [19:48:26]New thread 3066563940 created [19:48:26]Thread 3066707300 joined [19:48:26]Waiting for new connection... [19:48:26] Sock 9.Parse request [19:48:26]Sock 9.Check first char [19:48:26]Sock 9.First char is OK [19:48:26]request: POST /json_proto HTTP/1.0 [19:48:26]Method: POST [19:48:26]URL: /json_proto [19:48:26]Method is POST - this is cgi request [19:48:26]url: /json_proto [19:48:26]query_string will be loaded in cgi processing [19:48:26]execute_cgi json_proto POST (null) [19:48:26]execute_cgi path=json_proto method=POST [19:48:26]POST find Content-Length [19:48:26]Host: 172.17.63.131:8080 [19:48:26]Content-Length: 676 [19:48:26]Content-Type: application/json [19:48:26] [19:48:26]POST finish read [19:48:26]Found Content-Length = 676 [19:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:26]execute_script... [19:48: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)31730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:26]POST & json_proto [19:48:26]process_json_proto [19:48:26]json parsed OK: [19:48:26]protocol is kg_v1.0 [19:48:26]action value=close_receipt [19:48:26]process_action close_receipt [19:48:26]cmd_close_receipt [19:48:26]MH_GetDate [19:48:26]Write to MH i2c: F0 00 00 20 10 1F [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: F0 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: F0 09 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: F0 09 00 20 10 00 0B 99 1E 67 22 05 6E 64 4A [19:48:26]GetLastDocTimeStamp 1730058361 [19:48:26]current date 1730058507 [19:48:26]FM_GetShiftState [19:48:26]SAM_PROTO_GetShiftState [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 13 01 00 [19:48:26]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0E 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [19:48:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_GetShiftState done [19:48:26]FM_GetShiftState done [19:48:26]opened in 1729989159 [19:48:26]opened+sec_in_day 1730075559 [19:48:26]quantity*price = 50041 [19:48:26]sum+1 = 50042 [19:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 445 27.10.2024 19:48 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192413 ФПД: 170355269190858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192413&fm=170355269190858&tin=02508201610067®Number=0000000000091776&sum=50000 [19:48:27]StoreToDocumentArchive [19:48:27]shift 542 fd 192413 [19:48:27]save to /storage/0542/doc_00192413 [19:48:27]save last doc name /storage/0542/doc_00192413 to /storage/kkm_last_doc_name [19:48:27]save OK [19:48:27]Clear old archive folders... [19:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:27]tlvbuf is 01A02A80 [19:48:27]SAM_PROTO_ClearQueue [19:48:27]wFMCommunicate request_size=4 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 09 00 00 [19:48:27]Write to MH i2c: E2 08 00 2E 10 80 09 00 00 00 00 00 00 B0 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [19:48:27]RAPDU: 90 00 [19:48:27]wFMCommunicate OK [19:48:27]SAM_PROTO_ClearQueue done [19:48:27]KKMCreateOFDPacket [19:48:27]OFDProtocolAddRootSTLVToBuf [19:48:27]FM_MakeSignedData [19:48:27]FM_MakeSignedData [19:48:27]SAM_PROTO_SignData [19:48:27]wFMCommunicate request_size=4 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 0D 01 02 [19:48:27]Write to MH i2c: E2 08 00 2F 10 80 0D 01 02 00 00 00 00 B8 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [19:48:27]RAPDU: 90 00 [19:48:27]wFMCommunicate OK [19:48:27]wFMCommunicate request_size=255 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 0B 99 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EF 02 00 35 04 06 00 9A [19:48:27]Write to MH i2c: E2 02 01 30 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 0B 99 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EF 02 00 35 04 06 00 9A 00 00 7B [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [19:48:27]RAPDU: 90 00 [19:48:27]wFMCommunicate OK [19:48:27]wFMCommunicate request_size=10 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 0D 02 02 05 EF ED 4E 44 CA [19:48:27]Write to MH i2c: E2 0D 00 31 10 80 0D 02 02 05 00 EF ED 4E 44 CA 00 00 FD [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [19:48:27]RAPDU: 90 00 [19:48:27]wFMCommunicate OK [19:48:27]wFMCommunicate request_size=4 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 0D 03 02 [19:48:27]Write to MH i2c: E2 08 00 32 10 80 0D 03 02 00 00 00 00 BD [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:28]Read from MH i2c: E2 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 0B 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 0B 00 32 10 00 F1 41 4A 85 A1 24 1E 68 90 00 0A [19:48:28]RAPDU: F1 41 4A 85 A1 24 1E 68 90 00 [19:48:28]wFMCommunicate OK [19:48:28]SAM_PROTO_SignData done [19:48:28]FM_MakeSignedData done [19:48:28]CreateOFDProtocolMessage [19:48:28]wFMCommunicate request_size=4 [19:48:28]MH_SAM_APDU [19:48:28]CAPDU: 80 11 00 00 [19:48:28]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:28]Read from MH i2c: E2 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 17 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [19:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:48:28]wFMCommunicate OK [19:48:28]CreateOFDProtocolMessage done [19:48:28]OFDSenderStorePacket 192413 [19:48:28]StoreOFDPacket docnum=192413 [19:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 70 07 01 9C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 0B 99 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EF 02 00 35 04 06 00 9A EF ED 4E 44 CA F1 41 4A 85 A1 24 1E 68 [19:48:28]CheckFolder [19:48:28]dirname=/storage/ofd_packets [19:48:28]CheckFolder done [19:48:28]ProducePacketName [19:48:28]name=ofd_packets/00192413 [19:48:28]NVStorageSaveData ofd_packets/00192413 [19:48:28]File name is /storage/ofd_packets/00192413 [19:48:28]Write 301 bytes [19:48:28]NVStorageSaveData done [19:48:28]OFDSenderStorePacket done [19:48:28]KKMCreateOFDPacket done [19:48:28]NVStorageSaveData kkm_last_timestamp [19:48:28]File name is /storage/kkm_last_timestamp [19:48:28]Write 4 bytes [19:48:28]NVStorageSaveData done [19:48:28]ExternCall_PrintAddStr [19:48:28]wPrintStart [19:48:28]Write to MH i2c: 01 00 00 34 10 44 [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [19:48:28]RasterBufferAndPrint [19:48:28]line Счет N : (1)31730 [19:48:28]line ИНН: 02508201610067 [19:48:28]line Контрольно-Кассовый Чек [19:48:28]line ПРОДАЖА [19:48:28]line ТРК (МРК, ГНК) : 21 [19:48:28]line Товар: 2710124130 [19:48:28]line Аи-92-К-5 [19:48:28]line 7.480 * 66.90 [19:48:28]line = 500.41 [19:48:28]line НДС 12% НСП 1% [19:48:28]line > о реализуемом товаре [19:48:28]line ОКРУГЛЕНИЕ: -0.41 [19:48:28]line ИТОГО: 500.00 [19:48:28]line Внесено: 500.00 [19:48:28]line СДАЧА: 0.00 [19:48:28]line НСП 1% : 4.43 [19:48:28]line НДС 12% : 53.14 [19:48:28]line Наличными: 500.00 [19:48:28]line Безнал.: 0.00 [19:48:28]line Место: АЗС № 170 "Партнер Нефть" [19:48:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:48:28]line СНО: Общий режим [19:48:28]line Чек 445 27.10.2024 19:48 [19:48:28]line Смена: 542 ФФД: 1.0 [19:48:28]line ЗНМ: 0300000110 [19:48:28]line РНМ: 0000000000091776 [19:48:28]line Версия ККМ: 001 [19:48:28]line ФМ: 0000000000871754 [19:48:28]line ФД: 192413 [19:48:28]line ФПД: 170355269190858 [19:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192413&fm=170355269190858&tin=02508201610067®Number=0000000000091776&sum=50000 [19:48:28]OFD Sender: Processing packet 192413 [packets to send 75, broken 74] [19:48:28]ProducePacketName [19:48:28]name=ofd_packets/00192413 [19:48:28]OFD Sender: To server: pG, [19:48:28]CommunicateWithHost lk.salyk.kg:30040 [19:48:28]ConnectInit lk.salyk.kg [19:48:28]written 0, free lines is 4095 [19:48:28]Connected sock=10 [19:48:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 70 07 01 9C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 0B 99 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EF 02 00 35 04 06 00 9A EF ED 4E 44 CA F1 41 4A 85 A1 24 1E 68 [19:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 70 47 00 53 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EF 02 00 F4 03 04 00 D2 3D 1E 67 B6 04 01 00 00 B4 37 B0 76 D1 AA CE 0B [19:48:28]CommunicateWithHost err = 0 [19:48:28]CheckOFDResponse [19:48:28]1017 (14) - 77093643461234 [19:48:28]1041 (16) - 0000000000871754 [19:48:28]1040 (4) - 192413 [19:48:28]1012 (4) - 27.10.2024 13:19 [19:48:28]1206 (1) - 0 [19:48:28]OFD Sender: Remove packet 192413 [19:48:28]ProducePacketName [19:48:28]name=ofd_packets/00192413 [19:48:28]NVStorageDeleteData [19:48:28]Write to MH i2c: 01 00 00 5F 10 6F [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 A9 0C 2B [19:48:28]RasterBufferAndPrint [19:48:28]line [19:48:28]line [19:48:28]line [19:48:28]line [19:48:28]line [19:48:28]written 0, free lines is 3246 [19:48:28]MH_Cut [19:48:28]Write to MH i2c: D1 01 00 66 10 01 48 [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: D1 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: D1 01 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: D1 01 00 66 10 00 47 [19:48:28]Write to MH i2c: 01 00 00 67 10 77 [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:29]OFD Sender: No OFD packet to send [19:48:29]*** Cut start [19:48:29]*** Partial cut [19:48:29]*** CUTSNS_PIN = 1 [19:48:29]*** CUTSNS_PIN = 0 [19:48:30]*** Brake cut motor [19:48:30]Read from MH i2c: 01 [19:48:30]MH_I2C_Read... [19:48:30]*** Stop cut motor [19:48:30]*** Cut end [19:48:30]Read from MH i2c: 01 07 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: 01 07 00 67 10 00 00 00 00 00 FF 0F 8C [19:48:30]process_action close_receipt done [19:48:30]requested_data is exist [19:48:30]produce_requested_data [19:48:30]requested_item fm.sn is exist - process it [19:48:30]wFMCommunicate request_size=4 [19:48:30]MH_SAM_APDU [19:48:30]CAPDU: 80 11 00 00 [19:48:30]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:30]Read from MH i2c: E2 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 17 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [19:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:48:30]wFMCommunicate OK [19:48:30]requested_item fd.num is exist - process it [19:48:30]SAM_PROTO_GetFieldsCounters [19:48:30]wFMCommunicate request_size=4 [19:48:30]MH_SAM_APDU [19:48:30]CAPDU: 80 13 00 00 [19:48:30]Write to MH i2c: E2 08 00 69 10 80 13 00 00 00 00 00 00 F5 [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:30]Read from MH i2c: E2 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 62 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 62 00 69 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:30]wFMCommunicate OK [19:48:30]SAM_PROTO_GetFieldsCounters done [19:48:30]requested_item shift.num is exist - process it [19:48:30]requested_item shift.opened is exist - process it [19:48:30]req_shift_opened [19:48:30]FM_GetShiftState [19:48:30]SAM_PROTO_GetShiftState [19:48:30]wFMCommunicate request_size=4 [19:48:30]MH_SAM_APDU [19:48:30]CAPDU: 80 13 01 00 [19:48:30]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:30]Read from MH i2c: E2 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 0E 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [19:48:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:48:30]wFMCommunicate OK [19:48:30]SAM_PROTO_GetShiftState done [19:48:30]FM_GetShiftState done [19:48:30]req_shift_opened done [19:48:30]requested_item shift.open_date is exist - process it [19:48:30]req_shift_open_date [19:48:30]req_shift_open_date done [19:48:30]produce_requested_data done [19:48:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192413,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:48:30]process_action_free close_receipt [19:48:30]json_value_free [19:48:30]json_value_free done [19:48:30]process_json_proto returns [19:48:30]Send response to host [19:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192413,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:48:30]free response buf [19:48:30]execute_script done [19:48:30]execute_script returns [19:48:30]free content buf [19:48:30]Sock 9.Close socket [19:48:30]Sock 9.Thread stoped [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:30]accept exits with 7 [19:54:30]New connection [19:54:30]New thread 3066707300 created [19:54:30]Thread 3066563940 joined [19:54:30]Waiting for new connection... [19:54:30] Sock 7.Parse request [19:54:30]Sock 7.Check first char [19:54:30]Sock 7.First char is OK [19:54:30]request: POST /json_proto HTTP/1.0 [19:54:30]Method: POST [19:54:30]URL: /json_proto [19:54:30]Method is POST - this is cgi request [19:54:30]url: /json_proto [19:54:30]query_string will be loaded in cgi processing [19:54:30]execute_cgi json_proto POST (null) [19:54:30]execute_cgi path=json_proto method=POST [19:54:30]POST find Content-Length [19:54:30]Host: 172.17.63.131:8080 [19:54:30]Content-Length: 678 [19:54:30]Content-Type: application/json [19:54:30] [19:54:30]POST finish read [19:54:30]Found Content-Length = 678 [19:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31731", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:30]execute_script... [19:54: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)31731", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:30]POST & json_proto [19:54:30]process_json_proto [19:54:30]json parsed OK: [19:54:30]protocol is kg_v1.0 [19:54:30]action value=close_receipt [19:54:30]process_action close_receipt [19:54:30]cmd_close_receipt [19:54:30]MH_GetDate [19:54:30]Write to MH i2c: F0 00 00 6B 10 6A [19:54:30]Write i2c OK [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 09 00 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 09 00 6B 10 00 77 9A 1E 67 22 05 6E 64 02 [19:54:30]GetLastDocTimeStamp 1730058507 [19:54:30]current date 1730058871 [19:54:30]FM_GetShiftState [19:54:30]SAM_PROTO_GetShiftState [19:54:30]wFMCommunicate request_size=4 [19:54:30]MH_SAM_APDU [19:54:30]CAPDU: 80 13 01 00 [19:54:30]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [19:54:30]Write i2c OK [19:54:30]MH_I2C_Read... [19:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:30]Read from MH i2c: E2 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: E2 0E 00 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3A [19:54:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:54:30]wFMCommunicate OK [19:54:30]SAM_PROTO_GetShiftState done [19:54:30]FM_GetShiftState done [19:54:30]opened in 1729989159 [19:54:30]opened+sec_in_day 1730075559 [19:54:30]quantity*price = 100050 [19:54:30]sum+1 = 100052 [19:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 446 27.10.2024 19:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192414 ФПД: 281007681988645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195431&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192414&fm=281007681988645&tin=02508201610067®Number=0000000000091776&sum=100000 [19:54:31]StoreToDocumentArchive [19:54:31]shift 542 fd 192414 [19:54:31]save to /storage/0542/doc_00192414 [19:54:31]save last doc name /storage/0542/doc_00192414 to /storage/kkm_last_doc_name [19:54:31]save OK [19:54:31]Clear old archive folders... [19:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:31]tlvbuf is 01A05BE0 [19:54:31]SAM_PROTO_ClearQueue [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 09 00 00 [19:54:31]Write to MH i2c: E2 08 00 79 10 80 09 00 00 00 00 00 00 FB [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:31]Read from MH i2c: E2 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [19:54:31]RAPDU: 90 00 [19:54:31]wFMCommunicate OK [19:54:31]SAM_PROTO_ClearQueue done [19:54:31]KKMCreateOFDPacket [19:54:31]OFDProtocolAddRootSTLVToBuf [19:54:31]FM_MakeSignedData [19:54:31]FM_MakeSignedData [19:54:31]SAM_PROTO_SignData [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 0D 01 02 [19:54:31]Write to MH i2c: E2 08 00 7A 10 80 0D 01 02 00 00 00 00 03 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:31]Read from MH i2c: E2 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [19:54:31]RAPDU: 90 00 [19:54:31]wFMCommunicate OK [19:54:31]wFMCommunicate request_size=255 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 01 00 00 F4 03 04 00 77 9A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EF 02 00 35 04 06 00 FF 93 33 10 [19:54:31]Write to MH i2c: E2 02 01 7B 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 77 9A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EF 02 00 35 04 06 00 FF 93 33 10 00 00 66 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=7 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 02 02 02 68 25 [19:54:32]Write to MH i2c: E2 0A 00 7C 10 80 0D 02 02 02 00 68 25 00 00 97 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 03 02 [19:54:32]Write to MH i2c: E2 08 00 7D 10 80 0D 03 02 00 00 00 00 08 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 0B 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 0B 00 7D 10 00 0B A0 53 ED B0 17 7C E8 90 00 1F [19:54:32]RAPDU: 0B A0 53 ED B0 17 7C E8 90 00 [19:54:32]wFMCommunicate OK [19:54:32]SAM_PROTO_SignData done [19:54:32]FM_MakeSignedData done [19:54:32]CreateOFDProtocolMessage [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 11 00 00 [19:54:32]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 17 00 [19:54:32]MH_I2C_Read... [19:54:32]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 37 35 34 90 00 5B [19:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:32]wFMCommunicate OK [19:54:32]CreateOFDProtocolMessage done [19:54:32]OFDSenderStorePacket 192414 [19:54:32]StoreOFDPacket docnum=192414 [19:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FA 02 04 01 01 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 BE 01 00 00 F4 03 04 00 77 9A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EF 02 00 35 04 06 00 FF 93 33 10 68 25 0B A0 53 ED B0 17 7C E8 [19:54:32]CheckFolder [19:54:32]dirname=/storage/ofd_packets [19:54:32]CheckFolder done [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00192414 [19:54:32]NVStorageSaveData ofd_packets/00192414 [19:54:32]File name is /storage/ofd_packets/00192414 [19:54:32]Write 298 bytes [19:54:32]NVStorageSaveData done [19:54:32]OFDSenderStorePacket done [19:54:32]KKMCreateOFDPacket done [19:54:32]NVStorageSaveData kkm_last_timestamp [19:54:32]File name is /storage/kkm_last_timestamp [19:54:32]Write 4 bytes [19:54:32]NVStorageSaveData done [19:54:32]ExternCall_PrintAddStr [19:54:32]wPrintStart [19:54:32]Write to MH i2c: 01 00 00 7F 10 8F [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [19:54:32]RasterBufferAndPrint [19:54:32]line Счет N : (1)31731 [19:54:32]line ИНН: 02508201610067 [19:54:32]line Контрольно-Кассовый Чек [19:54:32]line ПРОДАЖА [19:54:32]line ТРК (МРК, ГНК) : 11 [19:54:32]line Товар: 2710194210 [19:54:32]line ДТ-К-5 [19:54:32]line 13.130 * 76.20 [19:54:32]line = 1000.51 [19:54:32]line НДС 12% НСП 1% [19:54:32]line > о реализуемом товаре [19:54:32]line ОКРУГЛЕНИЕ: -0.51 [19:54:32]line ИТОГО: 1000.00 [19:54:32]line Внесено: 1000.00 [19:54:32]line СДАЧА: 0.00 [19:54:32]line НСП 1% : 8.85 [19:54:32]line НДС 12% : 106.25 [19:54:32]line Наличными: 1000.00 [19:54:32]line Безнал.: 0.00 [19:54:32]line Место: АЗС № 170 "Партнер Нефть" [19:54:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:54:32]line СНО: Общий режим [19:54:32]line Чек 446 27.10.2024 19:54 [19:54:32]line Смена: 542 ФФД: 1.0 [19:54:32]line ЗНМ: 0300000110 [19:54:32]line РНМ: 0000000000091776 [19:54:32]line Версия ККМ: 001 [19:54:32]line ФМ: 0000000000871754 [19:54:32]line ФД: 192414 [19:54:32]line ФПД: 281007681988645 [19:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195431&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192414&fm=281007681988645&tin=02508201610067®Number=0000000000091776&sum=100000 [19:54:32]written 0, free lines is 4095 [19:54:32]OFD Sender: Processing packet 192414 [packets to send 75, broken 74] [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00192414 [19:54:32]OFD Sender: To server: pG, [19:54:32]CommunicateWithHost lk.salyk.kg:30040 [19:54:32]ConnectInit lk.salyk.kg [19:54:32]Connected sock=10 [19:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 FA 02 04 01 01 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 BE 01 00 00 F4 03 04 00 77 9A 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EF 02 00 35 04 06 00 FF 93 33 10 68 25 0B A0 53 ED B0 17 7C E8 [19:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CE 47 47 00 60 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EF 02 00 F4 03 04 00 3E 3F 1E 67 B6 04 01 00 00 84 42 77 C2 A2 46 37 80 [19:54:32]CommunicateWithHost err = 0 [19:54:32]CheckOFDResponse [19:54:32]1017 (14) - 77093643461234 [19:54:32]1041 (16) - 0000000000871754 [19:54:32]1040 (4) - 192414 [19:54:32]1012 (4) - 27.10.2024 13:25 [19:54:32]1206 (1) - 0 [19:54:32]OFD Sender: Remove packet 192414 [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00192414 [19:54:32]NVStorageDeleteData [19:54:32]Write to MH i2c: 01 00 00 AA 10 BA [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 B3 0C 80 [19:54:32]RasterBufferAndPrint [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]written 0, free lines is 3256 [19:54:32]MH_Cut [19:54:32]Write to MH i2c: D1 01 00 B1 10 01 93 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 01 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 01 00 B1 10 00 92 [19:54:32]Write to MH i2c: 01 00 00 B2 10 C2 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:33]OFD Sender: No OFD packet to send [19:54:33]*** Cut start [19:54:33]*** Partial cut [19:54:33]*** CUTSNS_PIN = 1 [19:54:33]*** CUTSNS_PIN = 0 [19:54:34]*** Brake cut motor [19:54:34]Read from MH i2c: 01 [19:54:34]MH_I2C_Read... [19:54:34]*** Stop cut motor [19:54:34]*** Cut end [19:54:34]Read from MH i2c: 01 07 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 B2 10 00 00 00 00 00 FF 0F D7 [19:54:34]process_action close_receipt done [19:54:34]requested_data is exist [19:54:34]produce_requested_data [19:54:34]requested_item fm.sn is exist - process it [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 11 00 00 [19:54:34]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 17 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [19:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:34]wFMCommunicate OK [19:54:34]requested_item fd.num is exist - process it [19:54:34]SAM_PROTO_GetFieldsCounters [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 13 00 00 [19:54:34]Write to MH i2c: E2 08 00 B4 10 80 13 00 00 00 00 00 00 40 [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 62 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 62 00 B4 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:34]wFMCommunicate OK [19:54:34]SAM_PROTO_GetFieldsCounters done [19:54:34]requested_item shift.num is exist - process it [19:54:34]requested_item shift.opened is exist - process it [19:54:34]req_shift_opened [19:54:34]FM_GetShiftState [19:54:34]SAM_PROTO_GetShiftState [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 13 01 00 [19:54:34]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 0E 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [19:54:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [19:54:34]wFMCommunicate OK [19:54:34]SAM_PROTO_GetShiftState done [19:54:34]FM_GetShiftState done [19:54:34]req_shift_opened done [19:54:34]requested_item shift.open_date is exist - process it [19:54:34]req_shift_open_date [19:54:34]req_shift_open_date done [19:54:34]produce_requested_data done [19:54:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192414,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [19:54:34]process_action_free close_receipt [19:54:34]json_value_free [19:54:34]json_value_free done [19:54:34]process_json_proto returns [19:54:34]Send response to host [19:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192414,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [19:54:34]free response buf [19:54:34]execute_script done [19:54:34]execute_script returns [19:54:34]free content buf [19:54:34]Sock 7.Close socket [19:54:34]Sock 7.Thread stoped [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:07]accept exits with 9 [20:09:07]New connection [20:09:07]New thread 3066563940 created [20:09:07]Thread 3066707300 joined [20:09:07]Waiting for new connection... [20:09:07] Sock 9.Parse request [20:09:07]Sock 9.Check first char [20:09:07]Sock 9.First char is OK [20:09:07]request: POST /json_proto HTTP/1.0 [20:09:07]Method: POST [20:09:07]URL: /json_proto [20:09:07]Method is POST - this is cgi request [20:09:07]url: /json_proto [20:09:07]query_string will be loaded in cgi processing [20:09:07]execute_cgi json_proto POST (null) [20:09:07]execute_cgi path=json_proto method=POST [20:09:07]POST find Content-Length [20:09:07]Host: 172.17.63.131:8080 [20:09:07]Content-Length: 678 [20:09:07]Content-Type: application/json [20:09:07] [20:09:07]POST finish read [20:09:07]Found Content-Length = 678 [20:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31732", "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" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:07]execute_script... [20:09:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31732", "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" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:07]POST & json_proto [20:09:07]process_json_proto [20:09:07]json parsed OK: [20:09:07]protocol is kg_v1.0 [20:09:07]action value=close_receipt [20:09:07]process_action close_receipt [20:09:07]cmd_close_receipt [20:09:07]MH_GetDate [20:09:07]Write to MH i2c: F0 00 00 B6 10 B5 [20:09:07]Write i2c OK [20:09:07]MH_I2C_Read... [20:09:07]Read from MH i2c: F0 [20:09:07]MH_I2C_Read... [20:09:07]Read from MH i2c: F0 09 00 [20:09:07]MH_I2C_Read... [20:09:07]Read from MH i2c: F0 09 00 B6 10 00 E4 9D 1E 67 22 05 6E 64 BD [20:09:07]GetLastDocTimeStamp 1730058871 [20:09:07]current date 1730059748 [20:09:07]FM_GetShiftState [20:09:07]SAM_PROTO_GetShiftState [20:09:07]wFMCommunicate request_size=4 [20:09:07]MH_SAM_APDU [20:09:07]CAPDU: 80 13 01 00 [20:09:07]Write to MH i2c: E2 08 00 B7 10 80 13 01 00 00 00 00 00 44 [20:09:07]Write i2c OK [20:09:07]MH_I2C_Read... [20:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:07]Read from MH i2c: E2 [20:09:07]MH_I2C_Read... [20:09:07]Read from MH i2c: E2 0E 00 [20:09:07]MH_I2C_Read... [20:09:07]Read from MH i2c: E2 0E 00 B7 10 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 85 [20:09:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:09:07]wFMCommunicate OK [20:09:07]SAM_PROTO_GetShiftState done [20:09:07]FM_GetShiftState done [20:09:07]opened in 1729989159 [20:09:07]opened+sec_in_day 1730075559 [20:09:07]quantity*price = 350062 [20:09:07]sum+1 = 350064 [20:09:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 447 27.10.2024 20:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192415 ФПД: 35824268396150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192415&fm=35824268396150&tin=02508201610067®Number=0000000000091776&sum=350000 [20:09:08]StoreToDocumentArchive [20:09:08]shift 542 fd 192415 [20:09:08]save to /storage/0542/doc_00192415 [20:09:08]save last doc name /storage/0542/doc_00192415 to /storage/kkm_last_doc_name [20:09:08]save OK [20:09:08]Clear old archive folders... [20:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:09:08]tlvbuf is 0196A6F0 [20:09:08]SAM_PROTO_ClearQueue [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 09 00 00 [20:09:08]Write to MH i2c: E2 08 00 C4 10 80 09 00 00 00 00 00 00 46 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [20:09:08]RAPDU: 90 00 [20:09:08]wFMCommunicate OK [20:09:08]SAM_PROTO_ClearQueue done [20:09:08]KKMCreateOFDPacket [20:09:08]OFDProtocolAddRootSTLVToBuf [20:09:08]FM_MakeSignedData [20:09:08]FM_MakeSignedData [20:09:08]SAM_PROTO_SignData [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 0D 01 02 [20:09:08]Write to MH i2c: E2 08 00 C5 10 80 0D 01 02 00 00 00 00 4E [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:08]Read from MH i2c: E2 03 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [20:09:08]RAPDU: 90 00 [20:09:08]wFMCommunicate OK [20:09:08]wFMCommunicate request_size=255 [20:09:08]MH_SAM_APDU [20:09: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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 E4 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EF 02 00 35 04 06 00 20 94 FC CA [20:09:08]Write to MH i2c: E2 02 01 C6 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 E4 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EF 02 00 35 04 06 00 20 94 FC CA 00 00 79 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [20:09:08]RAPDU: 90 00 [20:09:08]wFMCommunicate OK [20:09:08]wFMCommunicate request_size=7 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 0D 02 02 02 C6 76 [20:09:08]Write to MH i2c: E2 0A 00 C7 10 80 0D 02 02 02 00 C6 76 00 00 91 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [20:09:08]RAPDU: 90 00 [20:09:08]wFMCommunicate OK [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 0D 03 02 [20:09:08]Write to MH i2c: E2 08 00 C8 10 80 0D 03 02 00 00 00 00 53 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 0B 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 0B 00 C8 10 00 68 BF 8A 0E D4 CC 24 3C 90 00 13 [20:09:08]RAPDU: 68 BF 8A 0E D4 CC 24 3C 90 00 [20:09:08]wFMCommunicate OK [20:09:08]SAM_PROTO_SignData done [20:09:08]FM_MakeSignedData done [20:09:08]CreateOFDProtocolMessage [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 11 00 00 [20:09:08]Write to MH i2c: E2 08 00 C9 10 80 11 00 00 00 00 00 00 53 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 17 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 17 00 C9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [20:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:08]wFMCommunicate OK [20:09:08]CreateOFDProtocolMessage done [20:09:08]OFDSenderStorePacket 192415 [20:09:08]StoreOFDPacket docnum=192415 [20:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 BE 04 01 B3 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 E4 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EF 02 00 35 04 06 00 20 94 FC CA C6 76 68 BF 8A 0E D4 CC 24 3C [20:09:08]CheckFolder [20:09:08]dirname=/storage/ofd_packets [20:09:08]CheckFolder done [20:09:08]ProducePacketName [20:09:08]name=ofd_packets/00192415 [20:09:08]NVStorageSaveData ofd_packets/00192415 [20:09:08]File name is /storage/ofd_packets/00192415 [20:09:08]Write 298 bytes [20:09:08]NVStorageSaveData done [20:09:08]OFDSenderStorePacket done [20:09:08]KKMCreateOFDPacket done [20:09:08]NVStorageSaveData kkm_last_timestamp [20:09:08]File name is /storage/kkm_last_timestamp [20:09:09]Write 4 bytes [20:09:09]NVStorageSaveData done [20:09:09]ExternCall_PrintAddStr [20:09:09]wPrintStart [20:09:09]Write to MH i2c: 01 00 00 CA 10 DA [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 07 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 07 00 CA 10 00 00 00 00 00 FF 0F EF [20:09:09]RasterBufferAndPrint [20:09:09]line Счет N : (1)31732 [20:09:09]line ИНН: 02508201610067 [20:09:09]line Контрольно-Кассовый Чек [20:09:09]line ПРОДАЖА [20:09:09]line ТРК (МРК, ГНК) : 11 [20:09:09]line Товар: 2710194210 [20:09:09]line ДТ-К-5 [20:09:09]line 45.940 * 76.20 [20:09:09]line = 3500.63 [20:09:09]line НДС 12% НСП 1% [20:09:09]line > о реализуемом товаре [20:09:09]line ОКРУГЛЕНИЕ: -0.63 [20:09:09]line ИТОГО: 3500.00 [20:09:09]line Внесено: 3500.00 [20:09:09]line СДАЧА: 0.00 [20:09:09]line НСП 1% : 30.98 [20:09:09]line НДС 12% : 371.75 [20:09:09]line Наличными: 3500.00 [20:09:09]line Безнал.: 0.00 [20:09:09]line Место: АЗС № 170 "Партнер Нефть" [20:09:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:09:09]line СНО: Общий режим [20:09:09]line Чек 447 27.10.2024 20:09 [20:09:09]line Смена: 542 ФФД: 1.0 [20:09:09]line ЗНМ: 0300000110 [20:09:09]line РНМ: 0000000000091776 [20:09:09]line Версия ККМ: 001 [20:09:09]line ФМ: 0000000000871754 [20:09:09]line ФД: 192415 [20:09:09]line ФПД: 35824268396150 [20:09:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192415&fm=35824268396150&tin=02508201610067®Number=0000000000091776&sum=350000 [20:09:09]OFD Sender: Processing packet 192415 [packets to send 75, broken 74] [20:09:09]ProducePacketName [20:09:09]name=ofd_packets/00192415 [20:09:09]OFD Sender: To server: pG, [20:09:09]CommunicateWithHost lk.salyk.kg:30040 [20:09:09]ConnectInit lk.salyk.kg [20:09:09]written 0, free lines is 4095 [20:09:09]Connected sock=10 [20:09:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 BE 04 01 B3 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 E4 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EF 02 00 35 04 06 00 20 94 FC CA C6 76 68 BF 8A 0E D4 CC 24 3C [20:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 EE 47 00 6C 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EF 02 00 F4 03 04 00 AB 42 1E 67 B6 04 01 00 00 E0 6C 87 68 E2 6B CA F2 [20:09:09]CommunicateWithHost err = 0 [20:09:09]CheckOFDResponse [20:09:09]1017 (14) - 77093643461234 [20:09:09]1041 (16) - 0000000000871754 [20:09:09]1040 (4) - 192415 [20:09:09]1012 (4) - 27.10.2024 13:39 [20:09:09]1206 (1) - 0 [20:09:09]OFD Sender: Remove packet 192415 [20:09:09]ProducePacketName [20:09:09]name=ofd_packets/00192415 [20:09:09]NVStorageDeleteData [20:09:09]Write to MH i2c: 01 00 00 F5 10 05 [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 07 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: 01 07 00 F5 10 00 00 00 00 00 B5 0C CD [20:09:09]RasterBufferAndPrint [20:09:09]line [20:09:09]line [20:09:09]line [20:09:09]line [20:09:09]line [20:09:09]written 0, free lines is 3258 [20:09:09]MH_Cut [20:09:09]Write to MH i2c: D1 01 00 FC 10 01 DE [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: D1 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: D1 01 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: D1 01 00 FC 10 00 DD [20:09:09]Write to MH i2c: 01 00 00 FD 10 0D [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:10]OFD Sender: No OFD packet to send [20:09:10]*** Cut start [20:09:10]*** Partial cut [20:09:10]*** CUTSNS_PIN = 1 [20:09:10]*** CUTSNS_PIN = 0 [20:09:10]*** Brake cut motor [20:09:11]Read from MH i2c: 01 [20:09:11]MH_I2C_Read... [20:09:11]*** Stop cut motor [20:09:11]*** Cut end [20:09:11]Read from MH i2c: 01 07 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 FD 10 00 00 00 00 00 FF 0F 22 [20:09:11]process_action close_receipt done [20:09:11]requested_data is exist [20:09:11]produce_requested_data [20:09:11]requested_item fm.sn is exist - process it [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 11 00 00 [20:09:11]Write to MH i2c: E2 08 00 FE 10 80 11 00 00 00 00 00 00 88 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 FE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [20:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:11]wFMCommunicate OK [20:09:11]requested_item fd.num is exist - process it [20:09:11]SAM_PROTO_GetFieldsCounters [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 13 00 00 [20:09:11]Write to MH i2c: E2 08 00 FF 10 80 13 00 00 00 00 00 00 8B [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 62 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 62 00 FF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [20:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:11]wFMCommunicate OK [20:09:11]SAM_PROTO_GetFieldsCounters done [20:09:11]requested_item shift.num is exist - process it [20:09:11]requested_item shift.opened is exist - process it [20:09:11]req_shift_opened [20:09:11]FM_GetShiftState [20:09:11]SAM_PROTO_GetShiftState [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 13 01 00 [20:09:11]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0E 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [20:09:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:09:11]wFMCommunicate OK [20:09:11]SAM_PROTO_GetShiftState done [20:09:11]FM_GetShiftState done [20:09:11]req_shift_opened done [20:09:11]requested_item shift.open_date is exist - process it [20:09:11]req_shift_open_date [20:09:11]req_shift_open_date done [20:09:11]produce_requested_data done [20:09:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192415,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:09:11]process_action_free close_receipt [20:09:11]json_value_free [20:09:11]json_value_free done [20:09:11]process_json_proto returns [20:09:11]Send response to host [20:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192415,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:09:11]free response buf [20:09:11]execute_script done [20:09:11]execute_script returns [20:09:11]free content buf [20:09:11]Sock 9.Close socket [20:09:11]Sock 9.Thread stoped [20:09:15]OFD Sender: No OFD packet to send [20:09:18]accept exits with 7 [20:09:18]New connection [20:09:18]New thread 3066707300 created [20:09:18]Thread 3066563940 joined [20:09:18]Waiting for new connection... [20:09:18] Sock 7.Parse request [20:09:18]Sock 7.Check first char [20:09:18]Sock 7.First char is OK [20:09:18]request: POST /json_proto HTTP/1.0 [20:09:18]Method: POST [20:09:18]URL: /json_proto [20:09:18]Method is POST - this is cgi request [20:09:18]url: /json_proto [20:09:18]query_string will be loaded in cgi processing [20:09:18]execute_cgi json_proto POST (null) [20:09:18]execute_cgi path=json_proto method=POST [20:09:18]POST find Content-Length [20:09:18]Host: 172.17.63.131:8080 [20:09:18]Content-Length: 677 [20:09:18]Content-Type: application/json [20:09:18] [20:09:18]POST finish read [20:09:18]Found Content-Length = 677 [20:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:18]execute_script... [20:09: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)31733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:18]POST & json_proto [20:09:18]process_json_proto [20:09:18]json parsed OK: [20:09:18]protocol is kg_v1.0 [20:09:18]action value=close_receipt [20:09:18]process_action close_receipt [20:09:18]cmd_close_receipt [20:09:18]MH_GetDate [20:09:18]Write to MH i2c: F0 00 00 01 11 01 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: F0 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: F0 09 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: F0 09 00 01 11 00 F0 9D 1E 67 22 05 6E 64 15 [20:09:18]GetLastDocTimeStamp 1730059748 [20:09:18]current date 1730059760 [20:09:18]FM_GetShiftState [20:09:18]SAM_PROTO_GetShiftState [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 13 01 00 [20:09:18]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0E 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [20:09:18]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_GetShiftState done [20:09:18]FM_GetShiftState done [20:09:18]opened in 1729989159 [20:09:18]opened+sec_in_day 1730075559 [20:09:18]quantity*price = 70044 [20:09:18]sum+1 = 70045 [20:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 448 27.10.2024 20:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192416 ФПД: 163360158783928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192416&fm=163360158783928&tin=02508201610067®Number=0000000000091776&sum=70000 [20:09:20]StoreToDocumentArchive [20:09:20]shift 542 fd 192416 [20:09:20]save to /storage/0542/doc_00192416 [20:09:20]save last doc name /storage/0542/doc_00192416 to /storage/kkm_last_doc_name [20:09:20]save OK [20:09:20]Clear old archive folders... [20:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:20]tlvbuf is 019B32A0 [20:09:20]SAM_PROTO_ClearQueue [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 09 00 00 [20:09:20]Write to MH i2c: E2 08 00 0F 11 80 09 00 00 00 00 00 00 92 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [20:09:20]RAPDU: 90 00 [20:09:20]wFMCommunicate OK [20:09:20]SAM_PROTO_ClearQueue done [20:09:20]KKMCreateOFDPacket [20:09:20]OFDProtocolAddRootSTLVToBuf [20:09:20]FM_MakeSignedData [20:09:20]FM_MakeSignedData [20:09:20]SAM_PROTO_SignData [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 0D 01 02 [20:09:20]Write to MH i2c: E2 08 00 10 11 80 0D 01 02 00 00 00 00 9A [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [20:09:20]RAPDU: 90 00 [20:09:20]wFMCommunicate OK [20:09:20]wFMCommunicate request_size=255 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 F0 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EF 02 00 35 04 06 00 94 [20:09:20]Write to MH i2c: E2 02 01 11 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 F0 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EF 02 00 35 04 06 00 94 00 00 56 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]OFD Sender: No OFD packet to send [20:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [20:09:20]RAPDU: 90 00 [20:09:20]wFMCommunicate OK [20:09:20]wFMCommunicate request_size=10 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 0D 02 02 05 93 40 3C 19 B8 [20:09:20]Write to MH i2c: E2 0D 00 12 11 80 0D 02 02 05 00 93 40 3C 19 B8 00 00 87 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [20:09:20]RAPDU: 90 00 [20:09:20]wFMCommunicate OK [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 0D 03 02 [20:09:20]Write to MH i2c: E2 08 00 13 11 80 0D 03 02 00 00 00 00 9F [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0B 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0B 00 13 11 00 3A 15 27 B0 6C 53 51 9F 90 00 75 [20:09:20]RAPDU: 3A 15 27 B0 6C 53 51 9F 90 00 [20:09:20]wFMCommunicate OK [20:09:20]SAM_PROTO_SignData done [20:09:20]FM_MakeSignedData done [20:09:20]CreateOFDProtocolMessage [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 11 00 00 [20:09:20]Write to MH i2c: E2 08 00 14 11 80 11 00 00 00 00 00 00 9F [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 17 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 17 00 14 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [20:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:20]wFMCommunicate OK [20:09:20]CreateOFDProtocolMessage done [20:09:20]OFDSenderStorePacket 192416 [20:09:20]StoreOFDPacket docnum=192416 [20:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 88 07 01 B4 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 F0 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EF 02 00 35 04 06 00 94 93 40 3C 19 B8 3A 15 27 B0 6C 53 51 9F [20:09:20]CheckFolder [20:09:20]dirname=/storage/ofd_packets [20:09:20]CheckFolder done [20:09:20]ProducePacketName [20:09:20]name=ofd_packets/00192416 [20:09:20]NVStorageSaveData ofd_packets/00192416 [20:09:20]File name is /storage/ofd_packets/00192416 [20:09:20]Write 301 bytes [20:09:20]NVStorageSaveData done [20:09:20]OFDSenderStorePacket done [20:09:20]KKMCreateOFDPacket done [20:09:20]NVStorageSaveData kkm_last_timestamp [20:09:20]File name is /storage/kkm_last_timestamp [20:09:20]Write 4 bytes [20:09:20]NVStorageSaveData done [20:09:20]ExternCall_PrintAddStr [20:09:20]wPrintStart [20:09:20]Write to MH i2c: 01 00 00 15 11 26 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: 01 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: 01 07 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 FF 0F 3B [20:09:20]RasterBufferAndPrint [20:09:20]line Счет N : (1)31733 [20:09:20]line ИНН: 02508201610067 [20:09:20]line Контрольно-Кассовый Чек [20:09:20]line ПРОДАЖА [20:09:20]line ТРК (МРК, ГНК) : 21 [20:09:20]line Товар: 2710124130 [20:09:20]line Аи-92-К-5 [20:09:20]line 10.470 * 66.90 [20:09:20]line = 700.44 [20:09:20]line НДС 12% НСП 1% [20:09:20]line > о реализуемом товаре [20:09:20]line ОКРУГЛЕНИЕ: -0.44 [20:09:20]line ИТОГО: 700.00 [20:09:20]line Внесено: 700.00 [20:09:20]line СДАЧА: 0.00 [20:09:20]line НСП 1% : 6.20 [20:09:20]line НДС 12% : 74.38 [20:09:20]line Наличными: 700.00 [20:09:20]line Безнал.: 0.00 [20:09:20]line Место: АЗС № 170 "Партнер Нефть" [20:09:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:09:20]line СНО: Общий режим [20:09:20]line Чек 448 27.10.2024 20:09 [20:09:20]line Смена: 542 ФФД: 1.0 [20:09:20]line ЗНМ: 0300000110 [20:09:20]line РНМ: 0000000000091776 [20:09:20]line Версия ККМ: 001 [20:09:20]line ФМ: 0000000000871754 [20:09:20]line ФД: 192416 [20:09:20]line ФПД: 163360158783928 [20:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200920&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192416&fm=163360158783928&tin=02508201610067®Number=0000000000091776&sum=70000 [20:09:20]written 0, free lines is 4095 [20:09:20]OFD Sender: Processing packet 192416 [packets to send 75, broken 74] [20:09:20]ProducePacketName [20:09:20]name=ofd_packets/00192416 [20:09:20]OFD Sender: To server: pG, [20:09:20]CommunicateWithHost lk.salyk.kg:30040 [20:09:20]ConnectInit lk.salyk.kg [20:09:20]Connected sock=9 [20:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 88 07 01 B4 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 F0 9D 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EF 02 00 35 04 06 00 94 93 40 3C 19 B8 3A 15 27 B0 6C 53 51 9F [20:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC 95 47 00 63 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EF 02 00 F4 03 04 00 B6 42 1E 67 B6 04 01 00 00 34 A5 CB 68 8A 01 8D E6 [20:09:20]CommunicateWithHost err = 0 [20:09:20]CheckOFDResponse [20:09:20]1017 (14) - 77093643461234 [20:09:20]1041 (16) - 0000000000871754 [20:09:20]1040 (4) - 192416 [20:09:20]1012 (4) - 27.10.2024 13:40 [20:09:20]1206 (1) - 0 [20:09:20]OFD Sender: Remove packet 192416 [20:09:20]ProducePacketName [20:09:20]name=ofd_packets/00192416 [20:09:20]NVStorageDeleteData [20:09:21]Write to MH i2c: 01 00 00 40 11 51 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: 01 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: 01 07 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 BB 0C 1F [20:09:21]RasterBufferAndPrint [20:09:21]line [20:09:21]line [20:09:21]line [20:09:21]line [20:09:21]line [20:09:21]written 0, free lines is 3269 [20:09:21]MH_Cut [20:09:21]Write to MH i2c: D1 01 00 47 11 01 2A [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: D1 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: D1 01 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: D1 01 00 47 11 00 29 [20:09:21]Write to MH i2c: 01 00 00 48 11 59 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]OFD Sender: No OFD packet to send [20:09:21]*** Cut start [20:09:21]*** Partial cut [20:09:21]*** CUTSNS_PIN = 1 [20:09:21]*** CUTSNS_PIN = 0 [20:09:22]*** Brake cut motor [20:09:22]Read from MH i2c: 01 [20:09:22]MH_I2C_Read... [20:09:22]*** Stop cut motor [20:09:22]*** Cut end [20:09:22]Read from MH i2c: 01 07 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [20:09:22]process_action close_receipt done [20:09:22]requested_data is exist [20:09:22]produce_requested_data [20:09:22]requested_item fm.sn is exist - process it [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 11 00 00 [20:09:22]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 17 00 [20:09:22]MH_I2C_Read... [20:09:22]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 37 35 34 90 00 27 [20:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:22]wFMCommunicate OK [20:09:22]requested_item fd.num is exist - process it [20:09:22]SAM_PROTO_GetFieldsCounters [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 13 00 00 [20:09:22]Write to MH i2c: E2 08 00 4A 11 80 13 00 00 00 00 00 00 D7 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 62 00 [20:09:22]MH_I2C_Read... [20:09:22]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [20: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:22]wFMCommunicate OK [20:09:22]SAM_PROTO_GetFieldsCounters done [20:09:22]requested_item shift.num is exist - process it [20:09:22]requested_item shift.opened is exist - process it [20:09:22]req_shift_opened [20:09:22]FM_GetShiftState [20:09:22]SAM_PROTO_GetShiftState [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 13 01 00 [20:09:22]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0E 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1A [20:09:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:09:22]wFMCommunicate OK [20:09:22]SAM_PROTO_GetShiftState done [20:09:22]FM_GetShiftState done [20:09:22]req_shift_opened done [20:09:22]requested_item shift.open_date is exist - process it [20:09:22]req_shift_open_date [20:09:22]req_shift_open_date done [20:09:22]produce_requested_data done [20:09:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192416,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:09:22]process_action_free close_receipt [20:09:22]json_value_free [20:09:22]json_value_free done [20:09:22]process_json_proto returns [20:09:22]Send response to host [20:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192416,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:09:22]free response buf [20:09:22]execute_script done [20:09:22]execute_script returns [20:09:22]free content buf [20:09:22]Sock 7.Close socket [20:09:22]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:14:59]accept exits with 10 [20:14:59]New connection [20:14:59]New thread 3066563940 created [20:14:59]Thread 3066707300 joined [20:14:59]Waiting for new connection... [20:14:59] Sock 10.Parse request [20:14:59]Sock 10.Check first char [20:14:59]Sock 10.First char is OK [20:14:59]request: POST /json_proto HTTP/1.0 [20:14:59]Method: POST [20:14:59]URL: /json_proto [20:14:59]Method is POST - this is cgi request [20:14:59]url: /json_proto [20:14:59]query_string will be loaded in cgi processing [20:14:59]execute_cgi json_proto POST (null) [20:14:59]execute_cgi path=json_proto method=POST [20:14:59]POST find Content-Length [20:14:59]Host: 172.17.63.131:8080 [20:14:59]Content-Length: 681 [20:14:59]Content-Type: application/json [20:14:59] [20:14:59]POST finish read [20:14:59]Found Content-Length = 681 [20:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:59]execute_script... [20:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:59]POST & json_proto [20:14:59]process_json_proto [20:14:59]json parsed OK: [20:14:59]protocol is kg_v1.0 [20:14:59]action value=close_receipt [20:14:59]process_action close_receipt [20:14:59]cmd_close_receipt [20:14:59]MH_GetDate [20:14:59]Write to MH i2c: F0 00 00 4C 11 4C [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 09 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 09 00 4C 11 00 45 9F 1E 67 22 05 6E 64 B7 [20:14:59]GetLastDocTimeStamp 1730059760 [20:14:59]current date 1730060101 [20:14:59]FM_GetShiftState [20:14:59]SAM_PROTO_GetShiftState [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 13 01 00 [20:14:59]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1C [20:14:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_GetShiftState done [20:14:59]FM_GetShiftState done [20:14:59]opened in 1729989159 [20:14:59]opened+sec_in_day 1730075559 [20:14:59]quantity*price = 100015 [20:14:59]sum+1 = 100017 [20:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 449 27.10.2024 20:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192417 ФПД: 160736054090779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201501&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192417&fm=160736054090779&tin=02508201610067®Number=0000000000091776&sum=100000 [20:15:01]StoreToDocumentArchive [20:15:01]shift 542 fd 192417 [20:15:01]save to /storage/0542/doc_00192417 [20:15:01]save last doc name /storage/0542/doc_00192417 to /storage/kkm_last_doc_name [20:15:01]save OK [20:15:01]Clear old archive folders... [20:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:01]tlvbuf is 0194B0E0 [20:15:01]SAM_PROTO_ClearQueue [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 09 00 00 [20:15:01]Write to MH i2c: E2 08 00 5A 11 80 09 00 00 00 00 00 00 DD [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]SAM_PROTO_ClearQueue done [20:15:01]KKMCreateOFDPacket [20:15:01]OFDProtocolAddRootSTLVToBuf [20:15:01]FM_MakeSignedData [20:15:01]FM_MakeSignedData [20:15:01]SAM_PROTO_SignData [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 01 02 [20:15:01]Write to MH i2c: E2 08 00 5B 11 80 0D 01 02 00 00 00 00 E5 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]wFMCommunicate request_size=255 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 45 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EF 02 00 35 04 06 00 92 [20:15:01]Write to MH i2c: E2 02 01 5C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 45 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EF 02 00 35 04 06 00 92 00 00 E2 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]wFMCommunicate request_size=10 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 02 02 05 30 47 68 1C 1B [20:15:01]Write to MH i2c: E2 0D 00 5D 11 80 0D 02 02 05 00 30 47 68 1C 1B 00 00 08 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 03 02 [20:15:01]Write to MH i2c: E2 08 00 5E 11 80 0D 03 02 00 00 00 00 EA [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0B 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0B 00 5E 11 00 3E 78 33 C0 D2 AC 6D 18 90 00 97 [20:15:01]RAPDU: 3E 78 33 C0 D2 AC 6D 18 90 00 [20:15:01]wFMCommunicate OK [20:15:01]SAM_PROTO_SignData done [20:15:01]FM_MakeSignedData done [20:15:01]CreateOFDProtocolMessage [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 11 00 00 [20:15:01]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 17 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [20:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:15:01]wFMCommunicate OK [20:15:01]CreateOFDProtocolMessage done [20:15:01]OFDSenderStorePacket 192417 [20:15:01]StoreOFDPacket docnum=192417 [20:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 65 07 01 47 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 45 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EF 02 00 35 04 06 00 92 30 47 68 1C 1B 3E 78 33 C0 D2 AC 6D 18 [20:15:01]CheckFolder [20:15:01]dirname=/storage/ofd_packets [20:15:01]CheckFolder done [20:15:01]ProducePacketName [20:15:01]name=ofd_packets/00192417 [20:15:01]NVStorageSaveData ofd_packets/00192417 [20:15:01]File name is /storage/ofd_packets/00192417 [20:15:01]Write 301 bytes [20:15:01]NVStorageSaveData done [20:15:01]OFDSenderStorePacket done [20:15:01]KKMCreateOFDPacket done [20:15:01]NVStorageSaveData kkm_last_timestamp [20:15:01]File name is /storage/kkm_last_timestamp [20:15:01]Write 4 bytes [20:15:01]NVStorageSaveData done [20:15:01]ExternCall_PrintAddStr [20:15:01]wPrintStart [20:15:01]Write to MH i2c: 01 00 00 60 11 71 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [20:15:01]RasterBufferAndPrint [20:15:01]line Счет N : (1)31734 [20:15:01]line ИНН: 02508201610067 [20:15:01]line Контрольно-Кассовый Чек [20:15:01]line ПРОДАЖА [20:15:01]line ТРК (МРК, ГНК) : 12 [20:15:01]line Товар: 2710124130 [20:15:01]line Аи-92-К-5 [20:15:01]line 14.950 * 66.90 [20:15:01]line = 1000.16 [20:15:01]line НДС 12% НСП 1% [20:15:01]line > о реализуемом товаре [20:15:01]line ОКРУГЛЕНИЕ: -0.16 [20:15:01]line ИТОГО: 1000.00 [20:15:01]line Внесено: 1000.00 [20:15:01]line СДАЧА: 0.00 [20:15:01]line НСП 1% : 8.85 [20:15:01]line НДС 12% : 106.21 [20:15:01]line Наличными: 1000.00 [20:15:01]line Безнал.: 0.00 [20:15:01]line Место: АЗС № 170 "Партнер Нефть" [20:15:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:15:01]line СНО: Общий режим [20:15:01]line Чек 449 27.10.2024 20:15 [20:15:01]line Смена: 542 ФФД: 1.0 [20:15:01]line ЗНМ: 0300000110 [20:15:01]line РНМ: 0000000000091776 [20:15:01]line Версия ККМ: 001 [20:15:01]line ФМ: 0000000000871754 [20:15:01]line ФД: 192417 [20:15:01]line ФПД: 160736054090779 [20:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201501&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192417&fm=160736054090779&tin=02508201610067®Number=0000000000091776&sum=100000 [20:15:01]OFD Sender: Processing packet 192417 [packets to send 75, broken 74] [20:15:01]ProducePacketName [20:15:01]name=ofd_packets/00192417 [20:15:01]OFD Sender: To server: pG, [20:15:01]CommunicateWithHost lk.salyk.kg:30040 [20:15:01]ConnectInit lk.salyk.kg [20:15:01]written 0, free lines is 4095 [20:15:02]Connected sock=9 [20:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 65 07 01 47 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 45 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EF 02 00 35 04 06 00 92 30 47 68 1C 1B 3E 78 33 C0 D2 AC 6D 18 [20:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 12 47 00 A2 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EF 02 00 F4 03 04 00 0B 44 1E 67 B6 04 01 00 00 05 24 BB BD A3 53 76 EB [20:15:02]CommunicateWithHost err = 0 [20:15:02]CheckOFDResponse [20:15:02]1017 (14) - 77093643461234 [20:15:02]1041 (16) - 0000000000871754 [20:15:02]1040 (4) - 192417 [20:15:02]1012 (4) - 27.10.2024 13:45 [20:15:02]1206 (1) - 0 [20:15:02]OFD Sender: Remove packet 192417 [20:15:02]ProducePacketName [20:15:02]name=ofd_packets/00192417 [20:15:02]NVStorageDeleteData [20:15:02]Write to MH i2c: 01 00 00 8B 11 9C [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 B8 0C 67 [20:15:02]RasterBufferAndPrint [20:15:02]line [20:15:02]line [20:15:02]line [20:15:02]line [20:15:02]line [20:15:02]written 0, free lines is 3264 [20:15:02]MH_Cut [20:15:02]Write to MH i2c: D1 01 00 92 11 01 75 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: D1 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: D1 01 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: D1 01 00 92 11 00 74 [20:15:02]Write to MH i2c: 01 00 00 93 11 A4 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]OFD Sender: No OFD packet to send [20:15:03]*** Cut start [20:15:03]*** Partial cut [20:15:03]*** CUTSNS_PIN = 1 [20:15:03]*** CUTSNS_PIN = 0 [20:15:03]*** Brake cut motor [20:15:03]Read from MH i2c: 01 [20:15:03]MH_I2C_Read... [20:15:03]*** Stop cut motor [20:15:03]*** Cut end [20:15:03]Read from MH i2c: 01 07 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 FF 0F B9 [20:15:03]process_action close_receipt done [20:15:03]requested_data is exist [20:15:03]produce_requested_data [20:15:03]requested_item fm.sn is exist - process it [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 11 00 00 [20:15:03]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [20:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:15:03]wFMCommunicate OK [20:15:03]requested_item fd.num is exist - process it [20:15:03]SAM_PROTO_GetFieldsCounters [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 13 00 00 [20:15:03]Write to MH i2c: E2 08 00 95 11 80 13 00 00 00 00 00 00 22 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 62 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 62 00 95 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [20:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:04]wFMCommunicate OK [20:15:04]SAM_PROTO_GetFieldsCounters done [20:15:04]requested_item shift.num is exist - process it [20:15:04]requested_item shift.opened is exist - process it [20:15:04]req_shift_opened [20:15:04]FM_GetShiftState [20:15:04]SAM_PROTO_GetShiftState [20:15:04]wFMCommunicate request_size=4 [20:15:04]MH_SAM_APDU [20:15:04]CAPDU: 80 13 01 00 [20:15:04]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 0E 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 65 [20:15:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:15:04]wFMCommunicate OK [20:15:04]SAM_PROTO_GetShiftState done [20:15:04]FM_GetShiftState done [20:15:04]req_shift_opened done [20:15:04]requested_item shift.open_date is exist - process it [20:15:04]req_shift_open_date [20:15:04]req_shift_open_date done [20:15:04]produce_requested_data done [20:15:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192417,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:15:04]process_action_free close_receipt [20:15:04]json_value_free [20:15:04]json_value_free done [20:15:04]process_json_proto returns [20:15:04]Send response to host [20:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192417,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:15:04]free response buf [20:15:04]execute_script done [20:15:04]execute_script returns [20:15:04]free content buf [20:15:04]Sock 10.Close socket [20:15:04]Sock 10.Thread stoped [20:15:07]OFD Sender: No OFD packet to send [20:15:11]accept exits with 7 [20:15:11]New connection [20:15:11]New thread 3066707300 created [20:15:11]Thread 3066563940 joined [20:15:11]Waiting for new connection... [20:15:11] Sock 7.Parse request [20:15:11]Sock 7.Check first char [20:15:11]Sock 7.First char is OK [20:15:11]request: POST /json_proto HTTP/1.0 [20:15:11]Method: POST [20:15:11]URL: /json_proto [20:15:11]Method is POST - this is cgi request [20:15:11]url: /json_proto [20:15:11]query_string will be loaded in cgi processing [20:15:11]execute_cgi json_proto POST (null) [20:15:11]execute_cgi path=json_proto method=POST [20:15:11]POST find Content-Length [20:15:11]Host: 172.17.63.131:8080 [20:15:11]Content-Length: 676 [20:15:11]Content-Type: application/json [20:15:11] [20:15:11]POST finish read [20:15:11]Found Content-Length = 676 [20:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:11]execute_script... [20:15: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)31735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:11]POST & json_proto [20:15:11]process_json_proto [20:15:11]json parsed OK: [20:15:11]protocol is kg_v1.0 [20:15:11]action value=close_receipt [20:15:11]process_action close_receipt [20:15:11]cmd_close_receipt [20:15:11]MH_GetDate [20:15:11]Write to MH i2c: F0 00 00 97 11 97 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 09 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 09 00 97 11 00 50 9F 1E 67 22 05 6E 64 0D [20:15:11]GetLastDocTimeStamp 1730060101 [20:15:11]current date 1730060112 [20:15:11]FM_GetShiftState [20:15:11]SAM_PROTO_GetShiftState [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 13 01 00 [20:15:11]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 67 [20:15:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:15:11]wFMCommunicate OK [20:15:11]SAM_PROTO_GetShiftState done [20:15:11]FM_GetShiftState done [20:15:11]opened in 1729989159 [20:15:11]opened+sec_in_day 1730075559 [20:15:11]quantity*price = 40006 [20:15:11]sum+1 = 40007 [20:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 450 27.10.2024 20:15 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192418 ФПД: 108321022466605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192418&fm=108321022466605&tin=02508201610067®Number=0000000000091776&sum=40000 [20:15:12]StoreToDocumentArchive [20:15:12]shift 542 fd 192418 [20:15:12]save to /storage/0542/doc_00192418 [20:15:12]save last doc name /storage/0542/doc_00192418 to /storage/kkm_last_doc_name [20:15:12]save OK [20:15:12]Clear old archive folders... [20:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:12]tlvbuf is 019D7F00 [20:15:12]SAM_PROTO_ClearQueue [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 09 00 00 [20:15:12]Write to MH i2c: E2 08 00 A5 11 80 09 00 00 00 00 00 00 28 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_ClearQueue done [20:15:12]KKMCreateOFDPacket [20:15:12]OFDProtocolAddRootSTLVToBuf [20:15:12]FM_MakeSignedData [20:15:12]FM_MakeSignedData [20:15:12]SAM_PROTO_SignData [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 01 02 [20:15:12]Write to MH i2c: E2 08 00 A6 11 80 0D 01 02 00 00 00 00 30 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=255 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 50 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EF 02 00 35 04 06 00 62 [20:15:12]Write to MH i2c: E2 02 01 A7 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 50 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EF 02 00 35 04 06 00 62 00 00 DF [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=10 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 02 02 05 84 74 10 DA 2D [20:15:12]Write to MH i2c: E2 0D 00 A8 11 80 0D 02 02 05 00 84 74 10 DA 2D 00 00 4C [20:15:12]OFD Sender: No OFD packet to send [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 03 02 [20:15:12]Write to MH i2c: E2 08 00 A9 11 80 0D 03 02 00 00 00 00 35 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 A9 11 00 F4 19 C8 3E 47 B3 E5 86 90 00 AE [20:15:12]RAPDU: F4 19 C8 3E 47 B3 E5 86 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_SignData done [20:15:12]FM_MakeSignedData done [20:15:12]CreateOFDProtocolMessage [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 11 00 00 [20:15:12]Write to MH i2c: E2 08 00 AA 11 80 11 00 00 00 00 00 00 35 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 AA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [20:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:15:12]wFMCommunicate OK [20:15:12]CreateOFDProtocolMessage done [20:15:12]OFDSenderStorePacket 192418 [20:15:12]StoreOFDPacket docnum=192418 [20:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 A9 07 01 ED 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 50 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EF 02 00 35 04 06 00 62 84 74 10 DA 2D F4 19 C8 3E 47 B3 E5 86 [20:15:12]CheckFolder [20:15:12]dirname=/storage/ofd_packets [20:15:12]CheckFolder done [20:15:12]ProducePacketName [20:15:12]name=ofd_packets/00192418 [20:15:12]NVStorageSaveData ofd_packets/00192418 [20:15:12]File name is /storage/ofd_packets/00192418 [20:15:12]Write 301 bytes [20:15:12]NVStorageSaveData done [20:15:12]OFDSenderStorePacket done [20:15:12]KKMCreateOFDPacket done [20:15:12]NVStorageSaveData kkm_last_timestamp [20:15:12]File name is /storage/kkm_last_timestamp [20:15:12]Write 4 bytes [20:15:12]NVStorageSaveData done [20:15:12]ExternCall_PrintAddStr [20:15:12]wPrintStart [20:15:12]Write to MH i2c: 01 00 00 AB 11 BC [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 FF 0F D1 [20:15:12]RasterBufferAndPrint [20:15:12]line Счет N : (1)31735 [20:15:12]line ИНН: 02508201610067 [20:15:12]line Контрольно-Кассовый Чек [20:15:12]line ПРОДАЖА [20:15:12]line ТРК (МРК, ГНК) : 21 [20:15:12]line Товар: 2710124130 [20:15:12]line Аи-92-К-5 [20:15:12]line 5.980 * 66.90 [20:15:12]line = 400.06 [20:15:12]line НДС 12% НСП 1% [20:15:12]line > о реализуемом товаре [20:15:12]line ОКРУГЛЕНИЕ: -0.06 [20:15:12]line ИТОГО: 400.00 [20:15:12]line Внесено: 400.00 [20:15:12]line СДАЧА: 0.00 [20:15:12]line НСП 1% : 3.54 [20:15:12]line НДС 12% : 42.48 [20:15:12]line Наличными: 400.00 [20:15:12]line Безнал.: 0.00 [20:15:12]line Место: АЗС № 170 "Партнер Нефть" [20:15:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:15:12]line СНО: Общий режим [20:15:12]line Чек 450 27.10.2024 20:15 [20:15:12]line Смена: 542 ФФД: 1.0 [20:15:12]line ЗНМ: 0300000110 [20:15:12]line РНМ: 0000000000091776 [20:15:12]line Версия ККМ: 001 [20:15:12]line ФМ: 0000000000871754 [20:15:12]line ФД: 192418 [20:15:12]line ФПД: 108321022466605 [20:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192418&fm=108321022466605&tin=02508201610067®Number=0000000000091776&sum=40000 [20:15:13]written 0, free lines is 4095 [20:15:13]OFD Sender: Processing packet 192418 [packets to send 75, broken 74] [20:15:13]ProducePacketName [20:15:13]name=ofd_packets/00192418 [20:15:13]OFD Sender: To server: pG, [20:15:13]CommunicateWithHost lk.salyk.kg:30040 [20:15:13]ConnectInit lk.salyk.kg [20:15:13]Connected sock=10 [20:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 A9 07 01 ED 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 50 9F 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EF 02 00 35 04 06 00 62 84 74 10 DA 2D F4 19 C8 3E 47 B3 E5 86 [20:15:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 E2 47 00 4F 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EF 02 00 F4 03 04 00 17 44 1E 67 B6 04 01 00 00 50 F4 00 53 D7 7B 52 75 [20:15:13]CommunicateWithHost err = 0 [20:15:13]CheckOFDResponse [20:15:13]1017 (14) - 77093643461234 [20:15:13]1041 (16) - 0000000000871754 [20:15:13]1040 (4) - 192418 [20:15:13]1012 (4) - 27.10.2024 13:45 [20:15:13]1206 (1) - 0 [20:15:13]OFD Sender: Remove packet 192418 [20:15:13]ProducePacketName [20:15:13]name=ofd_packets/00192418 [20:15:13]NVStorageDeleteData [20:15:13]Write to MH i2c: 01 00 00 D6 11 E7 [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 D6 11 00 00 00 00 00 B2 0C AC [20:15:13]RasterBufferAndPrint [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]written 0, free lines is 3260 [20:15:13]MH_Cut [20:15:13]Write to MH i2c: D1 01 00 DD 11 01 C0 [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 DD 11 00 BF [20:15:13]Write to MH i2c: 01 00 00 DE 11 EF [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]OFD Sender: No OFD packet to send [20:15:14]*** Cut start [20:15:14]*** Partial cut [20:15:14]*** CUTSNS_PIN = 1 [20:15:14]*** CUTSNS_PIN = 0 [20:15:14]*** Brake cut motor [20:15:14]Read from MH i2c: 01 [20:15:14]MH_I2C_Read... [20:15:14]*** Stop cut motor [20:15:14]*** Cut end [20:15:14]Read from MH i2c: 01 07 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: 01 07 00 DE 11 00 00 00 00 00 FF 0F 04 [20:15:14]process_action close_receipt done [20:15:14]requested_data is exist [20:15:14]produce_requested_data [20:15:14]requested_item fm.sn is exist - process it [20:15:14]wFMCommunicate request_size=4 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 11 00 00 [20:15:14]Write to MH i2c: E2 08 00 DF 11 80 11 00 00 00 00 00 00 6A [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 DF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [20:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:15:15]wFMCommunicate OK [20:15:15]requested_item fd.num is exist - process it [20:15:15]SAM_PROTO_GetFieldsCounters [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 00 00 [20:15:15]Write to MH i2c: E2 08 00 E0 11 80 13 00 00 00 00 00 00 6D [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 62 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 62 00 E0 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [20:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetFieldsCounters done [20:15:15]requested_item shift.num is exist - process it [20:15:15]requested_item shift.opened is exist - process it [20:15:15]req_shift_opened [20:15:15]FM_GetShiftState [20:15:15]SAM_PROTO_GetShiftState [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 01 00 [20:15:15]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:15]Read from MH i2c: E2 0E 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B0 [20:15:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetShiftState done [20:15:15]FM_GetShiftState done [20:15:15]req_shift_opened done [20:15:15]requested_item shift.open_date is exist - process it [20:15:15]req_shift_open_date [20:15:15]req_shift_open_date done [20:15:15]produce_requested_data done [20:15:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192418,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:15:15]process_action_free close_receipt [20:15:15]json_value_free [20:15:15]json_value_free done [20:15:15]process_json_proto returns [20:15:15]Send response to host [20:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192418,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:15:15]free response buf [20:15:15]execute_script done [20:15:15]execute_script returns [20:15:15]free content buf [20:15:15]Sock 7.Close socket [20:15:15]Sock 7.Thread stoped [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:46]accept exits with 9 [20:23:46]New connection [20:23:46]New thread 3066563940 created [20:23:46]Thread 3066707300 joined [20:23:46]Waiting for new connection... [20:23:46] Sock 9.Parse request [20:23:46]Sock 9.Check first char [20:23:46]Sock 9.First char is OK [20:23:46]request: POST /json_proto HTTP/1.0 [20:23:46]Method: POST [20:23:46]URL: /json_proto [20:23:46]Method is POST - this is cgi request [20:23:46]url: /json_proto [20:23:46]query_string will be loaded in cgi processing [20:23:46]execute_cgi json_proto POST (null) [20:23:46]execute_cgi path=json_proto method=POST [20:23:46]POST find Content-Length [20:23:46]Host: 172.17.63.131:8080 [20:23:46]Content-Length: 681 [20:23:46]Content-Type: application/json [20:23:46] [20:23:46]POST finish read [20:23:46]Found Content-Length = 681 [20:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:46]execute_script... [20:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:46]POST & json_proto [20:23:46]process_json_proto [20:23:46]json parsed OK: [20:23:46]protocol is kg_v1.0 [20:23:46]action value=close_receipt [20:23:46]process_action close_receipt [20:23:46]cmd_close_receipt [20:23:46]MH_GetDate [20:23:46]Write to MH i2c: F0 00 00 E2 11 E2 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: F0 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: F0 09 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: F0 09 00 E2 11 00 54 A1 1E 67 22 05 6E 64 5E [20:23:46]GetLastDocTimeStamp 1730060112 [20:23:46]current date 1730060628 [20:23:46]FM_GetShiftState [20:23:46]SAM_PROTO_GetShiftState [20:23:46]wFMCommunicate request_size=4 [20:23:46]MH_SAM_APDU [20:23:46]CAPDU: 80 13 01 00 [20:23:46]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:47]Read from MH i2c: E2 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B2 [20:23:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:23:47]wFMCommunicate OK [20:23:47]SAM_PROTO_GetShiftState done [20:23:47]FM_GetShiftState done [20:23:47]opened in 1729989159 [20:23:47]opened+sec_in_day 1730075559 [20:23:47]quantity*price = 100015 [20:23:47]sum+1 = 100017 [20:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 451 27.10.2024 20:23 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192419 ФПД: 77722074579052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192419&fm=77722074579052&tin=02508201610067®Number=0000000000091776&sum=100000 [20:23:48]StoreToDocumentArchive [20:23:48]shift 542 fd 192419 [20:23:48]save to /storage/0542/doc_00192419 [20:23:48]save last doc name /storage/0542/doc_00192419 to /storage/kkm_last_doc_name [20:23:48]save OK [20:23:48]Clear old archive folders... [20:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:48]tlvbuf is 01A03760 [20:23:48]SAM_PROTO_ClearQueue [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 09 00 00 [20:23:48]Write to MH i2c: E2 08 00 F0 11 80 09 00 00 00 00 00 00 73 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_ClearQueue done [20:23:48]KKMCreateOFDPacket [20:23:48]OFDProtocolAddRootSTLVToBuf [20:23:48]FM_MakeSignedData [20:23:48]FM_MakeSignedData [20:23:48]SAM_PROTO_SignData [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 01 02 [20:23:48]Write to MH i2c: E2 08 00 F1 11 80 0D 01 02 00 00 00 00 7B [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=255 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 54 A1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EF 02 00 35 04 06 00 46 [20:23:48]Write to MH i2c: E2 02 01 F2 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 54 A1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EF 02 00 35 04 06 00 46 00 00 41 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=10 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 02 02 05 B0 14 A5 80 6C [20:23:48]Write to MH i2c: E2 0D 00 F3 11 80 0D 02 02 05 00 B0 14 A5 80 6C 00 00 DD [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 03 02 [20:23:48]Write to MH i2c: E2 08 00 F4 11 80 0D 03 02 00 00 00 00 80 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0B 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0B 00 F4 11 00 D1 D5 2A 27 40 AE FF F7 90 00 5C [20:23:48]RAPDU: D1 D5 2A 27 40 AE FF F7 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_SignData done [20:23:48]FM_MakeSignedData done [20:23:48]CreateOFDProtocolMessage [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 11 00 00 [20:23:48]Write to MH i2c: E2 08 00 F5 11 80 11 00 00 00 00 00 00 80 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 17 00 [20:23:48]MH_I2C_Read... [20:23:48]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 37 35 34 90 00 D3 [20:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:23:48]wFMCommunicate OK [20:23:48]CreateOFDProtocolMessage done [20:23:48]OFDSenderStorePacket 192419 [20:23:48]StoreOFDPacket docnum=192419 [20:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 01 07 01 5B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 54 A1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EF 02 00 35 04 06 00 46 B0 14 A5 80 6C D1 D5 2A 27 40 AE FF F7 [20:23:48]CheckFolder [20:23:48]dirname=/storage/ofd_packets [20:23:48]CheckFolder done [20:23:48]ProducePacketName [20:23:48]name=ofd_packets/00192419 [20:23:48]NVStorageSaveData ofd_packets/00192419 [20:23:48]File name is /storage/ofd_packets/00192419 [20:23:48]Write 301 bytes [20:23:48]NVStorageSaveData done [20:23:48]OFDSenderStorePacket done [20:23:48]KKMCreateOFDPacket done [20:23:48]NVStorageSaveData kkm_last_timestamp [20:23:48]File name is /storage/kkm_last_timestamp [20:23:48]Write 4 bytes [20:23:48]NVStorageSaveData done [20:23:48]ExternCall_PrintAddStr [20:23:48]wPrintStart [20:23:48]Write to MH i2c: 01 00 00 F6 11 07 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 FF 0F 1C [20:23:48]RasterBufferAndPrint [20:23:48]line Счет N : (1)31736 [20:23:48]line ИНН: 02508201610067 [20:23:48]line Контрольно-Кассовый Чек [20:23:48]line ПРОДАЖА [20:23:48]line ТРК (МРК, ГНК) : 12 [20:23:48]line Товар: 2710124130 [20:23:48]line Аи-92-К-5 [20:23:48]line 14.950 * 66.90 [20:23:48]line = 1000.16 [20:23:48]line НДС 12% НСП 1% [20:23:48]line > о реализуемом товаре [20:23:48]line ОКРУГЛЕНИЕ: -0.16 [20:23:48]line ИТОГО: 1000.00 [20:23:48]line Внесено: 1000.00 [20:23:48]line СДАЧА: 0.00 [20:23:48]line НСП 1% : 8.85 [20:23:48]line НДС 12% : 106.21 [20:23:48]line Наличными: 1000.00 [20:23:48]line Безнал.: 0.00 [20:23:48]line Место: АЗС № 170 "Партнер Нефть" [20:23:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:23:48]line СНО: Общий режим [20:23:48]line Чек 451 27.10.2024 20:23 [20:23:48]line Смена: 542 ФФД: 1.0 [20:23:48]line ЗНМ: 0300000110 [20:23:48]line РНМ: 0000000000091776 [20:23:48]line Версия ККМ: 001 [20:23:48]line ФМ: 0000000000871754 [20:23:48]line ФД: 192419 [20:23:48]line ФПД: 77722074579052 [20:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192419&fm=77722074579052&tin=02508201610067®Number=0000000000091776&sum=100000 [20:23:49]OFD Sender: Processing packet 192419 [packets to send 75, broken 74] [20:23:49]ProducePacketName [20:23:49]name=ofd_packets/00192419 [20:23:49]OFD Sender: To server: pG, [20:23:49]CommunicateWithHost lk.salyk.kg:30040 [20:23:49]ConnectInit lk.salyk.kg [20:23:49]written 0, free lines is 4095 [20:23:49]Connected sock=11 [20:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 01 07 01 5B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 54 A1 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EF 02 00 35 04 06 00 46 B0 14 A5 80 6C D1 D5 2A 27 40 AE FF F7 [20:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 69 47 00 91 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EF 02 00 F4 03 04 00 1B 46 1E 67 B6 04 01 00 00 7D 38 AB B2 79 B2 40 BC [20:23:49]CommunicateWithHost err = 0 [20:23:49]CheckOFDResponse [20:23:49]1017 (14) - 77093643461234 [20:23:49]1041 (16) - 0000000000871754 [20:23:49]1040 (4) - 192419 [20:23:49]1012 (4) - 27.10.2024 13:54 [20:23:49]1206 (1) - 0 [20:23:49]OFD Sender: Remove packet 192419 [20:23:49]ProducePacketName [20:23:49]name=ofd_packets/00192419 [20:23:49]NVStorageDeleteData [20:23:49]Write to MH i2c: 01 00 00 21 12 33 [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 07 00 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 07 00 21 12 00 00 00 00 00 AA 0C F0 [20:23:49]RasterBufferAndPrint [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]written 0, free lines is 3245 [20:23:49]MH_Cut [20:23:49]Write to MH i2c: D1 01 00 28 12 01 0C [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 01 00 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 01 00 28 12 00 0B [20:23:49]Write to MH i2c: 01 00 00 29 12 3B [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]OFD Sender: No OFD packet to send [20:23:50]*** Cut start [20:23:50]*** Partial cut [20:23:50]*** CUTSNS_PIN = 1 [20:23:50]*** CUTSNS_PIN = 0 [20:23:50]*** Brake cut motor [20:23:50]Read from MH i2c: 01 [20:23:51]MH_I2C_Read... [20:23:51]*** Stop cut motor [20:23:51]*** Cut end [20:23:51]Read from MH i2c: 01 07 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 FF 0F 50 [20:23:51]process_action close_receipt done [20:23:51]requested_data is exist [20:23:51]produce_requested_data [20:23:51]requested_item fm.sn is exist - process it [20:23:51]wFMCommunicate request_size=4 [20:23:51]MH_SAM_APDU [20:23:51]CAPDU: 80 11 00 00 [20:23:51]Write to MH i2c: E2 08 00 2A 12 80 11 00 00 00 00 00 00 B6 [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:51]Read from MH i2c: E2 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 17 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 17 00 2A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [20:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:23:51]wFMCommunicate OK [20:23:51]requested_item fd.num is exist - process it [20:23:51]SAM_PROTO_GetFieldsCounters [20:23:51]wFMCommunicate request_size=4 [20:23:51]MH_SAM_APDU [20:23:51]CAPDU: 80 13 00 00 [20:23:51]Write to MH i2c: E2 08 00 2B 12 80 13 00 00 00 00 00 00 B9 [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:51]Read from MH i2c: E2 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 62 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 62 00 2B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [20:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:51]wFMCommunicate OK [20:23:51]SAM_PROTO_GetFieldsCounters done [20:23:51]requested_item shift.num is exist - process it [20:23:51]requested_item shift.opened is exist - process it [20:23:51]req_shift_opened [20:23:51]FM_GetShiftState [20:23:51]SAM_PROTO_GetShiftState [20:23:51]wFMCommunicate request_size=4 [20:23:51]MH_SAM_APDU [20:23:51]CAPDU: 80 13 01 00 [20:23:51]Write to MH i2c: E2 08 00 2C 12 80 13 01 00 00 00 00 00 BB [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:51]Read from MH i2c: E2 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 0E 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 0E 00 2C 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FC [20:23:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:23:51]wFMCommunicate OK [20:23:51]SAM_PROTO_GetShiftState done [20:23:51]FM_GetShiftState done [20:23:51]req_shift_opened done [20:23:51]requested_item shift.open_date is exist - process it [20:23:51]req_shift_open_date [20:23:51]req_shift_open_date done [20:23:51]produce_requested_data done [20:23:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192419,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:23:51]process_action_free close_receipt [20:23:51]json_value_free [20:23:51]json_value_free done [20:23:51]process_json_proto returns [20:23:51]Send response to host [20:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192419,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:23:51]free response buf [20:23:51]execute_script done [20:23:51]execute_script returns [20:23:51]free content buf [20:23:51]Sock 9.Close socket [20:23:51]Sock 9.Thread stoped [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:47]accept exits with 7 [20:33:47]New connection [20:33:47]New thread 3066707300 created [20:33:47]Thread 3066563940 joined [20:33:47]Waiting for new connection... [20:33:47] Sock 7.Parse request [20:33:47]Sock 7.Check first char [20:33:47]Sock 7.First char is OK [20:33:47]request: POST /json_proto HTTP/1.0 [20:33:47]Method: POST [20:33:47]URL: /json_proto [20:33:47]Method is POST - this is cgi request [20:33:47]url: /json_proto [20:33:47]query_string will be loaded in cgi processing [20:33:47]execute_cgi json_proto POST (null) [20:33:47]execute_cgi path=json_proto method=POST [20:33:47]POST find Content-Length [20:33:47]Host: 172.17.63.131:8080 [20:33:47]Content-Length: 676 [20:33:47]Content-Type: application/json [20:33:47] [20:33:47]POST finish read [20:33:47]Found Content-Length = 676 [20:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:47]execute_script... [20:33: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)31737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:47]POST & json_proto [20:33:47]process_json_proto [20:33:47]json parsed OK: [20:33:47]protocol is kg_v1.0 [20:33:47]action value=close_receipt [20:33:47]process_action close_receipt [20:33:47]cmd_close_receipt [20:33:47]MH_GetDate [20:33:47]Write to MH i2c: F0 00 00 2D 12 2E [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: F0 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: F0 09 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: F0 09 00 2D 12 00 AD A3 1E 67 22 05 6E 64 05 [20:33:47]GetLastDocTimeStamp 1730060628 [20:33:47]current date 1730061229 [20:33:47]FM_GetShiftState [20:33:47]SAM_PROTO_GetShiftState [20:33:47]wFMCommunicate request_size=4 [20:33:47]MH_SAM_APDU [20:33:47]CAPDU: 80 13 01 00 [20:33:47]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:47]Read from MH i2c: E2 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 0E 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FE [20:33:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:33:47]wFMCommunicate OK [20:33:47]SAM_PROTO_GetShiftState done [20:33:47]FM_GetShiftState done [20:33:47]opened in 1729989159 [20:33:47]opened+sec_in_day 1730075559 [20:33:47]quantity*price = 30038 [20:33:47]sum+1 = 30039 [20:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 452 27.10.2024 20:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192420 ФПД: 88807623512237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192420&fm=88807623512237&tin=02508201610067®Number=0000000000091776&sum=30000 [20:33:48]StoreToDocumentArchive [20:33:48]shift 542 fd 192420 [20:33:48]save to /storage/0542/doc_00192420 [20:33:48]save last doc name /storage/0542/doc_00192420 to /storage/kkm_last_doc_name [20:33:48]save OK [20:33:48]Clear old archive folders... [20:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:48]tlvbuf is 019C1300 [20:33:48]SAM_PROTO_ClearQueue [20:33:48]wFMCommunicate request_size=4 [20:33:48]MH_SAM_APDU [20:33:48]CAPDU: 80 09 00 00 [20:33:48]Write to MH i2c: E2 08 00 3B 12 80 09 00 00 00 00 00 00 BF [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:48]Read from MH i2c: E2 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 03 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [20:33:48]RAPDU: 90 00 [20:33:48]wFMCommunicate OK [20:33:48]SAM_PROTO_ClearQueue done [20:33:48]KKMCreateOFDPacket [20:33:48]OFDProtocolAddRootSTLVToBuf [20:33:48]FM_MakeSignedData [20:33:48]FM_MakeSignedData [20:33:48]SAM_PROTO_SignData [20:33:48]wFMCommunicate request_size=4 [20:33:48]MH_SAM_APDU [20:33:48]CAPDU: 80 0D 01 02 [20:33:48]Write to MH i2c: E2 08 00 3C 12 80 0D 01 02 00 00 00 00 C7 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:48]Read from MH i2c: E2 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 03 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [20:33:48]RAPDU: 90 00 [20:33:48]wFMCommunicate OK [20:33:48]wFMCommunicate request_size=255 [20:33:48]MH_SAM_APDU [20:33:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 AD A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EF 02 00 35 04 06 00 50 [20:33:48]Write to MH i2c: E2 02 01 3D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 AD A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EF 02 00 35 04 06 00 50 00 00 EE [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=10 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 02 02 05 C5 22 DA 50 AD [20:33:49]Write to MH i2c: E2 0D 00 3E 12 80 0D 02 02 05 00 C5 22 DA 50 AD 00 00 92 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 03 02 [20:33:49]Write to MH i2c: E2 08 00 3F 12 80 0D 03 02 00 00 00 00 CC [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 3F 12 00 0A 7C A6 A8 78 01 41 C8 90 00 23 [20:33:49]RAPDU: 0A 7C A6 A8 78 01 41 C8 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_SignData done [20:33:49]FM_MakeSignedData done [20:33:49]CreateOFDProtocolMessage [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 11 00 00 [20:33:49]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [20:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:33:49]wFMCommunicate OK [20:33:49]CreateOFDProtocolMessage done [20:33:49]OFDSenderStorePacket 192420 [20:33:49]StoreOFDPacket docnum=192420 [20:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB EA 07 01 D1 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 AD A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EF 02 00 35 04 06 00 50 C5 22 DA 50 AD 0A 7C A6 A8 78 01 41 C8 [20:33:49]CheckFolder [20:33:49]dirname=/storage/ofd_packets [20:33:49]CheckFolder done [20:33:49]ProducePacketName [20:33:49]name=ofd_packets/00192420 [20:33:49]NVStorageSaveData ofd_packets/00192420 [20:33:49]File name is /storage/ofd_packets/00192420 [20:33:49]Write 301 bytes [20:33:49]NVStorageSaveData done [20:33:49]OFDSenderStorePacket done [20:33:49]KKMCreateOFDPacket done [20:33:49]NVStorageSaveData kkm_last_timestamp [20:33:49]File name is /storage/kkm_last_timestamp [20:33:49]Write 4 bytes [20:33:49]NVStorageSaveData done [20:33:49]ExternCall_PrintAddStr [20:33:49]wPrintStart [20:33:49]Write to MH i2c: 01 00 00 41 12 53 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [20:33:49]RasterBufferAndPrint [20:33:49]line Счет N : (1)31737 [20:33:49]line ИНН: 02508201610067 [20:33:49]line Контрольно-Кассовый Чек [20:33:49]line ПРОДАЖА [20:33:49]line ТРК (МРК, ГНК) : 21 [20:33:49]line Товар: 2710124130 [20:33:49]line Аи-92-К-5 [20:33:49]line 4.490 * 66.90 [20:33:49]line = 300.38 [20:33:49]line НДС 12% НСП 1% [20:33:49]line > о реализуемом товаре [20:33:49]line ОКРУГЛЕНИЕ: -0.38 [20:33:49]line ИТОГО: 300.00 [20:33:49]line Внесено: 300.00 [20:33:49]line СДАЧА: 0.00 [20:33:49]line НСП 1% : 2.66 [20:33:49]line НДС 12% : 31.90 [20:33:49]line Наличными: 300.00 [20:33:49]line Безнал.: 0.00 [20:33:49]line Место: АЗС № 170 "Партнер Нефть" [20:33:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:33:49]line СНО: Общий режим [20:33:49]line Чек 452 27.10.2024 20:33 [20:33:49]line Смена: 542 ФФД: 1.0 [20:33:49]line ЗНМ: 0300000110 [20:33:49]line РНМ: 0000000000091776 [20:33:49]line Версия ККМ: 001 [20:33:49]line ФМ: 0000000000871754 [20:33:49]line ФД: 192420 [20:33:49]line ФПД: 88807623512237 [20:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192420&fm=88807623512237&tin=02508201610067®Number=0000000000091776&sum=30000 [20:33:49]OFD Sender: Processing packet 192420 [packets to send 75, broken 74] [20:33:49]ProducePacketName [20:33:49]name=ofd_packets/00192420 [20:33:49]OFD Sender: To server: pG, [20:33:49]CommunicateWithHost lk.salyk.kg:30040 [20:33:49]ConnectInit lk.salyk.kg [20:33:49]written 0, free lines is 4095 [20:33:49]Connected sock=10 [20:33:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB EA 07 01 D1 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 AD A3 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EF 02 00 35 04 06 00 50 C5 22 DA 50 AD 0A 7C A6 A8 78 01 41 C8 [20:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 14 47 00 57 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EF 02 00 F4 03 04 00 73 48 1E 67 B6 04 01 00 00 0B 40 07 56 E0 0E 86 93 [20:33:49]CommunicateWithHost err = 0 [20:33:49]CheckOFDResponse [20:33:49]1017 (14) - 77093643461234 [20:33:49]1041 (16) - 0000000000871754 [20:33:49]1040 (4) - 192420 [20:33:49]1012 (4) - 27.10.2024 14:04 [20:33:49]1206 (1) - 0 [20:33:49]OFD Sender: Remove packet 192420 [20:33:49]ProducePacketName [20:33:49]name=ofd_packets/00192420 [20:33:49]NVStorageDeleteData [20:33:50]Write to MH i2c: 01 00 00 6C 12 7E [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 B3 0C 44 [20:33:50]RasterBufferAndPrint [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]written 0, free lines is 3258 [20:33:50]MH_Cut [20:33:50]Write to MH i2c: D1 01 00 73 12 01 57 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 73 12 00 56 [20:33:50]Write to MH i2c: 01 00 00 74 12 86 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]OFD Sender: No OFD packet to send [20:33:50]*** Cut start [20:33:50]*** Partial cut [20:33:50]*** CUTSNS_PIN = 1 [20:33:50]*** CUTSNS_PIN = 0 [20:33:51]*** Brake cut motor [20:33:51]Read from MH i2c: 01 [20:33:51]MH_I2C_Read... [20:33:51]*** Stop cut motor [20:33:51]*** Cut end [20:33:51]Read from MH i2c: 01 07 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 74 12 00 00 00 00 00 FF 0F 9B [20:33:51]process_action close_receipt done [20:33:51]requested_data is exist [20:33:51]produce_requested_data [20:33:51]requested_item fm.sn is exist - process it [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 11 00 00 [20:33:51]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [20:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:33:51]wFMCommunicate OK [20:33:51]requested_item fd.num is exist - process it [20:33:51]SAM_PROTO_GetFieldsCounters [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 13 00 00 [20:33:51]Write to MH i2c: E2 08 00 76 12 80 13 00 00 00 00 00 00 04 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 62 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 62 00 76 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [20:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_GetFieldsCounters done [20:33:51]requested_item shift.num is exist - process it [20:33:51]requested_item shift.opened is exist - process it [20:33:51]req_shift_opened [20:33:51]FM_GetShiftState [20:33:51]SAM_PROTO_GetShiftState [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 13 01 00 [20:33:51]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0E 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 47 [20:33:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_GetShiftState done [20:33:51]FM_GetShiftState done [20:33:51]req_shift_opened done [20:33:51]requested_item shift.open_date is exist - process it [20:33:51]req_shift_open_date [20:33:51]req_shift_open_date done [20:33:51]produce_requested_data done [20:33:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192420,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:33:51]process_action_free close_receipt [20:33:51]json_value_free [20:33:51]json_value_free done [20:33:51]process_json_proto returns [20:33:51]Send response to host [20:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192420,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:33:51]free response buf [20:33:51]execute_script done [20:33:51]execute_script returns [20:33:51]free content buf [20:33:51]Sock 7.Close socket [20:33:51]Sock 7.Thread stoped [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]accept exits with 9 [20:42:50]New connection [20:42:50]New thread 3066563940 created [20:42:50]Thread 3066707300 joined [20:42:50]Waiting for new connection... [20:42:50] Sock 9.Parse request [20:42:50]Sock 9.Check first char [20:42:50]Sock 9.First char is OK [20:42:50]request: POST /json_proto HTTP/1.0 [20:42:50]Method: POST [20:42:50]URL: /json_proto [20:42:50]Method is POST - this is cgi request [20:42:50]url: /json_proto [20:42:50]query_string will be loaded in cgi processing [20:42:50]execute_cgi json_proto POST (null) [20:42:50]execute_cgi path=json_proto method=POST [20:42:50]POST find Content-Length [20:42:50]Host: 172.17.63.131:8080 [20:42:50]Content-Length: 677 [20:42:50]Content-Type: application/json [20:42:50] [20:42:50]POST finish read [20:42:50]Found Content-Length = 677 [20:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:50]execute_script... [20:42: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)31738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:50]POST & json_proto [20:42:50]process_json_proto [20:42:50]json parsed OK: [20:42:50]protocol is kg_v1.0 [20:42:50]action value=close_receipt [20:42:50]process_action close_receipt [20:42:50]cmd_close_receipt [20:42:50]MH_GetDate [20:42:50]Write to MH i2c: F0 00 00 78 12 79 [20:42:50]Write i2c OK [20:42:50]MH_I2C_Read... [20:42:50]Read from MH i2c: F0 [20:42:50]MH_I2C_Read... [20:42:50]Read from MH i2c: F0 09 00 [20:42:50]MH_I2C_Read... [20:42:50]Read from MH i2c: F0 09 00 78 12 00 CB A5 1E 67 22 05 6E 64 70 [20:42:50]GetLastDocTimeStamp 1730061229 [20:42:50]current date 1730061771 [20:42:50]FM_GetShiftState [20:42:50]SAM_PROTO_GetShiftState [20:42:50]wFMCommunicate request_size=4 [20:42:50]MH_SAM_APDU [20:42:50]CAPDU: 80 13 01 00 [20:42:50]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [20:42:50]Write i2c OK [20:42:50]MH_I2C_Read... [20:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:50]Read from MH i2c: E2 [20:42:50]MH_I2C_Read... [20:42:50]Read from MH i2c: E2 0E 00 [20:42:50]MH_I2C_Read... [20:42:50]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 49 [20:42:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:42:50]wFMCommunicate OK [20:42:50]SAM_PROTO_GetShiftState done [20:42:50]FM_GetShiftState done [20:42:50]opened in 1729989159 [20:42:50]opened+sec_in_day 1730075559 [20:42:50]quantity*price = 70044 [20:42:50]sum+1 = 70045 [20:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 453 27.10.2024 20:42 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192421 ФПД: 198043895802979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204251&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192421&fm=198043895802979&tin=02508201610067®Number=0000000000091776&sum=70000 [20:42:51]StoreToDocumentArchive [20:42:51]shift 542 fd 192421 [20:42:51]save to /storage/0542/doc_00192421 [20:42:51]save last doc name /storage/0542/doc_00192421 to /storage/kkm_last_doc_name [20:42:51]save OK [20:42:51]Clear old archive folders... [20:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:51]tlvbuf is 019B43C0 [20:42:51]SAM_PROTO_ClearQueue [20:42:51]wFMCommunicate request_size=4 [20:42:51]MH_SAM_APDU [20:42:51]CAPDU: 80 09 00 00 [20:42:51]Write to MH i2c: E2 08 00 86 12 80 09 00 00 00 00 00 00 0A [20:42:51]Write i2c OK [20:42:51]MH_I2C_Read... [20:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:51]Read from MH i2c: E2 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [20:42:51]RAPDU: 90 00 [20:42:51]wFMCommunicate OK [20:42:51]SAM_PROTO_ClearQueue done [20:42:51]KKMCreateOFDPacket [20:42:51]OFDProtocolAddRootSTLVToBuf [20:42:51]FM_MakeSignedData [20:42:51]FM_MakeSignedData [20:42:51]SAM_PROTO_SignData [20:42:51]wFMCommunicate request_size=4 [20:42:51]MH_SAM_APDU [20:42:51]CAPDU: 80 0D 01 02 [20:42:51]Write to MH i2c: E2 08 00 87 12 80 0D 01 02 00 00 00 00 12 [20:42:51]Write i2c OK [20:42:51]MH_I2C_Read... [20:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:51]Read from MH i2c: E2 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [20:42:51]RAPDU: 90 00 [20:42:51]wFMCommunicate OK [20:42:51]wFMCommunicate request_size=255 [20:42:51]MH_SAM_APDU [20:42: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CB A5 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EF 02 00 35 04 06 00 B4 [20:42:51]Write to MH i2c: E2 02 01 88 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CB A5 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EF 02 00 35 04 06 00 B4 00 00 DB [20:42:51]Write i2c OK [20:42:51]MH_I2C_Read... [20:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:51]Read from MH i2c: E2 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [20:42:51]RAPDU: 90 00 [20:42:51]wFMCommunicate OK [20:42:51]wFMCommunicate request_size=10 [20:42:51]MH_SAM_APDU [20:42:51]CAPDU: 80 0D 02 02 05 1E B0 0F 2C 63 [20:42:51]Write to MH i2c: E2 0D 00 89 12 80 0D 02 02 05 00 1E B0 0F 2C 63 00 00 8B [20:42:51]Write i2c OK [20:42:51]MH_I2C_Read... [20:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:51]Read from MH i2c: E2 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 [20:42:51]MH_I2C_Read... [20:42:51]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [20:42:51]RAPDU: 90 00 [20:42:51]wFMCommunicate OK [20:42:51]wFMCommunicate request_size=4 [20:42:51]MH_SAM_APDU [20:42:51]CAPDU: 80 0D 03 02 [20:42:51]Write to MH i2c: E2 08 00 8A 12 80 0D 03 02 00 00 00 00 17 [20:42:51]Write i2c OK [20:42:51]MH_I2C_Read... [20:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:52]Read from MH i2c: E2 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 0B 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 0B 00 8A 12 00 EA 6C 47 F2 79 E9 C2 74 90 00 3F [20:42:52]RAPDU: EA 6C 47 F2 79 E9 C2 74 90 00 [20:42:52]wFMCommunicate OK [20:42:52]SAM_PROTO_SignData done [20:42:52]FM_MakeSignedData done [20:42:52]CreateOFDProtocolMessage [20:42:52]wFMCommunicate request_size=4 [20:42:52]MH_SAM_APDU [20:42:52]CAPDU: 80 11 00 00 [20:42:52]Write to MH i2c: E2 08 00 8B 12 80 11 00 00 00 00 00 00 17 [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:52]Read from MH i2c: E2 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 17 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 17 00 8B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [20:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:52]wFMCommunicate OK [20:42:52]CreateOFDProtocolMessage done [20:42:52]OFDSenderStorePacket 192421 [20:42:52]StoreOFDPacket docnum=192421 [20:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 04 07 01 A8 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CB A5 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EF 02 00 35 04 06 00 B4 1E B0 0F 2C 63 EA 6C 47 F2 79 E9 C2 74 [20:42:52]CheckFolder [20:42:52]dirname=/storage/ofd_packets [20:42:52]CheckFolder done [20:42:52]ProducePacketName [20:42:52]name=ofd_packets/00192421 [20:42:52]NVStorageSaveData ofd_packets/00192421 [20:42:52]File name is /storage/ofd_packets/00192421 [20:42:52]Write 301 bytes [20:42:52]NVStorageSaveData done [20:42:52]OFDSenderStorePacket done [20:42:52]KKMCreateOFDPacket done [20:42:52]NVStorageSaveData kkm_last_timestamp [20:42:52]File name is /storage/kkm_last_timestamp [20:42:52]Write 4 bytes [20:42:52]NVStorageSaveData done [20:42:52]ExternCall_PrintAddStr [20:42:52]wPrintStart [20:42:52]Write to MH i2c: 01 00 00 8C 12 9E [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [20:42:52]RasterBufferAndPrint [20:42:52]line Счет N : (1)31738 [20:42:52]line ИНН: 02508201610067 [20:42:52]line Контрольно-Кассовый Чек [20:42:52]line ПРОДАЖА [20:42:52]line ТРК (МРК, ГНК) : 21 [20:42:52]line Товар: 2710124130 [20:42:52]line Аи-92-К-5 [20:42:52]line 10.470 * 66.90 [20:42:52]line = 700.44 [20:42:52]line НДС 12% НСП 1% [20:42:52]line > о реализуемом товаре [20:42:52]line ОКРУГЛЕНИЕ: -0.44 [20:42:52]line ИТОГО: 700.00 [20:42:52]line Внесено: 700.00 [20:42:52]line СДАЧА: 0.00 [20:42:52]line НСП 1% : 6.20 [20:42:52]line НДС 12% : 74.38 [20:42:52]line Наличными: 700.00 [20:42:52]line Безнал.: 0.00 [20:42:52]line Место: АЗС № 170 "Партнер Нефть" [20:42:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:42:52]line СНО: Общий режим [20:42:52]line Чек 453 27.10.2024 20:42 [20:42:52]line Смена: 542 ФФД: 1.0 [20:42:52]line ЗНМ: 0300000110 [20:42:52]line РНМ: 0000000000091776 [20:42:52]line Версия ККМ: 001 [20:42:52]line ФМ: 0000000000871754 [20:42:52]line ФД: 192421 [20:42:52]line ФПД: 198043895802979 [20:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204251&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192421&fm=198043895802979&tin=02508201610067®Number=0000000000091776&sum=70000 [20:42:52]OFD Sender: Processing packet 192421 [packets to send 75, broken 74] [20:42:52]ProducePacketName [20:42:52]name=ofd_packets/00192421 [20:42:52]OFD Sender: To server: pG, [20:42:52]CommunicateWithHost lk.salyk.kg:30040 [20:42:52]ConnectInit lk.salyk.kg [20:42:52]written 0, free lines is 4095 [20:42:52]Connected sock=10 [20:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2D 04 07 01 A8 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CB A5 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EF 02 00 35 04 06 00 B4 1E B0 0F 2C 63 EA 6C 47 F2 79 E9 C2 74 [20:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 DC 47 00 2F 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EF 02 00 F4 03 04 00 92 4A 1E 67 B6 04 01 00 00 DB 87 50 E3 93 10 59 6F [20:42:52]CommunicateWithHost err = 0 [20:42:52]CheckOFDResponse [20:42:52]1017 (14) - 77093643461234 [20:42:52]1041 (16) - 0000000000871754 [20:42:52]1040 (4) - 192421 [20:42:52]1012 (4) - 27.10.2024 14:13 [20:42:52]1206 (1) - 0 [20:42:52]OFD Sender: Remove packet 192421 [20:42:52]ProducePacketName [20:42:52]name=ofd_packets/00192421 [20:42:52]NVStorageDeleteData [20:42:52]Write to MH i2c: 01 00 00 B7 12 C9 [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 B0 0C 8C [20:42:52]RasterBufferAndPrint [20:42:52]line [20:42:52]line [20:42:52]line [20:42:52]line [20:42:52]line [20:42:52]written 0, free lines is 3255 [20:42:52]MH_Cut [20:42:52]Write to MH i2c: D1 01 00 BE 12 01 A2 [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: D1 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: D1 01 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: D1 01 00 BE 12 00 A1 [20:42:52]Write to MH i2c: 01 00 00 BF 12 D1 [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:53]OFD Sender: No OFD packet to send [20:42:53]*** Cut start [20:42:53]*** Partial cut [20:42:53]*** CUTSNS_PIN = 1 [20:42:53]*** CUTSNS_PIN = 0 [20:42:54]*** Brake cut motor [20:42:54]Read from MH i2c: 01 [20:42:54]MH_I2C_Read... [20:42:54]*** Stop cut motor [20:42:54]*** Cut end [20:42:54]Read from MH i2c: 01 07 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [20:42:54]process_action close_receipt done [20:42:54]requested_data is exist [20:42:54]produce_requested_data [20:42:54]requested_item fm.sn is exist - process it [20:42:54]wFMCommunicate request_size=4 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 11 00 00 [20:42:54]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 17 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [20:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:54]wFMCommunicate OK [20:42:54]requested_item fd.num is exist - process it [20:42:54]SAM_PROTO_GetFieldsCounters [20:42:54]wFMCommunicate request_size=4 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 13 00 00 [20:42:54]Write to MH i2c: E2 08 00 C1 12 80 13 00 00 00 00 00 00 4F [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 62 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 62 00 C1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [20:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:54]wFMCommunicate OK [20:42:54]SAM_PROTO_GetFieldsCounters done [20:42:54]requested_item shift.num is exist - process it [20:42:54]requested_item shift.opened is exist - process it [20:42:54]req_shift_opened [20:42:54]FM_GetShiftState [20:42:54]SAM_PROTO_GetShiftState [20:42:54]wFMCommunicate request_size=4 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 13 01 00 [20:42:54]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 0E 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 92 [20:42:54]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:42:54]wFMCommunicate OK [20:42:54]SAM_PROTO_GetShiftState done [20:42:54]FM_GetShiftState done [20:42:54]req_shift_opened done [20:42:54]requested_item shift.open_date is exist - process it [20:42:54]req_shift_open_date [20:42:54]req_shift_open_date done [20:42:54]produce_requested_data done [20:42:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192421,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:42:54]process_action_free close_receipt [20:42:54]json_value_free [20:42:54]json_value_free done [20:42:54]process_json_proto returns [20:42:54]Send response to host [20:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192421,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:42:54]free response buf [20:42:54]execute_script done [20:42:54]execute_script returns [20:42:54]free content buf [20:42:54]Sock 9.Close socket [20:42:54]Sock 9.Thread stoped [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:41]accept exits with 7 [20:52:41]New connection [20:52:41]New thread 3066707300 created [20:52:41]Thread 3066563940 joined [20:52:41]Waiting for new connection... [20:52:41] Sock 7.Parse request [20:52:41]Sock 7.Check first char [20:52:41]Sock 7.First char is OK [20:52:41]request: POST /json_proto HTTP/1.0 [20:52:41]Method: POST [20:52:41]URL: /json_proto [20:52:41]Method is POST - this is cgi request [20:52:41]url: /json_proto [20:52:41]query_string will be loaded in cgi processing [20:52:41]execute_cgi json_proto POST (null) [20:52:41]execute_cgi path=json_proto method=POST [20:52:41]POST find Content-Length [20:52:41]Host: 172.17.63.131:8080 [20:52:41]Content-Length: 681 [20:52:41]Content-Type: application/json [20:52:41] [20:52:41]POST finish read [20:52:41]Found Content-Length = 681 [20:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:41]execute_script... [20:52: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)31739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:41]POST & json_proto [20:52:41]process_json_proto [20:52:41]json parsed OK: [20:52:41]protocol is kg_v1.0 [20:52:41]action value=close_receipt [20:52:41]process_action close_receipt [20:52:41]cmd_close_receipt [20:52:41]MH_GetDate [20:52:41]Write to MH i2c: F0 00 00 C3 12 C4 [20:52:41]Write i2c OK [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: F0 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: F0 09 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: F0 09 00 C3 12 00 1A A8 1E 67 22 05 6E 64 0D [20:52:41]GetLastDocTimeStamp 1730061771 [20:52:41]current date 1730062362 [20:52:41]FM_GetShiftState [20:52:41]SAM_PROTO_GetShiftState [20:52:41]wFMCommunicate request_size=4 [20:52:41]MH_SAM_APDU [20:52:41]CAPDU: 80 13 01 00 [20:52:41]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [20:52:41]Write i2c OK [20:52:41]MH_I2C_Read... [20:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:41]Read from MH i2c: E2 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 0E 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 94 [20:52:41]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:52:41]wFMCommunicate OK [20:52:41]SAM_PROTO_GetShiftState done [20:52:41]FM_GetShiftState done [20:52:41]opened in 1729989159 [20:52:41]opened+sec_in_day 1730075559 [20:52:41]quantity*price = 100015 [20:52:41]sum+1 = 100017 [20:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 454 27.10.2024 20:52 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192422 ФПД: 96965105004165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192422&fm=96965105004165&tin=02508201610067®Number=0000000000091776&sum=100000 [20:52:42]StoreToDocumentArchive [20:52:42]shift 542 fd 192422 [20:52:42]save to /storage/0542/doc_00192422 [20:52:42]save last doc name /storage/0542/doc_00192422 to /storage/kkm_last_doc_name [20:52:42]save OK [20:52:42]Clear old archive folders... [20:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:42]tlvbuf is 019BD0E0 [20:52:42]SAM_PROTO_ClearQueue [20:52:42]wFMCommunicate request_size=4 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 09 00 00 [20:52:42]Write to MH i2c: E2 08 00 D1 12 80 09 00 00 00 00 00 00 55 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [20:52:42]RAPDU: 90 00 [20:52:42]wFMCommunicate OK [20:52:42]SAM_PROTO_ClearQueue done [20:52:42]KKMCreateOFDPacket [20:52:42]OFDProtocolAddRootSTLVToBuf [20:52:42]FM_MakeSignedData [20:52:42]FM_MakeSignedData [20:52:42]SAM_PROTO_SignData [20:52:42]wFMCommunicate request_size=4 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 0D 01 02 [20:52:42]Write to MH i2c: E2 08 00 D2 12 80 0D 01 02 00 00 00 00 5D [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [20:52:42]RAPDU: 90 00 [20:52:42]wFMCommunicate OK [20:52:42]wFMCommunicate request_size=255 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 1A A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EF 02 00 35 04 06 00 58 [20:52:42]Write to MH i2c: E2 02 01 D3 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 1A A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EF 02 00 35 04 06 00 58 00 00 08 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [20:52:42]RAPDU: 90 00 [20:52:42]wFMCommunicate OK [20:52:42]wFMCommunicate request_size=10 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 0D 02 02 05 30 72 A3 AE 85 [20:52:42]Write to MH i2c: E2 0D 00 D4 12 80 0D 02 02 05 00 30 72 A3 AE 85 00 00 E2 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [20:52:42]RAPDU: 90 00 [20:52:42]wFMCommunicate OK [20:52:42]wFMCommunicate request_size=4 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 0D 03 02 [20:52:42]Write to MH i2c: E2 08 00 D5 12 80 0D 03 02 00 00 00 00 62 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 0B 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 0B 00 D5 12 00 C4 5B 7B 2F 82 9C D8 46 90 00 68 [20:52:42]RAPDU: C4 5B 7B 2F 82 9C D8 46 90 00 [20:52:42]wFMCommunicate OK [20:52:42]SAM_PROTO_SignData done [20:52:42]FM_MakeSignedData done [20:52:42]CreateOFDProtocolMessage [20:52:42]wFMCommunicate request_size=4 [20:52:42]MH_SAM_APDU [20:52:42]CAPDU: 80 11 00 00 [20:52:42]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:42]Read from MH i2c: E2 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 17 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [20:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:42]wFMCommunicate OK [20:52:42]CreateOFDProtocolMessage done [20:52:42]OFDSenderStorePacket 192422 [20:52:42]StoreOFDPacket docnum=192422 [20:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 78 07 01 57 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 1A A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EF 02 00 35 04 06 00 58 30 72 A3 AE 85 C4 5B 7B 2F 82 9C D8 46 [20:52:42]CheckFolder [20:52:42]dirname=/storage/ofd_packets [20:52:42]CheckFolder done [20:52:42]ProducePacketName [20:52:42]name=ofd_packets/00192422 [20:52:42]NVStorageSaveData ofd_packets/00192422 [20:52:42]File name is /storage/ofd_packets/00192422 [20:52:42]Write 301 bytes [20:52:42]NVStorageSaveData done [20:52:42]OFDSenderStorePacket done [20:52:42]KKMCreateOFDPacket done [20:52:42]NVStorageSaveData kkm_last_timestamp [20:52:42]File name is /storage/kkm_last_timestamp [20:52:42]Write 4 bytes [20:52:42]NVStorageSaveData done [20:52:42]ExternCall_PrintAddStr [20:52:42]wPrintStart [20:52:42]Write to MH i2c: 01 00 00 D7 12 E9 [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 07 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [20:52:42]RasterBufferAndPrint [20:52:42]line Счет N : (1)31739 [20:52:42]line ИНН: 02508201610067 [20:52:42]line Контрольно-Кассовый Чек [20:52:42]line ПРОДАЖА [20:52:42]line ТРК (МРК, ГНК) : 12 [20:52:42]line Товар: 2710124130 [20:52:42]line Аи-92-К-5 [20:52:42]line 14.950 * 66.90 [20:52:42]line = 1000.16 [20:52:42]line НДС 12% НСП 1% [20:52:42]line > о реализуемом товаре [20:52:42]line ОКРУГЛЕНИЕ: -0.16 [20:52:42]line ИТОГО: 1000.00 [20:52:42]line Внесено: 1000.00 [20:52:42]line СДАЧА: 0.00 [20:52:42]line НСП 1% : 8.85 [20:52:42]line НДС 12% : 106.21 [20:52:42]line Наличными: 1000.00 [20:52:42]line Безнал.: 0.00 [20:52:42]line Место: АЗС № 170 "Партнер Нефть" [20:52:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:52:42]line СНО: Общий режим [20:52:42]line Чек 454 27.10.2024 20:52 [20:52:42]line Смена: 542 ФФД: 1.0 [20:52:42]line ЗНМ: 0300000110 [20:52:42]line РНМ: 0000000000091776 [20:52:42]line Версия ККМ: 001 [20:52:42]line ФМ: 0000000000871754 [20:52:42]line ФД: 192422 [20:52:42]line ФПД: 96965105004165 [20:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192422&fm=96965105004165&tin=02508201610067®Number=0000000000091776&sum=100000 [20:52:43]OFD Sender: Processing packet 192422 [packets to send 75, broken 74] [20:52:43]ProducePacketName [20:52:43]name=ofd_packets/00192422 [20:52:43]OFD Sender: To server: pG, [20:52:43]CommunicateWithHost lk.salyk.kg:30040 [20:52:43]ConnectInit lk.salyk.kg [20:52:43]written 0, free lines is 4095 [20:52:43]Connected sock=10 [20:52:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 78 07 01 57 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 1A A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EF 02 00 35 04 06 00 58 30 72 A3 AE 85 C4 5B 7B 2F 82 9C D8 46 [20:52:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 6C 47 00 9A 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EF 02 00 F4 03 04 00 E1 4C 1E 67 B6 04 01 00 00 F2 F2 D8 03 7C 21 14 31 [20:52:43]CommunicateWithHost err = 0 [20:52:43]CheckOFDResponse [20:52:43]1017 (14) - 77093643461234 [20:52:43]1041 (16) - 0000000000871754 [20:52:43]1040 (4) - 192422 [20:52:43]1012 (4) - 27.10.2024 14:23 [20:52:43]1206 (1) - 0 [20:52:43]OFD Sender: Remove packet 192422 [20:52:43]ProducePacketName [20:52:43]name=ofd_packets/00192422 [20:52:43]NVStorageDeleteData [20:52:43]Write to MH i2c: 01 00 00 02 13 15 [20:52:43]Write i2c OK [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: 01 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: 01 07 00 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 AD 0C D5 [20:52:43]RasterBufferAndPrint [20:52:43]line [20:52:43]line [20:52:43]line [20:52:43]line [20:52:43]line [20:52:43]written 0, free lines is 3251 [20:52:43]MH_Cut [20:52:43]Write to MH i2c: D1 01 00 09 13 01 EE [20:52:43]Write i2c OK [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: D1 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: D1 01 00 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: D1 01 00 09 13 00 ED [20:52:43]Write to MH i2c: 01 00 00 0A 13 1D [20:52:43]Write i2c OK [20:52:43]MH_I2C_Read... [20:52:43]OFD Sender: No OFD packet to send [20:52:44]*** Cut start [20:52:44]*** Partial cut [20:52:44]*** CUTSNS_PIN = 1 [20:52:44]*** CUTSNS_PIN = 0 [20:52:44]*** Brake cut motor [20:52:45]Read from MH i2c: 01 [20:52:45]MH_I2C_Read... [20:52:45]*** Stop cut motor [20:52:45]*** Cut end [20:52:45]Read from MH i2c: 01 07 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [20:52:45]process_action close_receipt done [20:52:45]requested_data is exist [20:52:45]produce_requested_data [20:52:45]requested_item fm.sn is exist - process it [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 11 00 00 [20:52:45]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 17 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [20:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:45]wFMCommunicate OK [20:52:45]requested_item fd.num is exist - process it [20:52:45]SAM_PROTO_GetFieldsCounters [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 13 00 00 [20:52:45]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 62 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 62 00 0C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [20:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:45]wFMCommunicate OK [20:52:45]SAM_PROTO_GetFieldsCounters done [20:52:45]requested_item shift.num is exist - process it [20:52:45]requested_item shift.opened is exist - process it [20:52:45]req_shift_opened [20:52:45]FM_GetShiftState [20:52:45]SAM_PROTO_GetShiftState [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 13 01 00 [20:52:45]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DE [20:52:45]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:52:45]wFMCommunicate OK [20:52:45]SAM_PROTO_GetShiftState done [20:52:45]FM_GetShiftState done [20:52:45]req_shift_opened done [20:52:45]requested_item shift.open_date is exist - process it [20:52:45]req_shift_open_date [20:52:45]req_shift_open_date done [20:52:45]produce_requested_data done [20:52:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192422,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:52:45]process_action_free close_receipt [20:52:45]json_value_free [20:52:45]json_value_free done [20:52:45]process_json_proto returns [20:52:45]Send response to host [20:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192422,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:52:45]free response buf [20:52:45]execute_script done [20:52:45]execute_script returns [20:52:45]free content buf [20:52:45]Sock 7.Close socket [20:52:45]Sock 7.Thread stoped [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:56]accept exits with 9 [20:54:56]New connection [20:54:56]New thread 3066563940 created [20:54:56]Thread 3066707300 joined [20:54:56]Waiting for new connection... [20:54:56] Sock 9.Parse request [20:54:56]Sock 9.Check first char [20:54:56]Sock 9.First char is OK [20:54:56]request: POST /json_proto HTTP/1.0 [20:54:56]Method: POST [20:54:56]URL: /json_proto [20:54:56]Method is POST - this is cgi request [20:54:56]url: /json_proto [20:54:56]query_string will be loaded in cgi processing [20:54:56]execute_cgi json_proto POST (null) [20:54:56]execute_cgi path=json_proto method=POST [20:54:56]POST find Content-Length [20:54:56]Host: 172.17.63.131:8080 [20:54:56]Content-Length: 676 [20:54:56]Content-Type: application/json [20:54:56] [20:54:56]POST finish read [20:54:56]Found Content-Length = 676 [20:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:56]execute_script... [20:54: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)31740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:56]POST & json_proto [20:54:56]process_json_proto [20:54:56]json parsed OK: [20:54:56]protocol is kg_v1.0 [20:54:56]action value=close_receipt [20:54:56]process_action close_receipt [20:54:56]cmd_close_receipt [20:54:56]MH_GetDate [20:54:56]Write to MH i2c: F0 00 00 0E 13 10 [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 09 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 09 00 0E 13 00 A1 A8 1E 67 22 05 6E 64 E0 [20:54:56]GetLastDocTimeStamp 1730062362 [20:54:56]current date 1730062497 [20:54:56]FM_GetShiftState [20:54:56]SAM_PROTO_GetShiftState [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 13 01 00 [20:54:56]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0E 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 E0 [20:54:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:54:56]wFMCommunicate OK [20:54:56]SAM_PROTO_GetShiftState done [20:54:56]FM_GetShiftState done [20:54:56]opened in 1729989159 [20:54:56]opened+sec_in_day 1730075559 [20:54:56]quantity*price = 24017 [20:54:56]sum+1 = 24018 [20:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 455 27.10.2024 20:54 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192423 ФПД: 164519572184473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192423&fm=164519572184473&tin=02508201610067®Number=0000000000091776&sum=24000 [20:54:57]StoreToDocumentArchive [20:54:57]shift 542 fd 192423 [20:54:57]save to /storage/0542/doc_00192423 [20:54:57]save last doc name /storage/0542/doc_00192423 to /storage/kkm_last_doc_name [20:54:57]save OK [20:54:57]Clear old archive folders... [20:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:57]tlvbuf is 019B6C50 [20:54:57]SAM_PROTO_ClearQueue [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 09 00 00 [20:54:57]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [20:54:57]RAPDU: 90 00 [20:54:57]wFMCommunicate OK [20:54:57]SAM_PROTO_ClearQueue done [20:54:57]KKMCreateOFDPacket [20:54:57]OFDProtocolAddRootSTLVToBuf [20:54:57]FM_MakeSignedData [20:54:57]FM_MakeSignedData [20:54:57]SAM_PROTO_SignData [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 0D 01 02 [20:54:57]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [20:54:57]RAPDU: 90 00 [20:54:57]wFMCommunicate OK [20:54:57]wFMCommunicate request_size=255 [20:54:57]MH_SAM_APDU [20:54: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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 A1 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EF 02 00 35 04 06 00 95 [20:54:57]Write to MH i2c: E2 02 01 1E 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 A1 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EF 02 00 35 04 06 00 95 00 00 26 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [20:54:57]RAPDU: 90 00 [20:54:57]wFMCommunicate OK [20:54:57]wFMCommunicate request_size=10 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 0D 02 02 05 A1 32 A8 9D 99 [20:54:57]Write to MH i2c: E2 0D 00 1F 13 80 0D 02 02 05 00 A1 32 A8 9D 99 00 00 67 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [20:54:57]RAPDU: 90 00 [20:54:57]wFMCommunicate OK [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 0D 03 02 [20:54:57]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 0B 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 0B 00 20 13 00 19 0C 69 BA A8 2B 9E A2 90 00 0A [20:54:57]RAPDU: 19 0C 69 BA A8 2B 9E A2 90 00 [20:54:57]wFMCommunicate OK [20:54:57]SAM_PROTO_SignData done [20:54:57]FM_MakeSignedData done [20:54:57]CreateOFDProtocolMessage [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 11 00 00 [20:54:57]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 17 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [20:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:54:57]wFMCommunicate OK [20:54:57]CreateOFDProtocolMessage done [20:54:57]OFDSenderStorePacket 192423 [20:54:57]StoreOFDPacket docnum=192423 [20:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 08 07 01 89 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 A1 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EF 02 00 35 04 06 00 95 A1 32 A8 9D 99 19 0C 69 BA A8 2B 9E A2 [20:54:57]CheckFolder [20:54:57]dirname=/storage/ofd_packets [20:54:57]CheckFolder done [20:54:57]ProducePacketName [20:54:57]name=ofd_packets/00192423 [20:54:57]NVStorageSaveData ofd_packets/00192423 [20:54:57]File name is /storage/ofd_packets/00192423 [20:54:57]Write 301 bytes [20:54:57]NVStorageSaveData done [20:54:57]OFDSenderStorePacket done [20:54:57]KKMCreateOFDPacket done [20:54:57]NVStorageSaveData kkm_last_timestamp [20:54:57]File name is /storage/kkm_last_timestamp [20:54:57]Write 4 bytes [20:54:57]NVStorageSaveData done [20:54:57]ExternCall_PrintAddStr [20:54:57]wPrintStart [20:54:57]Write to MH i2c: 01 00 00 22 13 35 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [20:54:57]RasterBufferAndPrint [20:54:57]line Счет N : (1)31740 [20:54:57]line ИНН: 02508201610067 [20:54:57]line Контрольно-Кассовый Чек [20:54:57]line ПРОДАЖА [20:54:57]line ТРК (МРК, ГНК) : 21 [20:54:57]line Товар: 2710124130 [20:54:57]line Аи-92-К-5 [20:54:57]line 3.590 * 66.90 [20:54:57]line = 240.17 [20:54:58]line НДС 12% НСП 1% [20:54:58]line > о реализуемом товаре [20:54:58]line ОКРУГЛЕНИЕ: -0.17 [20:54:58]line ИТОГО: 240.00 [20:54:58]line Внесено: 240.00 [20:54:58]line СДАЧА: 0.00 [20:54:58]line НСП 1% : 2.12 [20:54:58]line НДС 12% : 25.50 [20:54:58]line Наличными: 240.00 [20:54:58]line Безнал.: 0.00 [20:54:58]line Место: АЗС № 170 "Партнер Нефть" [20:54:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:54:58]line СНО: Общий режим [20:54:58]line Чек 455 27.10.2024 20:54 [20:54:58]line Смена: 542 ФФД: 1.0 [20:54:58]line ЗНМ: 0300000110 [20:54:58]line РНМ: 0000000000091776 [20:54:58]line Версия ККМ: 001 [20:54:58]line ФМ: 0000000000871754 [20:54:58]line ФД: 192423 [20:54:58]line ФПД: 164519572184473 [20:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192423&fm=164519572184473&tin=02508201610067®Number=0000000000091776&sum=24000 [20:54:58]OFD Sender: Processing packet 192423 [packets to send 75, broken 74] [20:54:58]ProducePacketName [20:54:58]name=ofd_packets/00192423 [20:54:58]OFD Sender: To server: pG, [20:54:58]CommunicateWithHost lk.salyk.kg:30040 [20:54:58]ConnectInit lk.salyk.kg [20:54:58]written 0, free lines is 4095 [20:54:58]Connected sock=10 [20:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 08 07 01 89 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 A1 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EF 02 00 35 04 06 00 95 A1 32 A8 9D 99 19 0C 69 BA A8 2B 9E A2 [20:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D 50 47 00 9B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EF 02 00 F4 03 04 00 68 4D 1E 67 B6 04 01 00 00 72 EC 76 1F AC 09 08 83 [20:54:58]CommunicateWithHost err = 0 [20:54:58]CheckOFDResponse [20:54:58]1017 (14) - 77093643461234 [20:54:58]1041 (16) - 0000000000871754 [20:54:58]1040 (4) - 192423 [20:54:58]1012 (4) - 27.10.2024 14:25 [20:54:58]1206 (1) - 0 [20:54:58]OFD Sender: Remove packet 192423 [20:54:58]ProducePacketName [20:54:58]name=ofd_packets/00192423 [20:54:58]NVStorageDeleteData [20:54:58]Write to MH i2c: 01 00 00 4D 13 60 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 4D 13 00 00 00 00 00 9A 0C 0D [20:54:58]RasterBufferAndPrint [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]written 0, free lines is 3233 [20:54:58]MH_Cut [20:54:58]Write to MH i2c: D1 01 00 54 13 01 39 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 01 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 01 00 54 13 00 38 [20:54:58]Write to MH i2c: 01 00 00 55 13 68 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:59]OFD Sender: No OFD packet to send [20:54:59]*** Cut start [20:54:59]*** Partial cut [20:54:59]*** CUTSNS_PIN = 1 [20:54:59]*** CUTSNS_PIN = 0 [20:54:59]*** Brake cut motor [20:55:00]Read from MH i2c: 01 [20:55:00]MH_I2C_Read... [20:55:00]*** Stop cut motor [20:55:00]*** Cut end [20:55:00]Read from MH i2c: 01 07 00 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 FF 0F 7D [20:55:00]process_action close_receipt done [20:55:00]requested_data is exist [20:55:00]produce_requested_data [20:55:00]requested_item fm.sn is exist - process it [20:55:00]wFMCommunicate request_size=4 [20:55:00]MH_SAM_APDU [20:55:00]CAPDU: 80 11 00 00 [20:55:00]Write to MH i2c: E2 08 00 56 13 80 11 00 00 00 00 00 00 E3 [20:55:00]Write i2c OK [20:55:00]MH_I2C_Read... [20:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:00]Read from MH i2c: E2 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 17 00 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 17 00 56 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [20:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:55:00]wFMCommunicate OK [20:55:00]requested_item fd.num is exist - process it [20:55:00]SAM_PROTO_GetFieldsCounters [20:55:00]wFMCommunicate request_size=4 [20:55:00]MH_SAM_APDU [20:55:00]CAPDU: 80 13 00 00 [20:55:00]Write to MH i2c: E2 08 00 57 13 80 13 00 00 00 00 00 00 E6 [20:55:00]Write i2c OK [20:55:00]MH_I2C_Read... [20:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:00]Read from MH i2c: E2 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 62 00 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 62 00 57 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [20:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:00]wFMCommunicate OK [20:55:00]SAM_PROTO_GetFieldsCounters done [20:55:00]requested_item shift.num is exist - process it [20:55:00]requested_item shift.opened is exist - process it [20:55:00]req_shift_opened [20:55:00]FM_GetShiftState [20:55:00]SAM_PROTO_GetShiftState [20:55:00]wFMCommunicate request_size=4 [20:55:00]MH_SAM_APDU [20:55:00]CAPDU: 80 13 01 00 [20:55:00]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [20:55:00]Write i2c OK [20:55:00]MH_I2C_Read... [20:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:00]Read from MH i2c: E2 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 0E 00 [20:55:00]MH_I2C_Read... [20:55:00]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 29 [20:55:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:55:00]wFMCommunicate OK [20:55:00]SAM_PROTO_GetShiftState done [20:55:00]FM_GetShiftState done [20:55:00]req_shift_opened done [20:55:00]requested_item shift.open_date is exist - process it [20:55:00]req_shift_open_date [20:55:00]req_shift_open_date done [20:55:00]produce_requested_data done [20:55:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192423,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:55:00]process_action_free close_receipt [20:55:00]json_value_free [20:55:00]json_value_free done [20:55:00]process_json_proto returns [20:55:00]Send response to host [20:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192423,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:55:00]free response buf [20:55:00]execute_script done [20:55:00]execute_script returns [20:55:00]free content buf [20:55:00]Sock 9.Close socket [20:55:00]Sock 9.Thread stoped [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:22]accept exits with 7 [20:56:22]New connection [20:56:22]New thread 3066707300 created [20:56:22]Thread 3066563940 joined [20:56:22]Waiting for new connection... [20:56:22] Sock 7.Parse request [20:56:22]Sock 7.Check first char [20:56:22]Sock 7.First char is OK [20:56:22]request: POST /json_proto HTTP/1.0 [20:56:22]Method: POST [20:56:22]URL: /json_proto [20:56:22]Method is POST - this is cgi request [20:56:22]url: /json_proto [20:56:22]query_string will be loaded in cgi processing [20:56:22]execute_cgi json_proto POST (null) [20:56:22]execute_cgi path=json_proto method=POST [20:56:22]POST find Content-Length [20:56:22]Host: 172.17.63.131:8080 [20:56:22]Content-Length: 862 [20:56:22]Content-Type: application/json [20:56:22] [20:56:22]POST finish read [20:56:22]Found Content-Length = 862 [20:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:22]execute_script... [20: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 : (1)31741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:22]POST & json_proto [20:56:22]process_json_proto [20:56:22]json parsed OK: [20:56:22]protocol is kg_v1.0 [20:56:22]action value=close_receipt [20:56:22]process_action close_receipt [20:56:22]cmd_close_receipt [20:56:22]MH_GetDate [20:56:22]Write to MH i2c: F0 00 00 59 13 5B [20:56:22]Write i2c OK [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 09 00 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: F0 09 00 59 13 00 F7 A8 1E 67 22 05 6E 64 81 [20:56:22]GetLastDocTimeStamp 1730062497 [20:56:22]current date 1730062583 [20:56:22]FM_GetShiftState [20:56:22]SAM_PROTO_GetShiftState [20:56:22]wFMCommunicate request_size=4 [20:56:22]MH_SAM_APDU [20:56:22]CAPDU: 80 13 01 00 [20:56:22]Write to MH i2c: E2 08 00 5A 13 80 13 01 00 00 00 00 00 EA [20:56:22]Write i2c OK [20:56:22]MH_I2C_Read... [20:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:22]Read from MH i2c: E2 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: E2 0E 00 [20:56:22]MH_I2C_Read... [20:56:22]Read from MH i2c: E2 0E 00 5A 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 2B [20:56:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:56:22]wFMCommunicate OK [20:56:22]SAM_PROTO_GetShiftState done [20:56:22]FM_GetShiftState done [20:56:22]opened in 1729989159 [20:56:22]opened+sec_in_day 1730075559 [20:56:22]quantity*price = 20003 [20:56:22]sum+1 = 20004 [20:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 456 27.10.2024 20:56 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192424 ФПД: 216536239358929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205623&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192424&fm=216536239358929&tin=02508201610067®Number=0000000000091776&sum=20003 [20:56:23]StoreToDocumentArchive [20:56:23]shift 542 fd 192424 [20:56:23]save to /storage/0542/doc_00192424 [20:56:23]save last doc name /storage/0542/doc_00192424 to /storage/kkm_last_doc_name [20:56:23]save OK [20:56:23]Clear old archive folders... [20:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:23]tlvbuf is 019D1030 [20:56:23]SAM_PROTO_ClearQueue [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 09 00 00 [20:56:23]Write to MH i2c: E2 08 00 67 13 80 09 00 00 00 00 00 00 EC [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]SAM_PROTO_ClearQueue done [20:56:23]KKMCreateOFDPacket [20:56:23]OFDProtocolAddRootSTLVToBuf [20:56:23]FM_MakeSignedData [20:56:23]FM_MakeSignedData [20:56:23]SAM_PROTO_SignData [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 01 02 [20:56:23]Write to MH i2c: E2 08 00 68 13 80 0D 01 02 00 00 00 00 F4 [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=255 [20:56:23]MH_SAM_APDU [20:56: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 F7 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EF 02 00 35 04 06 00 C4 [20:56:23]Write to MH i2c: E2 02 01 69 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 F7 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EF 02 00 35 04 06 00 C4 00 00 BA [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=10 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 02 02 05 F0 45 A0 C3 D1 [20:56:23]Write to MH i2c: E2 0D 00 6A 13 80 0D 02 02 05 00 F0 45 A0 C3 D1 00 00 6A [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:23]Read from MH i2c: E2 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [20:56:23]RAPDU: 90 00 [20:56:23]wFMCommunicate OK [20:56:23]wFMCommunicate request_size=4 [20:56:23]MH_SAM_APDU [20:56:23]CAPDU: 80 0D 03 02 [20:56:23]Write to MH i2c: E2 08 00 6B 13 80 0D 03 02 00 00 00 00 F9 [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:24]Read from MH i2c: E2 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: E2 0B 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: E2 0B 00 6B 13 00 97 EA 52 35 72 97 FE 1E 90 00 27 [20:56:24]RAPDU: 97 EA 52 35 72 97 FE 1E 90 00 [20:56:24]wFMCommunicate OK [20:56:24]SAM_PROTO_SignData done [20:56:24]FM_MakeSignedData done [20:56:24]CreateOFDProtocolMessage [20:56:24]wFMCommunicate request_size=4 [20:56:24]MH_SAM_APDU [20:56:24]CAPDU: 80 11 00 00 [20:56:24]Write to MH i2c: E2 08 00 6C 13 80 11 00 00 00 00 00 00 F9 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:24]Read from MH i2c: E2 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: E2 17 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: E2 17 00 6C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [20:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:56:24]wFMCommunicate OK [20:56:24]CreateOFDProtocolMessage done [20:56:24]OFDSenderStorePacket 192424 [20:56:24]StoreOFDPacket docnum=192424 [20:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EF 3C 07 01 B8 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 F7 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EF 02 00 35 04 06 00 C4 F0 45 A0 C3 D1 97 EA 52 35 72 97 FE 1E [20:56:24]CheckFolder [20:56:24]dirname=/storage/ofd_packets [20:56:24]CheckFolder done [20:56:24]ProducePacketName [20:56:24]name=ofd_packets/00192424 [20:56:24]NVStorageSaveData ofd_packets/00192424 [20:56:24]File name is /storage/ofd_packets/00192424 [20:56:24]Write 301 bytes [20:56:24]NVStorageSaveData done [20:56:24]OFDSenderStorePacket done [20:56:24]KKMCreateOFDPacket done [20:56:24]NVStorageSaveData kkm_last_timestamp [20:56:24]File name is /storage/kkm_last_timestamp [20:56:24]Write 4 bytes [20:56:24]NVStorageSaveData done [20:56:24]ExternCall_PrintAddStr [20:56:24]wPrintStart [20:56:24]Write to MH i2c: 01 00 00 6D 13 80 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [20:56:24]RasterBufferAndPrint [20:56:24]line Счет N : (1)31741 [20:56:24]line ИНН: 02508201610067 [20:56:24]line Контрольно-Кассовый Чек [20:56:24]line ПРОДАЖА [20:56:24]line ТРК (МРК, ГНК) : 21 [20:56:24]line Товар: 2710124130 [20:56:24]line Аи-92-К-5 [20:56:24]line 2.990 * 66.90 [20:56:24]line = 200.03 [20:56:24]line НДС 12% НСП 1% [20:56:24]line > о реализуемом товаре [20:56:24]line ИТОГО: 200.03 [20:56:24]line НСП 1% : 1.77 [20:56:24]line НДС 12% : 21.24 [20:56:24]line Наличными: 0.00 [20:56:24]line Безнал.: 200.03 [20:56:24]line Место: АЗС № 170 "Партнер Нефть" [20:56:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:56:24]line СНО: Общий режим [20:56:24]line Чек 456 27.10.2024 20:56 [20:56:24]line Смена: 542 ФФД: 1.0 [20:56:24]line ЗНМ: 0300000110 [20:56:24]line РНМ: 0000000000091776 [20:56:24]line Версия ККМ: 001 [20:56:24]line Платежная система: Кыргызкоммерцбанк [20:56:24]line ФМ: 0000000000871754 [20:56:24]line ФД: 192424 [20:56:24]line ФПД: 216536239358929 [20:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205623&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192424&fm=216536239358929&tin=02508201610067®Number=0000000000091776&sum=20003 [20:56:24]OFD Sender: Processing packet 192424 [packets to send 75, broken 74] [20:56:24]ProducePacketName [20:56:24]name=ofd_packets/00192424 [20:56:24]OFD Sender: To server: pG, [20:56:24]CommunicateWithHost lk.salyk.kg:30040 [20:56:24]ConnectInit lk.salyk.kg [20:56:24]written 0, free lines is 4095 [20:56:24]Connected sock=10 [20:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EF 3C 07 01 B8 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 F7 A8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EF 02 00 35 04 06 00 C4 F0 45 A0 C3 D1 97 EA 52 35 72 97 FE 1E [20:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1B 7C 47 00 A9 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EF 02 00 F4 03 04 00 BE 4D 1E 67 B6 04 01 00 00 A1 38 82 65 59 5A F4 66 [20:56:24]CommunicateWithHost err = 0 [20:56:24]CheckOFDResponse [20:56:24]1017 (14) - 77093643461234 [20:56:24]1041 (16) - 0000000000871754 [20:56:24]1040 (4) - 192424 [20:56:24]1012 (4) - 27.10.2024 14:27 [20:56:24]1206 (1) - 0 [20:56:24]OFD Sender: Remove packet 192424 [20:56:24]ProducePacketName [20:56:24]name=ofd_packets/00192424 [20:56:24]NVStorageDeleteData [20:56:24]Write to MH i2c: 01 00 00 97 13 AA [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 BA 0C 77 [20:56:24]RasterBufferAndPrint [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]line [20:56:24]written 0, free lines is 3264 [20:56:24]MH_Cut [20:56:24]Write to MH i2c: D1 01 00 9E 13 01 83 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 01 00 [20:56:24]MH_I2C_Read... [20:56:24]Read from MH i2c: D1 01 00 9E 13 00 82 [20:56:24]Write to MH i2c: 01 00 00 9F 13 B2 [20:56:24]Write i2c OK [20:56:24]MH_I2C_Read... [20:56:25]OFD Sender: No OFD packet to send [20:56:25]*** Cut start [20:56:25]*** Partial cut [20:56:25]*** CUTSNS_PIN = 1 [20:56:25]*** CUTSNS_PIN = 0 [20:56:26]*** Brake cut motor [20:56:26]Read from MH i2c: 01 [20:56:26]MH_I2C_Read... [20:56:26]*** Stop cut motor [20:56:26]*** Cut end [20:56:26]Read from MH i2c: 01 07 00 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [20:56:26]process_action close_receipt done [20:56:26]requested_data is exist [20:56:26]produce_requested_data [20:56:26]requested_item fm.sn is exist - process it [20:56:26]wFMCommunicate request_size=4 [20:56:26]MH_SAM_APDU [20:56:26]CAPDU: 80 11 00 00 [20:56:26]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [20:56:26]Write i2c OK [20:56:26]MH_I2C_Read... [20:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:26]Read from MH i2c: E2 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 17 00 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [20:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:56:26]wFMCommunicate OK [20:56:26]requested_item fd.num is exist - process it [20:56:26]SAM_PROTO_GetFieldsCounters [20:56:26]wFMCommunicate request_size=4 [20:56:26]MH_SAM_APDU [20:56:26]CAPDU: 80 13 00 00 [20:56:26]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [20:56:26]Write i2c OK [20:56:26]MH_I2C_Read... [20:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:26]Read from MH i2c: E2 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 62 00 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 62 00 A1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [20:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:26]wFMCommunicate OK [20:56:26]SAM_PROTO_GetFieldsCounters done [20:56:26]requested_item shift.num is exist - process it [20:56:26]requested_item shift.opened is exist - process it [20:56:26]req_shift_opened [20:56:26]FM_GetShiftState [20:56:26]SAM_PROTO_GetShiftState [20:56:26]wFMCommunicate request_size=4 [20:56:26]MH_SAM_APDU [20:56:26]CAPDU: 80 13 01 00 [20:56:26]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [20:56:26]Write i2c OK [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 [20:56:26]MH_I2C_Read... [20:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:26]Read from MH i2c: E2 0E 00 [20:56:26]MH_I2C_Read... [20:56:26]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 73 [20:56:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [20:56:26]wFMCommunicate OK [20:56:26]SAM_PROTO_GetShiftState done [20:56:26]FM_GetShiftState done [20:56:26]req_shift_opened done [20:56:26]requested_item shift.open_date is exist - process it [20:56:26]req_shift_open_date [20:56:26]req_shift_open_date done [20:56:26]produce_requested_data done [20:56:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192424,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [20:56:26]process_action_free close_receipt [20:56:26]json_value_free [20:56:26]json_value_free done [20:56:26]process_json_proto returns [20:56:26]Send response to host [20:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192424,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [20:56:26]free response buf [20:56:26]execute_script done [20:56:26]execute_script returns [20:56:26]free content buf [20:56:26]Sock 7.Close socket [20:56:26]Sock 7.Thread stoped [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:22]accept exits with 9 [21:03:22]New connection [21:03:22]New thread 3066563940 created [21:03:22]Thread 3066707300 joined [21:03:22]Waiting for new connection... [21:03:22] Sock 9.Parse request [21:03:22]Sock 9.Check first char [21:03:22]Sock 9.First char is OK [21:03:22]request: POST /json_proto HTTP/1.0 [21:03:22]Method: POST [21:03:22]URL: /json_proto [21:03:22]Method is POST - this is cgi request [21:03:22]url: /json_proto [21:03:22]query_string will be loaded in cgi processing [21:03:22]execute_cgi json_proto POST (null) [21:03:22]execute_cgi path=json_proto method=POST [21:03:22]POST find Content-Length [21:03:22]Host: 172.17.63.131:8080 [21:03:22]Content-Length: 681 [21:03:22]Content-Type: application/json [21:03:22] [21:03:22]POST finish read [21:03:22]Found Content-Length = 681 [21:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:22]execute_script... [21:03: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)31743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:22]POST & json_proto [21:03:22]process_json_proto [21:03:22]json parsed OK: [21:03:22]protocol is kg_v1.0 [21:03:22]action value=close_receipt [21:03:22]process_action close_receipt [21:03:22]cmd_close_receipt [21:03:22]MH_GetDate [21:03:22]Write to MH i2c: F0 00 00 A3 13 A5 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 A3 13 00 9B AA 1E 67 22 05 6E 64 71 [21:03:22]GetLastDocTimeStamp 1730062583 [21:03:22]current date 1730063003 [21:03:22]FM_GetShiftState [21:03:22]SAM_PROTO_GetShiftState [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 13 01 00 [21:03:22]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 75 [21:03:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:03:22]wFMCommunicate OK [21:03:22]SAM_PROTO_GetShiftState done [21:03:22]FM_GetShiftState done [21:03:22]opened in 1729989159 [21:03:22]opened+sec_in_day 1730075559 [21:03:22]quantity*price = 100015 [21:03:22]sum+1 = 100017 [21:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 457 27.10.2024 21:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192425 ФПД: 258762061378285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192425&fm=258762061378285&tin=02508201610067®Number=0000000000091776&sum=100000 [21:03:23]StoreToDocumentArchive [21:03:23]shift 542 fd 192425 [21:03:23]save to /storage/0542/doc_00192425 [21:03:23]save last doc name /storage/0542/doc_00192425 to /storage/kkm_last_doc_name [21:03:23]save OK [21:03:23]Clear old archive folders... [21:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:23]tlvbuf is 019F8610 [21:03:23]SAM_PROTO_ClearQueue [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 09 00 00 [21:03:23]Write to MH i2c: E2 08 00 B1 13 80 09 00 00 00 00 00 00 36 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]SAM_PROTO_ClearQueue done [21:03:23]KKMCreateOFDPacket [21:03:23]OFDProtocolAddRootSTLVToBuf [21:03:23]FM_MakeSignedData [21:03:23]FM_MakeSignedData [21:03:23]SAM_PROTO_SignData [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 01 02 [21:03:23]Write to MH i2c: E2 08 00 B2 13 80 0D 01 02 00 00 00 00 3E [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=255 [21:03:23]MH_SAM_APDU [21:03: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 9B AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EF 02 00 35 04 06 00 EB [21:03:23]Write to MH i2c: E2 02 01 B3 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 9B AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EF 02 00 35 04 06 00 EB 00 00 05 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=10 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 02 02 05 57 BC BF F2 ED [21:03:23]Write to MH i2c: E2 0D 00 B4 13 80 0D 02 02 05 00 57 BC BF F2 ED 00 00 FC [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 03 02 [21:03:23]Write to MH i2c: E2 08 00 B5 13 80 0D 03 02 00 00 00 00 43 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 0B 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 0B 00 B5 13 00 42 03 4C B3 F5 3D 0D 9D 90 00 64 [21:03:23]RAPDU: 42 03 4C B3 F5 3D 0D 9D 90 00 [21:03:23]wFMCommunicate OK [21:03:23]SAM_PROTO_SignData done [21:03:23]FM_MakeSignedData done [21:03:23]CreateOFDProtocolMessage [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 11 00 00 [21:03:23]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 17 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [21:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:03:23]wFMCommunicate OK [21:03:23]CreateOFDProtocolMessage done [21:03:23]OFDSenderStorePacket 192425 [21:03:23]StoreOFDPacket docnum=192425 [21:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 29 4B 07 01 BF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 9B AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EF 02 00 35 04 06 00 EB 57 BC BF F2 ED 42 03 4C B3 F5 3D 0D 9D [21:03:23]CheckFolder [21:03:23]dirname=/storage/ofd_packets [21:03:23]CheckFolder done [21:03:23]ProducePacketName [21:03:23]name=ofd_packets/00192425 [21:03:23]NVStorageSaveData ofd_packets/00192425 [21:03:23]File name is /storage/ofd_packets/00192425 [21:03:23]Write 301 bytes [21:03:23]NVStorageSaveData done [21:03:23]OFDSenderStorePacket done [21:03:23]KKMCreateOFDPacket done [21:03:23]NVStorageSaveData kkm_last_timestamp [21:03:23]File name is /storage/kkm_last_timestamp [21:03:23]Write 4 bytes [21:03:23]NVStorageSaveData done [21:03:23]ExternCall_PrintAddStr [21:03:23]wPrintStart [21:03:23]Write to MH i2c: 01 00 00 B7 13 CA [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [21:03:23]RasterBufferAndPrint [21:03:23]line Счет N : (1)31743 [21:03:23]line ИНН: 02508201610067 [21:03:23]line Контрольно-Кассовый Чек [21:03:23]line ПРОДАЖА [21:03:23]line ТРК (МРК, ГНК) : 21 [21:03:23]line Товар: 2710124130 [21:03:23]line Аи-92-К-5 [21:03:23]line 14.950 * 66.90 [21:03:23]line = 1000.16 [21:03:23]line НДС 12% НСП 1% [21:03:23]line > о реализуемом товаре [21:03:23]line ОКРУГЛЕНИЕ: -0.16 [21:03:23]line ИТОГО: 1000.00 [21:03:23]line Внесено: 1000.00 [21:03:23]line СДАЧА: 0.00 [21:03:23]line НСП 1% : 8.85 [21:03:23]line НДС 12% : 106.21 [21:03:23]line Наличными: 1000.00 [21:03:23]line Безнал.: 0.00 [21:03:23]line Место: АЗС № 170 "Партнер Нефть" [21:03:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:03:23]line СНО: Общий режим [21:03:23]line Чек 457 27.10.2024 21:03 [21:03:23]line Смена: 542 ФФД: 1.0 [21:03:23]line ЗНМ: 0300000110 [21:03:23]line РНМ: 0000000000091776 [21:03:23]line Версия ККМ: 001 [21:03:23]line ФМ: 0000000000871754 [21:03:23]line ФД: 192425 [21:03:23]line ФПД: 258762061378285 [21:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192425&fm=258762061378285&tin=02508201610067®Number=0000000000091776&sum=100000 [21:03:24]OFD Sender: Processing packet 192425 [packets to send 75, broken 74] [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00192425 [21:03:24]OFD Sender: To server: pG, [21:03:24]CommunicateWithHost lk.salyk.kg:30040 [21:03:24]ConnectInit lk.salyk.kg [21:03:24]written 0, free lines is 4095 [21:03:24]Connected sock=10 [21:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 29 4B 07 01 BF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 01 00 00 F4 03 04 00 9B AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EF 02 00 35 04 06 00 EB 57 BC BF F2 ED 42 03 4C B3 F5 3D 0D 9D [21:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 9F 47 00 D6 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EF 02 00 F4 03 04 00 62 4F 1E 67 B6 04 01 00 00 02 15 D4 EC 20 6E 15 4E [21:03:24]CommunicateWithHost err = 0 [21:03:24]CheckOFDResponse [21:03:24]1017 (14) - 77093643461234 [21:03:24]1041 (16) - 0000000000871754 [21:03:24]1040 (4) - 192425 [21:03:24]1012 (4) - 27.10.2024 14:34 [21:03:24]1206 (1) - 0 [21:03:24]OFD Sender: Remove packet 192425 [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00192425 [21:03:24]NVStorageDeleteData [21:03:24]Write to MH i2c: 01 00 00 E2 13 F5 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 A5 0C AD [21:03:24]RasterBufferAndPrint [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]written 0, free lines is 3242 [21:03:24]MH_Cut [21:03:24]Write to MH i2c: D1 01 00 E9 13 01 CE [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 01 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 01 00 E9 13 00 CD [21:03:24]Write to MH i2c: 01 00 00 EA 13 FD [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:25]OFD Sender: No OFD packet to send [21:03:25]*** Cut start [21:03:25]*** Partial cut [21:03:25]*** CUTSNS_PIN = 1 [21:03:25]*** CUTSNS_PIN = 0 [21:03:25]*** Brake cut motor [21:03:26]Read from MH i2c: 01 [21:03:26]MH_I2C_Read... [21:03:26]*** Stop cut motor [21:03:26]*** Cut end [21:03:26]Read from MH i2c: 01 07 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [21:03:26]process_action close_receipt done [21:03:26]requested_data is exist [21:03:26]produce_requested_data [21:03:26]requested_item fm.sn is exist - process it [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 11 00 00 [21:03:26]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [21:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:03:26]wFMCommunicate OK [21:03:26]requested_item fd.num is exist - process it [21:03:26]SAM_PROTO_GetFieldsCounters [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 00 00 [21:03:26]Write to MH i2c: E2 08 00 EC 13 80 13 00 00 00 00 00 00 7B [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 EC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [21:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetFieldsCounters done [21:03:26]requested_item shift.num is exist - process it [21:03:26]requested_item shift.opened is exist - process it [21:03:26]req_shift_opened [21:03:26]FM_GetShiftState [21:03:26]SAM_PROTO_GetShiftState [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 01 00 [21:03:26]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BE [21:03:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetShiftState done [21:03:26]FM_GetShiftState done [21:03:26]req_shift_opened done [21:03:26]requested_item shift.open_date is exist - process it [21:03:26]req_shift_open_date [21:03:26]req_shift_open_date done [21:03:26]produce_requested_data done [21:03:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192425,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:03:26]process_action_free close_receipt [21:03:26]json_value_free [21:03:26]json_value_free done [21:03:26]process_json_proto returns [21:03:26]Send response to host [21:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192425,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:03:26]free response buf [21:03:26]execute_script done [21:03:26]execute_script returns [21:03:26]free content buf [21:03:26]Sock 9.Close socket [21:03:26]Sock 9.Thread stoped [21:03:30]OFD Sender: No OFD packet to send [21:03:32]accept exits with 7 [21:03:32]New connection [21:03:32]New thread 3066707300 created [21:03:32]Thread 3066563940 joined [21:03:32]Waiting for new connection... [21:03:32] Sock 7.Parse request [21:03:32]Sock 7.Check first char [21:03:32]Sock 7.First char is OK [21:03:32]request: POST /json_proto HTTP/1.0 [21:03:32]Method: POST [21:03:32]URL: /json_proto [21:03:32]Method is POST - this is cgi request [21:03:32]url: /json_proto [21:03:32]query_string will be loaded in cgi processing [21:03:32]execute_cgi json_proto POST (null) [21:03:32]execute_cgi path=json_proto method=POST [21:03:32]POST find Content-Length [21:03:32]Host: 172.17.63.131:8080 [21:03:32]Content-Length: 681 [21:03:32]Content-Type: application/json [21:03:32] [21:03:32]POST finish read [21:03:32]Found Content-Length = 681 [21:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:32]execute_script... [21:03:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:32]POST & json_proto [21:03:32]process_json_proto [21:03:32]json parsed OK: [21:03:32]protocol is kg_v1.0 [21:03:32]action value=close_receipt [21:03:32]process_action close_receipt [21:03:32]cmd_close_receipt [21:03:32]MH_GetDate [21:03:32]Write to MH i2c: F0 00 00 EE 13 F0 [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: F0 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: F0 09 00 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: F0 09 00 EE 13 00 A5 AA 1E 67 22 05 6E 64 C6 [21:03:32]GetLastDocTimeStamp 1730063003 [21:03:32]current date 1730063013 [21:03:32]FM_GetShiftState [21:03:32]SAM_PROTO_GetShiftState [21:03:32]wFMCommunicate request_size=4 [21:03:32]MH_SAM_APDU [21:03:32]CAPDU: 80 13 01 00 [21:03:32]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:32]Read from MH i2c: E2 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: E2 0E 00 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C0 [21:03:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:03:32]wFMCommunicate OK [21:03:32]SAM_PROTO_GetShiftState done [21:03:32]FM_GetShiftState done [21:03:32]opened in 1729989159 [21:03:32]opened+sec_in_day 1730075559 [21:03:32]quantity*price = 100015 [21:03:32]sum+1 = 100017 [21:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 458 27.10.2024 21:03 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192426 ФПД: 106197608863841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192426&fm=106197608863841&tin=02508201610067®Number=0000000000091776&sum=100000 [21:03:33]StoreToDocumentArchive [21:03:33]shift 542 fd 192426 [21:03:33]save to /storage/0542/doc_00192426 [21:03:33]save last doc name /storage/0542/doc_00192426 to /storage/kkm_last_doc_name [21:03:33]save OK [21:03:33]Clear old archive folders... [21:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:33]tlvbuf is 01A03280 [21:03:33]SAM_PROTO_ClearQueue [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 09 00 00 [21:03:33]Write to MH i2c: E2 08 00 FC 13 80 09 00 00 00 00 00 00 81 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [21:03:33]RAPDU: 90 00 [21:03:33]wFMCommunicate OK [21:03:33]SAM_PROTO_ClearQueue done [21:03:33]KKMCreateOFDPacket [21:03:33]OFDProtocolAddRootSTLVToBuf [21:03:33]FM_MakeSignedData [21:03:33]FM_MakeSignedData [21:03:33]SAM_PROTO_SignData [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 0D 01 02 [21:03:33]Write to MH i2c: E2 08 00 FD 13 80 0D 01 02 00 00 00 00 89 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [21:03:33]RAPDU: 90 00 [21:03:33]wFMCommunicate OK [21:03:33]wFMCommunicate request_size=255 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 A5 AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EF 02 00 35 04 06 00 60 [21:03:33]Write to MH i2c: E2 02 01 FE 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 A5 AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EF 02 00 35 04 06 00 60 00 00 D1 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [21:03:33]RAPDU: 90 00 [21:03:33]wFMCommunicate OK [21:03:33]wFMCommunicate request_size=10 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 0D 02 02 05 96 0E C0 98 61 [21:03:33]Write to MH i2c: E2 0D 00 FF 13 80 0D 02 02 05 00 96 0E C0 98 61 00 00 F3 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [21:03:33]RAPDU: 90 00 [21:03:33]wFMCommunicate OK [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 0D 03 02 [21:03:33]Write to MH i2c: E2 08 00 00 14 80 0D 03 02 00 00 00 00 8F [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0B 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0B 00 00 14 00 58 44 69 3F 1A 16 19 17 90 00 34 [21:03:33]RAPDU: 58 44 69 3F 1A 16 19 17 90 00 [21:03:33]wFMCommunicate OK [21:03:33]SAM_PROTO_SignData done [21:03:33]FM_MakeSignedData done [21:03:33]CreateOFDProtocolMessage [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 11 00 00 [21:03:33]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 17 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [21:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:03:33]wFMCommunicate OK [21:03:33]CreateOFDProtocolMessage done [21:03:33]OFDSenderStorePacket 192426 [21:03:33]StoreOFDPacket docnum=192426 [21:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 62 07 01 67 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 A5 AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EF 02 00 35 04 06 00 60 96 0E C0 98 61 58 44 69 3F 1A 16 19 17 [21:03:33]CheckFolder [21:03:33]dirname=/storage/ofd_packets [21:03:33]CheckFolder done [21:03:33]ProducePacketName [21:03:33]name=ofd_packets/00192426 [21:03:33]NVStorageSaveData ofd_packets/00192426 [21:03:33]File name is /storage/ofd_packets/00192426 [21:03:33]Write 301 bytes [21:03:33]NVStorageSaveData done [21:03:33]OFDSenderStorePacket done [21:03:33]KKMCreateOFDPacket done [21:03:33]NVStorageSaveData kkm_last_timestamp [21:03:33]File name is /storage/kkm_last_timestamp [21:03:33]Write 4 bytes [21:03:33]NVStorageSaveData done [21:03:33]ExternCall_PrintAddStr [21:03:33]wPrintStart [21:03:33]Write to MH i2c: 01 00 00 02 14 16 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 07 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [21:03:33]RasterBufferAndPrint [21:03:33]line Счет N : (1)31742 [21:03:33]line ИНН: 02508201610067 [21:03:33]line Контрольно-Кассовый Чек [21:03:33]line ПРОДАЖА [21:03:33]line ТРК (МРК, ГНК) : 12 [21:03:33]line Товар: 2710124130 [21:03:33]line Аи-92-К-5 [21:03:33]line 14.950 * 66.90 [21:03:33]line = 1000.16 [21:03:33]line НДС 12% НСП 1% [21:03:33]line > о реализуемом товаре [21:03:33]line ОКРУГЛЕНИЕ: -0.16 [21:03:33]line ИТОГО: 1000.00 [21:03:33]line Внесено: 1000.00 [21:03:33]line СДАЧА: 0.00 [21:03:33]line НСП 1% : 8.85 [21:03:33]line НДС 12% : 106.21 [21:03:33]line Наличными: 1000.00 [21:03:33]line Безнал.: 0.00 [21:03:33]line Место: АЗС № 170 "Партнер Нефть" [21:03:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:03:33]line СНО: Общий режим [21:03:33]line Чек 458 27.10.2024 21:03 [21:03:33]line Смена: 542 ФФД: 1.0 [21:03:33]line ЗНМ: 0300000110 [21:03:33]line РНМ: 0000000000091776 [21:03:33]line Версия ККМ: 001 [21:03:33]line ФМ: 0000000000871754 [21:03:33]line ФД: 192426 [21:03:33]line ФПД: 106197608863841 [21:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210333&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192426&fm=106197608863841&tin=02508201610067®Number=0000000000091776&sum=100000 [21:03:33]written 0, free lines is 4095 [21:03:34]OFD Sender: Processing packet 192426 [packets to send 75, broken 74] [21:03:34]ProducePacketName [21:03:34]name=ofd_packets/00192426 [21:03:34]OFD Sender: To server: pG, [21:03:34]CommunicateWithHost lk.salyk.kg:30040 [21:03:34]ConnectInit lk.salyk.kg [21:03:34]Connected sock=10 [21:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 62 07 01 67 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 A5 AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EF 02 00 35 04 06 00 60 96 0E C0 98 61 58 44 69 3F 1A 16 19 17 [21:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 76 B8 47 00 7C 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EF 02 00 F4 03 04 00 6C 4F 1E 67 B6 04 01 00 00 0E B1 5D E0 CD 61 86 13 [21:03:34]CommunicateWithHost err = 0 [21:03:34]CheckOFDResponse [21:03:34]1017 (14) - 77093643461234 [21:03:34]1041 (16) - 0000000000871754 [21:03:34]1040 (4) - 192426 [21:03:34]1012 (4) - 27.10.2024 14:34 [21:03:34]1206 (1) - 0 [21:03:34]OFD Sender: Remove packet 192426 [21:03:34]ProducePacketName [21:03:34]name=ofd_packets/00192426 [21:03:34]NVStorageDeleteData [21:03:34]Write to MH i2c: 01 00 00 2D 14 41 [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: 01 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: 01 07 00 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 A7 0C FB [21:03:34]RasterBufferAndPrint [21:03:34]line [21:03:34]line [21:03:34]line [21:03:34]line [21:03:34]line [21:03:34]written 0, free lines is 3248 [21:03:34]MH_Cut [21:03:34]Write to MH i2c: D1 01 00 34 14 01 1A [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: D1 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: D1 01 00 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: D1 01 00 34 14 00 19 [21:03:34]Write to MH i2c: 01 00 00 35 14 49 [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]OFD Sender: No OFD packet to send [21:03:35]*** Cut start [21:03:35]*** Partial cut [21:03:35]*** CUTSNS_PIN = 1 [21:03:35]*** CUTSNS_PIN = 0 [21:03:35]*** Brake cut motor [21:03:35]Read from MH i2c: 01 [21:03:35]MH_I2C_Read... [21:03:35]*** Stop cut motor [21:03:35]*** Cut end [21:03:35]Read from MH i2c: 01 07 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 FF 0F 5E [21:03:35]process_action close_receipt done [21:03:35]requested_data is exist [21:03:35]produce_requested_data [21:03:35]requested_item fm.sn is exist - process it [21:03:35]wFMCommunicate request_size=4 [21:03:35]MH_SAM_APDU [21:03:35]CAPDU: 80 11 00 00 [21:03:35]Write to MH i2c: E2 08 00 36 14 80 11 00 00 00 00 00 00 C4 [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:35]Read from MH i2c: E2 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 17 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 17 00 36 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [21:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:03:35]wFMCommunicate OK [21:03:35]requested_item fd.num is exist - process it [21:03:35]SAM_PROTO_GetFieldsCounters [21:03:35]wFMCommunicate request_size=4 [21:03:35]MH_SAM_APDU [21:03:35]CAPDU: 80 13 00 00 [21:03:35]Write to MH i2c: E2 08 00 37 14 80 13 00 00 00 00 00 00 C7 [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:36]Read from MH i2c: E2 [21:03:36]MH_I2C_Read... [21:03:36]Read from MH i2c: E2 62 00 [21:03:36]MH_I2C_Read... [21:03:36]Read from MH i2c: E2 62 00 37 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [21:03:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:36]wFMCommunicate OK [21:03:36]SAM_PROTO_GetFieldsCounters done [21:03:36]requested_item shift.num is exist - process it [21:03:36]requested_item shift.opened is exist - process it [21:03:36]req_shift_opened [21:03:36]FM_GetShiftState [21:03:36]SAM_PROTO_GetShiftState [21:03:36]wFMCommunicate request_size=4 [21:03:36]MH_SAM_APDU [21:03:36]CAPDU: 80 13 01 00 [21:03:36]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [21:03:36]Write i2c OK [21:03:36]MH_I2C_Read... [21:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:36]Read from MH i2c: E2 [21:03:36]MH_I2C_Read... [21:03:36]Read from MH i2c: E2 0E 00 [21:03:36]MH_I2C_Read... [21:03:36]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [21:03:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:03:36]wFMCommunicate OK [21:03:36]SAM_PROTO_GetShiftState done [21:03:36]FM_GetShiftState done [21:03:36]req_shift_opened done [21:03:36]requested_item shift.open_date is exist - process it [21:03:36]req_shift_open_date [21:03:36]req_shift_open_date done [21:03:36]produce_requested_data done [21:03:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192426,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:03:36]process_action_free close_receipt [21:03:36]json_value_free [21:03:36]json_value_free done [21:03:36]process_json_proto returns [21:03:36]Send response to host [21:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192426,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:03:36]free response buf [21:03:36]execute_script done [21:03:36]execute_script returns [21:03:36]free content buf [21:03:36]Sock 7.Close socket [21:03:36]Sock 7.Thread stoped [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:08]accept exits with 9 [21:04:08]New connection [21:04:08]New thread 3066563940 created [21:04:08]Thread 3066707300 joined [21:04:08]Waiting for new connection... [21:04:08] Sock 9.Parse request [21:04:08]Sock 9.Check first char [21:04:08]Sock 9.First char is OK [21:04:08]request: POST /json_proto HTTP/1.0 [21:04:08]Method: POST [21:04:08]URL: /json_proto [21:04:08]Method is POST - this is cgi request [21:04:08]url: /json_proto [21:04:08]query_string will be loaded in cgi processing [21:04:08]execute_cgi json_proto POST (null) [21:04:08]execute_cgi path=json_proto method=POST [21:04:08]POST find Content-Length [21:04:08]Host: 172.17.63.131:8080 [21:04:08]Content-Length: 676 [21:04:08]Content-Type: application/json [21:04:08] [21:04:08]POST finish read [21:04:08]Found Content-Length = 676 [21:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:08]execute_script... [21:04: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)31744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:08]POST & json_proto [21:04:08]process_json_proto [21:04:08]json parsed OK: [21:04:08]protocol is kg_v1.0 [21:04:08]action value=close_receipt [21:04:08]process_action close_receipt [21:04:08]cmd_close_receipt [21:04:08]MH_GetDate [21:04:08]Write to MH i2c: F0 00 00 39 14 3C [21:04:08]Write i2c OK [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: F0 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: F0 09 00 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: F0 09 00 39 14 00 CA AA 1E 67 22 05 6E 64 37 [21:04:08]GetLastDocTimeStamp 1730063013 [21:04:08]current date 1730063050 [21:04:08]FM_GetShiftState [21:04:08]SAM_PROTO_GetShiftState [21:04:08]wFMCommunicate request_size=4 [21:04:08]MH_SAM_APDU [21:04:08]CAPDU: 80 13 01 00 [21:04:08]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [21:04:08]Write i2c OK [21:04:08]MH_I2C_Read... [21:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:08]Read from MH i2c: E2 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: E2 0E 00 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0C [21:04:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:04:08]wFMCommunicate OK [21:04:08]SAM_PROTO_GetShiftState done [21:04:08]FM_GetShiftState done [21:04:08]opened in 1729989159 [21:04:08]opened+sec_in_day 1730075559 [21:04:08]quantity*price = 40006 [21:04:08]sum+1 = 40007 [21:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 459 27.10.2024 21:04 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192427 ФПД: 214553391733174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210410&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192427&fm=214553391733174&tin=02508201610067®Number=0000000000091776&sum=40000 [21:04:09]StoreToDocumentArchive [21:04:09]shift 542 fd 192427 [21:04:09]save to /storage/0542/doc_00192427 [21:04:09]save last doc name /storage/0542/doc_00192427 to /storage/kkm_last_doc_name [21:04:09]save OK [21:04:09]Clear old archive folders... [21:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:09]tlvbuf is 019D09E0 [21:04:09]SAM_PROTO_ClearQueue [21:04:09]wFMCommunicate request_size=4 [21:04:09]MH_SAM_APDU [21:04:09]CAPDU: 80 09 00 00 [21:04:09]Write to MH i2c: E2 08 00 47 14 80 09 00 00 00 00 00 00 CD [21:04:09]Write i2c OK [21:04:09]MH_I2C_Read... [21:04:09]OFD Sender: No OFD packet to send [21:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:09]Read from MH i2c: E2 [21:04:09]MH_I2C_Read... [21:04:09]Read from MH i2c: E2 03 00 [21:04:09]MH_I2C_Read... [21:04:09]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [21:04:09]RAPDU: 90 00 [21:04:09]wFMCommunicate OK [21:04:09]SAM_PROTO_ClearQueue done [21:04:09]KKMCreateOFDPacket [21:04:09]OFDProtocolAddRootSTLVToBuf [21:04:09]FM_MakeSignedData [21:04:09]FM_MakeSignedData [21:04:09]SAM_PROTO_SignData [21:04:09]wFMCommunicate request_size=4 [21:04:09]MH_SAM_APDU [21:04:09]CAPDU: 80 0D 01 02 [21:04:09]Write to MH i2c: E2 08 00 48 14 80 0D 01 02 00 00 00 00 D5 [21:04:09]Write i2c OK [21:04:09]MH_I2C_Read... [21:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:10]Read from MH i2c: E2 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [21:04:10]RAPDU: 90 00 [21:04:10]wFMCommunicate OK [21:04:10]wFMCommunicate request_size=255 [21:04:10]MH_SAM_APDU [21:04:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 CA AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EF 02 00 35 04 06 00 C3 [21:04:10]Write to MH i2c: E2 02 01 49 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 CA AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EF 02 00 35 04 06 00 C3 00 00 7C [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:10]Read from MH i2c: E2 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [21:04:10]RAPDU: 90 00 [21:04:10]wFMCommunicate OK [21:04:10]wFMCommunicate request_size=10 [21:04:10]MH_SAM_APDU [21:04:10]CAPDU: 80 0D 02 02 05 22 9A B3 19 B6 [21:04:10]Write to MH i2c: E2 0D 00 4A 14 80 0D 02 02 05 00 22 9A B3 19 B6 00 00 20 [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:10]Read from MH i2c: E2 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [21:04:10]RAPDU: 90 00 [21:04:10]wFMCommunicate OK [21:04:10]wFMCommunicate request_size=4 [21:04:10]MH_SAM_APDU [21:04:10]CAPDU: 80 0D 03 02 [21:04:10]Write to MH i2c: E2 08 00 4B 14 80 0D 03 02 00 00 00 00 DA [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:10]Read from MH i2c: E2 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 0B 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 0B 00 4B 14 00 B8 7C 34 B7 37 CE BF DD 90 00 9B [21:04:10]RAPDU: B8 7C 34 B7 37 CE BF DD 90 00 [21:04:10]wFMCommunicate OK [21:04:10]SAM_PROTO_SignData done [21:04:10]FM_MakeSignedData done [21:04:10]CreateOFDProtocolMessage [21:04:10]wFMCommunicate request_size=4 [21:04:10]MH_SAM_APDU [21:04:10]CAPDU: 80 11 00 00 [21:04:10]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:10]Read from MH i2c: E2 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 17 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [21:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:04:10]wFMCommunicate OK [21:04:10]CreateOFDProtocolMessage done [21:04:10]OFDSenderStorePacket 192427 [21:04:10]StoreOFDPacket docnum=192427 [21:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 F0 07 01 6E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 CA AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EF 02 00 35 04 06 00 C3 22 9A B3 19 B6 B8 7C 34 B7 37 CE BF DD [21:04:10]CheckFolder [21:04:10]dirname=/storage/ofd_packets [21:04:10]CheckFolder done [21:04:10]ProducePacketName [21:04:10]name=ofd_packets/00192427 [21:04:10]NVStorageSaveData ofd_packets/00192427 [21:04:10]File name is /storage/ofd_packets/00192427 [21:04:10]Write 301 bytes [21:04:10]NVStorageSaveData done [21:04:10]OFDSenderStorePacket done [21:04:10]KKMCreateOFDPacket done [21:04:10]NVStorageSaveData kkm_last_timestamp [21:04:10]File name is /storage/kkm_last_timestamp [21:04:10]Write 4 bytes [21:04:10]NVStorageSaveData done [21:04:10]ExternCall_PrintAddStr [21:04:10]wPrintStart [21:04:10]Write to MH i2c: 01 00 00 4D 14 61 [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 07 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 07 00 4D 14 00 00 00 00 00 FF 0F 76 [21:04:10]RasterBufferAndPrint [21:04:10]line Счет N : (1)31744 [21:04:10]line ИНН: 02508201610067 [21:04:10]line Контрольно-Кассовый Чек [21:04:10]line ПРОДАЖА [21:04:10]line ТРК (МРК, ГНК) : 21 [21:04:10]line Товар: 2710124130 [21:04:10]line Аи-92-К-5 [21:04:10]line 5.980 * 66.90 [21:04:10]line = 400.06 [21:04:10]line НДС 12% НСП 1% [21:04:10]line > о реализуемом товаре [21:04:10]line ОКРУГЛЕНИЕ: -0.06 [21:04:10]line ИТОГО: 400.00 [21:04:10]line Внесено: 400.00 [21:04:10]line СДАЧА: 0.00 [21:04:10]line НСП 1% : 3.54 [21:04:10]line НДС 12% : 42.48 [21:04:10]line Наличными: 400.00 [21:04:10]line Безнал.: 0.00 [21:04:10]line Место: АЗС № 170 "Партнер Нефть" [21:04:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:04:10]line СНО: Общий режим [21:04:10]line Чек 459 27.10.2024 21:04 [21:04:10]line Смена: 542 ФФД: 1.0 [21:04:10]line ЗНМ: 0300000110 [21:04:10]line РНМ: 0000000000091776 [21:04:10]line Версия ККМ: 001 [21:04:10]line ФМ: 0000000000871754 [21:04:10]line ФД: 192427 [21:04:10]line ФПД: 214553391733174 [21:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210410&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192427&fm=214553391733174&tin=02508201610067®Number=0000000000091776&sum=40000 [21:04:10]OFD Sender: Processing packet 192427 [packets to send 75, broken 74] [21:04:10]ProducePacketName [21:04:10]name=ofd_packets/00192427 [21:04:10]OFD Sender: To server: pG, [21:04:10]CommunicateWithHost lk.salyk.kg:30040 [21:04:10]ConnectInit lk.salyk.kg [21:04:10]written 0, free lines is 4095 [21:04:10]Connected sock=10 [21:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 F0 07 01 6E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 CA AA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EF 02 00 35 04 06 00 C3 22 9A B3 19 B6 B8 7C 34 B7 37 CE BF DD [21:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 21 EF 47 00 BB 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EF 02 00 F4 03 04 00 90 4F 1E 67 B6 04 01 00 00 96 2F 84 62 CC 8A B9 A3 [21:04:11]CommunicateWithHost err = 0 [21:04:11]CheckOFDResponse [21:04:11]1017 (14) - 77093643461234 [21:04:11]1041 (16) - 0000000000871754 [21:04:11]1040 (4) - 192427 [21:04:11]1012 (4) - 27.10.2024 14:34 [21:04:11]1206 (1) - 0 [21:04:11]OFD Sender: Remove packet 192427 [21:04:11]ProducePacketName [21:04:11]name=ofd_packets/00192427 [21:04:11]NVStorageDeleteData [21:04:11]Write to MH i2c: 01 00 00 78 14 8C [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: 01 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: 01 07 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 9B 0C 3A [21:04:11]RasterBufferAndPrint [21:04:11]line [21:04:11]line [21:04:11]line [21:04:11]line [21:04:11]line [21:04:11]written 0, free lines is 3236 [21:04:11]MH_Cut [21:04:11]Write to MH i2c: D1 01 00 7F 14 01 65 [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: D1 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: D1 01 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: D1 01 00 7F 14 00 64 [21:04:11]Write to MH i2c: 01 00 00 80 14 94 [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]OFD Sender: No OFD packet to send [21:04:12]*** Cut start [21:04:12]*** Partial cut [21:04:12]*** CUTSNS_PIN = 1 [21:04:12]*** CUTSNS_PIN = 0 [21:04:12]*** Brake cut motor [21:04:12]Read from MH i2c: 01 [21:04:12]MH_I2C_Read... [21:04:12]*** Stop cut motor [21:04:12]*** Cut end [21:04:12]Read from MH i2c: 01 07 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [21:04:12]process_action close_receipt done [21:04:12]requested_data is exist [21:04:12]produce_requested_data [21:04:12]requested_item fm.sn is exist - process it [21:04:12]wFMCommunicate request_size=4 [21:04:12]MH_SAM_APDU [21:04:12]CAPDU: 80 11 00 00 [21:04:12]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:12]Read from MH i2c: E2 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 17 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [21:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:04:12]wFMCommunicate OK [21:04:12]requested_item fd.num is exist - process it [21:04:12]SAM_PROTO_GetFieldsCounters [21:04:12]wFMCommunicate request_size=4 [21:04:12]MH_SAM_APDU [21:04:12]CAPDU: 80 13 00 00 [21:04:12]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:12]Read from MH i2c: E2 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 62 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 62 00 82 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:12]wFMCommunicate OK [21:04:12]SAM_PROTO_GetFieldsCounters done [21:04:12]requested_item shift.num is exist - process it [21:04:12]requested_item shift.opened is exist - process it [21:04:12]req_shift_opened [21:04:12]FM_GetShiftState [21:04:12]SAM_PROTO_GetShiftState [21:04:12]wFMCommunicate request_size=4 [21:04:12]MH_SAM_APDU [21:04:12]CAPDU: 80 13 01 00 [21:04:12]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:12]Read from MH i2c: E2 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 0E 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [21:04:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:04:12]wFMCommunicate OK [21:04:12]SAM_PROTO_GetShiftState done [21:04:12]FM_GetShiftState done [21:04:12]req_shift_opened done [21:04:12]requested_item shift.open_date is exist - process it [21:04:12]req_shift_open_date [21:04:12]req_shift_open_date done [21:04:12]produce_requested_data done [21:04:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192427,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:04:12]process_action_free close_receipt [21:04:12]json_value_free [21:04:12]json_value_free done [21:04:12]process_json_proto returns [21:04:12]Send response to host [21:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192427,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:04:12]free response buf [21:04:12]execute_script done [21:04:12]execute_script returns [21:04:12]free content buf [21:04:12]Sock 9.Close socket [21:04:12]Sock 9.Thread stoped [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:55]accept exits with 7 [21:06:55]New connection [21:06:55]New thread 3066707300 created [21:06:55]Thread 3066563940 joined [21:06:55]Waiting for new connection... [21:06:55] Sock 7.Parse request [21:06:55]Sock 7.Check first char [21:06:55]Sock 7.First char is OK [21:06:55]request: POST /json_proto HTTP/1.0 [21:06:55]Method: POST [21:06:55]URL: /json_proto [21:06:55]Method is POST - this is cgi request [21:06:55]url: /json_proto [21:06:55]query_string will be loaded in cgi processing [21:06:55]execute_cgi json_proto POST (null) [21:06:55]execute_cgi path=json_proto method=POST [21:06:55]POST find Content-Length [21:06:55]Host: 172.17.63.131:8080 [21:06:55]Content-Length: 862 [21:06:55]Content-Type: application/json [21:06:55] [21:06:55]POST finish read [21:06:55]Found Content-Length = 862 [21:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]execute_script... [21:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]POST & json_proto [21:06:55]process_json_proto [21:06:55]json parsed OK: [21:06:55]protocol is kg_v1.0 [21:06:55]action value=close_receipt [21:06:55]process_action close_receipt [21:06:55]cmd_close_receipt [21:06:55]MH_GetDate [21:06:55]Write to MH i2c: F0 00 00 84 14 87 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 84 14 00 71 AB 1E 67 22 05 6E 64 2A [21:06:55]GetLastDocTimeStamp 1730063050 [21:06:55]current date 1730063217 [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 57 [21:06:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]opened in 1729989159 [21:06:55]opened+sec_in_day 1730075559 [21:06:55]quantity*price = 20003 [21:06:55]sum+1 = 20004 [21:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 460 27.10.2024 21:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192428 ФПД: 3605445505539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192428&fm=3605445505539&tin=02508201610067®Number=0000000000091776&sum=20003 [21:06:56]StoreToDocumentArchive [21:06:56]shift 542 fd 192428 [21:06:56]save to /storage/0542/doc_00192428 [21:06:56]save last doc name /storage/0542/doc_00192428 to /storage/kkm_last_doc_name [21:06:56]save OK [21:06:56]Clear old archive folders... [21:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:56]tlvbuf is B6E9EB80 [21:06:56]SAM_PROTO_ClearQueue [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 09 00 00 [21:06:56]Write to MH i2c: E2 08 00 92 14 80 09 00 00 00 00 00 00 18 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_ClearQueue done [21:06:56]KKMCreateOFDPacket [21:06:56]OFDProtocolAddRootSTLVToBuf [21:06:56]FM_MakeSignedData [21:06:56]FM_MakeSignedData [21:06:56]SAM_PROTO_SignData [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 01 02 [21:06:56]Write to MH i2c: E2 08 00 93 14 80 0D 01 02 00 00 00 00 20 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=255 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 71 AB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EF 02 00 35 04 06 00 03 [21:06:56]Write to MH i2c: E2 02 01 94 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 71 AB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EF 02 00 35 04 06 00 03 00 00 AA [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]OFD Sender: No OFD packet to send [21:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [21:06:57]RAPDU: 90 00 [21:06:57]wFMCommunicate OK [21:06:57]wFMCommunicate request_size=10 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 0D 02 02 05 47 75 4C 72 03 [21:06:57]Write to MH i2c: E2 0D 00 95 14 80 0D 02 02 05 00 47 75 4C 72 03 00 00 AA [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [21:06:57]RAPDU: 90 00 [21:06:57]wFMCommunicate OK [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 0D 03 02 [21:06:57]Write to MH i2c: E2 08 00 96 14 80 0D 03 02 00 00 00 00 25 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 96 14 00 CD 2F 5D 70 A8 AF E9 63 90 00 92 [21:06:57]RAPDU: CD 2F 5D 70 A8 AF E9 63 90 00 [21:06:57]wFMCommunicate OK [21:06:57]SAM_PROTO_SignData done [21:06:57]FM_MakeSignedData done [21:06:57]CreateOFDProtocolMessage [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 11 00 00 [21:06:57]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [21:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:06:57]wFMCommunicate OK [21:06:57]CreateOFDProtocolMessage done [21:06:57]OFDSenderStorePacket 192428 [21:06:57]StoreOFDPacket docnum=192428 [21:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 81 07 01 81 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 71 AB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EF 02 00 35 04 06 00 03 47 75 4C 72 03 CD 2F 5D 70 A8 AF E9 63 [21:06:57]CheckFolder [21:06:57]dirname=/storage/ofd_packets [21:06:57]CheckFolder done [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00192428 [21:06:57]NVStorageSaveData ofd_packets/00192428 [21:06:57]File name is /storage/ofd_packets/00192428 [21:06:57]Write 301 bytes [21:06:57]NVStorageSaveData done [21:06:57]OFDSenderStorePacket done [21:06:57]KKMCreateOFDPacket done [21:06:57]NVStorageSaveData kkm_last_timestamp [21:06:57]File name is /storage/kkm_last_timestamp [21:06:57]Write 4 bytes [21:06:57]NVStorageSaveData done [21:06:57]ExternCall_PrintAddStr [21:06:57]wPrintStart [21:06:57]Write to MH i2c: 01 00 00 98 14 AC [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [21:06:57]RasterBufferAndPrint [21:06:57]line Счет N : (1)31745 [21:06:57]line ИНН: 02508201610067 [21:06:57]line Контрольно-Кассовый Чек [21:06:57]line ПРОДАЖА [21:06:57]line ТРК (МРК, ГНК) : 21 [21:06:57]line Товар: 2710124130 [21:06:57]line Аи-92-К-5 [21:06:57]line 2.990 * 66.90 [21:06:57]line = 200.03 [21:06:57]line НДС 12% НСП 1% [21:06:57]line > о реализуемом товаре [21:06:57]line ИТОГО: 200.03 [21:06:57]line НСП 1% : 1.77 [21:06:57]line НДС 12% : 21.24 [21:06:57]line Наличными: 0.00 [21:06:57]line Безнал.: 200.03 [21:06:57]line Место: АЗС № 170 "Партнер Нефть" [21:06:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:06:57]line СНО: Общий режим [21:06:57]line Чек 460 27.10.2024 21:06 [21:06:57]line Смена: 542 ФФД: 1.0 [21:06:57]line ЗНМ: 0300000110 [21:06:57]line РНМ: 0000000000091776 [21:06:57]line Версия ККМ: 001 [21:06:57]line Платежная система: Кыргызкоммерцбанк [21:06:57]line ФМ: 0000000000871754 [21:06:57]line ФД: 192428 [21:06:57]line ФПД: 3605445505539 [21:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192428&fm=3605445505539&tin=02508201610067®Number=0000000000091776&sum=20003 [21:06:57]OFD Sender: Processing packet 192428 [packets to send 75, broken 74] [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00192428 [21:06:57]OFD Sender: To server: pG, [21:06:57]CommunicateWithHost lk.salyk.kg:30040 [21:06:57]ConnectInit lk.salyk.kg [21:06:57]written 0, free lines is 4095 [21:06:57]Connected sock=10 [21:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 81 07 01 81 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 71 AB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EF 02 00 35 04 06 00 03 47 75 4C 72 03 CD 2F 5D 70 A8 AF E9 63 [21:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 E7 47 00 EF F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EF 02 00 F4 03 04 00 37 50 1E 67 B6 04 01 00 00 26 96 D3 D4 04 E2 69 EB [21:06:57]CommunicateWithHost err = 0 [21:06:57]CheckOFDResponse [21:06:57]1017 (14) - 77093643461234 [21:06:57]1041 (16) - 0000000000871754 [21:06:57]1040 (4) - 192428 [21:06:57]1012 (4) - 27.10.2024 14:37 [21:06:57]1206 (1) - 0 [21:06:57]OFD Sender: Remove packet 192428 [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00192428 [21:06:57]NVStorageDeleteData [21:06:57]Write to MH i2c: 01 00 00 C2 14 D6 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 BA 0C A3 [21:06:57]RasterBufferAndPrint [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]written 0, free lines is 3264 [21:06:57]MH_Cut [21:06:57]Write to MH i2c: D1 01 00 C9 14 01 AF [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 C9 14 00 AE [21:06:57]Write to MH i2c: 01 00 00 CA 14 DE [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:58]OFD Sender: No OFD packet to send [21:06:58]*** Cut start [21:06:58]*** Partial cut [21:06:58]*** CUTSNS_PIN = 1 [21:06:58]*** CUTSNS_PIN = 0 [21:06:59]*** Brake cut motor [21:06:59]Read from MH i2c: 01 [21:06:59]MH_I2C_Read... [21:06:59]*** Stop cut motor [21:06:59]*** Cut end [21:06:59]Read from MH i2c: 01 07 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [21:06:59]process_action close_receipt done [21:06:59]requested_data is exist [21:06:59]produce_requested_data [21:06:59]requested_item fm.sn is exist - process it [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 11 00 00 [21:06:59]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [21:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:06:59]wFMCommunicate OK [21:06:59]requested_item fd.num is exist - process it [21:06:59]SAM_PROTO_GetFieldsCounters [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 00 00 [21:06:59]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 CC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [21:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetFieldsCounters done [21:06:59]requested_item shift.num is exist - process it [21:06:59]requested_item shift.opened is exist - process it [21:06:59]req_shift_opened [21:06:59]FM_GetShiftState [21:06:59]SAM_PROTO_GetShiftState [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 01 00 [21:06:59]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9F [21:06:59]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetShiftState done [21:06:59]FM_GetShiftState done [21:06:59]req_shift_opened done [21:06:59]requested_item shift.open_date is exist - process it [21:06:59]req_shift_open_date [21:06:59]req_shift_open_date done [21:06:59]produce_requested_data done [21:06:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192428,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:06:59]process_action_free close_receipt [21:06:59]json_value_free [21:06:59]json_value_free done [21:06:59]process_json_proto returns [21:06:59]Send response to host [21:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192428,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:06:59]free response buf [21:06:59]execute_script done [21:06:59]execute_script returns [21:06:59]free content buf [21:06:59]Sock 7.Close socket [21:06:59]Sock 7.Thread stoped [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:09]accept exits with 9 [21:13:09]New connection [21:13:09]New thread 3066563940 created [21:13:09]Thread 3066707300 joined [21:13:09]Waiting for new connection... [21:13:09] Sock 9.Parse request [21:13:09]Sock 9.Check first char [21:13:09]Sock 9.First char is OK [21:13:09]request: POST /json_proto HTTP/1.0 [21:13:09]Method: POST [21:13:09]URL: /json_proto [21:13:09]Method is POST - this is cgi request [21:13:09]url: /json_proto [21:13:09]query_string will be loaded in cgi processing [21:13:09]execute_cgi json_proto POST (null) [21:13:09]execute_cgi path=json_proto method=POST [21:13:09]POST find Content-Length [21:13:09]Host: 172.17.63.131:8080 [21:13:09]Content-Length: 676 [21:13:09]Content-Type: application/json [21:13:09] [21:13:09]POST finish read [21:13:09]Found Content-Length = 676 [21:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:09]execute_script... [21:13: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)31746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:09]POST & json_proto [21:13:09]process_json_proto [21:13:09]json parsed OK: [21:13:09]protocol is kg_v1.0 [21:13:09]action value=close_receipt [21:13:09]process_action close_receipt [21:13:09]cmd_close_receipt [21:13:09]MH_GetDate [21:13:09]Write to MH i2c: F0 00 00 CE 14 D1 [21:13:09]Write i2c OK [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: F0 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: F0 09 00 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: F0 09 00 CE 14 00 E7 AC 1E 67 22 05 6E 64 EB [21:13:09]GetLastDocTimeStamp 1730063217 [21:13:09]current date 1730063591 [21:13:09]FM_GetShiftState [21:13:09]SAM_PROTO_GetShiftState [21:13:09]wFMCommunicate request_size=4 [21:13:09]MH_SAM_APDU [21:13:09]CAPDU: 80 13 01 00 [21:13:09]Write to MH i2c: E2 08 00 CF 14 80 13 01 00 00 00 00 00 60 [21:13:09]Write i2c OK [21:13:09]MH_I2C_Read... [21:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:09]Read from MH i2c: E2 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: E2 0E 00 [21:13:09]MH_I2C_Read... [21:13:09]Read from MH i2c: E2 0E 00 CF 14 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A1 [21:13:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:13:09]wFMCommunicate OK [21:13:09]SAM_PROTO_GetShiftState done [21:13:09]FM_GetShiftState done [21:13:09]opened in 1729989159 [21:13:09]opened+sec_in_day 1730075559 [21:13:09]quantity*price = 50041 [21:13:09]sum+1 = 50042 [21:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 461 27.10.2024 21:13 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192429 ФПД: 46511365352374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211311&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192429&fm=46511365352374&tin=02508201610067®Number=0000000000091776&sum=50000 [21:13:11]StoreToDocumentArchive [21:13:11]shift 542 fd 192429 [21:13:11]save to /storage/0542/doc_00192429 [21:13:11]save last doc name /storage/0542/doc_00192429 to /storage/kkm_last_doc_name [21:13:11]save OK [21:13:11]Clear old archive folders... [21:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:11]tlvbuf is B6E85440 [21:13:11]SAM_PROTO_ClearQueue [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 09 00 00 [21:13:11]Write to MH i2c: E2 08 00 DC 14 80 09 00 00 00 00 00 00 62 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [21:13:11]RAPDU: 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_ClearQueue done [21:13:11]KKMCreateOFDPacket [21:13:11]OFDProtocolAddRootSTLVToBuf [21:13:11]FM_MakeSignedData [21:13:11]FM_MakeSignedData [21:13:11]SAM_PROTO_SignData [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 0D 01 02 [21:13:11]Write to MH i2c: E2 08 00 DD 14 80 0D 01 02 00 00 00 00 6A [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [21:13:11]RAPDU: 90 00 [21:13:11]wFMCommunicate OK [21:13:11]wFMCommunicate request_size=255 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E7 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EF 02 00 35 04 06 00 2A [21:13:11]Write to MH i2c: E2 02 01 DE 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E7 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EF 02 00 35 04 06 00 2A 00 00 CC [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [21:13:11]RAPDU: 90 00 [21:13:11]wFMCommunicate OK [21:13:11]wFMCommunicate request_size=10 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 0D 02 02 05 4D 45 68 EB B6 [21:13:11]Write to MH i2c: E2 0D 00 DF 14 80 0D 02 02 05 00 4D 45 68 EB B6 00 00 12 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [21:13:11]RAPDU: 90 00 [21:13:11]wFMCommunicate OK [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 0D 03 02 [21:13:11]Write to MH i2c: E2 08 00 E0 14 80 0D 03 02 00 00 00 00 6F [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0B 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0B 00 E0 14 00 4F 7A C6 30 2D A4 C8 32 90 00 FA [21:13:11]RAPDU: 4F 7A C6 30 2D A4 C8 32 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_SignData done [21:13:11]FM_MakeSignedData done [21:13:11]CreateOFDProtocolMessage [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 11 00 00 [21:13:11]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [21:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:13:11]wFMCommunicate OK [21:13:11]CreateOFDProtocolMessage done [21:13:11]OFDSenderStorePacket 192429 [21:13:11]StoreOFDPacket docnum=192429 [21:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 E5 07 01 6E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E7 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EF 02 00 35 04 06 00 2A 4D 45 68 EB B6 4F 7A C6 30 2D A4 C8 32 [21:13:11]CheckFolder [21:13:11]dirname=/storage/ofd_packets [21:13:11]CheckFolder done [21:13:11]ProducePacketName [21:13:11]name=ofd_packets/00192429 [21:13:11]NVStorageSaveData ofd_packets/00192429 [21:13:11]File name is /storage/ofd_packets/00192429 [21:13:11]Write 301 bytes [21:13:11]NVStorageSaveData done [21:13:11]OFDSenderStorePacket done [21:13:11]KKMCreateOFDPacket done [21:13:11]NVStorageSaveData kkm_last_timestamp [21:13:11]File name is /storage/kkm_last_timestamp [21:13:11]Write 4 bytes [21:13:11]NVStorageSaveData done [21:13:11]OFD Sender: Processing packet 192429 [packets to send 75, broken 74] [21:13:11]ProducePacketName [21:13:11]name=ofd_packets/00192429 [21:13:11]OFD Sender: To server: pG, [21:13:11]CommunicateWithHost lk.salyk.kg:30040 [21:13:11]ConnectInit lk.salyk.kg [21:13:11]ExternCall_PrintAddStr [21:13:11]wPrintStart [21:13:11]Write to MH i2c: 01 00 00 E2 14 F6 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [21:13:11]RasterBufferAndPrint [21:13:11]line Счет N : (1)31746 [21:13:11]line ИНН: 02508201610067 [21:13:11]line Контрольно-Кассовый Чек [21:13:11]line ПРОДАЖА [21:13:11]line ТРК (МРК, ГНК) : 12 [21:13:11]line Товар: 2710124130 [21:13:11]line Аи-92-К-5 [21:13:11]line 7.480 * 66.90 [21:13:11]line = 500.41 [21:13:11]line НДС 12% НСП 1% [21:13:11]line > о реализуемом товаре [21:13:11]line ОКРУГЛЕНИЕ: -0.41 [21:13:11]line ИТОГО: 500.00 [21:13:11]line Внесено: 500.00 [21:13:11]line СДАЧА: 0.00 [21:13:11]line НСП 1% : 4.43 [21:13:11]line НДС 12% : 53.14 [21:13:11]line Наличными: 500.00 [21:13:11]line Безнал.: 0.00 [21:13:11]line Место: АЗС № 170 "Партнер Нефть" [21:13:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:13:11]line СНО: Общий режим [21:13:11]line Чек 461 27.10.2024 21:13 [21:13:11]line Смена: 542 ФФД: 1.0 [21:13:11]line ЗНМ: 0300000110 [21:13:11]line РНМ: 0000000000091776 [21:13:11]line Версия ККМ: 001 [21:13:11]line ФМ: 0000000000871754 [21:13:11]line ФД: 192429 [21:13:11]line ФПД: 46511365352374 [21:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211311&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192429&fm=46511365352374&tin=02508201610067®Number=0000000000091776&sum=50000 [21:13:11]Connected sock=11 [21:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 E5 07 01 6E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 E7 AC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EF 02 00 35 04 06 00 2A 4D 45 68 EB B6 4F 7A C6 30 2D A4 C8 32 [21:13:11]written 0, free lines is 4095 [21:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 42 D5 47 00 7B C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EF 02 00 F4 03 04 00 AD 51 1E 67 B6 04 01 00 00 F1 28 4D 3C C4 32 45 00 [21:13:12]CommunicateWithHost err = 0 [21:13:12]CheckOFDResponse [21:13:12]1017 (14) - 77093643461234 [21:13:12]1041 (16) - 0000000000871754 [21:13:12]1040 (4) - 192429 [21:13:12]1012 (4) - 27.10.2024 14:43 [21:13:12]1206 (1) - 0 [21:13:12]OFD Sender: Remove packet 192429 [21:13:12]ProducePacketName [21:13:12]name=ofd_packets/00192429 [21:13:12]NVStorageDeleteData [21:13:12]Write to MH i2c: 01 00 00 0D 15 22 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 A5 0C DA [21:13:12]RasterBufferAndPrint [21:13:12]line [21:13:12]line [21:13:12]line [21:13:12]line [21:13:12]line [21:13:12]written 0, free lines is 3242 [21:13:12]MH_Cut [21:13:12]Write to MH i2c: D1 01 00 14 15 01 FB [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: D1 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: D1 01 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: D1 01 00 14 15 00 FA [21:13:12]Write to MH i2c: 01 00 00 15 15 2A [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]OFD Sender: No OFD packet to send [21:13:13]*** Cut start [21:13:13]*** Partial cut [21:13:13]*** CUTSNS_PIN = 1 [21:13:13]*** CUTSNS_PIN = 0 [21:13:13]*** Brake cut motor [21:13:13]Read from MH i2c: 01 [21:13:13]MH_I2C_Read... [21:13:13]*** Stop cut motor [21:13:13]*** Cut end [21:13:13]Read from MH i2c: 01 07 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [21:13:13]process_action close_receipt done [21:13:13]requested_data is exist [21:13:13]produce_requested_data [21:13:13]requested_item fm.sn is exist - process it [21:13:13]wFMCommunicate request_size=4 [21:13:13]MH_SAM_APDU [21:13:13]CAPDU: 80 11 00 00 [21:13:13]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:13]Read from MH i2c: E2 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: E2 17 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [21:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:13:13]wFMCommunicate OK [21:13:13]requested_item fd.num is exist - process it [21:13:13]SAM_PROTO_GetFieldsCounters [21:13:13]wFMCommunicate request_size=4 [21:13:13]MH_SAM_APDU [21:13:13]CAPDU: 80 13 00 00 [21:13:13]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:14]Read from MH i2c: E2 [21:13:14]MH_I2C_Read... [21:13:14]Read from MH i2c: E2 62 00 [21:13:14]MH_I2C_Read... [21:13:14]Read from MH i2c: E2 62 00 17 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [21:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:14]wFMCommunicate OK [21:13:14]SAM_PROTO_GetFieldsCounters done [21:13:14]requested_item shift.num is exist - process it [21:13:14]requested_item shift.opened is exist - process it [21:13:14]req_shift_opened [21:13:14]FM_GetShiftState [21:13:14]SAM_PROTO_GetShiftState [21:13:14]wFMCommunicate request_size=4 [21:13:14]MH_SAM_APDU [21:13:14]CAPDU: 80 13 01 00 [21:13:14]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [21:13:14]Write i2c OK [21:13:14]MH_I2C_Read... [21:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:14]Read from MH i2c: E2 [21:13:14]MH_I2C_Read... [21:13:14]Read from MH i2c: E2 0E 00 [21:13:14]MH_I2C_Read... [21:13:14]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EB [21:13:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:13:14]wFMCommunicate OK [21:13:14]SAM_PROTO_GetShiftState done [21:13:14]FM_GetShiftState done [21:13:14]req_shift_opened done [21:13:14]requested_item shift.open_date is exist - process it [21:13:14]req_shift_open_date [21:13:14]req_shift_open_date done [21:13:14]produce_requested_data done [21:13:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192429,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:13:14]process_action_free close_receipt [21:13:14]json_value_free [21:13:14]json_value_free done [21:13:14]process_json_proto returns [21:13:14]Send response to host [21:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192429,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:13:14]free response buf [21:13:14]execute_script done [21:13:14]execute_script returns [21:13:14]free content buf [21:13:14]Sock 9.Close socket [21:13:14]Sock 9.Thread stoped [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]accept exits with 7 [21:26:08]New connection [21:26:08]New thread 3066707300 created [21:26:08]Thread 3066563940 joined [21:26:08]Waiting for new connection... [21:26:08] Sock 7.Parse request [21:26:08]Sock 7.Check first char [21:26:08]Sock 7.First char is OK [21:26:08]request: POST /json_proto HTTP/1.0 [21:26:08]Method: POST [21:26:08]URL: /json_proto [21:26:08]Method is POST - this is cgi request [21:26:08]url: /json_proto [21:26:08]query_string will be loaded in cgi processing [21:26:08]execute_cgi json_proto POST (null) [21:26:08]execute_cgi path=json_proto method=POST [21:26:08]POST find Content-Length [21:26:08]Host: 172.17.63.131:8080 [21:26:08]Content-Length: 681 [21:26:08]Content-Type: application/json [21:26:08] [21:26:08]POST finish read [21:26:08]Found Content-Length = 681 [21:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:08]execute_script... [21:26: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)31747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:08]POST & json_proto [21:26:08]process_json_proto [21:26:08]json parsed OK: [21:26:08]protocol is kg_v1.0 [21:26:08]action value=close_receipt [21:26:08]process_action close_receipt [21:26:08]cmd_close_receipt [21:26:08]MH_GetDate [21:26:08]Write to MH i2c: F0 00 00 19 15 1D [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: F0 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: F0 09 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: F0 09 00 19 15 00 F1 AF 1E 67 22 05 6E 64 44 [21:26:08]GetLastDocTimeStamp 1730063591 [21:26:08]current date 1730064369 [21:26:08]FM_GetShiftState [21:26:08]SAM_PROTO_GetShiftState [21:26:08]wFMCommunicate request_size=4 [21:26:08]MH_SAM_APDU [21:26:08]CAPDU: 80 13 01 00 [21:26:08]Write to MH i2c: E2 08 00 1A 15 80 13 01 00 00 00 00 00 AC [21:26:08]Write i2c OK [21:26:08]MH_I2C_Read... [21:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:08]Read from MH i2c: E2 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 0E 00 [21:26:08]MH_I2C_Read... [21:26:08]Read from MH i2c: E2 0E 00 1A 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [21:26:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:26:08]wFMCommunicate OK [21:26:08]SAM_PROTO_GetShiftState done [21:26:08]FM_GetShiftState done [21:26:08]opened in 1729989159 [21:26:08]opened+sec_in_day 1730075559 [21:26:08]quantity*price = 140021 [21:26:08]sum+1 = 140023 [21:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 462 27.10.2024 21:26 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192430 ФПД: 14800398836758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192430&fm=14800398836758&tin=02508201610067®Number=0000000000091776&sum=140000 [21:26:09]StoreToDocumentArchive [21:26:09]shift 542 fd 192430 [21:26:09]save to /storage/0542/doc_00192430 [21:26:09]save last doc name /storage/0542/doc_00192430 to /storage/kkm_last_doc_name [21:26:09]save OK [21:26:09]Clear old archive folders... [21:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:09]tlvbuf is 019E44B0 [21:26:09]SAM_PROTO_ClearQueue [21:26:09]wFMCommunicate request_size=4 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 09 00 00 [21:26:09]Write to MH i2c: E2 08 00 27 15 80 09 00 00 00 00 00 00 AE [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [21:26:09]RAPDU: 90 00 [21:26:09]wFMCommunicate OK [21:26:09]SAM_PROTO_ClearQueue done [21:26:09]KKMCreateOFDPacket [21:26:09]OFDProtocolAddRootSTLVToBuf [21:26:09]FM_MakeSignedData [21:26:09]FM_MakeSignedData [21:26:09]SAM_PROTO_SignData [21:26:09]wFMCommunicate request_size=4 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 0D 01 02 [21:26:09]Write to MH i2c: E2 08 00 28 15 80 0D 01 02 00 00 00 00 B6 [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [21:26:09]RAPDU: 90 00 [21:26:09]wFMCommunicate OK [21:26:09]wFMCommunicate request_size=255 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 F2 AF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EF 02 00 35 04 06 00 0D [21:26:09]Write to MH i2c: E2 02 01 29 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 F2 AF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EF 02 00 35 04 06 00 0D 00 00 22 [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [21:26:09]RAPDU: 90 00 [21:26:09]wFMCommunicate OK [21:26:09]wFMCommunicate request_size=10 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 0D 02 02 05 75 FC 83 E4 16 [21:26:09]Write to MH i2c: E2 0D 00 2A 15 80 0D 02 02 05 00 75 FC 83 E4 16 00 00 B1 [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [21:26:09]RAPDU: 90 00 [21:26:09]wFMCommunicate OK [21:26:09]wFMCommunicate request_size=4 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 0D 03 02 [21:26:09]Write to MH i2c: E2 08 00 2B 15 80 0D 03 02 00 00 00 00 BB [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 0B 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 0B 00 2B 15 00 CA A7 4E 71 0D B1 93 CF 90 00 0C [21:26:09]RAPDU: CA A7 4E 71 0D B1 93 CF 90 00 [21:26:09]wFMCommunicate OK [21:26:09]SAM_PROTO_SignData done [21:26:09]FM_MakeSignedData done [21:26:09]CreateOFDProtocolMessage [21:26:09]wFMCommunicate request_size=4 [21:26:09]MH_SAM_APDU [21:26:09]CAPDU: 80 11 00 00 [21:26:09]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:09]Read from MH i2c: E2 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 17 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [21:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:26:09]wFMCommunicate OK [21:26:09]CreateOFDProtocolMessage done [21:26:09]OFDSenderStorePacket 192430 [21:26:09]StoreOFDPacket docnum=192430 [21:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 7C 07 01 8D 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 F2 AF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EF 02 00 35 04 06 00 0D 75 FC 83 E4 16 CA A7 4E 71 0D B1 93 CF [21:26:09]CheckFolder [21:26:09]dirname=/storage/ofd_packets [21:26:09]CheckFolder done [21:26:09]ProducePacketName [21:26:09]name=ofd_packets/00192430 [21:26:09]NVStorageSaveData ofd_packets/00192430 [21:26:09]File name is /storage/ofd_packets/00192430 [21:26:09]Write 301 bytes [21:26:09]NVStorageSaveData done [21:26:09]OFDSenderStorePacket done [21:26:09]KKMCreateOFDPacket done [21:26:09]NVStorageSaveData kkm_last_timestamp [21:26:09]File name is /storage/kkm_last_timestamp [21:26:09]Write 4 bytes [21:26:09]NVStorageSaveData done [21:26:09]ExternCall_PrintAddStr [21:26:09]wPrintStart [21:26:09]Write to MH i2c: 01 00 00 2D 15 42 [21:26:09]Write i2c OK [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 07 00 [21:26:09]MH_I2C_Read... [21:26:09]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FF 0F 57 [21:26:09]RasterBufferAndPrint [21:26:09]line Счет N : (1)31747 [21:26:09]line ИНН: 02508201610067 [21:26:09]line Контрольно-Кассовый Чек [21:26:09]line ПРОДАЖА [21:26:09]line ТРК (МРК, ГНК) : 12 [21:26:09]line Товар: 2710124130 [21:26:09]line Аи-92-К-5 [21:26:09]line 20.930 * 66.90 [21:26:09]line = 1400.22 [21:26:09]line НДС 12% НСП 1% [21:26:09]line > о реализуемом товаре [21:26:09]line ОКРУГЛЕНИЕ: -0.22 [21:26:09]line ИТОГО: 1400.00 [21:26:09]line Внесено: 1400.00 [21:26:09]line СДАЧА: 0.00 [21:26:09]line НСП 1% : 12.39 [21:26:09]line НДС 12% : 148.70 [21:26:09]line Наличными: 1400.00 [21:26:09]line Безнал.: 0.00 [21:26:09]line Место: АЗС № 170 "Партнер Нефть" [21:26:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:26:09]line СНО: Общий режим [21:26:09]line Чек 462 27.10.2024 21:26 [21:26:09]line Смена: 542 ФФД: 1.0 [21:26:09]line ЗНМ: 0300000110 [21:26:09]line РНМ: 0000000000091776 [21:26:09]line Версия ККМ: 001 [21:26:09]line ФМ: 0000000000871754 [21:26:09]line ФД: 192430 [21:26:09]line ФПД: 14800398836758 [21:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192430&fm=14800398836758&tin=02508201610067®Number=0000000000091776&sum=140000 [21:26:10]OFD Sender: Processing packet 192430 [packets to send 75, broken 74] [21:26:10]ProducePacketName [21:26:10]name=ofd_packets/00192430 [21:26:10]OFD Sender: To server: pG, [21:26:10]CommunicateWithHost lk.salyk.kg:30040 [21:26:10]ConnectInit lk.salyk.kg [21:26:10]written 0, free lines is 4095 [21:26:10]Connected sock=10 [21:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 7C 07 01 8D 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 F2 AF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EF 02 00 35 04 06 00 0D 75 FC 83 E4 16 CA A7 4E 71 0D B1 93 CF [21:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 D5 47 00 5D D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EF 02 00 F4 03 04 00 B8 54 1E 67 B6 04 01 00 00 06 BA 32 75 27 09 57 0B [21:26:10]CommunicateWithHost err = 0 [21:26:10]CheckOFDResponse [21:26:10]1017 (14) - 77093643461234 [21:26:10]1041 (16) - 0000000000871754 [21:26:10]1040 (4) - 192430 [21:26:10]1012 (4) - 27.10.2024 14:56 [21:26:10]1206 (1) - 0 [21:26:10]OFD Sender: Remove packet 192430 [21:26:10]ProducePacketName [21:26:10]name=ofd_packets/00192430 [21:26:10]NVStorageDeleteData [21:26:10]Write to MH i2c: 01 00 00 58 15 6D [21:26:10]Write i2c OK [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 58 15 00 00 00 00 00 A2 0C 22 [21:26:10]RasterBufferAndPrint [21:26:10]line [21:26:10]line [21:26:10]line [21:26:10]line [21:26:10]line [21:26:10]written 0, free lines is 3238 [21:26:10]MH_Cut [21:26:10]Write to MH i2c: D1 01 00 5F 15 01 46 [21:26:10]Write i2c OK [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: D1 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: D1 01 00 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: D1 01 00 5F 15 00 45 [21:26:10]Write to MH i2c: 01 00 00 60 15 75 [21:26:10]Write i2c OK [21:26:10]MH_I2C_Read... [21:26:11]OFD Sender: No OFD packet to send [21:26:11]*** Cut start [21:26:11]*** Partial cut [21:26:11]*** CUTSNS_PIN = 1 [21:26:11]*** CUTSNS_PIN = 0 [21:26:11]*** Brake cut motor [21:26:12]Read from MH i2c: 01 [21:26:12]MH_I2C_Read... [21:26:12]*** Stop cut motor [21:26:12]*** Cut end [21:26:12]Read from MH i2c: 01 07 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [21:26:12]process_action close_receipt done [21:26:12]requested_data is exist [21:26:12]produce_requested_data [21:26:12]requested_item fm.sn is exist - process it [21:26:12]wFMCommunicate request_size=4 [21:26:12]MH_SAM_APDU [21:26:12]CAPDU: 80 11 00 00 [21:26:12]Write to MH i2c: E2 08 00 61 15 80 11 00 00 00 00 00 00 F0 [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:12]Read from MH i2c: E2 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 17 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 17 00 61 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [21:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:26:12]wFMCommunicate OK [21:26:12]requested_item fd.num is exist - process it [21:26:12]SAM_PROTO_GetFieldsCounters [21:26:12]wFMCommunicate request_size=4 [21:26:12]MH_SAM_APDU [21:26:12]CAPDU: 80 13 00 00 [21:26:12]Write to MH i2c: E2 08 00 62 15 80 13 00 00 00 00 00 00 F3 [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:12]Read from MH i2c: E2 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 62 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 62 00 62 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [21:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:12]wFMCommunicate OK [21:26:12]SAM_PROTO_GetFieldsCounters done [21:26:12]requested_item shift.num is exist - process it [21:26:12]requested_item shift.opened is exist - process it [21:26:12]req_shift_opened [21:26:12]FM_GetShiftState [21:26:12]SAM_PROTO_GetShiftState [21:26:12]wFMCommunicate request_size=4 [21:26:12]MH_SAM_APDU [21:26:12]CAPDU: 80 13 01 00 [21:26:12]Write to MH i2c: E2 08 00 63 15 80 13 01 00 00 00 00 00 F5 [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:12]Read from MH i2c: E2 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 0E 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: E2 0E 00 63 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 36 [21:26:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:26:12]wFMCommunicate OK [21:26:12]SAM_PROTO_GetShiftState done [21:26:12]FM_GetShiftState done [21:26:12]req_shift_opened done [21:26:12]requested_item shift.open_date is exist - process it [21:26:12]req_shift_open_date [21:26:12]req_shift_open_date done [21:26:12]produce_requested_data done [21:26:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192430,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:26:12]process_action_free close_receipt [21:26:12]json_value_free [21:26:12]json_value_free done [21:26:12]process_json_proto returns [21:26:12]Send response to host [21:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192430,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:26:12]free response buf [21:26:12]execute_script done [21:26:12]execute_script returns [21:26:12]free content buf [21:26:12]Sock 7.Close socket [21:26:12]Sock 7.Thread stoped [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:12]accept exits with 9 [21:37:12]New connection [21:37:12]New thread 3066563940 created [21:37:12]Thread 3066707300 joined [21:37:12]Waiting for new connection... [21:37:12] Sock 9.Parse request [21:37:12]Sock 9.Check first char [21:37:12]Sock 9.First char is OK [21:37:12]request: POST /json_proto HTTP/1.0 [21:37:12]Method: POST [21:37:12]URL: /json_proto [21:37:12]Method is POST - this is cgi request [21:37:12]url: /json_proto [21:37:12]query_string will be loaded in cgi processing [21:37:12]execute_cgi json_proto POST (null) [21:37:12]execute_cgi path=json_proto method=POST [21:37:12]POST find Content-Length [21:37:12]Host: 172.17.63.131:8080 [21:37:12]Content-Length: 676 [21:37:12]Content-Type: application/json [21:37:12] [21:37:12]POST finish read [21:37:12]Found Content-Length = 676 [21:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:12]execute_script... [21: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)31748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:12]POST & json_proto [21:37:12]process_json_proto [21:37:12]json parsed OK: [21:37:12]protocol is kg_v1.0 [21:37:12]action value=close_receipt [21:37:12]process_action close_receipt [21:37:12]cmd_close_receipt [21:37:12]MH_GetDate [21:37:12]Write to MH i2c: F0 00 00 64 15 68 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: F0 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: F0 09 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: F0 09 00 64 15 00 8A B2 1E 67 22 05 6E 64 2B [21:37:12]GetLastDocTimeStamp 1730064370 [21:37:12]current date 1730065034 [21:37:12]FM_GetShiftState [21:37:12]SAM_PROTO_GetShiftState [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 13 01 00 [21:37:12]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 0E 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 38 [21:37:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:37:12]wFMCommunicate OK [21:37:12]SAM_PROTO_GetShiftState done [21:37:12]FM_GetShiftState done [21:37:12]opened in 1729989159 [21:37:12]opened+sec_in_day 1730075559 [21:37:12]quantity*price = 50041 [21:37:12]sum+1 = 50042 [21:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 463 27.10.2024 21:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192431 ФПД: 35281614006761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213714&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192431&fm=35281614006761&tin=02508201610067®Number=0000000000091776&sum=50000 [21:37:13]StoreToDocumentArchive [21:37:13]shift 542 fd 192431 [21:37:13]save to /storage/0542/doc_00192431 [21:37:13]save last doc name /storage/0542/doc_00192431 to /storage/kkm_last_doc_name [21:37:13]save OK [21:37:13]Clear old archive folders... [21:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:13]tlvbuf is 019AEC60 [21:37:13]SAM_PROTO_ClearQueue [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 09 00 00 [21:37:13]Write to MH i2c: E2 08 00 72 15 80 09 00 00 00 00 00 00 F9 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_ClearQueue done [21:37:13]KKMCreateOFDPacket [21:37:13]OFDProtocolAddRootSTLVToBuf [21:37:13]FM_MakeSignedData [21:37:13]FM_MakeSignedData [21:37:13]SAM_PROTO_SignData [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 01 02 [21:37:13]Write to MH i2c: E2 08 00 73 15 80 0D 01 02 00 00 00 00 01 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=255 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 8A B2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EF 02 00 35 04 06 00 20 [21:37:13]Write to MH i2c: E2 02 01 74 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 8A B2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EF 02 00 35 04 06 00 20 00 00 06 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=10 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 02 02 05 16 A4 11 E9 E9 [21:37:13]Write to MH i2c: E2 0D 00 75 15 80 0D 02 02 05 00 16 A4 11 E9 E9 00 00 AB [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 03 02 [21:37:13]Write to MH i2c: E2 08 00 76 15 80 0D 03 02 00 00 00 00 06 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0B 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0B 00 76 15 00 23 87 EC FA 8A D0 9A 24 90 00 AF [21:37:13]RAPDU: 23 87 EC FA 8A D0 9A 24 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_SignData done [21:37:13]FM_MakeSignedData done [21:37:13]CreateOFDProtocolMessage [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 11 00 00 [21:37:13]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 17 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [21:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:37:13]wFMCommunicate OK [21:37:13]CreateOFDProtocolMessage done [21:37:13]OFDSenderStorePacket 192431 [21:37:13]StoreOFDPacket docnum=192431 [21:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4A CF 07 01 99 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 8A B2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EF 02 00 35 04 06 00 20 16 A4 11 E9 E9 23 87 EC FA 8A D0 9A 24 [21:37:13]CheckFolder [21:37:13]dirname=/storage/ofd_packets [21:37:13]CheckFolder done [21:37:13]ProducePacketName [21:37:13]name=ofd_packets/00192431 [21:37:13]NVStorageSaveData ofd_packets/00192431 [21:37:13]File name is /storage/ofd_packets/00192431 [21:37:13]Write 301 bytes [21:37:13]NVStorageSaveData done [21:37:13]OFDSenderStorePacket done [21:37:13]KKMCreateOFDPacket done [21:37:13]NVStorageSaveData kkm_last_timestamp [21:37:13]File name is /storage/kkm_last_timestamp [21:37:13]Write 4 bytes [21:37:13]NVStorageSaveData done [21:37:13]ExternCall_PrintAddStr [21:37:13]wPrintStart [21:37:13]Write to MH i2c: 01 00 00 78 15 8D [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 07 00 [21:37:13]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [21:37:14]RasterBufferAndPrint [21:37:14]line Счет N : (1)31748 [21:37:14]line ИНН: 02508201610067 [21:37:14]line Контрольно-Кассовый Чек [21:37:14]line ПРОДАЖА [21:37:14]line ТРК (МРК, ГНК) : 12 [21:37:14]line Товар: 2710124130 [21:37:14]line Аи-92-К-5 [21:37:14]line 7.480 * 66.90 [21:37:14]line = 500.41 [21:37:14]line НДС 12% НСП 1% [21:37:14]line > о реализуемом товаре [21:37:14]line ОКРУГЛЕНИЕ: -0.41 [21:37:14]line ИТОГО: 500.00 [21:37:14]line Внесено: 500.00 [21:37:14]line СДАЧА: 0.00 [21:37:14]line НСП 1% : 4.43 [21:37:14]line НДС 12% : 53.14 [21:37:14]line Наличными: 500.00 [21:37:14]line Безнал.: 0.00 [21:37:14]line Место: АЗС № 170 "Партнер Нефть" [21:37:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:37:14]line СНО: Общий режим [21:37:14]line Чек 463 27.10.2024 21:37 [21:37:14]line Смена: 542 ФФД: 1.0 [21:37:14]line ЗНМ: 0300000110 [21:37:14]line РНМ: 0000000000091776 [21:37:14]line Версия ККМ: 001 [21:37:14]line ФМ: 0000000000871754 [21:37:14]line ФД: 192431 [21:37:14]line ФПД: 35281614006761 [21:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213714&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192431&fm=35281614006761&tin=02508201610067®Number=0000000000091776&sum=50000 [21:37:14]OFD Sender: Processing packet 192431 [packets to send 75, broken 74] [21:37:14]ProducePacketName [21:37:14]name=ofd_packets/00192431 [21:37:14]OFD Sender: To server: pG, [21:37:14]CommunicateWithHost lk.salyk.kg:30040 [21:37:14]ConnectInit lk.salyk.kg [21:37:14]written 0, free lines is 4095 [21:37:14]Connected sock=7 [21: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 37 35 34 0F 01 00 00 4A CF 07 01 99 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 8A B2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EF 02 00 35 04 06 00 20 16 A4 11 E9 E9 23 87 EC FA 8A D0 9A 24 [21:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 EE 47 00 1B 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EF 02 00 F4 03 04 00 50 57 1E 67 B6 04 01 00 00 95 0C F6 8E 62 F0 D7 45 [21:37:14]CommunicateWithHost err = 0 [21:37:14]CheckOFDResponse [21:37:14]1017 (14) - 77093643461234 [21:37:14]1041 (16) - 0000000000871754 [21:37:14]1040 (4) - 192431 [21:37:14]1012 (4) - 27.10.2024 15:08 [21:37:14]1206 (1) - 0 [21:37:14]OFD Sender: Remove packet 192431 [21:37:14]ProducePacketName [21:37:14]name=ofd_packets/00192431 [21:37:14]NVStorageDeleteData [21:37:14]Write to MH i2c: 01 00 00 A3 15 B8 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 A0 0C 6B [21:37:14]RasterBufferAndPrint [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]written 0, free lines is 3239 [21:37:14]MH_Cut [21:37:14]Write to MH i2c: D1 01 00 AA 15 01 91 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 01 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 01 00 AA 15 00 90 [21:37:14]Write to MH i2c: 01 00 00 AB 15 C0 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:15]OFD Sender: No OFD packet to send [21:37:15]*** Cut start [21:37:15]*** Partial cut [21:37:15]*** CUTSNS_PIN = 1 [21:37:15]*** CUTSNS_PIN = 0 [21:37:15]*** Brake cut motor [21:37:16]Read from MH i2c: 01 [21:37:16]MH_I2C_Read... [21:37:16]*** Stop cut motor [21:37:16]*** Cut end [21:37:16]Read from MH i2c: 01 07 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [21:37:16]process_action close_receipt done [21:37:16]requested_data is exist [21:37:16]produce_requested_data [21:37:16]requested_item fm.sn is exist - process it [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 11 00 00 [21:37:16]Write to MH i2c: E2 08 00 AC 15 80 11 00 00 00 00 00 00 3B [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 17 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 17 00 AC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [21:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:37:16]wFMCommunicate OK [21:37:16]requested_item fd.num is exist - process it [21:37:16]SAM_PROTO_GetFieldsCounters [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 13 00 00 [21:37:16]Write to MH i2c: E2 08 00 AD 15 80 13 00 00 00 00 00 00 3E [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 62 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 62 00 AD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [21:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetFieldsCounters done [21:37:16]requested_item shift.num is exist - process it [21:37:16]requested_item shift.opened is exist - process it [21:37:16]req_shift_opened [21:37:16]FM_GetShiftState [21:37:16]SAM_PROTO_GetShiftState [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 13 01 00 [21:37:16]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 81 [21:37:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetShiftState done [21:37:16]FM_GetShiftState done [21:37:16]req_shift_opened done [21:37:16]requested_item shift.open_date is exist - process it [21:37:16]req_shift_open_date [21:37:16]req_shift_open_date done [21:37:16]produce_requested_data done [21:37:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192431,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:37:16]process_action_free close_receipt [21:37:16]json_value_free [21:37:16]json_value_free done [21:37:16]process_json_proto returns [21:37:16]Send response to host [21:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192431,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:37:16]free response buf [21:37:16]execute_script done [21:37:16]execute_script returns [21:37:16]free content buf [21:37:16]Sock 9.Close socket [21:37:16]Sock 9.Thread stoped [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:22]accept exits with 10 [21:46:22]New connection [21:46:22]New thread 3066707300 created [21:46:22]Thread 3066563940 joined [21:46:22]Waiting for new connection... [21:46:22] Sock 10.Parse request [21:46:22]Sock 10.Check first char [21:46:22]Sock 10.First char is OK [21:46:22]request: POST /json_proto HTTP/1.0 [21:46:22]Method: POST [21:46:22]URL: /json_proto [21:46:22]Method is POST - this is cgi request [21:46:22]url: /json_proto [21:46:22]query_string will be loaded in cgi processing [21:46:22]execute_cgi json_proto POST (null) [21:46:22]execute_cgi path=json_proto method=POST [21:46:22]POST find Content-Length [21:46:22]Host: 172.17.63.131:8080 [21:46:22]Content-Length: 862 [21:46:22]Content-Type: application/json [21:46:22] [21:46:22]POST finish read [21:46:22]Found Content-Length = 862 [21:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:22]execute_script... [21:46: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)31749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:22]POST & json_proto [21:46:22]process_json_proto [21:46:22]json parsed OK: [21:46:22]protocol is kg_v1.0 [21:46:22]action value=close_receipt [21:46:22]process_action close_receipt [21:46:22]cmd_close_receipt [21:46:22]MH_GetDate [21:46:22]Write to MH i2c: F0 00 00 AF 15 B3 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 09 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: F0 09 00 AF 15 00 B0 B4 1E 67 22 05 6E 64 9E [21:46:22]GetLastDocTimeStamp 1730065034 [21:46:22]current date 1730065584 [21:46:22]FM_GetShiftState [21:46:22]SAM_PROTO_GetShiftState [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 13 01 00 [21:46:22]Write to MH i2c: E2 08 00 B0 15 80 13 01 00 00 00 00 00 42 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0E 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0E 00 B0 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 83 [21:46:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:46:22]wFMCommunicate OK [21:46:22]SAM_PROTO_GetShiftState done [21:46:22]FM_GetShiftState done [21:46:22]opened in 1729989159 [21:46:22]opened+sec_in_day 1730075559 [21:46:22]quantity*price = 25020 [21:46:22]sum+1 = 25022 [21:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 464 27.10.2024 21:46 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192432 ФПД: 125384736829916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192432&fm=125384736829916&tin=02508201610067®Number=0000000000091776&sum=25021 [21:46:23]StoreToDocumentArchive [21:46:23]shift 542 fd 192432 [21:46:23]save to /storage/0542/doc_00192432 [21:46:23]save last doc name /storage/0542/doc_00192432 to /storage/kkm_last_doc_name [21:46:23]save OK [21:46:23]Clear old archive folders... [21:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:23]tlvbuf is 019AE9A0 [21:46:23]SAM_PROTO_ClearQueue [21:46:23]wFMCommunicate request_size=4 [21:46:23]MH_SAM_APDU [21:46:23]CAPDU: 80 09 00 00 [21:46:23]Write to MH i2c: E2 08 00 BD 15 80 09 00 00 00 00 00 00 44 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:23]Read from MH i2c: E2 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [21:46:23]RAPDU: 90 00 [21:46:23]wFMCommunicate OK [21:46:23]SAM_PROTO_ClearQueue done [21:46:23]KKMCreateOFDPacket [21:46:23]OFDProtocolAddRootSTLVToBuf [21:46:23]FM_MakeSignedData [21:46:23]FM_MakeSignedData [21:46:23]SAM_PROTO_SignData [21:46:23]wFMCommunicate request_size=4 [21:46:23]MH_SAM_APDU [21:46:23]CAPDU: 80 0D 01 02 [21:46:23]Write to MH i2c: E2 08 00 BE 15 80 0D 01 02 00 00 00 00 4C [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:23]Read from MH i2c: E2 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [21:46:23]RAPDU: 90 00 [21:46:23]wFMCommunicate OK [21:46:23]wFMCommunicate request_size=255 [21:46:23]MH_SAM_APDU [21:46: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B0 B4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EF 02 00 35 04 06 00 72 [21:46:23]Write to MH i2c: E2 02 01 BF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B0 B4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EF 02 00 35 04 06 00 72 00 00 D0 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [21:46:24]RAPDU: 90 00 [21:46:24]wFMCommunicate OK [21:46:24]wFMCommunicate request_size=10 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 0D 02 02 05 09 68 B2 F1 DC [21:46:24]Write to MH i2c: E2 0D 00 C0 15 80 0D 02 02 05 00 09 68 B2 F1 DC 00 00 49 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [21:46:24]RAPDU: 90 00 [21:46:24]wFMCommunicate OK [21:46:24]wFMCommunicate request_size=4 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 0D 03 02 [21:46:24]Write to MH i2c: E2 08 00 C1 15 80 0D 03 02 00 00 00 00 51 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 0B 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 0B 00 C1 15 00 57 07 B5 C3 B2 4F F5 81 90 00 9F [21:46:24]RAPDU: 57 07 B5 C3 B2 4F F5 81 90 00 [21:46:24]wFMCommunicate OK [21:46:24]SAM_PROTO_SignData done [21:46:24]FM_MakeSignedData done [21:46:24]CreateOFDProtocolMessage [21:46:24]wFMCommunicate request_size=4 [21:46:24]MH_SAM_APDU [21:46:24]CAPDU: 80 11 00 00 [21:46:24]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:24]Read from MH i2c: E2 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 17 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [21:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:46:24]wFMCommunicate OK [21:46:24]CreateOFDProtocolMessage done [21:46:24]OFDSenderStorePacket 192432 [21:46:24]StoreOFDPacket docnum=192432 [21:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE FB 07 01 64 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B0 B4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EF 02 00 35 04 06 00 72 09 68 B2 F1 DC 57 07 B5 C3 B2 4F F5 81 [21:46:24]CheckFolder [21:46:24]dirname=/storage/ofd_packets [21:46:24]CheckFolder done [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00192432 [21:46:24]NVStorageSaveData ofd_packets/00192432 [21:46:24]File name is /storage/ofd_packets/00192432 [21:46:24]Write 301 bytes [21:46:24]NVStorageSaveData done [21:46:24]OFDSenderStorePacket done [21:46:24]KKMCreateOFDPacket done [21:46:24]NVStorageSaveData kkm_last_timestamp [21:46:24]File name is /storage/kkm_last_timestamp [21:46:24]Write 4 bytes [21:46:24]NVStorageSaveData done [21:46:24]ExternCall_PrintAddStr [21:46:24]wPrintStart [21:46:24]Write to MH i2c: 01 00 00 C3 15 D8 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [21:46:24]RasterBufferAndPrint [21:46:24]line Счет N : (1)31749 [21:46:24]line ИНН: 02508201610067 [21:46:24]line Контрольно-Кассовый Чек [21:46:24]line ПРОДАЖА [21:46:24]line ТРК (МРК, ГНК) : 21 [21:46:24]line Товар: 2710124130 [21:46:24]line Аи-92-К-5 [21:46:24]line 3.740 * 66.90 [21:46:24]line = 250.21 [21:46:24]line НДС 12% НСП 1% [21:46:24]line > о реализуемом товаре [21:46:24]line ИТОГО: 250.21 [21:46:24]line НСП 1% : 2.21 [21:46:24]line НДС 12% : 26.57 [21:46:24]line Наличными: 0.00 [21:46:24]line Безнал.: 250.21 [21:46:24]line Место: АЗС № 170 "Партнер Нефть" [21:46:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:46:24]line СНО: Общий режим [21:46:24]line Чек 464 27.10.2024 21:46 [21:46:24]line Смена: 542 ФФД: 1.0 [21:46:24]line ЗНМ: 0300000110 [21:46:24]line РНМ: 0000000000091776 [21:46:24]line Версия ККМ: 001 [21:46:24]line Платежная система: Кыргызкоммерцбанк [21:46:24]line ФМ: 0000000000871754 [21:46:24]line ФД: 192432 [21:46:24]line ФПД: 125384736829916 [21:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214624&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192432&fm=125384736829916&tin=02508201610067®Number=0000000000091776&sum=25021 [21:46:24]written 0, free lines is 4095 [21:46:24]OFD Sender: Processing packet 192432 [packets to send 75, broken 74] [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00192432 [21:46:24]OFD Sender: To server: pG, [21:46:24]CommunicateWithHost lk.salyk.kg:30040 [21:46:24]ConnectInit lk.salyk.kg [21:46:24]Connected sock=9 [21:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE FB 07 01 64 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B0 B4 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EF 02 00 35 04 06 00 72 09 68 B2 F1 DC 57 07 B5 C3 B2 4F F5 81 [21:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 B4 47 00 FF 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EF 02 00 F4 03 04 00 76 59 1E 67 B6 04 01 00 00 8E 49 90 88 A6 F6 21 44 [21:46:24]CommunicateWithHost err = 0 [21:46:24]CheckOFDResponse [21:46:24]1017 (14) - 77093643461234 [21:46:24]1041 (16) - 0000000000871754 [21:46:24]1040 (4) - 192432 [21:46:24]1012 (4) - 27.10.2024 15:17 [21:46:24]1206 (1) - 0 [21:46:24]OFD Sender: Remove packet 192432 [21:46:24]ProducePacketName [21:46:24]name=ofd_packets/00192432 [21:46:24]NVStorageDeleteData [21:46:24]Write to MH i2c: 01 00 00 ED 15 02 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 ED 15 00 00 00 00 00 D3 0C E8 [21:46:24]RasterBufferAndPrint [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]written 0, free lines is 3289 [21:46:24]MH_Cut [21:46:24]Write to MH i2c: D1 01 00 F4 15 01 DB [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 01 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 01 00 F4 15 00 DA [21:46:24]Write to MH i2c: 01 00 00 F5 15 0A [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:25]OFD Sender: No OFD packet to send [21:46:25]*** Cut start [21:46:25]*** Partial cut [21:46:25]*** CUTSNS_PIN = 1 [21:46:25]*** CUTSNS_PIN = 0 [21:46:26]*** Brake cut motor [21:46:26]Read from MH i2c: 01 [21:46:26]MH_I2C_Read... [21:46:26]*** Stop cut motor [21:46:26]*** Cut end [21:46:26]Read from MH i2c: 01 07 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [21:46:26]process_action close_receipt done [21:46:26]requested_data is exist [21:46:26]produce_requested_data [21:46:26]requested_item fm.sn is exist - process it [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 11 00 00 [21:46:26]Write to MH i2c: E2 08 00 F6 15 80 11 00 00 00 00 00 00 85 [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 17 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 17 00 F6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [21:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:46:26]wFMCommunicate OK [21:46:26]requested_item fd.num is exist - process it [21:46:26]SAM_PROTO_GetFieldsCounters [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 13 00 00 [21:46:26]Write to MH i2c: E2 08 00 F7 15 80 13 00 00 00 00 00 00 88 [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 62 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 62 00 F7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [21:46:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:26]wFMCommunicate OK [21:46:26]SAM_PROTO_GetFieldsCounters done [21:46:26]requested_item shift.num is exist - process it [21:46:26]requested_item shift.opened is exist - process it [21:46:26]req_shift_opened [21:46:26]FM_GetShiftState [21:46:26]SAM_PROTO_GetShiftState [21:46:26]wFMCommunicate request_size=4 [21:46:26]MH_SAM_APDU [21:46:26]CAPDU: 80 13 01 00 [21:46:26]Write to MH i2c: E2 08 00 F8 15 80 13 01 00 00 00 00 00 8A [21:46:26]Write i2c OK [21:46:26]MH_I2C_Read... [21:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:26]Read from MH i2c: E2 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 0E 00 [21:46:26]MH_I2C_Read... [21:46:26]Read from MH i2c: E2 0E 00 F8 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CB [21:46:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:46:26]wFMCommunicate OK [21:46:26]SAM_PROTO_GetShiftState done [21:46:26]FM_GetShiftState done [21:46:26]req_shift_opened done [21:46:26]requested_item shift.open_date is exist - process it [21:46:26]req_shift_open_date [21:46:26]req_shift_open_date done [21:46:26]produce_requested_data done [21:46:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192432,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:46:26]process_action_free close_receipt [21:46:26]json_value_free [21:46:26]json_value_free done [21:46:26]process_json_proto returns [21:46:26]Send response to host [21:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192432,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:46:26]free response buf [21:46:26]execute_script done [21:46:26]execute_script returns [21:46:26]free content buf [21:46:26]Sock 10.Close socket [21:46:26]Sock 10.Thread stoped [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58: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:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:10]accept exits with 7 [21:59:10]New connection [21:59:10]New thread 3066563940 created [21:59:10]Thread 3066707300 joined [21:59:10]Waiting for new connection... [21:59:10] Sock 7.Parse request [21:59:10]Sock 7.Check first char [21:59:10]Sock 7.First char is OK [21:59:10]request: POST /json_proto HTTP/1.0 [21:59:10]Method: POST [21:59:10]URL: /json_proto [21:59:10]Method is POST - this is cgi request [21:59:10]url: /json_proto [21:59:10]query_string will be loaded in cgi processing [21:59:10]execute_cgi json_proto POST (null) [21:59:10]execute_cgi path=json_proto method=POST [21:59:10]POST find Content-Length [21:59:10]Host: 172.17.63.131:8080 [21:59:10]Content-Length: 681 [21:59:10]Content-Type: application/json [21:59:10] [21:59:10]POST finish read [21:59:10]Found Content-Length = 681 [21:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.360, "sum" : 2700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:10]execute_script... [21:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.360, "sum" : 2700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:10]POST & json_proto [21:59:10]process_json_proto [21:59:10]json parsed OK: [21:59:10]protocol is kg_v1.0 [21:59:10]action value=close_receipt [21:59:10]process_action close_receipt [21:59:10]cmd_close_receipt [21:59:10]MH_GetDate [21:59:10]Write to MH i2c: F0 00 00 F9 15 FD [21:59:11]Write i2c OK [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: F0 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: F0 09 00 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: F0 09 00 F9 15 00 B0 B7 1E 67 22 05 6E 64 EB [21:59:11]GetLastDocTimeStamp 1730065584 [21:59:11]current date 1730066352 [21:59:11]FM_GetShiftState [21:59:11]SAM_PROTO_GetShiftState [21:59:11]wFMCommunicate request_size=4 [21:59:11]MH_SAM_APDU [21:59:11]CAPDU: 80 13 01 00 [21:59:11]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [21:59:11]Write i2c OK [21:59:11]MH_I2C_Read... [21:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:11]Read from MH i2c: E2 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 0E 00 [21:59:11]MH_I2C_Read... [21:59:11]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [21:59:11]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:59:11]wFMCommunicate OK [21:59:11]SAM_PROTO_GetShiftState done [21:59:11]FM_GetShiftState done [21:59:11]opened in 1729989159 [21:59:11]opened+sec_in_day 1730075559 [21:59:11]quantity*price = 270008 [21:59:11]sum+1 = 270009 [21:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 2700.00 Внесено: 3500.00 СДАЧА: 800.00 НСП 1% : 23.89 НДС 12% : 286.73 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 465 27.10.2024 21:59 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192433 ФПД: 201472159574436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192433&fm=201472159574436&tin=02508201610067®Number=0000000000091776&sum=270000 [21:59:12]StoreToDocumentArchive [21:59:12]shift 542 fd 192433 [21:59:12]save to /storage/0542/doc_00192433 [21:59:12]save last doc name /storage/0542/doc_00192433 to /storage/kkm_last_doc_name [21:59:12]save OK [21:59:12]Clear old archive folders... [21:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:12]tlvbuf is 019F4860 [21:59:12]SAM_PROTO_ClearQueue [21:59:12]wFMCommunicate request_size=4 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 09 00 00 [21:59:12]Write to MH i2c: E2 08 00 07 16 80 09 00 00 00 00 00 00 8F [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [21:59:12]RAPDU: 90 00 [21:59:12]wFMCommunicate OK [21:59:12]SAM_PROTO_ClearQueue done [21:59:12]KKMCreateOFDPacket [21:59:12]OFDProtocolAddRootSTLVToBuf [21:59:12]FM_MakeSignedData [21:59:12]FM_MakeSignedData [21:59:12]SAM_PROTO_SignData [21:59:12]wFMCommunicate request_size=4 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 0D 01 02 [21:59:12]Write to MH i2c: E2 08 00 08 16 80 0D 01 02 00 00 00 00 97 [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [21:59:12]RAPDU: 90 00 [21:59:12]wFMCommunicate OK [21:59:12]wFMCommunicate request_size=255 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 9D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 B0 B7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EF 02 00 35 04 06 00 B7 [21:59:12]Write to MH i2c: E2 02 01 09 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 9D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 B0 B7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EF 02 00 35 04 06 00 B7 00 00 AB [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [21:59:12]RAPDU: 90 00 [21:59:12]wFMCommunicate OK [21:59:12]wFMCommunicate request_size=10 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 0D 02 02 05 3C E4 80 E9 A4 [21:59:12]Write to MH i2c: E2 0D 00 0A 16 80 0D 02 02 05 00 3C E4 80 E9 A4 00 00 D1 [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [21:59:12]RAPDU: 90 00 [21:59:12]wFMCommunicate OK [21:59:12]wFMCommunicate request_size=4 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 0D 03 02 [21:59:12]Write to MH i2c: E2 08 00 0B 16 80 0D 03 02 00 00 00 00 9C [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 0B 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 0B 00 0B 16 00 75 30 65 AE 97 DF B3 06 90 00 84 [21:59:12]RAPDU: 75 30 65 AE 97 DF B3 06 90 00 [21:59:12]wFMCommunicate OK [21:59:12]SAM_PROTO_SignData done [21:59:12]FM_MakeSignedData done [21:59:12]CreateOFDProtocolMessage [21:59:12]wFMCommunicate request_size=4 [21:59:12]MH_SAM_APDU [21:59:12]CAPDU: 80 11 00 00 [21:59:12]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:12]Read from MH i2c: E2 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 17 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [21:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:59:12]wFMCommunicate OK [21:59:12]CreateOFDProtocolMessage done [21:59:12]OFDSenderStorePacket 192433 [21:59:12]StoreOFDPacket docnum=192433 [21:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A A6 07 01 4F 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 9D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 B0 B7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EF 02 00 35 04 06 00 B7 3C E4 80 E9 A4 75 30 65 AE 97 DF B3 06 [21:59:12]CheckFolder [21:59:12]dirname=/storage/ofd_packets [21:59:12]CheckFolder done [21:59:12]ProducePacketName [21:59:12]name=ofd_packets/00192433 [21:59:12]NVStorageSaveData ofd_packets/00192433 [21:59:12]File name is /storage/ofd_packets/00192433 [21:59:12]Write 301 bytes [21:59:12]NVStorageSaveData done [21:59:12]OFDSenderStorePacket done [21:59:12]KKMCreateOFDPacket done [21:59:12]NVStorageSaveData kkm_last_timestamp [21:59:12]File name is /storage/kkm_last_timestamp [21:59:12]Write 4 bytes [21:59:12]NVStorageSaveData done [21:59:12]ExternCall_PrintAddStr [21:59:12]wPrintStart [21:59:12]Write to MH i2c: 01 00 00 0D 16 23 [21:59:12]Write i2c OK [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: 01 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: 01 07 00 [21:59:12]MH_I2C_Read... [21:59:12]Read from MH i2c: 01 07 00 0D 16 00 00 00 00 00 FF 0F 38 [21:59:12]RasterBufferAndPrint [21:59:12]line Счет N : (1)31750 [21:59:12]line ИНН: 02508201610067 [21:59:12]line Контрольно-Кассовый Чек [21:59:12]line ПРОДАЖА [21:59:12]line ТРК (МРК, ГНК) : 21 [21:59:12]line Товар: 2710124130 [21:59:12]line Аи-92-К-5 [21:59:12]line 40.360 * 66.90 [21:59:12]line = 2700.08 [21:59:12]line НДС 12% НСП 1% [21:59:12]line > о реализуемом товаре [21:59:12]line ОКРУГЛЕНИЕ: -0.08 [21:59:12]line ИТОГО: 2700.00 [21:59:12]line Внесено: 3500.00 [21:59:12]line СДАЧА: 800.00 [21:59:12]line НСП 1% : 23.89 [21:59:12]line НДС 12% : 286.73 [21:59:12]line Наличными: 2700.00 [21:59:12]line Безнал.: 0.00 [21:59:12]line Место: АЗС № 170 "Партнер Нефть" [21:59:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:59:12]line СНО: Общий режим [21:59:12]line Чек 465 27.10.2024 21:59 [21:59:12]line Смена: 542 ФФД: 1.0 [21:59:12]line ЗНМ: 0300000110 [21:59:12]line РНМ: 0000000000091776 [21:59:12]line Версия ККМ: 001 [21:59:12]line ФМ: 0000000000871754 [21:59:12]line ФД: 192433 [21:59:12]line ФПД: 201472159574436 [21:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192433&fm=201472159574436&tin=02508201610067®Number=0000000000091776&sum=270000 [21:59:13]OFD Sender: Processing packet 192433 [packets to send 75, broken 74] [21:59:13]ProducePacketName [21:59:13]name=ofd_packets/00192433 [21:59:13]OFD Sender: To server: pG, [21:59:13]CommunicateWithHost lk.salyk.kg:30040 [21:59:13]ConnectInit lk.salyk.kg [21:59:13]written 0, free lines is 4095 [21:59:13]Connected sock=10 [21:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A A6 07 01 4F 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 9D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 B0 B7 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EF 02 00 35 04 06 00 B7 3C E4 80 E9 A4 75 30 65 AE 97 DF B3 06 [21:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F 51 47 00 32 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EF 02 00 F4 03 04 00 77 5C 1E 67 B6 04 01 00 00 2B 73 D6 5F 76 62 0D E1 [21:59:13]CommunicateWithHost err = 0 [21:59:13]CheckOFDResponse [21:59:13]1017 (14) - 77093643461234 [21:59:13]1041 (16) - 0000000000871754 [21:59:13]1040 (4) - 192433 [21:59:13]1012 (4) - 27.10.2024 15:29 [21:59:13]1206 (1) - 0 [21:59:13]OFD Sender: Remove packet 192433 [21:59:13]ProducePacketName [21:59:13]name=ofd_packets/00192433 [21:59:13]NVStorageDeleteData [21:59:13]Write to MH i2c: 01 00 00 38 16 4E [21:59:13]Write i2c OK [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: 01 [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: 01 07 00 [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: 01 07 00 38 16 00 00 00 00 00 AD 0C 0E [21:59:13]RasterBufferAndPrint [21:59:13]line [21:59:13]line [21:59:13]line [21:59:13]line [21:59:13]line [21:59:13]written 0, free lines is 3249 [21:59:13]MH_Cut [21:59:13]Write to MH i2c: D1 01 00 3F 16 01 27 [21:59:13]Write i2c OK [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: D1 [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: D1 01 00 [21:59:13]MH_I2C_Read... [21:59:13]Read from MH i2c: D1 01 00 3F 16 00 26 [21:59:13]Write to MH i2c: 01 00 00 40 16 56 [21:59:13]Write i2c OK [21:59:13]MH_I2C_Read... [21:59:13]OFD Sender: No OFD packet to send [21:59:14]*** Cut start [21:59:14]*** Partial cut [21:59:14]*** CUTSNS_PIN = 1 [21:59:14]*** CUTSNS_PIN = 0 [21:59:14]*** Brake cut motor [21:59:14]Read from MH i2c: 01 [21:59:14]MH_I2C_Read... [21:59:14]*** Stop cut motor [21:59:14]*** Cut end [21:59:14]Read from MH i2c: 01 07 00 [21:59:14]MH_I2C_Read... [21:59:14]Read from MH i2c: 01 07 00 40 16 00 00 00 00 00 FF 0F 6B [21:59:14]process_action close_receipt done [21:59:14]requested_data is exist [21:59:14]produce_requested_data [21:59:14]requested_item fm.sn is exist - process it [21:59:14]wFMCommunicate request_size=4 [21:59:14]MH_SAM_APDU [21:59:14]CAPDU: 80 11 00 00 [21:59:14]Write to MH i2c: E2 08 00 41 16 80 11 00 00 00 00 00 00 D1 [21:59:14]Write i2c OK [21:59:14]MH_I2C_Read... [21:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:15]Read from MH i2c: E2 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 17 00 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 17 00 41 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [21:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:59:15]wFMCommunicate OK [21:59:15]requested_item fd.num is exist - process it [21:59:15]SAM_PROTO_GetFieldsCounters [21:59:15]wFMCommunicate request_size=4 [21:59:15]MH_SAM_APDU [21:59:15]CAPDU: 80 13 00 00 [21:59:15]Write to MH i2c: E2 08 00 42 16 80 13 00 00 00 00 00 00 D4 [21:59:15]Write i2c OK [21:59:15]MH_I2C_Read... [21:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:15]Read from MH i2c: E2 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 62 00 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 62 00 42 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:15]wFMCommunicate OK [21:59:15]SAM_PROTO_GetFieldsCounters done [21:59:15]requested_item shift.num is exist - process it [21:59:15]requested_item shift.opened is exist - process it [21:59:15]req_shift_opened [21:59:15]FM_GetShiftState [21:59:15]SAM_PROTO_GetShiftState [21:59:15]wFMCommunicate request_size=4 [21:59:15]MH_SAM_APDU [21:59:15]CAPDU: 80 13 01 00 [21:59:15]Write to MH i2c: E2 08 00 43 16 80 13 01 00 00 00 00 00 D6 [21:59:15]Write i2c OK [21:59:15]MH_I2C_Read... [21:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:15]Read from MH i2c: E2 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 0E 00 [21:59:15]MH_I2C_Read... [21:59:15]Read from MH i2c: E2 0E 00 43 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 17 [21:59:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [21:59:15]wFMCommunicate OK [21:59:15]SAM_PROTO_GetShiftState done [21:59:15]FM_GetShiftState done [21:59:15]req_shift_opened done [21:59:15]requested_item shift.open_date is exist - process it [21:59:15]req_shift_open_date [21:59:15]req_shift_open_date done [21:59:15]produce_requested_data done [21:59:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192433,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [21:59:15]process_action_free close_receipt [21:59:15]json_value_free [21:59:15]json_value_free done [21:59:15]process_json_proto returns [21:59:15]Send response to host [21:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192433,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [21:59:15]free response buf [21:59:15]execute_script done [21:59:15]execute_script returns [21:59:15]free content buf [21:59:15]Sock 7.Close socket [21:59:15]Sock 7.Thread stoped [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [22:05:03]New connection [22:05:03]New thread 3066707300 created [22:05:03]Thread 3066563940 joined [22:05:03]Waiting for new connection... [22:05:03] Sock 9.Parse request [22:05:03]Sock 9.Check first char [22:05:03]Sock 9.First char is OK [22:05:03]request: POST /json_proto HTTP/1.0 [22:05:03]Method: POST [22:05:03]URL: /json_proto [22:05:03]Method is POST - this is cgi request [22:05:03]url: /json_proto [22:05:03]query_string will be loaded in cgi processing [22:05:03]execute_cgi json_proto POST (null) [22:05:03]execute_cgi path=json_proto method=POST [22:05:03]POST find Content-Length [22:05:03]Host: 172.17.63.131:8080 [22:05:03]Content-Length: 676 [22:05:03]Content-Type: application/json [22:05:03] [22:05:03]POST finish read [22:05:03]Found Content-Length = 676 [22:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:03]execute_script... [22:05: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)31751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:03]POST & json_proto [22:05:03]process_json_proto [22:05:03]json parsed OK: [22:05:03]protocol is kg_v1.0 [22:05:03]action value=close_receipt [22:05:03]process_action close_receipt [22:05:03]cmd_close_receipt [22:05:03]MH_GetDate [22:05:03]Write to MH i2c: F0 00 00 44 16 49 [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: F0 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: F0 09 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: F0 09 00 44 16 00 11 B9 1E 67 22 05 6E 64 9A [22:05:03]GetLastDocTimeStamp 1730066352 [22:05:03]current date 1730066705 [22:05:03]FM_GetShiftState [22:05:03]SAM_PROTO_GetShiftState [22:05:03]wFMCommunicate request_size=4 [22:05:03]MH_SAM_APDU [22:05:03]CAPDU: 80 13 01 00 [22:05:03]Write to MH i2c: E2 08 00 45 16 80 13 01 00 00 00 00 00 D8 [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:03]Read from MH i2c: E2 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 45 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 19 [22:05:03]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:05:03]wFMCommunicate OK [22:05:03]SAM_PROTO_GetShiftState done [22:05:03]FM_GetShiftState done [22:05:03]opened in 1729989159 [22:05:03]opened+sec_in_day 1730075559 [22:05:03]quantity*price = 50041 [22:05:03]sum+1 = 50042 [22:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 466 27.10.2024 22:05 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192434 ФПД: 12604270490084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192434&fm=12604270490084&tin=02508201610067®Number=0000000000091776&sum=50000 [22:05:04]StoreToDocumentArchive [22:05:04]shift 542 fd 192434 [22:05:04]save to /storage/0542/doc_00192434 [22:05:04]save last doc name /storage/0542/doc_00192434 to /storage/kkm_last_doc_name [22:05:04]save OK [22:05:04]Clear old archive folders... [22:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:04]tlvbuf is 019B6760 [22:05:04]SAM_PROTO_ClearQueue [22:05:04]wFMCommunicate request_size=4 [22:05:04]MH_SAM_APDU [22:05:04]CAPDU: 80 09 00 00 [22:05:04]Write to MH i2c: E2 08 00 52 16 80 09 00 00 00 00 00 00 DA [22:05:04]Write i2c OK [22:05:04]MH_I2C_Read... [22:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:04]Read from MH i2c: E2 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 03 00 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [22:05:04]RAPDU: 90 00 [22:05:04]wFMCommunicate OK [22:05:04]SAM_PROTO_ClearQueue done [22:05:04]KKMCreateOFDPacket [22:05:04]OFDProtocolAddRootSTLVToBuf [22:05:04]FM_MakeSignedData [22:05:04]FM_MakeSignedData [22:05:04]SAM_PROTO_SignData [22:05:04]wFMCommunicate request_size=4 [22:05:04]MH_SAM_APDU [22:05:04]CAPDU: 80 0D 01 02 [22:05:04]Write to MH i2c: E2 08 00 53 16 80 0D 01 02 00 00 00 00 E2 [22:05:04]Write i2c OK [22:05:04]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 53 16 00 90 00 DD [22:05:05]RAPDU: 90 00 [22:05:05]wFMCommunicate OK [22:05:05]wFMCommunicate request_size=255 [22:05:05]MH_SAM_APDU [22:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 11 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EF 02 00 35 04 06 00 0B [22:05:05]Write to MH i2c: E2 02 01 54 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 11 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EF 02 00 35 04 06 00 0B 00 00 66 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 54 16 00 90 00 DE [22:05:05]RAPDU: 90 00 [22:05:05]wFMCommunicate OK [22:05:05]wFMCommunicate request_size=10 [22:05:05]MH_SAM_APDU [22:05:05]CAPDU: 80 0D 02 02 05 76 A9 10 B1 E4 [22:05:05]Write to MH i2c: E2 0D 00 55 16 80 0D 02 02 05 00 76 A9 10 B1 E4 00 00 B3 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [22:05:05]RAPDU: 90 00 [22:05:05]wFMCommunicate OK [22:05:05]wFMCommunicate request_size=4 [22:05:05]MH_SAM_APDU [22:05:05]CAPDU: 80 0D 03 02 [22:05:05]Write to MH i2c: E2 08 00 56 16 80 0D 03 02 00 00 00 00 E7 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 0B 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 0B 00 56 16 00 DA 37 72 41 41 DA 56 37 90 00 54 [22:05:05]RAPDU: DA 37 72 41 41 DA 56 37 90 00 [22:05:05]wFMCommunicate OK [22:05:05]SAM_PROTO_SignData done [22:05:05]FM_MakeSignedData done [22:05:05]CreateOFDProtocolMessage [22:05:05]wFMCommunicate request_size=4 [22:05:05]MH_SAM_APDU [22:05:05]CAPDU: 80 11 00 00 [22:05:05]Write to MH i2c: E2 08 00 57 16 80 11 00 00 00 00 00 00 E7 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 17 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 17 00 57 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [22:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:05:05]wFMCommunicate OK [22:05:05]CreateOFDProtocolMessage done [22:05:05]OFDSenderStorePacket 192434 [22:05:05]StoreOFDPacket docnum=192434 [22:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E BC 07 01 FA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 11 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EF 02 00 35 04 06 00 0B 76 A9 10 B1 E4 DA 37 72 41 41 DA 56 37 [22:05:05]CheckFolder [22:05:05]dirname=/storage/ofd_packets [22:05:05]CheckFolder done [22:05:05]ProducePacketName [22:05:05]name=ofd_packets/00192434 [22:05:05]NVStorageSaveData ofd_packets/00192434 [22:05:05]File name is /storage/ofd_packets/00192434 [22:05:05]Write 301 bytes [22:05:05]NVStorageSaveData done [22:05:05]OFDSenderStorePacket done [22:05:05]KKMCreateOFDPacket done [22:05:05]NVStorageSaveData kkm_last_timestamp [22:05:05]File name is /storage/kkm_last_timestamp [22:05:05]Write 4 bytes [22:05:05]NVStorageSaveData done [22:05:05]ExternCall_PrintAddStr [22:05:05]wPrintStart [22:05:05]Write to MH i2c: 01 00 00 58 16 6E [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: 01 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: 01 07 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: 01 07 00 58 16 00 00 00 00 00 FF 0F 83 [22:05:05]RasterBufferAndPrint [22:05:05]line Счет N : (1)31751 [22:05:05]line ИНН: 02508201610067 [22:05:05]line Контрольно-Кассовый Чек [22:05:05]line ПРОДАЖА [22:05:05]line ТРК (МРК, ГНК) : 21 [22:05:05]line Товар: 2710124130 [22:05:05]line Аи-92-К-5 [22:05:05]line 7.480 * 66.90 [22:05:05]line = 500.41 [22:05:05]line НДС 12% НСП 1% [22:05:05]line > о реализуемом товаре [22:05:05]line ОКРУГЛЕНИЕ: -0.41 [22:05:05]line ИТОГО: 500.00 [22:05:05]line Внесено: 500.00 [22:05:05]line СДАЧА: 0.00 [22:05:05]line НСП 1% : 4.43 [22:05:05]line НДС 12% : 53.14 [22:05:05]line Наличными: 500.00 [22:05:05]line Безнал.: 0.00 [22:05:05]line Место: АЗС № 170 "Партнер Нефть" [22:05:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:05:05]line СНО: Общий режим [22:05:05]line Чек 466 27.10.2024 22:05 [22:05:05]line Смена: 542 ФФД: 1.0 [22:05:05]line ЗНМ: 0300000110 [22:05:05]line РНМ: 0000000000091776 [22:05:05]line Версия ККМ: 001 [22:05:05]line ФМ: 0000000000871754 [22:05:05]line ФД: 192434 [22:05:05]line ФПД: 12604270490084 [22:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192434&fm=12604270490084&tin=02508201610067®Number=0000000000091776&sum=50000 [22:05:05]OFD Sender: Processing packet 192434 [packets to send 75, broken 74] [22:05:05]ProducePacketName [22:05:05]name=ofd_packets/00192434 [22:05:05]OFD Sender: To server: pG, [22:05:05]CommunicateWithHost lk.salyk.kg:30040 [22:05:05]ConnectInit lk.salyk.kg [22:05:05]written 0, free lines is 4095 [22:05:05]Connected sock=10 [22:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E BC 07 01 FA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 11 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EF 02 00 35 04 06 00 0B 76 A9 10 B1 E4 DA 37 72 41 41 DA 56 37 [22:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 E3 47 00 12 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EF 02 00 F4 03 04 00 D7 5D 1E 67 B6 04 01 00 00 05 49 F3 0B 92 8D 4D 2F [22:05:06]CommunicateWithHost err = 0 [22:05:06]CheckOFDResponse [22:05:06]1017 (14) - 77093643461234 [22:05:06]1041 (16) - 0000000000871754 [22:05:06]1040 (4) - 192434 [22:05:06]1012 (4) - 27.10.2024 15:35 [22:05:06]1206 (1) - 0 [22:05:06]OFD Sender: Remove packet 192434 [22:05:06]ProducePacketName [22:05:06]name=ofd_packets/00192434 [22:05:06]NVStorageDeleteData [22:05:06]Write to MH i2c: 01 00 00 83 16 99 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: 01 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: 01 07 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: 01 07 00 83 16 00 00 00 00 00 AA 0C 56 [22:05:06]RasterBufferAndPrint [22:05:06]line [22:05:06]line [22:05:06]line [22:05:06]line [22:05:06]line [22:05:06]written 0, free lines is 3248 [22:05:06]MH_Cut [22:05:06]Write to MH i2c: D1 01 00 8A 16 01 72 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: D1 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: D1 01 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: D1 01 00 8A 16 00 71 [22:05:06]Write to MH i2c: 01 00 00 8B 16 A1 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]OFD Sender: No OFD packet to send [22:05:07]*** Cut start [22:05:07]*** Partial cut [22:05:07]*** CUTSNS_PIN = 1 [22:05:07]*** CUTSNS_PIN = 0 [22:05:07]*** Brake cut motor [22:05:07]Read from MH i2c: 01 [22:05:07]MH_I2C_Read... [22:05:07]*** Stop cut motor [22:05:07]*** Cut end [22:05:07]Read from MH i2c: 01 07 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [22:05:07]process_action close_receipt done [22:05:07]requested_data is exist [22:05:07]produce_requested_data [22:05:07]requested_item fm.sn is exist - process it [22:05:07]wFMCommunicate request_size=4 [22:05:07]MH_SAM_APDU [22:05:07]CAPDU: 80 11 00 00 [22:05:07]Write to MH i2c: E2 08 00 8C 16 80 11 00 00 00 00 00 00 1C [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:07]Read from MH i2c: E2 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 17 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 17 00 8C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [22:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:05:07]wFMCommunicate OK [22:05:07]requested_item fd.num is exist - process it [22:05:07]SAM_PROTO_GetFieldsCounters [22:05:07]wFMCommunicate request_size=4 [22:05:07]MH_SAM_APDU [22:05:07]CAPDU: 80 13 00 00 [22:05:07]Write to MH i2c: E2 08 00 8D 16 80 13 00 00 00 00 00 00 1F [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:07]Read from MH i2c: E2 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 62 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 62 00 8D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:07]wFMCommunicate OK [22:05:07]SAM_PROTO_GetFieldsCounters done [22:05:07]requested_item shift.num is exist - process it [22:05:07]requested_item shift.opened is exist - process it [22:05:07]req_shift_opened [22:05:07]FM_GetShiftState [22:05:07]SAM_PROTO_GetShiftState [22:05:07]wFMCommunicate request_size=4 [22:05:07]MH_SAM_APDU [22:05:07]CAPDU: 80 13 01 00 [22:05:07]Write to MH i2c: E2 08 00 8E 16 80 13 01 00 00 00 00 00 21 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:07]Read from MH i2c: E2 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 0E 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 0E 00 8E 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 62 [22:05:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:05:07]wFMCommunicate OK [22:05:07]SAM_PROTO_GetShiftState done [22:05:07]FM_GetShiftState done [22:05:07]req_shift_opened done [22:05:07]requested_item shift.open_date is exist - process it [22:05:07]req_shift_open_date [22:05:07]req_shift_open_date done [22:05:07]produce_requested_data done [22:05:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192434,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:05:07]process_action_free close_receipt [22:05:07]json_value_free [22:05:07]json_value_free done [22:05:07]process_json_proto returns [22:05:07]Send response to host [22:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192434,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:05:07]free response buf [22:05:07]execute_script done [22:05:07]execute_script returns [22:05:07]free content buf [22:05:07]Sock 9.Close socket [22:05:07]Sock 9.Thread stoped [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:52]accept exits with 7 [22:06:52]New connection [22:06:52]New thread 3066563940 created [22:06:52]Thread 3066707300 joined [22:06:52]Waiting for new connection... [22:06:52] Sock 7.Parse request [22:06:52]Sock 7.Check first char [22:06:52]Sock 7.First char is OK [22:06:52]request: POST /json_proto HTTP/1.0 [22:06:52]Method: POST [22:06:52]URL: /json_proto [22:06:52]Method is POST - this is cgi request [22:06:52]url: /json_proto [22:06:52]query_string will be loaded in cgi processing [22:06:52]execute_cgi json_proto POST (null) [22:06:52]execute_cgi path=json_proto method=POST [22:06:52]POST find Content-Length [22:06:52]Host: 172.17.63.131:8080 [22:06:52]Content-Length: 676 [22:06:52]Content-Type: application/json [22:06:52] [22:06:52]POST finish read [22:06:52]Found Content-Length = 676 [22:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:52]execute_script... [22:06: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)31752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:52]POST & json_proto [22:06:52]process_json_proto [22:06:52]json parsed OK: [22:06:52]protocol is kg_v1.0 [22:06:52]action value=close_receipt [22:06:52]process_action close_receipt [22:06:52]cmd_close_receipt [22:06:52]MH_GetDate [22:06:52]Write to MH i2c: F0 00 00 8F 16 94 [22:06:52]Write i2c OK [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 09 00 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 09 00 8F 16 00 7E B9 1E 67 22 05 6E 64 52 [22:06:52]GetLastDocTimeStamp 1730066705 [22:06:52]current date 1730066814 [22:06:52]FM_GetShiftState [22:06:52]SAM_PROTO_GetShiftState [22:06:52]wFMCommunicate request_size=4 [22:06:52]MH_SAM_APDU [22:06:52]CAPDU: 80 13 01 00 [22:06:52]Write to MH i2c: E2 08 00 90 16 80 13 01 00 00 00 00 00 23 [22:06:52]Write i2c OK [22:06:52]MH_I2C_Read... [22:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:52]Read from MH i2c: E2 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: E2 0E 00 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: E2 0E 00 90 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 64 [22:06:52]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:06:52]wFMCommunicate OK [22:06:52]SAM_PROTO_GetShiftState done [22:06:52]FM_GetShiftState done [22:06:52]opened in 1729989159 [22:06:52]opened+sec_in_day 1730075559 [22:06:52]quantity*price = 42013 [22:06:52]sum+1 = 42014 [22:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 467 27.10.2024 22:06 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192435 ФПД: 163479407830421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220654&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192435&fm=163479407830421&tin=02508201610067®Number=0000000000091776&sum=42000 [22:06:53]StoreToDocumentArchive [22:06:53]shift 542 fd 192435 [22:06:53]save to /storage/0542/doc_00192435 [22:06:53]save last doc name /storage/0542/doc_00192435 to /storage/kkm_last_doc_name [22:06:53]save OK [22:06:53]Clear old archive folders... [22:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:53]tlvbuf is 019F8430 [22:06:53]SAM_PROTO_ClearQueue [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 09 00 00 [22:06:53]Write to MH i2c: E2 08 00 9D 16 80 09 00 00 00 00 00 00 25 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 9D 16 00 90 00 27 [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]SAM_PROTO_ClearQueue done [22:06:53]KKMCreateOFDPacket [22:06:53]OFDProtocolAddRootSTLVToBuf [22:06:53]FM_MakeSignedData [22:06:53]FM_MakeSignedData [22:06:53]SAM_PROTO_SignData [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 0D 01 02 [22:06:53]Write to MH i2c: E2 08 00 9E 16 80 0D 01 02 00 00 00 00 2D [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 9E 16 00 90 00 28 [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]wFMCommunicate request_size=255 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 7E B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EF 02 00 35 04 06 00 94 [22:06:53]Write to MH i2c: E2 02 01 9F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 7E B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EF 02 00 35 04 06 00 94 00 00 1D [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 9F 16 00 90 00 29 [22:06:54]RAPDU: 90 00 [22:06:54]wFMCommunicate OK [22:06:54]wFMCommunicate request_size=10 [22:06:54]MH_SAM_APDU [22:06:54]CAPDU: 80 0D 02 02 05 AF 04 08 25 95 [22:06:54]Write to MH i2c: E2 0D 00 A0 16 80 0D 02 02 05 00 AF 04 08 25 95 00 00 AF [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [22:06:54]RAPDU: 90 00 [22:06:54]wFMCommunicate OK [22:06:54]wFMCommunicate request_size=4 [22:06:54]MH_SAM_APDU [22:06:54]CAPDU: 80 0D 03 02 [22:06:54]Write to MH i2c: E2 08 00 A1 16 80 0D 03 02 00 00 00 00 32 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 0B 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 0B 00 A1 16 00 F1 7A C6 A6 AB 65 67 B3 90 00 34 [22:06:54]RAPDU: F1 7A C6 A6 AB 65 67 B3 90 00 [22:06:54]wFMCommunicate OK [22:06:54]SAM_PROTO_SignData done [22:06:54]FM_MakeSignedData done [22:06:54]CreateOFDProtocolMessage [22:06:54]wFMCommunicate request_size=4 [22:06:54]MH_SAM_APDU [22:06:54]CAPDU: 80 11 00 00 [22:06:54]Write to MH i2c: E2 08 00 A2 16 80 11 00 00 00 00 00 00 32 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:54]Read from MH i2c: E2 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 17 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: E2 17 00 A2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [22:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:54]wFMCommunicate OK [22:06:54]CreateOFDProtocolMessage done [22:06:54]OFDSenderStorePacket 192435 [22:06:54]StoreOFDPacket docnum=192435 [22:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 BC 07 01 E8 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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 7E B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EF 02 00 35 04 06 00 94 AF 04 08 25 95 F1 7A C6 A6 AB 65 67 B3 [22:06:54]CheckFolder [22:06:54]dirname=/storage/ofd_packets [22:06:54]CheckFolder done [22:06:54]ProducePacketName [22:06:54]name=ofd_packets/00192435 [22:06:54]NVStorageSaveData ofd_packets/00192435 [22:06:54]File name is /storage/ofd_packets/00192435 [22:06:54]Write 301 bytes [22:06:54]NVStorageSaveData done [22:06:54]OFDSenderStorePacket done [22:06:54]KKMCreateOFDPacket done [22:06:54]NVStorageSaveData kkm_last_timestamp [22:06:54]File name is /storage/kkm_last_timestamp [22:06:54]Write 4 bytes [22:06:54]NVStorageSaveData done [22:06:54]ExternCall_PrintAddStr [22:06:54]wPrintStart [22:06:54]Write to MH i2c: 01 00 00 A3 16 B9 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 07 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 07 00 A3 16 00 00 00 00 00 FF 0F CE [22:06:54]RasterBufferAndPrint [22:06:54]line Счет N : (1)31752 [22:06:54]line ИНН: 02508201610067 [22:06:54]line Контрольно-Кассовый Чек [22:06:54]line ПРОДАЖА [22:06:54]line ТРК (МРК, ГНК) : 12 [22:06:54]line Товар: 2710124130 [22:06:54]line Аи-92-К-5 [22:06:54]line 6.280 * 66.90 [22:06:54]line = 420.13 [22:06:54]line НДС 12% НСП 1% [22:06:54]line > о реализуемом товаре [22:06:54]line ОКРУГЛЕНИЕ: -0.13 [22:06:54]line ИТОГО: 420.00 [22:06:54]line Внесено: 420.00 [22:06:54]line СДАЧА: 0.00 [22:06:54]line НСП 1% : 3.72 [22:06:54]line НДС 12% : 44.62 [22:06:54]line Наличными: 420.00 [22:06:54]line Безнал.: 0.00 [22:06:54]line Место: АЗС № 170 "Партнер Нефть" [22:06:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:06:54]line СНО: Общий режим [22:06:54]line Чек 467 27.10.2024 22:06 [22:06:54]line Смена: 542 ФФД: 1.0 [22:06:54]line ЗНМ: 0300000110 [22:06:54]line РНМ: 0000000000091776 [22:06:54]line Версия ККМ: 001 [22:06:54]line ФМ: 0000000000871754 [22:06:54]line ФД: 192435 [22:06:54]line ФПД: 163479407830421 [22:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220654&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192435&fm=163479407830421&tin=02508201610067®Number=0000000000091776&sum=42000 [22:06:54]OFD Sender: Processing packet 192435 [packets to send 75, broken 74] [22:06:54]ProducePacketName [22:06:54]name=ofd_packets/00192435 [22:06:54]OFD Sender: To server: pG, [22:06:54]CommunicateWithHost lk.salyk.kg:30040 [22:06:54]ConnectInit lk.salyk.kg [22:06:54]written 0, free lines is 4095 [22:06:54]Connected sock=10 [22:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 BC 07 01 E8 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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 7E B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EF 02 00 35 04 06 00 94 AF 04 08 25 95 F1 7A C6 A6 AB 65 67 B3 [22:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CB BB 47 00 0D E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EF 02 00 F4 03 04 00 44 5E 1E 67 B6 04 01 00 00 C1 D5 1D 83 46 F8 71 AF [22:06:54]CommunicateWithHost err = 0 [22:06:54]CheckOFDResponse [22:06:54]1017 (14) - 77093643461234 [22:06:54]1041 (16) - 0000000000871754 [22:06:54]1040 (4) - 192435 [22:06:54]1012 (4) - 27.10.2024 15:37 [22:06:54]1206 (1) - 0 [22:06:54]OFD Sender: Remove packet 192435 [22:06:54]ProducePacketName [22:06:54]name=ofd_packets/00192435 [22:06:54]NVStorageDeleteData [22:06:55]Write to MH i2c: 01 00 00 CE 16 E4 [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 07 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: 01 07 00 CE 16 00 00 00 00 00 AF 0C A6 [22:06:55]RasterBufferAndPrint [22:06:55]line [22:06:55]line [22:06:55]line [22:06:55]line [22:06:55]line [22:06:55]written 0, free lines is 3253 [22:06:55]MH_Cut [22:06:55]Write to MH i2c: D1 01 00 D5 16 01 BD [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: D1 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: D1 01 00 [22:06:55]MH_I2C_Read... [22:06:55]Read from MH i2c: D1 01 00 D5 16 00 BC [22:06:55]Write to MH i2c: 01 00 00 D6 16 EC [22:06:55]Write i2c OK [22:06:55]MH_I2C_Read... [22:06:55]OFD Sender: No OFD packet to send [22:06:55]*** Cut start [22:06:55]*** Partial cut [22:06:55]*** CUTSNS_PIN = 1 [22:06:55]*** CUTSNS_PIN = 0 [22:06:56]*** Brake cut motor [22:06:56]Read from MH i2c: 01 [22:06:56]MH_I2C_Read... [22:06:56]*** Stop cut motor [22:06:56]Read from MH i2c: *** Cut end [22:06:56]01 07 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: 01 07 00 D6 16 00 00 00 00 00 FF 0F 01 [22:06:56]process_action close_receipt done [22:06:56]requested_data is exist [22:06:56]produce_requested_data [22:06:56]requested_item fm.sn is exist - process it [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 11 00 00 [22:06:56]Write to MH i2c: E2 08 00 D7 16 80 11 00 00 00 00 00 00 67 [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 17 00 [22:06:56]MH_I2C_Read... [22:06:56]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 37 35 34 90 00 BA [22:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:56]wFMCommunicate OK [22:06:56]requested_item fd.num is exist - process it [22:06:56]SAM_PROTO_GetFieldsCounters [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 13 00 00 [22:06:56]Write to MH i2c: E2 08 00 D8 16 80 13 00 00 00 00 00 00 6A [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 62 00 [22:06:56]MH_I2C_Read... [22:06:56]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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [22: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:56]wFMCommunicate OK [22:06:56]SAM_PROTO_GetFieldsCounters done [22:06:56]requested_item shift.num is exist - process it [22:06:56]requested_item shift.opened is exist - process it [22:06:56]req_shift_opened [22:06:56]FM_GetShiftState [22:06:56]SAM_PROTO_GetShiftState [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 13 01 00 [22:06:56]Write to MH i2c: E2 08 00 D9 16 80 13 01 00 00 00 00 00 6C [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 D9 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AD [22:06:56]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:06:56]wFMCommunicate OK [22:06:56]SAM_PROTO_GetShiftState done [22:06:56]FM_GetShiftState done [22:06:56]req_shift_opened done [22:06:56]requested_item shift.open_date is exist - process it [22:06:56]req_shift_open_date [22:06:56]req_shift_open_date done [22:06:56]produce_requested_data done [22:06:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192435,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:06:56]process_action_free close_receipt [22:06:56]json_value_free [22:06:56]json_value_free done [22:06:56]process_json_proto returns [22:06:56]Send response to host [22:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192435,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:06:56]free response buf [22:06:56]execute_script done [22:06:56]execute_script returns [22:06:56]free content buf [22:06:56]Sock 7.Close socket [22:06:56]Sock 7.Thread stoped [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:30]accept exits with 9 [22:07:30]New connection [22:07:30]New thread 3066707300 created [22:07:30]Thread 3066563940 joined [22:07:30]Waiting for new connection... [22:07:30] Sock 9.Parse request [22:07:30]Sock 9.Check first char [22:07:30]Sock 9.First char is OK [22:07:30]request: POST /json_proto HTTP/1.0 [22:07:30]Method: POST [22:07:30]URL: /json_proto [22:07:30]Method is POST - this is cgi request [22:07:30]url: /json_proto [22:07:30]query_string will be loaded in cgi processing [22:07:30]execute_cgi json_proto POST (null) [22:07:30]execute_cgi path=json_proto method=POST [22:07:30]POST find Content-Length [22:07:30]Host: 172.17.63.131:8080 [22:07:30]Content-Length: 676 [22:07:30]Content-Type: application/json [22:07:30] [22:07:30]POST finish read [22:07:30]Found Content-Length = 676 [22:07:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:30]execute_script... [22:07: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)31753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:30]POST & json_proto [22:07:30]process_json_proto [22:07:30]json parsed OK: [22:07:30]protocol is kg_v1.0 [22:07:30]action value=close_receipt [22:07:30]process_action close_receipt [22:07:30]cmd_close_receipt [22:07:30]MH_GetDate [22:07:30]Write to MH i2c: F0 00 00 DA 16 DF [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: F0 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: F0 09 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: F0 09 00 DA 16 00 A4 B9 1E 67 22 05 6E 64 C3 [22:07:30]GetLastDocTimeStamp 1730066814 [22:07:30]current date 1730066852 [22:07:30]FM_GetShiftState [22:07:30]SAM_PROTO_GetShiftState [22:07:30]wFMCommunicate request_size=4 [22:07:30]MH_SAM_APDU [22:07:30]CAPDU: 80 13 01 00 [22:07:30]Write to MH i2c: E2 08 00 DB 16 80 13 01 00 00 00 00 00 6E [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:30]Read from MH i2c: E2 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 0E 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: E2 0E 00 DB 16 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AF [22:07:30]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:07:30]wFMCommunicate OK [22:07:30]SAM_PROTO_GetShiftState done [22:07:30]FM_GetShiftState done [22:07:30]opened in 1729989159 [22:07:30]opened+sec_in_day 1730075559 [22:07:30]quantity*price = 40006 [22:07:30]sum+1 = 40007 [22:07:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 468 27.10.2024 22:07 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192436 ФПД: 215455051658497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192436&fm=215455051658497&tin=02508201610067®Number=0000000000091776&sum=40000 [22:07:31]StoreToDocumentArchive [22:07:31]shift 542 fd 192436 [22:07:31]save to /storage/0542/doc_00192436 [22:07:31]save last doc name /storage/0542/doc_00192436 to /storage/kkm_last_doc_name [22:07:31]save OK [22:07:31]Clear old archive folders... [22:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:31]tlvbuf is B6F1CB10 [22:07:31]SAM_PROTO_ClearQueue [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 09 00 00 [22:07:31]Write to MH i2c: E2 08 00 E8 16 80 09 00 00 00 00 00 00 70 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 03 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 03 00 E8 16 00 90 00 72 [22:07:31]RAPDU: 90 00 [22:07:31]wFMCommunicate OK [22:07:31]SAM_PROTO_ClearQueue done [22:07:31]KKMCreateOFDPacket [22:07:31]OFDProtocolAddRootSTLVToBuf [22:07:31]FM_MakeSignedData [22:07:31]FM_MakeSignedData [22:07:31]SAM_PROTO_SignData [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 0D 01 02 [22:07:31]Write to MH i2c: E2 08 00 E9 16 80 0D 01 02 00 00 00 00 78 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 E9 16 00 90 00 73 [22:07:32]RAPDU: 90 00 [22:07:32]wFMCommunicate OK [22:07:32]wFMCommunicate request_size=255 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 A4 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EF 02 00 35 04 06 00 C3 [22:07:32]Write to MH i2c: E2 02 01 EA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 A4 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EF 02 00 35 04 06 00 C3 00 00 1A [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 EA 16 00 90 00 74 [22:07:32]RAPDU: 90 00 [22:07:32]wFMCommunicate OK [22:07:32]wFMCommunicate request_size=10 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 0D 02 02 05 F4 89 D1 B5 01 [22:07:32]Write to MH i2c: E2 0D 00 EB 16 80 0D 02 02 05 00 F4 89 D1 B5 01 00 00 89 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [22:07:32]RAPDU: 90 00 [22:07:32]wFMCommunicate OK [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 0D 03 02 [22:07:32]Write to MH i2c: E2 08 00 EC 16 80 0D 03 02 00 00 00 00 7D [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0B 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0B 00 EC 16 00 FB D8 31 E1 24 A7 20 94 90 00 E2 [22:07:32]RAPDU: FB D8 31 E1 24 A7 20 94 90 00 [22:07:32]wFMCommunicate OK [22:07:32]SAM_PROTO_SignData done [22:07:32]FM_MakeSignedData done [22:07:32]CreateOFDProtocolMessage [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 11 00 00 [22:07:32]Write to MH i2c: E2 08 00 ED 16 80 11 00 00 00 00 00 00 7D [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 17 00 [22:07:32]MH_I2C_Read... [22:07:32]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 37 35 34 90 00 D0 [22:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:07:32]wFMCommunicate OK [22:07:32]CreateOFDProtocolMessage done [22:07:32]OFDSenderStorePacket 192436 [22:07:32]StoreOFDPacket docnum=192436 [22:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 6C 07 01 79 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 A4 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EF 02 00 35 04 06 00 C3 F4 89 D1 B5 01 FB D8 31 E1 24 A7 20 94 [22:07:32]CheckFolder [22:07:32]dirname=/storage/ofd_packets [22:07:32]CheckFolder done [22:07:32]ProducePacketName [22:07:32]name=ofd_packets/00192436 [22:07:32]NVStorageSaveData ofd_packets/00192436 [22:07:32]File name is /storage/ofd_packets/00192436 [22:07:32]Write 301 bytes [22:07:32]NVStorageSaveData done [22:07:32]OFDSenderStorePacket done [22:07:32]KKMCreateOFDPacket done [22:07:32]NVStorageSaveData kkm_last_timestamp [22:07:32]File name is /storage/kkm_last_timestamp [22:07:32]Write 4 bytes [22:07:32]NVStorageSaveData done [22:07:32]ExternCall_PrintAddStr [22:07:32]wPrintStart [22:07:32]Write to MH i2c: 01 00 00 EE 16 04 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 EE 16 00 00 00 00 00 FF 0F 19 [22:07:32]RasterBufferAndPrint [22:07:32]line Счет N : (1)31753 [22:07:32]line ИНН: 02508201610067 [22:07:32]line Контрольно-Кассовый Чек [22:07:32]line ПРОДАЖА [22:07:32]line ТРК (МРК, ГНК) : 21 [22:07:32]line Товар: 2710124130 [22:07:32]line Аи-92-К-5 [22:07:32]line 5.980 * 66.90 [22:07:32]line = 400.06 [22:07:32]line НДС 12% НСП 1% [22:07:32]line > о реализуемом товаре [22:07:32]line ОКРУГЛЕНИЕ: -0.06 [22:07:32]line ИТОГО: 400.00 [22:07:32]line Внесено: 400.00 [22:07:32]line СДАЧА: 0.00 [22:07:32]line НСП 1% : 3.54 [22:07:32]line НДС 12% : 42.48 [22:07:32]line Наличными: 400.00 [22:07:32]line Безнал.: 0.00 [22:07:32]line Место: АЗС № 170 "Партнер Нефть" [22:07:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:07:32]line СНО: Общий режим [22:07:32]line Чек 468 27.10.2024 22:07 [22:07:32]line Смена: 542 ФФД: 1.0 [22:07:32]line ЗНМ: 0300000110 [22:07:32]line РНМ: 0000000000091776 [22:07:32]line Версия ККМ: 001 [22:07:32]line ФМ: 0000000000871754 [22:07:32]line ФД: 192436 [22:07:32]line ФПД: 215455051658497 [22:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192436&fm=215455051658497&tin=02508201610067®Number=0000000000091776&sum=40000 [22:07:32]OFD Sender: Processing packet 192436 [packets to send 75, broken 74] [22:07:32]ProducePacketName [22:07:32]name=ofd_packets/00192436 [22:07:32]OFD Sender: To server: pG, [22:07:32]CommunicateWithHost lk.salyk.kg:30040 [22:07:32]ConnectInit lk.salyk.kg [22:07:32]written 0, free lines is 4095 [22:07:32]Connected sock=10 [22:07:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 6C 07 01 79 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 A4 B9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EF 02 00 35 04 06 00 C3 F4 89 D1 B5 01 FB D8 31 E1 24 A7 20 94 [22:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 6E 47 00 8F DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EF 02 00 F4 03 04 00 6A 5E 1E 67 B6 04 01 00 00 CB DF C5 C6 71 B1 4B 81 [22:07:33]CommunicateWithHost err = 0 [22:07:33]CheckOFDResponse [22:07:33]1017 (14) - 77093643461234 [22:07:33]1041 (16) - 0000000000871754 [22:07:33]1040 (4) - 192436 [22:07:33]1012 (4) - 27.10.2024 15:38 [22:07:33]1206 (1) - 0 [22:07:33]OFD Sender: Remove packet 192436 [22:07:33]ProducePacketName [22:07:33]name=ofd_packets/00192436 [22:07:33]NVStorageDeleteData [22:07:33]Write to MH i2c: 01 00 00 19 17 30 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 07 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 07 00 19 17 00 00 00 00 00 BC 0C FF [22:07:33]RasterBufferAndPrint [22:07:33]line [22:07:33]line [22:07:33]line [22:07:33]line [22:07:33]line [22:07:33]written 0, free lines is 3266 [22:07:33]MH_Cut [22:07:33]Write to MH i2c: D1 01 00 20 17 01 09 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: D1 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: D1 01 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: D1 01 00 20 17 00 08 [22:07:33]Write to MH i2c: 01 00 00 21 17 38 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]OFD Sender: No OFD packet to send [22:07:34]*** Cut start [22:07:34]*** Partial cut [22:07:34]*** CUTSNS_PIN = 1 [22:07:34]*** CUTSNS_PIN = 0 [22:07:34]*** Brake cut motor [22:07:34]Read from MH i2c: 01 [22:07:34]MH_I2C_Read... [22:07:34]*** Stop cut motor [22:07:34]*** Cut end [22:07:34]Read from MH i2c: 01 07 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 FF 0F 4D [22:07:34]process_action close_receipt done [22:07:34]requested_data is exist [22:07:34]produce_requested_data [22:07:34]requested_item fm.sn is exist - process it [22:07:34]wFMCommunicate request_size=4 [22:07:34]MH_SAM_APDU [22:07:34]CAPDU: 80 11 00 00 [22:07:34]Write to MH i2c: E2 08 00 22 17 80 11 00 00 00 00 00 00 B3 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:34]Read from MH i2c: E2 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 17 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 17 00 22 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [22:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:07:34]wFMCommunicate OK [22:07:34]requested_item fd.num is exist - process it [22:07:34]SAM_PROTO_GetFieldsCounters [22:07:34]wFMCommunicate request_size=4 [22:07:34]MH_SAM_APDU [22:07:34]CAPDU: 80 13 00 00 [22:07:34]Write to MH i2c: E2 08 00 23 17 80 13 00 00 00 00 00 00 B6 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:34]Read from MH i2c: E2 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 62 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: E2 62 00 23 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [22:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:34]wFMCommunicate OK [22:07:34]SAM_PROTO_GetFieldsCounters done [22:07:34]requested_item shift.num is exist - process it [22:07:34]requested_item shift.opened is exist - process it [22:07:34]req_shift_opened [22:07:34]FM_GetShiftState [22:07:34]SAM_PROTO_GetShiftState [22:07:34]wFMCommunicate request_size=4 [22:07:34]MH_SAM_APDU [22:07:34]CAPDU: 80 13 01 00 [22:07:34]Write to MH i2c: E2 08 00 24 17 80 13 01 00 00 00 00 00 B8 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:35]Read from MH i2c: E2 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: E2 0E 00 24 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 F9 [22:07:35]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:07:35]wFMCommunicate OK [22:07:35]SAM_PROTO_GetShiftState done [22:07:35]FM_GetShiftState done [22:07:35]req_shift_opened done [22:07:35]requested_item shift.open_date is exist - process it [22:07:35]req_shift_open_date [22:07:35]req_shift_open_date done [22:07:35]produce_requested_data done [22:07:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192436,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:07:35]process_action_free close_receipt [22:07:35]json_value_free [22:07:35]json_value_free done [22:07:35]process_json_proto returns [22:07:35]Send response to host [22:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192436,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:07:35]free response buf [22:07:35]execute_script done [22:07:35]execute_script returns [22:07:35]free content buf [22:07:35]Sock 9.Close socket [22:07:35]Sock 9.Thread stoped [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:39]accept exits with 7 [22:16:39]New connection [22:16:39]New thread 3066563940 created [22:16:39]Thread 3066707300 joined [22:16:39]Waiting for new connection... [22:16:39] Sock 7.Parse request [22:16:39]Sock 7.Check first char [22:16:39]Sock 7.First char is OK [22:16:39]request: POST /json_proto HTTP/1.0 [22:16:39]Method: POST [22:16:39]URL: /json_proto [22:16:39]Method is POST - this is cgi request [22:16:39]url: /json_proto [22:16:39]query_string will be loaded in cgi processing [22:16:39]execute_cgi json_proto POST (null) [22:16:39]execute_cgi path=json_proto method=POST [22:16:39]POST find Content-Length [22:16:39]Host: 172.17.63.131:8080 [22:16:39]Content-Length: 681 [22:16:39]Content-Type: application/json [22:16:39] [22:16:39]POST finish read [22:16:39]Found Content-Length = 681 [22:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:39]execute_script... [22:16:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:39]POST & json_proto [22:16:39]process_json_proto [22:16:39]json parsed OK: [22:16:39]protocol is kg_v1.0 [22:16:39]action value=close_receipt [22:16:39]process_action close_receipt [22:16:39]cmd_close_receipt [22:16:39]MH_GetDate [22:16:39]Write to MH i2c: F0 00 00 25 17 2B [22:16:39]Write i2c OK [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 09 00 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 09 00 25 17 00 C9 BB 1E 67 22 05 6E 64 36 [22:16:39]GetLastDocTimeStamp 1730066852 [22:16:39]current date 1730067401 [22:16:39]FM_GetShiftState [22:16:39]SAM_PROTO_GetShiftState [22:16:39]wFMCommunicate request_size=4 [22:16:39]MH_SAM_APDU [22:16:39]CAPDU: 80 13 01 00 [22:16:39]Write to MH i2c: E2 08 00 26 17 80 13 01 00 00 00 00 00 BA [22:16:39]Write i2c OK [22:16:39]MH_I2C_Read... [22:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:39]Read from MH i2c: E2 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: E2 0E 00 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: E2 0E 00 26 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 FB [22:16:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:16:39]wFMCommunicate OK [22:16:39]SAM_PROTO_GetShiftState done [22:16:39]FM_GetShiftState done [22:16:39]opened in 1729989159 [22:16:39]opened+sec_in_day 1730075559 [22:16:39]quantity*price = 100015 [22:16:39]sum+1 = 100017 [22:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 469 27.10.2024 22:16 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192437 ФПД: 40231500908866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192437&fm=40231500908866&tin=02508201610067®Number=0000000000091776&sum=100000 [22:16:40]StoreToDocumentArchive [22:16:40]shift 542 fd 192437 [22:16:40]save to /storage/0542/doc_00192437 [22:16:40]save last doc name /storage/0542/doc_00192437 to /storage/kkm_last_doc_name [22:16:40]save OK [22:16:40]Clear old archive folders... [22:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:40]tlvbuf is 0197D6A0 [22:16:40]SAM_PROTO_ClearQueue [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 09 00 00 [22:16:40]Write to MH i2c: E2 08 00 33 17 80 09 00 00 00 00 00 00 BC [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 33 17 00 90 00 BE [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]SAM_PROTO_ClearQueue done [22:16:40]KKMCreateOFDPacket [22:16:40]OFDProtocolAddRootSTLVToBuf [22:16:40]FM_MakeSignedData [22:16:40]FM_MakeSignedData [22:16:40]SAM_PROTO_SignData [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 01 02 [22:16:40]Write to MH i2c: E2 08 00 34 17 80 0D 01 02 00 00 00 00 C4 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 34 17 00 90 00 BF [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]wFMCommunicate request_size=255 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C9 BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EF 02 00 35 04 06 00 24 [22:16:40]Write to MH i2c: E2 02 01 35 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 C9 BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EF 02 00 35 04 06 00 24 00 00 1B [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:41]Read from MH i2c: E2 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 03 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 03 00 35 17 00 90 00 C0 [22:16:41]RAPDU: 90 00 [22:16:41]wFMCommunicate OK [22:16:41]wFMCommunicate request_size=10 [22:16:41]MH_SAM_APDU [22:16:41]CAPDU: 80 0D 02 02 05 97 20 52 09 42 [22:16:41]Write to MH i2c: E2 0D 00 36 17 80 0D 02 02 05 00 97 20 52 09 42 00 00 25 [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:41]Read from MH i2c: E2 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 03 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 03 00 36 17 00 90 00 C1 [22:16:41]RAPDU: 90 00 [22:16:41]wFMCommunicate OK [22:16:41]wFMCommunicate request_size=4 [22:16:41]MH_SAM_APDU [22:16:41]CAPDU: 80 0D 03 02 [22:16:41]Write to MH i2c: E2 08 00 37 17 80 0D 03 02 00 00 00 00 C9 [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:41]Read from MH i2c: E2 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 0B 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 0B 00 37 17 00 C4 F9 38 0A E5 89 9D 97 90 00 6B [22:16:41]RAPDU: C4 F9 38 0A E5 89 9D 97 90 00 [22:16:41]wFMCommunicate OK [22:16:41]SAM_PROTO_SignData done [22:16:41]FM_MakeSignedData done [22:16:41]CreateOFDProtocolMessage [22:16:41]wFMCommunicate request_size=4 [22:16:41]MH_SAM_APDU [22:16:41]CAPDU: 80 11 00 00 [22:16:41]Write to MH i2c: E2 08 00 38 17 80 11 00 00 00 00 00 00 C9 [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:41]Read from MH i2c: E2 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 17 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: E2 17 00 38 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [22:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:16:41]wFMCommunicate OK [22:16:41]CreateOFDProtocolMessage done [22:16:41]OFDSenderStorePacket 192437 [22:16:41]StoreOFDPacket docnum=192437 [22:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 61 07 01 B8 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C9 BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EF 02 00 35 04 06 00 24 97 20 52 09 42 C4 F9 38 0A E5 89 9D 97 [22:16:41]CheckFolder [22:16:41]dirname=/storage/ofd_packets [22:16:41]CheckFolder done [22:16:41]ProducePacketName [22:16:41]name=ofd_packets/00192437 [22:16:41]NVStorageSaveData ofd_packets/00192437 [22:16:41]File name is /storage/ofd_packets/00192437 [22:16:41]Write 301 bytes [22:16:41]NVStorageSaveData done [22:16:41]OFDSenderStorePacket done [22:16:41]KKMCreateOFDPacket done [22:16:41]NVStorageSaveData kkm_last_timestamp [22:16:41]File name is /storage/kkm_last_timestamp [22:16:41]Write 4 bytes [22:16:41]NVStorageSaveData done [22:16:41]OFD Sender: Processing packet 192437 [packets to send 75, broken 74] [22:16:41]ProducePacketName [22:16:41]name=ofd_packets/00192437 [22:16:41]OFD Sender: To server: pG, [22:16:41]CommunicateWithHost lk.salyk.kg:30040 [22:16:41]ConnectInit lk.salyk.kg [22:16:41]ExternCall_PrintAddStr [22:16:41]wPrintStart [22:16:41]Write to MH i2c: 01 00 00 39 17 50 [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 07 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 07 00 39 17 00 00 00 00 00 FF 0F 65 [22:16:41]RasterBufferAndPrint [22:16:41]line Счет N : (1)31754 [22:16:41]line ИНН: 02508201610067 [22:16:41]line Контрольно-Кассовый Чек [22:16:41]line ПРОДАЖА [22:16:41]line ТРК (МРК, ГНК) : 21 [22:16:41]line Товар: 2710124130 [22:16:41]line Аи-92-К-5 [22:16:41]line 14.950 * 66.90 [22:16:41]line = 1000.16 [22:16:41]line НДС 12% НСП 1% [22:16:41]line > о реализуемом товаре [22:16:41]line ОКРУГЛЕНИЕ: -0.16 [22:16:41]line ИТОГО: 1000.00 [22:16:41]line Внесено: 1000.00 [22:16:41]line СДАЧА: 0.00 [22:16:41]line НСП 1% : 8.85 [22:16:41]line НДС 12% : 106.21 [22:16:41]line Наличными: 1000.00 [22:16:41]line Безнал.: 0.00 [22:16:41]line Место: АЗС № 170 "Партнер Нефть" [22:16:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:16:41]line СНО: Общий режим [22:16:41]line Чек 469 27.10.2024 22:16 [22:16:41]line Смена: 542 ФФД: 1.0 [22:16:41]line ЗНМ: 0300000110 [22:16:41]line РНМ: 0000000000091776 [22:16:41]line Версия ККМ: 001 [22:16:41]line ФМ: 0000000000871754 [22:16:41]line ФД: 192437 [22:16:41]line ФПД: 40231500908866 [22:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192437&fm=40231500908866&tin=02508201610067®Number=0000000000091776&sum=100000 [22:16:41]Connected sock=11 [22:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 61 07 01 B8 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C9 BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EF 02 00 35 04 06 00 24 97 20 52 09 42 C4 F9 38 0A E5 89 9D 97 [22:16:41]written 0, free lines is 4095 [22:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 AA 47 00 27 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EF 02 00 F4 03 04 00 8F 60 1E 67 B6 04 01 00 00 82 5E B8 59 07 2F 9F 4F [22:16:41]CommunicateWithHost err = 0 [22:16:41]CheckOFDResponse [22:16:41]1017 (14) - 77093643461234 [22:16:41]1041 (16) - 0000000000871754 [22:16:41]1040 (4) - 192437 [22:16:41]1012 (4) - 27.10.2024 15:47 [22:16:41]1206 (1) - 0 [22:16:41]OFD Sender: Remove packet 192437 [22:16:41]ProducePacketName [22:16:41]name=ofd_packets/00192437 [22:16:41]NVStorageDeleteData [22:16:42]Write to MH i2c: 01 00 00 64 17 7B [22:16:42]Write i2c OK [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: 01 [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: 01 07 00 [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: 01 07 00 64 17 00 00 00 00 00 B9 0C 47 [22:16:42]RasterBufferAndPrint [22:16:42]line [22:16:42]line [22:16:42]line [22:16:42]line [22:16:42]line [22:16:42]written 0, free lines is 3263 [22:16:42]MH_Cut [22:16:42]Write to MH i2c: D1 01 00 6B 17 01 54 [22:16:42]Write i2c OK [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: D1 [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: D1 01 00 [22:16:42]MH_I2C_Read... [22:16:42]Read from MH i2c: D1 01 00 6B 17 00 53 [22:16:42]Write to MH i2c: 01 00 00 6C 17 83 [22:16:42]Write i2c OK [22:16:42]MH_I2C_Read... [22:16:42]OFD Sender: No OFD packet to send [22:16:43]*** Cut start [22:16:43]*** Partial cut [22:16:43]*** CUTSNS_PIN = 1 [22:16:43]*** CUTSNS_PIN = 0 [22:16:43]*** Brake cut motor [22:16:43]Read from MH i2c: 01 [22:16:43]MH_I2C_Read... [22:16:43]*** Stop cut motor [22:16:43]*** Cut end [22:16:43]Read from MH i2c: 01 07 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: 01 07 00 6C 17 00 00 00 00 00 FF 0F 98 [22:16:43]process_action close_receipt done [22:16:43]requested_data is exist [22:16:43]produce_requested_data [22:16:43]requested_item fm.sn is exist - process it [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 11 00 00 [22:16:43]Write to MH i2c: E2 08 00 6D 17 80 11 00 00 00 00 00 00 FE [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 17 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 17 00 6D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [22:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:16:43]wFMCommunicate OK [22:16:43]requested_item fd.num is exist - process it [22:16:43]SAM_PROTO_GetFieldsCounters [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 13 00 00 [22:16:43]Write to MH i2c: E2 08 00 6E 17 80 13 00 00 00 00 00 00 01 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 62 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 62 00 6E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [22:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:43]wFMCommunicate OK [22:16:43]SAM_PROTO_GetFieldsCounters done [22:16:43]requested_item shift.num is exist - process it [22:16:43]requested_item shift.opened is exist - process it [22:16:43]req_shift_opened [22:16:43]FM_GetShiftState [22:16:43]SAM_PROTO_GetShiftState [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 13 01 00 [22:16:43]Write to MH i2c: E2 08 00 6F 17 80 13 01 00 00 00 00 00 03 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 6F 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 44 [22:16:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:16:43]wFMCommunicate OK [22:16:43]SAM_PROTO_GetShiftState done [22:16:43]FM_GetShiftState done [22:16:43]req_shift_opened done [22:16:43]requested_item shift.open_date is exist - process it [22:16:43]req_shift_open_date [22:16:43]req_shift_open_date done [22:16:43]produce_requested_data done [22:16:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192437,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:16:43]process_action_free close_receipt [22:16:43]json_value_free [22:16:43]json_value_free done [22:16:43]process_json_proto returns [22:16:43]Send response to host [22:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192437,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:16:43]free response buf [22:16:43]execute_script done [22:16:43]execute_script returns [22:16:43]free content buf [22:16:43]Sock 7.Close socket [22:16:43]Sock 7.Thread stoped [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]accept exits with 9 [22:17:32]New connection [22:17:32]New thread 3066707300 created [22:17:32]Thread 3066563940 joined [22:17:32]Waiting for new connection... [22:17:32] Sock 9.Parse request [22:17:32]Sock 9.Check first char [22:17:32]Sock 9.First char is OK [22:17:32]request: POST /json_proto HTTP/1.0 [22:17:32]Method: POST [22:17:32]URL: /json_proto [22:17:32]Method is POST - this is cgi request [22:17:32]url: /json_proto [22:17:32]query_string will be loaded in cgi processing [22:17:32]execute_cgi json_proto POST (null) [22:17:32]execute_cgi path=json_proto method=POST [22:17:32]POST find Content-Length [22:17:32]Host: 172.17.63.131:8080 [22:17:32]Content-Length: 671 [22:17:32]Content-Type: application/json [22:17:32] [22:17:32]POST finish read [22:17:32]Found Content-Length = 671 [22:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:32]execute_script... [22:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:32]POST & json_proto [22:17:32]process_json_proto [22:17:32]json parsed OK: [22:17:32]protocol is kg_v1.0 [22:17:32]action value=close_receipt [22:17:32]process_action close_receipt [22:17:32]cmd_close_receipt [22:17:32]MH_GetDate [22:17:32]Write to MH i2c: F0 00 00 70 17 76 [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: F0 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: F0 09 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: F0 09 00 70 17 00 FE BB 1E 67 22 05 6E 64 B6 [22:17:32]GetLastDocTimeStamp 1730067401 [22:17:32]current date 1730067454 [22:17:32]FM_GetShiftState [22:17:32]SAM_PROTO_GetShiftState [22:17:32]wFMCommunicate request_size=4 [22:17:32]MH_SAM_APDU [22:17:32]CAPDU: 80 13 01 00 [22:17:32]Write to MH i2c: E2 08 00 71 17 80 13 01 00 00 00 00 00 05 [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:32]Read from MH i2c: E2 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 0E 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 0E 00 71 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 46 [22:17:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:17:32]wFMCommunicate OK [22:17:32]SAM_PROTO_GetShiftState done [22:17:32]FM_GetShiftState done [22:17:32]opened in 1729989159 [22:17:32]opened+sec_in_day 1730075559 [22:17:32]quantity*price = 66 [22:17:32]sum+1 = 68 [22:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 1000.00 СДАЧА: 1000.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 470 27.10.2024 22:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192438 ФПД: 15671289061093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192438&fm=15671289061093&tin=02508201610067®Number=0000000000091776&sum=0 [22:17:33]StoreToDocumentArchive [22:17:33]shift 542 fd 192438 [22:17:33]save to /storage/0542/doc_00192438 [22:17:33]save last doc name /storage/0542/doc_00192438 to /storage/kkm_last_doc_name [22:17:33]save OK [22:17:33]Clear old archive folders... [22:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:33]tlvbuf is 0197D680 [22:17:33]SAM_PROTO_ClearQueue [22:17:33]wFMCommunicate request_size=4 [22:17:33]MH_SAM_APDU [22:17:33]CAPDU: 80 09 00 00 [22:17:33]Write to MH i2c: E2 08 00 7E 17 80 09 00 00 00 00 00 00 07 [22:17:33]Write i2c OK [22:17:33]MH_I2C_Read... [22:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:33]Read from MH i2c: E2 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 7E 17 00 90 00 09 [22:17:33]RAPDU: 90 00 [22:17:33]wFMCommunicate OK [22:17:33]SAM_PROTO_ClearQueue done [22:17:33]KKMCreateOFDPacket [22:17:33]OFDProtocolAddRootSTLVToBuf [22:17:33]FM_MakeSignedData [22:17:33]FM_MakeSignedData [22:17:33]SAM_PROTO_SignData [22:17:33]wFMCommunicate request_size=4 [22:17:33]MH_SAM_APDU [22:17:33]CAPDU: 80 0D 01 02 [22:17:33]Write to MH i2c: E2 08 00 7F 17 80 0D 01 02 00 00 00 00 0F [22:17:33]Write i2c OK [22:17:33]MH_I2C_Read... [22:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:33]Read from MH i2c: E2 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 7F 17 00 90 00 0A [22:17:33]RAPDU: 90 00 [22:17:33]wFMCommunicate OK [22:17:33]wFMCommunicate request_size=255 [22:17:33]MH_SAM_APDU [22:17:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 FE BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EF 02 00 35 04 06 00 0E [22:17:33]Write to MH i2c: E2 02 01 80 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 FE BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EF 02 00 35 04 06 00 0E 00 00 99 [22:17:33]Write i2c OK [22:17:33]MH_I2C_Read... [22:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:33]Read from MH i2c: E2 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 80 17 00 90 00 0B [22:17:33]RAPDU: 90 00 [22:17:33]wFMCommunicate OK [22:17:33]wFMCommunicate request_size=10 [22:17:33]MH_SAM_APDU [22:17:33]CAPDU: 80 0D 02 02 05 40 C1 9E 1E E5 [22:17:33]Write to MH i2c: E2 0D 00 81 17 80 0D 02 02 05 00 40 C1 9E 1E E5 00 00 BE [22:17:33]Write i2c OK [22:17:33]MH_I2C_Read... [22:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:33]Read from MH i2c: E2 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 [22:17:33]MH_I2C_Read... [22:17:33]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [22:17:33]RAPDU: 90 00 [22:17:33]wFMCommunicate OK [22:17:33]wFMCommunicate request_size=4 [22:17:33]MH_SAM_APDU [22:17:33]CAPDU: 80 0D 03 02 [22:17:33]Write to MH i2c: E2 08 00 82 17 80 0D 03 02 00 00 00 00 14 [22:17:33]Write i2c OK [22:17:33]MH_I2C_Read... [22:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:34]Read from MH i2c: E2 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: E2 0B 00 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: E2 0B 00 82 17 00 99 6D E6 5D CB 1B 89 A0 90 00 6D [22:17:34]RAPDU: 99 6D E6 5D CB 1B 89 A0 90 00 [22:17:34]wFMCommunicate OK [22:17:34]SAM_PROTO_SignData done [22:17:34]FM_MakeSignedData done [22:17:34]CreateOFDProtocolMessage [22:17:34]wFMCommunicate request_size=4 [22:17:34]MH_SAM_APDU [22:17:34]CAPDU: 80 11 00 00 [22:17:34]Write to MH i2c: E2 08 00 83 17 80 11 00 00 00 00 00 00 14 [22:17:34]Write i2c OK [22:17:34]MH_I2C_Read... [22:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:34]Read from MH i2c: E2 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: E2 17 00 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: E2 17 00 83 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [22:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:17:34]wFMCommunicate OK [22:17:34]CreateOFDProtocolMessage done [22:17:34]OFDSenderStorePacket 192438 [22:17:34]StoreOFDPacket docnum=192438 [22:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 AC 07 01 1F 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 FE BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EF 02 00 35 04 06 00 0E 40 C1 9E 1E E5 99 6D E6 5D CB 1B 89 A0 [22:17:34]CheckFolder [22:17:34]dirname=/storage/ofd_packets [22:17:34]CheckFolder done [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00192438 [22:17:34]NVStorageSaveData ofd_packets/00192438 [22:17:34]File name is /storage/ofd_packets/00192438 [22:17:34]Write 301 bytes [22:17:34]NVStorageSaveData done [22:17:34]OFDSenderStorePacket done [22:17:34]KKMCreateOFDPacket done [22:17:34]NVStorageSaveData kkm_last_timestamp [22:17:34]File name is /storage/kkm_last_timestamp [22:17:34]Write 4 bytes [22:17:34]NVStorageSaveData done [22:17:34]ExternCall_PrintAddStr [22:17:34]wPrintStart [22:17:34]Write to MH i2c: 01 00 00 84 17 9B [22:17:34]Write i2c OK [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 07 00 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 07 00 84 17 00 00 00 00 00 FF 0F B0 [22:17:34]RasterBufferAndPrint [22:17:34]line Счет N : (1)31755 [22:17:34]line ИНН: 02508201610067 [22:17:34]line Контрольно-Кассовый Чек [22:17:34]line ПРОДАЖА [22:17:34]line ТРК (МРК, ГНК) : 12 [22:17:34]line Товар: 2710124130 [22:17:34]line Аи-92-К-5 [22:17:34]line 0.010 * 66.90 [22:17:34]line = 0.67 [22:17:34]line НДС 12% НСП 1% [22:17:34]line > о реализуемом товаре [22:17:34]line ОКРУГЛЕНИЕ: -0.67 [22:17:34]line ИТОГО: 0.00 [22:17:34]line Внесено: 1000.00 [22:17:34]line СДАЧА: 1000.00 [22:17:34]line НСП 1% : 0.01 [22:17:34]line НДС 12% : 0.07 [22:17:34]line Наличными: 0.00 [22:17:34]line Безнал.: 0.00 [22:17:34]line Место: АЗС № 170 "Партнер Нефть" [22:17:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:17:34]line СНО: Общий режим [22:17:34]line Чек 470 27.10.2024 22:17 [22:17:34]line Смена: 542 ФФД: 1.0 [22:17:34]line ЗНМ: 0300000110 [22:17:34]line РНМ: 0000000000091776 [22:17:34]line Версия ККМ: 001 [22:17:34]line ФМ: 0000000000871754 [22:17:34]line ФД: 192438 [22:17:34]line ФПД: 15671289061093 [22:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192438&fm=15671289061093&tin=02508201610067®Number=0000000000091776&sum=0 [22:17:34]OFD Sender: Processing packet 192438 [packets to send 75, broken 74] [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00192438 [22:17:34]OFD Sender: To server: pG, [22:17:34]CommunicateWithHost lk.salyk.kg:30040 [22:17:34]ConnectInit lk.salyk.kg [22:17:34]written 0, free lines is 4095 [22:17:34]Connected sock=10 [22:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 AC 07 01 1F 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 FE BB 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EF 02 00 35 04 06 00 0E 40 C1 9E 1E E5 99 6D E6 5D CB 1B 89 A0 [22:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A BC 47 00 D3 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EF 02 00 F4 03 04 00 C4 60 1E 67 B6 04 01 00 00 34 72 53 D9 19 B4 18 0A [22:17:34]CommunicateWithHost err = 0 [22:17:34]CheckOFDResponse [22:17:34]1017 (14) - 77093643461234 [22:17:34]1041 (16) - 0000000000871754 [22:17:34]1040 (4) - 192438 [22:17:34]1012 (4) - 27.10.2024 15:48 [22:17:34]1206 (1) - 0 [22:17:34]OFD Sender: Remove packet 192438 [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00192438 [22:17:34]NVStorageDeleteData [22:17:34]Write to MH i2c: 01 00 00 AF 17 C6 [22:17:34]Write i2c OK [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 07 00 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: 01 07 00 AF 17 00 00 00 00 00 C1 0C 9A [22:17:34]RasterBufferAndPrint [22:17:34]line [22:17:34]line [22:17:34]line [22:17:34]line [22:17:34]line [22:17:34]written 0, free lines is 3271 [22:17:34]MH_Cut [22:17:34]Write to MH i2c: D1 01 00 B6 17 01 9F [22:17:34]Write i2c OK [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: D1 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: D1 01 00 [22:17:34]MH_I2C_Read... [22:17:34]Read from MH i2c: D1 01 00 B6 17 00 9E [22:17:34]Write to MH i2c: 01 00 00 B7 17 CE [22:17:34]Write i2c OK [22:17:34]MH_I2C_Read... [22:17:35]OFD Sender: No OFD packet to send [22:17:35]*** Cut start [22:17:35]*** Partial cut [22:17:35]*** CUTSNS_PIN = 1 [22:17:35]*** CUTSNS_PIN = 0 [22:17:35]*** Brake cut motor [22:17:36]Read from MH i2c: 01 [22:17:36]MH_I2C_Read... [22:17:36]*** Stop cut motor [22:17:36]*** Cut end [22:17:36]Read from MH i2c: 01 07 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 FF 0F E3 [22:17:36]process_action close_receipt done [22:17:36]requested_data is exist [22:17:36]produce_requested_data [22:17:36]requested_item fm.sn is exist - process it [22:17:36]wFMCommunicate request_size=4 [22:17:36]MH_SAM_APDU [22:17:36]CAPDU: 80 11 00 00 [22:17:36]Write to MH i2c: E2 08 00 B8 17 80 11 00 00 00 00 00 00 49 [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:36]Read from MH i2c: E2 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 17 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 17 00 B8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [22:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:17:36]wFMCommunicate OK [22:17:36]requested_item fd.num is exist - process it [22:17:36]SAM_PROTO_GetFieldsCounters [22:17:36]wFMCommunicate request_size=4 [22:17:36]MH_SAM_APDU [22:17:36]CAPDU: 80 13 00 00 [22:17:36]Write to MH i2c: E2 08 00 B9 17 80 13 00 00 00 00 00 00 4C [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:36]Read from MH i2c: E2 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 62 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 62 00 B9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:36]wFMCommunicate OK [22:17:36]SAM_PROTO_GetFieldsCounters done [22:17:36]requested_item shift.num is exist - process it [22:17:36]requested_item shift.opened is exist - process it [22:17:36]req_shift_opened [22:17:36]FM_GetShiftState [22:17:36]SAM_PROTO_GetShiftState [22:17:36]wFMCommunicate request_size=4 [22:17:36]MH_SAM_APDU [22:17:36]CAPDU: 80 13 01 00 [22:17:36]Write to MH i2c: E2 08 00 BA 17 80 13 01 00 00 00 00 00 4E [22:17:36]Write i2c OK [22:17:36]MH_I2C_Read... [22:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:36]Read from MH i2c: E2 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 0E 00 [22:17:36]MH_I2C_Read... [22:17:36]Read from MH i2c: E2 0E 00 BA 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 8F [22:17:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:17:36]wFMCommunicate OK [22:17:36]SAM_PROTO_GetShiftState done [22:17:36]FM_GetShiftState done [22:17:36]req_shift_opened done [22:17:36]requested_item shift.open_date is exist - process it [22:17:36]req_shift_open_date [22:17:36]req_shift_open_date done [22:17:36]produce_requested_data done [22:17:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192438,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:17:36]process_action_free close_receipt [22:17:36]json_value_free [22:17:36]json_value_free done [22:17:36]process_json_proto returns [22:17:36]Send response to host [22:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192438,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:17:36]free response buf [22:17:36]execute_script done [22:17:36]execute_script returns [22:17:36]free content buf [22:17:36]Sock 9.Close socket [22:17:36]Sock 9.Thread stoped [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]accept exits with 7 [22:20:10]New connection [22:20:10]New thread 3066563940 created [22:20:10]Thread 3066707300 joined [22:20:10]Waiting for new connection... [22:20:10] Sock 7.Parse request [22:20:10]Sock 7.Check first char [22:20:10]Sock 7.First char is OK [22:20:10]request: POST /json_proto HTTP/1.0 [22:20:10]Method: POST [22:20:10]URL: /json_proto [22:20:10]Method is POST - this is cgi request [22:20:10]url: /json_proto [22:20:10]query_string will be loaded in cgi processing [22:20:10]execute_cgi json_proto POST (null) [22:20:10]execute_cgi path=json_proto method=POST [22:20:10]POST find Content-Length [22:20:10]Host: 172.17.63.131:8080 [22:20:10]Content-Length: 681 [22:20:10]Content-Type: application/json [22:20:10] [22:20:10]POST finish read [22:20:10]Found Content-Length = 681 [22:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:10]execute_script... [22:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:10]POST & json_proto [22:20:10]process_json_proto [22:20:10]json parsed OK: [22:20:10]protocol is kg_v1.0 [22:20:10]action value=close_receipt [22:20:10]process_action close_receipt [22:20:10]cmd_close_receipt [22:20:10]MH_GetDate [22:20:10]Write to MH i2c: F0 00 00 BB 17 C1 [22:20:10]Write i2c OK [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 09 00 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 09 00 BB 17 00 9C BC 1E 67 22 05 6E 64 A0 [22:20:10]GetLastDocTimeStamp 1730067454 [22:20:10]current date 1730067612 [22:20:10]FM_GetShiftState [22:20:10]SAM_PROTO_GetShiftState [22:20:10]wFMCommunicate request_size=4 [22:20:10]MH_SAM_APDU [22:20:10]CAPDU: 80 13 01 00 [22:20:10]Write to MH i2c: E2 08 00 BC 17 80 13 01 00 00 00 00 00 50 [22:20:10]Write i2c OK [22:20:10]MH_I2C_Read... [22:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:10]Read from MH i2c: E2 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: E2 0E 00 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: E2 0E 00 BC 17 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 91 [22:20:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:20:10]wFMCommunicate OK [22:20:10]SAM_PROTO_GetShiftState done [22:20:10]FM_GetShiftState done [22:20:10]opened in 1729989159 [22:20:10]opened+sec_in_day 1730075559 [22:20:10]quantity*price = 100015 [22:20:10]sum+1 = 100017 [22:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 471 27.10.2024 22:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192439 ФПД: 229890450331347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192439&fm=229890450331347&tin=02508201610067®Number=0000000000091776&sum=100000 [22:20:11]StoreToDocumentArchive [22:20:11]shift 542 fd 192439 [22:20:11]save to /storage/0542/doc_00192439 [22:20:11]save last doc name /storage/0542/doc_00192439 to /storage/kkm_last_doc_name [22:20:11]save OK [22:20:11]Clear old archive folders... [22:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:11]tlvbuf is 019EE820 [22:20:11]SAM_PROTO_ClearQueue [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 09 00 00 [22:20:11]Write to MH i2c: E2 08 00 C9 17 80 09 00 00 00 00 00 00 52 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 C9 17 00 90 00 54 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]SAM_PROTO_ClearQueue done [22:20:11]KKMCreateOFDPacket [22:20:11]OFDProtocolAddRootSTLVToBuf [22:20:11]FM_MakeSignedData [22:20:11]FM_MakeSignedData [22:20:11]SAM_PROTO_SignData [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 01 02 [22:20:11]Write to MH i2c: E2 08 00 CA 17 80 0D 01 02 00 00 00 00 5A [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 CA 17 00 90 00 55 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=255 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 9C BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EF 02 00 35 04 06 00 D1 [22:20:11]Write to MH i2c: E2 02 01 CB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 9C BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EF 02 00 35 04 06 00 D1 00 00 36 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 CB 17 00 90 00 56 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=10 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 02 02 05 15 8A A1 16 D3 [22:20:11]Write to MH i2c: E2 0D 00 CC 17 80 0D 02 02 05 00 15 8A A1 16 D3 00 00 90 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 03 02 [22:20:11]Write to MH i2c: E2 08 00 CD 17 80 0D 03 02 00 00 00 00 5F [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 0B 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 0B 00 CD 17 00 12 E7 F7 85 A5 B0 EA F0 90 00 04 [22:20:11]RAPDU: 12 E7 F7 85 A5 B0 EA F0 90 00 [22:20:11]wFMCommunicate OK [22:20:11]SAM_PROTO_SignData done [22:20:11]FM_MakeSignedData done [22:20:11]CreateOFDProtocolMessage [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 11 00 00 [22:20:11]Write to MH i2c: E2 08 00 CE 17 80 11 00 00 00 00 00 00 5F [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 17 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 17 00 CE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [22:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:20:11]wFMCommunicate OK [22:20:11]CreateOFDProtocolMessage done [22:20:11]OFDSenderStorePacket 192439 [22:20:11]StoreOFDPacket docnum=192439 [22:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 46 07 01 A8 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 9C BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EF 02 00 35 04 06 00 D1 15 8A A1 16 D3 12 E7 F7 85 A5 B0 EA F0 [22:20:11]CheckFolder [22:20:11]dirname=/storage/ofd_packets [22:20:11]CheckFolder done [22:20:11]ProducePacketName [22:20:11]name=ofd_packets/00192439 [22:20:11]NVStorageSaveData ofd_packets/00192439 [22:20:11]File name is /storage/ofd_packets/00192439 [22:20:11]Write 301 bytes [22:20:11]NVStorageSaveData done [22:20:11]OFDSenderStorePacket done [22:20:11]KKMCreateOFDPacket done [22:20:11]NVStorageSaveData kkm_last_timestamp [22:20:11]File name is /storage/kkm_last_timestamp [22:20:11]Write 4 bytes [22:20:11]NVStorageSaveData done [22:20:11]ExternCall_PrintAddStr [22:20:11]wPrintStart [22:20:11]Write to MH i2c: 01 00 00 CF 17 E6 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: 01 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: 01 07 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 FF 0F FB [22:20:11]RasterBufferAndPrint [22:20:11]line Счет N : (1)31756 [22:20:11]line ИНН: 02508201610067 [22:20:11]line Контрольно-Кассовый Чек [22:20:11]line ПРОДАЖА [22:20:11]line ТРК (МРК, ГНК) : 12 [22:20:11]line Товар: 2710124130 [22:20:11]line Аи-92-К-5 [22:20:11]line 14.950 * 66.90 [22:20:11]line = 1000.16 [22:20:11]line НДС 12% НСП 1% [22:20:11]line > о реализуемом товаре [22:20:11]line ОКРУГЛЕНИЕ: -0.16 [22:20:11]line ИТОГО: 1000.00 [22:20:11]line Внесено: 1000.00 [22:20:11]line СДАЧА: 0.00 [22:20:11]line НСП 1% : 8.85 [22:20:11]line НДС 12% : 106.21 [22:20:11]line Наличными: 1000.00 [22:20:11]line Безнал.: 0.00 [22:20:11]line Место: АЗС № 170 "Партнер Нефть" [22:20:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:20:11]line СНО: Общий режим [22:20:11]line Чек 471 27.10.2024 22:20 [22:20:11]line Смена: 542 ФФД: 1.0 [22:20:11]line ЗНМ: 0300000110 [22:20:11]line РНМ: 0000000000091776 [22:20:11]line Версия ККМ: 001 [22:20:11]line ФМ: 0000000000871754 [22:20:11]line ФД: 192439 [22:20:11]line ФПД: 229890450331347 [22:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222012&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192439&fm=229890450331347&tin=02508201610067®Number=0000000000091776&sum=100000 [22:20:12]OFD Sender: Processing packet 192439 [packets to send 75, broken 74] [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00192439 [22:20:12]OFD Sender: To server: pG, [22:20:12]CommunicateWithHost lk.salyk.kg:30040 [22:20:12]ConnectInit lk.salyk.kg [22:20:12]written 0, free lines is 4095 [22:20:12]Connected sock=10 [22:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 46 07 01 A8 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 01 00 00 F4 03 04 00 9C BC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EF 02 00 35 04 06 00 D1 15 8A A1 16 D3 12 E7 F7 85 A5 B0 EA F0 [22:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F 79 47 00 0D EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EF 02 00 F4 03 04 00 62 61 1E 67 B6 04 01 00 00 01 13 FF C9 C2 E7 3D 38 [22:20:12]CommunicateWithHost err = 0 [22:20:12]CheckOFDResponse [22:20:12]1017 (14) - 77093643461234 [22:20:12]1041 (16) - 0000000000871754 [22:20:12]1040 (4) - 192439 [22:20:12]1012 (4) - 27.10.2024 15:50 [22:20:12]1206 (1) - 0 [22:20:12]OFD Sender: Remove packet 192439 [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00192439 [22:20:12]NVStorageDeleteData [22:20:12]Write to MH i2c: 01 00 00 FA 17 11 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 AA 0C CE [22:20:12]RasterBufferAndPrint [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]written 0, free lines is 3248 [22:20:12]MH_Cut [22:20:12]Write to MH i2c: D1 01 00 01 18 01 EB [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: D1 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: D1 01 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: D1 01 00 01 18 00 EA [22:20:12]Write to MH i2c: 01 00 00 02 18 1A [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:13]OFD Sender: No OFD packet to send [22:20:13]*** Cut start [22:20:13]*** Partial cut [22:20:13]*** CUTSNS_PIN = 1 [22:20:13]*** CUTSNS_PIN = 0 [22:20:13]*** Brake cut motor [22:20:14]Read from MH i2c: 01 [22:20:14]MH_I2C_Read... [22:20:14]*** Stop cut motor [22:20:14]*** Cut end [22:20:14]Read from MH i2c: 01 07 00 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: 01 07 00 02 18 00 00 00 00 00 FF 0F 2F [22:20:14]process_action close_receipt done [22:20:14]requested_data is exist [22:20:14]produce_requested_data [22:20:14]requested_item fm.sn is exist - process it [22:20:14]wFMCommunicate request_size=4 [22:20:14]MH_SAM_APDU [22:20:14]CAPDU: 80 11 00 00 [22:20:14]Write to MH i2c: E2 08 00 03 18 80 11 00 00 00 00 00 00 95 [22:20:14]Write i2c OK [22:20:14]MH_I2C_Read... [22:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:14]Read from MH i2c: E2 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 17 00 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 17 00 03 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [22:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:20:14]wFMCommunicate OK [22:20:14]requested_item fd.num is exist - process it [22:20:14]SAM_PROTO_GetFieldsCounters [22:20:14]wFMCommunicate request_size=4 [22:20:14]MH_SAM_APDU [22:20:14]CAPDU: 80 13 00 00 [22:20:14]Write to MH i2c: E2 08 00 04 18 80 13 00 00 00 00 00 00 98 [22:20:14]Write i2c OK [22:20:14]MH_I2C_Read... [22:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:14]Read from MH i2c: E2 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 62 00 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 62 00 04 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [22:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:14]wFMCommunicate OK [22:20:14]SAM_PROTO_GetFieldsCounters done [22:20:14]requested_item shift.num is exist - process it [22:20:14]requested_item shift.opened is exist - process it [22:20:14]req_shift_opened [22:20:14]FM_GetShiftState [22:20:14]SAM_PROTO_GetShiftState [22:20:14]wFMCommunicate request_size=4 [22:20:14]MH_SAM_APDU [22:20:14]CAPDU: 80 13 01 00 [22:20:14]Write to MH i2c: E2 08 00 05 18 80 13 01 00 00 00 00 00 9A [22:20:14]Write i2c OK [22:20:14]MH_I2C_Read... [22:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:14]Read from MH i2c: E2 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 0E 00 [22:20:14]MH_I2C_Read... [22:20:14]Read from MH i2c: E2 0E 00 05 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DB [22:20:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:20:14]wFMCommunicate OK [22:20:14]SAM_PROTO_GetShiftState done [22:20:14]FM_GetShiftState done [22:20:14]req_shift_opened done [22:20:14]requested_item shift.open_date is exist - process it [22:20:14]req_shift_open_date [22:20:14]req_shift_open_date done [22:20:14]produce_requested_data done [22:20:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192439,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:20:14]process_action_free close_receipt [22:20:14]json_value_free [22:20:14]json_value_free done [22:20:14]process_json_proto returns [22:20:14]Send response to host [22:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192439,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:20:14]free response buf [22:20:14]execute_script done [22:20:14]execute_script returns [22:20:14]free content buf [22:20:14]Sock 7.Close socket [22:20:14]Sock 7.Thread stoped [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:55]accept exits with 9 [22:21:55]New connection [22:21:55]New thread 3066707300 created [22:21:55]Thread 3066563940 joined [22:21:55]Waiting for new connection... [22:21:55] Sock 9.Parse request [22:21:55]Sock 9.Check first char [22:21:55]Sock 9.First char is OK [22:21:55]request: POST /json_proto HTTP/1.0 [22:21:55]Method: POST [22:21:55]URL: /json_proto [22:21:55]Method is POST - this is cgi request [22:21:55]url: /json_proto [22:21:55]query_string will be loaded in cgi processing [22:21:55]execute_cgi json_proto POST (null) [22:21:55]execute_cgi path=json_proto method=POST [22:21:55]POST find Content-Length [22:21:55]Host: 172.17.63.131:8080 [22:21:55]Content-Length: 676 [22:21:55]Content-Type: application/json [22:21:55] [22:21:55]POST finish read [22:21:55]Found Content-Length = 676 [22:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:55]execute_script... [22:21: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)31757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:55]POST & json_proto [22:21:55]process_json_proto [22:21:55]json parsed OK: [22:21:55]protocol is kg_v1.0 [22:21:55]action value=close_receipt [22:21:55]process_action close_receipt [22:21:55]cmd_close_receipt [22:21:55]MH_GetDate [22:21:55]Write to MH i2c: F0 00 00 06 18 0D [22:21:55]Write i2c OK [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: F0 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: F0 09 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: F0 09 00 06 18 00 05 BD 1E 67 22 05 6E 64 56 [22:21:55]GetLastDocTimeStamp 1730067612 [22:21:55]current date 1730067717 [22:21:55]FM_GetShiftState [22:21:55]SAM_PROTO_GetShiftState [22:21:55]wFMCommunicate request_size=4 [22:21:55]MH_SAM_APDU [22:21:55]CAPDU: 80 13 01 00 [22:21:55]Write to MH i2c: E2 08 00 07 18 80 13 01 00 00 00 00 00 9C [22:21:55]Write i2c OK [22:21:55]MH_I2C_Read... [22:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:55]Read from MH i2c: E2 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 0E 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 0E 00 07 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 DD [22:21:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:21:55]wFMCommunicate OK [22:21:55]SAM_PROTO_GetShiftState done [22:21:55]FM_GetShiftState done [22:21:55]opened in 1729989159 [22:21:55]opened+sec_in_day 1730075559 [22:21:55]quantity*price = 20003 [22:21:55]sum+1 = 20004 [22:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 472 27.10.2024 22:21 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192440 ФПД: 159194481837692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192440&fm=159194481837692&tin=02508201610067®Number=0000000000091776&sum=20000 [22:21:57]StoreToDocumentArchive [22:21:57]shift 542 fd 192440 [22:21:57]save to /storage/0542/doc_00192440 [22:21:57]save last doc name /storage/0542/doc_00192440 to /storage/kkm_last_doc_name [22:21:57]save OK [22:21:57]Clear old archive folders... [22:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:57]tlvbuf is B6E9EBA0 [22:21:57]SAM_PROTO_ClearQueue [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 09 00 00 [22:21:57]Write to MH i2c: E2 08 00 14 18 80 09 00 00 00 00 00 00 9E [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 14 18 00 90 00 A0 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]SAM_PROTO_ClearQueue done [22:21:57]KKMCreateOFDPacket [22:21:57]OFDProtocolAddRootSTLVToBuf [22:21:57]FM_MakeSignedData [22:21:57]FM_MakeSignedData [22:21:57]SAM_PROTO_SignData [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 0D 01 02 [22:21:57]Write to MH i2c: E2 08 00 15 18 80 0D 01 02 00 00 00 00 A6 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 15 18 00 90 00 A1 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]wFMCommunicate request_size=255 [22:21:57]MH_SAM_APDU [22:21: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 05 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EF 02 00 35 04 06 00 90 [22:21:57]Write to MH i2c: E2 02 01 16 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 05 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EF 02 00 35 04 06 00 90 00 00 75 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]wFMCommunicate request_size=10 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 0D 02 02 05 C9 5A 8A 46 7C [22:21:57]Write to MH i2c: E2 0D 00 17 18 80 0D 02 02 05 00 C9 5A 8A 46 7C 00 00 22 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [22:21:57]RAPDU: 90 00 [22:21:57]wFMCommunicate OK [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 0D 03 02 [22:21:57]Write to MH i2c: E2 08 00 18 18 80 0D 03 02 00 00 00 00 AB [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 0B 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 0B 00 18 18 00 AB D3 C3 26 57 5C D0 52 90 00 E8 [22:21:57]RAPDU: AB D3 C3 26 57 5C D0 52 90 00 [22:21:57]wFMCommunicate OK [22:21:57]SAM_PROTO_SignData done [22:21:57]FM_MakeSignedData done [22:21:57]CreateOFDProtocolMessage [22:21:57]wFMCommunicate request_size=4 [22:21:57]MH_SAM_APDU [22:21:57]CAPDU: 80 11 00 00 [22:21:57]Write to MH i2c: E2 08 00 19 18 80 11 00 00 00 00 00 00 AB [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:57]Read from MH i2c: E2 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 17 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: E2 17 00 19 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [22:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:21:57]wFMCommunicate OK [22:21:57]CreateOFDProtocolMessage done [22:21:57]OFDSenderStorePacket 192440 [22:21:57]StoreOFDPacket docnum=192440 [22:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 41 07 01 AE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 05 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EF 02 00 35 04 06 00 90 C9 5A 8A 46 7C AB D3 C3 26 57 5C D0 52 [22:21:57]CheckFolder [22:21:57]dirname=/storage/ofd_packets [22:21:57]CheckFolder done [22:21:57]ProducePacketName [22:21:57]name=ofd_packets/00192440 [22:21:57]NVStorageSaveData ofd_packets/00192440 [22:21:57]File name is /storage/ofd_packets/00192440 [22:21:57]Write 301 bytes [22:21:57]NVStorageSaveData done [22:21:57]OFDSenderStorePacket done [22:21:57]KKMCreateOFDPacket done [22:21:57]NVStorageSaveData kkm_last_timestamp [22:21:57]File name is /storage/kkm_last_timestamp [22:21:57]Write 4 bytes [22:21:57]NVStorageSaveData done [22:21:57]ExternCall_PrintAddStr [22:21:57]wPrintStart [22:21:57]Write to MH i2c: 01 00 00 1A 18 32 [22:21:57]Write i2c OK [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: 01 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: 01 07 00 [22:21:57]MH_I2C_Read... [22:21:57]Read from MH i2c: 01 07 00 1A 18 00 00 00 00 00 FF 0F 47 [22:21:57]RasterBufferAndPrint [22:21:57]line Счет N : (1)31757 [22:21:57]line ИНН: 02508201610067 [22:21:57]line Контрольно-Кассовый Чек [22:21:57]line ПРОДАЖА [22:21:57]line ТРК (МРК, ГНК) : 21 [22:21:57]line Товар: 2710124130 [22:21:57]line Аи-92-К-5 [22:21:57]line 2.990 * 66.90 [22:21:57]line = 200.03 [22:21:57]line НДС 12% НСП 1% [22:21:57]line > о реализуемом товаре [22:21:57]line ОКРУГЛЕНИЕ: -0.03 [22:21:57]line ИТОГО: 200.00 [22:21:57]line Внесено: 200.00 [22:21:57]line СДАЧА: 0.00 [22:21:57]line НСП 1% : 1.77 [22:21:57]line НДС 12% : 21.24 [22:21:57]line Наличными: 200.00 [22:21:57]line Безнал.: 0.00 [22:21:57]line Место: АЗС № 170 "Партнер Нефть" [22:21:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:21:57]line СНО: Общий режим [22:21:57]line Чек 472 27.10.2024 22:21 [22:21:57]line Смена: 542 ФФД: 1.0 [22:21:57]line ЗНМ: 0300000110 [22:21:57]line РНМ: 0000000000091776 [22:21:57]line Версия ККМ: 001 [22:21:57]line ФМ: 0000000000871754 [22:21:57]line ФД: 192440 [22:21:57]line ФПД: 159194481837692 [22:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192440&fm=159194481837692&tin=02508201610067®Number=0000000000091776&sum=20000 [22:21:57]OFD Sender: Processing packet 192440 [packets to send 75, broken 74] [22:21:57]ProducePacketName [22:21:57]name=ofd_packets/00192440 [22:21:57]OFD Sender: To server: pG, [22:21:57]CommunicateWithHost lk.salyk.kg:30040 [22:21:57]ConnectInit lk.salyk.kg [22:21:57]written 0, free lines is 4095 [22:21:58]Connected sock=10 [22:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 41 07 01 AE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 05 BD 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EF 02 00 35 04 06 00 90 C9 5A 8A 46 7C AB D3 C3 26 57 5C D0 52 [22:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 20 DE 47 00 E7 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EF 02 00 F4 03 04 00 CC 61 1E 67 B6 04 01 00 00 64 82 60 5A 97 C8 D5 AA [22:21:58]CommunicateWithHost err = 0 [22:21:58]CheckOFDResponse [22:21:58]1017 (14) - 77093643461234 [22:21:58]1041 (16) - 0000000000871754 [22:21:58]1040 (4) - 192440 [22:21:58]1012 (4) - 27.10.2024 15:52 [22:21:58]1206 (1) - 0 [22:21:58]OFD Sender: Remove packet 192440 [22:21:58]ProducePacketName [22:21:58]name=ofd_packets/00192440 [22:21:58]NVStorageDeleteData [22:21:58]Write to MH i2c: 01 00 00 45 18 5D [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: 01 07 00 45 18 00 00 00 00 00 BF 0C 2F [22:21:58]RasterBufferAndPrint [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]line [22:21:58]written 0, free lines is 3269 [22:21:58]MH_Cut [22:21:58]Write to MH i2c: D1 01 00 4C 18 01 36 [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 01 00 [22:21:58]MH_I2C_Read... [22:21:58]Read from MH i2c: D1 01 00 4C 18 00 35 [22:21:58]Write to MH i2c: 01 00 00 4D 18 65 [22:21:58]Write i2c OK [22:21:58]MH_I2C_Read... [22:21:58]OFD Sender: No OFD packet to send [22:21:59]*** Cut start [22:21:59]*** Partial cut [22:21:59]*** CUTSNS_PIN = 1 [22:21:59]*** CUTSNS_PIN = 0 [22:21:59]*** Brake cut motor [22:21:59]Read from MH i2c: 01 [22:21:59]MH_I2C_Read... [22:21:59]*** Stop cut motor [22:21:59]*** Cut end [22:21:59]Read from MH i2c: 01 07 00 [22:21:59]MH_I2C_Read... [22:21:59]Read from MH i2c: 01 07 00 4D 18 00 00 00 00 00 FF 0F 7A [22:21:59]process_action close_receipt done [22:21:59]requested_data is exist [22:21:59]produce_requested_data [22:21:59]requested_item fm.sn is exist - process it [22:21:59]wFMCommunicate request_size=4 [22:21:59]MH_SAM_APDU [22:21:59]CAPDU: 80 11 00 00 [22:21:59]Write to MH i2c: E2 08 00 4E 18 80 11 00 00 00 00 00 00 E0 [22:21:59]Write i2c OK [22:21:59]MH_I2C_Read... [22:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:59]Read from MH i2c: E2 [22:21:59]MH_I2C_Read... [22:21:59]Read from MH i2c: E2 17 00 [22:21:59]MH_I2C_Read... [22:21:59]Read from MH i2c: E2 17 00 4E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [22:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:21:59]wFMCommunicate OK [22:21:59]requested_item fd.num is exist - process it [22:21:59]SAM_PROTO_GetFieldsCounters [22:21:59]wFMCommunicate request_size=4 [22:21:59]MH_SAM_APDU [22:21:59]CAPDU: 80 13 00 00 [22:21:59]Write to MH i2c: E2 08 00 4F 18 80 13 00 00 00 00 00 00 E3 [22:21:59]Write i2c OK [22:21:59]MH_I2C_Read... [22:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:00]Read from MH i2c: E2 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 62 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 62 00 4F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [22:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:00]wFMCommunicate OK [22:22:00]SAM_PROTO_GetFieldsCounters done [22:22:00]requested_item shift.num is exist - process it [22:22:00]requested_item shift.opened is exist - process it [22:22:00]req_shift_opened [22:22:00]FM_GetShiftState [22:22:00]SAM_PROTO_GetShiftState [22:22:00]wFMCommunicate request_size=4 [22:22:00]MH_SAM_APDU [22:22:00]CAPDU: 80 13 01 00 [22:22:00]Write to MH i2c: E2 08 00 50 18 80 13 01 00 00 00 00 00 E5 [22:22:00]Write i2c OK [22:22:00]MH_I2C_Read... [22:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:00]Read from MH i2c: E2 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 0E 00 [22:22:00]MH_I2C_Read... [22:22:00]Read from MH i2c: E2 0E 00 50 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 26 [22:22:00]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:22:00]wFMCommunicate OK [22:22:00]SAM_PROTO_GetShiftState done [22:22:00]FM_GetShiftState done [22:22:00]req_shift_opened done [22:22:00]requested_item shift.open_date is exist - process it [22:22:00]req_shift_open_date [22:22:00]req_shift_open_date done [22:22:00]produce_requested_data done [22:22:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192440,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:22:00]process_action_free close_receipt [22:22:00]json_value_free [22:22:00]json_value_free done [22:22:00]process_json_proto returns [22:22:00]Send response to host [22:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192440,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:22:00]free response buf [22:22:00]execute_script done [22:22:00]execute_script returns [22:22:00]free content buf [22:22:00]Sock 9.Close socket [22:22:00]Sock 9.Thread stoped [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:22]accept exits with 7 [22:28:22]New connection [22:28:22]New thread 3066563940 created [22:28:22]Thread 3066707300 joined [22:28:22]Waiting for new connection... [22:28:22] Sock 7.Parse request [22:28:22]Sock 7.Check first char [22:28:22]Sock 7.First char is OK [22:28:22]request: POST /json_proto HTTP/1.0 [22:28:22]Method: POST [22:28:22]URL: /json_proto [22:28:22]Method is POST - this is cgi request [22:28:22]url: /json_proto [22:28:22]query_string will be loaded in cgi processing [22:28:22]execute_cgi json_proto POST (null) [22:28:22]execute_cgi path=json_proto method=POST [22:28:22]POST find Content-Length [22:28:22]Host: 172.17.63.131:8080 [22:28:22]Content-Length: 678 [22:28:22]Content-Type: application/json [22:28:22] [22:28:22]POST finish read [22:28:22]Found Content-Length = 678 [22:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31758", "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" : 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" ] } } [22:28:22]execute_script... [22:28: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)31758", "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" : 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" ] } } [22:28:22]POST & json_proto [22:28:22]process_json_proto [22:28:22]json parsed OK: [22:28:22]protocol is kg_v1.0 [22:28:22]action value=close_receipt [22:28:22]process_action close_receipt [22:28:22]cmd_close_receipt [22:28:22]MH_GetDate [22:28:22]Write to MH i2c: F0 00 00 51 18 58 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: F0 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: F0 09 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: F0 09 00 51 18 00 88 BE 1E 67 22 05 6E 64 25 [22:28:22]GetLastDocTimeStamp 1730067717 [22:28:22]current date 1730068104 [22:28:22]FM_GetShiftState [22:28:22]SAM_PROTO_GetShiftState [22:28:22]wFMCommunicate request_size=4 [22:28:22]MH_SAM_APDU [22:28:22]CAPDU: 80 13 01 00 [22:28:22]Write to MH i2c: E2 08 00 52 18 80 13 01 00 00 00 00 00 E7 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:22]Read from MH i2c: E2 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 0E 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 0E 00 52 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 28 [22:28:22]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:28:22]wFMCommunicate OK [22:28:22]SAM_PROTO_GetShiftState done [22:28:22]FM_GetShiftState done [22:28:22]opened in 1729989159 [22:28:22]opened+sec_in_day 1730075559 [22:28:22]quantity*price = 100050 [22:28:22]sum+1 = 100052 [22:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 473 27.10.2024 22:28 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192441 ФПД: 204529790347086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192441&fm=204529790347086&tin=02508201610067®Number=0000000000091776&sum=100000 [22:28:23]StoreToDocumentArchive [22:28:23]shift 542 fd 192441 [22:28:23]save to /storage/0542/doc_00192441 [22:28:23]save last doc name /storage/0542/doc_00192441 to /storage/kkm_last_doc_name [22:28:23]save OK [22:28:23]Clear old archive folders... [22:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:28:23]tlvbuf is B6E9E9D0 [22:28:23]SAM_PROTO_ClearQueue [22:28:23]wFMCommunicate request_size=4 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 09 00 00 [22:28:23]Write to MH i2c: E2 08 00 5F 18 80 09 00 00 00 00 00 00 E9 [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 5F 18 00 90 00 EB [22:28:23]RAPDU: 90 00 [22:28:23]wFMCommunicate OK [22:28:23]SAM_PROTO_ClearQueue done [22:28:23]KKMCreateOFDPacket [22:28:23]OFDProtocolAddRootSTLVToBuf [22:28:23]FM_MakeSignedData [22:28:23]FM_MakeSignedData [22:28:23]SAM_PROTO_SignData [22:28:23]wFMCommunicate request_size=4 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 0D 01 02 [22:28:23]Write to MH i2c: E2 08 00 60 18 80 0D 01 02 00 00 00 00 F1 [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [22:28:23]RAPDU: 90 00 [22:28:23]wFMCommunicate OK [22:28:23]wFMCommunicate request_size=255 [22:28:23]MH_SAM_APDU [22:28: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 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 D9 01 00 00 F4 03 04 00 88 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EF 02 00 35 04 06 00 BA 04 CD 7F [22:28:23]Write to MH i2c: E2 02 01 61 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 88 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EF 02 00 35 04 06 00 BA 04 CD 7F 00 00 F4 [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [22:28:23]RAPDU: 90 00 [22:28:23]wFMCommunicate OK [22:28:23]wFMCommunicate request_size=7 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 0D 02 02 02 E7 4E [22:28:23]Write to MH i2c: E2 0A 00 62 18 80 0D 02 02 02 00 E7 4E 00 00 2D [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [22:28:23]RAPDU: 90 00 [22:28:23]wFMCommunicate OK [22:28:23]wFMCommunicate request_size=4 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 0D 03 02 [22:28:23]Write to MH i2c: E2 08 00 63 18 80 0D 03 02 00 00 00 00 F6 [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 0B 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 0B 00 63 18 00 B9 14 A7 01 AC 6A 11 5F 90 00 F2 [22:28:23]RAPDU: B9 14 A7 01 AC 6A 11 5F 90 00 [22:28:23]wFMCommunicate OK [22:28:23]SAM_PROTO_SignData done [22:28:23]FM_MakeSignedData done [22:28:23]CreateOFDProtocolMessage [22:28:23]wFMCommunicate request_size=4 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 11 00 00 [22:28:23]Write to MH i2c: E2 08 00 64 18 80 11 00 00 00 00 00 00 F6 [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 17 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 17 00 64 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 49 [22:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:28:23]wFMCommunicate OK [22:28:23]CreateOFDProtocolMessage done [22:28:23]OFDSenderStorePacket 192441 [22:28:23]StoreOFDPacket docnum=192441 [22:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 49 04 01 34 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D9 01 00 00 F4 03 04 00 88 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EF 02 00 35 04 06 00 BA 04 CD 7F E7 4E B9 14 A7 01 AC 6A 11 5F [22:28:23]CheckFolder [22:28:23]dirname=/storage/ofd_packets [22:28:23]CheckFolder done [22:28:23]ProducePacketName [22:28:23]name=ofd_packets/00192441 [22:28:23]NVStorageSaveData ofd_packets/00192441 [22:28:23]File name is /storage/ofd_packets/00192441 [22:28:23]Write 298 bytes [22:28:23]NVStorageSaveData done [22:28:23]OFDSenderStorePacket done [22:28:23]KKMCreateOFDPacket done [22:28:23]NVStorageSaveData kkm_last_timestamp [22:28:23]File name is /storage/kkm_last_timestamp [22:28:23]Write 4 bytes [22:28:23]NVStorageSaveData done [22:28:23]ExternCall_PrintAddStr [22:28:23]wPrintStart [22:28:23]Write to MH i2c: 01 00 00 65 18 7D [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: 01 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: 01 07 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: 01 07 00 65 18 00 00 00 00 00 FF 0F 92 [22:28:23]RasterBufferAndPrint [22:28:23]line Счет N : (1)31758 [22:28:23]line ИНН: 02508201610067 [22:28:23]line Контрольно-Кассовый Чек [22:28:23]line ПРОДАЖА [22:28:23]line ТРК (МРК, ГНК) : 11 [22:28:23]line Товар: 2710194210 [22:28:23]line ДТ-К-5 [22:28:23]line 13.130 * 76.20 [22:28:23]line = 1000.51 [22:28:23]line НДС 12% НСП 1% [22:28:23]line > о реализуемом товаре [22:28:23]line ОКРУГЛЕНИЕ: -0.51 [22:28:23]line ИТОГО: 1000.00 [22:28:23]line Внесено: 1000.00 [22:28:23]line СДАЧА: 0.00 [22:28:23]line НСП 1% : 8.85 [22:28:23]line НДС 12% : 106.25 [22:28:23]line Наличными: 1000.00 [22:28:23]line Безнал.: 0.00 [22:28:23]line Место: АЗС № 170 "Партнер Нефть" [22:28:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:28:23]line СНО: Общий режим [22:28:23]line Чек 473 27.10.2024 22:28 [22:28:23]line Смена: 542 ФФД: 1.0 [22:28:23]line ЗНМ: 0300000110 [22:28:23]line РНМ: 0000000000091776 [22:28:23]line Версия ККМ: 001 [22:28:23]line ФМ: 0000000000871754 [22:28:23]line ФД: 192441 [22:28:23]line ФПД: 204529790347086 [22:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192441&fm=204529790347086&tin=02508201610067®Number=0000000000091776&sum=100000 [22:28:24]OFD Sender: Processing packet 192441 [packets to send 75, broken 74] [22:28:24]ProducePacketName [22:28:24]name=ofd_packets/00192441 [22:28:24]OFD Sender: To server: pG, [22:28:24]CommunicateWithHost lk.salyk.kg:30040 [22:28:24]ConnectInit lk.salyk.kg [22:28:24]written 0, free lines is 4095 [22:28:24]Write to MH i2c: 01 00 00 90 18 A8 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 07 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 A7 0C 62 [22:28:24]RasterBufferAndPrint [22:28:24]line [22:28:24]line [22:28:24]line [22:28:24]line [22:28:24]line [22:28:24]written 0, free lines is 3242 [22:28:24]MH_Cut [22:28:24]Write to MH i2c: D1 01 00 97 18 01 81 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: D1 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: D1 01 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: D1 01 00 97 18 00 80 [22:28:24]Write to MH i2c: 01 00 00 98 18 B0 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:25]*** Cut start [22:28:25]*** Partial cut [22:28:25]*** CUTSNS_PIN = 1 [22:28:25]*** CUTSNS_PIN = 0 [22:28:25]*** Brake cut motor [22:28:26]Read from MH i2c: 01 [22:28:26]MH_I2C_Read... [22:28:26]*** Stop cut motor [22:28:26]*** Cut end [22:28:26]Read from MH i2c: 01 07 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [22:28:26]process_action close_receipt done [22:28:26]requested_data is exist [22:28:26]produce_requested_data [22:28:26]requested_item fm.sn is exist - process it [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 11 00 00 [22:28:26]Write to MH i2c: E2 08 00 99 18 80 11 00 00 00 00 00 00 2B [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 99 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [22:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:28:26]wFMCommunicate OK [22:28:26]requested_item fd.num is exist - process it [22:28:26]SAM_PROTO_GetFieldsCounters [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 13 00 00 [22:28:26]Write to MH i2c: E2 08 00 9A 18 80 13 00 00 00 00 00 00 2E [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 62 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 62 00 9A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [22:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:26]wFMCommunicate OK [22:28:26]SAM_PROTO_GetFieldsCounters done [22:28:26]requested_item shift.num is exist - process it [22:28:26]requested_item shift.opened is exist - process it [22:28:26]req_shift_opened [22:28:26]FM_GetShiftState [22:28:26]SAM_PROTO_GetShiftState [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 13 01 00 [22:28:26]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 0E 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 71 [22:28:26]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:28:26]wFMCommunicate OK [22:28:26]SAM_PROTO_GetShiftState done [22:28:26]FM_GetShiftState done [22:28:26]req_shift_opened done [22:28:26]requested_item shift.open_date is exist - process it [22:28:26]req_shift_open_date [22:28:26]req_shift_open_date done [22:28:26]produce_requested_data done [22:28:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192441,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:28:26]process_action_free close_receipt [22:28:26]json_value_free [22:28:26]json_value_free done [22:28:26]process_json_proto returns [22:28:26]Send response to host [22:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192441,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:28:26]free response buf [22:28:26]execute_script done [22:28:26]execute_script returns [22:28:26]free content buf [22:28:26]Sock 7.Close socket [22:28:26]Sock 7.Thread stoped [22:30:35]ConnectInit Can't connect to host [22:30:35]CommunicateWithHost connect error [22:30:35]CommunicateWithHost err = -1 [22:30:35]OFD Sender: Server communicate error [22:30:40]OFD Sender: Processing packet 192441 [packets to send 75, broken 74] [22:30:40]ProducePacketName [22:30:40]name=ofd_packets/00192441 [22:30:40]OFD Sender: To server: pG, [22:30:40]CommunicateWithHost lk.salyk.kg:30040 [22:30:40]ConnectInit lk.salyk.kg [22:30:40]Connected sock=7 [22:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 49 04 01 34 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D9 01 00 00 F4 03 04 00 88 BE 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EF 02 00 35 04 06 00 BA 04 CD 7F E7 4E B9 14 A7 01 AC 6A 11 5F [22:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 0F 47 00 FA 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EF 02 00 F4 03 04 00 D6 63 1E 67 B6 04 01 00 00 77 9A 5B 0A 38 6E 8F A4 [22:30:40]CommunicateWithHost err = 0 [22:30:40]CheckOFDResponse [22:30:40]1017 (14) - 77093643461234 [22:30:40]1041 (16) - 0000000000871754 [22:30:40]1040 (4) - 192441 [22:30:40]1012 (4) - 27.10.2024 16:01 [22:30:40]1206 (1) - 0 [22:30:40]OFD Sender: Remove packet 192441 [22:30:40]ProducePacketName [22:30:40]name=ofd_packets/00192441 [22:30:40]NVStorageDeleteData [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:51]accept exits with 9 [22:36:51]New connection [22:36:51]New thread 3066707300 created [22:36:51]Thread 3066563940 joined [22:36:51]Waiting for new connection... [22:36:51] Sock 9.Parse request [22:36:51]Sock 9.Check first char [22:36:51]Sock 9.First char is OK [22:36:51]request: POST /json_proto HTTP/1.0 [22:36:51]Method: POST [22:36:51]URL: /json_proto [22:36:51]Method is POST - this is cgi request [22:36:51]url: /json_proto [22:36:51]query_string will be loaded in cgi processing [22:36:51]execute_cgi json_proto POST (null) [22:36:51]execute_cgi path=json_proto method=POST [22:36:51]POST find Content-Length [22:36:51]Host: 172.17.63.131:8080 [22:36:51]Content-Length: 676 [22:36:51]Content-Type: application/json [22:36:51] [22:36:51]POST finish read [22:36:51]Found Content-Length = 676 [22:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:51]execute_script... [22:36: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)31759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:51]POST & json_proto [22:36:51]process_json_proto [22:36:51]json parsed OK: [22:36:51]protocol is kg_v1.0 [22:36:51]action value=close_receipt [22:36:51]process_action close_receipt [22:36:51]cmd_close_receipt [22:36:51]MH_GetDate [22:36:51]Write to MH i2c: F0 00 00 9C 18 A3 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: F0 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: F0 09 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: F0 09 00 9C 18 00 85 C0 1E 67 22 05 6E 64 6F [22:36:51]GetLastDocTimeStamp 1730068104 [22:36:51]current date 1730068613 [22:36:51]FM_GetShiftState [22:36:51]SAM_PROTO_GetShiftState [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 13 01 00 [22:36:51]Write to MH i2c: E2 08 00 9D 18 80 13 01 00 00 00 00 00 32 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0E 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0E 00 9D 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 73 [22:36:51]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_GetShiftState done [22:36:51]FM_GetShiftState done [22:36:51]opened in 1729989159 [22:36:51]opened+sec_in_day 1730075559 [22:36:51]quantity*price = 40006 [22:36:51]sum+1 = 40007 [22:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 474 27.10.2024 22:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192442 ФПД: 280312597593338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192442&fm=280312597593338&tin=02508201610067®Number=0000000000091776&sum=40000 [22:36:52]StoreToDocumentArchive [22:36:52]shift 542 fd 192442 [22:36:52]save to /storage/0542/doc_00192442 [22:36:52]save last doc name /storage/0542/doc_00192442 to /storage/kkm_last_doc_name [22:36:52]save OK [22:36:52]Clear old archive folders... [22:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:52]tlvbuf is 0197DD80 [22:36:52]SAM_PROTO_ClearQueue [22:36:52]wFMCommunicate request_size=4 [22:36:52]MH_SAM_APDU [22:36:52]CAPDU: 80 09 00 00 [22:36:52]Write to MH i2c: E2 08 00 AA 18 80 09 00 00 00 00 00 00 34 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:52]Read from MH i2c: E2 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 03 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [22:36:52]RAPDU: 90 00 [22:36:52]wFMCommunicate OK [22:36:52]SAM_PROTO_ClearQueue done [22:36:52]KKMCreateOFDPacket [22:36:52]OFDProtocolAddRootSTLVToBuf [22:36:52]FM_MakeSignedData [22:36:52]FM_MakeSignedData [22:36:52]SAM_PROTO_SignData [22:36:52]wFMCommunicate request_size=4 [22:36:52]MH_SAM_APDU [22:36:52]CAPDU: 80 0D 01 02 [22:36:52]Write to MH i2c: E2 08 00 AB 18 80 0D 01 02 00 00 00 00 3C [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=255 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 85 C0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EF 02 00 35 04 06 00 FE [22:36:53]Write to MH i2c: E2 02 01 AC 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 85 C0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EF 02 00 35 04 06 00 FE 00 00 0D [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=10 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 02 02 05 F1 5C CE 3C FA [22:36:53]Write to MH i2c: E2 0D 00 AD 18 80 0D 02 02 05 00 F1 5C CE 3C FA 00 00 9A [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 03 02 [22:36:53]Write to MH i2c: E2 08 00 AE 18 80 0D 03 02 00 00 00 00 41 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0B 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0B 00 AE 18 00 18 7A 5F D6 13 AA AA 30 90 00 A0 [22:36:53]RAPDU: 18 7A 5F D6 13 AA AA 30 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_SignData done [22:36:53]FM_MakeSignedData done [22:36:53]CreateOFDProtocolMessage [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 11 00 00 [22:36:53]Write to MH i2c: E2 08 00 AF 18 80 11 00 00 00 00 00 00 41 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 AF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [22:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:36:53]wFMCommunicate OK [22:36:53]CreateOFDProtocolMessage done [22:36:53]OFDSenderStorePacket 192442 [22:36:53]StoreOFDPacket docnum=192442 [22:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D E5 07 01 F7 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 85 C0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EF 02 00 35 04 06 00 FE F1 5C CE 3C FA 18 7A 5F D6 13 AA AA 30 [22:36:53]CheckFolder [22:36:53]dirname=/storage/ofd_packets [22:36:53]CheckFolder done [22:36:53]ProducePacketName [22:36:53]name=ofd_packets/00192442 [22:36:53]NVStorageSaveData ofd_packets/00192442 [22:36:53]File name is /storage/ofd_packets/00192442 [22:36:53]Write 301 bytes [22:36:53]NVStorageSaveData done [22:36:53]OFDSenderStorePacket done [22:36:53]KKMCreateOFDPacket done [22:36:53]NVStorageSaveData kkm_last_timestamp [22:36:53]File name is /storage/kkm_last_timestamp [22:36:53]Write 4 bytes [22:36:53]NVStorageSaveData done [22:36:53]ExternCall_PrintAddStr [22:36:53]wPrintStart [22:36:53]Write to MH i2c: 01 00 00 B0 18 C8 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 FF 0F DD [22:36:53]RasterBufferAndPrint [22:36:53]line Счет N : (1)31759 [22:36:53]line ИНН: 02508201610067 [22:36:53]line Контрольно-Кассовый Чек [22:36:53]line ПРОДАЖА [22:36:53]line ТРК (МРК, ГНК) : 21 [22:36:53]line Товар: 2710124130 [22:36:53]line Аи-92-К-5 [22:36:53]line 5.980 * 66.90 [22:36:53]line = 400.06 [22:36:53]line НДС 12% НСП 1% [22:36:53]line > о реализуемом товаре [22:36:53]line ОКРУГЛЕНИЕ: -0.06 [22:36:53]line ИТОГО: 400.00 [22:36:53]line Внесено: 400.00 [22:36:53]line СДАЧА: 0.00 [22:36:53]line НСП 1% : 3.54 [22:36:53]line НДС 12% : 42.48 [22:36:53]line Наличными: 400.00 [22:36:53]line Безнал.: 0.00 [22:36:53]line Место: АЗС № 170 "Партнер Нефть" [22:36:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:36:53]line СНО: Общий режим [22:36:53]line Чек 474 27.10.2024 22:36 [22:36:53]line Смена: 542 ФФД: 1.0 [22:36:53]line ЗНМ: 0300000110 [22:36:53]line РНМ: 0000000000091776 [22:36:53]line Версия ККМ: 001 [22:36:53]line ФМ: 0000000000871754 [22:36:53]line ФД: 192442 [22:36:53]line ФПД: 280312597593338 [22:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223653&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192442&fm=280312597593338&tin=02508201610067®Number=0000000000091776&sum=40000 [22:36:53]OFD Sender: Processing packet 192442 [packets to send 75, broken 74] [22:36:53]ProducePacketName [22:36:53]name=ofd_packets/00192442 [22:36:53]OFD Sender: To server: pG, [22:36:53]CommunicateWithHost lk.salyk.kg:30040 [22:36:53]ConnectInit lk.salyk.kg [22:36:53]written 0, free lines is 4095 [22:36:53]Connected sock=10 [22:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D E5 07 01 F7 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 85 C0 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EF 02 00 35 04 06 00 FE F1 5C CE 3C FA 18 7A 5F D6 13 AA AA 30 [22:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1E BC 47 00 F5 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EF 02 00 F4 03 04 00 4B 65 1E 67 B6 04 01 00 00 76 36 D0 10 B9 66 D4 59 [22:36:54]CommunicateWithHost err = 0 [22:36:54]CheckOFDResponse [22:36:54]1017 (14) - 77093643461234 [22:36:54]1041 (16) - 0000000000871754 [22:36:54]1040 (4) - 192442 [22:36:54]1012 (4) - 27.10.2024 16:07 [22:36:54]1206 (1) - 0 [22:36:54]OFD Sender: Remove packet 192442 [22:36:54]ProducePacketName [22:36:54]name=ofd_packets/00192442 [22:36:54]NVStorageDeleteData [22:36:54]Write to MH i2c: 01 00 00 DB 18 F3 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 A5 0C AB [22:36:54]RasterBufferAndPrint [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]written 0, free lines is 3242 [22:36:54]MH_Cut [22:36:54]Write to MH i2c: D1 01 00 E2 18 01 CC [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 01 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 01 00 E2 18 00 CB [22:36:54]Write to MH i2c: 01 00 00 E3 18 FB [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]OFD Sender: No OFD packet to send [22:36:55]*** Cut start [22:36:55]*** Partial cut [22:36:55]*** CUTSNS_PIN = 1 [22:36:55]*** CUTSNS_PIN = 0 [22:36:55]*** Brake cut motor [22:36:55]Read from MH i2c: 01 [22:36:55]MH_I2C_Read... [22:36:55]*** Stop cut motor [22:36:55]*** Cut end [22:36:55]Read from MH i2c: 01 07 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 E3 18 00 00 00 00 00 FF 0F 10 [22:36:55]process_action close_receipt done [22:36:55]requested_data is exist [22:36:55]produce_requested_data [22:36:55]requested_item fm.sn is exist - process it [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 11 00 00 [22:36:55]Write to MH i2c: E2 08 00 E4 18 80 11 00 00 00 00 00 00 76 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 17 00 [22:36:55]MH_I2C_Read... [22:36:55]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 37 35 34 90 00 C9 [22:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:36:55]wFMCommunicate OK [22:36:55]requested_item fd.num is exist - process it [22:36:55]SAM_PROTO_GetFieldsCounters [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 13 00 00 [22:36:55]Write to MH i2c: E2 08 00 E5 18 80 13 00 00 00 00 00 00 79 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 62 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 62 00 E5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [22:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:55]wFMCommunicate OK [22:36:55]SAM_PROTO_GetFieldsCounters done [22:36:55]requested_item shift.num is exist - process it [22:36:55]requested_item shift.opened is exist - process it [22:36:55]req_shift_opened [22:36:55]FM_GetShiftState [22:36:55]SAM_PROTO_GetShiftState [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 13 01 00 [22:36:55]Write to MH i2c: E2 08 00 E6 18 80 13 01 00 00 00 00 00 7B [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 0E 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 0E 00 E6 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BC [22:36:55]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:36:55]wFMCommunicate OK [22:36:55]SAM_PROTO_GetShiftState done [22:36:55]FM_GetShiftState done [22:36:55]req_shift_opened done [22:36:55]requested_item shift.open_date is exist - process it [22:36:55]req_shift_open_date [22:36:55]req_shift_open_date done [22:36:55]produce_requested_data done [22:36:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192442,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:36:55]process_action_free close_receipt [22:36:55]json_value_free [22:36:55]json_value_free done [22:36:55]process_json_proto returns [22:36:55]Send response to host [22:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192442,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:36:55]free response buf [22:36:55]execute_script done [22:36:55]execute_script returns [22:36:55]free content buf [22:36:55]Sock 9.Close socket [22:36:55]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]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:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:04]accept exits with 7 [22:44:04]New connection [22:44:04]New thread 3066563940 created [22:44:04]Thread 3066707300 joined [22:44:04]Waiting for new connection... [22:44:04] Sock 7.Parse request [22:44:04]Sock 7.Check first char [22:44:04]Sock 7.First char is OK [22:44:04]request: POST /json_proto HTTP/1.0 [22:44:04]Method: POST [22:44:04]URL: /json_proto [22:44:04]Method is POST - this is cgi request [22:44:04]url: /json_proto [22:44:04]query_string will be loaded in cgi processing [22:44:04]execute_cgi json_proto POST (null) [22:44:04]execute_cgi path=json_proto method=POST [22:44:04]POST find Content-Length [22:44:04]Host: 172.17.63.131:8080 [22:44:04]Content-Length: 681 [22:44:04]Content-Type: application/json [22:44:04] [22:44:04]POST finish read [22:44:04]Found Content-Length = 681 [22:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:04]execute_script... [22:44: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)31760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:04]POST & json_proto [22:44:04]process_json_proto [22:44:04]json parsed OK: [22:44:04]protocol is kg_v1.0 [22:44:04]action value=close_receipt [22:44:04]process_action close_receipt [22:44:04]cmd_close_receipt [22:44:04]MH_GetDate [22:44:04]Write to MH i2c: F0 00 00 E7 18 EE [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: F0 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: F0 09 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: F0 09 00 E7 18 00 36 C2 1E 67 22 05 6E 64 6D [22:44:04]GetLastDocTimeStamp 1730068613 [22:44:04]current date 1730069046 [22:44:04]FM_GetShiftState [22:44:04]SAM_PROTO_GetShiftState [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 13 01 00 [22:44:04]Write to MH i2c: E2 08 00 E8 18 80 13 01 00 00 00 00 00 7D [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 0E 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 0E 00 E8 18 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 BE [22:44:04]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:44:04]wFMCommunicate OK [22:44:04]SAM_PROTO_GetShiftState done [22:44:04]FM_GetShiftState done [22:44:04]opened in 1729989159 [22:44:04]opened+sec_in_day 1730075559 [22:44:04]quantity*price = 100015 [22:44:04]sum+1 = 100017 [22:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 475 27.10.2024 22:44 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192443 ФПД: 228335049128463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192443&fm=228335049128463&tin=02508201610067®Number=0000000000091776&sum=100000 [22:44:05]StoreToDocumentArchive [22:44:05]shift 542 fd 192443 [22:44:05]save to /storage/0542/doc_00192443 [22:44:05]save last doc name /storage/0542/doc_00192443 to /storage/kkm_last_doc_name [22:44:05]save OK [22:44:05]Clear old archive folders... [22:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:05]tlvbuf is 0197DDA0 [22:44:05]SAM_PROTO_ClearQueue [22:44:05]wFMCommunicate request_size=4 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 09 00 00 [22:44:05]Write to MH i2c: E2 08 00 F5 18 80 09 00 00 00 00 00 00 7F [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [22:44:05]RAPDU: 90 00 [22:44:05]wFMCommunicate OK [22:44:05]SAM_PROTO_ClearQueue done [22:44:05]KKMCreateOFDPacket [22:44:05]OFDProtocolAddRootSTLVToBuf [22:44:05]FM_MakeSignedData [22:44:05]FM_MakeSignedData [22:44:05]SAM_PROTO_SignData [22:44:05]wFMCommunicate request_size=4 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 0D 01 02 [22:44:05]Write to MH i2c: E2 08 00 F6 18 80 0D 01 02 00 00 00 00 87 [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [22:44:05]RAPDU: 90 00 [22:44:05]wFMCommunicate OK [22:44:05]wFMCommunicate request_size=255 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 36 C2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EF 02 00 35 04 06 00 CF [22:44:05]Write to MH i2c: E2 02 01 F7 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 36 C2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EF 02 00 35 04 06 00 CF 00 00 09 [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [22:44:05]RAPDU: 90 00 [22:44:05]wFMCommunicate OK [22:44:05]wFMCommunicate request_size=10 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 0D 02 02 05 AB 65 7E 3A 0F [22:44:05]Write to MH i2c: E2 0D 00 F8 18 80 0D 02 02 05 00 AB 65 7E 3A 0F 00 00 6B [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [22:44:05]RAPDU: 90 00 [22:44:05]wFMCommunicate OK [22:44:05]wFMCommunicate request_size=4 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 0D 03 02 [22:44:05]Write to MH i2c: E2 08 00 F9 18 80 0D 03 02 00 00 00 00 8C [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 0B 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 0B 00 F9 18 00 C7 B2 8D 81 6B 56 9A F8 90 00 67 [22:44:05]RAPDU: C7 B2 8D 81 6B 56 9A F8 90 00 [22:44:05]wFMCommunicate OK [22:44:05]SAM_PROTO_SignData done [22:44:05]FM_MakeSignedData done [22:44:05]CreateOFDProtocolMessage [22:44:05]wFMCommunicate request_size=4 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 11 00 00 [22:44:05]Write to MH i2c: E2 08 00 FA 18 80 11 00 00 00 00 00 00 8C [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 17 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 17 00 FA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [22:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:44:05]wFMCommunicate OK [22:44:05]CreateOFDProtocolMessage done [22:44:05]OFDSenderStorePacket 192443 [22:44:05]StoreOFDPacket docnum=192443 [22:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 3D 07 01 E9 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 36 C2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EF 02 00 35 04 06 00 CF AB 65 7E 3A 0F C7 B2 8D 81 6B 56 9A F8 [22:44:05]CheckFolder [22:44:05]dirname=/storage/ofd_packets [22:44:05]CheckFolder done [22:44:05]ProducePacketName [22:44:05]name=ofd_packets/00192443 [22:44:05]NVStorageSaveData ofd_packets/00192443 [22:44:05]File name is /storage/ofd_packets/00192443 [22:44:05]Write 301 bytes [22:44:05]NVStorageSaveData done [22:44:05]OFDSenderStorePacket done [22:44:05]KKMCreateOFDPacket done [22:44:05]NVStorageSaveData kkm_last_timestamp [22:44:05]File name is /storage/kkm_last_timestamp [22:44:05]Write 4 bytes [22:44:05]NVStorageSaveData done [22:44:05]ExternCall_PrintAddStr [22:44:05]wPrintStart [22:44:05]Write to MH i2c: 01 00 00 FB 18 13 [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: 01 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: 01 07 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: 01 07 00 FB 18 00 00 00 00 00 FF 0F 28 [22:44:05]RasterBufferAndPrint [22:44:05]line Счет N : (1)31760 [22:44:05]line ИНН: 02508201610067 [22:44:05]line Контрольно-Кассовый Чек [22:44:05]line ПРОДАЖА [22:44:05]line ТРК (МРК, ГНК) : 12 [22:44:05]line Товар: 2710124130 [22:44:05]line Аи-92-К-5 [22:44:05]line 14.950 * 66.90 [22:44:05]line = 1000.16 [22:44:05]line НДС 12% НСП 1% [22:44:05]line > о реализуемом товаре [22:44:05]line ОКРУГЛЕНИЕ: -0.16 [22:44:05]line ИТОГО: 1000.00 [22:44:05]line Внесено: 1000.00 [22:44:05]line СДАЧА: 0.00 [22:44:05]line НСП 1% : 8.85 [22:44:05]line НДС 12% : 106.21 [22:44:05]line Наличными: 1000.00 [22:44:05]line Безнал.: 0.00 [22:44:05]line Место: АЗС № 170 "Партнер Нефть" [22:44:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:44:05]line СНО: Общий режим [22:44:05]line Чек 475 27.10.2024 22:44 [22:44:05]line Смена: 542 ФФД: 1.0 [22:44:05]line ЗНМ: 0300000110 [22:44:05]line РНМ: 0000000000091776 [22:44:05]line Версия ККМ: 001 [22:44:05]line ФМ: 0000000000871754 [22:44:05]line ФД: 192443 [22:44:05]line ФПД: 228335049128463 [22:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192443&fm=228335049128463&tin=02508201610067®Number=0000000000091776&sum=100000 [22:44:06]OFD Sender: Processing packet 192443 [packets to send 75, broken 74] [22:44:06]ProducePacketName [22:44:06]name=ofd_packets/00192443 [22:44:06]OFD Sender: To server: pG, [22:44:06]CommunicateWithHost lk.salyk.kg:30040 [22:44:06]ConnectInit lk.salyk.kg [22:44:06]written 0, free lines is 4095 [22:44:06]Connected sock=10 [22:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 3D 07 01 E9 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 36 C2 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EF 02 00 35 04 06 00 CF AB 65 7E 3A 0F C7 B2 8D 81 6B 56 9A F8 [22:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 63 47 00 D3 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EF 02 00 F4 03 04 00 FC 66 1E 67 B6 04 01 00 00 27 99 5C 81 8A CA 2B D5 [22:44:06]CommunicateWithHost err = 0 [22:44:06]CheckOFDResponse [22:44:06]1017 (14) - 77093643461234 [22:44:06]1041 (16) - 0000000000871754 [22:44:06]1040 (4) - 192443 [22:44:06]1012 (4) - 27.10.2024 16:14 [22:44:06]1206 (1) - 0 [22:44:06]OFD Sender: Remove packet 192443 [22:44:06]ProducePacketName [22:44:06]name=ofd_packets/00192443 [22:44:06]NVStorageDeleteData [22:44:06]Write to MH i2c: 01 00 00 26 19 3F [22:44:06]Write i2c OK [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: 01 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: 01 07 00 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 A9 0C FB [22:44:06]RasterBufferAndPrint [22:44:06]line [22:44:06]line [22:44:06]line [22:44:06]line [22:44:06]line [22:44:06]written 0, free lines is 3246 [22:44:06]MH_Cut [22:44:06]Write to MH i2c: D1 01 00 2D 19 01 18 [22:44:06]Write i2c OK [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: D1 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: D1 01 00 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: D1 01 00 2D 19 00 17 [22:44:06]Write to MH i2c: 01 00 00 2E 19 47 [22:44:06]Write i2c OK [22:44:06]MH_I2C_Read... [22:44:07]OFD Sender: No OFD packet to send [22:44:07]*** Cut start [22:44:07]*** Partial cut [22:44:07]*** CUTSNS_PIN = 1 [22:44:07]*** CUTSNS_PIN = 0 [22:44:07]*** Brake cut motor [22:44:08]Read from MH i2c: 01 [22:44:08]MH_I2C_Read... [22:44:08]*** Stop cut motor [22:44:08]*** Cut end [22:44:08]Read from MH i2c: 01 07 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 FF 0F 5C [22:44:08]process_action close_receipt done [22:44:08]requested_data is exist [22:44:08]produce_requested_data [22:44:08]requested_item fm.sn is exist - process it [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 11 00 00 [22:44:08]Write to MH i2c: E2 08 00 2F 19 80 11 00 00 00 00 00 00 C2 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 17 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 17 00 2F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [22:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:44:08]wFMCommunicate OK [22:44:08]requested_item fd.num is exist - process it [22:44:08]SAM_PROTO_GetFieldsCounters [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 13 00 00 [22:44:08]Write to MH i2c: E2 08 00 30 19 80 13 00 00 00 00 00 00 C5 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 62 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 62 00 30 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [22:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:08]wFMCommunicate OK [22:44:08]SAM_PROTO_GetFieldsCounters done [22:44:08]requested_item shift.num is exist - process it [22:44:08]requested_item shift.opened is exist - process it [22:44:08]req_shift_opened [22:44:08]FM_GetShiftState [22:44:08]SAM_PROTO_GetShiftState [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 13 01 00 [22:44:08]Write to MH i2c: E2 08 00 31 19 80 13 01 00 00 00 00 00 C7 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 0E 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 0E 00 31 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 08 [22:44:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [22:44:08]wFMCommunicate OK [22:44:08]SAM_PROTO_GetShiftState done [22:44:08]FM_GetShiftState done [22:44:08]req_shift_opened done [22:44:08]requested_item shift.open_date is exist - process it [22:44:08]req_shift_open_date [22:44:08]req_shift_open_date done [22:44:08]produce_requested_data done [22:44:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192443,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [22:44:08]process_action_free close_receipt [22:44:08]json_value_free [22:44:08]json_value_free done [22:44:08]process_json_proto returns [22:44:08]Send response to host [22:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192443,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [22:44:08]free response buf [22:44:08]execute_script done [22:44:08]execute_script returns [22:44:08]free content buf [22:44:08]Sock 7.Close socket [22:44:08]Sock 7.Thread stoped [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]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:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:39]ConnectInit Can't connect to host [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:15]ConnectInit Can't connect to host [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:48]ConnectInit Can't connect to host [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]ConnectInit Can't connect to host [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:42]accept exits with 9 [23:20:42]New connection [23:20:42]New thread 3066707300 created [23:20:42]Thread 3066563940 joined [23:20:42]Waiting for new connection... [23:20:42] Sock 9.Parse request [23:20:42]Sock 9.Check first char [23:20:42]Sock 9.First char is OK [23:20:42]request: POST /json_proto HTTP/1.0 [23:20:42]Method: POST [23:20:42]URL: /json_proto [23:20:42]Method is POST - this is cgi request [23:20:42]url: /json_proto [23:20:42]query_string will be loaded in cgi processing [23:20:42]execute_cgi json_proto POST (null) [23:20:42]execute_cgi path=json_proto method=POST [23:20:42]POST find Content-Length [23:20:42]Host: 172.17.63.131:8080 [23:20:42]Content-Length: 681 [23:20:42]Content-Type: application/json [23:20:42] [23:20:42]POST finish read [23:20:42]Found Content-Length = 681 [23:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.400, "sum" : 1364.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1364.00, "payments": [ { "type": 0, "sum" : 1364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:42]execute_script... [23:20: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)31761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.400, "sum" : 1364.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1364.00, "payments": [ { "type": 0, "sum" : 1364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:42]POST & json_proto [23:20:42]process_json_proto [23:20:42]json parsed OK: [23:20:42]protocol is kg_v1.0 [23:20:42]action value=close_receipt [23:20:42]process_action close_receipt [23:20:42]cmd_close_receipt [23:20:42]MH_GetDate [23:20:42]Write to MH i2c: F0 00 00 32 19 3A [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: F0 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: F0 09 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: F0 09 00 32 19 00 CC CA 1E 67 22 05 6E 64 57 [23:20:42]GetLastDocTimeStamp 1730069046 [23:20:42]current date 1730071244 [23:20:42]FM_GetShiftState [23:20:42]SAM_PROTO_GetShiftState [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 13 01 00 [23:20:42]Write to MH i2c: E2 08 00 33 19 80 13 01 00 00 00 00 00 C9 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 33 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 0A [23:20:42]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:20:42]wFMCommunicate OK [23:20:42]SAM_PROTO_GetShiftState done [23:20:42]FM_GetShiftState done [23:20:42]opened in 1729989159 [23:20:42]opened+sec_in_day 1730075559 [23:20:42]quantity*price = 136476 [23:20:42]sum+1 = 136477 [23:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 1364.00 Внесено: 2000.00 СДАЧА: 636.00 НСП 1% : 12.08 НДС 12% : 144.93 Наличными: 1364.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 476 27.10.2024 23:20 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192444 ФПД: 59784806123399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192444&fm=59784806123399&tin=02508201610067®Number=0000000000091776&sum=136400 [23:20:43]StoreToDocumentArchive [23:20:43]shift 542 fd 192444 [23:20:43]save to /storage/0542/doc_00192444 [23:20:43]save last doc name /storage/0542/doc_00192444 to /storage/kkm_last_doc_name [23:20:43]save OK [23:20:43]Clear old archive folders... [23:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:43]tlvbuf is 0197E200 [23:20:43]SAM_PROTO_ClearQueue [23:20:43]wFMCommunicate request_size=4 [23:20:43]MH_SAM_APDU [23:20:43]CAPDU: 80 09 00 00 [23:20:43]Write to MH i2c: E2 08 00 40 19 80 09 00 00 00 00 00 00 CB [23:20:43]Write i2c OK [23:20:43]MH_I2C_Read... [23:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:43]Read from MH i2c: E2 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 03 00 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 03 00 40 19 00 90 00 CD [23:20:43]RAPDU: 90 00 [23:20:43]wFMCommunicate OK [23:20:43]SAM_PROTO_ClearQueue done [23:20:43]KKMCreateOFDPacket [23:20:43]OFDProtocolAddRootSTLVToBuf [23:20:43]FM_MakeSignedData [23:20:43]FM_MakeSignedData [23:20:43]SAM_PROTO_SignData [23:20:43]wFMCommunicate request_size=4 [23:20:43]MH_SAM_APDU [23:20:43]CAPDU: 80 0D 01 02 [23:20:43]Write to MH i2c: E2 08 00 41 19 80 0D 01 02 00 00 00 00 D3 [23:20:43]Write i2c OK [23:20:43]MH_I2C_Read... [23:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:43]Read from MH i2c: E2 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 03 00 [23:20:43]MH_I2C_Read... [23:20:43]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [23:20:43]RAPDU: 90 00 [23:20:43]wFMCommunicate OK [23:20:43]wFMCommunicate request_size=255 [23:20:43]MH_SAM_APDU [23:20:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 4F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 14 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 38 00 00 00 00 07 04 06 00 D0 14 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 CC CA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EF 02 00 35 04 06 00 36 [23:20:43]Write to MH i2c: E2 02 01 42 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 B0 4F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 14 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 38 00 00 00 00 07 04 06 00 D0 14 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 CC CA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EF 02 00 35 04 06 00 36 00 00 A8 [23:20:43]Write i2c OK [23:20:43]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 03 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [23:20:44]RAPDU: 90 00 [23:20:44]wFMCommunicate OK [23:20:44]wFMCommunicate request_size=10 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 0D 02 02 05 5F BC 21 C7 87 [23:20:44]Write to MH i2c: E2 0D 00 43 19 80 0D 02 02 05 00 5F BC 21 C7 87 00 00 6A [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 03 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [23:20:44]RAPDU: 90 00 [23:20:44]wFMCommunicate OK [23:20:44]wFMCommunicate request_size=4 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 0D 03 02 [23:20:44]Write to MH i2c: E2 08 00 44 19 80 0D 03 02 00 00 00 00 D8 [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0B 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0B 00 44 19 00 6C 72 38 E8 A5 93 45 F8 90 00 4C [23:20:44]RAPDU: 6C 72 38 E8 A5 93 45 F8 90 00 [23:20:44]wFMCommunicate OK [23:20:44]SAM_PROTO_SignData done [23:20:44]FM_MakeSignedData done [23:20:44]CreateOFDProtocolMessage [23:20:44]wFMCommunicate request_size=4 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 11 00 00 [23:20:44]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 17 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [23:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:20:44]wFMCommunicate OK [23:20:44]CreateOFDProtocolMessage done [23:20:44]OFDSenderStorePacket 192444 [23:20:44]StoreOFDPacket docnum=192444 [23:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 4C 07 01 40 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 4F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 14 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 38 00 00 00 00 07 04 06 00 D0 14 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 CC CA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EF 02 00 35 04 06 00 36 5F BC 21 C7 87 6C 72 38 E8 A5 93 45 F8 [23:20:44]CheckFolder [23:20:44]dirname=/storage/ofd_packets [23:20:44]CheckFolder done [23:20:44]ProducePacketName [23:20:44]name=ofd_packets/00192444 [23:20:44]NVStorageSaveData ofd_packets/00192444 [23:20:44]File name is /storage/ofd_packets/00192444 [23:20:44]Write 301 bytes [23:20:44]NVStorageSaveData done [23:20:44]OFDSenderStorePacket done [23:20:44]KKMCreateOFDPacket done [23:20:44]NVStorageSaveData kkm_last_timestamp [23:20:44]File name is /storage/kkm_last_timestamp [23:20:44]Write 4 bytes [23:20:44]NVStorageSaveData done [23:20:44]ExternCall_PrintAddStr [23:20:44]wPrintStart [23:20:44]Write to MH i2c: 01 00 00 46 19 5F [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: 01 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: 01 07 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 FF 0F 74 [23:20:44]RasterBufferAndPrint [23:20:44]line Счет N : (1)31761 [23:20:44]line ИНН: 02508201610067 [23:20:44]line Контрольно-Кассовый Чек [23:20:44]line ПРОДАЖА [23:20:44]line ТРК (МРК, ГНК) : 12 [23:20:44]line Товар: 2710124130 [23:20:44]line Аи-92-К-5 [23:20:44]line 20.400 * 66.90 [23:20:44]line = 1364.76 [23:20:44]line НДС 12% НСП 1% [23:20:44]line > о реализуемом товаре [23:20:44]line ОКРУГЛЕНИЕ: -0.76 [23:20:44]line ИТОГО: 1364.00 [23:20:44]line Внесено: 2000.00 [23:20:44]line СДАЧА: 636.00 [23:20:44]line НСП 1% : 12.08 [23:20:44]line НДС 12% : 144.93 [23:20:44]line Наличными: 1364.00 [23:20:44]line Безнал.: 0.00 [23:20:44]line Место: АЗС № 170 "Партнер Нефть" [23:20:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:20:44]line СНО: Общий режим [23:20:44]line Чек 476 27.10.2024 23:20 [23:20:44]line Смена: 542 ФФД: 1.0 [23:20:44]line ЗНМ: 0300000110 [23:20:44]line РНМ: 0000000000091776 [23:20:44]line Версия ККМ: 001 [23:20:44]line ФМ: 0000000000871754 [23:20:44]line ФД: 192444 [23:20:44]line ФПД: 59784806123399 [23:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192444&fm=59784806123399&tin=02508201610067®Number=0000000000091776&sum=136400 [23:20:44]OFD Sender: Processing packet 192444 [packets to send 75, broken 74] [23:20:44]ProducePacketName [23:20:44]name=ofd_packets/00192444 [23:20:44]OFD Sender: To server: pG, [23:20:44]CommunicateWithHost lk.salyk.kg:30040 [23:20:44]ConnectInit lk.salyk.kg [23:20:44]written 0, free lines is 4095 [23:20:44]Connected sock=11 [23:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 4C 07 01 40 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 4F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 14 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 38 00 00 00 00 07 04 06 00 D0 14 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 CC CA 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EF 02 00 35 04 06 00 36 5F BC 21 C7 87 6C 72 38 E8 A5 93 45 F8 [23:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F D1 47 00 A3 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EF 02 00 F4 03 04 00 92 6F 1E 67 B6 04 01 00 00 AB 30 71 F5 6C BD 99 40 [23:20:45]CommunicateWithHost err = 0 [23:20:45]CheckOFDResponse [23:20:45]1017 (14) - 77093643461234 [23:20:45]1041 (16) - 0000000000871754 [23:20:45]1040 (4) - 192444 [23:20:45]1012 (4) - 27.10.2024 16:51 [23:20:45]1206 (1) - 0 [23:20:45]OFD Sender: Remove packet 192444 [23:20:45]ProducePacketName [23:20:45]name=ofd_packets/00192444 [23:20:45]NVStorageDeleteData [23:20:45]Write to MH i2c: 01 00 00 71 19 8A [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: 01 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: 01 07 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 CA 0C 67 [23:20:45]RasterBufferAndPrint [23:20:45]line [23:20:45]line [23:20:45]line [23:20:45]line [23:20:45]line [23:20:45]written 0, free lines is 3279 [23:20:45]MH_Cut [23:20:45]Write to MH i2c: D1 01 00 78 19 01 63 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: D1 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: D1 01 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: D1 01 00 78 19 00 62 [23:20:45]Write to MH i2c: 01 00 00 79 19 92 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]OFD Sender: No OFD packet to send [23:20:45]*** Cut start [23:20:45]*** Partial cut [23:20:45]*** CUTSNS_PIN = 1 [23:20:46]*** CUTSNS_PIN = 0 [23:20:46]*** Brake cut motor [23:20:46]Read from MH i2c: 01 [23:20:46]MH_I2C_Read... [23:20:46]*** Stop cut motor [23:20:46]*** Cut end [23:20:46]Read from MH i2c: 01 07 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 FF 0F A7 [23:20:46]process_action close_receipt done [23:20:46]requested_data is exist [23:20:46]produce_requested_data [23:20:46]requested_item fm.sn is exist - process it [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 11 00 00 [23:20:46]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [23:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:20:46]wFMCommunicate OK [23:20:46]requested_item fd.num is exist - process it [23:20:46]SAM_PROTO_GetFieldsCounters [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 13 00 00 [23:20:46]Write to MH i2c: E2 08 00 7B 19 80 13 00 00 00 00 00 00 10 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 62 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 62 00 7B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [23:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:46]wFMCommunicate OK [23:20:46]SAM_PROTO_GetFieldsCounters done [23:20:46]requested_item shift.num is exist - process it [23:20:46]requested_item shift.opened is exist - process it [23:20:46]req_shift_opened [23:20:46]FM_GetShiftState [23:20:46]SAM_PROTO_GetShiftState [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 13 01 00 [23:20:46]Write to MH i2c: E2 08 00 7C 19 80 13 01 00 00 00 00 00 12 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0E 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0E 00 7C 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 53 [23:20:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:20:46]wFMCommunicate OK [23:20:46]SAM_PROTO_GetShiftState done [23:20:46]FM_GetShiftState done [23:20:46]req_shift_opened done [23:20:46]requested_item shift.open_date is exist - process it [23:20:46]req_shift_open_date [23:20:46]req_shift_open_date done [23:20:46]produce_requested_data done [23:20:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192444,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [23:20:46]process_action_free close_receipt [23:20:46]json_value_free [23:20:46]json_value_free done [23:20:46]process_json_proto returns [23:20:46]Send response to host [23:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192444,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [23:20:46]free response buf [23:20:46]execute_script done [23:20:46]execute_script returns [23:20:46]free content buf [23:20:46]Sock 9.Close socket [23:20:46]Sock 9.Thread stoped [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28: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]accept exits with 10 [23:29:16]New connection [23:29:16]New thread 3066563940 created [23:29:16]Thread 3066707300 joined [23:29:16]Waiting for new connection... [23:29:16] Sock 10.Parse request [23:29:16]Sock 10.Check first char [23:29:16]Sock 10.First char is OK [23:29:16]request: POST /json_proto HTTP/1.0 [23:29:16]Method: POST [23:29:16]URL: /json_proto [23:29:16]Method is POST - this is cgi request [23:29:16]url: /json_proto [23:29:16]query_string will be loaded in cgi processing [23:29:16]execute_cgi json_proto POST (null) [23:29:16]execute_cgi path=json_proto method=POST [23:29:16]POST find Content-Length [23:29:16]Host: 172.17.63.131:8080 [23:29:16]Content-Length: 673 [23:29:16]Content-Type: application/json [23:29:16] [23:29:16]POST finish read [23:29:16]Found Content-Length = 673 [23:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31762", "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" : 8.670, "sum" : 660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:16]execute_script... [23:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31762", "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" : 8.670, "sum" : 660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:16]POST & json_proto [23:29:16]process_json_proto [23:29:16]json parsed OK: [23:29:16]protocol is kg_v1.0 [23:29:16]action value=close_receipt [23:29:16]process_action close_receipt [23:29:16]cmd_close_receipt [23:29:16]MH_GetDate [23:29:16]Write to MH i2c: F0 00 00 7D 19 85 [23:29:16]Write i2c OK [23:29:16]MH_I2C_Read... [23:29:16]Read from MH i2c: F0 [23:29:16]MH_I2C_Read... [23:29:16]Read from MH i2c: F0 09 00 [23:29:16]MH_I2C_Read... [23:29:16]OFD Sender: No OFD packet to send [23:29:16]Read from MH i2c: F0 09 00 7D 19 00 CE CC 1E 67 22 05 6E 64 A6 [23:29:16]GetLastDocTimeStamp 1730071244 [23:29:16]current date 1730071758 [23:29:16]FM_GetShiftState [23:29:16]SAM_PROTO_GetShiftState [23:29:16]wFMCommunicate request_size=4 [23:29:16]MH_SAM_APDU [23:29:16]CAPDU: 80 13 01 00 [23:29:16]Write to MH i2c: E2 08 00 7E 19 80 13 01 00 00 00 00 00 14 [23:29:16]Write i2c OK [23:29:16]MH_I2C_Read... [23:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:16]Read from MH i2c: E2 [23:29:16]MH_I2C_Read... [23:29:16]Read from MH i2c: E2 0E 00 [23:29:16]MH_I2C_Read... [23:29:16]Read from MH i2c: E2 0E 00 7E 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 55 [23:29:16]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:29:16]wFMCommunicate OK [23:29:16]SAM_PROTO_GetShiftState done [23:29:16]FM_GetShiftState done [23:29:16]opened in 1729989159 [23:29:16]opened+sec_in_day 1730075559 [23:29:16]quantity*price = 66065 [23:29:16]sum+1 = 66066 [23:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.16 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 477 27.10.2024 23:29 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192445 ФПД: 142552512040373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232918&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192445&fm=142552512040373&tin=02508201610067®Number=0000000000091776&sum=66000 [23:29:17]StoreToDocumentArchive [23:29:17]shift 542 fd 192445 [23:29:17]save to /storage/0542/doc_00192445 [23:29:17]save last doc name /storage/0542/doc_00192445 to /storage/kkm_last_doc_name [23:29:17]save OK [23:29:17]Clear old archive folders... [23:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:29:17]tlvbuf is 019E45A0 [23:29:17]SAM_PROTO_ClearQueue [23:29:17]wFMCommunicate request_size=4 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 09 00 00 [23:29:17]Write to MH i2c: E2 08 00 8B 19 80 09 00 00 00 00 00 00 16 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 8B 19 00 90 00 18 [23:29:17]RAPDU: 90 00 [23:29:17]wFMCommunicate OK [23:29:17]SAM_PROTO_ClearQueue done [23:29:17]KKMCreateOFDPacket [23:29:17]OFDProtocolAddRootSTLVToBuf [23:29:17]FM_MakeSignedData [23:29:17]FM_MakeSignedData [23:29:17]SAM_PROTO_SignData [23:29:17]wFMCommunicate request_size=4 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 0D 01 02 [23:29:17]Write to MH i2c: E2 08 00 8C 19 80 0D 01 02 00 00 00 00 1E [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 8C 19 00 90 00 19 [23:29:17]RAPDU: 90 00 [23:29:17]wFMCommunicate OK [23:29:17]wFMCommunicate request_size=255 [23:29:17]MH_SAM_APDU [23:29: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 DE 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 11 02 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 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 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 DD 01 00 00 F4 03 04 00 CE CC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EF 02 00 35 04 06 00 81 A6 97 D7 [23:29:17]Write to MH i2c: E2 02 01 8D 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 11 02 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 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 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 DD 01 00 00 F4 03 04 00 CE CC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EF 02 00 35 04 06 00 81 A6 97 D7 00 00 46 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 8D 19 00 90 00 1A [23:29:17]RAPDU: 90 00 [23:29:17]wFMCommunicate OK [23:29:17]wFMCommunicate request_size=7 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 0D 02 02 02 8D B5 [23:29:17]Write to MH i2c: E2 0A 00 8E 19 80 0D 02 02 02 00 8D B5 00 00 67 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [23:29:17]RAPDU: 90 00 [23:29:17]wFMCommunicate OK [23:29:17]wFMCommunicate request_size=4 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 0D 03 02 [23:29:17]Write to MH i2c: E2 08 00 8F 19 80 0D 03 02 00 00 00 00 23 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 0B 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 0B 00 8F 19 00 9F 99 C6 6D 1D D1 9D 84 90 00 9E [23:29:17]RAPDU: 9F 99 C6 6D 1D D1 9D 84 90 00 [23:29:17]wFMCommunicate OK [23:29:17]SAM_PROTO_SignData done [23:29:17]FM_MakeSignedData done [23:29:17]CreateOFDProtocolMessage [23:29:17]wFMCommunicate request_size=4 [23:29:17]MH_SAM_APDU [23:29:17]CAPDU: 80 11 00 00 [23:29:17]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:17]Read from MH i2c: E2 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 17 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [23:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:29:17]wFMCommunicate OK [23:29:17]CreateOFDProtocolMessage done [23:29:17]OFDSenderStorePacket 192445 [23:29:17]StoreOFDPacket docnum=192445 [23:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 5C 04 01 FE B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 11 02 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 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 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 DD 01 00 00 F4 03 04 00 CE CC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EF 02 00 35 04 06 00 81 A6 97 D7 8D B5 9F 99 C6 6D 1D D1 9D 84 [23:29:17]CheckFolder [23:29:17]dirname=/storage/ofd_packets [23:29:17]CheckFolder done [23:29:17]ProducePacketName [23:29:17]name=ofd_packets/00192445 [23:29:17]NVStorageSaveData ofd_packets/00192445 [23:29:17]File name is /storage/ofd_packets/00192445 [23:29:17]Write 298 bytes [23:29:17]NVStorageSaveData done [23:29:17]OFDSenderStorePacket done [23:29:17]KKMCreateOFDPacket done [23:29:17]NVStorageSaveData kkm_last_timestamp [23:29:17]File name is /storage/kkm_last_timestamp [23:29:17]Write 4 bytes [23:29:17]NVStorageSaveData done [23:29:17]ExternCall_PrintAddStr [23:29:17]wPrintStart [23:29:17]Write to MH i2c: 01 00 00 91 19 AA [23:29:17]Write i2c OK [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: 01 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: 01 07 00 [23:29:17]MH_I2C_Read... [23:29:17]Read from MH i2c: 01 07 00 91 19 00 00 00 00 00 FF 0F BF [23:29:17]RasterBufferAndPrint [23:29:17]line Счет N : (1)31762 [23:29:17]line ИНН: 02508201610067 [23:29:17]line Контрольно-Кассовый Чек [23:29:17]line ПРОДАЖА [23:29:17]line ТРК (МРК, ГНК) : 11 [23:29:17]line Товар: 2710194210 [23:29:17]line ДТ-К-5 [23:29:17]line 8.670 * 76.20 [23:29:17]line = 660.65 [23:29:17]line НДС 12% НСП 1% [23:29:17]line > о реализуемом товаре [23:29:17]line ОКРУГЛЕНИЕ: -0.65 [23:29:17]line ИТОГО: 660.00 [23:29:17]line Внесено: 660.00 [23:29:17]line СДАЧА: 0.00 [23:29:17]line НСП 1% : 5.85 [23:29:17]line НДС 12% : 70.16 [23:29:17]line Наличными: 660.00 [23:29:17]line Безнал.: 0.00 [23:29:17]line Место: АЗС № 170 "Партнер Нефть" [23:29:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:29:17]line СНО: Общий режим [23:29:17]line Чек 477 27.10.2024 23:29 [23:29:17]line Смена: 542 ФФД: 1.0 [23:29:17]line ЗНМ: 0300000110 [23:29:17]line РНМ: 0000000000091776 [23:29:17]line Версия ККМ: 001 [23:29:17]line ФМ: 0000000000871754 [23:29:17]line ФД: 192445 [23:29:17]line ФПД: 142552512040373 [23:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T232918&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192445&fm=142552512040373&tin=02508201610067®Number=0000000000091776&sum=66000 [23:29:18]OFD Sender: Processing packet 192445 [packets to send 75, broken 74] [23:29:18]ProducePacketName [23:29:18]name=ofd_packets/00192445 [23:29:18]OFD Sender: To server: pG, [23:29:18]CommunicateWithHost lk.salyk.kg:30040 [23:29:18]ConnectInit lk.salyk.kg [23:29:18]written 0, free lines is 4095 [23:29:18]Connected sock=9 [23:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 5C 04 01 FE B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 11 02 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 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 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 DD 01 00 00 F4 03 04 00 CE CC 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EF 02 00 35 04 06 00 81 A6 97 D7 8D B5 9F 99 C6 6D 1D D1 9D 84 [23:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 36 47 00 BA 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EF 02 00 F4 03 04 00 94 71 1E 67 B6 04 01 00 00 68 DD 30 95 CD 30 1F AD [23:29:18]CommunicateWithHost err = 0 [23:29:18]CheckOFDResponse [23:29:18]1017 (14) - 77093643461234 [23:29:18]1041 (16) - 0000000000871754 [23:29:18]1040 (4) - 192445 [23:29:18]1012 (4) - 27.10.2024 17:00 [23:29:18]1206 (1) - 0 [23:29:18]OFD Sender: Remove packet 192445 [23:29:18]ProducePacketName [23:29:18]name=ofd_packets/00192445 [23:29:18]NVStorageDeleteData [23:29:18]Write to MH i2c: 01 00 00 BC 19 D5 [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: 01 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: 01 07 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 A6 0C 8E [23:29:18]RasterBufferAndPrint [23:29:18]line [23:29:18]line [23:29:18]line [23:29:18]line [23:29:18]line [23:29:18]written 0, free lines is 3243 [23:29:18]MH_Cut [23:29:18]Write to MH i2c: D1 01 00 C3 19 01 AE [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: D1 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: D1 01 00 [23:29:18]MH_I2C_Read... [23:29:18]Read from MH i2c: D1 01 00 C3 19 00 AD [23:29:18]Write to MH i2c: 01 00 00 C4 19 DD [23:29:18]Write i2c OK [23:29:18]MH_I2C_Read... [23:29:18]OFD Sender: No OFD packet to send [23:29:19]*** Cut start [23:29:19]*** Partial cut [23:29:19]*** CUTSNS_PIN = 1 [23:29:19]*** CUTSNS_PIN = 0 [23:29:19]*** Brake cut motor [23:29:19]Read from MH i2c: 01 [23:29:19]MH_I2C_Read... [23:29:20]*** Stop cut motor [23:29:20]*** Cut end [23:29:20]Read from MH i2c: 01 07 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 FF 0F F2 [23:29:20]process_action close_receipt done [23:29:20]requested_data is exist [23:29:20]produce_requested_data [23:29:20]requested_item fm.sn is exist - process it [23:29:20]wFMCommunicate request_size=4 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 11 00 00 [23:29:20]Write to MH i2c: E2 08 00 C5 19 80 11 00 00 00 00 00 00 58 [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:20]Read from MH i2c: E2 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 17 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 17 00 C5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [23:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:29:20]wFMCommunicate OK [23:29:20]requested_item fd.num is exist - process it [23:29:20]SAM_PROTO_GetFieldsCounters [23:29:20]wFMCommunicate request_size=4 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 13 00 00 [23:29:20]Write to MH i2c: E2 08 00 C6 19 80 13 00 00 00 00 00 00 5B [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:20]Read from MH i2c: E2 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 62 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 62 00 C6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [23:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:20]wFMCommunicate OK [23:29:20]SAM_PROTO_GetFieldsCounters done [23:29:20]requested_item shift.num is exist - process it [23:29:20]requested_item shift.opened is exist - process it [23:29:20]req_shift_opened [23:29:20]FM_GetShiftState [23:29:20]SAM_PROTO_GetShiftState [23:29:20]wFMCommunicate request_size=4 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 13 01 00 [23:29:20]Write to MH i2c: E2 08 00 C7 19 80 13 01 00 00 00 00 00 5D [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:20]Read from MH i2c: E2 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 0E 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 0E 00 C7 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 9E [23:29:20]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:29:20]wFMCommunicate OK [23:29:20]SAM_PROTO_GetShiftState done [23:29:20]FM_GetShiftState done [23:29:20]req_shift_opened done [23:29:20]requested_item shift.open_date is exist - process it [23:29:20]req_shift_open_date [23:29:20]req_shift_open_date done [23:29:20]produce_requested_data done [23:29:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192445,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [23:29:20]process_action_free close_receipt [23:29:20]json_value_free [23:29:20]json_value_free done [23:29:20]process_json_proto returns [23:29:20]Send response to host [23:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192445,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [23:29:20]free response buf [23:29:20]execute_script done [23:29:20]execute_script returns [23:29:20]free content buf [23:29:20]Sock 10.Close socket [23:29:20]Sock 10.Thread stoped [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]accept exits with 7 [23:41:24]New connection [23:41:24]New thread 3066707300 created [23:41:24]Thread 3066563940 joined [23:41:24]Waiting for new connection... [23:41:24] Sock 7.Parse request [23:41:24]Sock 7.Check first char [23:41:24]Sock 7.First char is OK [23:41:24]request: POST /json_proto HTTP/1.0 [23:41:24]Method: POST [23:41:24]URL: /json_proto [23:41:24]Method is POST - this is cgi request [23:41:24]url: /json_proto [23:41:24]query_string will be loaded in cgi processing [23:41:24]execute_cgi json_proto POST (null) [23:41:24]execute_cgi path=json_proto method=POST [23:41:24]POST find Content-Length [23:41:24]Host: 172.17.63.131:8080 [23:41:24]Content-Length: 677 [23:41:24]Content-Type: application/json [23:41:24] [23:41:24]POST finish read [23:41:24]Found Content-Length = 677 [23:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:24]execute_script... [23:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:24]POST & json_proto [23:41:24]process_json_proto [23:41:24]json parsed OK: [23:41:24]protocol is kg_v1.0 [23:41:24]action value=close_receipt [23:41:24]process_action close_receipt [23:41:24]cmd_close_receipt [23:41:24]MH_GetDate [23:41:24]Write to MH i2c: F0 00 00 C8 19 D0 [23:41:24]Write i2c OK [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 09 00 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 09 00 C8 19 00 A6 CF 1E 67 22 05 6E 64 CC [23:41:24]GetLastDocTimeStamp 1730071758 [23:41:24]current date 1730072486 [23:41:24]FM_GetShiftState [23:41:24]SAM_PROTO_GetShiftState [23:41:24]wFMCommunicate request_size=4 [23:41:24]MH_SAM_APDU [23:41:24]CAPDU: 80 13 01 00 [23:41:24]Write to MH i2c: E2 08 00 C9 19 80 13 01 00 00 00 00 00 5F [23:41:24]Write i2c OK [23:41:24]MH_I2C_Read... [23:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:24]Read from MH i2c: E2 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: E2 0E 00 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: E2 0E 00 C9 19 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A0 [23:41:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:41:24]wFMCommunicate OK [23:41:24]SAM_PROTO_GetShiftState done [23:41:24]FM_GetShiftState done [23:41:24]opened in 1729989159 [23:41:24]opened+sec_in_day 1730075559 [23:41:24]quantity*price = 68037 [23:41:24]sum+1 = 68038 [23:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 478 27.10.2024 23:41 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192446 ФПД: 187912825599287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234126&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192446&fm=187912825599287&tin=02508201610067®Number=0000000000091776&sum=68000 [23:41:25]StoreToDocumentArchive [23:41:25]shift 542 fd 192446 [23:41:25]save to /storage/0542/doc_00192446 [23:41:25]save last doc name /storage/0542/doc_00192446 to /storage/kkm_last_doc_name [23:41:25]save OK [23:41:25]Clear old archive folders... [23:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:25]tlvbuf is 019914C0 [23:41:25]SAM_PROTO_ClearQueue [23:41:25]wFMCommunicate request_size=4 [23:41:25]MH_SAM_APDU [23:41:25]CAPDU: 80 09 00 00 [23:41:25]Write to MH i2c: E2 08 00 D6 19 80 09 00 00 00 00 00 00 61 [23:41:25]Write i2c OK [23:41:25]MH_I2C_Read... [23:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:25]Read from MH i2c: E2 [23:41:25]MH_I2C_Read... [23:41:25]Read from MH i2c: E2 03 00 [23:41:25]MH_I2C_Read... [23:41:25]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [23:41:25]RAPDU: 90 00 [23:41:25]wFMCommunicate OK [23:41:25]SAM_PROTO_ClearQueue done [23:41:25]KKMCreateOFDPacket [23:41:25]OFDProtocolAddRootSTLVToBuf [23:41:25]FM_MakeSignedData [23:41:25]FM_MakeSignedData [23:41:25]SAM_PROTO_SignData [23:41:25]wFMCommunicate request_size=4 [23:41:25]MH_SAM_APDU [23:41:25]CAPDU: 80 0D 01 02 [23:41:25]Write to MH i2c: E2 08 00 D7 19 80 0D 01 02 00 00 00 00 69 [23:41:25]Write i2c OK [23:41:25]MH_I2C_Read... [23:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:25]Read from MH i2c: E2 [23:41:25]MH_I2C_Read... [23:41:25]Read from MH i2c: E2 03 00 [23:41:25]MH_I2C_Read... [23:41:25]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [23:41:25]RAPDU: 90 00 [23:41:25]wFMCommunicate OK [23:41:25]wFMCommunicate request_size=255 [23:41:25]MH_SAM_APDU [23:41:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 A6 CF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EF 02 00 35 04 06 00 AA [23:41:25]Write to MH i2c: E2 02 01 D8 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 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 A6 CF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EF 02 00 35 04 06 00 AA 00 00 BB [23:41:25]Write i2c OK [23:41:25]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]wFMCommunicate request_size=10 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 02 02 05 E7 DD 37 F5 37 [23:41:26]Write to MH i2c: E2 0D 00 D9 19 80 0D 02 02 05 00 E7 DD 37 F5 37 00 00 9D [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 03 02 [23:41:26]Write to MH i2c: E2 08 00 DA 19 80 0D 03 02 00 00 00 00 6E [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0B 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0B 00 DA 19 00 8A 62 7B C0 8E A1 A3 8D 90 00 F5 [23:41:26]RAPDU: 8A 62 7B C0 8E A1 A3 8D 90 00 [23:41:26]wFMCommunicate OK [23:41:26]SAM_PROTO_SignData done [23:41:26]FM_MakeSignedData done [23:41:26]CreateOFDProtocolMessage [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 11 00 00 [23:41:26]Write to MH i2c: E2 08 00 DB 19 80 11 00 00 00 00 00 00 6E [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 17 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 17 00 DB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [23:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:41:26]wFMCommunicate OK [23:41:26]CreateOFDProtocolMessage done [23:41:26]OFDSenderStorePacket 192446 [23:41:26]StoreOFDPacket docnum=192446 [23:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 EA 07 01 F9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 A6 CF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EF 02 00 35 04 06 00 AA E7 DD 37 F5 37 8A 62 7B C0 8E A1 A3 8D [23:41:26]CheckFolder [23:41:26]dirname=/storage/ofd_packets [23:41:26]CheckFolder done [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00192446 [23:41:26]NVStorageSaveData ofd_packets/00192446 [23:41:26]File name is /storage/ofd_packets/00192446 [23:41:26]Write 301 bytes [23:41:26]NVStorageSaveData done [23:41:26]OFDSenderStorePacket done [23:41:26]KKMCreateOFDPacket done [23:41:26]NVStorageSaveData kkm_last_timestamp [23:41:26]File name is /storage/kkm_last_timestamp [23:41:26]Write 4 bytes [23:41:26]NVStorageSaveData done [23:41:26]ExternCall_PrintAddStr [23:41:26]wPrintStart [23:41:26]Write to MH i2c: 01 00 00 DC 19 F5 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 07 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 07 00 DC 19 00 00 00 00 00 FF 0F 0A [23:41:26]RasterBufferAndPrint [23:41:26]line Счет N : (1)31763 [23:41:26]line ИНН: 02508201610067 [23:41:26]line Контрольно-Кассовый Чек [23:41:26]line ПРОДАЖА [23:41:26]line ТРК (МРК, ГНК) : 21 [23:41:26]line Товар: 2710124130 [23:41:26]line Аи-92-К-5 [23:41:26]line 10.170 * 66.90 [23:41:26]line = 680.37 [23:41:26]line НДС 12% НСП 1% [23:41:26]line > о реализуемом товаре [23:41:26]line ОКРУГЛЕНИЕ: -0.37 [23:41:26]line ИТОГО: 680.00 [23:41:26]line Внесено: 680.00 [23:41:26]line СДАЧА: 0.00 [23:41:26]line НСП 1% : 6.02 [23:41:26]line НДС 12% : 72.25 [23:41:26]line Наличными: 680.00 [23:41:26]line Безнал.: 0.00 [23:41:26]line Место: АЗС № 170 "Партнер Нефть" [23:41:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:41:26]line СНО: Общий режим [23:41:26]line Чек 478 27.10.2024 23:41 [23:41:26]line Смена: 542 ФФД: 1.0 [23:41:26]line ЗНМ: 0300000110 [23:41:26]line РНМ: 0000000000091776 [23:41:26]line Версия ККМ: 001 [23:41:26]line ФМ: 0000000000871754 [23:41:26]line ФД: 192446 [23:41:26]line ФПД: 187912825599287 [23:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234126&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192446&fm=187912825599287&tin=02508201610067®Number=0000000000091776&sum=68000 [23:41:26]OFD Sender: Processing packet 192446 [packets to send 75, broken 74] [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00192446 [23:41:26]OFD Sender: To server: pG, [23:41:26]CommunicateWithHost lk.salyk.kg:30040 [23:41:26]ConnectInit lk.salyk.kg [23:41:26]written 0, free lines is 4095 [23:41:26]Connected sock=10 [23:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 EA 07 01 F9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 A6 CF 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EF 02 00 35 04 06 00 AA E7 DD 37 F5 37 8A 62 7B C0 8E A1 A3 8D [23:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 E1 47 00 65 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EF 02 00 F4 03 04 00 6C 74 1E 67 B6 04 01 00 00 E5 B1 54 C7 A5 69 2D 80 [23:41:26]CommunicateWithHost err = 0 [23:41:26]CheckOFDResponse [23:41:26]1017 (14) - 77093643461234 [23:41:26]1041 (16) - 0000000000871754 [23:41:26]1040 (4) - 192446 [23:41:26]1012 (4) - 27.10.2024 17:12 [23:41:26]1206 (1) - 0 [23:41:26]OFD Sender: Remove packet 192446 [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00192446 [23:41:26]NVStorageDeleteData [23:41:27]Write to MH i2c: 01 00 00 07 1A 21 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 07 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 AE 0C E2 [23:41:27]RasterBufferAndPrint [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]written 0, free lines is 3252 [23:41:27]MH_Cut [23:41:27]Write to MH i2c: D1 01 00 0E 1A 01 FA [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 01 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 01 00 0E 1A 00 F9 [23:41:27]Write to MH i2c: 01 00 00 0F 1A 29 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]OFD Sender: No OFD packet to send [23:41:27]*** Cut start [23:41:27]*** Partial cut [23:41:27]*** CUTSNS_PIN = 1 [23:41:27]*** CUTSNS_PIN = 0 [23:41:28]*** Brake cut motor [23:41:28]Read from MH i2c: 01 [23:41:28]MH_I2C_Read... [23:41:28]*** Stop cut motor [23:41:28]*** Cut end [23:41:28]Read from MH i2c: 01 07 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 FF 0F 3E [23:41:28]process_action close_receipt done [23:41:28]requested_data is exist [23:41:28]produce_requested_data [23:41:28]requested_item fm.sn is exist - process it [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 11 00 00 [23:41:28]Write to MH i2c: E2 08 00 10 1A 80 11 00 00 00 00 00 00 A4 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 10 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [23:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:41:28]wFMCommunicate OK [23:41:28]requested_item fd.num is exist - process it [23:41:28]SAM_PROTO_GetFieldsCounters [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 13 00 00 [23:41:28]Write to MH i2c: E2 08 00 11 1A 80 13 00 00 00 00 00 00 A7 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 62 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 62 00 11 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [23:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:28]wFMCommunicate OK [23:41:28]SAM_PROTO_GetFieldsCounters done [23:41:28]requested_item shift.num is exist - process it [23:41:28]requested_item shift.opened is exist - process it [23:41:28]req_shift_opened [23:41:28]FM_GetShiftState [23:41:28]SAM_PROTO_GetShiftState [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 13 01 00 [23:41:28]Write to MH i2c: E2 08 00 12 1A 80 13 01 00 00 00 00 00 A9 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 0E 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 0E 00 12 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EA [23:41:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [23:41:28]wFMCommunicate OK [23:41:28]SAM_PROTO_GetShiftState done [23:41:28]FM_GetShiftState done [23:41:28]req_shift_opened done [23:41:28]requested_item shift.open_date is exist - process it [23:41:28]req_shift_open_date [23:41:28]req_shift_open_date done [23:41:28]produce_requested_data done [23:41:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192446,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [23:41:28]process_action_free close_receipt [23:41:28]json_value_free [23:41:28]json_value_free done [23:41:28]process_json_proto returns [23:41:28]Send response to host [23:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192446,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [23:41:28]free response buf [23:41:28]execute_script done [23:41:28]execute_script returns [23:41:28]free content buf [23:41:28]Sock 7.Close socket [23:41:28]Sock 7.Thread stoped [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]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: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:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51: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:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:32]accept exits with 9 [00:09:32]New connection [00:09:32]New thread 3066563940 created [00:09:32]Thread 3066707300 joined [00:09:32]Waiting for new connection... [00:09:32] Sock 9.Parse request [00:09:32]Sock 9.Check first char [00:09:32]Sock 9.First char is OK [00:09:32]request: POST /json_proto HTTP/1.0 [00:09:32]Method: POST [00:09:32]URL: /json_proto [00:09:32]Method is POST - this is cgi request [00:09:32]url: /json_proto [00:09:32]query_string will be loaded in cgi processing [00:09:32]execute_cgi json_proto POST (null) [00:09:32]execute_cgi path=json_proto method=POST [00:09:32]POST find Content-Length [00:09:32]Host: 172.17.63.131:8080 [00:09:32]Content-Length: 676 [00:09:32]Content-Type: application/json [00:09:32] [00:09:32]POST finish read [00:09:32]Found Content-Length = 676 [00:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:32]execute_script... [00:09:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:32]POST & json_proto [00:09:32]process_json_proto [00:09:32]json parsed OK: [00:09:32]protocol is kg_v1.0 [00:09:32]action value=close_receipt [00:09:32]process_action close_receipt [00:09:32]cmd_close_receipt [00:09:32]MH_GetDate [00:09:32]Write to MH i2c: F0 00 00 13 1A 1C [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 13 1A 00 3E D6 1E 67 22 05 6E 64 B7 [00:09:32]GetLastDocTimeStamp 1730072486 [00:09:32]current date 1730074174 [00:09:32]FM_GetShiftState [00:09:32]SAM_PROTO_GetShiftState [00:09:32]wFMCommunicate request_size=4 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 13 01 00 [00:09:32]Write to MH i2c: E2 08 00 14 1A 80 13 01 00 00 00 00 00 AB [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 14 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EC [00:09:32]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:09:32]wFMCommunicate OK [00:09:32]SAM_PROTO_GetShiftState done [00:09:32]FM_GetShiftState done [00:09:32]opened in 1729989159 [00:09:32]opened+sec_in_day 1730075559 [00:09:32]quantity*price = 50041 [00:09:32]sum+1 = 50042 [00:09:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 479 28.10.2024 00:09 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192447 ФПД: 115887537133251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000934&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192447&fm=115887537133251&tin=02508201610067®Number=0000000000091776&sum=50000 [00:09:33]StoreToDocumentArchive [00:09:33]shift 542 fd 192447 [00:09:33]save to /storage/0542/doc_00192447 [00:09:33]save last doc name /storage/0542/doc_00192447 to /storage/kkm_last_doc_name [00:09:33]save OK [00:09:33]Clear old archive folders... [00:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:33]tlvbuf is 019E3FA0 [00:09:33]SAM_PROTO_ClearQueue [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 09 00 00 [00:09:33]Write to MH i2c: E2 08 00 21 1A 80 09 00 00 00 00 00 00 AD [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [00:09:33]RAPDU: 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_ClearQueue done [00:09:33]KKMCreateOFDPacket [00:09:33]OFDProtocolAddRootSTLVToBuf [00:09:33]FM_MakeSignedData [00:09:33]FM_MakeSignedData [00:09:33]SAM_PROTO_SignData [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 0D 01 02 [00:09:33]Write to MH i2c: E2 08 00 22 1A 80 0D 01 02 00 00 00 00 B5 [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [00:09:33]RAPDU: 90 00 [00:09:33]wFMCommunicate OK [00:09:33]wFMCommunicate request_size=255 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 3E D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EF 02 00 35 04 06 00 69 [00:09:33]Write to MH i2c: E2 02 01 23 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 3E D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EF 02 00 35 04 06 00 69 00 00 FB [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 03 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [00:09:34]RAPDU: 90 00 [00:09:34]wFMCommunicate OK [00:09:34]wFMCommunicate request_size=10 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 0D 02 02 05 66 2B 7C 16 C3 [00:09:34]Write to MH i2c: E2 0D 00 24 1A 80 0D 02 02 05 00 66 2B 7C 16 C3 00 00 A8 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]OFD Sender: No OFD packet to send [00:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 03 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [00:09:34]RAPDU: 90 00 [00:09:34]wFMCommunicate OK [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 0D 03 02 [00:09:34]Write to MH i2c: E2 08 00 25 1A 80 0D 03 02 00 00 00 00 BA [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 0B 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 0B 00 25 1A 00 43 21 1A 7C 28 67 2E 1C 90 00 8E [00:09:34]RAPDU: 43 21 1A 7C 28 67 2E 1C 90 00 [00:09:34]wFMCommunicate OK [00:09:34]SAM_PROTO_SignData done [00:09:34]FM_MakeSignedData done [00:09:34]CreateOFDProtocolMessage [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 11 00 00 [00:09:34]Write to MH i2c: E2 08 00 26 1A 80 11 00 00 00 00 00 00 BA [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 17 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 17 00 26 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [00:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:09:34]wFMCommunicate OK [00:09:34]CreateOFDProtocolMessage done [00:09:34]OFDSenderStorePacket 192447 [00:09:34]StoreOFDPacket docnum=192447 [00:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 7E 07 01 3C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 3E D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EF 02 00 35 04 06 00 69 66 2B 7C 16 C3 43 21 1A 7C 28 67 2E 1C [00:09:34]CheckFolder [00:09:34]dirname=/storage/ofd_packets [00:09:34]CheckFolder done [00:09:34]ProducePacketName [00:09:34]name=ofd_packets/00192447 [00:09:34]NVStorageSaveData ofd_packets/00192447 [00:09:34]File name is /storage/ofd_packets/00192447 [00:09:34]Write 301 bytes [00:09:34]NVStorageSaveData done [00:09:34]OFDSenderStorePacket done [00:09:34]KKMCreateOFDPacket done [00:09:34]NVStorageSaveData kkm_last_timestamp [00:09:34]File name is /storage/kkm_last_timestamp [00:09:34]Write 4 bytes [00:09:34]NVStorageSaveData done [00:09:34]ExternCall_PrintAddStr [00:09:34]wPrintStart [00:09:34]Write to MH i2c: 01 00 00 27 1A 41 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: 01 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: 01 07 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 FF 0F 56 [00:09:34]RasterBufferAndPrint [00:09:34]line Счет N : (1)31764 [00:09:34]line ИНН: 02508201610067 [00:09:34]line Контрольно-Кассовый Чек [00:09:34]line ПРОДАЖА [00:09:34]line ТРК (МРК, ГНК) : 21 [00:09:34]line Товар: 2710124130 [00:09:34]line Аи-92-К-5 [00:09:34]line 7.480 * 66.90 [00:09:34]line = 500.41 [00:09:34]line НДС 12% НСП 1% [00:09:34]line > о реализуемом товаре [00:09:34]line ОКРУГЛЕНИЕ: -0.41 [00:09:34]line ИТОГО: 500.00 [00:09:34]line Внесено: 500.00 [00:09:34]line СДАЧА: 0.00 [00:09:34]line НСП 1% : 4.43 [00:09:34]line НДС 12% : 53.14 [00:09:34]line Наличными: 500.00 [00:09:34]line Безнал.: 0.00 [00:09:34]line Место: АЗС № 170 "Партнер Нефть" [00:09:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:09:34]line СНО: Общий режим [00:09:34]line Чек 479 28.10.2024 00:09 [00:09:34]line Смена: 542 ФФД: 1.0 [00:09:34]line ЗНМ: 0300000110 [00:09:34]line РНМ: 0000000000091776 [00:09:34]line Версия ККМ: 001 [00:09:34]line ФМ: 0000000000871754 [00:09:34]line ФД: 192447 [00:09:34]line ФПД: 115887537133251 [00:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000934&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192447&fm=115887537133251&tin=02508201610067®Number=0000000000091776&sum=50000 [00:09:34]OFD Sender: Processing packet 192447 [packets to send 75, broken 74] [00:09:34]ProducePacketName [00:09:34]name=ofd_packets/00192447 [00:09:34]OFD Sender: To server: pG, [00:09:34]CommunicateWithHost lk.salyk.kg:30040 [00:09:34]ConnectInit lk.salyk.kg [00:09:34]written 0, free lines is 4095 [00:09:34]Connected sock=10 [00:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 7E 07 01 3C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 3E D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EF 02 00 35 04 06 00 69 66 2B 7C 16 C3 43 21 1A 7C 28 67 2E 1C [00:09:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 C9 47 00 6C 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EF 02 00 F4 03 04 00 04 7B 1E 67 B6 04 01 00 00 37 8C E0 59 3C 03 F1 93 [00:09:34]CommunicateWithHost err = 0 [00:09:34]CheckOFDResponse [00:09:34]1017 (14) - 77093643461234 [00:09:34]1041 (16) - 0000000000871754 [00:09:34]1040 (4) - 192447 [00:09:34]1012 (4) - 27.10.2024 17:40 [00:09:34]1206 (1) - 0 [00:09:34]OFD Sender: Remove packet 192447 [00:09:34]ProducePacketName [00:09:34]name=ofd_packets/00192447 [00:09:34]NVStorageDeleteData [00:09:35]Write to MH i2c: 01 00 00 52 1A 6C [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: 01 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: 01 07 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 A3 0C 22 [00:09:35]RasterBufferAndPrint [00:09:35]line [00:09:35]line [00:09:35]line [00:09:35]line [00:09:35]line [00:09:35]written 0, free lines is 3241 [00:09:35]MH_Cut [00:09:35]Write to MH i2c: D1 01 00 59 1A 01 45 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: D1 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: D1 01 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: D1 01 00 59 1A 00 44 [00:09:35]Write to MH i2c: 01 00 00 5A 1A 74 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]OFD Sender: No OFD packet to send [00:09:35]*** Cut start [00:09:35]*** Partial cut [00:09:35]*** CUTSNS_PIN = 1 [00:09:35]*** CUTSNS_PIN = 0 [00:09:36]*** Brake cut motor [00:09:36]Read from MH i2c: 01 [00:09:36]MH_I2C_Read... [00:09:36]*** Stop cut motor [00:09:36]*** Cut end [00:09:36]Read from MH i2c: 01 07 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: 01 07 00 5A 1A 00 00 00 00 00 FF 0F 89 [00:09:36]process_action close_receipt done [00:09:36]requested_data is exist [00:09:36]produce_requested_data [00:09:36]requested_item fm.sn is exist - process it [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 11 00 00 [00:09:36]Write to MH i2c: E2 08 00 5B 1A 80 11 00 00 00 00 00 00 EF [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 [00:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 17 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 17 00 5B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [00:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:09:36]wFMCommunicate OK [00:09:36]requested_item fd.num is exist - process it [00:09:36]SAM_PROTO_GetFieldsCounters [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 13 00 00 [00:09:36]Write to MH i2c: E2 08 00 5C 1A 80 13 00 00 00 00 00 00 F2 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 62 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 62 00 5C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [00:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:36]wFMCommunicate OK [00:09:36]SAM_PROTO_GetFieldsCounters done [00:09:36]requested_item shift.num is exist - process it [00:09:36]requested_item shift.opened is exist - process it [00:09:36]req_shift_opened [00:09:36]FM_GetShiftState [00:09:36]SAM_PROTO_GetShiftState [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 13 01 00 [00:09:36]Write to MH i2c: E2 08 00 5D 1A 80 13 01 00 00 00 00 00 F4 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 0E 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 0E 00 5D 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 35 [00:09:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:09:36]wFMCommunicate OK [00:09:36]SAM_PROTO_GetShiftState done [00:09:36]FM_GetShiftState done [00:09:36]req_shift_opened done [00:09:36]requested_item shift.open_date is exist - process it [00:09:36]req_shift_open_date [00:09:36]req_shift_open_date done [00:09:36]produce_requested_data done [00:09:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192447,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:09:36]process_action_free close_receipt [00:09:36]json_value_free [00:09:36]json_value_free done [00:09:36]process_json_proto returns [00:09:36]Send response to host [00:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192447,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:09:36]free response buf [00:09:36]execute_script done [00:09:36]execute_script returns [00:09:36]free content buf [00:09:36]Sock 9.Close socket [00:09:36]Sock 9.Thread stoped [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:01]accept exits with 7 [00:12:01]New connection [00:12:01]New thread 3066707300 created [00:12:01]Thread 3066563940 joined [00:12:01]Waiting for new connection... [00:12:01] Sock 7.Parse request [00:12:01]Sock 7.Check first char [00:12:01]Sock 7.First char is OK [00:12:01]request: POST /json_proto HTTP/1.0 [00:12:01]Method: POST [00:12:01]URL: /json_proto [00:12:01]Method is POST - this is cgi request [00:12:01]url: /json_proto [00:12:01]query_string will be loaded in cgi processing [00:12:01]execute_cgi json_proto POST (null) [00:12:01]execute_cgi path=json_proto method=POST [00:12:01]POST find Content-Length [00:12:01]Host: 172.17.63.131:8080 [00:12:01]Content-Length: 681 [00:12:01]Content-Type: application/json [00:12:01] [00:12:01]POST finish read [00:12:01]Found Content-Length = 681 [00:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:01]execute_script... [00:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:01]POST & json_proto [00:12:01]process_json_proto [00:12:01]json parsed OK: [00:12:01]protocol is kg_v1.0 [00:12:01]action value=close_receipt [00:12:01]process_action close_receipt [00:12:01]cmd_close_receipt [00:12:01]MH_GetDate [00:12:01]Write to MH i2c: F0 00 00 5E 1A 67 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: F0 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: F0 09 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: F0 09 00 5E 1A 00 D3 D6 1E 67 22 05 6E 64 97 [00:12:01]GetLastDocTimeStamp 1730074174 [00:12:01]current date 1730074323 [00:12:01]FM_GetShiftState [00:12:01]SAM_PROTO_GetShiftState [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 13 01 00 [00:12:01]Write to MH i2c: E2 08 00 5F 1A 80 13 01 00 00 00 00 00 F6 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 0E 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 0E 00 5F 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 37 [00:12:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:12:01]wFMCommunicate OK [00:12:01]SAM_PROTO_GetShiftState done [00:12:01]FM_GetShiftState done [00:12:01]opened in 1729989159 [00:12:01]opened+sec_in_day 1730075559 [00:12:01]quantity*price = 100015 [00:12:01]sum+1 = 100017 [00:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 480 28.10.2024 00:12 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192448 ФПД: 268290098699282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001203&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192448&fm=268290098699282&tin=02508201610067®Number=0000000000091776&sum=100000 [00:12:02]StoreToDocumentArchive [00:12:02]shift 542 fd 192448 [00:12:02]save to /storage/0542/doc_00192448 [00:12:02]save last doc name /storage/0542/doc_00192448 to /storage/kkm_last_doc_name [00:12:02]save OK [00:12:02]Clear old archive folders... [00:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:02]tlvbuf is 0196AA20 [00:12:02]SAM_PROTO_ClearQueue [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 09 00 00 [00:12:02]Write to MH i2c: E2 08 00 6C 1A 80 09 00 00 00 00 00 00 F8 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [00:12:02]RAPDU: 90 00 [00:12:02]wFMCommunicate OK [00:12:02]SAM_PROTO_ClearQueue done [00:12:02]KKMCreateOFDPacket [00:12:02]OFDProtocolAddRootSTLVToBuf [00:12:02]FM_MakeSignedData [00:12:02]FM_MakeSignedData [00:12:02]SAM_PROTO_SignData [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 0D 01 02 [00:12:02]Write to MH i2c: E2 08 00 6D 1A 80 0D 01 02 00 00 00 00 00 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [00:12:02]RAPDU: 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=255 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D3 D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EF 02 00 35 04 06 00 F4 [00:12:02]Write to MH i2c: E2 02 01 6E 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D3 D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EF 02 00 35 04 06 00 F4 00 00 62 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [00:12:02]RAPDU: 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=10 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 0D 02 02 05 02 28 07 9C 12 [00:12:02]Write to MH i2c: E2 0D 00 6F 1A 80 0D 02 02 05 00 02 28 07 9C 12 00 00 EC [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [00:12:02]RAPDU: 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 0D 03 02 [00:12:02]Write to MH i2c: E2 08 00 70 1A 80 0D 03 02 00 00 00 00 05 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 0B 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 0B 00 70 1A 00 83 65 A7 E2 C0 45 BB 06 90 00 3D [00:12:02]RAPDU: 83 65 A7 E2 C0 45 BB 06 90 00 [00:12:02]wFMCommunicate OK [00:12:02]SAM_PROTO_SignData done [00:12:02]FM_MakeSignedData done [00:12:02]CreateOFDProtocolMessage [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 11 00 00 [00:12:02]Write to MH i2c: E2 08 00 71 1A 80 11 00 00 00 00 00 00 05 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 17 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 17 00 71 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [00:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:12:02]wFMCommunicate OK [00:12:02]CreateOFDProtocolMessage done [00:12:02]OFDSenderStorePacket 192448 [00:12:02]StoreOFDPacket docnum=192448 [00:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 60 07 01 EC A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D3 D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EF 02 00 35 04 06 00 F4 02 28 07 9C 12 83 65 A7 E2 C0 45 BB 06 [00:12:02]CheckFolder [00:12:02]dirname=/storage/ofd_packets [00:12:02]CheckFolder done [00:12:02]ProducePacketName [00:12:02]name=ofd_packets/00192448 [00:12:02]NVStorageSaveData ofd_packets/00192448 [00:12:02]File name is /storage/ofd_packets/00192448 [00:12:02]Write 301 bytes [00:12:02]NVStorageSaveData done [00:12:02]OFDSenderStorePacket done [00:12:02]KKMCreateOFDPacket done [00:12:02]NVStorageSaveData kkm_last_timestamp [00:12:02]File name is /storage/kkm_last_timestamp [00:12:02]Write 4 bytes [00:12:02]NVStorageSaveData done [00:12:02]ExternCall_PrintAddStr [00:12:02]wPrintStart [00:12:02]Write to MH i2c: 01 00 00 72 1A 8C [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: 01 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: 01 07 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 FF 0F A1 [00:12:02]RasterBufferAndPrint [00:12:02]line Счет N : (1)31765 [00:12:02]line ИНН: 02508201610067 [00:12:02]line Контрольно-Кассовый Чек [00:12:02]line ПРОДАЖА [00:12:02]line ТРК (МРК, ГНК) : 12 [00:12:02]line Товар: 2710124130 [00:12:02]line Аи-92-К-5 [00:12:02]line 14.950 * 66.90 [00:12:02]line = 1000.16 [00:12:02]line НДС 12% НСП 1% [00:12:02]line > о реализуемом товаре [00:12:02]line ОКРУГЛЕНИЕ: -0.16 [00:12:02]line ИТОГО: 1000.00 [00:12:02]line Внесено: 1000.00 [00:12:02]line СДАЧА: 0.00 [00:12:02]line НСП 1% : 8.85 [00:12:02]line НДС 12% : 106.21 [00:12:02]line Наличными: 1000.00 [00:12:02]line Безнал.: 0.00 [00:12:02]line Место: АЗС № 170 "Партнер Нефть" [00:12:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:12:02]line СНО: Общий режим [00:12:02]line Чек 480 28.10.2024 00:12 [00:12:02]line Смена: 542 ФФД: 1.0 [00:12:02]line ЗНМ: 0300000110 [00:12:02]line РНМ: 0000000000091776 [00:12:02]line Версия ККМ: 001 [00:12:02]line ФМ: 0000000000871754 [00:12:02]line ФД: 192448 [00:12:02]line ФПД: 268290098699282 [00:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001203&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192448&fm=268290098699282&tin=02508201610067®Number=0000000000091776&sum=100000 [00:12:03]OFD Sender: Processing packet 192448 [packets to send 75, broken 74] [00:12:03]ProducePacketName [00:12:03]name=ofd_packets/00192448 [00:12:03]OFD Sender: To server: pG, [00:12:03]CommunicateWithHost lk.salyk.kg:30040 [00:12:03]ConnectInit lk.salyk.kg [00:12:03]written 0, free lines is 4095 [00:12:03]Connected sock=10 [00:12:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 60 07 01 EC A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D3 D6 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EF 02 00 35 04 06 00 F4 02 28 07 9C 12 83 65 A7 E2 C0 45 BB 06 [00:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C DE 47 00 D5 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EF 02 00 F4 03 04 00 99 7B 1E 67 B6 04 01 00 00 DD 85 31 8A 84 EC 1D 8B [00:12:03]CommunicateWithHost err = 0 [00:12:03]CheckOFDResponse [00:12:03]1017 (14) - 77093643461234 [00:12:03]1041 (16) - 0000000000871754 [00:12:03]1040 (4) - 192448 [00:12:03]1012 (4) - 27.10.2024 17:42 [00:12:03]1206 (1) - 0 [00:12:03]OFD Sender: Remove packet 192448 [00:12:03]ProducePacketName [00:12:03]name=ofd_packets/00192448 [00:12:03]NVStorageDeleteData [00:12:03]Write to MH i2c: 01 00 00 9D 1A B7 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: 01 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: 01 07 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 B4 0C 7E [00:12:03]RasterBufferAndPrint [00:12:03]line [00:12:03]line [00:12:03]line [00:12:03]line [00:12:03]line [00:12:03]written 0, free lines is 3256 [00:12:03]MH_Cut [00:12:03]Write to MH i2c: D1 01 00 A4 1A 01 90 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: D1 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: D1 01 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: D1 01 00 A4 1A 00 8F [00:12:03]Write to MH i2c: 01 00 00 A5 1A BF [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]OFD Sender: No OFD packet to send [00:12:04]*** Cut start [00:12:04]*** Partial cut [00:12:04]*** CUTSNS_PIN = 1 [00:12:04]*** CUTSNS_PIN = 0 [00:12:04]*** Brake cut motor [00:12:04]Read from MH i2c: 01 [00:12:04]MH_I2C_Read... [00:12:04]*** Stop cut motor [00:12:04]*** Cut end [00:12:04]Read from MH i2c: 01 07 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: 01 07 00 A5 1A 00 00 00 00 00 FF 0F D4 [00:12:05]process_action close_receipt done [00:12:05]requested_data is exist [00:12:05]produce_requested_data [00:12:05]requested_item fm.sn is exist - process it [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 11 00 00 [00:12:05]Write to MH i2c: E2 08 00 A6 1A 80 11 00 00 00 00 00 00 3A [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:05]Read from MH i2c: E2 17 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 17 00 A6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [00:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:12:05]wFMCommunicate OK [00:12:05]requested_item fd.num is exist - process it [00:12:05]SAM_PROTO_GetFieldsCounters [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 13 00 00 [00:12:05]Write to MH i2c: E2 08 00 A7 1A 80 13 00 00 00 00 00 00 3D [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 62 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 62 00 A7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [00:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:05]wFMCommunicate OK [00:12:05]SAM_PROTO_GetFieldsCounters done [00:12:05]requested_item shift.num is exist - process it [00:12:05]requested_item shift.opened is exist - process it [00:12:05]req_shift_opened [00:12:05]FM_GetShiftState [00:12:05]SAM_PROTO_GetShiftState [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 13 01 00 [00:12:05]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 0E 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 80 [00:12:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:12:05]wFMCommunicate OK [00:12:05]SAM_PROTO_GetShiftState done [00:12:05]FM_GetShiftState done [00:12:05]req_shift_opened done [00:12:05]requested_item shift.open_date is exist - process it [00:12:05]req_shift_open_date [00:12:05]req_shift_open_date done [00:12:05]produce_requested_data done [00:12:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192448,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:12:05]process_action_free close_receipt [00:12:05]json_value_free [00:12:05]json_value_free done [00:12:05]process_json_proto returns [00:12:05]Send response to host [00:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192448,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:12:05]free response buf [00:12:05]execute_script done [00:12:05]execute_script returns [00:12:05]free content buf [00:12:05]Sock 7.Close socket [00:12:05]Sock 7.Thread stoped [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:08]accept exits with 9 [00:17:08]New connection [00:17:08]New thread 3066563940 created [00:17:08]Thread 3066707300 joined [00:17:08]Waiting for new connection... [00:17:08] Sock 9.Parse request [00:17:08]Sock 9.Check first char [00:17:08]Sock 9.First char is OK [00:17:08]request: POST /json_proto HTTP/1.0 [00:17:08]Method: POST [00:17:08]URL: /json_proto [00:17:08]Method is POST - this is cgi request [00:17:08]url: /json_proto [00:17:08]query_string will be loaded in cgi processing [00:17:08]execute_cgi json_proto POST (null) [00:17:08]execute_cgi path=json_proto method=POST [00:17:08]POST find Content-Length [00:17:08]Host: 172.17.63.131:8080 [00:17:08]Content-Length: 676 [00:17:08]Content-Type: application/json [00:17:08] [00:17:08]POST finish read [00:17:08]Found Content-Length = 676 [00:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:08]execute_script... [00: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 : (1)31766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:08]POST & json_proto [00:17:08]process_json_proto [00:17:08]json parsed OK: [00:17:08]protocol is kg_v1.0 [00:17:08]action value=close_receipt [00:17:08]process_action close_receipt [00:17:08]cmd_close_receipt [00:17:08]MH_GetDate [00:17:08]Write to MH i2c: F0 00 00 A9 1A B2 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: F0 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: F0 09 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: F0 09 00 A9 1A 00 06 D8 1E 67 22 05 6E 64 17 [00:17:08]GetLastDocTimeStamp 1730074323 [00:17:08]current date 1730074630 [00:17:08]FM_GetShiftState [00:17:08]SAM_PROTO_GetShiftState [00:17:08]wFMCommunicate request_size=4 [00:17:08]MH_SAM_APDU [00:17:08]CAPDU: 80 13 01 00 [00:17:08]Write to MH i2c: E2 08 00 AA 1A 80 13 01 00 00 00 00 00 41 [00:17:08]Write i2c OK [00:17:08]MH_I2C_Read... [00:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:08]Read from MH i2c: E2 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 0E 00 [00:17:08]MH_I2C_Read... [00:17:08]Read from MH i2c: E2 0E 00 AA 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 82 [00:17:08]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:17:08]wFMCommunicate OK [00:17:08]SAM_PROTO_GetShiftState done [00:17:08]FM_GetShiftState done [00:17:08]opened in 1729989159 [00:17:08]opened+sec_in_day 1730075559 [00:17:08]quantity*price = 40006 [00:17:08]sum+1 = 40007 [00:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 481 28.10.2024 00:17 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192449 ФПД: 265609918424263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192449&fm=265609918424263&tin=02508201610067®Number=0000000000091776&sum=40000 [00:17:09]StoreToDocumentArchive [00:17:09]shift 542 fd 192449 [00:17:09]save to /storage/0542/doc_00192449 [00:17:09]save last doc name /storage/0542/doc_00192449 to /storage/kkm_last_doc_name [00:17:09]save OK [00:17:09]Clear old archive folders... [00:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:09]tlvbuf is 019EE9E0 [00:17:09]SAM_PROTO_ClearQueue [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 09 00 00 [00:17:09]Write to MH i2c: E2 08 00 B7 1A 80 09 00 00 00 00 00 00 43 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [00:17:09]RAPDU: 90 00 [00:17:09]wFMCommunicate OK [00:17:09]SAM_PROTO_ClearQueue done [00:17:09]KKMCreateOFDPacket [00:17:09]OFDProtocolAddRootSTLVToBuf [00:17:09]FM_MakeSignedData [00:17:09]FM_MakeSignedData [00:17:09]SAM_PROTO_SignData [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 0D 01 02 [00:17:09]Write to MH i2c: E2 08 00 B8 1A 80 0D 01 02 00 00 00 00 4B [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [00:17:09]RAPDU: 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=255 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 06 D8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EF 02 00 35 04 06 00 F1 [00:17:09]Write to MH i2c: E2 02 01 B9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 06 D8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EF 02 00 35 04 06 00 F1 00 00 B6 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [00:17:09]RAPDU: 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=10 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 0D 02 02 05 92 20 D6 24 C7 [00:17:09]Write to MH i2c: E2 0D 00 BA 1A 80 0D 02 02 05 00 92 20 D6 24 C7 00 00 CB [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [00:17:09]RAPDU: 90 00 [00:17:09]wFMCommunicate OK [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 0D 03 02 [00:17:09]Write to MH i2c: E2 08 00 BB 1A 80 0D 03 02 00 00 00 00 50 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 0B 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 0B 00 BB 1A 00 BF DA 2B 0D 48 26 DB 39 90 00 A4 [00:17:09]RAPDU: BF DA 2B 0D 48 26 DB 39 90 00 [00:17:09]wFMCommunicate OK [00:17:09]SAM_PROTO_SignData done [00:17:09]FM_MakeSignedData done [00:17:09]CreateOFDProtocolMessage [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 11 00 00 [00:17:09]Write to MH i2c: E2 08 00 BC 1A 80 11 00 00 00 00 00 00 50 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 BC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [00:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:17:09]wFMCommunicate OK [00:17:09]CreateOFDProtocolMessage done [00:17:09]OFDSenderStorePacket 192449 [00:17:09]StoreOFDPacket docnum=192449 [00:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 1C 07 01 1F 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 06 D8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EF 02 00 35 04 06 00 F1 92 20 D6 24 C7 BF DA 2B 0D 48 26 DB 39 [00:17:09]CheckFolder [00:17:09]dirname=/storage/ofd_packets [00:17:09]CheckFolder done [00:17:09]ProducePacketName [00:17:09]name=ofd_packets/00192449 [00:17:09]NVStorageSaveData ofd_packets/00192449 [00:17:09]File name is /storage/ofd_packets/00192449 [00:17:09]Write 301 bytes [00:17:09]NVStorageSaveData done [00:17:09]OFDSenderStorePacket done [00:17:09]KKMCreateOFDPacket done [00:17:09]NVStorageSaveData kkm_last_timestamp [00:17:09]File name is /storage/kkm_last_timestamp [00:17:09]Write 4 bytes [00:17:09]NVStorageSaveData done [00:17:09]ExternCall_PrintAddStr [00:17:09]wPrintStart [00:17:09]Write to MH i2c: 01 00 00 BD 1A D7 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: 01 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: 01 07 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: 01 07 00 BD 1A 00 00 00 00 00 FF 0F EC [00:17:09]RasterBufferAndPrint [00:17:09]line Счет N : (1)31766 [00:17:09]line ИНН: 02508201610067 [00:17:09]line Контрольно-Кассовый Чек [00:17:09]line ПРОДАЖА [00:17:09]line ТРК (МРК, ГНК) : 12 [00:17:09]line Товар: 2710124130 [00:17:09]line Аи-92-К-5 [00:17:09]line 5.980 * 66.90 [00:17:09]line = 400.06 [00:17:09]line НДС 12% НСП 1% [00:17:09]line > о реализуемом товаре [00:17:09]line ОКРУГЛЕНИЕ: -0.06 [00:17:09]line ИТОГО: 400.00 [00:17:09]line Внесено: 400.00 [00:17:09]line СДАЧА: 0.00 [00:17:09]line НСП 1% : 3.54 [00:17:09]line НДС 12% : 42.48 [00:17:09]line Наличными: 400.00 [00:17:09]line Безнал.: 0.00 [00:17:09]line Место: АЗС № 170 "Партнер Нефть" [00:17:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:17:09]line СНО: Общий режим [00:17:09]line Чек 481 28.10.2024 00:17 [00:17:09]line Смена: 542 ФФД: 1.0 [00:17:09]line ЗНМ: 0300000110 [00:17:09]line РНМ: 0000000000091776 [00:17:09]line Версия ККМ: 001 [00:17:09]line ФМ: 0000000000871754 [00:17:09]line ФД: 192449 [00:17:09]line ФПД: 265609918424263 [00:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192449&fm=265609918424263&tin=02508201610067®Number=0000000000091776&sum=40000 [00:17:10]OFD Sender: Processing packet 192449 [packets to send 75, broken 74] [00:17:10]ProducePacketName [00:17:10]name=ofd_packets/00192449 [00:17:10]OFD Sender: To server: pG, [00:17:10]CommunicateWithHost lk.salyk.kg:30040 [00:17:10]ConnectInit lk.salyk.kg [00:17:10]written 0, free lines is 4095 [00:17:10]Connected sock=10 [00: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 37 35 34 0F 01 00 00 C9 1C 07 01 1F 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 06 D8 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EF 02 00 35 04 06 00 F1 92 20 D6 24 C7 BF DA 2B 0D 48 26 DB 39 [00:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF 54 47 00 8D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EF 02 00 F4 03 04 00 CC 7C 1E 67 B6 04 01 00 00 77 31 F8 73 5F 0E FD 3C [00:17:10]CommunicateWithHost err = 0 [00:17:10]CheckOFDResponse [00:17:10]1017 (14) - 77093643461234 [00:17:10]1041 (16) - 0000000000871754 [00:17:10]1040 (4) - 192449 [00:17:10]1012 (4) - 27.10.2024 17:47 [00:17:10]1206 (1) - 0 [00:17:10]OFD Sender: Remove packet 192449 [00:17:10]ProducePacketName [00:17:10]name=ofd_packets/00192449 [00:17:10]NVStorageDeleteData [00:17:10]Write to MH i2c: 01 00 00 E8 1A 02 [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: 01 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: 01 07 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 AA 0C BF [00:17:10]RasterBufferAndPrint [00:17:10]line [00:17:10]line [00:17:10]line [00:17:10]line [00:17:10]line [00:17:10]written 0, free lines is 3248 [00:17:10]MH_Cut [00:17:10]Write to MH i2c: D1 01 00 EF 1A 01 DB [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: D1 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: D1 01 00 [00:17:10]MH_I2C_Read... [00:17:10]Read from MH i2c: D1 01 00 EF 1A 00 DA [00:17:10]Write to MH i2c: 01 00 00 F0 1A 0A [00:17:10]Write i2c OK [00:17:10]MH_I2C_Read... [00:17:11]OFD Sender: No OFD packet to send [00:17:11]*** Cut start [00:17:11]*** Partial cut [00:17:11]*** CUTSNS_PIN = 1 [00:17:11]*** CUTSNS_PIN = 0 [00:17:11]*** Brake cut motor [00:17:12]Read from MH i2c: 01 [00:17:12]MH_I2C_Read... [00:17:12]*** Stop cut motor [00:17:12]*** Cut end [00:17:12]Read from MH i2c: 01 07 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: 01 07 00 F0 1A 00 00 00 00 00 FF 0F 1F [00:17:12]process_action close_receipt done [00:17:12]requested_data is exist [00:17:12]produce_requested_data [00:17:12]requested_item fm.sn is exist - process it [00:17:12]wFMCommunicate request_size=4 [00:17:12]MH_SAM_APDU [00:17:12]CAPDU: 80 11 00 00 [00:17:12]Write to MH i2c: E2 08 00 F1 1A 80 11 00 00 00 00 00 00 85 [00:17:12]Write i2c OK [00:17:12]MH_I2C_Read... [00:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:12]Read from MH i2c: E2 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 17 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 17 00 F1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [00:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:17:12]wFMCommunicate OK [00:17:12]requested_item fd.num is exist - process it [00:17:12]SAM_PROTO_GetFieldsCounters [00:17:12]wFMCommunicate request_size=4 [00:17:12]MH_SAM_APDU [00:17:12]CAPDU: 80 13 00 00 [00:17:12]Write to MH i2c: E2 08 00 F2 1A 80 13 00 00 00 00 00 00 88 [00:17:12]Write i2c OK [00:17:12]MH_I2C_Read... [00:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:12]Read from MH i2c: E2 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 62 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 62 00 F2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:12]wFMCommunicate OK [00:17:12]SAM_PROTO_GetFieldsCounters done [00:17:12]requested_item shift.num is exist - process it [00:17:12]requested_item shift.opened is exist - process it [00:17:12]req_shift_opened [00:17:12]FM_GetShiftState [00:17:12]SAM_PROTO_GetShiftState [00:17:12]wFMCommunicate request_size=4 [00:17:12]MH_SAM_APDU [00:17:12]CAPDU: 80 13 01 00 [00:17:12]Write to MH i2c: E2 08 00 F3 1A 80 13 01 00 00 00 00 00 8A [00:17:12]Write i2c OK [00:17:12]MH_I2C_Read... [00:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:12]Read from MH i2c: E2 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 0E 00 [00:17:12]MH_I2C_Read... [00:17:12]Read from MH i2c: E2 0E 00 F3 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CB [00:17:12]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:17:12]wFMCommunicate OK [00:17:12]SAM_PROTO_GetShiftState done [00:17:12]FM_GetShiftState done [00:17:12]req_shift_opened done [00:17:12]requested_item shift.open_date is exist - process it [00:17:12]req_shift_open_date [00:17:12]req_shift_open_date done [00:17:12]produce_requested_data done [00:17:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192449,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:17:12]process_action_free close_receipt [00:17:12]json_value_free [00:17:12]json_value_free done [00:17:12]process_json_proto returns [00:17:12]Send response to host [00:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192449,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:17:12]free response buf [00:17:12]execute_script done [00:17:12]execute_script returns [00:17:12]free content buf [00:17:12]Sock 9.Close socket [00:17:12]Sock 9.Thread stoped [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:17]accept exits with 7 [00:25:17]New connection [00:25:17]New thread 3066707300 created [00:25:17]Thread 3066563940 joined [00:25:17]Waiting for new connection... [00:25:17] Sock 7.Parse request [00:25:17]Sock 7.Check first char [00:25:17]Sock 7.First char is OK [00:25:17]request: POST /json_proto HTTP/1.0 [00:25:17]Method: POST [00:25:17]URL: /json_proto [00:25:17]Method is POST - this is cgi request [00:25:17]url: /json_proto [00:25:17]query_string will be loaded in cgi processing [00:25:17]execute_cgi json_proto POST (null) [00:25:17]execute_cgi path=json_proto method=POST [00:25:17]POST find Content-Length [00:25:17]Host: 172.17.63.131:8080 [00:25:17]Content-Length: 676 [00:25:17]Content-Type: application/json [00:25:17] [00:25:17]POST finish read [00:25:17]Found Content-Length = 676 [00:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]execute_script... [00:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]POST & json_proto [00:25:17]process_json_proto [00:25:17]json parsed OK: [00:25:17]protocol is kg_v1.0 [00:25:17]action value=close_receipt [00:25:17]process_action close_receipt [00:25:17]cmd_close_receipt [00:25:17]MH_GetDate [00:25:17]Write to MH i2c: F0 00 00 F4 1A FD [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 09 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 09 00 F4 1A 00 EF D9 1E 67 22 05 6E 64 4C [00:25:17]GetLastDocTimeStamp 1730074630 [00:25:17]current date 1730075119 [00:25:17]FM_GetShiftState [00:25:17]SAM_PROTO_GetShiftState [00:25:17]wFMCommunicate request_size=4 [00:25:17]MH_SAM_APDU [00:25:17]CAPDU: 80 13 01 00 [00:25:17]Write to MH i2c: E2 08 00 F5 1A 80 13 01 00 00 00 00 00 8C [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 0E 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 0E 00 F5 1A 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CD [00:25:17]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:25:17]wFMCommunicate OK [00:25:17]SAM_PROTO_GetShiftState done [00:25:17]FM_GetShiftState done [00:25:17]opened in 1729989159 [00:25:17]opened+sec_in_day 1730075559 [00:25:17]quantity*price = 30038 [00:25:17]sum+1 = 30039 [00:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 482 28.10.2024 00:25 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192450 ФПД: 276034181100876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T002519&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192450&fm=276034181100876&tin=02508201610067®Number=0000000000091776&sum=30000 [00:25:18]StoreToDocumentArchive [00:25:18]shift 542 fd 192450 [00:25:18]save to /storage/0542/doc_00192450 [00:25:18]save last doc name /storage/0542/doc_00192450 to /storage/kkm_last_doc_name [00:25:18]save OK [00:25:18]Clear old archive folders... [00:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:18]tlvbuf is 019AEBA0 [00:25:18]SAM_PROTO_ClearQueue [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 09 00 00 [00:25:18]Write to MH i2c: E2 08 00 02 1B 80 09 00 00 00 00 00 00 8F [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_ClearQueue done [00:25:18]KKMCreateOFDPacket [00:25:18]OFDProtocolAddRootSTLVToBuf [00:25:18]FM_MakeSignedData [00:25:18]FM_MakeSignedData [00:25:18]SAM_PROTO_SignData [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 01 02 [00:25:18]Write to MH i2c: E2 08 00 03 1B 80 0D 01 02 00 00 00 00 97 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=255 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 EF D9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EF 02 00 35 04 06 00 FB [00:25:18]Write to MH i2c: E2 02 01 04 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 EF D9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EF 02 00 35 04 06 00 FB 00 00 1D [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 04 1B 00 90 00 93 [00:25:19]RAPDU: 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=10 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 0D 02 02 05 0D 37 4F 75 4C [00:25:19]Write to MH i2c: E2 0D 00 05 1B 80 0D 02 02 05 00 0D 37 4F 75 4C 00 00 F8 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [00:25:19]RAPDU: 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 0D 03 02 [00:25:19]Write to MH i2c: E2 08 00 06 1B 80 0D 03 02 00 00 00 00 9C [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 0B 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 0B 00 06 1B 00 A8 F3 6B 13 FF A7 55 9E 90 00 4F [00:25:19]RAPDU: A8 F3 6B 13 FF A7 55 9E 90 00 [00:25:19]wFMCommunicate OK [00:25:19]SAM_PROTO_SignData done [00:25:19]FM_MakeSignedData done [00:25:19]CreateOFDProtocolMessage [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 11 00 00 [00:25:19]Write to MH i2c: E2 08 00 07 1B 80 11 00 00 00 00 00 00 9C [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 17 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 17 00 07 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [00:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:25:19]wFMCommunicate OK [00:25:19]CreateOFDProtocolMessage done [00:25:19]OFDSenderStorePacket 192450 [00:25:19]StoreOFDPacket docnum=192450 [00:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 52 07 01 B6 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 EF D9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EF 02 00 35 04 06 00 FB 0D 37 4F 75 4C A8 F3 6B 13 FF A7 55 9E [00:25:19]CheckFolder [00:25:19]dirname=/storage/ofd_packets [00:25:19]CheckFolder done [00:25:19]ProducePacketName [00:25:19]name=ofd_packets/00192450 [00:25:19]NVStorageSaveData ofd_packets/00192450 [00:25:19]File name is /storage/ofd_packets/00192450 [00:25:19]Write 301 bytes [00:25:19]NVStorageSaveData done [00:25:19]OFDSenderStorePacket done [00:25:19]KKMCreateOFDPacket done [00:25:19]NVStorageSaveData kkm_last_timestamp [00:25:19]File name is /storage/kkm_last_timestamp [00:25:19]Write 4 bytes [00:25:19]NVStorageSaveData done [00:25:19]ExternCall_PrintAddStr [00:25:19]wPrintStart [00:25:19]Write to MH i2c: 01 00 00 08 1B 23 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 07 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 07 00 08 1B 00 00 00 00 00 FF 0F 38 [00:25:19]RasterBufferAndPrint [00:25:19]line Счет N : (1)31767 [00:25:19]line ИНН: 02508201610067 [00:25:19]line Контрольно-Кассовый Чек [00:25:19]line ПРОДАЖА [00:25:19]line ТРК (МРК, ГНК) : 21 [00:25:19]line Товар: 2710124130 [00:25:19]line Аи-92-К-5 [00:25:19]line 4.490 * 66.90 [00:25:19]line = 300.38 [00:25:19]line НДС 12% НСП 1% [00:25:19]line > о реализуемом товаре [00:25:19]line ОКРУГЛЕНИЕ: -0.38 [00:25:19]line ИТОГО: 300.00 [00:25:19]line Внесено: 300.00 [00:25:19]line СДАЧА: 0.00 [00:25:19]line НСП 1% : 2.66 [00:25:19]line НДС 12% : 31.90 [00:25:19]line Наличными: 300.00 [00:25:19]line Безнал.: 0.00 [00:25:19]line Место: АЗС № 170 "Партнер Нефть" [00:25:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:25:19]line СНО: Общий режим [00:25:19]line Чек 482 28.10.2024 00:25 [00:25:19]line Смена: 542 ФФД: 1.0 [00:25:19]line ЗНМ: 0300000110 [00:25:19]line РНМ: 0000000000091776 [00:25:19]line Версия ККМ: 001 [00:25:19]line ФМ: 0000000000871754 [00:25:19]line ФД: 192450 [00:25:19]line ФПД: 276034181100876 [00:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T002519&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192450&fm=276034181100876&tin=02508201610067®Number=0000000000091776&sum=30000 [00:25:19]OFD Sender: Processing packet 192450 [packets to send 75, broken 74] [00:25:19]ProducePacketName [00:25:19]name=ofd_packets/00192450 [00:25:19]OFD Sender: To server: pG, [00:25:19]CommunicateWithHost lk.salyk.kg:30040 [00:25:19]ConnectInit lk.salyk.kg [00:25:19]written 0, free lines is 4095 [00:25:19]Connected sock=9 [00:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 52 07 01 B6 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 EF D9 1E 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EF 02 00 35 04 06 00 FB 0D 37 4F 75 4C A8 F3 6B 13 FF A7 55 9E [00:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 D8 47 00 50 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EF 02 00 F4 03 04 00 B5 7E 1E 67 B6 04 01 00 00 E2 DD BE 87 34 61 A9 84 [00:25:20]CommunicateWithHost err = 0 [00:25:20]CheckOFDResponse [00:25:20]1017 (14) - 77093643461234 [00:25:20]1041 (16) - 0000000000871754 [00:25:20]1040 (4) - 192450 [00:25:20]1012 (4) - 27.10.2024 17:56 [00:25:20]1206 (1) - 0 [00:25:20]OFD Sender: Remove packet 192450 [00:25:20]ProducePacketName [00:25:20]name=ofd_packets/00192450 [00:25:20]NVStorageDeleteData [00:25:20]Write to MH i2c: 01 00 00 33 1B 4E [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 A4 0C 05 [00:25:20]RasterBufferAndPrint [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]written 0, free lines is 3242 [00:25:20]MH_Cut [00:25:20]Write to MH i2c: D1 01 00 3A 1B 01 27 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 01 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 01 00 3A 1B 00 26 [00:25:20]Write to MH i2c: 01 00 00 3B 1B 56 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]OFD Sender: No OFD packet to send [00:25:20]*** Cut start [00:25:20]*** Partial cut [00:25:20]*** CUTSNS_PIN = 1 [00:25:20]*** CUTSNS_PIN = 0 [00:25:21]*** Brake cut motor [00:25:21]Read from MH i2c: 01 [00:25:21]MH_I2C_Read... [00:25:21]*** Stop cut motor [00:25:21]*** Cut end [00:25:21]Read from MH i2c: 01 07 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: 01 07 00 3B 1B 00 00 00 00 00 FF 0F 6B [00:25:21]process_action close_receipt done [00:25:21]requested_data is exist [00:25:21]produce_requested_data [00:25:21]requested_item fm.sn is exist - process it [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 11 00 00 [00:25:21]Write to MH i2c: E2 08 00 3C 1B 80 11 00 00 00 00 00 00 D1 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 17 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 17 00 3C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [00:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:25:21]wFMCommunicate OK [00:25:21]requested_item fd.num is exist - process it [00:25:21]SAM_PROTO_GetFieldsCounters [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 13 00 00 [00:25:21]Write to MH i2c: E2 08 00 3D 1B 80 13 00 00 00 00 00 00 D4 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 62 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 62 00 3D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [00:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:21]wFMCommunicate OK [00:25:21]SAM_PROTO_GetFieldsCounters done [00:25:21]requested_item shift.num is exist - process it [00:25:21]requested_item shift.opened is exist - process it [00:25:21]req_shift_opened [00:25:21]FM_GetShiftState [00:25:21]SAM_PROTO_GetShiftState [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 13 01 00 [00:25:21]Write to MH i2c: E2 08 00 3E 1B 80 13 01 00 00 00 00 00 D6 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 0E 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 0E 00 3E 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 17 [00:25:21]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:25:21]wFMCommunicate OK [00:25:21]SAM_PROTO_GetShiftState done [00:25:21]FM_GetShiftState done [00:25:21]req_shift_opened done [00:25:21]requested_item shift.open_date is exist - process it [00:25:21]req_shift_open_date [00:25:21]req_shift_open_date done [00:25:21]produce_requested_data done [00:25:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:25:21]process_action_free close_receipt [00:25:21]json_value_free [00:25:21]json_value_free done [00:25:21]process_json_proto returns [00:25:21]Send response to host [00:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:25:21]free response buf [00:25:21]execute_script done [00:25:21]execute_script returns [00:25:21]free content buf [00:25:21]Sock 7.Close socket [00:25:21]Sock 7.Thread stoped [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:38]accept exits with 10 [00:29:38]New connection [00:29:38]New thread 3066563940 created [00:29:38]Thread 3066707300 joined [00:29:38]Waiting for new connection... [00:29:38] Sock 10.Parse request [00:29:38]Sock 10.Check first char [00:29:38]Sock 10.First char is OK [00:29:38]request: POST /json_proto HTTP/1.0 [00:29:38]Method: POST [00:29:38]URL: /json_proto [00:29:38]Method is POST - this is cgi request [00:29:38]url: /json_proto [00:29:38]query_string will be loaded in cgi processing [00:29:38]execute_cgi json_proto POST (null) [00:29:38]execute_cgi path=json_proto method=POST [00:29:38]POST find Content-Length [00:29:38]Host: 172.17.63.131:8080 [00:29:38]Content-Length: 215 [00:29:38]Content-Type: application/json [00:29:38] [00:29:38]POST finish read [00:29:38]Found Content-Length = 215 [00:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:38]execute_script... [00:29:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:38]POST & json_proto [00:29:38]process_json_proto [00:29:38]json parsed OK: [00:29:38]protocol is kg_v1.0 [00:29:38]action value=get_value [00:29:38]process_action get_value [00:29:38]cmd_get_value [00:29:38]process_action get_value done [00:29:38]requested_data is exist [00:29:38]produce_requested_data [00:29:38]requested_item kkm.sn is exist - process it [00:29:38]requested_item kkm.ver is exist - process it [00:29:38]requested_item fm.sn is exist - process it [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 11 00 00 [00:29:38]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 17 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [00:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:29:38]wFMCommunicate OK [00:29:38]requested_item fd.num is exist - process it [00:29:38]SAM_PROTO_GetFieldsCounters [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 13 00 00 [00:29:38]Write to MH i2c: E2 08 00 40 1B 80 13 00 00 00 00 00 00 D7 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 62 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 62 00 40 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:29:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:38]wFMCommunicate OK [00:29:38]SAM_PROTO_GetFieldsCounters done [00:29:38]requested_item shift.num is exist - process it [00:29:38]requested_item shift.opened is exist - process it [00:29:38]req_shift_opened [00:29:38]FM_GetShiftState [00:29:38]SAM_PROTO_GetShiftState [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 13 01 00 [00:29:38]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 0E 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1A [00:29:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:29:38]wFMCommunicate OK [00:29:38]SAM_PROTO_GetShiftState done [00:29:38]FM_GetShiftState done [00:29:38]req_shift_opened done [00:29:38]requested_item shift.open_date is exist - process it [00:29:38]req_shift_open_date [00:29:38]req_shift_open_date done [00:29:38]produce_requested_data done [00:29:38]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:29:38]process_action_free get_value [00:29:38]json_value_free [00:29:38]json_value_free done [00:29:38]process_json_proto returns [00:29:38]Send response to host [00:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:29:38]free response buf [00:29:38]execute_script done [00:29:38]execute_script returns [00:29:38]free content buf [00:29:38]Sock 10.Close socket [00:29:38]Sock 10.Thread stoped [00:29:38]accept exits with 7 [00:29:38]New connection [00:29:38]New thread 3066707300 created [00:29:38]Thread 3066563940 joined [00:29:38]Waiting for new connection... [00:29:38] Sock 7.Parse request [00:29:38]Sock 7.Check first char [00:29:38]Sock 7.First char is OK [00:29:38]request: POST /json_proto HTTP/1.0 [00:29:38]Method: POST [00:29:38]URL: /json_proto [00:29:38]Method is POST - this is cgi request [00:29:38]url: /json_proto [00:29:38]query_string will be loaded in cgi processing [00:29:38]execute_cgi json_proto POST (null) [00:29:38]execute_cgi path=json_proto method=POST [00:29:38]POST find Content-Length [00:29:38]Host: 172.17.63.131:8080 [00:29:38]Content-Length: 331 [00:29:38]Content-Type: application/json [00:29:38] [00:29:38]POST finish read [00:29:38]Found Content-Length = 331 [00:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:38]execute_script... [00:29:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:39]POST & json_proto [00:29:39]process_json_proto [00:29:39]json parsed OK: [00:29:39]protocol is kg_v1.0 [00:29:39]action value=get_value [00:29:39]process_action get_value [00:29:39]cmd_get_value [00:29:39]process_action get_value done [00:29:39]requested_data is exist [00:29:39]produce_requested_data [00:29:39]requested_item fm.sale.total is exist - process it [00:29:39]SAM_PROTO_GetFMData [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 13 03 00 [00:29:39]Write to MH i2c: E2 08 00 42 1B 80 13 03 00 00 00 00 00 DC [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 42 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 1E [00:29:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 17 00 00 [00:29:39]Write to MH i2c: E2 08 00 43 1B 80 17 00 00 00 00 00 00 DE [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 FD 00 43 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 EF [00:29:39]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 17 00 00 [00:29:39]Write to MH i2c: E2 08 00 44 1B 80 17 00 00 00 00 00 00 DF [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 44 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 7F [00:29:40]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:40]wFMCommunicate OK [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 17 00 00 [00:29:40]Write to MH i2c: E2 08 00 45 1B 80 17 00 00 00 00 00 00 E0 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 FD 00 45 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 65 [00:29:40]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:40]wFMCommunicate OK [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 17 00 00 [00:29:40]Write to MH i2c: E2 08 00 46 1B 80 17 00 00 00 00 00 00 E1 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 DE 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 DE 00 46 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 [00:29:40]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:40]wFMCommunicate OK [00:29:40]SAM_PROTO_GetFMData done [00:29:40]requested_item fm.sale_refund.total is exist - process it [00:29:40]requested_item fm.buy.total is exist - process it [00:29:40]requested_item shift.sale.total is exist - process it [00:29:40]SAM_PROTO_GetShiftData [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 13 02 00 [00:29:40]Write to MH i2c: E2 08 00 47 1B 80 13 02 00 00 00 00 00 E0 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]OFD Sender: No OFD packet to send [00:29:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 47 1B 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 62 [00:29:41]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 48 1B 80 17 00 00 00 00 00 00 E3 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 48 1B 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 FC [00:29:41]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 49 1B 80 17 00 00 00 00 00 00 E4 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 49 1B 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 9D [00:29:41]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 4A 1B 80 17 00 00 00 00 00 00 E5 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 4A 1B 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5D [00:29:41]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 4B 1B 80 17 00 00 00 00 00 00 E6 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 CE 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 CE 00 4B 1B 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CB [00:29:42]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:42]wFMCommunicate OK [00:29:42]SAM_PROTO_GetShiftData done [00:29:42]requested_item shift.sale.total_cash is exist - process it [00:29:42]requested_item shift.sale_refund.total is exist - process it [00:29:42]requested_item shift.sale_refund.total_cash is exist - process it [00:29:42]requested_item shift.buy.total is exist - process it [00:29:42]requested_item shift.buy.total_cash is exist - process it [00:29:42]produce_requested_data done [00:29:42]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:42]process_action_free get_value [00:29:42]json_value_free [00:29:42]json_value_free done [00:29:42]process_json_proto returns [00:29:42]Send response to host [00:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:42]free response buf [00:29:42]execute_script done [00:29:42]execute_script returns [00:29:42]free content buf [00:29:42]Sock 7.Close socket [00:29:42]Sock 7.Thread stoped [00:29:42]accept exits with 9 [00:29:42]New connection [00:29:42]New thread 3066563940 created [00:29:42]Thread 3066707300 joined [00:29:42]Waiting for new connection... [00:29:42] Sock 9.Parse request [00:29:42]Sock 9.Check first char [00:29:42]Sock 9.First char is OK [00:29:42]request: POST /json_proto HTTP/1.0 [00:29:42]Method: POST [00:29:42]URL: /json_proto [00:29:42]Method is POST - this is cgi request [00:29:42]url: /json_proto [00:29:42]query_string will be loaded in cgi processing [00:29:42]execute_cgi json_proto POST (null) [00:29:42]execute_cgi path=json_proto method=POST [00:29:42]POST find Content-Length [00:29:42]Host: 172.17.63.131:8080 [00:29:42]Content-Length: 331 [00:29:42]Content-Type: application/json [00:29:42] [00:29:42]POST finish read [00:29:42]Found Content-Length = 331 [00:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:42]execute_script... [00:29:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:42]POST & json_proto [00:29:42]process_json_proto [00:29:42]json parsed OK: [00:29:42]protocol is kg_v1.0 [00:29:42]action value=get_value [00:29:42]process_action get_value [00:29:42]cmd_get_value [00:29:42]process_action get_value done [00:29:42]requested_data is exist [00:29:42]produce_requested_data [00:29:42]requested_item fm.sale.total is exist - process it [00:29:42]SAM_PROTO_GetFMData [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 13 03 00 [00:29:42]Write to MH i2c: E2 08 00 4C 1B 80 13 03 00 00 00 00 00 E6 [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 4C 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 28 [00:29:42]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 4D 1B 80 17 00 00 00 00 00 00 E8 [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:43]Read from MH i2c: E2 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 4D 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F9 [00:29:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:43]wFMCommunicate OK [00:29:43]wFMCommunicate request_size=4 [00:29:43]MH_SAM_APDU [00:29:43]CAPDU: 80 17 00 00 [00:29:43]Write to MH i2c: E2 08 00 4E 1B 80 17 00 00 00 00 00 00 E9 [00:29:43]Write i2c OK [00:29:43]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:43]Read from MH i2c: E2 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 4E 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 89 [00:29:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:43]wFMCommunicate OK [00:29:43]wFMCommunicate request_size=4 [00:29:43]MH_SAM_APDU [00:29:43]CAPDU: 80 17 00 00 [00:29:43]Write to MH i2c: E2 08 00 4F 1B 80 17 00 00 00 00 00 00 EA [00:29:43]Write i2c OK [00:29:43]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:43]Read from MH i2c: E2 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 4F 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 6F [00:29:43]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:43]wFMCommunicate OK [00:29:43]wFMCommunicate request_size=4 [00:29:43]MH_SAM_APDU [00:29:43]CAPDU: 80 17 00 00 [00:29:43]Write to MH i2c: E2 08 00 50 1B 80 17 00 00 00 00 00 00 EB [00:29:43]Write i2c OK [00:29:43]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 DE 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 DE 00 50 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:44]wFMCommunicate OK [00:29:44]SAM_PROTO_GetFMData done [00:29:44]requested_item fm.sale_refund.total is exist - process it [00:29:44]requested_item fm.buy.total is exist - process it [00:29:44]requested_item shift.sale.total is exist - process it [00:29:44]SAM_PROTO_GetShiftData [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 13 02 00 [00:29:44]Write to MH i2c: E2 08 00 51 1B 80 13 02 00 00 00 00 00 EA [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 51 1B 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6C [00:29:44]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:44]wFMCommunicate OK [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 17 00 00 [00:29:44]Write to MH i2c: E2 08 00 52 1B 80 17 00 00 00 00 00 00 ED [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 52 1B 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 06 [00:29:45]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=4 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 17 00 00 [00:29:45]Write to MH i2c: E2 08 00 53 1B 80 17 00 00 00 00 00 00 EE [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:45]Read from MH i2c: E2 FD 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 53 1B 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A7 [00:29:45]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=4 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 17 00 00 [00:29:45]Write to MH i2c: E2 08 00 54 1B 80 17 00 00 00 00 00 00 EF [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]OFD Sender: No OFD packet to send [00:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 FD 00 54 1B 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 67 [00:29:46]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:46]wFMCommunicate OK [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 17 00 00 [00:29:46]Write to MH i2c: E2 08 00 55 1B 80 17 00 00 00 00 00 00 F0 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 CE 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 CE 00 55 1B 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [00:29:46]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetShiftData done [00:29:46]requested_item shift.sale.total_cash is exist - process it [00:29:46]requested_item shift.sale_refund.total is exist - process it [00:29:46]requested_item shift.sale_refund.total_cash is exist - process it [00:29:46]requested_item shift.buy.total is exist - process it [00:29:46]requested_item shift.buy.total_cash is exist - process it [00:29:46]produce_requested_data done [00:29:46]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:46]process_action_free get_value [00:29:46]json_value_free [00:29:46]json_value_free done [00:29:46]process_json_proto returns [00:29:46]Send response to host [00:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:46]free response buf [00:29:46]execute_script done [00:29:46]execute_script returns [00:29:46]free content buf [00:29:46]Sock 9.Close socket [00:29:46]Sock 9.Thread stoped [00:29:46]accept exits with 7 [00:29:46]New connection [00:29:46]New thread 3066707300 created [00:29:46]Thread 3066563940 joined [00:29:46]Waiting for new connection... [00:29:46] Sock 7.Parse request [00:29:46]Sock 7.Check first char [00:29:46]Sock 7.First char is OK [00:29:46]request: POST /json_proto HTTP/1.0 [00:29:46]Method: POST [00:29:46]URL: /json_proto [00:29:46]Method is POST - this is cgi request [00:29:46]url: /json_proto [00:29:46]query_string will be loaded in cgi processing [00:29:46]execute_cgi json_proto POST (null) [00:29:46]execute_cgi path=json_proto method=POST [00:29:46]POST find Content-Length [00:29:46]Host: 172.17.63.131:8080 [00:29:46]Content-Length: 263 [00:29:46]Content-Type: application/json [00:29:46] [00:29:46]POST finish read [00:29:46]Found Content-Length = 263 [00:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:46]execute_script... [00:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:46]POST & json_proto [00:29:46]process_json_proto [00:29:46]json parsed OK: [00:29:46]protocol is kg_v1.0 [00:29:46]action value=x_report [00:29:46]process_action x_report [00:29:46]cmd_x_report [00:29:46]MH_GetDate [00:29:46]Write to MH i2c: F0 00 00 56 1B 60 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 09 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 09 00 56 1B 00 FC DA 1E 67 22 05 6E 64 BD [00:29:46]GetLastDocTimeStamp 1730075119 [00:29:46]current date 1730075388 [00:29:46]FM_GetShiftState [00:29:46]SAM_PROTO_GetShiftState [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 01 00 [00:29:46]Write to MH i2c: E2 08 00 57 1B 80 13 01 00 00 00 00 00 EF [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 0E 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 0E 00 57 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 30 [00:29:46]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetShiftState done [00:29:46]FM_GetShiftState done [00:29:46]KKMCreateXReportDocument [00:29:46]Load OK [00:29:46]Malloc new data [00:29:46]MH_GetDate [00:29:46]Write to MH i2c: F0 00 00 58 1B 62 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 09 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: F0 09 00 58 1B 00 FD DA 1E 67 22 05 6E 64 C0 [00:29:46]Malloc new data [00:29:46]Malloc new data [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 11 00 00 [00:29:46]Write to MH i2c: E2 08 00 59 1B 80 11 00 00 00 00 00 00 EE [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 17 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 17 00 59 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [00:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetFieldsCounters [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 00 00 [00:29:46]Write to MH i2c: E2 08 00 5A 1B 80 13 00 00 00 00 00 00 F1 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 62 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 62 00 5A 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:29:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetFieldsCounters done [00:29:46]Malloc new data [00:29:46]Malloc new data [00:29:46]Malloc new data [00:29:46]KKMCreateXReportDocument OK [00:29:46]KKMSetXReportData OK [00:29:46]KKMPrepareXReportFMData [00:29:46]SAM_PROTO_GetShiftData [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 02 00 [00:29:46]Write to MH i2c: E2 08 00 5B 1B 80 13 02 00 00 00 00 00 F4 [00:29:46]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 5B 1B 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 76 [00:29:47]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 5C 1B 80 17 00 00 00 00 00 00 F7 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 5C 1B 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 10 [00:29:48]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:48]wFMCommunicate OK [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 17 00 00 [00:29:48]Write to MH i2c: E2 08 00 5D 1B 80 17 00 00 00 00 00 00 F8 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 5D 1B 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [00:29:48]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:48]wFMCommunicate OK [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 17 00 00 [00:29:48]Write to MH i2c: E2 08 00 5E 1B 80 17 00 00 00 00 00 00 F9 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 5E 1B 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 71 [00:29:48]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:49]wFMCommunicate OK [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 17 00 00 [00:29:49]Write to MH i2c: E2 08 00 5F 1B 80 17 00 00 00 00 00 00 FA [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 CE 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 CE 00 5F 1B 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:29:49]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:49]wFMCommunicate OK [00:29:49]SAM_PROTO_GetShiftData done [00:29:49]1194 (1197) - счетчики итогов смены [00:29:49] 1134 (4) - 482 - количество чеков со всеми признаками расчетов [00:29:49] 1129 (158) - счетчики операций «приход» [00:29:49] 1135 (4) - 482 - количество чеков по признаку расчетов [00:29:49] 1201 (4) - 397519.97 - общая итоговая сумма в чеках [00:29:49] 1136 (4) - 371703.00 - итоговая сумма в чеках наличными [00:29:49] 1138 (3) - 25816.97 - итоговая сумма в чеках безналичными [00:29:49] 1024 (123) - суммы налогов [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 0% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1006 (12) - суммы НДС [00:29:49] 1010 (1) - 12% - код ставки НДС [00:29:49] 1011 (3) - 42229.37 - сумма НДС по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (12) - суммы НСП [00:29:49] 1014 (1) - 1% - код ставки НСП [00:29:49] 1015 (3) - 3519.03 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 2% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 3% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 5% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1130 (141) - счетчики операций «возврат прихода» [00:29:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:49] 1024 (117) - суммы налогов [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 0% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 12% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 2% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 3% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 5% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1131 (141) - счетчики операций «расход» [00:29:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:49] 1024 (117) - суммы налогов [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 0% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 12% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 2% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 3% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 5% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1132 (141) - счетчики операций «возврат расхода» [00:29:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:49] 1024 (117) - суммы налогов [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 0% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1006 (9) - суммы НДС [00:29:49] 1010 (1) - 12% - код ставки НДС [00:29:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 2% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 3% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 5% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 0,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1007 (9) - суммы НСП [00:29:49] 1014 (1) - 1,50% - код ставки НСП [00:29:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:49] 1133 (588) - - счетчики коррекции - не используются [00:29:49]SetTLVBufToDocument [00:29:49]Processing tag 1194 (04AA) [00:29:49]Load OK [00:29:49]SetTLVBufToDocument [00:29:49]Processing tag 1134 (046E) [00:29:49]Malloc new data [00:29:49]Processing tag 1129 (0469) [00:29:49]Load OK [00:29:49]SetTLVBufToDocument [00:29:49]Processing tag 1135 (046F) [00:29:49]Malloc new data [00:29:50]Processing tag 1201 (04B1) [00:29:50]Malloc new data [00:29:50]Processing tag 1136 (0470) [00:29:50]Malloc new data [00:29:50]Processing tag 1138 (0472) [00:29:50]Malloc new data [00:29:50]Processing tag 1024 (0400) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1130 (046A) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1135 (046F) [00:29:50]Malloc new data [00:29:50]Processing tag 1201 (04B1) [00:29:50]Malloc new data [00:29:50]Processing tag 1136 (0470) [00:29:50]Malloc new data [00:29:50]Processing tag 1138 (0472) [00:29:50]Malloc new data [00:29:50]Processing tag 1024 (0400) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1131 (046B) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1135 (046F) [00:29:50]Malloc new data [00:29:50]Processing tag 1201 (04B1) [00:29:50]Malloc new data [00:29:50]Processing tag 1136 (0470) [00:29:50]Malloc new data [00:29:50]Processing tag 1138 (0472) [00:29:50]Malloc new data [00:29:50]Processing tag 1024 (0400) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1132 (046C) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1135 (046F) [00:29:50]Malloc new data [00:29:50]Processing tag 1201 (04B1) [00:29:50]Malloc new data [00:29:50]Processing tag 1136 (0470) [00:29:50]Malloc new data [00:29:50]Processing tag 1138 (0472) [00:29:50]Malloc new data [00:29:50]Processing tag 1024 (0400) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1006 (03EE) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1010 (03F2) [00:29:50]Malloc new data [00:29:50]Processing tag 1011 (03F3) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1007 (03EF) [00:29:50]Load OK [00:29:50]SetTLVBufToDocument [00:29:50]Processing tag 1014 (03F6) [00:29:50]Malloc new data [00:29:50]Processing tag 1015 (03F7) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Processing tag 1133 (046D) [00:29:50]Malloc new data [00:29:50]SetTLVBufToDocument err=0 [00:29:50]SetTLVBufToDocument err=0 [00:29:50]Malloc new data [00:29:50]SAM_PROTO_GetFMData [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 13 03 00 [00:29:50]Write to MH i2c: E2 08 00 60 1B 80 13 03 00 00 00 00 00 FA [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 60 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 3C [00:29:51]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 OFD Sender: No OFD packet to send [00:29:51]00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 61 1B 80 17 00 00 00 00 00 00 FC [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 61 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 0D [00:29:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 62 1B 80 17 00 00 00 00 00 00 FD [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 62 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 9D [00:29:52]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:29:52]wFMCommunicate OK [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 17 00 00 [00:29:52]Write to MH i2c: E2 08 00 63 1B 80 17 00 00 00 00 00 00 FE [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 63 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 83 [00:29:52]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:29:52]wFMCommunicate OK [00:29:52]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 64 1B 80 17 00 00 00 00 00 00 FF [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 DE 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 DE 00 64 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DE [00:29:53]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:53]wFMCommunicate OK [00:29:53]SAM_PROTO_GetFMData done [00:29:53]FM_GetFMData:85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:54]oper:6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:54]total:44 79 29 B7 03 [00:29:54]Malloc new data [00:29:54]oper:6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:54]total:04 E9 2B [00:29:54]Malloc new data [00:29:54]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:29:54]total: [00:29:54]Malloc new data [00:29:54]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:29:54]total: [00:29:54]Malloc new data [00:29:54]KKMPrepareXReportFMData err=0 [00:29:54]Х отчет ИНН: 02508201610067 Кассир: Тухтабаев Ж. 28.10.2024 00:29 Смена: 522 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Всего чеков: 482 ИТОГИ ПРИХОД Чеков: 482 Общий итог: 397519.97 Итого наличными: 371703.00 Итого безнал.: 25816.97 НДС 0% : 0.00 НДС 12% : 42229.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3519.03 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 371703.00 НС Приход: 159578504.36 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871754 [00:29:54]StoreToDocumentArchive [00:29:54]MH_GetDate [00:29:54]Write to MH i2c: F0 00 00 65 1B 6F [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 65 1B 00 05 DB 1E 67 22 05 6E 64 D6 [00:29:54]shift 522 fd 1730075397 [00:29:54]Create dir for shift 0522 [00:29:54]save to /storage/0522/doc_1730075397 [00:29:54]save last doc name /storage/0522/doc_1730075397 to /storage/kkm_last_doc_name [00:29:54]save OK [00:29:54]Clear old archive folders... [00:29:54]NVStorageSaveData kkm_last_timestamp [00:29:54]File name is /storage/kkm_last_timestamp [00:29:54]Write 4 bytes [00:29:54]NVStorageSaveData done [00:29:54]ExternCall_PrintAddStr [00:29:54]wPrintStart [00:29:54]Write to MH i2c: 01 00 00 66 1B 81 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: 01 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: 01 07 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: 01 07 00 66 1B 00 00 00 00 00 FF 0F 96 [00:29:54]RasterBufferAndPrint [00:29:54]line Х отчет [00:29:54]line ИНН: 02508201610067 [00:29:54]line Кассир: Тухтабаев Ж. [00:29:54]line 28.10.2024 00:29 [00:29:54]line Смена: 522 [00:29:54]line РНМ: 0000000000091776 [00:29:54]line ЗНМ: 0300000110 [00:29:54]line СНО: Общий режим [00:29:54]line Всего чеков: 482 [00:29:54]line ИТОГИ ПРИХОД [00:29:54]line Чеков: 482 [00:29:54]line Общий итог: 397519.97 [00:29:54]line Итого наличными: 371703.00 [00:29:54]line Итого безнал.: 25816.97 [00:29:54]line НДС 0% : 0.00 [00:29:54]line НДС 12% : 42229.37 [00:29:54]line НСП 0% : 0.00 [00:29:54]line НСП 1,50% : 0.00 [00:29:54]line НСП 0,50% : 0.00 [00:29:54]line НСП 5% : 0.00 [00:29:54]line НСП 3% : 0.00 [00:29:54]line НСП 2% : 0.00 [00:29:54]line НСП 1% : 3519.03 [00:29:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:29:54]line Чеков: 0 [00:29:54]line Общий итог: 0.00 [00:29:54]line Итого наличными: 0.00 [00:29:54]line Итого безнал.: 0.00 [00:29:54]line НДС 0% : 0.00 [00:29:54]line НДС 12% : 0.00 [00:29:54]line НСП 0% : 0.00 [00:29:54]line НСП 1,50% : 0.00 [00:29:54]line НСП 0,50% : 0.00 [00:29:54]line НСП 5% : 0.00 [00:29:54]line НСП 3% : 0.00 [00:29:54]line НСП 2% : 0.00 [00:29:54]line НСП 1% : 0.00 [00:29:54]line ИТОГИ РАСХОД [00:29:54]line Чеков: 0 [00:29:54]line Общий итог: 0.00 [00:29:54]line Итого наличными: 0.00 [00:29:54]line Итого безнал.: 0.00 [00:29:54]line НДС 0% : 0.00 [00:29:54]line НДС 12% : 0.00 [00:29:54]line НСП 0% : 0.00 [00:29:54]line НСП 1,50% : 0.00 [00:29:54]line НСП 0,50% : 0.00 [00:29:54]line НСП 5% : 0.00 [00:29:54]line НСП 3% : 0.00 [00:29:54]line НСП 2% : 0.00 [00:29:54]line НСП 1% : 0.00 [00:29:54]line ИТОГИ ВОЗВРАТ РАСХОДА [00:29:54]line Чеков: 0 [00:29:54]line Общий итог: 0.00 [00:29:54]line Итого наличными: 0.00 [00:29:54]line Итого безнал.: 0.00 [00:29:54]line НДС 0% : 0.00 [00:29:54]line НДС 12% : 0.00 [00:29:54]line НСП 0% : 0.00 [00:29:54]line НСП 1,50% : 0.00 [00:29:54]line НСП 0,50% : 0.00 [00:29:54]line НСП 5% : 0.00 [00:29:54]line НСП 3% : 0.00 [00:29:54]line НСП 2% : 0.00 [00:29:54]line НСП 1% : 0.00 [00:29:54]line Сумма внесений: 0.00 [00:29:54]line Сумма выплат: 0.00 [00:29:54]line Нал. в кассе: 371703.00 [00:29:54]line НС Приход: 159578504.36 [00:29:54]line НС Возвр.Прихода: 28777.00 [00:29:54]line НС Расход: 0.00 [00:29:54]line НС Возвр.Расхода: 0.00 [00:29:54]line ФМ: 0000000000871754 [00:29:54]written 0, free lines is 4095 [00:29:55]Write to MH i2c: 01 00 00 B1 1B CC [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 07 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 07 00 B1 1B 00 00 00 00 00 8D 0A 6A [00:29:55]RasterBufferAndPrint [00:29:55]line [00:29:55]line [00:29:55]line [00:29:55]line [00:29:55]line [00:29:55]written 0, free lines is 2730 [00:29:55]MH_Cut [00:29:55]Write to MH i2c: D1 01 00 B8 1B 01 A5 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: D1 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: D1 01 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: D1 01 00 B8 1B 00 A4 [00:29:55]Write to MH i2c: 01 00 00 B9 1B D4 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:56]OFD Sender: No OFD packet to send [00:29:56]*** Cut start [00:29:56]*** Partial cut [00:29:56]*** CUTSNS_PIN = 1 [00:29:56]*** CUTSNS_PIN = 0 [00:29:57]*** Brake cut motor [00:29:57]Read from MH i2c: 01 [00:29:57]MH_I2C_Read... [00:29:57]*** Stop cut motor [00:29:57]*** Cut end [00:29:57]Read from MH i2c: 01 07 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: 01 07 00 B9 1B 00 00 00 00 00 FF 0F E9 [00:29:57]process_action x_report done [00:29:57]requested_data is exist [00:29:57]produce_requested_data [00:29:57]requested_item fd.num is exist - process it [00:29:57]SAM_PROTO_GetFieldsCounters [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 13 00 00 [00:29:57]Write to MH i2c: E2 08 00 BA 1B 80 13 00 00 00 00 00 00 51 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 62 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 62 00 BA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:29:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:57]wFMCommunicate OK [00:29:57]SAM_PROTO_GetFieldsCounters done [00:29:57]requested_item shift.num is exist - process it [00:29:57]requested_item shift.opened is exist - process it [00:29:57]req_shift_opened [00:29:57]FM_GetShiftState [00:29:57]SAM_PROTO_GetShiftState [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 13 01 00 [00:29:57]Write to MH i2c: E2 08 00 BB 1B 80 13 01 00 00 00 00 00 53 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 0E 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 0E 00 BB 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 94 [00:29:57]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:29:57]wFMCommunicate OK [00:29:57]SAM_PROTO_GetShiftState done [00:29:57]FM_GetShiftState done [00:29:57]req_shift_opened done [00:29:57]requested_item shift.open_date is exist - process it [00:29:57]req_shift_open_date [00:29:57]req_shift_open_date done [00:29:57]produce_requested_data done [00:29:57]produce_requested_data return {"fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:29:57]process_action_free x_report [00:29:57]json_value_free [00:29:57]json_value_free done [00:29:57]process_json_proto returns [00:29:57]Send response to host [00:29:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:29:57]free response buf [00:29:57]execute_script done [00:29:57]execute_script returns [00:29:57]free content buf [00:29:57]Sock 7.Close socket [00:29:57]Sock 7.Thread stoped [00:30:00]accept exits with 9 [00:30:00]New connection [00:30:00]New thread 3066563940 created [00:30:00]Thread 3066707300 joined [00:30:00]Waiting for new connection... [00:30:00] Sock 9.Parse request [00:30:00]Sock 9.Check first char [00:30:00]Sock 9.First char is OK [00:30:00]request: POST /json_proto HTTP/1.0 [00:30:00]Method: POST [00:30:00]URL: /json_proto [00:30:00]Method is POST - this is cgi request [00:30:00]url: /json_proto [00:30:00]query_string will be loaded in cgi processing [00:30:00]execute_cgi json_proto POST (null) [00:30:00]execute_cgi path=json_proto method=POST [00:30:00]POST find Content-Length [00:30:00]Host: 172.17.63.131:8080 [00:30:00]Content-Length: 215 [00:30:00]Content-Type: application/json [00:30:00] [00:30:00]POST finish read [00:30:00]Found Content-Length = 215 [00:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:00]execute_script... [00:30:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:00]POST & json_proto [00:30:00]process_json_proto [00:30:00]json parsed OK: [00:30:00]protocol is kg_v1.0 [00:30:00]action value=get_value [00:30:00]process_action get_value [00:30:00]cmd_get_value [00:30:00]process_action get_value done [00:30:00]requested_data is exist [00:30:00]produce_requested_data [00:30:00]requested_item kkm.sn is exist - process it [00:30:00]requested_item kkm.ver is exist - process it [00:30:00]requested_item fm.sn is exist - process it [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 11 00 00 [00:30:00]Write to MH i2c: E2 08 00 BC 1B 80 11 00 00 00 00 00 00 51 [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 17 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 17 00 BC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [00:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:01]wFMCommunicate OK [00:30:01]requested_item fd.num is exist - process it [00:30:01]SAM_PROTO_GetFieldsCounters [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 13 00 00 [00:30:01]Write to MH i2c: E2 08 00 BD 1B 80 13 00 00 00 00 00 00 54 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 62 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 62 00 BD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:01]wFMCommunicate OK [00:30:01]SAM_PROTO_GetFieldsCounters done [00:30:01]requested_item shift.num is exist - process it [00:30:01]requested_item shift.opened is exist - process it [00:30:01]req_shift_opened [00:30:01]FM_GetShiftState [00:30:01]SAM_PROTO_GetShiftState [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 13 01 00 [00:30:01]Write to MH i2c: E2 08 00 BE 1B 80 13 01 00 00 00 00 00 56 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]OFD Sender: No OFD packet to send [00:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 0E 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 0E 00 BE 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 97 [00:30:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:30:01]wFMCommunicate OK [00:30:01]SAM_PROTO_GetShiftState done [00:30:01]FM_GetShiftState done [00:30:01]req_shift_opened done [00:30:01]requested_item shift.open_date is exist - process it [00:30:01]req_shift_open_date [00:30:01]req_shift_open_date done [00:30:01]produce_requested_data done [00:30:01]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:30:01]process_action_free get_value [00:30:01]json_value_free [00:30:01]json_value_free done [00:30:01]process_json_proto returns [00:30:01]Send response to host [00:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192450,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:30:01]free response buf [00:30:01]execute_script done [00:30:01]execute_script returns [00:30:01]free content buf [00:30:01]Sock 9.Close socket [00:30:01]Sock 9.Thread stoped [00:30:01]accept exits with 7 [00:30:01]New connection [00:30:01]New thread 3066707300 created [00:30:01]Thread 3066563940 joined [00:30:01]Waiting for new connection... [00:30:01] Sock 7.Parse request [00:30:01]Sock 7.Check first char [00:30:01]Sock 7.First char is OK [00:30:01]request: POST /json_proto HTTP/1.0 [00:30:01]Method: POST [00:30:01]URL: /json_proto [00:30:01]Method is POST - this is cgi request [00:30:01]url: /json_proto [00:30:01]query_string will be loaded in cgi processing [00:30:01]execute_cgi json_proto POST (null) [00:30:01]execute_cgi path=json_proto method=POST [00:30:01]POST find Content-Length [00:30:01]Host: 172.17.63.131:8080 [00:30:01]Content-Length: 331 [00:30:01]Content-Type: application/json [00:30:01] [00:30:01]POST finish read [00:30:01]Found Content-Length = 331 [00:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:01]execute_script... [00:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:01]POST & json_proto [00:30:01]process_json_proto [00:30:01]json parsed OK: [00:30:01]protocol is kg_v1.0 [00:30:01]action value=get_value [00:30:01]process_action get_value [00:30:01]cmd_get_value [00:30:01]process_action get_value done [00:30:01]requested_data is exist [00:30:01]produce_requested_data [00:30:01]requested_item fm.sale.total is exist - process it [00:30:01]SAM_PROTO_GetFMData [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 13 03 00 [00:30:01]Write to MH i2c: E2 08 00 BF 1B 80 13 03 00 00 00 00 00 59 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 BF 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 9B [00:30:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 C0 1B 80 17 00 00 00 00 00 00 5B [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 FD 00 C0 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 6C [00:30:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 17 00 00 [00:30:02]Write to MH i2c: E2 08 00 C1 1B 80 17 00 00 00 00 00 00 5C [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 C1 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 FC [00:30:03]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 C2 1B 80 17 00 00 00 00 00 00 5D [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 C2 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 E2 [00:30:03]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 C3 1B 80 17 00 00 00 00 00 00 5E [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 DE 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 DE 00 C3 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [00:30:04]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_GetFMData done [00:30:04]requested_item fm.sale_refund.total is exist - process it [00:30:04]requested_item fm.buy.total is exist - process it [00:30:04]requested_item shift.sale.total is exist - process it [00:30:04]SAM_PROTO_GetShiftData [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 13 02 00 [00:30:04]Write to MH i2c: E2 08 00 C4 1B 80 13 02 00 00 00 00 00 5D [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 C4 1B 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 DF [00:30:05]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 C5 1B 80 17 00 00 00 00 00 00 60 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 C5 1B 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 79 [00:30:05]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 C6 1B 80 17 00 00 00 00 00 00 61 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 C6 1B 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1A [00:30:06]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 C7 1B 80 17 00 00 00 OFD Sender: No OFD packet to send [00:30:06]00 00 00 62 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 C7 1B 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 DA [00:30:06]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 C8 1B 80 17 00 00 00 00 00 00 63 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 CE 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 CE 00 C8 1B 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 48 [00:30:07]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetShiftData done [00:30:07]requested_item shift.sale.total_cash is exist - process it [00:30:07]requested_item shift.sale_refund.total is exist - process it [00:30:07]requested_item shift.sale_refund.total_cash is exist - process it [00:30:07]requested_item shift.buy.total is exist - process it [00:30:07]requested_item shift.buy.total_cash is exist - process it [00:30:07]produce_requested_data done [00:30:07]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:07]process_action_free get_value [00:30:07]json_value_free [00:30:07]json_value_free done [00:30:07]process_json_proto returns [00:30:07]Send response to host [00:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:07]free response buf [00:30:07]execute_script done [00:30:07]execute_script returns [00:30:07]free content buf [00:30:07]Sock 7.Close socket [00:30:07]Sock 7.Thread stoped [00:30:07]accept exits with 9 [00:30:07]New connection [00:30:07]New thread 3066563940 created [00:30:07]Thread 3066707300 joined [00:30:07]Waiting for new connection... [00:30:07] Sock 9.Parse request [00:30:07]Sock 9.Check first char [00:30:07]Sock 9.First char is OK [00:30:07]request: POST /json_proto HTTP/1.0 [00:30:07]Method: POST [00:30:07]URL: /json_proto [00:30:07]Method is POST - this is cgi request [00:30:07]url: /json_proto [00:30:07]query_string will be loaded in cgi processing [00:30:07]execute_cgi json_proto POST (null) [00:30:07]execute_cgi path=json_proto method=POST [00:30:07]POST find Content-Length [00:30:07]Host: 172.17.63.131:8080 [00:30:07]Content-Length: 331 [00:30:07]Content-Type: application/json [00:30:07] [00:30:07]POST finish read [00:30:07]Found Content-Length = 331 [00:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:07]execute_script... [00:30:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:07]POST & json_proto [00:30:07]process_json_proto [00:30:07]json parsed OK: [00:30:07]protocol is kg_v1.0 [00:30:07]action value=get_value [00:30:07]process_action get_value [00:30:07]cmd_get_value [00:30:07]process_action get_value done [00:30:07]requested_data is exist [00:30:07]produce_requested_data [00:30:07]requested_item fm.sale.total is exist - process it [00:30:07]SAM_PROTO_GetFMData [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 13 03 00 [00:30:07]Write to MH i2c: E2 08 00 C9 1B 80 13 03 00 00 00 00 00 63 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 C9 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 A5 [00:30:08]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 CA 1B 80 17 00 00 00 00 00 00 65 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 CA 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 76 [00:30:09]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 CB 1B 80 17 00 00 00 00 00 00 66 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 CB 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 06 [00:30:09]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 CC 1B 80 17 00 00 00 00 00 00 67 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 CC 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 EC [00:30:10]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 CD 1B 80 17 00 00 00 00 00 00 68 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 DE 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 DE 00 CD 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 47 [00:30:10]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:11]wFMCommunicate OK [00:30:11]SAM_PROTO_GetFMData done [00:30:11]requested_item fm.sale_refund.total is exist - process it [00:30:11]requested_item fm.buy.total is exist - process it [00:30:11]requested_item shift.sale.total is exist - process it [00:30:11]SAM_PROTO_GetShiftData [00:30:11]wFMCommunicate request_size=4 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 13 02 00 [00:30:11]Write to MH i2c: E2 08 00 CE 1B 80 13 02 00 00 00 00 00 67 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 FD 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 FD 00 CE 1B 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 OFD Sender: No OFD packet to send [00:30:11]00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E9 [00:30:11]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=4 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 17 00 00 [00:30:11]Write to MH i2c: E2 08 00 CF 1B 80 17 00 00 00 00 00 00 6A [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 CF 1B 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 83 [00:30:12]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:12]wFMCommunicate OK [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 17 00 00 [00:30:12]Write to MH i2c: E2 08 00 D0 1B 80 17 00 00 00 00 00 00 6B [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 D0 1B 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 24 [00:30:13]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 D1 1B 80 17 00 00 00 00 00 00 6C [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 FD 00 D1 1B 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E4 [00:30:13]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 D2 1B 80 17 00 00 00 00 00 00 6D [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 CE 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 CE 00 D2 1B 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [00:30:14]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_GetShiftData done [00:30:14]requested_item shift.sale.total_cash is exist - process it [00:30:14]requested_item shift.sale_refund.total is exist - process it [00:30:14]requested_item shift.sale_refund.total_cash is exist - process it [00:30:14]requested_item shift.buy.total is exist - process it [00:30:14]requested_item shift.buy.total_cash is exist - process it [00:30:14]produce_requested_data done [00:30:14]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:14]process_action_free get_value [00:30:14]json_value_free [00:30:14]json_value_free done [00:30:14]process_json_proto returns [00:30:14]Send response to host [00:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:14]free response buf [00:30:14]execute_script done [00:30:14]execute_script returns [00:30:14]free content buf [00:30:14]Sock 9.Close socket [00:30:14]Sock 9.Thread stoped [00:30:14]accept exits with 7 [00:30:14]New connection [00:30:14]New thread 3066707300 created [00:30:14]Thread 3066563940 joined [00:30:14]Waiting for new connection... [00:30:14] Sock 7.Parse request [00:30:14]Sock 7.Check first char [00:30:14]Sock 7.First char is OK [00:30:14]request: POST /json_proto HTTP/1.0 [00:30:14]Method: POST [00:30:14]URL: /json_proto [00:30:14]Method is POST - this is cgi request [00:30:14]url: /json_proto [00:30:14]query_string will be loaded in cgi processing [00:30:14]execute_cgi json_proto POST (null) [00:30:14]execute_cgi path=json_proto method=POST [00:30:14]POST find Content-Length [00:30:14]Host: 172.17.63.131:8080 [00:30:14]Content-Length: 266 [00:30:14]Content-Type: application/json [00:30:14] [00:30:14]POST finish read [00:30:14]Found Content-Length = 266 [00:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:14]execute_script... [00:30:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:14]POST & json_proto [00:30:14]process_json_proto [00:30:14]json parsed OK: [00:30:14]protocol is kg_v1.0 [00:30:14]action value=close_shift [00:30:14]process_action close_shift [00:30:14]cmd_close_shift [00:30:14]MH_GetDate [00:30:14]Write to MH i2c: F0 00 00 D3 1B DD [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 09 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 09 00 D3 1B 00 18 DB 1E 67 22 05 6E 64 57 [00:30:14]GetLastDocTimeStamp 1730075389 [00:30:14]current date 1730075416 [00:30:14]FM_GetShiftState [00:30:14]SAM_PROTO_GetShiftState [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 13 01 00 [00:30:14]Write to MH i2c: E2 08 00 D4 1B 80 13 01 00 00 00 00 00 6C [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0E 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0E 00 D4 1B 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 AD [00:30:14]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_GetShiftState done [00:30:14]FM_GetShiftState done [00:30:14]KKMCreateCloseShiftDocument [00:30:14]Load OK [00:30:14]Malloc new data [00:30:14]MH_GetDate [00:30:14]Write to MH i2c: F0 00 00 D5 1B DF [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 09 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: F0 09 00 D5 1B 00 19 DB 1E 67 22 05 6E 64 5A [00:30:14]Malloc new data [00:30:14]Malloc new data [00:30:14]Malloc new data [00:30:14]Malloc new data [00:30:14]KKMCreateCloseShiftDocument OK [00:30:14]KKMSetCloseShiftData OK [00:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:30:14]tlvbuf is 01AF33B0 [00:30:14]KKMLoadAndSignCloseShiftData [00:30:14]SAM_PROTO_ProcessDocument [00:30:14]wFMCommunicate request_size=9 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 15 01 00 04 05 00 49 00 [00:30:14]Write to MH i2c: E2 0C 00 D6 1B 80 15 01 00 04 00 05 00 49 00 00 00 C6 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [00:30:14]RAPDU: 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=23 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:30:14]Write to MH i2c: E2 1A 00 D7 1B 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 67 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [00:30:15]RAPDU: 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=32 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 [00:30:15]Write to MH i2c: E2 23 00 D8 1B 80 15 02 00 1B 00 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 00 00 8B [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [00:30:15]RAPDU: 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=13 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 15 02 00 08 F4 03 04 00 19 DB 1E 67 [00:30:15]Write to MH i2c: E2 10 00 D9 1B 80 15 02 00 08 00 F4 03 04 00 19 DB 1E 67 00 00 F8 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [00:30:15]RAPDU: 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=25 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:30:15]Write to MH i2c: E2 1C 00 DA 1B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 DC [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [00:30:15]RAPDU: 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 15 03 00 [00:30:15]Write to MH i2c: E2 08 00 DB 1B 80 15 03 00 00 00 00 00 77 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 DB 1B 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 28 [00:30:16]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:30:16]wFMCommunicate OK [00:30:16]SAM_PROTO_ProcessDocument answer len = 1268 [00:30:16]SAM_PROTO_ProcessDocument remain to read = 1020 [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 17 00 00 [00:30:16]Write to MH i2c: E2 08 00 DC 1B 80 17 00 00 00 00 00 00 77 [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 DC 1B 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [00:30:16]09 90 00 CB [00:30:16]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:30:17]wFMCommunicate OK [00:30:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:17]SAM_PROTO_ProcessDocument remain to read = 770 [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 DD 1B 80 17 00 00 00 00 00 00 78 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 DD 1B 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 DA [00:30:17]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:30:17]wFMCommunicate OK [00:30:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:17]SAM_PROTO_ProcessDocument remain to read = 520 [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 DE 1B 80 17 00 00 00 00 00 00 79 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 DE 1B 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 01 [00:30:18]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:18]SAM_PROTO_ProcessDocument remain to read = 270 [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 DF 1B 80 17 00 00 00 00 00 00 7A [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 DF 1B 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 44 [00:30:19]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:19]SAM_PROTO_ProcessDocument remain to read = 20 [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 E0 1B 80 17 00 00 00 00 00 00 7B [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 17 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 17 00 E0 1B 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F5 7F 5E 1E 31 A9 90 00 86 [00:30:19]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F5 7F 5E 1E 31 A9 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:30:19]SAM_PROTO_ProcessDocument done [00:30:19]1209 (1) - 1.0 - номер версии ФФД [00:30:19]1041 (16) - 0000000000871754 - номер ФМ [00:30:19]1040 (4) - 192451 - номер ФД [00:30:19]1038 (4) - 542 - номер смены [00:30:19]1118 (4) - 482 - количество кассовых чеков за смену [00:30:19]1111 (4) - 484 - общее количество ФД за смену [00:30:19]1194 (1197) - счетчики итогов смены [00:30:19] 1134 (4) - 482 - количество чеков со всеми признаками расчетов [00:30:19] 1129 (158) - счетчики операций «приход» [00:30:19] 1135 (4) - 482 - количество чеков по признаку расчетов [00:30:19] 1201 (4) - 397519.97 - общая итоговая сумма в чеках [00:30:19] 1136 (4) - 371703.00 - итоговая сумма в чеках наличными [00:30:19] 1138 (3) - 25816.97 - итоговая сумма в чеках безналичными [00:30:19] 1024 (123) - суммы налогов [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 0% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1006 (12) - суммы НДС [00:30:19] 1010 (1) - 12% - код ставки НДС [00:30:19] 1011 (3) - 42229.37 - сумма НДС по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (12) - суммы НСП [00:30:19] 1014 (1) - 1% - код ставки НСП [00:30:19] 1015 (3) - 3519.03 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 2% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 3% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 5% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1130 (141) - счетчики операций «возврат прихода» [00:30:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:19] 1024 (117) - суммы налогов [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 0% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 12% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 2% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 3% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 5% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1131 (141) - счетчики операций «расход» [00:30:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:19] 1024 (117) - суммы налогов [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 0% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 12% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 2% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 3% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 5% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1,50% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1132 (141) - счетчики операций «возврат расхода» [00:30:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:19] 1024 (117) - суммы налогов [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 0% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1006 (9) - суммы НДС [00:30:19] 1010 (1) - 12% - код ставки НДС [00:30:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 0% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 1% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 2% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 3% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:19] 1014 (1) - 5% - код ставки НСП [00:30:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:19] 1007 (9) - суммы НСП [00:30:20] 1014 (1) - 0,50% - код ставки НСП [00:30:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:20] 1007 (9) - суммы НСП [00:30:20] 1014 (1) - 1,50% - код ставки НСП [00:30:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:20] 1133 (588) - - счетчики коррекции - не используются [00:30:20]1077 (6) - 269927388688809 - ФПД [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1209 (04B9) [00:30:20]Malloc new data [00:30:20]Processing tag 1041 (0411) [00:30:20]Processing tag 1040 (0410) [00:30:20]Malloc new data [00:30:20]Processing tag 1038 (040E) [00:30:20]Malloc new data [00:30:20]Processing tag 1118 (045E) [00:30:20]Malloc new data [00:30:20]Processing tag 1111 (0457) [00:30:20]Malloc new data [00:30:20]Processing tag 1194 (04AA) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1134 (046E) [00:30:20]Malloc new data [00:30:20]Processing tag 1129 (0469) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1135 (046F) [00:30:20]Malloc new data [00:30:20]Processing tag 1201 (04B1) [00:30:20]Malloc new data [00:30:20]Processing tag 1136 (0470) [00:30:20]Malloc new data [00:30:20]Processing tag 1138 (0472) [00:30:20]Malloc new data [00:30:20]Processing tag 1024 (0400) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1130 (046A) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1135 (046F) [00:30:20]Malloc new data [00:30:20]Processing tag 1201 (04B1) [00:30:20]Malloc new data [00:30:20]Processing tag 1136 (0470) [00:30:20]Malloc new data [00:30:20]Processing tag 1138 (0472) [00:30:20]Malloc new data [00:30:20]Processing tag 1024 (0400) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1131 (046B) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1135 (046F) [00:30:20]Malloc new data [00:30:20]Processing tag 1201 (04B1) [00:30:20]Malloc new data [00:30:20]Processing tag 1136 (0470) [00:30:20]Malloc new data [00:30:20]Processing tag 1138 (0472) [00:30:20]Malloc new data [00:30:20]Processing tag 1024 (0400) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1132 (046C) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1135 (046F) [00:30:20]Malloc new data [00:30:20]Processing tag 1201 (04B1) [00:30:20]Malloc new data [00:30:20]Processing tag 1136 (0470) [00:30:20]Malloc new data [00:30:20]Processing tag 1138 (0472) [00:30:20]Malloc new data [00:30:20]Processing tag 1024 (0400) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1006 (03EE) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1010 (03F2) [00:30:20]Malloc new data [00:30:20]Processing tag 1011 (03F3) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1007 (03EF) [00:30:20]Load OK [00:30:20]SetTLVBufToDocument [00:30:20]Processing tag 1014 (03F6) [00:30:20]Malloc new data [00:30:20]Processing tag 1015 (03F7) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1133 (046D) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Processing tag 1077 (0435) [00:30:20]Malloc new data [00:30:20]SetTLVBufToDocument err=0 [00:30:20]Malloc new data [00:30:20]SAM_PROTO_GetFMData [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 13 03 00 [00:30:20]Write to MH i2c: E2 08 00 E1 1B 80 13 03 00 00 00 00 00 7B [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 E1 1B 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 BD [00:30:21]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 17 00 00 [00:30:21]Write to MH i2c: E2 08 00 E2 1B 80 17 00 00 00 00 00 00 7D [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 E2 1B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 8E [00:30:21]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:30:22]F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:30:22]wFMCommunicate OK [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 E3 1B 80 17 00 00 00 00 00 00 7E [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:22]Read from MH i2c: E2 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 E3 1B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 1E [00:30:22]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:30:22]wFMCommunicate OK [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 E4 1B 80 17 00 00 00 00 00 00 7F [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 E4 1B 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 04 [00:30:23]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:23]wFMCommunicate OK [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 17 00 00 [00:30:23]Write to MH i2c: E2 08 00 E5 1B 80 17 00 00 00 00 00 00 80 [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 DE 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 DE 00 E5 1B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [00:30:24]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetFMData done [00:30:24]Malloc new data [00:30:24]Malloc new data [00:30:24]Malloc new data [00:30:24]Malloc new data [00:30:24]KKMLoadAndSignCloseShiftData err=0 [00:30:24]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Тухтабаев Ж. 28.10.2024 00:30 Смена: 542 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Чеков за смену: 482 ФД за смену: 484 Всего чеков: 482 ИТОГИ ПРИХОД Чеков: 482 Общий итог: 397519.97 Итого наличными: 371703.00 Итого безнал.: 25816.97 НДС 0% : 0.00 НДС 12% : 42229.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3519.03 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 371703.00 НС Приход: 159578504.36 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 192451 ФМ: 0000000000871754 ФПД: 269927388688809 [00:30:24]StoreToDocumentArchive [00:30:24]shift 542 fd 192451 [00:30:24]save to /storage/0542/doc_00192451 [00:30:24]save last doc name /storage/0542/doc_00192451 to /storage/kkm_last_doc_name [00:30:24]save OK [00:30:24]Clear old archive folders... [00:30:24]Remove dir /storage/0522 [00:30:24]opendir ok [00:30:24]file . [00:30:24]file .. [00:30:24]file doc_1730075397 [00:30:24]remove file /storage/0522/doc_1730075397 [00:30:24]remove dir /storage/0522 [00:30:24]NVStorageSaveData kkm_registers [00:30:24]File name is /storage/kkm_registers [00:30:24]Write 24 bytes [00:30:24]NVStorageSaveData done [00:30:24]NVStorageSaveData kkm_registers [00:30:24]File name is /storage/kkm_registers [00:30:24]Write 24 bytes [00:30:24]NVStorageSaveData done [00:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [00:30:24]tlvbuf is 01B331F0 [00:30:24]SAM_PROTO_ClearQueue [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 09 00 00 [00:30:24]Write to MH i2c: E2 08 00 E6 1B 80 09 00 00 00 00 00 00 73 [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 03 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [00:30:24]RAPDU: 90 00 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_ClearQueue done [00:30:24]KKMCreateOFDPacket [00:30:24]OFDProtocolAddRootSTLVToBuf [00:30:24]FM_MakeSignedData [00:30:24]FM_MakeSignedData [00:30:24]SAM_PROTO_SignData [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 0D 01 02 [00:30:24]Write to MH i2c: E2 08 00 E7 1B 80 0D 01 02 00 00 00 00 7B [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 03 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [00:30:24]RAPDU: 90 00 [00:30:24]wFMCommunicate OK [00:30:24]wFMCommunicate request_size=255 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 0D 02 02 FA 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 19 DB 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 D8 04 6E 04 04 00 E2 01 00 00 69 04 A5 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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:30:25]Write to MH i2c: E2 02 01 E8 1B 80 0D 02 02 FA 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 19 DB 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 D8 04 6E 04 04 00 E2 01 00 00 69 04 A5 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 CC [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 03 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [00:30:25]RAPDU: 90 00 [00:30:25]wFMCommunicate OK [00:30:25]wFMCommunicate request_size=255 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9F 5E 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 [00:30:25]Write to MH i2c: E2 02 01 E9 1B 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9F 5E 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 00 00 EE [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 03 00 E9 1B 00 90 00 78 [00:30:26]RAPDU: 90 00 [00:30:26]wFMCommunicate OK [00:30:26]wFMCommunicate request_size=255 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 [00:30:26]Write to MH i2c: E2 02 01 EA 1B 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 00 00 45 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]OFD Sender: No OFD packet to send [00:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [00:30:27]RAPDU: 90 00 [00:30:27]wFMCommunicate OK [00:30:27]wFMCommunicate request_size=255 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 0D 02 02 FA 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 [00:30:27]Write to MH i2c: E2 02 01 EB 1B 80 0D 02 02 FA 00 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 00 00 42 [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:28]Read from MH i2c: E2 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 03 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [00:30:28]RAPDU: 90 00 [00:30:28]wFMCommunicate OK [00:30:28]wFMCommunicate request_size=255 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [00:30:28]Write to MH i2c: E2 02 01 EC 1B 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 1A [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 03 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [00:30:29]RAPDU: 90 00 [00:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=143 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C3 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 F5 7F 5E 1E 31 A9 [00:30:29]Write to MH i2c: E2 92 00 ED 1B 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C3 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 F5 7F 5E 1E 31 A9 00 00 3B [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 03 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [00:30:29]RAPDU: 90 00 [00:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 0D 03 02 [00:30:29]Write to MH i2c: E2 08 00 EE 1B 80 0D 03 02 00 00 00 00 84 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0B 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0B 00 EE 1B 00 47 6D 88 C9 DD C3 BD A9 90 00 90 [00:30:29]RAPDU: 47 6D 88 C9 DD C3 BD A9 90 00 [00:30:29]wFMCommunicate OK [00:30:29]SAM_PROTO_SignData done [00:30:29]FM_MakeSignedData done [00:30:29]CreateOFDProtocolMessage [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 11 00 00 [00:30:29]Write to MH i2c: E2 08 00 EF 1B 80 11 00 00 00 00 00 00 84 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 17 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 17 00 EF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [00:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:29]wFMCommunicate OK [00:30:29]CreateOFDProtocolMessage done [00:30:29]OFDSenderStorePacket 192451 [00:30:29]StoreOFDPacket docnum=192451 [00:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7C 05 00 00 86 3A 74 05 A2 A5 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 19 DB 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 D8 04 6E 04 04 00 E2 01 00 00 69 04 A5 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C3 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 F5 7F 5E 1E 31 A9 47 6D 88 C9 DD C3 BD A9 [00:30:30]CheckFolder [00:30:30]dirname=/storage/ofd_packets [00:30:30]CheckFolder done [00:30:30]ProducePacketName [00:30:30]name=ofd_packets/00192451 [00:30:30]NVStorageSaveData ofd_packets/00192451 [00:30:30]File name is /storage/ofd_packets/00192451 [00:30:30]Write 1434 bytes [00:30:30]NVStorageSaveData done [00:30:30]OFDSenderStorePacket done [00:30:30]KKMCreateOFDPacket done [00:30:30]NVStorageSaveData kkm_last_timestamp [00:30:30]File name is /storage/kkm_last_timestamp [00:30:30]Write 4 bytes [00:30:30]NVStorageSaveData done [00:30:30]ExternCall_PrintAddStr [00:30:30]wPrintStart [00:30:30]Write to MH i2c: 01 00 00 F0 1B 0B [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 FF 0F 20 [00:30:30]RasterBufferAndPrint [00:30:30]line Отчет о закрытии смены [00:30:30]line ФФД: 1.0 [00:30:30]line ИНН: 02508201610067 [00:30:30]line Кассир: Тухтабаев Ж. [00:30:30]line 28.10.2024 00:30 [00:30:30]line Смена: 542 [00:30:30]line РНМ: 0000000000091776 [00:30:30]line ЗНМ: 0300000110 [00:30:30]line СНО: Общий режим [00:30:30]line Чеков за смену: 482 [00:30:30]line ФД за смену: 484 [00:30:30]line Всего чеков: 482 [00:30:30]line ИТОГИ ПРИХОД [00:30:30]line Чеков: 482 [00:30:30]line Общий итог: 397519.97 [00:30:30]line Итого наличными: 371703.00 [00:30:30]line Итого безнал.: 25816.97 [00:30:30]line НДС 0% : 0.00 [00:30:30]line НДС 12% : 42229.37 [00:30:30]line НСП 0% : 0.00 [00:30:30]line НСП 1,50% : 0.00 [00:30:30]line НСП 0,50% : 0.00 [00:30:30]line НСП 5% : 0.00 [00:30:30]line НСП 3% : 0.00 [00:30:30]line НСП 2% : 0.00 [00:30:30]line НСП 1% : 3519.03 [00:30:30]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:30]line Чеков: 0 [00:30:30]line Общий итог: 0.00 [00:30:30]line Итого наличными: 0.00 [00:30:30]line Итого безнал.: 0.00 [00:30:30]OFD Sender: Processing packet 192451 [packets to send 75, broken 74] [00:30:30]ProducePacketName [00:30:30]name=ofd_packets/00192451 [00:30:30]OFD Sender: To server: pG, [00:30:30]CommunicateWithHost lk.salyk.kg:30040 [00:30:30]ConnectInit lk.salyk.kg [00:30:30]line НДС 0% : 0.00 [00:30:30]line НДС 12% : 0.00 [00:30:30]line НСП 0% : 0.00 [00:30:30]line НСП 1,50% : 0.00 [00:30:30]line НСП 0,50% : 0.00 [00:30:30]line НСП 5% : 0.00 [00:30:30]line НСП 3% : 0.00 [00:30:30]line НСП 2% : 0.00 [00:30:30]line НСП 1% : 0.00 [00:30:30]line ИТОГИ РАСХОД [00:30:30]line Чеков: 0 [00:30:30]line Общий итог: 0.00 [00:30:30]line Итого наличными: 0.00 [00:30:30]line Итого безнал.: 0.00 [00:30:30]line НДС 0% : 0.00 [00:30:30]line НДС 12% : 0.00 [00:30:30]line НСП 0% : 0.00 [00:30:30]line НСП 1,50% : 0.00 [00:30:30]line НСП 0,50% : 0.00 [00:30:30]line НСП 5% : 0.00 [00:30:30]line НСП 3% : 0.00 [00:30:30]line НСП 2% : 0.00 [00:30:30]line НСП 1% : 0.00 [00:30:30]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:30]line Чеков: 0 [00:30:30]line Общий итог: 0.00 [00:30:30]line Итого наличными: 0.00 [00:30:30]line Итого безнал.: 0.00 [00:30:30]line НДС 0% : 0.00 [00:30:30]line НДС 12% : 0.00 [00:30:30]line НСП 0% : 0.00 [00:30:30]line НСП 1,50% : 0.00 [00:30:30]line НСП 0,50% : 0.00 [00:30:30]line НСП 5% : 0.00 [00:30:30]line НСП 3% : 0.00 [00:30:30]line НСП 2% : 0.00 [00:30:30]line НСП 1% : 0.00 [00:30:30]line Сумма внесений: 0.00 [00:30:30]line Сумма выплат: 0.00 [00:30:30]line Нал. в кассе: 371703.00 [00:30:30]line НС Приход: 159578504.36 [00:30:30]line НС Возвр.Прихода: 28777.00 [00:30:30]line НС Расход: 0.00 [00:30:30]line НС Возвр.Расхода: 0.00 [00:30:30]line ФД: 192451 [00:30:30]line ФМ: 0000000000871754 [00:30:30]line ФПД: 269927388688809 [00:30:30]written 0, free lines is 4095 [00:30:30]Connected sock=10 [00:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7C 05 00 00 86 3A 74 05 A2 A5 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F4 03 04 00 19 DB 1E 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 AA 04 D8 04 6E 04 04 00 E2 01 00 00 69 04 A5 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 Write to MH i2c: 7E 01 00 00 EE 00 03 40 0A 1C 00 F2 03 01 00 00 F3 03 01 00 5C 00 [00:30:31]EE 03 0A 00 F2 03 Write i2c OK [00:30:31]01 MH_I2C_Read... [00:30:31]00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 01 00 [00:30:31]F7 MH_I2C_Read... [00:30:31]03 Read from MH i2c: 01 01 00 07 00 00 EF [00:30:31]03 MH_I2C_Read... [00:30:31]0A Read from MH i2c: 00 01 F6 07 03 01 00 06 F7 03 01 00 00 EF 00 03 40 0A 1C 00 00 F6 00 03 00 01 00 00 00 05 69 F7 03 01 00 00 EF 03 0A 00 0A F6 D6 03 [00:30:31]01 RasterBufferAndPrint [00:30:31]00 line [00:30:31]line [00:30:31]line [00:30:31]line [00:30:31]line [00:30:31]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 written 0, free lines is 2889 [00:30:31]04 04 00 00 00 00 00 MH_Cut [00:30:31]B1 Write to MH i2c: D1 01 00 47 1C 01 35 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 Read from MH i2c: 03 D1 00 [00:30:31]00 MH_I2C_Read... [00:30:31]EF 03 09 00 F6 03 01 00 01 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 [00:30:31]00 MH_I2C_Read... [00:30:31]F6 03 01 00 02 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 47 00 1C F6 00 03 34 01 [00:30:31]00 Write to MH i2c: 03 01 F7 00 03 00 00 00 EF 03 09 00 F6 03 01 00 04 48 F7 1C 03 64 00 [00:30:31]00 EF 03 09 00 F6 03 01 00 05 F7 03 Write i2c OK [00:30:31]00 MH_I2C_Read... [00:30:31]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 *** Cut start [00:30:32]03 01 *** Partial cut [00:30:32]00 *** CUTSNS_PIN = 1 [00:30:32]06 F7 03 00 00 10 04 04 00 C3 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 *** CUTSNS_PIN = 0 [00:30:32]30 38 37 31 37 35 34 35 04 06 00 F5 7F 5E 1E 31 A9 47 6D 88 C9 DD C3 BD A9 [00:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 *** Brake cut motor [00:30:32]30 30 38 37 31 37 35 34 4F 00 00 00 42 07 47 00 2D CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EF 02 00 F4 03 04 00 EE 7F 1E 67 B6 04 01 00 00 38 CF 4B F9 F2 AC 1D 57 [00:30:32]CommunicateWithHost err = 0 [00:30:32]CheckOFDResponse [00:30:32]1017 (14) - 77093643461234 [00:30:32]1041 (16) - 0000000000871754 [00:30:32]1040 (4) - 192451 [00:30:32]1012 (4) - 27.10.2024 18:01 [00:30:32]1206 (1) - 0 [00:30:32]OFD Sender: Remove packet 192451 [00:30:32]ProducePacketName [00:30:32]name=ofd_packets/00192451 [00:30:32]NVStorageDeleteData [00:30:33]Read from MH i2c: 01 [00:30:33]MH_I2C_Read... [00:30:33]*** Stop cut motor [00:30:33]*** Cut end [00:30:33]Read from MH i2c: 01 07 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 FF 0F 79 [00:30:33]process_action close_shift done [00:30:33]requested_data is exist [00:30:33]produce_requested_data [00:30:33]requested_item fd.num is exist - process it [00:30:33]SAM_PROTO_GetFieldsCounters [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 00 00 [00:30:33]Write to MH i2c: E2 08 00 49 1C 80 13 00 00 00 00 00 00 E1 [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 62 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 62 00 49 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [00:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 OFD Sender: No OFD packet to send [00:30:33]04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetFieldsCounters done [00:30:33]requested_item shift.num is exist - process it [00:30:33]requested_item shift.opened is exist - process it [00:30:33]req_shift_opened [00:30:33]FM_GetShiftState [00:30:33]SAM_PROTO_GetShiftState [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 01 00 [00:30:33]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EE [00:30:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetShiftState done [00:30:33]FM_GetShiftState done [00:30:33]req_shift_opened done [00:30:33]requested_item shift.open_date is exist - process it [00:30:33]req_shift_open_date [00:30:33]FM_GetShiftState [00:30:33]SAM_PROTO_GetShiftState [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 01 00 [00:30:33]Write to MH i2c: E2 08 00 4B 1C 80 13 01 00 00 00 00 00 E4 [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 4B 1C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EF [00:30:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetShiftState done [00:30:33]FM_GetShiftState done [00:30:33]req_shift_open_date done [00:30:33]produce_requested_data done [00:30:33]produce_requested_data return {"fd.num":192451,"shift.num":542,"shift.opened":0,"shift.open_date":0} [00:30:33]process_action_free close_shift [00:30:33]json_value_free [00:30:33]json_value_free done [00:30:33]process_json_proto returns [00:30:33]Send response to host [00:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192451,"shift.num":542,"shift.opened":0,"shift.open_date":0}}} [00:30:33]free response buf [00:30:33]execute_script done [00:30:33]execute_script returns [00:30:33]free content buf [00:30:33]Sock 7.Close socket [00:30:33]Sock 7.Thread stoped [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:33]accept exits with 9 [00:33:33]New connection [00:33:33]New thread 3066563940 created [00:33:33]Thread 3066707300 joined [00:33:33]Waiting for new connection... [00:33:33] Sock 9.Parse request [00:33:33]Sock 9.Check first char [00:33:33]Sock 9.First char is OK [00:33:33]request: POST /json_proto HTTP/1.0 [00:33:33]Method: POST [00:33:33]URL: /json_proto [00:33:33]Method is POST - this is cgi request [00:33:33]url: /json_proto [00:33:33]query_string will be loaded in cgi processing [00:33:33]execute_cgi json_proto POST (null) [00:33:33]execute_cgi path=json_proto method=POST [00:33:33]POST find Content-Length [00:33:33]Host: 172.17.63.131:8080 [00:33:33]Content-Length: 215 [00:33:33]Content-Type: application/json [00:33:33] [00:33:33]POST finish read [00:33:33]Found Content-Length = 215 [00:33:33]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:33:33]execute_script... [00:33:33]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:33:33]POST & json_proto [00:33:33]process_json_proto [00:33:33]json parsed OK: [00:33:33]protocol is kg_v1.0 [00:33:33]action value=get_value [00:33:33]process_action get_value [00:33:33]cmd_get_value [00:33:33]process_action get_value done [00:33:33]requested_data is exist [00:33:33]produce_requested_data [00:33:33]requested_item kkm.sn is exist - process it [00:33:33]requested_item kkm.ver is exist - process it [00:33:33]requested_item fm.sn is exist - process it [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 11 00 00 [00:33:33]Write to MH i2c: E2 08 00 4C 1C 80 11 00 00 00 00 00 00 E2 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 17 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 17 00 4C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [00:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:34]wFMCommunicate OK [00:33:34]requested_item fd.num is exist - process it [00:33:34]SAM_PROTO_GetFieldsCounters [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 13 00 00 [00:33:34]Write to MH i2c: E2 08 00 4D 1C 80 13 00 00 00 00 00 00 E5 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 62 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 62 00 4D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [00: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EF 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:34]wFMCommunicate OK [00:33:34]SAM_PROTO_GetFieldsCounters done [00:33:34]requested_item shift.num is exist - process it [00:33:34]requested_item shift.opened is exist - process it [00:33:34]req_shift_opened [00:33:34]FM_GetShiftState [00:33:34]SAM_PROTO_GetShiftState [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 13 01 00 [00:33:34]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0E 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [00:33:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:34]wFMCommunicate OK [00:33:34]SAM_PROTO_GetShiftState done [00:33:34]FM_GetShiftState done [00:33:34]req_shift_opened done [00:33:34]requested_item shift.open_date is exist - process it [00:33:34]req_shift_open_date [00:33:34]FM_GetShiftState [00:33:34]SAM_PROTO_GetShiftState [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 13 01 00 [00:33:34]Write to MH i2c: E2 08 00 4F 1C 80 13 01 00 00 00 00 00 E8 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0E 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0E 00 4F 1C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F3 [00:33:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:34]wFMCommunicate OK [00:33:34]SAM_PROTO_GetShiftState done [00:33:34]FM_GetShiftState done [00:33:34]req_shift_open_date done [00:33:34]produce_requested_data done [00:33:34]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192451,"shift.num":542,"shift.opened":0,"shift.open_date":0} [00:33:34]process_action_free get_value [00:33:34]json_value_free [00:33:34]json_value_free done [00:33:34]process_json_proto returns [00:33:34]Send response to host [00:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192451,"shift.num":542,"shift.opened":0,"shift.open_date":0}}} [00:33:34]free response buf [00:33:34]execute_script done [00:33:34]execute_script returns [00:33:34]free content buf [00:33:34]Sock 9.Close socket [00:33:34]Sock 9.Thread stoped [00:33:34]accept exits with 7 [00:33:34]New connection [00:33:34]New thread 3066707300 created [00:33:34]Thread 3066563940 joined [00:33:34]Waiting for new connection... [00:33:34] Sock 7.Parse request [00:33:34]Sock 7.Check first char [00:33:34]Sock 7.First char is OK [00:33:34]request: POST /json_proto HTTP/1.0 [00:33:34]Method: POST [00:33:34]URL: /json_proto [00:33:34]Method is POST - this is cgi request [00:33:34]url: /json_proto [00:33:34]query_string will be loaded in cgi processing [00:33:34]execute_cgi json_proto POST (null) [00:33:34]execute_cgi path=json_proto method=POST [00:33:34]POST find Content-Length [00:33:34]Host: 172.17.63.131:8080 [00:33:34]Content-Length: 331 [00:33:34]Content-Type: application/json [00:33:34] [00:33:34]POST finish read [00:33:34]Found Content-Length = 331 [00:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:34]execute_script... [00:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:34]POST & json_proto [00:33:34]process_json_proto [00:33:34]json parsed OK: [00:33:34]protocol is kg_v1.0 [00:33:34]action value=get_value [00:33:34]process_action get_value [00:33:34]cmd_get_value [00:33:34]process_action get_value done [00:33:34]requested_data is exist [00:33:34]produce_requested_data [00:33:34]requested_item fm.sale.total is exist - process it [00:33:34]SAM_PROTO_GetFMData [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 13 03 00 [00:33:34]Write to MH i2c: E2 08 00 50 1C 80 13 03 00 00 00 00 00 EB [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 50 1C 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 2D [00:33:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:33:35]wFMCommunicate OK [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 17 00 00 [00:33:35]Write to MH i2c: E2 08 00 51 1C 80 17 00 00 00 00 00 00 ED [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 51 1C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 FE [00:33:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:33:35]wFMCommunicate OK [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 17 00 00 [00:33:35]Write to MH i2c: E2 08 00 52 1C 80 17 00 00 00 00 00 00 EE [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 52 1C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 8E [00:33:35]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:33:35]wFMCommunicate OK [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 17 00 00 [00:33:35]Write to MH i2c: E2 08 00 53 1C 80 17 00 00 00 00 00 00 EF [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 FD 00 53 1C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 74 [00:33:35]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:35]wFMCommunicate OK [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 17 00 00 [00:33:35]Write to MH i2c: E2 08 00 54 1C 80 17 00 00 00 00 00 00 F0 [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 DE 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 DE 00 54 1C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [00:33:36]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:36]wFMCommunicate OK [00:33:36]SAM_PROTO_GetFMData done [00:33:36]requested_item fm.sale_refund.total is exist - process it [00:33:36]requested_item fm.buy.total is exist - process it [00:33:36]requested_item shift.sale.total is exist - process it [00:33:36]SAM_PROTO_GetShiftData [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 13 02 00 [00:33:36]Write to MH i2c: E2 08 00 55 1C 80 13 02 00 00 00 00 00 EF [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 FD 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 FD 00 55 1C 00 B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 71 [00:33:36]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 E2 01 00 00 69 04 9E 00 6F 04 04 00 E2 01 00 00 B1 04 04 00 3D 91 5E 02 70 04 04 00 7C 2C 37 02 72 04 03 00 C1 64 27 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 D9 6F 40 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 9F 5E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:36]wFMCommunicate OK [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 17 00 00 [00:33:36]Write to MH i2c: E2 08 00 56 1C 80 17 00 00 00 00 00 00 F2 [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 FD 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 FD 00 56 1C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 0B [00:33:36]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:33:36]wFMCommunicate OK [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 17 00 00 [00:33:36]Write to MH i2c: E2 08 00 57 1C 80 17 00 00 00 00 00 00 F3 [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 FD 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 FD 00 57 1C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AC [00:33:37]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:33:37]wFMCommunicate OK [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 17 00 00 [00:33:37]Write to MH i2c: E2 08 00 58 1C 80 17 00 00 00 00 00 00 F4 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 FD 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 FD 00 58 1C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6C [00:33:37]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:37]wFMCommunicate OK [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 17 00 00 [00:33:37]Write to MH i2c: E2 08 00 59 1C 80 17 00 00 00 00 00 00 F5 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 CE 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 CE 00 59 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [00:33:37]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:37]wFMCommunicate OK [00:33:37]SAM_PROTO_GetShiftData done [00:33:37]requested_item shift.sale.total_cash is exist - process it [00:33:37]requested_item shift.sale_refund.total is exist - process it [00:33:37]requested_item shift.sale_refund.total_cash is exist - process it [00:33:37]requested_item shift.buy.total is exist - process it [00:33:37]requested_item shift.buy.total_cash is exist - process it [00:33:37]produce_requested_data done [00:33:37]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.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:33:37]process_action_free get_value [00:33:37]json_value_free [00:33:37]json_value_free done [00:33:37]process_json_proto returns [00:33:37]Send response to host [00:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":397519.97,"shift.sale.total_cash":371703.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:33:37]free response buf [00:33:37]execute_script done [00:33:37]execute_script returns [00:33:37]free content buf [00:33:37]Sock 7.Close socket [00:33:37]Sock 7.Thread stoped [00:33:37]accept exits with 9 [00:33:37]New connection [00:33:37]New thread 3066563940 created [00:33:37]Thread 3066707300 joined [00:33:37]Waiting for new connection... [00:33:37] Sock 9.Parse request [00:33:37]Sock 9.Check first char [00:33:37]Sock 9.First char is OK [00:33:37]request: POST /json_proto HTTP/1.0 [00:33:37]Method: POST [00:33:37]URL: /json_proto [00:33:37]Method is POST - this is cgi request [00:33:37]url: /json_proto [00:33:37]query_string will be loaded in cgi processing [00:33:37]execute_cgi json_proto POST (null) [00:33:37]execute_cgi path=json_proto method=POST [00:33:37]POST find Content-Length [00:33:37]Host: 172.17.63.131:8080 [00:33:37]Content-Length: 259 [00:33:37]Content-Type: application/json [00:33:37] [00:33:37]POST finish read [00:33:37]Found Content-Length = 259 [00:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:37]execute_script... [00:33:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:37]POST & json_proto [00:33:37]process_json_proto [00:33:37]json parsed OK: [00:33:37]protocol is kg_v1.0 [00:33:37]action value=open_shift [00:33:37]process_action open_shift [00:33:37]cmd_open_shift [00:33:37]MH_GetDate [00:33:37]Write to MH i2c: F0 00 00 5A 1C 65 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: F0 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: F0 09 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: F0 09 00 5A 1C 00 E4 DB 1E 67 22 05 6E 64 AB [00:33:37]GetLastDocTimeStamp 1730075417 [00:33:37]current date 1730075620 [00:33:37]FM_GetShiftState [00:33:37]SAM_PROTO_GetShiftState [00:33:37]wFMCommunicate request_size=4 [00:33:37]MH_SAM_APDU [00:33:37]CAPDU: 80 13 01 00 [00:33:37]Write to MH i2c: E2 08 00 5B 1C 80 13 01 00 00 00 00 00 F4 [00:33:37]Write i2c OK [00:33:37]MH_I2C_Read... [00:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:37]Read from MH i2c: E2 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 0E 00 [00:33:37]MH_I2C_Read... [00:33:37]Read from MH i2c: E2 0E 00 5B 1C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FF [00:33:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:37]wFMCommunicate OK [00:33:37]SAM_PROTO_GetShiftState done [00:33:37]FM_GetShiftState done [00:33:37]KKMCreateOpenShiftDocument [00:33:37]Load OK [00:33:37]Malloc new data [00:33:37]MH_GetDate [00:33:37]Write to MH i2c: F0 00 00 5C 1C 67 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: F0 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: F0 09 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: F0 09 00 5C 1C 00 E4 DB 1E 67 22 05 6E 64 AD [00:33:38]Malloc new data [00:33:38]KKMCreateOpenShiftDocument OK [00:33:38]KKMSetOpenShiftData OK [00:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=210 [00:33:38]tlvbuf is 01B3B410 [00:33:38]KKMLoadAndSignOpenShiftData [00:33:38]SAM_PROTO_ProcessDocument [00:33:38]wFMCommunicate request_size=9 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 01 00 04 02 00 D2 00 [00:33:38]Write to MH i2c: E2 0C 00 5D 1C 80 15 01 00 04 00 02 00 D2 00 00 00 D4 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=23 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:33:38]Write to MH i2c: E2 1A 00 5E 1C 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 EF [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=30 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 [00:33:38]Write to MH i2c: E2 21 00 5F 1C 80 15 02 00 19 00 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 00 00 C9 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 5F 1C 00 90 00 EF [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=98 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 [00:33:38]Write to MH i2c: E2 65 00 60 1C 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 00 00 93 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 60 1C 00 90 00 F0 [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=51 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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:33:38]Write to MH i2c: E2 36 00 61 1C 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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 A7 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 61 1C 00 90 00 F1 [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=13 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 08 F4 03 04 00 E4 DB 1E 67 [00:33:38]Write to MH i2c: E2 10 00 62 1C 80 15 02 00 08 00 F4 03 04 00 E4 DB 1E 67 00 00 4D [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 62 1C 00 90 00 F2 [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=25 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:33:38]Write to MH i2c: E2 1C 00 63 1C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 66 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [00:33:38]RAPDU: 90 00 [00:33:38]wFMCommunicate OK [00:33:38]wFMCommunicate request_size=4 [00:33:38]MH_SAM_APDU [00:33:38]CAPDU: 80 15 03 00 [00:33:38]Write to MH i2c: E2 08 00 64 1C 80 15 03 00 00 00 00 00 01 [00:33:38]Write i2c OK [00:33:38]MH_I2C_Read... [00:33:38]OFD Sender: No OFD packet to send [00:33:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:33:38]Read from MH i2c: E2 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 38 00 [00:33:38]MH_I2C_Read... [00:33:38]Read from MH i2c: E2 38 00 64 1C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EF 02 00 0E 04 04 00 1F 02 00 00 35 04 06 00 B1 9A 24 A7 45 75 90 00 73 [00:33:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EF 02 00 0E 04 04 00 1F 02 00 00 35 04 06 00 B1 9A 24 A7 45 75 90 00 [00:33:38]wFMCommunicate OK [00:33:38]SAM_PROTO_ProcessDocument answer len = 51 [00:33:38]SAM_PROTO_ProcessDocument done [00:33:38]SetTLVBufToDocument [00:33:38]Processing tag 1209 (04B9) [00:33:38]Malloc new data [00:33:38]Processing tag 1041 (0411) [00:33:38]Processing tag 1040 (0410) [00:33:38]Malloc new data [00:33:38]Processing tag 1038 (040E) [00:33:38]Malloc new data [00:33:38]Processing tag 1077 (0435) [00:33:38]Malloc new data [00:33:38]SetTLVBufToDocument err=0 [00:33:38]KKMLoadAndSignOpenShiftData store KKM data [00:33:38]KKMLoadAndSignOpenShiftData err=0 [00:33:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Курбанов М. Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 Место: АЗС № 170 "Партнер Нефть" 28.10.2024 00:33 Смена: 543 РНМ: 0000000000091776 ЗНМ: 0300000110 ФД: 192452 ФМ: 0000000000871754 ФПД: 195275598022005 [00:33:38]StoreToDocumentArchive [00:33:38]shift 543 fd 192452 [00:33:38]Create dir for shift 0543 [00:33:38]save to /storage/0543/doc_00192452 [00:33:38]save last doc name /storage/0543/doc_00192452 to /storage/kkm_last_doc_name [00:33:38]save OK [00:33:38]Clear old archive folders... [00:33:38]Remove dir /storage/0542 [00:33:38]opendir ok [00:33:38]file . [00:33:38]file .. [00:33:38]file doc_00191968 [00:33:38]remove file /storage/0542/doc_00191968 [00:33:38]file doc_00191969 [00:33:38]remove file /storage/0542/doc_00191969 [00:33:38]file doc_00191970 [00:33:38]remove file /storage/0542/doc_00191970 [00:33:38]file doc_00191971 [00:33:38]remove file /storage/0542/doc_00191971 [00:33:38]file doc_00191972 [00:33:38]remove file /storage/0542/doc_00191972 [00:33:38]file doc_00191973 [00:33:38]remove file /storage/0542/doc_00191973 [00:33:38]file doc_00191974 [00:33:38]remove file /storage/0542/doc_00191974 [00:33:38]file doc_00191975 [00:33:38]remove file /storage/0542/doc_00191975 [00:33:38]file doc_00191976 [00:33:38]remove file /storage/0542/doc_00191976 [00:33:38]file doc_00191977 [00:33:38]remove file /storage/0542/doc_00191977 [00:33:38]file doc_00191978 [00:33:38]remove file /storage/0542/doc_00191978 [00:33:38]file doc_00191979 [00:33:38]remove file /storage/0542/doc_00191979 [00:33:38]file doc_00191980 [00:33:38]remove file /storage/0542/doc_00191980 [00:33:38]file doc_00191981 [00:33:38]remove file /storage/0542/doc_00191981 [00:33:38]file doc_00191982 [00:33:38]remove file /storage/0542/doc_00191982 [00:33:38]file doc_00191983 [00:33:38]remove file /storage/0542/doc_00191983 [00:33:38]file doc_00191984 [00:33:38]remove file /storage/0542/doc_00191984 [00:33:38]file doc_00191985 [00:33:38]remove file /storage/0542/doc_00191985 [00:33:38]file doc_00191986 [00:33:38]remove file /storage/0542/doc_00191986 [00:33:38]file doc_00191987 [00:33:38]remove file /storage/0542/doc_00191987 [00:33:38]file doc_00191988 [00:33:38]remove file /storage/0542/doc_00191988 [00:33:38]file doc_00191989 [00:33:38]remove file /storage/0542/doc_00191989 [00:33:38]file doc_00191990 [00:33:38]remove file /storage/0542/doc_00191990 [00:33:38]file doc_00191991 [00:33:38]remove file /storage/0542/doc_00191991 [00:33:38]file doc_00191992 [00:33:38]remove file /storage/0542/doc_00191992 [00:33:38]file doc_00191993 [00:33:38]remove file /storage/0542/doc_00191993 [00:33:38]file doc_00191994 [00:33:38]remove file /storage/0542/doc_00191994 [00:33:38]file doc_00191995 [00:33:38]remove file /storage/0542/doc_00191995 [00:33:38]file doc_00191996 [00:33:38]remove file /storage/0542/doc_00191996 [00:33:38]file doc_00191997 [00:33:38]remove file /storage/0542/doc_00191997 [00:33:38]file doc_00191998 [00:33:38]remove file /storage/0542/doc_00191998 [00:33:38]file doc_00191999 [00:33:38]remove file /storage/0542/doc_00191999 [00:33:38]file doc_00192000 [00:33:38]remove file /storage/0542/doc_00192000 [00:33:39]file doc_00192001 [00:33:39]remove file /storage/0542/doc_00192001 [00:33:39]file doc_00192002 [00:33:39]remove file /storage/0542/doc_00192002 [00:33:39]file doc_00192003 [00:33:39]remove file /storage/0542/doc_00192003 [00:33:39]file doc_00192004 [00:33:39]remove file /storage/0542/doc_00192004 [00:33:39]file doc_00192005 [00:33:39]remove file /storage/0542/doc_00192005 [00:33:39]file doc_00192006 [00:33:39]remove file /storage/0542/doc_00192006 [00:33:39]file doc_00192007 [00:33:39]remove file /storage/0542/doc_00192007 [00:33:39]file doc_00192008 [00:33:39]remove file /storage/0542/doc_00192008 [00:33:39]file doc_00192009 [00:33:39]remove file /storage/0542/doc_00192009 [00:33:39]file doc_00192010 [00:33:39]remove file /storage/0542/doc_00192010 [00:33:39]file doc_00192011 [00:33:39]remove file /storage/0542/doc_00192011 [00:33:39]file doc_00192012 [00:33:39]remove file /storage/0542/doc_00192012 [00:33:39]file doc_00192013 [00:33:39]remove file /storage/0542/doc_00192013 [00:33:39]file doc_00192014 [00:33:39]remove file /storage/0542/doc_00192014 [00:33:39]file doc_00192015 [00:33:39]remove file /storage/0542/doc_00192015 [00:33:39]file doc_00192016 [00:33:39]remove file /storage/0542/doc_00192016 [00:33:39]file doc_00192017 [00:33:39]remove file /storage/0542/doc_00192017 [00:33:39]file doc_00192018 [00:33:39]remove file /storage/0542/doc_00192018 [00:33:39]file doc_00192019 [00:33:39]remove file /storage/0542/doc_00192019 [00:33:39]file doc_00192020 [00:33:39]remove file /storage/0542/doc_00192020 [00:33:39]file doc_00192021 [00:33:39]remove file /storage/0542/doc_00192021 [00:33:39]file doc_00192022 [00:33:39]remove file /storage/0542/doc_00192022 [00:33:39]file doc_00192023 [00:33:39]remove file /storage/0542/doc_00192023 [00:33:39]file doc_00192024 [00:33:39]remove file /storage/0542/doc_00192024 [00:33:39]file doc_00192025 [00:33:39]remove file /storage/0542/doc_00192025 [00:33:39]file doc_00192026 [00:33:39]remove file /storage/0542/doc_00192026 [00:33:39]file doc_00192027 [00:33:39]remove file /storage/0542/doc_00192027 [00:33:39]file doc_00192028 [00:33:39]remove file /storage/0542/doc_00192028 [00:33:39]file doc_00192029 [00:33:39]remove file /storage/0542/doc_00192029 [00:33:39]file doc_00192030 [00:33:39]remove file /storage/0542/doc_00192030 [00:33:39]file doc_00192031 [00:33:39]remove file /storage/0542/doc_00192031 [00:33:39]file doc_00192032 [00:33:39]remove file /storage/0542/doc_00192032 [00:33:39]file doc_00192033 [00:33:39]remove file /storage/0542/doc_00192033 [00:33:39]file doc_00192034 [00:33:39]remove file /storage/0542/doc_00192034 [00:33:39]file doc_00192035 [00:33:39]remove file /storage/0542/doc_00192035 [00:33:39]file doc_00192036 [00:33:39]remove file /storage/0542/doc_00192036 [00:33:39]file doc_00192037 [00:33:39]remove file /storage/0542/doc_00192037 [00:33:39]file doc_00192038 [00:33:39]remove file /storage/0542/doc_00192038 [00:33:39]file doc_00192039 [00:33:39]remove file /storage/0542/doc_00192039 [00:33:39]file doc_00192040 [00:33:39]remove file /storage/0542/doc_00192040 [00:33:39]file doc_00192041 [00:33:39]remove file /storage/0542/doc_00192041 [00:33:39]file doc_00192042 [00:33:39]remove file /storage/0542/doc_00192042 [00:33:39]file doc_00192043 [00:33:39]remove file /storage/0542/doc_00192043 [00:33:39]file doc_00192044 [00:33:39]remove file /storage/0542/doc_00192044 [00:33:39]file doc_00192045 [00:33:39]remove file /storage/0542/doc_00192045 [00:33:39]file doc_00192046 [00:33:39]remove file /storage/0542/doc_00192046 [00:33:39]file doc_00192047 [00:33:39]remove file /storage/0542/doc_00192047 [00:33:39]file doc_00192048 [00:33:39]remove file /storage/0542/doc_00192048 [00:33:39]file doc_00192049 [00:33:39]remove file /storage/0542/doc_00192049 [00:33:39]file doc_00192050 [00:33:39]remove file /storage/0542/doc_00192050 [00:33:39]file doc_00192051 [00:33:39]remove file /storage/0542/doc_00192051 [00:33:39]file doc_00192052 [00:33:39]remove file /storage/0542/doc_00192052 [00:33:39]file doc_00192053 [00:33:39]remove file /storage/0542/doc_00192053 [00:33:39]file doc_00192054 [00:33:39]remove file /storage/0542/doc_00192054 [00:33:39]file doc_00192055 [00:33:39]remove file /storage/0542/doc_00192055 [00:33:39]file doc_00192056 [00:33:39]remove file /storage/0542/doc_00192056 [00:33:39]file doc_00192057 [00:33:39]remove file /storage/0542/doc_00192057 [00:33:39]file doc_00192058 [00:33:39]remove file /storage/0542/doc_00192058 [00:33:39]file doc_00192059 [00:33:39]remove file /storage/0542/doc_00192059 [00:33:39]file doc_00192060 [00:33:39]remove file /storage/0542/doc_00192060 [00:33:39]file doc_00192061 [00:33:39]remove file /storage/0542/doc_00192061 [00:33:39]file doc_00192062 [00:33:39]remove file /storage/0542/doc_00192062 [00:33:39]file doc_00192063 [00:33:39]remove file /storage/0542/doc_00192063 [00:33:39]file doc_00192064 [00:33:39]remove file /storage/0542/doc_00192064 [00:33:39]file doc_00192065 [00:33:39]remove file /storage/0542/doc_00192065 [00:33:39]file doc_00192066 [00:33:39]remove file /storage/0542/doc_00192066 [00:33:39]file doc_00192067 [00:33:39]remove file /storage/0542/doc_00192067 [00:33:39]file doc_00192068 [00:33:39]remove file /storage/0542/doc_00192068 [00:33:39]file doc_00192069 [00:33:39]remove file /storage/0542/doc_00192069 [00:33:39]file doc_00192070 [00:33:39]remove file /storage/0542/doc_00192070 [00:33:39]file doc_00192071 [00:33:39]remove file /storage/0542/doc_00192071 [00:33:39]file doc_00192072 [00:33:39]remove file /storage/0542/doc_00192072 [00:33:39]file doc_00192073 [00:33:39]remove file /storage/0542/doc_00192073 [00:33:39]file doc_00192074 [00:33:39]remove file /storage/0542/doc_00192074 [00:33:39]file doc_00192075 [00:33:39]remove file /storage/0542/doc_00192075 [00:33:39]file doc_00192076 [00:33:39]remove file /storage/0542/doc_00192076 [00:33:39]file doc_00192077 [00:33:39]remove file /storage/0542/doc_00192077 [00:33:39]file doc_00192078 [00:33:39]remove file /storage/0542/doc_00192078 [00:33:39]file doc_00192079 [00:33:39]remove file /storage/0542/doc_00192079 [00:33:39]file doc_00192080 [00:33:39]remove file /storage/0542/doc_00192080 [00:33:39]file doc_00192081 [00:33:39]remove file /storage/0542/doc_00192081 [00:33:39]file doc_00192082 [00:33:39]remove file /storage/0542/doc_00192082 [00:33:39]file doc_00192083 [00:33:39]remove file /storage/0542/doc_00192083 [00:33:39]file doc_00192084 [00:33:39]remove file /storage/0542/doc_00192084 [00:33:39]file doc_00192085 [00:33:39]remove file /storage/0542/doc_00192085 [00:33:39]file doc_00192086 [00:33:39]remove file /storage/0542/doc_00192086 [00:33:39]file doc_00192087 [00:33:39]remove file /storage/0542/doc_00192087 [00:33:39]file doc_00192088 [00:33:39]remove file /storage/0542/doc_00192088 [00:33:39]file doc_00192089 [00:33:39]remove file /storage/0542/doc_00192089 [00:33:39]file doc_00192090 [00:33:39]remove file /storage/0542/doc_00192090 [00:33:39]file doc_00192091 [00:33:39]remove file /storage/0542/doc_00192091 [00:33:39]file doc_00192092 [00:33:39]remove file /storage/0542/doc_00192092 [00:33:39]file doc_00192093 [00:33:39]remove file /storage/0542/doc_00192093 [00:33:39]file doc_00192094 [00:33:39]remove file /storage/0542/doc_00192094 [00:33:39]file doc_00192095 [00:33:39]remove file /storage/0542/doc_00192095 [00:33:39]file doc_00192096 [00:33:39]remove file /storage/0542/doc_00192096 [00:33:39]file doc_00192097 [00:33:39]remove file /storage/0542/doc_00192097 [00:33:39]file doc_00192098 [00:33:39]remove file /storage/0542/doc_00192098 [00:33:39]file doc_00192099 [00:33:39]remove file /storage/0542/doc_00192099 [00:33:39]file doc_00192100 [00:33:39]remove file /storage/0542/doc_00192100 [00:33:39]file doc_00192101 [00:33:39]remove file /storage/0542/doc_00192101 [00:33:39]file doc_00192102 [00:33:39]remove file /storage/0542/doc_00192102 [00:33:39]file doc_00192103 [00:33:39]remove file /storage/0542/doc_00192103 [00:33:39]file doc_00192104 [00:33:39]remove file /storage/0542/doc_00192104 [00:33:39]file doc_00192105 [00:33:39]remove file /storage/0542/doc_00192105 [00:33:39]file doc_00192106 [00:33:39]remove file /storage/0542/doc_00192106 [00:33:39]file doc_00192107 [00:33:39]remove file /storage/0542/doc_00192107 [00:33:39]file doc_00192108 [00:33:39]remove file /storage/0542/doc_00192108 [00:33:39]file doc_00192109 [00:33:39]remove file /storage/0542/doc_00192109 [00:33:39]file doc_00192110 [00:33:39]remove file /storage/0542/doc_00192110 [00:33:39]file doc_00192111 [00:33:39]remove file /storage/0542/doc_00192111 [00:33:39]file doc_00192112 [00:33:39]remove file /storage/0542/doc_00192112 [00:33:39]file doc_00192113 [00:33:39]remove file /storage/0542/doc_00192113 [00:33:39]file doc_00192114 [00:33:39]remove file /storage/0542/doc_00192114 [00:33:39]file doc_00192115 [00:33:39]remove file /storage/0542/doc_00192115 [00:33:39]file doc_00192116 [00:33:39]remove file /storage/0542/doc_00192116 [00:33:39]file doc_00192117 [00:33:39]remove file /storage/0542/doc_00192117 [00:33:39]file doc_00192118 [00:33:39]remove file /storage/0542/doc_00192118 [00:33:39]file doc_00192119 [00:33:39]remove file /storage/0542/doc_00192119 [00:33:39]file doc_00192120 [00:33:39]remove file /storage/0542/doc_00192120 [00:33:39]file doc_00192121 [00:33:39]remove file /storage/0542/doc_00192121 [00:33:39]file doc_00192122 [00:33:39]remove file /storage/0542/doc_00192122 [00:33:39]file doc_00192123 [00:33:39]remove file /storage/0542/doc_00192123 [00:33:39]file doc_00192124 [00:33:39]remove file /storage/0542/doc_00192124 [00:33:39]file doc_00192125 [00:33:39]remove file /storage/0542/doc_00192125 [00:33:39]file doc_00192126 [00:33:39]remove file /storage/0542/doc_00192126 [00:33:39]file doc_00192127 [00:33:39]remove file /storage/0542/doc_00192127 [00:33:39]file doc_00192128 [00:33:39]remove file /storage/0542/doc_00192128 [00:33:39]file doc_00192129 [00:33:39]remove file /storage/0542/doc_00192129 [00:33:39]file doc_00192130 [00:33:39]remove file /storage/0542/doc_00192130 [00:33:39]file doc_00192131 [00:33:39]remove file /storage/0542/doc_00192131 [00:33:39]file doc_00192132 [00:33:39]remove file /storage/0542/doc_00192132 [00:33:39]file doc_00192133 [00:33:39]remove file /storage/0542/doc_00192133 [00:33:39]file doc_00192134 [00:33:39]remove file /storage/0542/doc_00192134 [00:33:39]file doc_00192135 [00:33:39]remove file /storage/0542/doc_00192135 [00:33:39]file doc_00192136 [00:33:39]remove file /storage/0542/doc_00192136 [00:33:39]file doc_00192137 [00:33:39]remove file /storage/0542/doc_00192137 [00:33:39]file doc_00192138 [00:33:39]remove file /storage/0542/doc_00192138 [00:33:39]file doc_00192139 [00:33:39]remove file /storage/0542/doc_00192139 [00:33:39]file doc_00192140 [00:33:40]remove file /storage/0542/doc_00192140 [00:33:40]file doc_00192141 [00:33:40]remove file /storage/0542/doc_00192141 [00:33:40]file doc_00192142 [00:33:40]remove file /storage/0542/doc_00192142 [00:33:40]file doc_00192143 [00:33:40]remove file /storage/0542/doc_00192143 [00:33:40]file doc_00192144 [00:33:40]remove file /storage/0542/doc_00192144 [00:33:40]file doc_00192145 [00:33:40]remove file /storage/0542/doc_00192145 [00:33:40]file doc_00192146 [00:33:40]remove file /storage/0542/doc_00192146 [00:33:40]file doc_00192147 [00:33:40]remove file /storage/0542/doc_00192147 [00:33:40]file doc_00192148 [00:33:40]remove file /storage/0542/doc_00192148 [00:33:40]file doc_00192149 [00:33:40]remove file /storage/0542/doc_00192149 [00:33:40]file doc_00192150 [00:33:40]remove file /storage/0542/doc_00192150 [00:33:40]file doc_00192151 [00:33:40]remove file /storage/0542/doc_00192151 [00:33:40]file doc_00192152 [00:33:40]remove file /storage/0542/doc_00192152 [00:33:40]file doc_00192153 [00:33:40]remove file /storage/0542/doc_00192153 [00:33:40]file doc_00192154 [00:33:40]remove file /storage/0542/doc_00192154 [00:33:40]file doc_00192155 [00:33:40]remove file /storage/0542/doc_00192155 [00:33:40]file doc_00192156 [00:33:40]remove file /storage/0542/doc_00192156 [00:33:40]file doc_00192157 [00:33:40]remove file /storage/0542/doc_00192157 [00:33:40]file doc_00192158 [00:33:40]remove file /storage/0542/doc_00192158 [00:33:40]file doc_00192159 [00:33:40]remove file /storage/0542/doc_00192159 [00:33:40]file doc_00192160 [00:33:40]remove file /storage/0542/doc_00192160 [00:33:40]file doc_00192161 [00:33:40]remove file /storage/0542/doc_00192161 [00:33:40]file doc_00192162 [00:33:40]remove file /storage/0542/doc_00192162 [00:33:40]file doc_00192163 [00:33:40]remove file /storage/0542/doc_00192163 [00:33:40]file doc_00192164 [00:33:40]remove file /storage/0542/doc_00192164 [00:33:40]file doc_00192165 [00:33:40]remove file /storage/0542/doc_00192165 [00:33:40]file doc_00192166 [00:33:40]remove file /storage/0542/doc_00192166 [00:33:40]file doc_00192167 [00:33:40]remove file /storage/0542/doc_00192167 [00:33:40]file doc_00192168 [00:33:40]remove file /storage/0542/doc_00192168 [00:33:40]file doc_00192169 [00:33:40]remove file /storage/0542/doc_00192169 [00:33:40]file doc_00192170 [00:33:40]remove file /storage/0542/doc_00192170 [00:33:40]file doc_00192171 [00:33:40]remove file /storage/0542/doc_00192171 [00:33:40]file doc_00192172 [00:33:40]remove file /storage/0542/doc_00192172 [00:33:40]file doc_00192173 [00:33:40]remove file /storage/0542/doc_00192173 [00:33:40]file doc_00192174 [00:33:40]remove file /storage/0542/doc_00192174 [00:33:40]file doc_00192175 [00:33:40]remove file /storage/0542/doc_00192175 [00:33:40]file doc_00192176 [00:33:40]remove file /storage/0542/doc_00192176 [00:33:40]file doc_00192177 [00:33:40]remove file /storage/0542/doc_00192177 [00:33:40]file doc_00192178 [00:33:40]remove file /storage/0542/doc_00192178 [00:33:40]file doc_00192179 [00:33:40]remove file /storage/0542/doc_00192179 [00:33:40]file doc_00192180 [00:33:40]remove file /storage/0542/doc_00192180 [00:33:40]file doc_00192181 [00:33:40]remove file /storage/0542/doc_00192181 [00:33:40]file doc_00192182 [00:33:40]remove file /storage/0542/doc_00192182 [00:33:40]file doc_00192183 [00:33:40]remove file /storage/0542/doc_00192183 [00:33:40]file doc_00192184 [00:33:40]remove file /storage/0542/doc_00192184 [00:33:40]file doc_00192185 [00:33:40]remove file /storage/0542/doc_00192185 [00:33:40]file doc_00192186 [00:33:40]remove file /storage/0542/doc_00192186 [00:33:40]file doc_00192187 [00:33:40]remove file /storage/0542/doc_00192187 [00:33:40]file doc_00192188 [00:33:40]remove file /storage/0542/doc_00192188 [00:33:40]file doc_00192189 [00:33:40]remove file /storage/0542/doc_00192189 [00:33:40]file doc_00192190 [00:33:40]remove file /storage/0542/doc_00192190 [00:33:40]file doc_00192191 [00:33:40]remove file /storage/0542/doc_00192191 [00:33:40]file doc_00192192 [00:33:40]remove file /storage/0542/doc_00192192 [00:33:40]file doc_00192193 [00:33:40]remove file /storage/0542/doc_00192193 [00:33:40]file doc_00192194 [00:33:40]remove file /storage/0542/doc_00192194 [00:33:40]file doc_00192195 [00:33:40]remove file /storage/0542/doc_00192195 [00:33:40]file doc_00192196 [00:33:40]remove file /storage/0542/doc_00192196 [00:33:40]file doc_00192197 [00:33:40]remove file /storage/0542/doc_00192197 [00:33:40]file doc_00192198 [00:33:40]remove file /storage/0542/doc_00192198 [00:33:40]file doc_00192199 [00:33:40]remove file /storage/0542/doc_00192199 [00:33:40]file doc_00192200 [00:33:40]remove file /storage/0542/doc_00192200 [00:33:40]file doc_00192201 [00:33:40]remove file /storage/0542/doc_00192201 [00:33:40]file doc_00192202 [00:33:40]remove file /storage/0542/doc_00192202 [00:33:40]file doc_00192203 [00:33:40]remove file /storage/0542/doc_00192203 [00:33:40]file doc_00192204 [00:33:40]remove file /storage/0542/doc_00192204 [00:33:40]file doc_00192205 [00:33:40]remove file /storage/0542/doc_00192205 [00:33:40]file doc_00192206 [00:33:40]remove file /storage/0542/doc_00192206 [00:33:40]file doc_00192207 [00:33:40]remove file /storage/0542/doc_00192207 [00:33:40]file doc_00192208 [00:33:40]remove file /storage/0542/doc_00192208 [00:33:40]file doc_00192209 [00:33:40]remove file /storage/0542/doc_00192209 [00:33:40]file doc_00192210 [00:33:40]remove file /storage/0542/doc_00192210 [00:33:40]file doc_00192211 [00:33:40]remove file /storage/0542/doc_00192211 [00:33:40]file doc_00192212 [00:33:40]remove file /storage/0542/doc_00192212 [00:33:40]file doc_00192213 [00:33:40]remove file /storage/0542/doc_00192213 [00:33:40]file doc_00192214 [00:33:40]remove file /storage/0542/doc_00192214 [00:33:40]file doc_00192215 [00:33:40]remove file /storage/0542/doc_00192215 [00:33:40]file doc_00192216 [00:33:40]remove file /storage/0542/doc_00192216 [00:33:40]file doc_00192217 [00:33:40]remove file /storage/0542/doc_00192217 [00:33:40]file doc_00192218 [00:33:40]remove file /storage/0542/doc_00192218 [00:33:40]file doc_00192219 [00:33:40]remove file /storage/0542/doc_00192219 [00:33:40]file doc_00192220 [00:33:40]remove file /storage/0542/doc_00192220 [00:33:40]file doc_00192221 [00:33:40]remove file /storage/0542/doc_00192221 [00:33:40]file doc_00192222 [00:33:40]remove file /storage/0542/doc_00192222 [00:33:40]file doc_00192223 [00:33:40]remove file /storage/0542/doc_00192223 [00:33:40]file doc_00192224 [00:33:40]remove file /storage/0542/doc_00192224 [00:33:40]file doc_00192225 [00:33:40]remove file /storage/0542/doc_00192225 [00:33:40]file doc_00192226 [00:33:40]remove file /storage/0542/doc_00192226 [00:33:40]file doc_00192227 [00:33:40]remove file /storage/0542/doc_00192227 [00:33:40]file doc_00192228 [00:33:40]remove file /storage/0542/doc_00192228 [00:33:40]file doc_00192229 [00:33:40]remove file /storage/0542/doc_00192229 [00:33:40]file doc_00192230 [00:33:40]remove file /storage/0542/doc_00192230 [00:33:40]file doc_00192231 [00:33:40]remove file /storage/0542/doc_00192231 [00:33:40]file doc_00192232 [00:33:40]remove file /storage/0542/doc_00192232 [00:33:40]file doc_00192233 [00:33:40]remove file /storage/0542/doc_00192233 [00:33:40]file doc_00192234 [00:33:40]remove file /storage/0542/doc_00192234 [00:33:40]file doc_00192235 [00:33:40]remove file /storage/0542/doc_00192235 [00:33:40]file doc_00192236 [00:33:40]remove file /storage/0542/doc_00192236 [00:33:40]file doc_00192237 [00:33:40]remove file /storage/0542/doc_00192237 [00:33:40]file doc_00192238 [00:33:40]remove file /storage/0542/doc_00192238 [00:33:40]file doc_00192239 [00:33:40]remove file /storage/0542/doc_00192239 [00:33:40]file doc_00192240 [00:33:40]remove file /storage/0542/doc_00192240 [00:33:40]file doc_00192241 [00:33:40]remove file /storage/0542/doc_00192241 [00:33:40]file doc_00192242 [00:33:40]remove file /storage/0542/doc_00192242 [00:33:40]file doc_00192243 [00:33:40]remove file /storage/0542/doc_00192243 [00:33:40]file doc_00192244 [00:33:40]remove file /storage/0542/doc_00192244 [00:33:40]file doc_00192245 [00:33:40]remove file /storage/0542/doc_00192245 [00:33:40]file doc_00192246 [00:33:40]remove file /storage/0542/doc_00192246 [00:33:40]file doc_00192247 [00:33:40]remove file /storage/0542/doc_00192247 [00:33:40]file doc_00192248 [00:33:40]remove file /storage/0542/doc_00192248 [00:33:40]file doc_00192249 [00:33:40]remove file /storage/0542/doc_00192249 [00:33:40]file doc_00192250 [00:33:40]remove file /storage/0542/doc_00192250 [00:33:40]file doc_00192251 [00:33:40]remove file /storage/0542/doc_00192251 [00:33:40]file doc_00192252 [00:33:40]remove file /storage/0542/doc_00192252 [00:33:40]file doc_00192253 [00:33:40]remove file /storage/0542/doc_00192253 [00:33:40]file doc_00192254 [00:33:40]remove file /storage/0542/doc_00192254 [00:33:40]file doc_00192255 [00:33:40]remove file /storage/0542/doc_00192255 [00:33:40]file doc_00192256 [00:33:40]remove file /storage/0542/doc_00192256 [00:33:40]file doc_00192257 [00:33:40]remove file /storage/0542/doc_00192257 [00:33:40]file doc_00192258 [00:33:40]remove file /storage/0542/doc_00192258 [00:33:40]file doc_00192259 [00:33:40]remove file /storage/0542/doc_00192259 [00:33:40]file doc_00192260 [00:33:40]remove file /storage/0542/doc_00192260 [00:33:40]file doc_00192261 [00:33:40]remove file /storage/0542/doc_00192261 [00:33:40]file doc_00192262 [00:33:40]remove file /storage/0542/doc_00192262 [00:33:40]file doc_00192263 [00:33:40]remove file /storage/0542/doc_00192263 [00:33:40]file doc_00192264 [00:33:40]remove file /storage/0542/doc_00192264 [00:33:40]file doc_00192265 [00:33:40]remove file /storage/0542/doc_00192265 [00:33:40]file doc_00192266 [00:33:40]remove file /storage/0542/doc_00192266 [00:33:40]file doc_00192267 [00:33:40]remove file /storage/0542/doc_00192267 [00:33:40]file doc_00192268 [00:33:40]remove file /storage/0542/doc_00192268 [00:33:40]file doc_00192269 [00:33:40]remove file /storage/0542/doc_00192269 [00:33:40]file doc_00192270 [00:33:40]remove file /storage/0542/doc_00192270 [00:33:40]file doc_00192271 [00:33:40]remove file /storage/0542/doc_00192271 [00:33:40]file doc_00192272 [00:33:40]remove file /storage/0542/doc_00192272 [00:33:40]file doc_00192273 [00:33:40]remove file /storage/0542/doc_00192273 [00:33:40]file doc_00192274 [00:33:40]remove file /storage/0542/doc_00192274 [00:33:40]file doc_00192275 [00:33:40]remove file /storage/0542/doc_00192275 [00:33:40]file doc_00192276 [00:33:40]remove file /storage/0542/doc_00192276 [00:33:40]file doc_00192277 [00:33:40]remove file /storage/0542/doc_00192277 [00:33:40]file doc_00192278 [00:33:40]remove file /storage/0542/doc_00192278 [00:33:40]file doc_00192279 [00:33:40]remove file /storage/0542/doc_00192279 [00:33:40]file doc_00192280 [00:33:40]remove file /storage/0542/doc_00192280 [00:33:40]file doc_00192281 [00:33:40]remove file /storage/0542/doc_00192281 [00:33:40]file doc_00192282 [00:33:40]remove file /storage/0542/doc_00192282 [00:33:40]file doc_00192283 [00:33:40]remove file /storage/0542/doc_00192283 [00:33:40]file doc_00192284 [00:33:40]remove file /storage/0542/doc_00192284 [00:33:40]file doc_00192285 [00:33:40]remove file /storage/0542/doc_00192285 [00:33:40]file doc_00192286 [00:33:40]remove file /storage/0542/doc_00192286 [00:33:40]file doc_00192287 [00:33:40]remove file /storage/0542/doc_00192287 [00:33:40]file doc_00192288 [00:33:40]remove file /storage/0542/doc_00192288 [00:33:40]file doc_00192289 [00:33:40]remove file /storage/0542/doc_00192289 [00:33:40]file doc_00192290 [00:33:40]remove file /storage/0542/doc_00192290 [00:33:40]file doc_00192291 [00:33:40]remove file /storage/0542/doc_00192291 [00:33:40]file doc_00192292 [00:33:40]remove file /storage/0542/doc_00192292 [00:33:40]file doc_00192293 [00:33:40]remove file /storage/0542/doc_00192293 [00:33:40]file doc_00192294 [00:33:40]remove file /storage/0542/doc_00192294 [00:33:40]file doc_00192295 [00:33:40]remove file /storage/0542/doc_00192295 [00:33:40]file doc_00192296 [00:33:40]remove file /storage/0542/doc_00192296 [00:33:40]file doc_00192297 [00:33:40]remove file /storage/0542/doc_00192297 [00:33:40]file doc_00192298 [00:33:40]remove file /storage/0542/doc_00192298 [00:33:40]file doc_00192299 [00:33:40]remove file /storage/0542/doc_00192299 [00:33:40]file doc_00192300 [00:33:40]remove file /storage/0542/doc_00192300 [00:33:40]file doc_00192301 [00:33:40]remove file /storage/0542/doc_00192301 [00:33:40]file doc_00192302 [00:33:40]remove file /storage/0542/doc_00192302 [00:33:40]file doc_00192303 [00:33:40]remove file /storage/0542/doc_00192303 [00:33:40]file doc_00192304 [00:33:40]remove file /storage/0542/doc_00192304 [00:33:40]file doc_00192305 [00:33:40]remove file /storage/0542/doc_00192305 [00:33:40]file doc_00192306 [00:33:40]remove file /storage/0542/doc_00192306 [00:33:40]file doc_00192307 [00:33:40]remove file /storage/0542/doc_00192307 [00:33:40]file doc_00192308 [00:33:40]remove file /storage/0542/doc_00192308 [00:33:40]file doc_00192309 [00:33:40]remove file /storage/0542/doc_00192309 [00:33:40]file doc_00192310 [00:33:40]remove file /storage/0542/doc_00192310 [00:33:40]file doc_00192311 [00:33:40]remove file /storage/0542/doc_00192311 [00:33:40]file doc_00192312 [00:33:40]remove file /storage/0542/doc_00192312 [00:33:40]file doc_00192313 [00:33:40]remove file /storage/0542/doc_00192313 [00:33:40]file doc_00192314 [00:33:40]remove file /storage/0542/doc_00192314 [00:33:40]file doc_00192315 [00:33:40]remove file /storage/0542/doc_00192315 [00:33:40]file doc_00192316 [00:33:40]remove file /storage/0542/doc_00192316 [00:33:40]file doc_00192317 [00:33:40]remove file /storage/0542/doc_00192317 [00:33:40]file doc_00192318 [00:33:40]remove file /storage/0542/doc_00192318 [00:33:40]file doc_00192319 [00:33:40]remove file /storage/0542/doc_00192319 [00:33:40]file doc_00192320 [00:33:40]remove file /storage/0542/doc_00192320 [00:33:40]file doc_00192321 [00:33:40]remove file /storage/0542/doc_00192321 [00:33:40]file doc_00192322 [00:33:40]remove file /storage/0542/doc_00192322 [00:33:40]file doc_00192323 [00:33:40]remove file /storage/0542/doc_00192323 [00:33:40]file doc_00192324 [00:33:40]remove file /storage/0542/doc_00192324 [00:33:40]file doc_00192325 [00:33:40]remove file /storage/0542/doc_00192325 [00:33:40]file doc_00192326 [00:33:40]remove file /storage/0542/doc_00192326 [00:33:40]file doc_00192327 [00:33:40]remove file /storage/0542/doc_00192327 [00:33:40]file doc_00192328 [00:33:40]remove file /storage/0542/doc_00192328 [00:33:40]file doc_00192329 [00:33:40]remove file /storage/0542/doc_00192329 [00:33:40]file doc_00192330 [00:33:40]remove file /storage/0542/doc_00192330 [00:33:40]file doc_00192331 [00:33:40]remove file /storage/0542/doc_00192331 [00:33:40]file doc_00192332 [00:33:40]remove file /storage/0542/doc_00192332 [00:33:40]file doc_00192333 [00:33:40]remove file /storage/0542/doc_00192333 [00:33:40]file doc_00192334 [00:33:40]remove file /storage/0542/doc_00192334 [00:33:40]file doc_00192335 [00:33:40]remove file /storage/0542/doc_00192335 [00:33:40]file doc_00192336 [00:33:40]remove file /storage/0542/doc_00192336 [00:33:40]file doc_00192337 [00:33:40]remove file /storage/0542/doc_00192337 [00:33:40]file doc_00192338 [00:33:40]remove file /storage/0542/doc_00192338 [00:33:40]file doc_00192339 [00:33:40]remove file /storage/0542/doc_00192339 [00:33:40]file doc_00192340 [00:33:40]remove file /storage/0542/doc_00192340 [00:33:40]file doc_00192341 [00:33:40]remove file /storage/0542/doc_00192341 [00:33:40]file doc_00192342 [00:33:40]remove file /storage/0542/doc_00192342 [00:33:40]file doc_00192343 [00:33:40]remove file /storage/0542/doc_00192343 [00:33:40]file doc_00192344 [00:33:40]remove file /storage/0542/doc_00192344 [00:33:40]file doc_00192345 [00:33:40]remove file /storage/0542/doc_00192345 [00:33:40]file doc_00192346 [00:33:40]remove file /storage/0542/doc_00192346 [00:33:40]file doc_00192347 [00:33:40]remove file /storage/0542/doc_00192347 [00:33:40]file doc_00192348 [00:33:40]remove file /storage/0542/doc_00192348 [00:33:40]file doc_00192349 [00:33:40]remove file /storage/0542/doc_00192349 [00:33:40]file doc_00192350 [00:33:40]remove file /storage/0542/doc_00192350 [00:33:40]file doc_00192351 [00:33:40]remove file /storage/0542/doc_00192351 [00:33:40]file doc_00192352 [00:33:40]remove file /storage/0542/doc_00192352 [00:33:40]file doc_00192353 [00:33:40]remove file /storage/0542/doc_00192353 [00:33:40]file doc_00192354 [00:33:40]remove file /storage/0542/doc_00192354 [00:33:40]file doc_00192355 [00:33:40]remove file /storage/0542/doc_00192355 [00:33:40]file doc_00192356 [00:33:40]remove file /storage/0542/doc_00192356 [00:33:40]file doc_00192357 [00:33:40]remove file /storage/0542/doc_00192357 [00:33:40]file doc_00192358 [00:33:40]remove file /storage/0542/doc_00192358 [00:33:40]file doc_00192359 [00:33:40]remove file /storage/0542/doc_00192359 [00:33:40]file doc_00192360 [00:33:40]remove file /storage/0542/doc_00192360 [00:33:40]file doc_00192361 [00:33:40]remove file /storage/0542/doc_00192361 [00:33:40]file doc_00192362 [00:33:40]remove file /storage/0542/doc_00192362 [00:33:40]file doc_00192363 [00:33:40]remove file /storage/0542/doc_00192363 [00:33:40]file doc_00192364 [00:33:40]remove file /storage/0542/doc_00192364 [00:33:40]file doc_00192365 [00:33:40]remove file /storage/0542/doc_00192365 [00:33:40]file doc_00192366 [00:33:40]remove file /storage/0542/doc_00192366 [00:33:40]file doc_00192367 [00:33:40]remove file /storage/0542/doc_00192367 [00:33:40]file doc_00192368 [00:33:40]remove file /storage/0542/doc_00192368 [00:33:40]file doc_00192369 [00:33:40]remove file /storage/0542/doc_00192369 [00:33:41]file doc_00192370 [00:33:41]remove file /storage/0542/doc_00192370 [00:33:41]file doc_00192371 [00:33:41]remove file /storage/0542/doc_00192371 [00:33:41]file doc_00192372 [00:33:41]remove file /storage/0542/doc_00192372 [00:33:41]file doc_00192373 [00:33:41]remove file /storage/0542/doc_00192373 [00:33:41]file doc_00192374 [00:33:41]remove file /storage/0542/doc_00192374 [00:33:41]file doc_00192375 [00:33:41]remove file /storage/0542/doc_00192375 [00:33:41]file doc_00192376 [00:33:41]remove file /storage/0542/doc_00192376 [00:33:41]file doc_00192377 [00:33:41]remove file /storage/0542/doc_00192377 [00:33:41]file doc_00192378 [00:33:41]remove file /storage/0542/doc_00192378 [00:33:41]file doc_00192379 [00:33:41]remove file /storage/0542/doc_00192379 [00:33:41]file doc_00192380 [00:33:41]remove file /storage/0542/doc_00192380 [00:33:41]file doc_00192381 [00:33:41]remove file /storage/0542/doc_00192381 [00:33:41]file doc_00192382 [00:33:41]remove file /storage/0542/doc_00192382 [00:33:41]file doc_00192383 [00:33:41]remove file /storage/0542/doc_00192383 [00:33:41]file doc_00192384 [00:33:41]remove file /storage/0542/doc_00192384 [00:33:41]file doc_00192385 [00:33:41]remove file /storage/0542/doc_00192385 [00:33:41]file doc_00192386 [00:33:41]remove file /storage/0542/doc_00192386 [00:33:41]file doc_00192387 [00:33:41]remove file /storage/0542/doc_00192387 [00:33:41]file doc_00192388 [00:33:41]remove file /storage/0542/doc_00192388 [00:33:41]file doc_00192389 [00:33:41]remove file /storage/0542/doc_00192389 [00:33:41]file doc_00192390 [00:33:41]remove file /storage/0542/doc_00192390 [00:33:41]file doc_00192391 [00:33:41]remove file /storage/0542/doc_00192391 [00:33:41]file doc_00192392 [00:33:41]remove file /storage/0542/doc_00192392 [00:33:41]file doc_00192393 [00:33:41]remove file /storage/0542/doc_00192393 [00:33:41]file doc_00192394 [00:33:41]remove file /storage/0542/doc_00192394 [00:33:41]file doc_00192395 [00:33:41]remove file /storage/0542/doc_00192395 [00:33:41]file doc_00192396 [00:33:41]remove file /storage/0542/doc_00192396 [00:33:41]file doc_00192397 [00:33:41]remove file /storage/0542/doc_00192397 [00:33:41]file doc_00192398 [00:33:41]remove file /storage/0542/doc_00192398 [00:33:41]file doc_00192399 [00:33:41]remove file /storage/0542/doc_00192399 [00:33:41]file doc_00192400 [00:33:41]remove file /storage/0542/doc_00192400 [00:33:41]file doc_00192401 [00:33:41]remove file /storage/0542/doc_00192401 [00:33:41]file doc_00192402 [00:33:41]remove file /storage/0542/doc_00192402 [00:33:41]file doc_00192403 [00:33:41]remove file /storage/0542/doc_00192403 [00:33:41]file doc_00192404 [00:33:41]remove file /storage/0542/doc_00192404 [00:33:41]file doc_00192405 [00:33:41]remove file /storage/0542/doc_00192405 [00:33:41]file doc_00192406 [00:33:41]remove file /storage/0542/doc_00192406 [00:33:41]file doc_00192407 [00:33:41]remove file /storage/0542/doc_00192407 [00:33:41]file doc_00192408 [00:33:41]remove file /storage/0542/doc_00192408 [00:33:41]file doc_00192409 [00:33:41]remove file /storage/0542/doc_00192409 [00:33:41]file doc_00192410 [00:33:41]remove file /storage/0542/doc_00192410 [00:33:41]file doc_00192411 [00:33:41]remove file /storage/0542/doc_00192411 [00:33:41]file doc_00192412 [00:33:41]remove file /storage/0542/doc_00192412 [00:33:41]file doc_00192413 [00:33:41]remove file /storage/0542/doc_00192413 [00:33:41]file doc_00192414 [00:33:41]remove file /storage/0542/doc_00192414 [00:33:41]file doc_00192415 [00:33:41]remove file /storage/0542/doc_00192415 [00:33:41]file doc_00192416 [00:33:41]remove file /storage/0542/doc_00192416 [00:33:41]file doc_00192417 [00:33:41]remove file /storage/0542/doc_00192417 [00:33:41]file doc_00192418 [00:33:41]remove file /storage/0542/doc_00192418 [00:33:41]file doc_00192419 [00:33:41]remove file /storage/0542/doc_00192419 [00:33:41]file doc_00192420 [00:33:41]remove file /storage/0542/doc_00192420 [00:33:41]file doc_00192421 [00:33:41]remove file /storage/0542/doc_00192421 [00:33:41]file doc_00192422 [00:33:41]remove file /storage/0542/doc_00192422 [00:33:41]file doc_00192423 [00:33:41]remove file /storage/0542/doc_00192423 [00:33:41]file doc_00192424 [00:33:41]remove file /storage/0542/doc_00192424 [00:33:41]file doc_00192425 [00:33:41]remove file /storage/0542/doc_00192425 [00:33:41]file doc_00192426 [00:33:41]remove file /storage/0542/doc_00192426 [00:33:41]file doc_00192427 [00:33:41]remove file /storage/0542/doc_00192427 [00:33:41]file doc_00192428 [00:33:41]remove file /storage/0542/doc_00192428 [00:33:41]file doc_00192429 [00:33:41]remove file /storage/0542/doc_00192429 [00:33:41]file doc_00192430 [00:33:41]remove file /storage/0542/doc_00192430 [00:33:41]file doc_00192431 [00:33:41]remove file /storage/0542/doc_00192431 [00:33:41]file doc_00192432 [00:33:41]remove file /storage/0542/doc_00192432 [00:33:41]file doc_00192433 [00:33:41]remove file /storage/0542/doc_00192433 [00:33:41]file doc_00192434 [00:33:41]remove file /storage/0542/doc_00192434 [00:33:41]file doc_00192435 [00:33:41]remove file /storage/0542/doc_00192435 [00:33:41]file doc_00192436 [00:33:41]remove file /storage/0542/doc_00192436 [00:33:41]file doc_00192437 [00:33:41]remove file /storage/0542/doc_00192437 [00:33:41]file doc_00192438 [00:33:41]remove file /storage/0542/doc_00192438 [00:33:41]file doc_00192439 [00:33:41]remove file /storage/0542/doc_00192439 [00:33:41]file doc_00192440 [00:33:41]remove file /storage/0542/doc_00192440 [00:33:41]file doc_00192441 [00:33:41]remove file /storage/0542/doc_00192441 [00:33:41]file doc_00192442 [00:33:41]remove file /storage/0542/doc_00192442 [00:33:41]file doc_00192443 [00:33:41]remove file /storage/0542/doc_00192443 [00:33:41]file doc_00192444 [00:33:41]remove file /storage/0542/doc_00192444 [00:33:41]file doc_00192445 [00:33:41]remove file /storage/0542/doc_00192445 [00:33:41]file doc_00192446 [00:33:41]remove file /storage/0542/doc_00192446 [00:33:41]file doc_00192447 [00:33:41]remove file /storage/0542/doc_00192447 [00:33:41]file doc_00192448 [00:33:41]remove file /storage/0542/doc_00192448 [00:33:41]file doc_00192449 [00:33:41]remove file /storage/0542/doc_00192449 [00:33:41]file doc_00192450 [00:33:41]remove file /storage/0542/doc_00192450 [00:33:41]file doc_00192451 [00:33:41]remove file /storage/0542/doc_00192451 [00:33:41]remove dir /storage/0542 [00:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=261 [00:33:41]tlvbuf is 01B3E140 [00:33:41]SAM_PROTO_ClearQueue [00:33:41]wFMCommunicate request_size=4 [00:33:41]MH_SAM_APDU [00:33:41]CAPDU: 80 09 00 00 [00:33:41]Write to MH i2c: E2 08 00 65 1C 80 09 00 00 00 00 00 00 F3 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [00:33:41]RAPDU: 90 00 [00:33:41]wFMCommunicate OK [00:33:41]SAM_PROTO_ClearQueue done [00:33:41]KKMCreateOFDPacket [00:33:41]OFDProtocolAddRootSTLVToBuf [00:33:41]FM_MakeSignedData [00:33:41]FM_MakeSignedData [00:33:41]SAM_PROTO_SignData [00:33:41]wFMCommunicate request_size=4 [00:33:41]MH_SAM_APDU [00:33:41]CAPDU: 80 0D 01 02 [00:33:41]Write to MH i2c: E2 08 00 66 1C 80 0D 01 02 00 00 00 00 FB [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [00:33:41]RAPDU: 90 00 [00:33:41]wFMCommunicate OK [00:33:41]wFMCommunicate request_size=255 [00:33:41]MH_SAM_APDU [00:33:41]CAPDU: 80 0D 02 02 FA 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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 E4 DB 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [00:33:41]Write to MH i2c: E2 02 01 67 1C 80 0D 02 02 FA 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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 E4 DB 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 10 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [00:33:41]RAPDU: 90 00 [00:33:41]wFMCommunicate OK [00:33:41]wFMCommunicate request_size=20 [00:33:41]MH_SAM_APDU [00:33:41]CAPDU: 80 0D 02 02 0F 37 31 37 35 34 35 04 06 00 B1 9A 24 A7 45 75 [00:33:41]Write to MH i2c: E2 17 00 68 1C 80 0D 02 02 0F 00 37 31 37 35 34 35 04 06 00 B1 9A 24 A7 45 75 00 00 33 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [00:33:41]RAPDU: 90 00 [00:33:41]wFMCommunicate OK [00:33:41]wFMCommunicate request_size=4 [00:33:41]MH_SAM_APDU [00:33:41]CAPDU: 80 0D 03 02 [00:33:41]Write to MH i2c: E2 08 00 69 1C 80 0D 03 02 00 00 00 00 00 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 0B 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 0B 00 69 1C 00 4B 3D 98 51 2B B8 36 E0 90 00 6B [00:33:42]RAPDU: 4B 3D 98 51 2B B8 36 E0 90 00 [00:33:42]wFMCommunicate OK [00:33:42]SAM_PROTO_SignData done [00:33:42]FM_MakeSignedData done [00:33:42]CreateOFDProtocolMessage [00:33:42]wFMCommunicate request_size=4 [00:33:42]MH_SAM_APDU [00:33:42]CAPDU: 80 11 00 00 [00:33:42]Write to MH i2c: E2 08 00 6A 1C 80 11 00 00 00 00 00 00 00 [00:33:42]Write i2c OK [00:33:42]MH_I2C_Read... [00:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:42]Read from MH i2c: E2 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: E2 17 00 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: E2 17 00 6A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [00:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:42]wFMCommunicate OK [00:33:42]CreateOFDProtocolMessage done [00:33:42]OFDSenderStorePacket 192452 [00:33:42]StoreOFDPacket docnum=192452 [00:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 19 01 00 00 3A DD 11 01 66 CB 5A 02 01 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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 E4 DB 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 B1 9A 24 A7 45 75 4B 3D 98 51 2B B8 36 E0 [00:33:42]CheckFolder [00:33:42]dirname=/storage/ofd_packets [00:33:42]CheckFolder done [00:33:42]ProducePacketName [00:33:42]name=ofd_packets/00192452 [00:33:42]NVStorageSaveData ofd_packets/00192452 [00:33:42]File name is /storage/ofd_packets/00192452 [00:33:42]Write 311 bytes [00:33:42]NVStorageSaveData done [00:33:42]OFDSenderStorePacket done [00:33:42]KKMCreateOFDPacket done [00:33:42]NVStorageSaveData kkm_last_timestamp [00:33:42]File name is /storage/kkm_last_timestamp [00:33:42]Write 4 bytes [00:33:42]NVStorageSaveData done [00:33:42]ExternCall_PrintAddStr [00:33:42]wPrintStart [00:33:42]Write to MH i2c: 01 00 00 6B 1C 87 [00:33:42]Write i2c OK [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 07 00 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 FF 0F 9C [00:33:42]RasterBufferAndPrint [00:33:42]line Отчет об открытии смены [00:33:42]line ФФД: 1.0 [00:33:42]line ИНН: 02508201610067 [00:33:42]line Кассир: Курбанов М. [00:33:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:33:42]line Место: АЗС № 170 "Партнер Нефть" [00:33:42]line 28.10.2024 00:33 [00:33:42]line Смена: 543 [00:33:42]line РНМ: 0000000000091776 [00:33:42]line ЗНМ: 0300000110 [00:33:42]line ФД: 192452 [00:33:42]line ФМ: 0000000000871754 [00:33:42]line ФПД: 195275598022005 [00:33:42]written 0, free lines is 4095 [00:33:42]OFD Sender: Processing packet 192452 [packets to send 75, broken 74] [00:33:42]ProducePacketName [00:33:42]name=ofd_packets/00192452 [00:33:42]OFD Sender: To server: pG, [00:33:42]CommunicateWithHost lk.salyk.kg:30040 [00:33:42]ConnectInit lk.salyk.kg [00:33:42]Connected sock=10 [00:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 19 01 00 00 3A DD 11 01 66 CB 5A 02 01 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 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 E4 DB 1E 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 B1 9A 24 A7 45 75 4B 3D 98 51 2B B8 36 E0 [00:33:42]Write to MH i2c: 01 00 00 7D 1C 99 [00:33:42]Write i2c OK [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 07 00 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 24 0F D3 [00:33:42]RasterBufferAndPrint [00:33:42]line [00:33:42]line [00:33:42]line [00:33:42]line [00:33:42]line [00:33:42]written 0, free lines is 3897 [00:33:42]MH_Cut [00:33:42]Write to MH i2c: D1 01 00 84 1C 01 72 [00:33:42]Write i2c OK [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: D1 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: D1 01 00 [00:33:42]MH_I2C_Read... [00:33:42]Read from MH i2c: D1 01 00 84 1C 00 71 [00:33:42]Write to MH i2c: 01 00 00 85 1C A1 [00:33:42]Write i2c OK [00:33:42]MH_I2C_Read... [00:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5A 57 47 00 15 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EF 02 00 F4 03 04 00 AC 80 1E 67 B6 04 01 00 00 00 3B BD DD 53 B8 D0 C8 [00:33:42]CommunicateWithHost err = 0 [00:33:42]CheckOFDResponse [00:33:42]1017 (14) - 77093643461234 [00:33:42]1041 (16) - 0000000000871754 [00:33:42]1040 (4) - 192452 [00:33:42]1012 (4) - 27.10.2024 18:04 [00:33:42]1206 (1) - 0 [00:33:42]OFD Sender: Remove packet 192452 [00:33:42]ProducePacketName [00:33:42]name=ofd_packets/00192452 [00:33:42]NVStorageDeleteData [00:33:42]*** Cut start [00:33:42]*** Partial cut [00:33:42]*** CUTSNS_PIN = 1 [00:33:42]*** CUTSNS_PIN = 0 [00:33:43]*** Brake cut motor [00:33:43]OFD Sender: No OFD packet to send [00:33:43]Read from MH i2c: 01 [00:33:43]MH_I2C_Read... [00:33:43]*** Stop cut motor [00:33:43]*** Cut end [00:33:43]Read from MH i2c: 01 07 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 FF 0F B6 [00:33:43]process_action open_shift done [00:33:43]requested_data is exist [00:33:43]produce_requested_data [00:33:43]requested_item fd.num is exist - process it [00:33:43]SAM_PROTO_GetFieldsCounters [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 13 00 00 [00:33:43]Write to MH i2c: E2 08 00 86 1C 80 13 00 00 00 00 00 00 1E [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:43]Read from MH i2c: E2 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 62 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 62 00 86 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [00:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:43]wFMCommunicate OK [00:33:43]SAM_PROTO_GetFieldsCounters done [00:33:43]requested_item shift.num is exist - process it [00:33:43]requested_item shift.opened is exist - process it [00:33:43]req_shift_opened [00:33:43]FM_GetShiftState [00:33:43]SAM_PROTO_GetShiftState [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 13 01 00 [00:33:43]Write to MH i2c: E2 08 00 87 1C 80 13 01 00 00 00 00 00 20 [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:43]Read from MH i2c: E2 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 0E 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 0E 00 87 1C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 70 [00:33:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:33:43]wFMCommunicate OK [00:33:43]SAM_PROTO_GetShiftState done [00:33:43]FM_GetShiftState done [00:33:43]req_shift_opened done [00:33:43]requested_item shift.open_date is exist - process it [00:33:43]req_shift_open_date [00:33:43]req_shift_open_date done [00:33:43]produce_requested_data done [00:33:43]produce_requested_data return {"fd.num":192452,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:33:43]process_action_free open_shift [00:33:43]json_value_free [00:33:43]json_value_free done [00:33:43]process_json_proto returns [00:33:43]Send response to host [00:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192452,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:33:43]free response buf [00:33:43]execute_script done [00:33:43]execute_script returns [00:33:43]free content buf [00:33:43]Sock 9.Close socket [00:33:43]Sock 9.Thread stoped [00:33:43]accept exits with 7 [00:33:43]New connection [00:33:43]New thread 3066707300 created [00:33:43]Thread 3066563940 joined [00:33:43]Waiting for new connection... [00:33:43] Sock 7.Parse request [00:33:43]Sock 7.Check first char [00:33:43]Sock 7.First char is OK [00:33:43]request: POST /json_proto HTTP/1.0 [00:33:43]Method: POST [00:33:43]URL: /json_proto [00:33:43]Method is POST - this is cgi request [00:33:43]url: /json_proto [00:33:43]query_string will be loaded in cgi processing [00:33:43]execute_cgi json_proto POST (null) [00:33:43]execute_cgi path=json_proto method=POST [00:33:43]POST find Content-Length [00:33:43]Host: 172.17.63.131:8080 [00:33:43]Content-Length: 331 [00:33:43]Content-Type: application/json [00:33:43] [00:33:43]POST finish read [00:33:43]Found Content-Length = 331 [00:33:43]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:33:43]execute_script... [00:33:43]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:33:43]POST & json_proto [00:33:43]process_json_proto [00:33:43]json parsed OK: [00:33:43]protocol is kg_v1.0 [00:33:43]action value=get_value [00:33:43]process_action get_value [00:33:43]cmd_get_value [00:33:43]process_action get_value done [00:33:43]requested_data is exist [00:33:43]produce_requested_data [00:33:43]requested_item fm.sale.total is exist - process it [00:33:43]SAM_PROTO_GetFMData [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 13 03 00 [00:33:43]Write to MH i2c: E2 08 00 88 1C 80 13 03 00 00 00 00 00 23 [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:44]Read from MH i2c: E2 [00:33:44]MH_I2C_Read... [00:33:44]Read from MH i2c: E2 FD 00 [00:33:44]MH_I2C_Read... [00:33:44]Read from MH i2c: E2 FD 00 88 1C 00 C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 65 [00:33:44]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 86 EB 02 00 69 04 A3 00 6F 04 04 00 7C EB 02 00 B1 04 05 00 44 79 29 B7 03 70 04 05 00 AC 7F E2 89 03 72 04 04 00 98 F9 46 2D 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 6F F8 0B 65 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 81 7D 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:33:44]wFMCommunicate OK [00:33:44]wFMCommunicate request_size=4 [00:33:44]MH_SAM_APDU [00:33:44]CAPDU: 80 17 00 00 [00:33:44]Write to MH i2c: E2 08 00 89 1C 80 17 00 00 00 00 00 00 25 [00:33:44]Write i2c OK [00:33:44]MH_I2C_Read... [00:33:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:44]Read from MH i2c: E2 [00:33:44]MH_I2C_Read... [00:33:44]Read from MH i2c: E2 FD 00 [00:33:44]MH_I2C_Read... [00:33:44]Read from MH i2c: E2 FD 00 89 1C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 36 [00:33:44]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:33:44]wFMCommunicate OK [00:33:44]wFMCommunicate request_size=4 [00:33:44]MH_SAM_APDU [00:33:44]CAPDU: 80 17 00 00 [00:33:44]Write to MH i2c: E2 08 00 8A 1C 80 17 00 00 00 00 00 00 26 [00:33:44]Write i2c OK [00:33:44]MH_I2C_Read... [00:33:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:45]Read from MH i2c: E2 [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 FD 00 [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 FD 00 8A 1C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 C6 [00:33:45]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:33:45]wFMCommunicate OK [00:33:45]wFMCommunicate request_size=4 [00:33:45]MH_SAM_APDU [00:33:45]CAPDU: 80 17 00 00 [00:33:45]Write to MH i2c: E2 08 00 8B 1C 80 17 00 00 00 00 00 00 27 [00:33:45]Write i2c OK [00:33:45]MH_I2C_Read... [00:33:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:45]Read from MH i2c: E2 [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 FD 00 [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 FD 00 8B 1C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 AC [00:33:45]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:45]wFMCommunicate OK [00:33:45]wFMCommunicate request_size=4 [00:33:45]MH_SAM_APDU [00:33:45]CAPDU: 80 17 00 00 [00:33:45]Write to MH i2c: E2 08 00 8C 1C 80 17 00 00 00 00 00 00 28 [00:33:45]Write i2c OK [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 [00:33:45]MH_I2C_Read... [00:33:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:45]Read from MH i2c: E2 DE 00 [00:33:45]MH_I2C_Read... [00:33:45]Read from MH i2c: E2 DE 00 8C 1C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:33:45]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:46]wFMCommunicate OK [00:33:46]SAM_PROTO_GetFMData done [00:33:46]requested_item fm.sale_refund.total is exist - process it [00:33:46]requested_item fm.buy.total is exist - process it [00:33:46]requested_item shift.sale.total is exist - process it [00:33:46]SAM_PROTO_GetShiftData [00:33:46]wFMCommunicate request_size=4 [00:33:46]MH_SAM_APDU [00:33:46]CAPDU: 80 13 02 00 [00:33:46]Write to MH i2c: E2 08 00 8D 1C 80 13 02 00 00 00 00 00 27 [00:33:46]Write i2c OK [00:33:46]MH_I2C_Read... [00:33:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:46]Read from MH i2c: E2 [00:33:46]MH_I2C_Read... [00:33:46]Read from MH i2c: E2 FD 00 [00:33:46]MH_I2C_Read... [00:33:46]Read from MH i2c: E2 FD 00 8D 1C 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 9A [00:33:46]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:33:46]wFMCommunicate OK [00:33:46]wFMCommunicate request_size=4 [00:33:46]MH_SAM_APDU [00:33:46]CAPDU: 80 17 00 00 [00:33:46]Write to MH i2c: E2 08 00 8E 1C 80 17 00 00 00 00 00 00 2A [00:33:46]Write i2c OK [00:33:46]MH_I2C_Read... [00:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:47]Read from MH i2c: E2 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 FD 00 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 FD 00 8E 1C 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 32 [00:33:47]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:33:47]wFMCommunicate OK [00:33:47]wFMCommunicate request_size=4 [00:33:47]MH_SAM_APDU [00:33:47]CAPDU: 80 17 00 00 [00:33:47]Write to MH i2c: E2 08 00 8F 1C 80 17 00 00 00 00 00 00 2B [00:33:47]Write i2c OK [00:33:47]MH_I2C_Read... [00:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:47]Read from MH i2c: E2 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 FD 00 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 FD 00 8F 1C 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 FD [00:33:47]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:33:47]wFMCommunicate OK [00:33:47]wFMCommunicate request_size=4 [00:33:47]MH_SAM_APDU [00:33:47]CAPDU: 80 17 00 00 [00:33:47]Write to MH i2c: E2 08 00 90 1C 80 17 00 00 00 00 00 00 2C [00:33:47]Write i2c OK [00:33:47]MH_I2C_Read... [00:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:47]Read from MH i2c: E2 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 FD 00 [00:33:47]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 FD 00 90 1C 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 9E [00:33:48]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:33:48]wFMCommunicate OK [00:33:48]wFMCommunicate request_size=4 [00:33:48]MH_SAM_APDU [00:33:48]CAPDU: 80 17 00 00 [00:33:48]Write to MH i2c: E2 08 00 91 1C 80 17 00 00 00 00 00 00 2D [00:33:48]Write i2c OK [00:33:48]MH_I2C_Read... [00:33:48]OFD Sender: No OFD packet to send [00:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:33:48]Read from MH i2c: E2 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 BD 00 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 BD 00 91 1C 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 13 [00:33:48]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:33:48]wFMCommunicate OK [00:33:48]SAM_PROTO_GetShiftData done [00:33:48]requested_item shift.sale.total_cash is exist - process it [00:33:48]requested_item shift.sale_refund.total is exist - process it [00:33:48]requested_item shift.sale_refund.total_cash is exist - process it [00:33:48]requested_item shift.buy.total is exist - process it [00:33:48]requested_item shift.buy.total_cash is exist - process it [00:33:48]produce_requested_data done [00:33:48]produce_requested_data return {"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.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:33:48]process_action_free get_value [00:33:48]json_value_free [00:33:48]json_value_free done [00:33:48]process_json_proto returns [00:33:48]Send response to host [00:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159578504.36,"fm.sale_refund.total":28777.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:33:48]free response buf [00:33:48]execute_script done [00:33:48]execute_script returns [00:33:48]free content buf [00:33:48]Sock 7.Close socket [00:33:48]Sock 7.Thread stoped [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]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:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:42]accept exits with 9 [00:57:42]New connection [00:57:42]New thread 3066563940 created [00:57:42]Thread 3066707300 joined [00:57:42]Waiting for new connection... [00:57:42] Sock 9.Parse request [00:57:42]Sock 9.Check first char [00:57:42]Sock 9.First char is OK [00:57:42]request: POST /json_proto HTTP/1.0 [00:57:42]Method: POST [00:57:42]URL: /json_proto [00:57:42]Method is POST - this is cgi request [00:57:42]url: /json_proto [00:57:42]query_string will be loaded in cgi processing [00:57:42]execute_cgi json_proto POST (null) [00:57:42]execute_cgi path=json_proto method=POST [00:57:42]POST find Content-Length [00:57:42]Host: 172.17.63.131:8080 [00:57:42]Content-Length: 676 [00:57:42]Content-Type: application/json [00:57:42] [00:57:42]POST finish read [00:57:42]Found Content-Length = 676 [00:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:42]execute_script... [00:57: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)31768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:42]POST & json_proto [00:57:42]process_json_proto [00:57:42]json parsed OK: [00:57:42]protocol is kg_v1.0 [00:57:42]action value=close_receipt [00:57:42]process_action close_receipt [00:57:42]cmd_close_receipt [00:57:42]MH_GetDate [00:57:42]Write to MH i2c: F0 00 00 92 1C 9D [00:57:42]Write i2c OK [00:57:42]MH_I2C_Read... [00:57:42]Read from MH i2c: F0 [00:57:42]MH_I2C_Read... [00:57:42]Read from MH i2c: F0 09 00 [00:57:42]MH_I2C_Read... [00:57:42]Read from MH i2c: F0 09 00 92 1C 00 89 E1 1E 67 22 05 6E 64 8E [00:57:42]GetLastDocTimeStamp 1730075620 [00:57:42]current date 1730077065 [00:57:42]FM_GetShiftState [00:57:42]SAM_PROTO_GetShiftState [00:57:42]wFMCommunicate request_size=4 [00:57:42]MH_SAM_APDU [00:57:42]CAPDU: 80 13 01 00 [00:57:42]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [00:57:42]Write i2c OK [00:57:42]MH_I2C_Read... [00:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:42]Read from MH i2c: E2 [00:57:42]MH_I2C_Read... [00:57:42]Read from MH i2c: E2 0E 00 [00:57:42]MH_I2C_Read... [00:57:42]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7C [00:57:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:57:42]wFMCommunicate OK [00:57:42]SAM_PROTO_GetShiftState done [00:57:42]FM_GetShiftState done [00:57:42]opened in 1730075620 [00:57:42]opened+sec_in_day 1730162020 [00:57:42]quantity*price = 25020 [00:57:42]sum+1 = 25022 [00:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 1 28.10.2024 00:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192453 ФПД: 54077566219460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005745&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192453&fm=54077566219460&tin=02508201610067®Number=0000000000091776&sum=25000 [00:57:44]StoreToDocumentArchive [00:57:44]shift 543 fd 192453 [00:57:44]save to /storage/0543/doc_00192453 [00:57:44]save last doc name /storage/0543/doc_00192453 to /storage/kkm_last_doc_name [00:57:44]save OK [00:57:44]Clear old archive folders... [00:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:57:44]tlvbuf is 019C3B90 [00:57:44]SAM_PROTO_ClearQueue [00:57:44]wFMCommunicate request_size=4 [00:57:44]MH_SAM_APDU [00:57:44]CAPDU: 80 09 00 00 [00:57:44]Write to MH i2c: E2 08 00 A0 1C 80 09 00 00 00 00 00 00 2E [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [00:57:44]RAPDU: 90 00 [00:57:44]wFMCommunicate OK [00:57:44]SAM_PROTO_ClearQueue done [00:57:44]KKMCreateOFDPacket [00:57:44]OFDProtocolAddRootSTLVToBuf [00:57:44]FM_MakeSignedData [00:57:44]FM_MakeSignedData [00:57:44]SAM_PROTO_SignData [00:57:44]wFMCommunicate request_size=4 [00:57:44]MH_SAM_APDU [00:57:44]CAPDU: 80 0D 01 02 [00:57:44]Write to MH i2c: E2 08 00 A1 1C 80 0D 01 02 00 00 00 00 36 [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [00:57:44]RAPDU: 90 00 [00:57:44]wFMCommunicate OK [00:57:44]wFMCommunicate request_size=255 [00:57:44]MH_SAM_APDU [00:57: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 89 E1 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EF 02 00 35 04 06 00 31 [00:57:44]Write to MH i2c: E2 02 01 A2 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 89 E1 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EF 02 00 35 04 06 00 31 00 00 9B [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [00:57:44]RAPDU: 90 00 [00:57:44]wFMCommunicate OK [00:57:44]wFMCommunicate request_size=10 [00:57:44]MH_SAM_APDU [00:57:44]CAPDU: 80 0D 02 02 05 2E EA 1F F4 C4 [00:57:44]Write to MH i2c: E2 0D 00 A3 1C 80 0D 02 02 05 00 2E EA 1F F4 C4 00 00 32 [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [00:57:44]RAPDU: 90 00 [00:57:44]wFMCommunicate OK [00:57:44]wFMCommunicate request_size=4 [00:57:44]MH_SAM_APDU [00:57:44]CAPDU: 80 0D 03 02 [00:57:44]Write to MH i2c: E2 08 00 A4 1C 80 0D 03 02 00 00 00 00 3B [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 0B 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 0B 00 A4 1C 00 2A BF F7 6E 8C AC 62 D1 90 00 F5 [00:57:44]RAPDU: 2A BF F7 6E 8C AC 62 D1 90 00 [00:57:44]wFMCommunicate OK [00:57:44]SAM_PROTO_SignData done [00:57:44]FM_MakeSignedData done [00:57:44]CreateOFDProtocolMessage [00:57:44]wFMCommunicate request_size=4 [00:57:44]MH_SAM_APDU [00:57:44]CAPDU: 80 11 00 00 [00:57:44]Write to MH i2c: E2 08 00 A5 1C 80 11 00 00 00 00 00 00 3B [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:44]Read from MH i2c: E2 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: E2 17 00 [00:57:44]MH_I2C_Read... [00:57:44]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 37 35 34 90 00 8E [00:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:57:44]wFMCommunicate OK [00:57:44]CreateOFDProtocolMessage done [00:57:44]OFDSenderStorePacket 192453 [00:57:44]StoreOFDPacket docnum=192453 [00:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 45 07 01 7B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 89 E1 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EF 02 00 35 04 06 00 31 2E EA 1F F4 C4 2A BF F7 6E 8C AC 62 D1 [00:57:44]CheckFolder [00:57:44]dirname=/storage/ofd_packets [00:57:44]CheckFolder done [00:57:44]ProducePacketName [00:57:44]name=ofd_packets/00192453 [00:57:44]NVStorageSaveData ofd_packets/00192453 [00:57:44]File name is /storage/ofd_packets/00192453 [00:57:44]Write 301 bytes [00:57:44]NVStorageSaveData done [00:57:44]OFDSenderStorePacket done [00:57:44]KKMCreateOFDPacket done [00:57:44]NVStorageSaveData kkm_last_timestamp [00:57:44]File name is /storage/kkm_last_timestamp [00:57:44]Write 4 bytes [00:57:44]NVStorageSaveData done [00:57:44]ExternCall_PrintAddStr [00:57:44]wPrintStart [00:57:44]Write to MH i2c: 01 00 00 A6 1C C2 [00:57:44]Write i2c OK [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: 01 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: 01 07 00 [00:57:44]MH_I2C_Read... [00:57:44]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [00:57:44]RasterBufferAndPrint [00:57:44]line Счет N : (1)31768 [00:57:44]line ИНН: 02508201610067 [00:57:44]line Контрольно-Кассовый Чек [00:57:44]line ПРОДАЖА [00:57:44]line ТРК (МРК, ГНК) : 12 [00:57:44]line Товар: 2710124130 [00:57:44]line Аи-92-К-5 [00:57:44]line 3.740 * 66.90 [00:57:44]line = 250.21 [00:57:44]line НДС 12% НСП 1% [00:57:44]line > о реализуемом товаре [00:57:44]line ОКРУГЛЕНИЕ: -0.21 [00:57:44]line ИТОГО: 250.00 [00:57:44]line Внесено: 250.00 [00:57:44]line СДАЧА: 0.00 [00:57:44]line НСП 1% : 2.21 [00:57:44]line НДС 12% : 26.57 [00:57:44]line Наличными: 250.00 [00:57:44]line Безнал.: 0.00 [00:57:44]line Место: АЗС № 170 "Партнер Нефть" [00:57:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:57:44]line СНО: Общий режим [00:57:44]line Чек 1 28.10.2024 00:57 [00:57:44]line Смена: 543 ФФД: 1.0 [00:57:44]line ЗНМ: 0300000110 [00:57:44]line РНМ: 0000000000091776 [00:57:44]line Версия ККМ: 001 [00:57:44]line ФМ: 0000000000871754 [00:57:44]line ФД: 192453 [00:57:44]line ФПД: 54077566219460 [00:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005745&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192453&fm=54077566219460&tin=02508201610067®Number=0000000000091776&sum=25000 [00:57:44]written 0, free lines is 4095 [00:57:44]OFD Sender: Processing packet 192453 [packets to send 75, broken 74] [00:57:44]ProducePacketName [00:57:44]name=ofd_packets/00192453 [00:57:44]OFD Sender: To server: pG, [00:57:44]CommunicateWithHost lk.salyk.kg:30040 [00:57:44]ConnectInit lk.salyk.kg [00:57:44]Connected sock=10 [00:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 45 07 01 7B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 89 E1 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EF 02 00 35 04 06 00 31 2E EA 1F F4 C4 2A BF F7 6E 8C AC 62 D1 [00:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 93 47 00 A5 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EF 02 00 F4 03 04 00 4F 86 1E 67 B6 04 01 00 00 F0 B9 31 F9 AB CC 6A 14 [00:57:44]CommunicateWithHost err = 0 [00:57:44]CheckOFDResponse [00:57:44]1017 (14) - 77093643461234 [00:57:44]1041 (16) - 0000000000871754 [00:57:44]1040 (4) - 192453 [00:57:44]1012 (4) - 27.10.2024 18:28 [00:57:44]1206 (1) - 0 [00:57:44]OFD Sender: Remove packet 192453 [00:57:44]ProducePacketName [00:57:44]name=ofd_packets/00192453 [00:57:44]NVStorageDeleteData [00:57:45]Write to MH i2c: 01 00 00 D1 1C ED [00:57:45]Write i2c OK [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: 01 [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: 01 07 00 [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: 01 07 00 D1 1C 00 00 00 00 00 AB 0C AB [00:57:45]RasterBufferAndPrint [00:57:45]line [00:57:45]line [00:57:45]line [00:57:45]line [00:57:45]line [00:57:45]written 0, free lines is 3249 [00:57:45]MH_Cut [00:57:45]Write to MH i2c: D1 01 00 D8 1C 01 C6 [00:57:45]Write i2c OK [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: D1 [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: D1 01 00 [00:57:45]MH_I2C_Read... [00:57:45]Read from MH i2c: D1 01 00 D8 1C 00 C5 [00:57:45]Write to MH i2c: 01 00 00 D9 1C F5 [00:57:45]Write i2c OK [00:57:45]MH_I2C_Read... [00:57:45]OFD Sender: No OFD packet to send [00:57:45]*** Cut start [00:57:45]*** Partial cut [00:57:45]*** CUTSNS_PIN = 1 [00:57:45]*** CUTSNS_PIN = 0 [00:57:46]*** Brake cut motor [00:57:46]Read from MH i2c: 01 [00:57:46]MH_I2C_Read... [00:57:46]*** Stop cut motor [00:57:46]*** Cut end [00:57:46]Read from MH i2c: 01 07 00 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 FF 0F 0A [00:57:46]process_action close_receipt done [00:57:46]requested_data is exist [00:57:46]produce_requested_data [00:57:46]requested_item fm.sn is exist - process it [00:57:46]wFMCommunicate request_size=4 [00:57:46]MH_SAM_APDU [00:57:46]CAPDU: 80 11 00 00 [00:57:46]Write to MH i2c: E2 08 00 DA 1C 80 11 00 00 00 00 00 00 70 [00:57:46]Write i2c OK [00:57:46]MH_I2C_Read... [00:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:46]Read from MH i2c: E2 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 17 00 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 17 00 DA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [00:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:57:46]wFMCommunicate OK [00:57:46]requested_item fd.num is exist - process it [00:57:46]SAM_PROTO_GetFieldsCounters [00:57:46]wFMCommunicate request_size=4 [00:57:46]MH_SAM_APDU [00:57:46]CAPDU: 80 13 00 00 [00:57:46]Write to MH i2c: E2 08 00 DB 1C 80 13 00 00 00 00 00 00 73 [00:57:46]Write i2c OK [00:57:46]MH_I2C_Read... [00:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:46]Read from MH i2c: E2 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 62 00 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 62 00 DB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [00:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:46]wFMCommunicate OK [00:57:46]SAM_PROTO_GetFieldsCounters done [00:57:46]requested_item shift.num is exist - process it [00:57:46]requested_item shift.opened is exist - process it [00:57:46]req_shift_opened [00:57:46]FM_GetShiftState [00:57:46]SAM_PROTO_GetShiftState [00:57:46]wFMCommunicate request_size=4 [00:57:46]MH_SAM_APDU [00:57:46]CAPDU: 80 13 01 00 [00:57:46]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [00:57:46]Write i2c OK [00:57:46]MH_I2C_Read... [00:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:46]Read from MH i2c: E2 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 0E 00 [00:57:46]MH_I2C_Read... [00:57:46]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C5 [00:57:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:57:46]wFMCommunicate OK [00:57:46]SAM_PROTO_GetShiftState done [00:57:46]FM_GetShiftState done [00:57:46]req_shift_opened done [00:57:46]requested_item shift.open_date is exist - process it [00:57:46]req_shift_open_date [00:57:46]req_shift_open_date done [00:57:46]produce_requested_data done [00:57:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192453,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:57:46]process_action_free close_receipt [00:57:46]json_value_free [00:57:46]json_value_free done [00:57:46]process_json_proto returns [00:57:46]Send response to host [00:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192453,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:57:46]free response buf [00:57:46]execute_script done [00:57:46]execute_script returns [00:57:46]free content buf [00:57:46]Sock 9.Close socket [00:57:46]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]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:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:28:59]accept exits with 7 [01:28:59]New connection [01:28:59]New thread 3066707300 created [01:28:59]Thread 3066563940 joined [01:28:59]Waiting for new connection... [01:28:59] Sock 7.Parse request [01:28:59]Sock 7.Check first char [01:28:59]Sock 7.First char is OK [01:28:59]request: POST /json_proto HTTP/1.0 [01:28:59]Method: POST [01:28:59]URL: /json_proto [01:28:59]Method is POST - this is cgi request [01:28:59]url: /json_proto [01:28:59]query_string will be loaded in cgi processing [01:28:59]execute_cgi json_proto POST (null) [01:28:59]execute_cgi path=json_proto method=POST [01:28:59]POST find Content-Length [01:28:59]Host: 172.17.63.131:8080 [01:28:59]Content-Length: 676 [01:28:59]Content-Type: application/json [01:28:59] [01:28:59]POST finish read [01:28:59]Found Content-Length = 676 [01:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:59]execute_script... [01:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:59]POST & json_proto [01:28:59]process_json_proto [01:28:59]json parsed OK: [01:28:59]protocol is kg_v1.0 [01:28:59]action value=close_receipt [01:28:59]process_action close_receipt [01:28:59]cmd_close_receipt [01:28:59]MH_GetDate [01:28:59]Write to MH i2c: F0 00 00 DD 1C E8 [01:28:59]Write i2c OK [01:28:59]MH_I2C_Read... [01:28:59]Read from MH i2c: F0 [01:28:59]MH_I2C_Read... [01:28:59]Read from MH i2c: F0 09 00 [01:28:59]MH_I2C_Read... [01:28:59]Read from MH i2c: F0 09 00 DD 1C 00 DE E8 1E 67 22 05 6E 64 35 [01:28:59]GetLastDocTimeStamp 1730077065 [01:28:59]current date 1730078942 [01:28:59]FM_GetShiftState [01:28:59]SAM_PROTO_GetShiftState [01:28:59]wFMCommunicate request_size=4 [01:28:59]MH_SAM_APDU [01:28:59]CAPDU: 80 13 01 00 [01:28:59]Write to MH i2c: E2 08 00 DE 1C 80 13 01 00 00 00 00 00 77 [01:28:59]Write i2c OK [01:28:59]MH_I2C_Read... [01:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:59]Read from MH i2c: E2 [01:28:59]MH_I2C_Read... [01:28:59]Read from MH i2c: E2 0E 00 [01:28:59]MH_I2C_Read... [01:28:59]Read from MH i2c: E2 0E 00 DE 1C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C7 [01:28:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [01:28:59]wFMCommunicate OK [01:28:59]SAM_PROTO_GetShiftState done [01:28:59]FM_GetShiftState done [01:28:59]opened in 1730075620 [01:28:59]opened+sec_in_day 1730162020 [01:28:59]quantity*price = 14049 [01:28:59]sum+1 = 14050 [01:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре [01:29:01]line ОКРУГЛЕНИЕ: -0.49 [01:29:01]line ИТОГО: 140.00 [01:29:01]line Внесено: 140.00 [01:29:01]line СДАЧА: 0.00 [01:29:01]line НСП 1% : 1.24 [01:29:01]line НДС 12% : 14.92 [01:29:01]line Наличными: 140.00 [01:29:01]line Безнал.: 0.00 [01:29:01]line Место: АЗС № 170 "Партнер Нефть" [01:29:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:29:01]line СНО: Общий режим [01:29:01]line Чек 2 28.10.2024 01:29 [01:29:01]line Смена: 543 ФФД: 1.0 [01:29:01]line ЗНМ: 0300000110 [01:29:01]line РНМ: 0000000000091776 [01:29:01]line Версия ККМ: 001 [01:29:01]line ФМ: 0000000000871754 [01:29:01]line ФД: 192454 [01:29:01]line ФПД: 275933267138811 [01:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T012902&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192454&fm=275933267138811&tin=02508201610067®Number=0000000000091776&sum=14000 [01:29:01]OFD Sender: Processing packet 192454 [packets to send 75, broken 74] [01:29:01]ProducePacketName [01:29:01]name=ofd_packets/00192454 [01:29:01]OFD Sender: To server: pG, [01:29:01]CommunicateWithHost lk.salyk.kg:30040 [01:29:01]ConnectInit lk.salyk.kg [01:29:01]written 0, free lines is 4095 [01:29:02]Connected sock=9 [01:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F 0D 07 01 D6 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 02 00 00 00 F4 03 04 00 DE E8 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EF 02 00 35 04 06 00 FA F5 B8 5E 98 FB C8 06 9A D2 0C 04 D1 C7 [01:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 EB 47 00 64 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EF 02 00 F4 03 04 00 A4 8D 1E 67 B6 04 01 00 00 55 90 E0 EC 17 E2 5F 6E [01:29:02]CommunicateWithHost err = 0 [01:29:02]CheckOFDResponse [01:29:02]1017 (14) - 77093643461234 [01:29:02]1041 (16) - 0000000000871754 [01:29:02]1040 (4) - 192454 [01:29:02]1012 (4) - 27.10.2024 18:59 [01:29:02]1206 (1) - 0 [01:29:02]OFD Sender: Remove packet 192454 [01:29:02]ProducePacketName [01:29:02]name=ofd_packets/00192454 [01:29:02]NVStorageDeleteData [01:29:02]Write to MH i2c: 01 00 00 1C 1D 39 [01:29:02]Write i2c OK [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: 01 [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: 01 07 00 [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: 01 07 00 1C 1D 00 00 00 00 00 AA 0C F6 [01:29:02]RasterBufferAndPrint [01:29:02]line [01:29:02]line [01:29:02]line [01:29:02]line [01:29:02]line [01:29:02]written 0, free lines is 3251 [01:29:02]MH_Cut [01:29:02]Write to MH i2c: D1 01 00 23 1D 01 12 [01:29:02]Write i2c OK [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: D1 [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: D1 01 00 [01:29:02]MH_I2C_Read... [01:29:02]Read from MH i2c: D1 01 00 23 1D 00 11 [01:29:02]Write to MH i2c: 01 00 00 24 1D 41 [01:29:02]Write i2c OK [01:29:02]MH_I2C_Read... [01:29:02]OFD Sender: No OFD packet to send [01:29:03]*** Cut start [01:29:03]*** Partial cut [01:29:03]*** CUTSNS_PIN = 1 [01:29:03]*** CUTSNS_PIN = 0 [01:29:03]*** Brake cut motor [01:29:03]Read from MH i2c: 01 [01:29:03]MH_I2C_Read... [01:29:03]*** Stop cut motor [01:29:03]*** Cut end [01:29:03]Read from MH i2c: 01 07 00 [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: 01 07 00 24 1D 00 00 00 00 00 FF 0F 56 [01:29:03]process_action close_receipt done [01:29:03]requested_data is exist [01:29:03]produce_requested_data [01:29:03]requested_item fm.sn is exist - process it [01:29:03]wFMCommunicate request_size=4 [01:29:03]MH_SAM_APDU [01:29:03]CAPDU: 80 11 00 00 [01:29:03]Write to MH i2c: E2 08 00 25 1D 80 11 00 00 00 00 00 00 BC [01:29:03]Write i2c OK [01:29:03]MH_I2C_Read... [01:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:03]Read from MH i2c: E2 [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: E2 17 00 [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: E2 17 00 25 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [01:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:29:03]wFMCommunicate OK [01:29:03]requested_item fd.num is exist - process it [01:29:03]SAM_PROTO_GetFieldsCounters [01:29:03]wFMCommunicate request_size=4 [01:29:03]MH_SAM_APDU [01:29:03]CAPDU: 80 13 00 00 [01:29:03]Write to MH i2c: E2 08 00 26 1D 80 13 00 00 00 00 00 00 BF [01:29:03]Write i2c OK [01:29:03]MH_I2C_Read... [01:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:04]Read from MH i2c: E2 [01:29:04]MH_I2C_Read... [01:29:04]Read from MH i2c: E2 62 00 [01:29:04]MH_I2C_Read... [01:29:04]Read from MH i2c: E2 62 00 26 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [01: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 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:04]wFMCommunicate OK [01:29:04]SAM_PROTO_GetFieldsCounters done [01:29:04]requested_item shift.num is exist - process it [01:29:04]requested_item shift.opened is exist - process it [01:29:04]req_shift_opened [01:29:04]FM_GetShiftState [01:29:04]SAM_PROTO_GetShiftState [01:29:04]wFMCommunicate request_size=4 [01:29:04]MH_SAM_APDU [01:29:04]CAPDU: 80 13 01 00 [01:29:04]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [01:29:04]Write i2c OK [01:29:04]MH_I2C_Read... [01:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:04]Read from MH i2c: E2 [01:29:04]MH_I2C_Read... [01:29:04]Read from MH i2c: E2 0E 00 [01:29:04]MH_I2C_Read... [01:29:04]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 11 [01:29:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [01:29:04]wFMCommunicate OK [01:29:04]SAM_PROTO_GetShiftState done [01:29:04]FM_GetShiftState done [01:29:04]req_shift_opened done [01:29:04]requested_item shift.open_date is exist - process it [01:29:04]req_shift_open_date [01:29:04]req_shift_open_date done [01:29:04]produce_requested_data done [01:29:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192454,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [01:29:04]process_action_free close_receipt [01:29:04]json_value_free [01:29:04]json_value_free done [01:29:04]process_json_proto returns [01:29:04]Send response to host [01:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192454,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [01:29:04]free response buf [01:29:04]execute_script done [01:29:04]execute_script returns [01:29:04]free content buf [01:29:04]Sock 7.Close socket [01:29:04]Sock 7.Thread stoped [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:24]ConnectInit Can't connect to host [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:15]accept exits with 10 [01:40:15]New connection [01:40:15]New thread 3066563940 created [01:40:15]Thread 3066707300 joined [01:40:15]Waiting for new connection... [01:40:15] Sock 10.Parse request [01:40:15]Sock 10.Check first char [01:40:15]Sock 10.First char is OK [01:40:15]request: POST /json_proto HTTP/1.0 [01:40:15]Method: POST [01:40:15]URL: /json_proto [01:40:15]Method is POST - this is cgi request [01:40:15]url: /json_proto [01:40:15]query_string will be loaded in cgi processing [01:40:15]execute_cgi json_proto POST (null) [01:40:15]execute_cgi path=json_proto method=POST [01:40:15]POST find Content-Length [01:40:15]Host: 172.17.63.131:8080 [01:40:15]Content-Length: 681 [01:40:15]Content-Type: application/json [01:40:15] [01:40:15]POST finish read [01:40:15]Found Content-Length = 681 [01:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:15]execute_script... [01:40: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)31770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:15]POST & json_proto [01:40:15]process_json_proto [01:40:15]json parsed OK: [01:40:15]protocol is kg_v1.0 [01:40:15]action value=close_receipt [01:40:15]process_action close_receipt [01:40:15]cmd_close_receipt [01:40:15]MH_GetDate [01:40:15]Write to MH i2c: F0 00 00 28 1D 34 [01:40:15]Write i2c OK [01:40:15]MH_I2C_Read... [01:40:15]Read from MH i2c: F0 [01:40:15]MH_I2C_Read... [01:40:15]Read from MH i2c: F0 09 00 [01:40:15]MH_I2C_Read... [01:40:15]Read from MH i2c: F0 09 00 28 1D 00 81 EB 1E 67 22 05 6E 64 27 [01:40:15]GetLastDocTimeStamp 1730078942 [01:40:15]current date 1730079617 [01:40:15]FM_GetShiftState [01:40:15]SAM_PROTO_GetShiftState [01:40:15]wFMCommunicate request_size=4 [01:40:15]MH_SAM_APDU [01:40:15]CAPDU: 80 13 01 00 [01:40:15]Write to MH i2c: E2 08 00 29 1D 80 13 01 00 00 00 00 00 C3 [01:40:15]Write i2c OK [01:40:15]MH_I2C_Read... [01:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:15]Read from MH i2c: E2 [01:40:15]MH_I2C_Read... [01:40:15]Read from MH i2c: E2 0E 00 [01:40:15]MH_I2C_Read... [01:40:15]Read from MH i2c: E2 0E 00 29 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 13 [01:40:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [01:40:15]wFMCommunicate OK [01:40:15]SAM_PROTO_GetShiftState done [01:40:15]FM_GetShiftState done [01:40:15]opened in 1730075620 [01:40:15]opened+sec_in_day 1730162020 [01:40:15]quantity*price = 100015 [01:40:15]sum+1 = 100017 [01:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 3 28.10.2024 01:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192455 ФПД: 194422148797773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T014017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192455&fm=194422148797773&tin=02508201610067®Number=0000000000091776&sum=100000 [01:40:16]StoreToDocumentArchive [01:40:16]shift 543 fd 192455 [01:40:16]save to /storage/0543/doc_00192455 [01:40:16]save last doc name /storage/0543/doc_00192455 to /storage/kkm_last_doc_name [01:40:16]save OK [01:40:16]Clear old archive folders... [01:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:40:16]tlvbuf is 019D4E50 [01:40:16]SAM_PROTO_ClearQueue [01:40:16]wFMCommunicate request_size=4 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 09 00 00 [01:40:16]Write to MH i2c: E2 08 00 36 1D 80 09 00 00 00 00 00 00 C5 [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [01:40:16]RAPDU: 90 00 [01:40:16]wFMCommunicate OK [01:40:16]SAM_PROTO_ClearQueue done [01:40:16]KKMCreateOFDPacket [01:40:16]OFDProtocolAddRootSTLVToBuf [01:40:16]FM_MakeSignedData [01:40:16]FM_MakeSignedData [01:40:16]SAM_PROTO_SignData [01:40:16]wFMCommunicate request_size=4 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 0D 01 02 [01:40:16]Write to MH i2c: E2 08 00 37 1D 80 0D 01 02 00 00 00 00 CD [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [01:40:16]RAPDU: 90 00 [01:40:16]wFMCommunicate OK [01:40:16]wFMCommunicate request_size=255 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 81 EB 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EF 02 00 35 04 06 00 B0 [01:40:16]Write to MH i2c: E2 02 01 38 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 81 EB 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EF 02 00 35 04 06 00 B0 00 00 D8 [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [01:40:16]RAPDU: 90 00 [01:40:16]wFMCommunicate OK [01:40:16]wFMCommunicate request_size=10 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 0D 02 02 05 D3 6F 1D 95 4D [01:40:16]Write to MH i2c: E2 0D 00 39 1D 80 0D 02 02 05 00 D3 6F 1D 95 4D 00 00 1B [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [01:40:16]RAPDU: 90 00 [01:40:16]wFMCommunicate OK [01:40:16]wFMCommunicate request_size=4 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 0D 03 02 [01:40:16]Write to MH i2c: E2 08 00 3A 1D 80 0D 03 02 00 00 00 00 D2 [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 0B 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 0B 00 3A 1D 00 14 AC E2 4E 2B 49 D4 60 90 00 6B [01:40:16]RAPDU: 14 AC E2 4E 2B 49 D4 60 90 00 [01:40:16]wFMCommunicate OK [01:40:16]SAM_PROTO_SignData done [01:40:16]FM_MakeSignedData done [01:40:16]CreateOFDProtocolMessage [01:40:16]wFMCommunicate request_size=4 [01:40:16]MH_SAM_APDU [01:40:16]CAPDU: 80 11 00 00 [01:40:16]Write to MH i2c: E2 08 00 3B 1D 80 11 00 00 00 00 00 00 D2 [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:16]Read from MH i2c: E2 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 17 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: E2 17 00 3B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [01:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:40:16]wFMCommunicate OK [01:40:16]CreateOFDProtocolMessage done [01:40:16]OFDSenderStorePacket 192455 [01:40:16]StoreOFDPacket docnum=192455 [01:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 A3 07 01 32 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 81 EB 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EF 02 00 35 04 06 00 B0 D3 6F 1D 95 4D 14 AC E2 4E 2B 49 D4 60 [01:40:16]CheckFolder [01:40:16]dirname=/storage/ofd_packets [01:40:16]CheckFolder done [01:40:16]ProducePacketName [01:40:16]name=ofd_packets/00192455 [01:40:16]NVStorageSaveData ofd_packets/00192455 [01:40:16]File name is /storage/ofd_packets/00192455 [01:40:16]Write 301 bytes [01:40:16]NVStorageSaveData done [01:40:16]OFDSenderStorePacket done [01:40:16]KKMCreateOFDPacket done [01:40:16]NVStorageSaveData kkm_last_timestamp [01:40:16]File name is /storage/kkm_last_timestamp [01:40:16]Write 4 bytes [01:40:16]NVStorageSaveData done [01:40:16]ExternCall_PrintAddStr [01:40:16]wPrintStart [01:40:16]Write to MH i2c: 01 00 00 3C 1D 59 [01:40:16]Write i2c OK [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: 01 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: 01 07 00 [01:40:16]MH_I2C_Read... [01:40:16]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 FF 0F 6E [01:40:16]RasterBufferAndPrint [01:40:16]line Счет N : (1)31770 [01:40:16]line ИНН: 02508201610067 [01:40:16]line Контрольно-Кассовый Чек [01:40:16]line ПРОДАЖА [01:40:16]line ТРК (МРК, ГНК) : 21 [01:40:16]line Товар: 2710124130 [01:40:16]line Аи-92-К-5 [01:40:16]line 14.950 * 66.90 [01:40:16]line = 1000.16 [01:40:16]line НДС 12% НСП 1% [01:40:16]line > о реализуемом товаре [01:40:16]line ОКРУГЛЕНИЕ: -0.16 [01:40:16]line ИТОГО: 1000.00 [01:40:16]line Внесено: 1000.00 [01:40:16]line СДАЧА: 0.00 [01:40:16]line НСП 1% : 8.85 [01:40:16]line НДС 12% : 106.21 [01:40:16]line Наличными: 1000.00 [01:40:16]line Безнал.: 0.00 [01:40:16]line Место: АЗС № 170 "Партнер Нефть" [01:40:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:40:16]line СНО: Общий режим [01:40:16]line Чек 3 28.10.2024 01:40 [01:40:16]line Смена: 543 ФФД: 1.0 [01:40:16]line ЗНМ: 0300000110 [01:40:16]line РНМ: 0000000000091776 [01:40:16]line Версия ККМ: 001 [01:40:16]line ФМ: 0000000000871754 [01:40:16]line ФД: 192455 [01:40:16]line ФПД: 194422148797773 [01:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T014017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192455&fm=194422148797773&tin=02508201610067®Number=0000000000091776&sum=100000 [01:40:17]OFD Sender: Processing packet 192455 [packets to send 75, broken 74] [01:40:17]ProducePacketName [01:40:17]name=ofd_packets/00192455 [01:40:17]OFD Sender: To server: pG, [01:40:17]CommunicateWithHost lk.salyk.kg:30040 [01:40:17]ConnectInit lk.salyk.kg [01:40:17]written 0, free lines is 4095 [01:40:17]Connected sock=9 [01:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 A3 07 01 32 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 81 EB 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EF 02 00 35 04 06 00 B0 D3 6F 1D 95 4D 14 AC E2 4E 2B 49 D4 60 [01:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 54 47 00 4B B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EF 02 00 F4 03 04 00 47 90 1E 67 B6 04 01 00 00 08 3E 1F 59 09 A7 A7 5E [01:40:17]CommunicateWithHost err = 0 [01:40:17]CheckOFDResponse [01:40:17]1017 (14) - 77093643461234 [01:40:17]1041 (16) - 0000000000871754 [01:40:17]1040 (4) - 192455 [01:40:17]1012 (4) - 27.10.2024 19:11 [01:40:17]1206 (1) - 0 [01:40:17]OFD Sender: Remove packet 192455 [01:40:17]ProducePacketName [01:40:17]name=ofd_packets/00192455 [01:40:17]NVStorageDeleteData [01:40:17]Write to MH i2c: 01 00 00 67 1D 84 [01:40:17]Write i2c OK [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: 01 [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: 01 07 00 [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: 01 07 00 67 1D 00 00 00 00 00 B3 0C 4A [01:40:17]RasterBufferAndPrint [01:40:17]line [01:40:17]line [01:40:17]line [01:40:17]line [01:40:17]line [01:40:17]written 0, free lines is 3256 [01:40:17]MH_Cut [01:40:17]Write to MH i2c: D1 01 00 6E 1D 01 5D [01:40:17]Write i2c OK [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: D1 [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: D1 01 00 [01:40:17]MH_I2C_Read... [01:40:17]Read from MH i2c: D1 01 00 6E 1D 00 5C [01:40:17]Write to MH i2c: 01 00 00 6F 1D 8C [01:40:17]Write i2c OK [01:40:17]MH_I2C_Read... [01:40:17]OFD Sender: No OFD packet to send [01:40:18]*** Cut start [01:40:18]*** Partial cut [01:40:18]*** CUTSNS_PIN = 1 [01:40:18]*** CUTSNS_PIN = 0 [01:40:18]*** Brake cut motor [01:40:18]Read from MH i2c: 01 [01:40:18]MH_I2C_Read... [01:40:18]*** Stop cut motor [01:40:18]*** Cut end [01:40:18]Read from MH i2c: 01 07 00 [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: 01 07 00 6F 1D 00 00 00 00 00 FF 0F A1 [01:40:18]process_action close_receipt done [01:40:18]requested_data is exist [01:40:18]produce_requested_data [01:40:18]requested_item fm.sn is exist - process it [01:40:18]wFMCommunicate request_size=4 [01:40:18]MH_SAM_APDU [01:40:18]CAPDU: 80 11 00 00 [01:40:18]Write to MH i2c: E2 08 00 70 1D 80 11 00 00 00 00 00 00 07 [01:40:18]Write i2c OK [01:40:18]MH_I2C_Read... [01:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:19]Read from MH i2c: E2 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 17 00 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 17 00 70 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [01:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:40:19]wFMCommunicate OK [01:40:19]requested_item fd.num is exist - process it [01:40:19]SAM_PROTO_GetFieldsCounters [01:40:19]wFMCommunicate request_size=4 [01:40:19]MH_SAM_APDU [01:40:19]CAPDU: 80 13 00 00 [01:40:19]Write to MH i2c: E2 08 00 71 1D 80 13 00 00 00 00 00 00 0A [01:40:19]Write i2c OK [01:40:19]MH_I2C_Read... [01:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:19]Read from MH i2c: E2 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 62 00 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 62 00 71 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [01:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:40:19]wFMCommunicate OK [01:40:19]SAM_PROTO_GetFieldsCounters done [01:40:19]requested_item shift.num is exist - process it [01:40:19]requested_item shift.opened is exist - process it [01:40:19]req_shift_opened [01:40:19]FM_GetShiftState [01:40:19]SAM_PROTO_GetShiftState [01:40:19]wFMCommunicate request_size=4 [01:40:19]MH_SAM_APDU [01:40:19]CAPDU: 80 13 01 00 [01:40:19]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [01:40:19]Write i2c OK [01:40:19]MH_I2C_Read... [01:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:19]Read from MH i2c: E2 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 0E 00 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5C [01:40:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [01:40:19]wFMCommunicate OK [01:40:19]SAM_PROTO_GetShiftState done [01:40:19]FM_GetShiftState done [01:40:19]req_shift_opened done [01:40:19]requested_item shift.open_date is exist - process it [01:40:19]req_shift_open_date [01:40:19]req_shift_open_date done [01:40:19]produce_requested_data done [01:40:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192455,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [01:40:19]process_action_free close_receipt [01:40:19]json_value_free [01:40:19]json_value_free done [01:40:19]process_json_proto returns [01:40:19]Send response to host [01:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192455,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [01:40:19]free response buf [01:40:19]execute_script done [01:40:19]execute_script returns [01:40:19]free content buf [01:40:19]Sock 10.Close socket [01:40:19]Sock 10.Thread stoped [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59: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:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:34]accept exits with 7 [02:21:34]New connection [02:21:34]New thread 3066707300 created [02:21:34]Thread 3066563940 joined [02:21:34]Waiting for new connection... [02:21:34] Sock 7.Parse request [02:21:34]Sock 7.Check first char [02:21:34]Sock 7.First char is OK [02:21:34]request: POST /json_proto HTTP/1.0 [02:21:34]Method: POST [02:21:34]URL: /json_proto [02:21:34]Method is POST - this is cgi request [02:21:34]url: /json_proto [02:21:34]query_string will be loaded in cgi processing [02:21:34]execute_cgi json_proto POST (null) [02:21:34]execute_cgi path=json_proto method=POST [02:21:34]POST find Content-Length [02:21:34]Host: 172.17.63.131:8080 [02:21:34]Content-Length: 676 [02:21:34]Content-Type: application/json [02:21:34] [02:21:34]POST finish read [02:21:34]Found Content-Length = 676 [02:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:34]execute_script... [02:21: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)31771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:34]POST & json_proto [02:21:34]process_json_proto [02:21:34]json parsed OK: [02:21:34]protocol is kg_v1.0 [02:21:34]action value=close_receipt [02:21:34]process_action close_receipt [02:21:34]cmd_close_receipt [02:21:34]MH_GetDate [02:21:34]Write to MH i2c: F0 00 00 73 1D 7F [02:21:34]Write i2c OK [02:21:34]MH_I2C_Read... [02:21:34]Read from MH i2c: F0 [02:21:34]MH_I2C_Read... [02:21:34]Read from MH i2c: F0 09 00 [02:21:34]MH_I2C_Read... [02:21:34]Read from MH i2c: F0 09 00 73 1D 00 31 F5 1E 67 22 05 6E 64 2C [02:21:34]GetLastDocTimeStamp 1730079617 [02:21:34]current date 1730082097 [02:21:34]FM_GetShiftState [02:21:34]SAM_PROTO_GetShiftState [02:21:34]wFMCommunicate request_size=4 [02:21:34]MH_SAM_APDU [02:21:34]CAPDU: 80 13 01 00 [02:21:34]Write to MH i2c: E2 08 00 74 1D 80 13 01 00 00 00 00 00 0E [02:21:34]Write i2c OK [02:21:34]MH_I2C_Read... [02:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:34]Read from MH i2c: E2 [02:21:34]MH_I2C_Read... [02:21:34]Read from MH i2c: E2 0E 00 [02:21:34]MH_I2C_Read... [02:21:34]Read from MH i2c: E2 0E 00 74 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5E [02:21:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [02:21:34]wFMCommunicate OK [02:21:34]SAM_PROTO_GetShiftState done [02:21:34]FM_GetShiftState done [02:21:34]opened in 1730075620 [02:21:34]opened+sec_in_day 1730162020 [02:21:34]quantity*price = 40006 [02:21:34]sum+1 = 40007 [02:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 4 28.10.2024 02:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192456 ФПД: 273299128787819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T022137&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192456&fm=273299128787819&tin=02508201610067®Number=0000000000091776&sum=40000 [02:21:35]StoreToDocumentArchive [02:21:35]shift 543 fd 192456 [02:21:35]save to /storage/0543/doc_00192456 [02:21:35]save last doc name /storage/0543/doc_00192456 to /storage/kkm_last_doc_name [02:21:35]save OK [02:21:35]Clear old archive folders... [02:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:21:35]tlvbuf is B6D6C2D0 [02:21:35]SAM_PROTO_ClearQueue [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 09 00 00 [02:21:35]Write to MH i2c: E2 08 00 81 1D 80 09 00 00 00 00 00 00 10 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [02:21:35]RAPDU: 90 00 [02:21:35]wFMCommunicate OK [02:21:35]SAM_PROTO_ClearQueue done [02:21:35]KKMCreateOFDPacket [02:21:35]OFDProtocolAddRootSTLVToBuf [02:21:35]FM_MakeSignedData [02:21:35]FM_MakeSignedData [02:21:35]SAM_PROTO_SignData [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 0D 01 02 [02:21:35]Write to MH i2c: E2 08 00 82 1D 80 0D 01 02 00 00 00 00 18 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:36]Read from MH i2c: E2 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [02:21:36]RAPDU: 90 00 [02:21:36]wFMCommunicate OK [02:21:36]wFMCommunicate request_size=255 [02:21:36]MH_SAM_APDU [02:21: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 31 F5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EF 02 00 35 04 06 00 F8 [02:21:36]Write to MH i2c: E2 02 01 83 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 31 F5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EF 02 00 35 04 06 00 F8 00 00 FC [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:36]Read from MH i2c: E2 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [02:21:36]RAPDU: 90 00 [02:21:36]wFMCommunicate OK [02:21:36]wFMCommunicate request_size=10 [02:21:36]MH_SAM_APDU [02:21:36]CAPDU: 80 0D 02 02 05 90 69 7D 23 6B [02:21:36]Write to MH i2c: E2 0D 00 84 1D 80 0D 02 02 05 00 90 69 7D 23 6B 00 00 29 [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:36]Read from MH i2c: E2 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [02:21:36]RAPDU: 90 00 [02:21:36]wFMCommunicate OK [02:21:36]wFMCommunicate request_size=4 [02:21:36]MH_SAM_APDU [02:21:36]CAPDU: 80 0D 03 02 [02:21:36]Write to MH i2c: E2 08 00 85 1D 80 0D 03 02 00 00 00 00 1D [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:36]Read from MH i2c: E2 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 0B 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 0B 00 85 1D 00 17 04 AD 1C FC 44 D8 EF 90 00 09 [02:21:36]RAPDU: 17 04 AD 1C FC 44 D8 EF 90 00 [02:21:36]wFMCommunicate OK [02:21:36]SAM_PROTO_SignData done [02:21:36]FM_MakeSignedData done [02:21:36]CreateOFDProtocolMessage [02:21:36]wFMCommunicate request_size=4 [02:21:36]MH_SAM_APDU [02:21:36]CAPDU: 80 11 00 00 [02:21:36]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:36]Read from MH i2c: E2 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 17 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [02:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:21:36]wFMCommunicate OK [02:21:36]CreateOFDProtocolMessage done [02:21:36]OFDSenderStorePacket 192456 [02:21:36]StoreOFDPacket docnum=192456 [02:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 7C 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 31 F5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EF 02 00 35 04 06 00 F8 90 69 7D 23 6B 17 04 AD 1C FC 44 D8 EF [02:21:36]CheckFolder [02:21:36]dirname=/storage/ofd_packets [02:21:36]CheckFolder done [02:21:36]ProducePacketName [02:21:36]name=ofd_packets/00192456 [02:21:36]NVStorageSaveData ofd_packets/00192456 [02:21:36]File name is /storage/ofd_packets/00192456 [02:21:36]Write 301 bytes [02:21:36]NVStorageSaveData done [02:21:36]OFDSenderStorePacket done [02:21:36]KKMCreateOFDPacket done [02:21:36]NVStorageSaveData kkm_last_timestamp [02:21:36]File name is /storage/kkm_last_timestamp [02:21:36]Write 4 bytes [02:21:36]NVStorageSaveData done [02:21:36]ExternCall_PrintAddStr [02:21:36]wPrintStart [02:21:36]Write to MH i2c: 01 00 00 87 1D A4 [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 07 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 07 00 87 1D 00 00 00 00 00 FF 0F B9 [02:21:36]RasterBufferAndPrint [02:21:36]line Счет N : (1)31771 [02:21:36]line ИНН: 02508201610067 [02:21:36]line Контрольно-Кассовый Чек [02:21:36]line ПРОДАЖА [02:21:36]line ТРК (МРК, ГНК) : 12 [02:21:36]line Товар: 2710124130 [02:21:36]line Аи-92-К-5 [02:21:36]line 5.980 * 66.90 [02:21:36]line = 400.06 [02:21:36]line НДС 12% НСП 1% [02:21:36]line > о реализуемом товаре [02:21:36]line ОКРУГЛЕНИЕ: -0.06 [02:21:36]line ИТОГО: 400.00 [02:21:36]line Внесено: 400.00 [02:21:36]line СДАЧА: 0.00 [02:21:36]line НСП 1% : 3.54 [02:21:36]line НДС 12% : 42.48 [02:21:36]line Наличными: 400.00 [02:21:36]line Безнал.: 0.00 [02:21:36]line Место: АЗС № 170 "Партнер Нефть" [02:21:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [02:21:36]line СНО: Общий режим [02:21:36]line Чек 4 28.10.2024 02:21 [02:21:36]line Смена: 543 ФФД: 1.0 [02:21:36]line ЗНМ: 0300000110 [02:21:36]line РНМ: 0000000000091776 [02:21:36]line Версия ККМ: 001 [02:21:36]line ФМ: 0000000000871754 [02:21:36]line ФД: 192456 [02:21:36]line ФПД: 273299128787819 [02:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T022137&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192456&fm=273299128787819&tin=02508201610067®Number=0000000000091776&sum=40000 [02:21:36]OFD Sender: Processing packet 192456 [packets to send 75, broken 74] [02:21:36]ProducePacketName [02:21:36]name=ofd_packets/00192456 [02:21:36]OFD Sender: To server: pG, [02:21:36]CommunicateWithHost lk.salyk.kg:30040 [02:21:36]ConnectInit lk.salyk.kg [02:21:36]written 0, free lines is 4095 [02:21:36]Connected sock=10 [02:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 7C 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 31 F5 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EF 02 00 35 04 06 00 F8 90 69 7D 23 6B 17 04 AD 1C FC 44 D8 EF [02:21:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF BA 47 00 09 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EF 02 00 F4 03 04 00 F7 99 1E 67 B6 04 01 00 00 16 27 D1 27 48 6C 41 A3 [02:21:37]CommunicateWithHost err = 0 [02:21:37]CheckOFDResponse [02:21:37]1017 (14) - 77093643461234 [02:21:37]1041 (16) - 0000000000871754 [02:21:37]1040 (4) - 192456 [02:21:37]1012 (4) - 27.10.2024 19:52 [02:21:37]1206 (1) - 0 [02:21:37]OFD Sender: Remove packet 192456 [02:21:37]ProducePacketName [02:21:37]name=ofd_packets/00192456 [02:21:37]NVStorageDeleteData [02:21:37]Write to MH i2c: 01 00 00 B2 1D CF [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: 01 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: 01 07 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: 01 07 00 B2 1D 00 00 00 00 00 9B 0C 7D [02:21:37]RasterBufferAndPrint [02:21:37]line [02:21:37]line [02:21:37]line [02:21:37]line [02:21:37]line [02:21:37]written 0, free lines is 3234 [02:21:37]MH_Cut [02:21:37]Write to MH i2c: D1 01 00 B9 1D 01 A8 [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: D1 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: D1 01 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: D1 01 00 B9 1D 00 A7 [02:21:37]Write to MH i2c: 01 00 00 BA 1D D7 [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]OFD Sender: No OFD packet to send [02:21:38]*** Cut start [02:21:38]*** Partial cut [02:21:38]*** CUTSNS_PIN = 1 [02:21:38]*** CUTSNS_PIN = 0 [02:21:38]*** Brake cut motor [02:21:38]Read from MH i2c: 01 [02:21:38]MH_I2C_Read... [02:21:38]*** Stop cut motor [02:21:38]*** Cut end [02:21:38]Read from MH i2c: 01 07 00 [02:21:38]MH_I2C_Read... [02:21:38]Read from MH i2c: 01 07 00 BA 1D 00 00 00 00 00 FF 0F EC [02:21:38]process_action close_receipt done [02:21:38]requested_data is exist [02:21:38]produce_requested_data [02:21:38]requested_item fm.sn is exist - process it [02:21:38]wFMCommunicate request_size=4 [02:21:38]MH_SAM_APDU [02:21:38]CAPDU: 80 11 00 00 [02:21:38]Write to MH i2c: E2 08 00 BB 1D 80 11 00 00 00 00 00 00 52 [02:21:38]Write i2c OK [02:21:38]MH_I2C_Read... [02:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:38]Read from MH i2c: E2 [02:21:38]MH_I2C_Read... [02:21:38]Read from MH i2c: E2 17 00 [02:21:38]MH_I2C_Read... [02:21:38]Read from MH i2c: E2 17 00 BB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [02:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:21:38]wFMCommunicate OK [02:21:38]requested_item fd.num is exist - process it [02:21:38]SAM_PROTO_GetFieldsCounters [02:21:38]wFMCommunicate request_size=4 [02:21:38]MH_SAM_APDU [02:21:38]CAPDU: 80 13 00 00 [02:21:38]Write to MH i2c: E2 08 00 BC 1D 80 13 00 00 00 00 00 00 55 [02:21:38]Write i2c OK [02:21:38]MH_I2C_Read... [02:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:21:38]Read from MH i2c: E2 [02:21:38]MH_I2C_Read... [02:21:38]Read from MH i2c: E2 62 00 [02:21:38]MH_I2C_Read... [02:21:38]Read from MH i2c: E2 62 00 BC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [02:21:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:21:38]wFMCommunicate OK [02:21:38]SAM_PROTO_GetFieldsCounters done [02:21:38]requested_item shift.num is exist - process it [02:21:38]requested_item shift.opened is exist - process it [02:21:38]req_shift_opened [02:21:38]FM_GetShiftState [02:21:38]SAM_PROTO_GetShiftState [02:21:38]wFMCommunicate request_size=4 [02:21:38]MH_SAM_APDU [02:21:38]CAPDU: 80 13 01 00 [02:21:38]Write to MH i2c: E2 08 00 BD 1D 80 13 01 00 00 00 00 00 57 [02:21:38]Write i2c OK [02:21:38]MH_I2C_Read... [02:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:39]Read from MH i2c: E2 [02:21:39]MH_I2C_Read... [02:21:39]Read from MH i2c: E2 0E 00 [02:21:39]MH_I2C_Read... [02:21:39]Read from MH i2c: E2 0E 00 BD 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A7 [02:21:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [02:21:39]wFMCommunicate OK [02:21:39]SAM_PROTO_GetShiftState done [02:21:39]FM_GetShiftState done [02:21:39]req_shift_opened done [02:21:39]requested_item shift.open_date is exist - process it [02:21:39]req_shift_open_date [02:21:39]req_shift_open_date done [02:21:39]produce_requested_data done [02:21:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192456,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [02:21:39]process_action_free close_receipt [02:21:39]json_value_free [02:21:39]json_value_free done [02:21:39]process_json_proto returns [02:21:39]Send response to host [02:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192456,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [02:21:39]free response buf [02:21:39]execute_script done [02:21:39]execute_script returns [02:21:39]free content buf [02:21:39]Sock 7.Close socket [02:21:39]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02: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:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44: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:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]accept exits with 9 [02:58:09]New connection [02:58:09]New thread 3066563940 created [02:58:09]Thread 3066707300 joined [02:58:09]Waiting for new connection... [02:58:09] Sock 9.Parse request [02:58:09]Sock 9.Check first char [02:58:09]Sock 9.First char is OK [02:58:09]request: POST /json_proto HTTP/1.0 [02:58:09]Method: POST [02:58:09]URL: /json_proto [02:58:09]Method is POST - this is cgi request [02:58:09]url: /json_proto [02:58:09]query_string will be loaded in cgi processing [02:58:09]execute_cgi json_proto POST (null) [02:58:09]execute_cgi path=json_proto method=POST [02:58:09]POST find Content-Length [02:58:09]Host: 172.17.63.131:8080 [02:58:09]Content-Length: 677 [02:58:09]Content-Type: application/json [02:58:09] [02:58:09]POST finish read [02:58:09]Found Content-Length = 677 [02:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:09]execute_script... [02:58:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:09]POST & json_proto [02:58:09]process_json_proto [02:58:09]json parsed OK: [02:58:09]protocol is kg_v1.0 [02:58:09]action value=close_receipt [02:58:09]process_action close_receipt [02:58:09]cmd_close_receipt [02:58:09]MH_GetDate [02:58:09]Write to MH i2c: F0 00 00 BE 1D CA [02:58:09]Write i2c OK [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 09 00 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: F0 09 00 BE 1D 00 C4 FD 1E 67 22 05 6E 64 12 [02:58:09]GetLastDocTimeStamp 1730082097 [02:58:09]current date 1730084292 [02:58:09]FM_GetShiftState [02:58:09]SAM_PROTO_GetShiftState [02:58:09]wFMCommunicate request_size=4 [02:58:09]MH_SAM_APDU [02:58:09]CAPDU: 80 13 01 00 [02:58:09]Write to MH i2c: E2 08 00 BF 1D 80 13 01 00 00 00 00 00 59 [02:58:09]Write i2c OK [02:58:09]MH_I2C_Read... [02:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:09]Read from MH i2c: E2 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: E2 0E 00 [02:58:09]MH_I2C_Read... [02:58:09]Read from MH i2c: E2 0E 00 BF 1D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A9 [02:58:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [02:58:09]wFMCommunicate OK [02:58:09]SAM_PROTO_GetShiftState done [02:58:09]FM_GetShiftState done [02:58:09]opened in 1730075620 [02:58:09]opened+sec_in_day 1730162020 [02:58:09]quantity*price = 75061 [02:58:09]sum+1 = 75063 [02:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 5 28.10.2024 02:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192457 ФПД: 249562006188867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T025812&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192457&fm=249562006188867&tin=02508201610067®Number=0000000000091776&sum=75000 [02:58:10]StoreToDocumentArchive [02:58:10]shift 543 fd 192457 [02:58:10]save to /storage/0543/doc_00192457 [02:58:10]save last doc name /storage/0543/doc_00192457 to /storage/kkm_last_doc_name [02:58:10]save OK [02:58:10]Clear old archive folders... [02:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:58:10]tlvbuf is 019E4320 [02:58:10]SAM_PROTO_ClearQueue [02:58:10]wFMCommunicate request_size=4 [02:58:10]MH_SAM_APDU [02:58:10]CAPDU: 80 09 00 00 [02:58:10]Write to MH i2c: E2 08 00 CC 1D 80 09 00 00 00 00 00 00 5B [02:58:10]Write i2c OK [02:58:10]MH_I2C_Read... [02:58:10]Read from MH i2c: E2 [02:58:10]MH_I2C_Read... [02:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:10]Read from MH i2c: E2 03 00 [02:58:10]MH_I2C_Read... [02:58:10]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [02:58:10]RAPDU: 90 00 [02:58:10]wFMCommunicate OK [02:58:10]SAM_PROTO_ClearQueue done [02:58:10]KKMCreateOFDPacket [02:58:10]OFDProtocolAddRootSTLVToBuf [02:58:10]FM_MakeSignedData [02:58:10]FM_MakeSignedData [02:58:10]SAM_PROTO_SignData [02:58:10]wFMCommunicate request_size=4 [02:58:10]MH_SAM_APDU [02:58:10]CAPDU: 80 0D 01 02 [02:58:10]Write to MH i2c: E2 08 00 CD 1D 80 0D 01 02 00 00 00 00 63 [02:58:10]Write i2c OK [02:58:10]MH_I2C_Read... [02:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:10]Read from MH i2c: E2 [02:58:10]MH_I2C_Read... [02:58:10]Read from MH i2c: E2 03 00 [02:58:10]MH_I2C_Read... [02:58:10]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [02:58:10]RAPDU: 90 00 [02:58:10]wFMCommunicate OK [02:58:10]wFMCommunicate request_size=255 [02:58:10]MH_SAM_APDU [02:58:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C4 FD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EF 02 00 35 04 06 00 E2 [02:58:10]Write to MH i2c: E2 02 01 CE 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C4 FD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EF 02 00 35 04 06 00 E2 00 00 27 [02:58:10]Write i2c OK [02:58:10]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]wFMCommunicate request_size=10 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 02 02 05 F9 AE BA 73 43 [02:58:11]Write to MH i2c: E2 0D 00 CF 1D 80 0D 02 02 05 00 F9 AE BA 73 43 00 00 87 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 03 00 CF 1D 00 90 00 60 [02:58:11]RAPDU: 90 00 [02:58:11]wFMCommunicate OK [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 0D 03 02 [02:58:11]Write to MH i2c: E2 08 00 D0 1D 80 0D 03 02 00 00 00 00 68 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0B 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0B 00 D0 1D 00 E5 4A 6F CB 47 DB C0 F2 90 00 A6 [02:58:11]RAPDU: E5 4A 6F CB 47 DB C0 F2 90 00 [02:58:11]wFMCommunicate OK [02:58:11]SAM_PROTO_SignData done [02:58:11]FM_MakeSignedData done [02:58:11]CreateOFDProtocolMessage [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 11 00 00 [02:58:11]Write to MH i2c: E2 08 00 D1 1D 80 11 00 00 00 00 00 00 68 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 17 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 17 00 D1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [02:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:58:11]wFMCommunicate OK [02:58:11]CreateOFDProtocolMessage done [02:58:11]OFDSenderStorePacket 192457 [02:58:11]StoreOFDPacket docnum=192457 [02:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C C6 07 01 17 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C4 FD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EF 02 00 35 04 06 00 E2 F9 AE BA 73 43 E5 4A 6F CB 47 DB C0 F2 [02:58:11]CheckFolder [02:58:11]dirname=/storage/ofd_packets [02:58:11]CheckFolder done [02:58:11]ProducePacketName [02:58:11]name=ofd_packets/00192457 [02:58:11]NVStorageSaveData ofd_packets/00192457 [02:58:11]File name is /storage/ofd_packets/00192457 [02:58:11]Write 301 bytes [02:58:11]NVStorageSaveData done [02:58:11]OFDSenderStorePacket done [02:58:11]KKMCreateOFDPacket done [02:58:11]NVStorageSaveData kkm_last_timestamp [02:58:11]File name is /storage/kkm_last_timestamp [02:58:11]Write 4 bytes [02:58:11]NVStorageSaveData done [02:58:11]ExternCall_PrintAddStr [02:58:11]wPrintStart [02:58:11]Write to MH i2c: 01 00 00 D2 1D EF [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 D2 1D 00 00 00 00 00 FF 0F 04 [02:58:11]RasterBufferAndPrint [02:58:11]line Счет N : (1)31772 [02:58:11]line ИНН: 02508201610067 [02:58:11]line Контрольно-Кассовый Чек [02:58:11]line ПРОДАЖА [02:58:11]line ТРК (МРК, ГНК) : 12 [02:58:11]line Товар: 2710124130 [02:58:11]line Аи-92-К-5 [02:58:11]line 11.220 * 66.90 [02:58:11]line = 750.62 [02:58:11]line НДС 12% НСП 1% [02:58:11]line > о реализуемом товаре [02:58:11]line ОКРУГЛЕНИЕ: -0.62 [02:58:11]line ИТОГО: 750.00 [02:58:11]line Внесено: 750.00 [02:58:11]line СДАЧА: 0.00 [02:58:11]line НСП 1% : 6.64 [02:58:11]line НДС 12% : 79.71 [02:58:11]line Наличными: 750.00 [02:58:11]line Безнал.: 0.00 [02:58:11]line Место: АЗС № 170 "Партнер Нефть" [02:58:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [02:58:11]line СНО: Общий режим [02:58:11]line Чек 5 28.10.2024 02:58 [02:58:11]line Смена: 543 ФФД: 1.0 [02:58:11]line ЗНМ: 0300000110 [02:58:11]line РНМ: 0000000000091776 [02:58:11]line Версия ККМ: 001 [02:58:11]line ФМ: 0000000000871754 [02:58:11]line ФД: 192457 [02:58:11]line ФПД: 249562006188867 [02:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T025812&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192457&fm=249562006188867&tin=02508201610067®Number=0000000000091776&sum=75000 [02:58:11]OFD Sender: Processing packet 192457 [packets to send 75, broken 74] [02:58:11]ProducePacketName [02:58:11]name=ofd_packets/00192457 [02:58:11]OFD Sender: To server: pG, [02:58:11]CommunicateWithHost lk.salyk.kg:30040 [02:58:11]ConnectInit lk.salyk.kg [02:58:11]written 0, free lines is 4095 [02:58:11]Connected sock=10 [02:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4C C6 07 01 17 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C4 FD 1E 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EF 02 00 35 04 06 00 E2 F9 AE BA 73 43 E5 4A 6F CB 47 DB C0 F2 [02:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 6A 47 00 15 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EF 02 00 F4 03 04 00 8A A2 1E 67 B6 04 01 00 00 45 FB 8A 93 59 57 D6 C7 [02:58:11]CommunicateWithHost err = 0 [02:58:11]CheckOFDResponse [02:58:11]1017 (14) - 77093643461234 [02:58:11]1041 (16) - 0000000000871754 [02:58:11]1040 (4) - 192457 [02:58:11]1012 (4) - 27.10.2024 20:28 [02:58:11]1206 (1) - 0 [02:58:11]OFD Sender: Remove packet 192457 [02:58:11]ProducePacketName [02:58:11]name=ofd_packets/00192457 [02:58:11]NVStorageDeleteData [02:58:11]Write to MH i2c: 01 00 00 FD 1D 1A [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: 01 07 00 FD 1D 00 00 00 00 00 9B 0C C8 [02:58:11]RasterBufferAndPrint [02:58:11]line [02:58:11]line [02:58:11]line [02:58:11]line [02:58:11]line [02:58:11]written 0, free lines is 3232 [02:58:11]MH_Cut [02:58:11]Write to MH i2c: D1 01 00 04 1E 01 F4 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: D1 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: D1 01 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: D1 01 00 04 1E 00 F3 [02:58:11]Write to MH i2c: 01 00 00 05 1E 23 [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:12]OFD Sender: No OFD packet to send [02:58:12]*** Cut start [02:58:12]*** Partial cut [02:58:12]*** CUTSNS_PIN = 1 [02:58:12]*** CUTSNS_PIN = 0 [02:58:13]*** Brake cut motor [02:58:13]Read from MH i2c: 01 [02:58:13]MH_I2C_Read... [02:58:13]*** Stop cut motor [02:58:13]*** Cut end [02:58:13]Read from MH i2c: 01 07 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: 01 07 00 05 1E 00 00 00 00 00 FF 0F 38 [02:58:13]process_action close_receipt done [02:58:13]requested_data is exist [02:58:13]produce_requested_data [02:58:13]requested_item fm.sn is exist - process it [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 11 00 00 [02:58:13]Write to MH i2c: E2 08 00 06 1E 80 11 00 00 00 00 00 00 9E [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 17 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 17 00 06 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [02:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [02:58:13]wFMCommunicate OK [02:58:13]requested_item fd.num is exist - process it [02:58:13]SAM_PROTO_GetFieldsCounters [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 13 00 00 [02:58:13]Write to MH i2c: E2 08 00 07 1E 80 13 00 00 00 00 00 00 A1 [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 62 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 62 00 07 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [02:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:58:13]wFMCommunicate OK [02:58:13]SAM_PROTO_GetFieldsCounters done [02:58:13]requested_item shift.num is exist - process it [02:58:13]requested_item shift.opened is exist - process it [02:58:13]req_shift_opened [02:58:13]FM_GetShiftState [02:58:13]SAM_PROTO_GetShiftState [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 13 01 00 [02:58:13]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 0E 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F3 [02:58:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [02:58:13]wFMCommunicate OK [02:58:13]SAM_PROTO_GetShiftState done [02:58:13]FM_GetShiftState done [02:58:13]req_shift_opened done [02:58:13]requested_item shift.open_date is exist - process it [02:58:13]req_shift_open_date [02:58:13]req_shift_open_date done [02:58:13]produce_requested_data done [02:58:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192457,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [02:58:13]process_action_free close_receipt [02:58:13]json_value_free [02:58:13]json_value_free done [02:58:13]process_json_proto returns [02:58:13]Send response to host [02:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192457,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [02:58:13]free response buf [02:58:13]execute_script done [02:58:13]execute_script returns [02:58:13]free content buf [02:58:13]Sock 9.Close socket [02:58:13]Sock 9.Thread stoped [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:02:58]ConnectInit Can't connect to host [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send